@abtnode/blocklet-services 1.16.28-beta-bfbab430 → 1.16.28-beta-17c98819

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 (192) hide show
  1. package/dist/assets/{Add-BM20NrQO.js → Add-DtCsLGn9.js} +1 -1
  2. package/dist/assets/{AddBox--wxfR3G0.js → AddBox-Dq50jbTQ.js} +1 -1
  3. package/dist/assets/{Alert-DtzaUssX.js → Alert-D6XZ7QoO.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-Iyfxx2xg.js → ArrowDropDown-CUiiuOnO.js} +1 -1
  5. package/dist/assets/{Avatar-CUpS4Ilr.js → Avatar-BJ2rSWho.js} +1 -1
  6. package/dist/assets/{ButtonGroup-CYyG5u2K.js → ButtonGroup-NxdmPJmE.js} +1 -1
  7. package/dist/assets/{CheckCircle-DoaQShhi.js → CheckCircle-V7z96T_D.js} +1 -1
  8. package/dist/assets/{ChevronRight-CoSoIqx4.js → ChevronRight-BUovPYF9.js} +1 -1
  9. package/dist/assets/{Close-BLsWc_Tk.js → Close-B8MVuTdj.js} +1 -1
  10. package/dist/assets/{CloseOutlined-DW47mLri.js → CloseOutlined-CoRB9rwa.js} +1 -1
  11. package/dist/assets/{Delete-BeboIHFa.js → Delete-BX85Nb2n.js} +1 -1
  12. package/dist/assets/{DeleteOutline-BaCf1XtY.js → DeleteOutline-3NaKxm4R.js} +1 -1
  13. package/dist/assets/{Done-BEjApK9u.js → Done-BpKzZAOl.js} +1 -1
  14. package/dist/assets/{Download-DjWaMhPn.js → Download-C_IPZg_n.js} +1 -1
  15. package/dist/assets/{Edit-DyzvkXNJ.js → Edit-Ca9UYVpy.js} +1 -1
  16. package/dist/assets/{EditIcon-BXRvvSFr.js → EditIcon-BBNzt39V.js} +1 -1
  17. package/dist/assets/{Error-DcCaeZ_S.js → Error-De5gx5s5.js} +1 -1
  18. package/dist/assets/{ExpandMore-Dw5iC69g.js → ExpandMore-DEuMN2Eb.js} +1 -1
  19. package/dist/assets/{FilterList-B_AYjksa.js → FilterList-CZtEWE4e.js} +1 -1
  20. package/dist/assets/{FormControl-CKJrH8LS.js → FormControl-AzhLQUNz.js} +1 -1
  21. package/dist/assets/{FormControlLabel-J_nG7S9r.js → FormControlLabel-BJDx8Xii.js} +1 -1
  22. package/dist/assets/{FormGroup-B2XKvk2U.js → FormGroup-Dep8Dllq.js} +1 -1
  23. package/dist/assets/{Google-_J6to4FR.js → Google-ByNvt_eR.js} +1 -1
  24. package/dist/assets/{Hidden-BLdLc8h9.js → Hidden-CMJk-ibZ.js} +1 -1
  25. package/dist/assets/{InfoOutlined-jXjX6Tro.js → InfoOutlined-BUHdD4tw.js} +1 -1
  26. package/dist/assets/{InputAdornment-DYTxgt6k.js → InputAdornment-CfFDdbdo.js} +1 -1
  27. package/dist/assets/{InputLabel-lATzw7NR.js → InputLabel-BlRVCdPn.js} +1 -1
  28. package/dist/assets/{LastPage-2k34T11k.js → LastPage-BIy6SW9k.js} +1 -1
  29. package/dist/assets/{Launch-DOIBGLzl.js → Launch-_5c9blWZ.js} +1 -1
  30. package/dist/assets/{LaunchOutlined-SrMQHpJM.js → LaunchOutlined-R3T6IDn5.js} +1 -1
  31. package/dist/assets/{Link-5b2HVhJS.js → Link-Dv3Et2ez.js} +1 -1
  32. package/dist/assets/{ListItemText-BWOzBiMo.js → ListItemText-CF3SWkSv.js} +1 -1
  33. package/dist/assets/{LoadingButton-CK30gWPr.js → LoadingButton-yjU5mQFk.js} +1 -1
  34. package/dist/assets/{LockIcon-DSoFeiUW.js → LockIcon-CDwJp5BS.js} +1 -1
  35. package/dist/assets/{Loop-CBPEms0Q.js → Loop-Cixcn4os.js} +1 -1
  36. package/dist/assets/{MoreHoriz-D2VMH51n.js → MoreHoriz-iT3NGqZF.js} +1 -1
  37. package/dist/assets/{MoreVert-BEZvlzF-.js → MoreVert-BADqdigz.js} +1 -1
  38. package/dist/assets/{OpenInNew-Ck3ijqlL.js → OpenInNew-BFBAJlt9.js} +1 -1
  39. package/dist/assets/{Pagination-DYCSDEOZ.js → Pagination-YWxS-UqZ.js} +1 -1
  40. package/dist/assets/{PlayArrow-Bep57q0l.js → PlayArrow-B7IgLc7s.js} +1 -1
  41. package/dist/assets/{QuestionMarkCircle-BRJ6UWDC.js → QuestionMarkCircle-BKKmQo_F.js} +1 -1
  42. package/dist/assets/{RadioGroup-DjYscIah.js → RadioGroup-DN_TYJnV.js} +1 -1
  43. package/dist/assets/{Search-DFMpNFHb.js → Search-CJ0P_3xr.js} +1 -1
  44. package/dist/assets/{Select-B59j8vqU.js → Select-DgtmL-LZ.js} +1 -1
  45. package/dist/assets/{ServerLogo-B-brfx83.js → ServerLogo-BdppV1tb.js} +1 -1
  46. package/dist/assets/{Skeleton-CjiEfCyO.js → Skeleton-BHY6kQaG.js} +1 -1
  47. package/dist/assets/{Slider-BJkaec7K.js → Slider-Bx-Sr7ox.js} +1 -1
  48. package/dist/assets/{Stepper-JkeBEOuY.js → Stepper-B9Mw95LN.js} +1 -1
  49. package/dist/assets/{TextField-C5D15Ugf.js → TextField-BNqWjS_W.js} +1 -1
  50. package/dist/assets/{Toolbar-CSkIjhiI.js → Toolbar-DyMvP6oS.js} +1 -1
  51. package/dist/assets/{ViewList-BKInLQTN.js → ViewList-D2aDBetM.js} +1 -1
  52. package/dist/assets/{access-control-BCwpKFRG.js → access-control-BeZgVTlr.js} +1 -1
  53. package/dist/assets/{actions-DPCHP2Zq.js → actions-BAEHlB51.js} +1 -1
  54. package/dist/assets/{add-component-core-07RqFKRp.js → add-component-core-zdUTeS0I.js} +13 -13
  55. package/dist/assets/{add-resource-DyhrbJxX.js → add-resource-BViOTRVu.js} +1 -1
  56. package/dist/assets/{addon-Dd_1kHaH.js → addon-DcDSazeT.js} +1 -1
  57. package/dist/assets/{analytics-CpnXFlCP.js → analytics-trSD8Tkh.js} +1 -1
  58. package/dist/assets/api-Cktespab.js +1 -0
  59. package/dist/assets/{ar-DXpJw3XU.js → ar-BKJrehco.js} +1 -1
  60. package/dist/assets/{audit-logs-CcdVOnke.js → audit-logs-YSMsyfjF.js} +1 -1
  61. package/dist/assets/{button-BKUtHuLK.js → button-BKB_5zu1.js} +1 -1
  62. package/dist/assets/{click-to-copy-C5Z-YhEj.js → click-to-copy-D25wVZgZ.js} +1 -1
  63. package/dist/assets/{complete-DGbpqS5n.js → complete-CzIJsOS_.js} +1 -1
  64. package/dist/assets/{component-DqG0gKuO.js → component-VU-oA45F.js} +1 -1
  65. package/dist/assets/{config-DseId50E.js → config-Bw8A79nP.js} +1 -1
  66. package/dist/assets/{config-DLELBWuY.js → config-C8ngjcVS.js} +1 -1
  67. package/dist/assets/{config-navigation-D3NGEvCy.js → config-navigation-yUnObS8L.js} +1 -1
  68. package/dist/assets/{config-space-Dq3sHJW8.js → config-space-DYdz6yGq.js} +1 -1
  69. package/dist/assets/{confirm-Bp1YUyru.js → confirm-BG-SFOgO.js} +1 -1
  70. package/dist/assets/{connect-CCqeZs4y.js → connect-BO4uhxih.js} +1 -1
  71. package/dist/assets/{connect-De6kBvVp.js → connect-DUnFX46U.js} +1 -1
  72. package/dist/assets/{connect-to-DNQSW4Zf.js → connect-to-dyuPFm9K.js} +1 -1
  73. package/dist/assets/{content-layout-FX0-4e_U.js → content-layout-UxwTx4A5.js} +1 -1
  74. package/dist/assets/{dashboard-gEbtoKpZ.js → dashboard-DPoD1K7J.js} +3 -3
  75. package/dist/assets/{de-CWxlIdre.js → de-Byp7vRl4.js} +1 -1
  76. package/dist/assets/{did-address-Etx4oDtC.js → did-address-C9Oll4dh.js} +1 -1
  77. package/dist/assets/{domain-Bp688Xuz.js → domain-BIvMRJe_.js} +1 -1
  78. package/dist/assets/{domain-list-xUOKEmgZ.js → domain-list-BhszvuTn.js} +1 -1
  79. package/dist/assets/{es-BmrvDK07.js → es-O_BI7nAs.js} +1 -1
  80. package/dist/assets/{exchange-passport-Ca8hn9GK.js → exchange-passport-C_LFh53P.js} +1 -1
  81. package/dist/assets/{fallback-CIBVmJin.js → fallback-CCfEf6ty.js} +1 -1
  82. package/dist/assets/{fr-B7SxgRy3.js → fr-DyVRrA5G.js} +1 -1
  83. package/dist/assets/{fuel-CJOxfEOO.js → fuel-NBvBfsof.js} +1 -1
  84. package/dist/assets/{fullpage-D3A4C5-R.js → fullpage-BI63jnw4.js} +1 -1
  85. package/dist/assets/{hi-BRRtNIB_.js → hi-BpaB7ujL.js} +1 -1
  86. package/dist/assets/{home-CjQy6Wn4.js → home-BRsdSEsH.js} +1 -1
  87. package/dist/assets/{id-D6-Qi7Q1.js → id-D7fl0yX3.js} +1 -1
  88. package/dist/assets/{iframe-BBq0Voai.js → iframe-BU1lYeGx.js} +1 -1
  89. package/dist/assets/{index-DxgnjIVN.js → index-8n2bf8O1.js} +1 -1
  90. package/dist/assets/{index-BvTERmRP.js → index-B0JW66A1.js} +1 -1
  91. package/dist/assets/{index-BvsLirqD.js → index-BZDKSnZd.js} +6 -6
  92. package/dist/assets/{index-BvWO4cX9.js → index-BgMBpfZz.js} +1 -1
  93. package/dist/assets/{index-r7u0jEi1.js → index-Bhn3AqbN.js} +1 -1
  94. package/dist/assets/{index-Dm4QfKgj.js → index-BsB_Ivik.js} +1 -1
  95. package/dist/assets/{index-QBptYklD.js → index-C1al0chy.js} +1 -1
  96. package/dist/assets/{index-D4zAIKo5.js → index-C53-lHR1.js} +1 -1
  97. package/dist/assets/{index-B0YP3d1_.js → index-CNRsbEd6.js} +3 -3
  98. package/dist/assets/{index-DWdOmPJK.js → index-CS-E_cNi.js} +1 -1
  99. package/dist/assets/{index-B4NnGwvJ.js → index-CXKKa4he.js} +1 -1
  100. package/dist/assets/{index-B-MiDNZJ.js → index-CnS9gaZ3.js} +1 -1
  101. package/dist/assets/{index-C2gRwmn2.js → index-CtzjdTHo.js} +1 -1
  102. package/dist/assets/{index-BgwjaAEK.js → index-CxMKFgvm.js} +1 -1
  103. package/dist/assets/{index-3J8dxrpv.js → index-DC_BqBrU.js} +1 -1
  104. package/dist/assets/{index-QUyszNOn.js → index-DIXgdP4C.js} +1 -1
  105. package/dist/assets/{index-CnSZHHme.js → index-DK9u_QFG.js} +1 -1
  106. package/dist/assets/{index-Ta8CgfK0.js → index-DMlsksWS.js} +1 -1
  107. package/dist/assets/{index-DA6RGcPS.js → index-DPY5mu1v.js} +1 -1
  108. package/dist/assets/{index-Cy0soagJ.js → index-DSZ_DShN.js} +1 -1
  109. package/dist/assets/{index-CR0jMc07.js → index-DSkkW3s7.js} +1 -1
  110. package/dist/assets/{index-C7siWm6R.js → index-Dd927JED.js} +1 -1
  111. package/dist/assets/{index-DzIqbqJ_.js → index-Dk3Tf3n7.js} +1 -1
  112. package/dist/assets/{index-BYYybgec.js → index-DsLKx-6Z.js} +4 -4
  113. package/dist/assets/{index-DUsylIII.js → index-HsjvndAb.js} +1 -1
  114. package/dist/assets/{index-CBJAk2V8.js → index-NfeZ6FkM.js} +1 -1
  115. package/dist/assets/{index-kTvctsLd.js → index-W3PjrkqJ.js} +1 -1
  116. package/dist/assets/{index-lo0p8vGs.js → index-ZAULHlCu.js} +1 -1
  117. package/dist/assets/{index-CzncbcdH.js → index-aSGtZM1G.js} +1 -1
  118. package/dist/assets/{index-BNte_m1O.js → index-d0yB2VRH.js} +1 -1
  119. package/dist/assets/{index-BJX9Tvpd.js → index-rtr4Gz4X.js} +1 -1
  120. package/dist/assets/{index-zD9-bZuV.js → index-uYFtMGcO.js} +1 -1
  121. package/dist/assets/{index.es-BwRDpSz4.js → index.es-IdK7ub5I.js} +1 -1
  122. package/dist/assets/{index.esm-CpvBYn6L.js → index.esm-CMZ5r2I5.js} +1 -1
  123. package/dist/assets/{invitation-DmGeq7ty.js → invitation-PoByHMy_.js} +1 -1
  124. package/dist/assets/{invite-BHr71ERq.js → invite-vohUR_Q3.js} +1 -1
  125. package/dist/assets/{issue-passport-CVLycMc5.js → issue-passport-CC4-lQ6A.js} +1 -1
  126. package/dist/assets/{item-BcWo6lea.js → item-BpXYdGl3.js} +1 -1
  127. package/dist/assets/{ja--dtwu5Xy.js → ja-xLR8soVq.js} +1 -1
  128. package/dist/assets/{jss-plugin-props-sort.esm-CS5B424R.js → jss-plugin-props-sort.esm-B5cuTQy1.js} +1 -1
  129. package/dist/assets/{ko-DpRJDWhF.js → ko-CdC91nMA.js} +1 -1
  130. package/dist/assets/{launch-result-message-CAUmoCmH.js → launch-result-message-ByQ4Leg2.js} +1 -1
  131. package/dist/assets/{layout-l6KrRo_j.js → layout-Bu8qlIsw.js} +1 -1
  132. package/dist/assets/{list-header-C_S_alCD.js → list-header-D0cS2xjz.js} +1 -1
  133. package/dist/assets/localization-BeJPTmvK.js +1 -0
  134. package/dist/assets/{log-Ch42uXqw.js → log-J5NR7lRK.js} +1 -1
  135. package/dist/assets/{login-BxjyT1qS.js → login-g9jvePX8.js} +1 -1
  136. package/dist/assets/{login-oauth-callback-C6s-4b1V.js → login-oauth-callback-D2WW30oB.js} +1 -1
  137. package/dist/assets/{logo-uploader-CGtIsD0T.js → logo-uploader-DTjwSfPX.js} +3 -3
  138. package/dist/assets/{lost-passport-By5cjQFH.js → lost-passport-BOj1HnK8.js} +3 -3
  139. package/dist/assets/{lottie-DVm7n_Um.js → lottie-DbZVA4a1.js} +1 -1
  140. package/dist/assets/{notifications-CEpa_xHz.js → notifications-D5SUXtDN.js} +1 -1
  141. package/dist/assets/{overview-GOUiKG2a.js → overview-CIMJrzL0.js} +1 -1
  142. package/dist/assets/{page-header-COyUenU-.js → page-header-Dkuk2E3m.js} +1 -1
  143. package/dist/assets/{permission-DWzaHXWC.js → permission-ClKRDM0A.js} +1 -1
  144. package/dist/assets/{preferences-CE-9QBFo.js → preferences-Cop3u0km.js} +1 -1
  145. package/dist/assets/{pt-BxA88dKG.js → pt-CrWN8vvS.js} +1 -1
  146. package/dist/assets/publish-resource-Qm9u4PqD.js +1 -0
  147. package/dist/assets/{react-CY_QENHU.js → react-DqEsvUwg.js} +3 -3
  148. package/dist/assets/{redux-CTTkxs7M.js → redux-DiG_x-Yj.js} +1 -1
  149. package/dist/assets/{resource-dialog-CfRq8NMl.js → resource-dialog-Dx1vh4i2.js} +1 -1
  150. package/dist/assets/{ru-C9WJaQoQ.js → ru-DYnq26fF.js} +1 -1
  151. package/dist/assets/{selector-BEck9RSE.js → selector-CtmL8AXX.js} +1 -1
  152. package/dist/assets/session-O2f-MDS6.js +1 -0
  153. package/dist/assets/{setup-CkCZJ55S.js → setup-CzmbU6rm.js} +3 -3
  154. package/dist/assets/{slicedToArray-DCpTgETk.js → slicedToArray-CHwAHYsi.js} +1 -1
  155. package/dist/assets/{spaces-BFbdkHH8.js → spaces-64XCaLBP.js} +1 -1
  156. package/dist/assets/{start-CvZw2F8k.js → start-B1GQ4EC5.js} +1 -1
  157. package/dist/assets/{step-actions-5tGgPrhF.js → step-actions-CcOoDJjK.js} +1 -1
  158. package/dist/assets/{studio-CGE88nOP.js → studio-mtO3tJoH.js} +1 -1
  159. package/dist/assets/{switch-control-DBbuPW4q.js → switch-control-BsBzcfId.js} +1 -1
  160. package/dist/assets/{th-z7LSYRZi.js → th-Bfmczss9.js} +1 -1
  161. package/dist/assets/{toUpper-DTIWej6b.js → toUpper-KczNtWzD.js} +1 -1
  162. package/dist/assets/{transfer-26ConaJn.js → transfer-CA0lWAxq.js} +1 -1
  163. package/dist/assets/{uniqBy-BF_2_CqX.js → uniqBy-DjB3uhBM.js} +1 -1
  164. package/dist/assets/{unsubscribe-Cwx3CGkA.js → unsubscribe-D0K9thua.js} +1 -1
  165. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DXCdpGY7.js → use-blocklet-info-for-connect-did-spaces-Cq_WKGiX.js} +1 -1
  166. package/dist/assets/{use-mobile-DTODc0Do.js → use-mobile-DySYAWwC.js} +1 -1
  167. package/dist/assets/{useAsync-BIhajT1g.js → useAsync-D_LImVl0.js} +1 -1
  168. package/dist/assets/{useFormControl-D74Gykn0.js → useFormControl-CBVnaiQn.js} +1 -1
  169. package/dist/assets/{useLocalStorage-CTTJpYi8.js → useLocalStorage-Czpb9_Rt.js} +1 -1
  170. package/dist/assets/{useSetState-B8DWdra7.js → useSetState-BJAEhktW.js} +1 -1
  171. package/dist/assets/{useSlot-C0EbF40A.js → useSlot-DqOsNscr.js} +1 -1
  172. package/dist/assets/{user-center-BurgeGnu.js → user-center-C8yU8EJp.js} +1 -1
  173. package/dist/assets/{user-sessions-DFuVpXta.js → user-sessions-CBuZvEHe.js} +1 -1
  174. package/dist/assets/{util-BfdLSo0f.js → util-ZoxYpvYx.js} +1 -1
  175. package/dist/assets/{vi-CAtyUyNW.js → vi-Cyl8BHvR.js} +1 -1
  176. package/dist/assets/wrap-locale-BqAvJfEe.js +1 -0
  177. package/dist/assets/zh-BiD8p9-Q.js +1 -0
  178. package/dist/assets/zh-Dttm4AuY.js +2 -0
  179. package/dist/assets/zh-tw-BSAV-ffK.js +1 -0
  180. package/dist/assets/zh-tw-CFUIwE_w.js +1 -0
  181. package/dist/index.html +1 -1
  182. package/dist/service-worker.js +1 -1
  183. package/package.json +18 -18
  184. package/dist/assets/api-BEakJrYk.js +0 -1
  185. package/dist/assets/localization-Bewup7q7.js +0 -1
  186. package/dist/assets/publish-resource-UvJbVy1r.js +0 -1
  187. package/dist/assets/session-CVIETtuz.js +0 -1
  188. package/dist/assets/wrap-locale-mANFn3Dq.js +0 -1
  189. package/dist/assets/zh-BVBeddUa.js +0 -2
  190. package/dist/assets/zh-e04FR-Ps.js +0 -1
  191. package/dist/assets/zh-tw-CoStw7dd.js +0 -1
  192. package/dist/assets/zh-tw-DlepKNg6.js +0 -1
@@ -1 +1 @@
1
- import{b4 as y}from"./index-BvsLirqD.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{b4 as y}from"./index-BZDKSnZd.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1,4 +1,4 @@
1
- import{aB as _e,aC as Ae,r as b,aD as Oe,cC as rt,aE as ie,aG as M,cB as oe,aF as xe,fD as ot,aK as Me,j as e,aI as We,aJ as Ee,b4 as Ge,aM as L,u as q,T as K,ap as H,a1 as k,l as W,P as S,Z as U,bl as Y,bW as Z,fL as qe,az as O,q as z,aV as nt,bE as at,B as T,e_ as it,a7 as lt,a9 as ct,X as dt,Y as ut,E as He,aQ as Ue,aS as se,fM as pt,fN as ft,a as he,a0 as mt,$ as ht}from"./index-BvsLirqD.js";import{d as ve}from"./Add-BM20NrQO.js";import{S as ne}from"./index-BgwjaAEK.js";import{d as le}from"./EditIcon-BXRvvSFr.js";import{d as gt}from"./LockIcon-DSoFeiUW.js";import{L as je,S as Ce,d as xt}from"./list-header-C_S_alCD.js";import{u as ee}from"./dashboard-gEbtoKpZ.js";import{w as E,P as De}from"./permission-DWzaHXWC.js";import{C as be}from"./confirm-Bp1YUyru.js";import{D as yt,A as vt,f as te}from"./index-D4zAIKo5.js";import{T as _,F as jt}from"./TextField-C5D15Ugf.js";import{F as Ct,C as bt}from"./FormControlLabel-J_nG7S9r.js";import{C as Tt}from"./Google-_J6to4FR.js";import{E as Te}from"./index-kTvctsLd.js";import{W as Ve}from"./did-address-Etx4oDtC.js";import{T as Bt}from"./index-DUsylIII.js";import{_ as St}from"./useSetState-B8DWdra7.js";import{M as Pt}from"./InputAdornment-DYTxgt6k.js";import{I as wt}from"./InputLabel-lATzw7NR.js";import{g as Ft}from"./ButtonGroup-CYyG5u2K.js";import{O as It}from"./Select-B59j8vqU.js";import"./ExpandMore-Dw5iC69g.js";import"./Search-DFMpNFHb.js";import"./index-QUyszNOn.js";import"./useLocalStorage-CTTJpYi8.js";import"./MoreVert-BEZvlzF-.js";import"./Delete-BeboIHFa.js";import"./PlayArrow-Bep57q0l.js";import"./Alert-DtzaUssX.js";import"./useSlot-C0EbF40A.js";import"./ListItemText-BWOzBiMo.js";import"./RadioGroup-DjYscIah.js";import"./FormGroup-B2XKvk2U.js";import"./useFormControl-D74Gykn0.js";import"./Avatar-CUpS4Ilr.js";import"./session-CVIETtuz.js";import"./spaces-BFbdkHH8.js";import"./index-BvTERmRP.js";import"./api-BEakJrYk.js";import"./Link-5b2HVhJS.js";import"./fallback-CIBVmJin.js";import"./index-DWdOmPJK.js";import"./Toolbar-CSkIjhiI.js";import"./Hidden-BLdLc8h9.js";import"./MoreHoriz-D2VMH51n.js";import"./index-DA6RGcPS.js";import"./selector-BEck9RSE.js";import"./useAsync-BIhajT1g.js";import"./FormControl-CKJrH8LS.js";function $t(t){return Ae("MuiToggleButton",t)}const Dt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Dt,Rt=b.createContext({}),Ke=Rt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,$t,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),w=_t(B),$=D=>{m&&(m(D,C),D.defaultPrevented)||x&&x(D,C)},F=h||"";return e.jsx(At,M({className:We(u.className,w.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),P=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},qt=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${P.grouped}`]:r.grouped},{[`& .${P.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${P.firstButton}`]:r.firstButton},{[`& .${P.lastButton}`]:r.lastButton},{[`& .${P.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${P.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${P.firstButton},& .${P.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${P.firstButton},& .${P.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),Ht=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const D=c&&c.indexOf(F);let A;c&&D>=0?(A=c.slice(),A.splice(D,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,w=$=>{const F=$===0,D=$===B-1;return F&&D?"":F?m.firstButton:D?m.lastButton:m.middleButton};return e.jsx(qt,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:w(F),children:$},F))})}))}),Ut=Ht;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var Re=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Zt(t,"string");return typeof r=="symbol"?r:String(r)}function Zt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,Re.jsx)("svg",ze(ze({},r),{},{children:(0,Re.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Ze={exports:{}},Je={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Je.exports=r})();var Jt=Je.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
1
+ import{aB as _e,aC as Ae,r as b,aD as Oe,cC as rt,aE as ie,aG as M,cB as oe,aF as xe,fD as ot,aK as Me,j as e,aI as We,aJ as Ee,b4 as Ge,aM as L,u as q,T as K,ap as H,a1 as k,l as W,P as S,Z as U,bl as Y,bW as Z,fL as qe,az as O,q as z,aV as nt,bE as at,B as T,e_ as it,a7 as lt,a9 as ct,X as dt,Y as ut,E as He,aQ as Ue,aS as se,fM as pt,fN as ft,a as he,a0 as mt,$ as ht}from"./index-BZDKSnZd.js";import{d as ve}from"./Add-DtCsLGn9.js";import{S as ne}from"./index-CxMKFgvm.js";import{d as le}from"./EditIcon-BBNzt39V.js";import{d as gt}from"./LockIcon-CDwJp5BS.js";import{L as je,S as Ce,d as xt}from"./list-header-D0cS2xjz.js";import{u as ee}from"./dashboard-DPoD1K7J.js";import{w as E,P as De}from"./permission-ClKRDM0A.js";import{C as be}from"./confirm-BG-SFOgO.js";import{D as yt,A as vt,f as te}from"./index-C53-lHR1.js";import{T as _,F as jt}from"./TextField-BNqWjS_W.js";import{F as Ct,C as bt}from"./FormControlLabel-BJDx8Xii.js";import{C as Tt}from"./Google-ByNvt_eR.js";import{E as Te}from"./index-W3PjrkqJ.js";import{W as Ve}from"./did-address-C9Oll4dh.js";import{T as Bt}from"./index-HsjvndAb.js";import{_ as St}from"./useSetState-BJAEhktW.js";import{M as Pt}from"./InputAdornment-CfFDdbdo.js";import{I as wt}from"./InputLabel-BlRVCdPn.js";import{g as Ft}from"./ButtonGroup-NxdmPJmE.js";import{O as It}from"./Select-DgtmL-LZ.js";import"./ExpandMore-DEuMN2Eb.js";import"./Search-CJ0P_3xr.js";import"./index-DIXgdP4C.js";import"./useLocalStorage-Czpb9_Rt.js";import"./MoreVert-BADqdigz.js";import"./Delete-BX85Nb2n.js";import"./PlayArrow-B7IgLc7s.js";import"./Alert-D6XZ7QoO.js";import"./useSlot-DqOsNscr.js";import"./ListItemText-CF3SWkSv.js";import"./RadioGroup-DN_TYJnV.js";import"./FormGroup-Dep8Dllq.js";import"./useFormControl-CBVnaiQn.js";import"./Avatar-BJ2rSWho.js";import"./session-O2f-MDS6.js";import"./spaces-64XCaLBP.js";import"./index-B0JW66A1.js";import"./api-Cktespab.js";import"./Link-Dv3Et2ez.js";import"./fallback-CCfEf6ty.js";import"./index-CS-E_cNi.js";import"./Toolbar-DyMvP6oS.js";import"./Hidden-CMJk-ibZ.js";import"./MoreHoriz-iT3NGqZF.js";import"./index-DPY5mu1v.js";import"./selector-CtmL8AXX.js";import"./useAsync-D_LImVl0.js";import"./FormControl-AzhLQUNz.js";function $t(t){return Ae("MuiToggleButton",t)}const Dt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Dt,Rt=b.createContext({}),Ke=Rt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,$t,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),w=_t(B),$=D=>{m&&(m(D,C),D.defaultPrevented)||x&&x(D,C)},F=h||"";return e.jsx(At,M({className:We(u.className,w.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),P=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},qt=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${P.grouped}`]:r.grouped},{[`& .${P.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${P.firstButton}`]:r.firstButton},{[`& .${P.lastButton}`]:r.lastButton},{[`& .${P.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${P.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${P.selected} + .${P.grouped}.${P.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${P.firstButton},& .${P.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${P.firstButton},& .${P.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${P.lastButton},& .${P.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${P.lastButton}.${V.disabled},& .${P.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),Ht=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const D=c&&c.indexOf(F);let A;c&&D>=0?(A=c.slice(),A.splice(D,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,w=$=>{const F=$===0,D=$===B-1;return F&&D?"":F?m.firstButton:D?m.lastButton:m.middleButton};return e.jsx(qt,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:w(F),children:$},F))})}))}),Ut=Ht;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var Re=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Zt(t,"string");return typeof r=="symbol"?r:String(r)}function Zt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,Re.jsx)("svg",ze(ze({},r),{},{children:(0,Re.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Ze={exports:{}},Je={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Je.exports=r})();var Jt=Je.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
2
2
  * Determine if an object is a Buffer
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -1,5 +1,5 @@
1
- const __vite__fileDeps=["assets/react-CY_QENHU.js","assets/index-BvsLirqD.js","assets/index-CCovGSMB.css","assets/index-DxgnjIVN.js","assets/preact.module-B1z5cdvs.js","assets/index-C7siWm6R.js","assets/index-3J8dxrpv.js","assets/toUpper-DTIWej6b.js","assets/index-BJX9Tvpd.js","assets/fallback-CIBVmJin.js","assets/index-DWdOmPJK.js","assets/Toolbar-CSkIjhiI.js","assets/Hidden-BLdLc8h9.js","assets/MoreHoriz-D2VMH51n.js","assets/ExpandMore-Dw5iC69g.js","assets/index-DA6RGcPS.js","assets/MoreVert-BEZvlzF-.js","assets/selector-BEck9RSE.js","assets/Avatar-CUpS4Ilr.js","assets/useSlot-C0EbF40A.js","assets/resource-dialog-CfRq8NMl.js","assets/use-mobile-DTODc0Do.js","assets/OpenInNew-Ck3ijqlL.js","assets/CloseOutlined-DW47mLri.js","assets/index-QUyszNOn.js","assets/index-kTvctsLd.js","assets/index-B4NnGwvJ.js","assets/FormControlLabel-J_nG7S9r.js","assets/useFormControl-D74Gykn0.js","assets/index-B-MiDNZJ.js","assets/FilterList-B_AYjksa.js","assets/toPropertyKey-hKuLU48H.js","assets/FormControl-CKJrH8LS.js","assets/FormGroup-B2XKvk2U.js","assets/InputLabel-lATzw7NR.js","assets/ListItemText-BWOzBiMo.js","assets/Select-B59j8vqU.js","assets/TextField-C5D15Ugf.js","assets/LastPage-2k34T11k.js","assets/index-QBptYklD.js","assets/redux-CTTkxs7M.js","assets/Search-DFMpNFHb.js","assets/Delete-BeboIHFa.js","assets/uniqBy-BF_2_CqX.js","assets/react-BW7E7-P9.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{ao as H0,j as o,aD as te,cC as o0,aG as B,ff as B1,aF as xe,aB as Te,aC as Ve,T as X,r as C,aK as Ne,aH as l0,aI as _e,aJ as De,cI as O0,fg as Ue,X as ze,Y as ke,B as z,l as s1,P as x,$ as Be,E as W,e as r1,u as oe,aM as Se,aV as We,bu as Ge,a1 as $e,L as ae,bD as n0,a as he,az as ce,I as $0,q as O,Z as se,dl as F0,a9 as fe,aq as Oe,F as q0,bR as i1,cc as s0,cx as U0,cG as Pe,cH as r0,bj as W0,cX as G0,cB as He,by as Ye,bY as Ze,f0 as K0,b as ie,bm as X0,dp as J0,ae as i0,bn as Q0,ci as Y0,aQ as Z0,a2 as e2,bk as t2,eR as Ce,fh as E1,c as Le,cO as o2,ap as l2,ay as n2,al as s2,am as Ke}from"./index-BvsLirqD.js";import{d as a0}from"./Add-BM20NrQO.js";import{d as r2}from"./AddBox--wxfR3G0.js";import{d as c0}from"./Delete-BeboIHFa.js";import{d as i2}from"./Error-DcCaeZ_S.js";import{D as a1}from"./index-B-MiDNZJ.js";import{T as d0}from"./index-DUsylIII.js";import{C as u0}from"./confirm-Bp1YUyru.js";import{u as a2}from"./session-CVIETtuz.js";import{W as A1}from"./did-address-Etx4oDtC.js";import{B as c1,d as c2}from"./ChevronRight-CoSoIqx4.js";import{S as ye,p as p0}from"./index-BNte_m1O.js";import{A as h0}from"./Avatar-CUpS4Ilr.js";import{d as d2}from"./Download-DjWaMhPn.js";import{d as u2}from"./QuestionMarkCircle-BRJ6UWDC.js";import{b as p2,c as H1,T as h2}from"./index-QUyszNOn.js";import{_ as we}from"./useSetState-B8DWdra7.js";import{c as d1}from"./index-3J8dxrpv.js";import{C as e1,F as f2}from"./FormControlLabel-J_nG7S9r.js";import{A as x2}from"./Alert-DtzaUssX.js";import"./api-BEakJrYk.js";import{i as v2}from"./index-BvTERmRP.js";import{d as m2}from"./ExpandMore-Dw5iC69g.js";import{d as g2}from"./OpenInNew-Ck3ijqlL.js";import{d as b2}from"./DeleteOutline-BaCf1XtY.js";import{d as j2}from"./ArrowDropDown-Iyfxx2xg.js";import{B as w2}from"./ButtonGroup-CYyG5u2K.js";import{u as C2,S as R2,A as y2}from"./item-BcWo6lea.js";import{T as Re}from"./TextField-C5D15Ugf.js";import{M as u1}from"./InputAdornment-DYTxgt6k.js";import{f as Fe,A as z2,b as k2}from"./index-D4zAIKo5.js";import{d as S2}from"./Launch-DOIBGLzl.js";import{L as M2}from"./MoreVert-BEZvlzF-.js";import{a as I2}from"./ListItemText-BWOzBiMo.js";import{C as L2}from"./click-to-copy-C5Z-YhEj.js";import{M as P2}from"./index-CR0jMc07.js";import{r as T2}from"./index-C2gRwmn2.js";import{d as V2}from"./Done-BEjApK9u.js";import{c as f0,d as x0,b as N2,S as _2,a as D2}from"./Stepper-JkeBEOuY.js";import"./FilterList-B_AYjksa.js";import"./toPropertyKey-hKuLU48H.js";import"./FormControl-CKJrH8LS.js";import"./useFormControl-D74Gykn0.js";import"./FormGroup-B2XKvk2U.js";import"./InputLabel-lATzw7NR.js";import"./Select-B59j8vqU.js";import"./LastPage-2k34T11k.js";import"./Toolbar-CSkIjhiI.js";import"./index-QBptYklD.js";import"./redux-CTTkxs7M.js";import"./Search-DFMpNFHb.js";import"./index-kTvctsLd.js";import"./Link-5b2HVhJS.js";import"./useSlot-C0EbF40A.js";import"./jss-plugin-props-sort.esm-CS5B424R.js";const B2=H0(o.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),E2=["slots","slotProps"],A2=te(o0)(({theme:e})=>B({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":B({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":B({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:B1(e.palette.grey[200],.12)}:{backgroundColor:B1(e.palette.grey[600],.12)})})),H2=te(B2)({width:24,height:16});function O2(e){const{slots:t={},slotProps:l={}}=e,s=xe(e,E2),r=e;return o.jsx("li",{children:o.jsx(A2,B({focusRipple:!0},s,{ownerState:r,children:o.jsx(H2,B({as:t.CollapsedIcon,ownerState:r},l.collapsedIcon))}))})}function $2(e){return Ve("MuiBreadcrumbs",e)}const F2=Te("MuiBreadcrumbs",["root","ol","li","separator"]),q2=F2,U2=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],W2=e=>{const{classes:t}=e;return De({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},$2,t)},G2=te(X,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${q2.li}`]:t.li},t.root]})({}),K2=te("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),X2=te("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function J2(e,t,l,s){return e.reduce((r,d,a)=>(a<e.length-1?r=r.concat(d,o.jsx(X2,{"aria-hidden":!0,className:t,ownerState:s,children:l},`separator-${a}`)):r.push(d),r),[])}const Q2=C.forwardRef(function(t,l){const s=Ne({props:t,name:"MuiBreadcrumbs"}),{children:r,className:d,component:a="nav",slots:c={},slotProps:p={},expandText:h="Show path",itemsAfterCollapse:v=1,itemsBeforeCollapse:j=1,maxItems:y=8,separator:u="/"}=s,i=xe(s,U2),[f,w]=C.useState(!1),m=B({},s,{component:a,expanded:f,expandText:h,itemsAfterCollapse:v,itemsBeforeCollapse:j,maxItems:y,separator:u}),R=W2(m),k=l0({elementType:c.CollapsedIcon,externalSlotProps:p.collapsedIcon,ownerState:m}),T=C.useRef(null),N=S=>{const E=()=>{w(!0);const D=T.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return j+v>=S.length?S:[...S.slice(0,j),o.jsx(O2,{"aria-label":h,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:k},onClick:E},"ellipsis"),...S.slice(S.length-v,S.length)]},L=C.Children.toArray(r).filter(S=>C.isValidElement(S)).map((S,E)=>o.jsx("li",{className:R.li,children:S},`child-${E}`));return o.jsx(G2,B({ref:l,component:a,color:"text.secondary",className:_e(R.root,d),ownerState:m},i,{children:o.jsx(K2,{className:R.ol,ref:T,ownerState:m,children:J2(f||y&&L.length<=y?L:N(L),R.separator,u,m)})}))}),v0=Q2;function Y2(e){return Ve("MuiStepButton",e)}const Z2=Te("MuiStepButton",["root","horizontal","vertical","touchRipple"]),O1=Z2,et=["children","className","icon","optional"],tt=e=>{const{classes:t,orientation:l}=e;return De({root:["root",l],touchRipple:["touchRipple"]},Y2,t)},ot=te(o0,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[{[`& .${O1.touchRipple}`]:t.touchRipple},t.root,t[l.orientation]]}})(({ownerState:e})=>B({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${O1.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),lt=C.forwardRef(function(t,l){const s=Ne({props:t,name:"MuiStepButton"}),{children:r,className:d,icon:a,optional:c}=s,p=xe(s,et),{disabled:h,active:v}=C.useContext(f0),{orientation:j}=C.useContext(x0),y=B({},s,{orientation:j}),u=tt(y),i={icon:a,optional:c},f=O0(r,["StepLabel"])?C.cloneElement(r,i):o.jsx(N2,B({},i,{children:r}));return o.jsx(ot,B({focusRipple:!0,disabled:h,TouchRippleProps:{className:u.touchRipple},className:_e(u.root,d),ref:l,ownerState:y,"aria-current":v?"step":void 0},p,{children:f}))}),nt=lt;function st(e){return Ve("MuiStepContent",e)}Te("MuiStepContent",["root","last","transition"]);const rt=["children","className","TransitionComponent","transitionDuration","TransitionProps"],it=e=>{const{classes:t,last:l}=e;return De({root:["root",l&&"last"],transition:["transition"]},st,t)},at=te("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.last&&t.last]}})(({ownerState:e,theme:t})=>B({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"})),ct=te(Ue,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),dt=C.forwardRef(function(t,l){const s=Ne({props:t,name:"MuiStepContent"}),{children:r,className:d,TransitionComponent:a=Ue,transitionDuration:c="auto",TransitionProps:p}=s,h=xe(s,rt);C.useContext(x0);const{active:v,last:j,expanded:y}=C.useContext(f0),u=B({},s,{last:j}),i=it(u);let f=c;return c==="auto"&&!a.muiSupportAuto&&(f=void 0),o.jsx(at,B({className:_e(i.root,d),ref:l,ownerState:u},h,{children:o.jsx(ct,B({as:a,in:v||y,className:i.transition,ownerState:u,timeout:f,unmountOnExit:!0},p,{children:r}))}))}),ut=dt;var p1={},pt=ke;Object.defineProperty(p1,"__esModule",{value:!0});var m0=p1.default=void 0,ht=pt(ze()),ft=o;m0=p1.default=(0,ht.default)((0,ft.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");var h1={},xt=ke;Object.defineProperty(h1,"__esModule",{value:!0});var g0=h1.default=void 0,vt=xt(ze()),mt=o;g0=h1.default=(0,vt.default)((0,mt.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined");function ge({size:e,...t}){return o.jsx(z,{display:"flex",mt:4,...t,children:o.jsx(s1,{size:e})})}ge.propTypes={size:x.number};ge.defaultProps={size:24};function f1({did:e,projectId:t,title:l,logo:s,describe:r}){const a=`${`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${e}/${t}/logo/upload`}/${s}`,[c,p]=C.useState(!1),h=Be(v=>v.breakpoints.down("md"));return o.jsxs(z,{sx:{display:"flex",flexDirection:"row",color:c?"primary.main":"grey.900",gap:1},onPointerEnter:()=>p(!0),onPointerLeave:()=>p(!1),children:[o.jsx(h0,{sx:{borderRadius:1},src:a}),o.jsxs(z,{children:[o.jsx(ye,{hiddenTip:!0,maxLength:"24",sx:{fontSize:"14px",fontWeight:"500",color:h?"primary.main":""},children:l||"/"}),o.jsx(ye,{hiddenTip:!0,maxLength:"58",sx:{fontSize:"12px",color:h||c?"primary.main":"grey.700"},children:r||"/"})]})]})}f1.propTypes={projectId:x.string.isRequired,did:x.string.isRequired,title:x.string.isRequired,logo:x.string.isRequired,describe:x.string.isRequired};function x1({initUrl:e}){const t=r1(),l=(e==null?void 0:e.searchParams.get("tenantScope"))||"",{t:s,locale:r}=oe(),{api:d}=Se(),{api:a}=a2(),[c,p]=C.useState(!0),{blocklet:h}=We(),[v,j]=C.useState(null),[y,u]=C.useState(!1),i=Be(M=>M.breakpoints.down("xl")),{componentDid:f=""}=Ge(),[w,m]=C.useState(null),R=()=>{d.getProjects({input:{did:h.meta.did,componentDid:f,tenantScope:l}}).then(M=>{const I=(M==null?void 0:M.projects)||[];p(!1),m(I)}).catch(M=>{p(!1),O.error(M.message)})},k=()=>{t(`${W.UNOWNED_DID}/create/none`,{replace:!0})},T=M=>{j(M)},N=()=>{p(!1),u(!0)},L=()=>{u(!1),j(null)},S=M=>{O.error(M.message),u(!1),j(null)},E=M=>{if(!(M!=null&&M.deleted)){O.error("Delete project failed");return}R(),u(!1),j(null)};if(C.useEffect(()=>{R()},[]),!w&&c)return o.jsx(z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:"40px"},children:o.jsx(ge,{})});if(!w)return null;if(!w.length)return o.jsxs(z,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[o.jsx(z,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:s("blocklet.publish.blockletEmptyTip")}),o.jsx(z,{sx:{fontSize:14,color:"text.secondary",mb:3},children:s("blocklet.publish.createBlockletTip")}),o.jsx($e,{onClick:k,variant:"contained",children:s("blocklet.publish.createBlocklet")})]});const D=[{label:"Blocklet",name:"blockletTitle",minWidth:160,options:{customBodyRenderLite:M=>{const I=w[M];return o.jsx(ae,{to:`${I.id}`,children:o.jsx(f1,{did:h.meta.did,projectId:I.id,logo:I.blockletLogo,title:I.blockletTitle,describe:I.blockletDescription})})}}},{label:"Version",name:"blockletVersion",options:{customBodyRender:M=>M?o.jsx(d0,{type:"success",children:M}):""}},{label:"DID",name:"blockletDid",options:{customBodyRender:M=>o.jsx(A1,{size:14,compact:!0,responsive:!1,did:M})}},i||f?null:{label:s("common.createdBy"),name:"createdBy",options:{customBodyRender:M=>o.jsx(A1,{onClick:()=>{t(`/.well-known/service/admin/members?did=${M}`)},style:{cursor:"pointer"},size:14,compact:!0,copyable:!1,showQrcode:!1,responsive:!1,did:M})}},i||f?null:{label:s("common.scope"),name:"componentDid",options:{customBodyRender:M=>{const I=(h.children||[]).find($=>$.meta.did===M);return I?o.jsxs(z,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[o.jsx(c1,{size:14,blocklet:I,ancestors:[h]}),o.jsx(z,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:I.meta.title})]},M):""}}},i||l?null:{label:s("blocklet.publish.tenantScope"),name:"tenantScope",options:{customBodyRender:M=>o.jsx(z,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:o.jsx(ye,{children:M})})}},{label:s("common.updatedAt"),name:"updatedAt",options:{customBodyRender:M=>o.jsx(n0,{value:Number(M),locale:r})}},{label:s("common.actions"),name:"actions",options:{customBodyRenderLite:M=>{const I=w[M];return o.jsxs(z,{display:"flex",children:[o.jsx(ae,{to:`${I.id}/new-release/${I.lastReleaseId}`,children:o.jsx(he,{title:s("blocklet.publish.createRelease"),placement:"top",children:o.jsx(ce,{color:"primary","aria-label":"create",children:o.jsx(r2,{style:{fontSize:18}})})})}),!!I.lastReleaseId&&o.jsx(he,{title:s("blocklet.publish.viewLastRelease",{name:I.blockletTitle}),placement:"top",children:o.jsx(ce,{color:"secondary","aria-label":"create",children:o.jsx(ae,{style:{display:"flex"},to:`${I.id}/view/${I.lastReleaseId}`,children:o.jsx(m0,{sx:{fontSize:18}})})})}),o.jsx(he,{title:s("blocklet.publish.delete",{name:I.blockletTitle}),placement:"top",children:o.jsx(ce,{color:"primary","aria-label":"delete",onClick:()=>T(I),children:o.jsx(c0,{sx:{fontSize:18}})})})]})}}}].filter(Boolean),P=y?o.jsx($0,{open:!0,popup:!0,onClose:L,action:"check-has-project-id",locale:r,checkFn:a.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:E,onError:S,extraParams:{projectId:v.id,did:h.meta.did,name:v.blockletTitle},messages:{title:s("blocklet.publish.deleteProject.title",{name:v.blockletTitle}),scan:s("blocklet.publish.deleteProject.scan",{name:v.blockletTitle}),confirm:s("blocklet.publish.deleteProject.confirm"),success:s("blocklet.publish.deleteProject.success")}}):null;return o.jsxs(gt,{children:[o.jsxs(z,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(z,{display:"flex",flexDirection:"row",alignItems:"center",children:[o.jsx(z,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:s("common.blockletStudio")}),o.jsx(he,{title:s("blocklet.publish.createBlockletTip"),arrow:!0,placement:"right",children:o.jsx(g0,{sx:{opacity:.6,fontSize:"1.1em",ml:1}})})]}),o.jsxs($e,{onClick:k,variant:"contained",children:[o.jsx(a0,{style:{fontSize:"1.3em",marginRight:4}}),s("blocklet.publish.createBlocklet")]})]}),o.jsx(z,{mt:3}),o.jsx(a1,{className:"main-table",locale:r,data:w,columns:D,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),v&&o.jsx(u0,{title:`${s("common.delete")} ${v.blockletTitle}`,description:s("blocklet.publish.deleteProject.description"),confirm:s("common.confirm"),onConfirm:N,onCancel:()=>j(null),children:o.jsx(z,{sx:{marginTop:2},children:[s("blocklet.publish.deleteProject.tip1"),s("blocklet.publish.deleteProject.tip2"),s("blocklet.publish.deleteProject.tip3")].map(M=>o.jsxs(z,{sx:{display:"flex",marginTop:1,flexDirection:"row",alignItems:"flex-start"},children:[o.jsx(i2,{color:"warning",sx:{marginRight:1,fontSize:20,marginTop:"2px"}}),o.jsx(X,{component:"span",variant:"inherit",color:"text.secondary",children:M})]}))})}),P]})}x1.propTypes={initUrl:x.object};x1.defaultProps={initUrl:null};const gt=se(z)`
1
+ const __vite__fileDeps=["assets/react-DqEsvUwg.js","assets/index-BZDKSnZd.js","assets/index-CCovGSMB.css","assets/index-8n2bf8O1.js","assets/preact.module-B1z5cdvs.js","assets/index-Dd927JED.js","assets/index-DC_BqBrU.js","assets/toUpper-KczNtWzD.js","assets/index-rtr4Gz4X.js","assets/fallback-CCfEf6ty.js","assets/index-CS-E_cNi.js","assets/Toolbar-DyMvP6oS.js","assets/Hidden-CMJk-ibZ.js","assets/MoreHoriz-iT3NGqZF.js","assets/ExpandMore-DEuMN2Eb.js","assets/index-DPY5mu1v.js","assets/MoreVert-BADqdigz.js","assets/selector-CtmL8AXX.js","assets/Avatar-BJ2rSWho.js","assets/useSlot-DqOsNscr.js","assets/resource-dialog-Dx1vh4i2.js","assets/use-mobile-DySYAWwC.js","assets/OpenInNew-BFBAJlt9.js","assets/CloseOutlined-CoRB9rwa.js","assets/index-DIXgdP4C.js","assets/index-W3PjrkqJ.js","assets/index-CXKKa4he.js","assets/FormControlLabel-BJDx8Xii.js","assets/useFormControl-CBVnaiQn.js","assets/index-CnS9gaZ3.js","assets/FilterList-CZtEWE4e.js","assets/toPropertyKey-hKuLU48H.js","assets/FormControl-AzhLQUNz.js","assets/FormGroup-Dep8Dllq.js","assets/InputLabel-BlRVCdPn.js","assets/ListItemText-CF3SWkSv.js","assets/Select-DgtmL-LZ.js","assets/TextField-BNqWjS_W.js","assets/LastPage-BIy6SW9k.js","assets/index-C1al0chy.js","assets/redux-DiG_x-Yj.js","assets/Search-CJ0P_3xr.js","assets/Delete-BX85Nb2n.js","assets/uniqBy-DjB3uhBM.js","assets/react-BW7E7-P9.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{ao as H0,j as o,aD as te,cC as o0,aG as B,ff as B1,aF as xe,aB as Te,aC as Ve,T as X,r as C,aK as Ne,aH as l0,aI as _e,aJ as De,cI as O0,fg as Ue,X as ze,Y as ke,B as z,l as s1,P as x,$ as Be,E as W,e as r1,u as oe,aM as Se,aV as We,bu as Ge,a1 as $e,L as ae,bD as n0,a as he,az as ce,I as $0,q as O,Z as se,dl as F0,a9 as fe,aq as Oe,F as q0,bR as i1,cc as s0,cx as U0,cG as Pe,cH as r0,bj as W0,cX as G0,cB as He,by as Ye,bY as Ze,f0 as K0,b as ie,bm as X0,dp as J0,ae as i0,bn as Q0,ci as Y0,aQ as Z0,a2 as e2,bk as t2,eR as Ce,fh as E1,c as Le,cO as o2,ap as l2,ay as n2,al as s2,am as Ke}from"./index-BZDKSnZd.js";import{d as a0}from"./Add-DtCsLGn9.js";import{d as r2}from"./AddBox-Dq50jbTQ.js";import{d as c0}from"./Delete-BX85Nb2n.js";import{d as i2}from"./Error-De5gx5s5.js";import{D as a1}from"./index-CnS9gaZ3.js";import{T as d0}from"./index-HsjvndAb.js";import{C as u0}from"./confirm-BG-SFOgO.js";import{u as a2}from"./session-O2f-MDS6.js";import{W as A1}from"./did-address-C9Oll4dh.js";import{B as c1,d as c2}from"./ChevronRight-BUovPYF9.js";import{S as ye,p as p0}from"./index-d0yB2VRH.js";import{A as h0}from"./Avatar-BJ2rSWho.js";import{d as d2}from"./Download-C_IPZg_n.js";import{d as u2}from"./QuestionMarkCircle-BKKmQo_F.js";import{b as p2,c as H1,T as h2}from"./index-DIXgdP4C.js";import{_ as we}from"./useSetState-BJAEhktW.js";import{c as d1}from"./index-DC_BqBrU.js";import{C as e1,F as f2}from"./FormControlLabel-BJDx8Xii.js";import{A as x2}from"./Alert-D6XZ7QoO.js";import"./api-Cktespab.js";import{i as v2}from"./index-B0JW66A1.js";import{d as m2}from"./ExpandMore-DEuMN2Eb.js";import{d as g2}from"./OpenInNew-BFBAJlt9.js";import{d as b2}from"./DeleteOutline-3NaKxm4R.js";import{d as j2}from"./ArrowDropDown-CUiiuOnO.js";import{B as w2}from"./ButtonGroup-NxdmPJmE.js";import{u as C2,S as R2,A as y2}from"./item-BpXYdGl3.js";import{T as Re}from"./TextField-BNqWjS_W.js";import{M as u1}from"./InputAdornment-CfFDdbdo.js";import{f as Fe,A as z2,b as k2}from"./index-C53-lHR1.js";import{d as S2}from"./Launch-_5c9blWZ.js";import{L as M2}from"./MoreVert-BADqdigz.js";import{a as I2}from"./ListItemText-CF3SWkSv.js";import{C as L2}from"./click-to-copy-D25wVZgZ.js";import{M as P2}from"./index-DSkkW3s7.js";import{r as T2}from"./index-CtzjdTHo.js";import{d as V2}from"./Done-BpKzZAOl.js";import{c as f0,d as x0,b as N2,S as _2,a as D2}from"./Stepper-B9Mw95LN.js";import"./FilterList-CZtEWE4e.js";import"./toPropertyKey-hKuLU48H.js";import"./FormControl-AzhLQUNz.js";import"./useFormControl-CBVnaiQn.js";import"./FormGroup-Dep8Dllq.js";import"./InputLabel-BlRVCdPn.js";import"./Select-DgtmL-LZ.js";import"./LastPage-BIy6SW9k.js";import"./Toolbar-DyMvP6oS.js";import"./index-C1al0chy.js";import"./redux-DiG_x-Yj.js";import"./Search-CJ0P_3xr.js";import"./index-W3PjrkqJ.js";import"./Link-Dv3Et2ez.js";import"./useSlot-DqOsNscr.js";import"./jss-plugin-props-sort.esm-B5cuTQy1.js";const B2=H0(o.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),E2=["slots","slotProps"],A2=te(o0)(({theme:e})=>B({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":B({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":B({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:B1(e.palette.grey[200],.12)}:{backgroundColor:B1(e.palette.grey[600],.12)})})),H2=te(B2)({width:24,height:16});function O2(e){const{slots:t={},slotProps:l={}}=e,s=xe(e,E2),r=e;return o.jsx("li",{children:o.jsx(A2,B({focusRipple:!0},s,{ownerState:r,children:o.jsx(H2,B({as:t.CollapsedIcon,ownerState:r},l.collapsedIcon))}))})}function $2(e){return Ve("MuiBreadcrumbs",e)}const F2=Te("MuiBreadcrumbs",["root","ol","li","separator"]),q2=F2,U2=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],W2=e=>{const{classes:t}=e;return De({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},$2,t)},G2=te(X,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${q2.li}`]:t.li},t.root]})({}),K2=te("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),X2=te("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function J2(e,t,l,s){return e.reduce((r,d,a)=>(a<e.length-1?r=r.concat(d,o.jsx(X2,{"aria-hidden":!0,className:t,ownerState:s,children:l},`separator-${a}`)):r.push(d),r),[])}const Q2=C.forwardRef(function(t,l){const s=Ne({props:t,name:"MuiBreadcrumbs"}),{children:r,className:d,component:a="nav",slots:c={},slotProps:p={},expandText:h="Show path",itemsAfterCollapse:v=1,itemsBeforeCollapse:j=1,maxItems:y=8,separator:u="/"}=s,i=xe(s,U2),[f,w]=C.useState(!1),m=B({},s,{component:a,expanded:f,expandText:h,itemsAfterCollapse:v,itemsBeforeCollapse:j,maxItems:y,separator:u}),R=W2(m),k=l0({elementType:c.CollapsedIcon,externalSlotProps:p.collapsedIcon,ownerState:m}),T=C.useRef(null),N=S=>{const E=()=>{w(!0);const D=T.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return j+v>=S.length?S:[...S.slice(0,j),o.jsx(O2,{"aria-label":h,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:k},onClick:E},"ellipsis"),...S.slice(S.length-v,S.length)]},L=C.Children.toArray(r).filter(S=>C.isValidElement(S)).map((S,E)=>o.jsx("li",{className:R.li,children:S},`child-${E}`));return o.jsx(G2,B({ref:l,component:a,color:"text.secondary",className:_e(R.root,d),ownerState:m},i,{children:o.jsx(K2,{className:R.ol,ref:T,ownerState:m,children:J2(f||y&&L.length<=y?L:N(L),R.separator,u,m)})}))}),v0=Q2;function Y2(e){return Ve("MuiStepButton",e)}const Z2=Te("MuiStepButton",["root","horizontal","vertical","touchRipple"]),O1=Z2,et=["children","className","icon","optional"],tt=e=>{const{classes:t,orientation:l}=e;return De({root:["root",l],touchRipple:["touchRipple"]},Y2,t)},ot=te(o0,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[{[`& .${O1.touchRipple}`]:t.touchRipple},t.root,t[l.orientation]]}})(({ownerState:e})=>B({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${O1.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),lt=C.forwardRef(function(t,l){const s=Ne({props:t,name:"MuiStepButton"}),{children:r,className:d,icon:a,optional:c}=s,p=xe(s,et),{disabled:h,active:v}=C.useContext(f0),{orientation:j}=C.useContext(x0),y=B({},s,{orientation:j}),u=tt(y),i={icon:a,optional:c},f=O0(r,["StepLabel"])?C.cloneElement(r,i):o.jsx(N2,B({},i,{children:r}));return o.jsx(ot,B({focusRipple:!0,disabled:h,TouchRippleProps:{className:u.touchRipple},className:_e(u.root,d),ref:l,ownerState:y,"aria-current":v?"step":void 0},p,{children:f}))}),nt=lt;function st(e){return Ve("MuiStepContent",e)}Te("MuiStepContent",["root","last","transition"]);const rt=["children","className","TransitionComponent","transitionDuration","TransitionProps"],it=e=>{const{classes:t,last:l}=e;return De({root:["root",l&&"last"],transition:["transition"]},st,t)},at=te("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.last&&t.last]}})(({ownerState:e,theme:t})=>B({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"})),ct=te(Ue,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),dt=C.forwardRef(function(t,l){const s=Ne({props:t,name:"MuiStepContent"}),{children:r,className:d,TransitionComponent:a=Ue,transitionDuration:c="auto",TransitionProps:p}=s,h=xe(s,rt);C.useContext(x0);const{active:v,last:j,expanded:y}=C.useContext(f0),u=B({},s,{last:j}),i=it(u);let f=c;return c==="auto"&&!a.muiSupportAuto&&(f=void 0),o.jsx(at,B({className:_e(i.root,d),ref:l,ownerState:u},h,{children:o.jsx(ct,B({as:a,in:v||y,className:i.transition,ownerState:u,timeout:f,unmountOnExit:!0},p,{children:r}))}))}),ut=dt;var p1={},pt=ke;Object.defineProperty(p1,"__esModule",{value:!0});var m0=p1.default=void 0,ht=pt(ze()),ft=o;m0=p1.default=(0,ht.default)((0,ft.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");var h1={},xt=ke;Object.defineProperty(h1,"__esModule",{value:!0});var g0=h1.default=void 0,vt=xt(ze()),mt=o;g0=h1.default=(0,vt.default)((0,mt.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined");function ge({size:e,...t}){return o.jsx(z,{display:"flex",mt:4,...t,children:o.jsx(s1,{size:e})})}ge.propTypes={size:x.number};ge.defaultProps={size:24};function f1({did:e,projectId:t,title:l,logo:s,describe:r}){const a=`${`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${e}/${t}/logo/upload`}/${s}`,[c,p]=C.useState(!1),h=Be(v=>v.breakpoints.down("md"));return o.jsxs(z,{sx:{display:"flex",flexDirection:"row",color:c?"primary.main":"grey.900",gap:1},onPointerEnter:()=>p(!0),onPointerLeave:()=>p(!1),children:[o.jsx(h0,{sx:{borderRadius:1},src:a}),o.jsxs(z,{children:[o.jsx(ye,{hiddenTip:!0,maxLength:"24",sx:{fontSize:"14px",fontWeight:"500",color:h?"primary.main":""},children:l||"/"}),o.jsx(ye,{hiddenTip:!0,maxLength:"58",sx:{fontSize:"12px",color:h||c?"primary.main":"grey.700"},children:r||"/"})]})]})}f1.propTypes={projectId:x.string.isRequired,did:x.string.isRequired,title:x.string.isRequired,logo:x.string.isRequired,describe:x.string.isRequired};function x1({initUrl:e}){const t=r1(),l=(e==null?void 0:e.searchParams.get("tenantScope"))||"",{t:s,locale:r}=oe(),{api:d}=Se(),{api:a}=a2(),[c,p]=C.useState(!0),{blocklet:h}=We(),[v,j]=C.useState(null),[y,u]=C.useState(!1),i=Be(M=>M.breakpoints.down("xl")),{componentDid:f=""}=Ge(),[w,m]=C.useState(null),R=()=>{d.getProjects({input:{did:h.meta.did,componentDid:f,tenantScope:l}}).then(M=>{const I=(M==null?void 0:M.projects)||[];p(!1),m(I)}).catch(M=>{p(!1),O.error(M.message)})},k=()=>{t(`${W.UNOWNED_DID}/create/none`,{replace:!0})},T=M=>{j(M)},N=()=>{p(!1),u(!0)},L=()=>{u(!1),j(null)},S=M=>{O.error(M.message),u(!1),j(null)},E=M=>{if(!(M!=null&&M.deleted)){O.error("Delete project failed");return}R(),u(!1),j(null)};if(C.useEffect(()=>{R()},[]),!w&&c)return o.jsx(z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:"40px"},children:o.jsx(ge,{})});if(!w)return null;if(!w.length)return o.jsxs(z,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[o.jsx(z,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:s("blocklet.publish.blockletEmptyTip")}),o.jsx(z,{sx:{fontSize:14,color:"text.secondary",mb:3},children:s("blocklet.publish.createBlockletTip")}),o.jsx($e,{onClick:k,variant:"contained",children:s("blocklet.publish.createBlocklet")})]});const D=[{label:"Blocklet",name:"blockletTitle",minWidth:160,options:{customBodyRenderLite:M=>{const I=w[M];return o.jsx(ae,{to:`${I.id}`,children:o.jsx(f1,{did:h.meta.did,projectId:I.id,logo:I.blockletLogo,title:I.blockletTitle,describe:I.blockletDescription})})}}},{label:"Version",name:"blockletVersion",options:{customBodyRender:M=>M?o.jsx(d0,{type:"success",children:M}):""}},{label:"DID",name:"blockletDid",options:{customBodyRender:M=>o.jsx(A1,{size:14,compact:!0,responsive:!1,did:M})}},i||f?null:{label:s("common.createdBy"),name:"createdBy",options:{customBodyRender:M=>o.jsx(A1,{onClick:()=>{t(`/.well-known/service/admin/members?did=${M}`)},style:{cursor:"pointer"},size:14,compact:!0,copyable:!1,showQrcode:!1,responsive:!1,did:M})}},i||f?null:{label:s("common.scope"),name:"componentDid",options:{customBodyRender:M=>{const I=(h.children||[]).find($=>$.meta.did===M);return I?o.jsxs(z,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[o.jsx(c1,{size:14,blocklet:I,ancestors:[h]}),o.jsx(z,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:I.meta.title})]},M):""}}},i||l?null:{label:s("blocklet.publish.tenantScope"),name:"tenantScope",options:{customBodyRender:M=>o.jsx(z,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:o.jsx(ye,{children:M})})}},{label:s("common.updatedAt"),name:"updatedAt",options:{customBodyRender:M=>o.jsx(n0,{value:Number(M),locale:r})}},{label:s("common.actions"),name:"actions",options:{customBodyRenderLite:M=>{const I=w[M];return o.jsxs(z,{display:"flex",children:[o.jsx(ae,{to:`${I.id}/new-release/${I.lastReleaseId}`,children:o.jsx(he,{title:s("blocklet.publish.createRelease"),placement:"top",children:o.jsx(ce,{color:"primary","aria-label":"create",children:o.jsx(r2,{style:{fontSize:18}})})})}),!!I.lastReleaseId&&o.jsx(he,{title:s("blocklet.publish.viewLastRelease",{name:I.blockletTitle}),placement:"top",children:o.jsx(ce,{color:"secondary","aria-label":"create",children:o.jsx(ae,{style:{display:"flex"},to:`${I.id}/view/${I.lastReleaseId}`,children:o.jsx(m0,{sx:{fontSize:18}})})})}),o.jsx(he,{title:s("blocklet.publish.delete",{name:I.blockletTitle}),placement:"top",children:o.jsx(ce,{color:"primary","aria-label":"delete",onClick:()=>T(I),children:o.jsx(c0,{sx:{fontSize:18}})})})]})}}}].filter(Boolean),P=y?o.jsx($0,{open:!0,popup:!0,onClose:L,action:"check-has-project-id",locale:r,checkFn:a.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:E,onError:S,extraParams:{projectId:v.id,did:h.meta.did,name:v.blockletTitle},messages:{title:s("blocklet.publish.deleteProject.title",{name:v.blockletTitle}),scan:s("blocklet.publish.deleteProject.scan",{name:v.blockletTitle}),confirm:s("blocklet.publish.deleteProject.confirm"),success:s("blocklet.publish.deleteProject.success")}}):null;return o.jsxs(gt,{children:[o.jsxs(z,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[o.jsxs(z,{display:"flex",flexDirection:"row",alignItems:"center",children:[o.jsx(z,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:s("common.blockletStudio")}),o.jsx(he,{title:s("blocklet.publish.createBlockletTip"),arrow:!0,placement:"right",children:o.jsx(g0,{sx:{opacity:.6,fontSize:"1.1em",ml:1}})})]}),o.jsxs($e,{onClick:k,variant:"contained",children:[o.jsx(a0,{style:{fontSize:"1.3em",marginRight:4}}),s("blocklet.publish.createBlocklet")]})]}),o.jsx(z,{mt:3}),o.jsx(a1,{className:"main-table",locale:r,data:w,columns:D,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),v&&o.jsx(u0,{title:`${s("common.delete")} ${v.blockletTitle}`,description:s("blocklet.publish.deleteProject.description"),confirm:s("common.confirm"),onConfirm:N,onCancel:()=>j(null),children:o.jsx(z,{sx:{marginTop:2},children:[s("blocklet.publish.deleteProject.tip1"),s("blocklet.publish.deleteProject.tip2"),s("blocklet.publish.deleteProject.tip3")].map(M=>o.jsxs(z,{sx:{display:"flex",marginTop:1,flexDirection:"row",alignItems:"flex-start"},children:[o.jsx(i2,{color:"warning",sx:{marginRight:1,fontSize:20,marginTop:"2px"}}),o.jsx(X,{component:"span",variant:"inherit",color:"text.secondary",children:M})]}))})}),P]})}x1.propTypes={initUrl:x.object};x1.defaultProps={initUrl:null};const gt=se(z)`
3
3
  .main-table > div:first-child {
4
4
  display: none;
5
5
  }
@@ -133,7 +133,7 @@ import{ao as H0,j as o,aD as te,cC as o0,aG as B,ff as B1,aF as xe,aB as Te,aC a
133
133
  background: #fff;
134
134
  z-index: 10;
135
135
  }
136
- `;function k1({blocklet:e,store:t,onChangeStore:l,onClick:s,disabled:r,loading:d}){var i;const{t:a}=oe(),[c,p]=C.useState(!1),h=C.useRef(null),v=f=>{l(f),p(!1)},j=()=>{p(f=>!f)},y=f=>{h.current&&h.current.contains(f.target)||p(!1)},u=((i=e==null?void 0:e.settings)==null?void 0:i.storeList)||[];return o.jsxs(o.Fragment,{children:[o.jsxs(w2,{disabled:r,ref:h,variant:"contained",color:"primary","aria-label":"Button group with connect store",children:[o.jsxs(ie,{onClick:s,children:[d&&o.jsx(s1,{size:14,sx:{mr:.5}}),`${a("common.connect")} ${(t==null?void 0:t.name)||""}`]}),o.jsx(ie,{size:"small","aria-controls":c?"split-button-menu":void 0,"aria-expanded":c?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:j,children:o.jsx(j2,{})})]}),o.jsx(X0,{sx:{zIndex:1},open:c,anchorEl:h.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:f,placement:w})=>o.jsx(J0,{...f,style:{transformOrigin:w==="bottom"?"center top":"center bottom"},children:o.jsx(i0,{children:o.jsx(Q0,{onClickAway:y,children:o.jsx(Y0,{id:"split-button-menu",autoFocusItem:!0,children:u.map(m=>o.jsx(Z0,{selected:m.id===t.id,onClick:()=>v(m),children:m.name},m))})})})})})]})}k1.propTypes={store:x.object,blocklet:x.object,onChangeStore:x.func.isRequired,onClick:x.func.isRequired,loading:x.bool.isRequired,disabled:x.bool.isRequired};k1.defaultProps={store:null,blocklet:null};async function S0(e,t=1500,l=600,s=5e3){let r=0;await new Promise(a=>setTimeout(a,s));const d=async(a,c)=>{try{const p=await e();a(p)}catch(p){r++,r>=l?c(p):setTimeout(()=>d(a,c),t)}};return new Promise(d)}function Io(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+`${Date.now()}`.slice(-6)}function Lo(e,{did:t,projectId:l,messageId:s}){return S0(async()=>{var d;const r=await e.getProject({input:{did:t,projectId:l,messageId:s}});if(!((d=r==null?void 0:r.project)!=null&&d.blockletDid))throw new Error("Connected store not found");return r.project.blockletDid})}function Po(e,{did:t,projectId:l,storeId:s}){return S0(async()=>{var a,c;const r=await e.getProject({input:{did:t,projectId:l,messageId:""}});if(!((c=(a=r==null?void 0:r.project)==null?void 0:a.connectedStores)!=null&&c.length))throw new Error("Connected store not found");if(!r.project.connectedStores.find(p=>p.storeId===s))throw new Error("Connected store not found")})}const K1="lastWantToConnectStoreId";function To(e){var a;const[t,l]=C.useState(null),s=C.useCallback(c=>{l(c),localStorage.setItem(K1,c==null?void 0:c.id)},[l]),r=C.useMemo(()=>{var h,v;const c=localStorage.getItem(K1),p=c?(((h=e==null?void 0:e.settings)==null?void 0:h.storeList)||[]).find(j=>j.id===c):null;return p||(((v=e==null?void 0:e.settings)==null?void 0:v.storeList)||[]).find(j=>j.id===W.BLOCKLET_STORE.id)},[(a=e==null?void 0:e.settings)==null?void 0:a.storeList]);return[t||r,s]}const X1=["image/*",".jpg",".jpeg",".png",".gif",".svg"],J1=1024*1024*10,Q1=C.lazy(()=>e2(()=>import("./react-CY_QENHU.js").then(e=>e.r),__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])).then(e=>({default:e.Uploader})));function M0({projectId:e,readOnly:t,loading:l,blocklet:s,params:r,setParams:d,paramsErrTip:a,setParamsErrTip:c,setLoading:p,initUrl:h,initLogoUrl:v,setInitLogoUrl:j,componentDid:y}){const{t:u}=oe(),{api:i}=Se(),f=r1(),w=C.useRef(null),m=C.useRef(null),[R,k]=To(s),T=C2({onOpen:()=>p(!0),onClose:()=>p(!1)}),N=async I=>{const $=setTimeout(()=>{p(!1)},2e4),F=await Lo(i,I);p(!1),clearTimeout($),window.parent.postMessage({event:"studioDialog.connected",componentDid:y},"*"),f(window.location.pathname.replace(`${W.UNOWNED_DID}/create`,`${F}/create`),{replace:!0})},L=()=>{if(!r.blockletTitle){O.error(u("blocklet.publish.errorTip.noTitle"));return}if(!R){O.error("No store found");return}const I=Io();T(async($,F)=>{var U,ne,Q;try{const G=await i.connectByStudio({input:{did:(U=s==null?void 0:s.meta)==null?void 0:U.did,blockletTitle:r==null?void 0:r.blockletTitle,storeUrl:R.url,storeId:R.id,storeName:R.name,type:((ne=r==null?void 0:r.blockletComponents)==null?void 0:ne.length)>0?"pack":"resource",componentDid:y,messageId:I,tenantScope:(h==null?void 0:h.searchParams.get("tenantScope"))||""}});if(!(G!=null&&G.url)){O.error("failed to connect to store");return}F(G.url),N({did:(Q=s==null?void 0:s.meta)==null?void 0:Q.did,projectId:"",messageId:I})}catch(G){const Z=Fe(G);O.error(Z),$.document.write(Z),p(!1)}})},S=`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${s.meta.did}/${e}/logo/upload`,E=`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${s.meta.did}/${e}/screenshot/upload`,D=r!=null&&r.blockletLogo?`${S}/${r.blockletLogo}`:`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,P=((r==null?void 0:r.blockletScreenshots)||[]).filter(Boolean).map(I=>`${E}/${I}`),M=()=>t?!1:!e||e===W.UNOWNED_DID?(O.error(u("blocklet.publish.errorTip.noFirstDid")),!1):!0;return o.jsxs(Vo,{children:[o.jsx(z,{display:"flex",className:"section",children:o.jsxs(z,{sx:{flex:1},children:[o.jsx(Re,{disabled:l||t,label:`Blocklet ${u("common.title")}`,placeholder:`Blocklet ${u("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:r.blockletTitle||"",onChange:I=>{c({blockletTitle:""}),d({blockletTitle:I.target.value})},error:!!a.blockletTitle,helperText:a.blockletTitle||""}),o.jsx(Re,{required:!0,label:"Blocklet DID",fullWidth:!0,readonly:!0,disabled:!0,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-did",endAdornment:e===W.UNOWNED_DID&&o.jsx(u1,{position:"end",children:o.jsx(k1,{blocklet:s,store:R,onChangeStore:k,disabled:!r.blockletTitle||t||l,loading:l,onClick:L})})},error:!!a.projectId,helperText:a.projectId||"",value:e===W.UNOWNED_DID?"":e,sx:{mt:3}}),o.jsx(Re,{disabled:l||t,label:`Blocklet ${u("common.description")}`,placeholder:`Blocklet ${u("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:t},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletDescription||"",onChange:I=>{c({blockletDescription:""}),d({blockletDescription:I.target.value})},error:!!a.blockletDescription,helperText:a.blockletDescription||"",sx:{mt:3}})]})}),o.jsxs(z,{display:"flex",mt:3,className:"section full-width",children:[o.jsxs(z,{sx:{flex:1},children:[o.jsxs(z,{display:"flex",children:[o.jsx(X,{variant:"subtitle1",sx:{mr:2},children:u("common.logo")}),o.jsx(z,{sx:{flex:1,cursor:t?"default":"pointer"},children:o.jsx(h0,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:v||D,onClick:()=>{M()&&w.current.open()}})})]}),o.jsxs(z,{display:"flex",mt:3,children:[o.jsx(X,{variant:"subtitle1",sx:{mr:2},children:u("common.screenshot")}),o.jsxs(z,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[P.map((I,$)=>o.jsxs(z,{className:"screenshot",children:[o.jsx("img",{alt:"screenshot",src:I}),!t&&o.jsx(ce,{className:"action",onClick:()=>{const F=[...r.blockletScreenshots];F.splice($,1),d({blockletScreenshots:F})},children:o.jsx(b2,{})})]})),P.length<5&&o.jsx(z,{sx:{width:200,height:140,background:"#eee",cursor:t?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>{M()&&m.current.open()},children:"+"})]})]})]}),o.jsx(C.Suspense,{fallback:o.jsx(ge,{}),children:o.jsx(Q1,{ref:w,popup:!0,onUploadFinish:I=>{d({blockletLogo:I.data.filename}),j(""),w.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:S,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:X1,maxFileSize:J1,maxNumberOfFiles:1}}},"uploader-logo")}),o.jsx(C.Suspense,{fallback:o.jsx(ge,{}),children:o.jsx(Q1,{ref:m,popup:!0,onUploadFinish:I=>{var F;const $=r.blockletScreenshots||[];$.push((F=I.data)==null?void 0:F.filename),d({blockletScreenshots:$}),m.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:E,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:X1,maxFileSize:J1,maxNumberOfFiles:5-P.length}}},"uploader-screenshot")})]})]})}M0.propTypes={projectId:x.string.isRequired,readOnly:x.bool.isRequired,params:x.object.isRequired,setParams:x.func.isRequired,paramsErrTip:x.object.isRequired,setParamsErrTip:x.func.isRequired,loading:x.bool.isRequired,blocklet:x.object.isRequired,setLoading:x.func.isRequired,initUrl:x.object.isRequired,componentDid:x.isRequired,initLogoUrl:x.string.isRequired,setInitLogoUrl:x.func.isRequired};const Vo=se.div`
136
+ `;function k1({blocklet:e,store:t,onChangeStore:l,onClick:s,disabled:r,loading:d}){var i;const{t:a}=oe(),[c,p]=C.useState(!1),h=C.useRef(null),v=f=>{l(f),p(!1)},j=()=>{p(f=>!f)},y=f=>{h.current&&h.current.contains(f.target)||p(!1)},u=((i=e==null?void 0:e.settings)==null?void 0:i.storeList)||[];return o.jsxs(o.Fragment,{children:[o.jsxs(w2,{disabled:r,ref:h,variant:"contained",color:"primary","aria-label":"Button group with connect store",children:[o.jsxs(ie,{onClick:s,children:[d&&o.jsx(s1,{size:14,sx:{mr:.5}}),`${a("common.connect")} ${(t==null?void 0:t.name)||""}`]}),o.jsx(ie,{size:"small","aria-controls":c?"split-button-menu":void 0,"aria-expanded":c?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:j,children:o.jsx(j2,{})})]}),o.jsx(X0,{sx:{zIndex:1},open:c,anchorEl:h.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:f,placement:w})=>o.jsx(J0,{...f,style:{transformOrigin:w==="bottom"?"center top":"center bottom"},children:o.jsx(i0,{children:o.jsx(Q0,{onClickAway:y,children:o.jsx(Y0,{id:"split-button-menu",autoFocusItem:!0,children:u.map(m=>o.jsx(Z0,{selected:m.id===t.id,onClick:()=>v(m),children:m.name},m))})})})})})]})}k1.propTypes={store:x.object,blocklet:x.object,onChangeStore:x.func.isRequired,onClick:x.func.isRequired,loading:x.bool.isRequired,disabled:x.bool.isRequired};k1.defaultProps={store:null,blocklet:null};async function S0(e,t=1500,l=600,s=5e3){let r=0;await new Promise(a=>setTimeout(a,s));const d=async(a,c)=>{try{const p=await e();a(p)}catch(p){r++,r>=l?c(p):setTimeout(()=>d(a,c),t)}};return new Promise(d)}function Io(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+`${Date.now()}`.slice(-6)}function Lo(e,{did:t,projectId:l,messageId:s}){return S0(async()=>{var d;const r=await e.getProject({input:{did:t,projectId:l,messageId:s}});if(!((d=r==null?void 0:r.project)!=null&&d.blockletDid))throw new Error("Connected store not found");return r.project.blockletDid})}function Po(e,{did:t,projectId:l,storeId:s}){return S0(async()=>{var a,c;const r=await e.getProject({input:{did:t,projectId:l,messageId:""}});if(!((c=(a=r==null?void 0:r.project)==null?void 0:a.connectedStores)!=null&&c.length))throw new Error("Connected store not found");if(!r.project.connectedStores.find(p=>p.storeId===s))throw new Error("Connected store not found")})}const K1="lastWantToConnectStoreId";function To(e){var a;const[t,l]=C.useState(null),s=C.useCallback(c=>{l(c),localStorage.setItem(K1,c==null?void 0:c.id)},[l]),r=C.useMemo(()=>{var h,v;const c=localStorage.getItem(K1),p=c?(((h=e==null?void 0:e.settings)==null?void 0:h.storeList)||[]).find(j=>j.id===c):null;return p||(((v=e==null?void 0:e.settings)==null?void 0:v.storeList)||[]).find(j=>j.id===W.BLOCKLET_STORE.id)},[(a=e==null?void 0:e.settings)==null?void 0:a.storeList]);return[t||r,s]}const X1=["image/*",".jpg",".jpeg",".png",".gif",".svg"],J1=1024*1024*10,Q1=C.lazy(()=>e2(()=>import("./react-DqEsvUwg.js").then(e=>e.r),__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])).then(e=>({default:e.Uploader})));function M0({projectId:e,readOnly:t,loading:l,blocklet:s,params:r,setParams:d,paramsErrTip:a,setParamsErrTip:c,setLoading:p,initUrl:h,initLogoUrl:v,setInitLogoUrl:j,componentDid:y}){const{t:u}=oe(),{api:i}=Se(),f=r1(),w=C.useRef(null),m=C.useRef(null),[R,k]=To(s),T=C2({onOpen:()=>p(!0),onClose:()=>p(!1)}),N=async I=>{const $=setTimeout(()=>{p(!1)},2e4),F=await Lo(i,I);p(!1),clearTimeout($),window.parent.postMessage({event:"studioDialog.connected",componentDid:y},"*"),f(window.location.pathname.replace(`${W.UNOWNED_DID}/create`,`${F}/create`),{replace:!0})},L=()=>{if(!r.blockletTitle){O.error(u("blocklet.publish.errorTip.noTitle"));return}if(!R){O.error("No store found");return}const I=Io();T(async($,F)=>{var U,ne,Q;try{const G=await i.connectByStudio({input:{did:(U=s==null?void 0:s.meta)==null?void 0:U.did,blockletTitle:r==null?void 0:r.blockletTitle,storeUrl:R.url,storeId:R.id,storeName:R.name,type:((ne=r==null?void 0:r.blockletComponents)==null?void 0:ne.length)>0?"pack":"resource",componentDid:y,messageId:I,tenantScope:(h==null?void 0:h.searchParams.get("tenantScope"))||""}});if(!(G!=null&&G.url)){O.error("failed to connect to store");return}F(G.url),N({did:(Q=s==null?void 0:s.meta)==null?void 0:Q.did,projectId:"",messageId:I})}catch(G){const Z=Fe(G);O.error(Z),$.document.write(Z),p(!1)}})},S=`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${s.meta.did}/${e}/logo/upload`,E=`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${s.meta.did}/${e}/screenshot/upload`,D=r!=null&&r.blockletLogo?`${S}/${r.blockletLogo}`:`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,P=((r==null?void 0:r.blockletScreenshots)||[]).filter(Boolean).map(I=>`${E}/${I}`),M=()=>t?!1:!e||e===W.UNOWNED_DID?(O.error(u("blocklet.publish.errorTip.noFirstDid")),!1):!0;return o.jsxs(Vo,{children:[o.jsx(z,{display:"flex",className:"section",children:o.jsxs(z,{sx:{flex:1},children:[o.jsx(Re,{disabled:l||t,label:`Blocklet ${u("common.title")}`,placeholder:`Blocklet ${u("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:t},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:r.blockletTitle||"",onChange:I=>{c({blockletTitle:""}),d({blockletTitle:I.target.value})},error:!!a.blockletTitle,helperText:a.blockletTitle||""}),o.jsx(Re,{required:!0,label:"Blocklet DID",fullWidth:!0,readonly:!0,disabled:!0,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-did",endAdornment:e===W.UNOWNED_DID&&o.jsx(u1,{position:"end",children:o.jsx(k1,{blocklet:s,store:R,onChangeStore:k,disabled:!r.blockletTitle||t||l,loading:l,onClick:L})})},error:!!a.projectId,helperText:a.projectId||"",value:e===W.UNOWNED_DID?"":e,sx:{mt:3}}),o.jsx(Re,{disabled:l||t,label:`Blocklet ${u("common.description")}`,placeholder:`Blocklet ${u("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:t},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletDescription||"",onChange:I=>{c({blockletDescription:""}),d({blockletDescription:I.target.value})},error:!!a.blockletDescription,helperText:a.blockletDescription||"",sx:{mt:3}})]})}),o.jsxs(z,{display:"flex",mt:3,className:"section full-width",children:[o.jsxs(z,{sx:{flex:1},children:[o.jsxs(z,{display:"flex",children:[o.jsx(X,{variant:"subtitle1",sx:{mr:2},children:u("common.logo")}),o.jsx(z,{sx:{flex:1,cursor:t?"default":"pointer"},children:o.jsx(h0,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:v||D,onClick:()=>{M()&&w.current.open()}})})]}),o.jsxs(z,{display:"flex",mt:3,children:[o.jsx(X,{variant:"subtitle1",sx:{mr:2},children:u("common.screenshot")}),o.jsxs(z,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[P.map((I,$)=>o.jsxs(z,{className:"screenshot",children:[o.jsx("img",{alt:"screenshot",src:I}),!t&&o.jsx(ce,{className:"action",onClick:()=>{const F=[...r.blockletScreenshots];F.splice($,1),d({blockletScreenshots:F})},children:o.jsx(b2,{})})]})),P.length<5&&o.jsx(z,{sx:{width:200,height:140,background:"#eee",cursor:t?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>{M()&&m.current.open()},children:"+"})]})]})]}),o.jsx(C.Suspense,{fallback:o.jsx(ge,{}),children:o.jsx(Q1,{ref:w,popup:!0,onUploadFinish:I=>{d({blockletLogo:I.data.filename}),j(""),w.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:S,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:X1,maxFileSize:J1,maxNumberOfFiles:1}}},"uploader-logo")}),o.jsx(C.Suspense,{fallback:o.jsx(ge,{}),children:o.jsx(Q1,{ref:m,popup:!0,onUploadFinish:I=>{var F;const $=r.blockletScreenshots||[];$.push((F=I.data)==null?void 0:F.filename),d({blockletScreenshots:$}),m.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:E,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:X1,maxFileSize:J1,maxNumberOfFiles:5-P.length}}},"uploader-screenshot")})]})]})}M0.propTypes={projectId:x.string.isRequired,readOnly:x.bool.isRequired,params:x.object.isRequired,setParams:x.func.isRequired,paramsErrTip:x.object.isRequired,setParamsErrTip:x.func.isRequired,loading:x.bool.isRequired,blocklet:x.object.isRequired,setLoading:x.func.isRequired,initUrl:x.object.isRequired,componentDid:x.isRequired,initLogoUrl:x.string.isRequired,setInitLogoUrl:x.func.isRequired};const Vo=se.div`
137
137
  margin-top: 24px;
138
138
  .screenshot {
139
139
  margin-bottom: 16px;
@@ -164,7 +164,7 @@ import{ao as H0,j as o,aD as te,cC as o0,aG as B,ff as B1,aF as xe,aB as Te,aC a
164
164
  width: 100%; /* 图像宽度填充容器 */
165
165
  height: auto; /* 图像高度自适应 */
166
166
  }
167
- `;var S1={},No=ke;Object.defineProperty(S1,"__esModule",{value:!0});var I0=S1.default=void 0,_o=No(ze()),Do=o;I0=S1.default=(0,_o.default)((0,Do.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l4.65-4.65c.2-.2.51-.2.71 0L17 13z"}),"CloudUploadRounded");function M1({blocklet:e,releaseId:t,connectedStores:l,projectId:s,releaseType:r,publishedStoreIds:d,onPublish:a,onDelete:c,projectType:p,componentDid:h,onOpenConnectStore:v}){var w,m,R;const{t:j}=oe(),y=((w=e==null?void 0:e.settings)==null?void 0:w.storeList)||[],u=C.useMemo(()=>l!=null&&l.length?l==null?void 0:l.reduce((k,T)=>(k[T.storeId]=T,k),{}):{},[l]),i=(m=e==null?void 0:e.meta)==null?void 0:m.did,f=()=>{};return o.jsxs(t2,{children:[y==null?void 0:y.map(k=>o.jsx(M2,{"data-cy":"store-switch",children:o.jsx(I2,{children:o.jsx(R2,{releaseId:t,projectId:s,releaseType:r,kind:"publish",teamDid:i,store:k,published:(d==null?void 0:d.indexOf(k.id))>-1,connectedStore:u[k.id],onPublish:a,onDelete:c,onOpenConnectStore:v})})},k.url)),!!(y!=null&&y.length)&&o.jsx(z2,{type:"info",style:{width:"100%"},children:o.jsxs(z,{color:k2[400],component:"a",href:p==="pack"?"https://www.arcblock.io/docs/blocklet-developer/en/5PXToZve-5IXAN1bc8rkpxAc":"https://www.arcblock.io/docs/blocklet-developer/en/hB5VWLfg9VnbWsL1JGLuLUfW",target:"_blank",display:"flex",alignItems:"center",rel:"noreferrer",children:[j(p==="pack"?"blocklet.publish.whyCantSeeInStore":"blocklet.publish.whyCantSeeResourceBlockletInStore"),o.jsx(S2,{sx:{marginLeft:1}})]})}),h&&((R=window.blocklet)==null?void 0:R.tenantMode)===fe.BLOCKLET_TENANT_MODES.MULTIPLE?null:o.jsx(y2,{onAdd:f,teamDid:i,storeList:y})]})}M1.propTypes={blocklet:x.object.isRequired,projectId:x.string.isRequired,releaseId:x.string.isRequired,releaseType:x.string.isRequired,onPublish:x.func,onDelete:x.func,publishedStoreIds:x.arrayOf(x.string),connectedStores:x.arrayOf(x.object).isRequired,projectType:x.string,componentDid:x.string,onOpenConnectStore:x.func};M1.defaultProps={projectType:"",componentDid:"",publishedStoreIds:[],onPublish:()=>{},onDelete:()=>{},onOpenConnectStore:()=>{}};const L0=({params:e,isSelectedResources:t,projectId:l,status:s,t:r})=>{const d=[];return e.blockletTitle||d.push({param:"blockletTitle",message:r("blocklet.publish.errorTip.noTitle")}),(!l||l===W.UNOWNED_DID)&&d.push({param:"projectId",message:r("blocklet.publish.errorTip.noDid")}),t||d.push({param:"blockletResources",message:r("blocklet.publish.errorTip.noResource")}),e.blockletVersion?Ce.valid(e.blockletVersion)||d.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.inValidVersion")}):d.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.noVersion")}),s===fe.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||d.push({param:"blockletDescription",message:r("blocklet.publish.errorTip.noDescription")}),e.note||d.push({param:"note",message:r("blocklet.publish.errorTip.noNote")})),d.length?d:null},Bo=({params:e,isSelectedResources:t,step:l,t:s,projectId:r})=>{if(l===0){if(!e.blockletTitle)return s("blocklet.publish.errorTip.noTitle");if(!r||r===W.UNOWNED_DID)return s("blocklet.publish.errorTip.noDid");if(!e.blockletDescription)return s("blocklet.publish.errorTip.noDescription")}if(l===2&&!t)return s("blocklet.publish.errorTip.noResource");if(l>=4){if(!e.blockletVersion)return s("blocklet.publish.errorTip.noVersion");if(!Ce.valid(e.blockletVersion))return s("blocklet.publish.errorTip.inValidVersion");if(!e.note)return s("blocklet.publish.errorTip.noNote")}return""},Eo=async e=>{if(typeof e!="string")throw new Error("URL must be a string");try{const t=e.split("/").pop().split("?")[0],s=await(await fetch(e)).blob();return new File([s],t,{type:s.type})}catch{throw new Error("Failed to convert Logo URL to file")}};function*Ao(e,t){let l=0;for(;l<e.size;)yield e.slice(l,l+t),l+=t}const Ho=async({did:e,projectId:t,uploadType:l="logo",imageUrl:s})=>{const r=await Eo(s),d=new FormData;d.append("file",r);const a={uploaderId:"Uploader",relativePath:encodeURIComponent(r.name),name:encodeURIComponent(r.name),type:r.type},p=(await E1.post(Le(W.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/project",e,t,l,"upload"),d,{headers:{"Tus-Resumable":"1.0.0","Upload-Length":r.size,"X-Uploader-File-Ext":r.name.split(".").pop(),"Upload-Metadata":Object.keys(a).map(y=>`${y} ${btoa(a[y])}`).join(",")}})).headers.location,h=5*1024*1024;let v=0,j="";for(const y of Ao(r,h)){const u=await E1.patch(Le(W.WELLKNOWN_SERVICE_PATH_PREFIX,p),y,{headers:{"Tus-Resumable":"1.0.0","Upload-Offset":v,"Content-Type":"application/offset+octet-stream"}});v+=y.size,j=u.data.filename}return j};var t0;const Qe=(t0=window.env)==null?void 0:t0.serverEndpoint;function P0({projectId:e,params:t,setParamsErrTip:l,initUrl:s,setParams:r,mode:d,loading:a,blocklet:c,release:p,isPublished:h,releaseId:v,getData:j,getRelease:y,componentDid:u,resourceRelateComponents:i,disabledSelectComponents:f,saveSelectedEventsRef:w,isSelectedResources:m,initLogoUrl:R,setLoading:k,releaseUsedLast:T,setReleaseUsedLast:N,projectType:L}){var ve;const{t:S,locale:E}=oe(),{api:D}=Se(),P=r1(),[M,I]=C.useState(!1),[$,F]=C.useState(),U=Be(q=>q.breakpoints.down("md")),ne=()=>{window.parent.postMessage({event:"studioDialog.uploaded",componentDid:u},"*"),y()},Q=async q=>{var Y,re,ue;const J=L0({params:t,isSelectedResources:m,projectId:e,status:q,t:S});if(J){O.error(J.map(V=>V.message).join("; ")),l(J.reduce((V,H)=>({...V,[H.param]:H.message}),{}));return}const A={...t},ee=((c==null?void 0:c.children)||[]).reduce((V,H)=>(V[H.meta.did]=!0,V),{});if(Object.keys(i).forEach(V=>{if(!ee[V])return;let H=!1;f||A.blockletComponents.forEach(le=>{le.did===V&&(le.included=!0,le.required=!0,H=!0)}),H||A.blockletComponents.push({did:V,included:!0,required:!0})}),A.blockletVersion=Ce.valid(A.blockletVersion),!A.blockletVersion){O.error("Invalid Blocklet Version"),l({blockletVersion:"Invalid Blocklet Version"});return}if(R)try{const V=await Ho({did:c.meta.did,projectId:e,imageUrl:R});A.blockletLogo=V,r({blockletLogo:V})}catch(V){O.error(V.message);return}k(!0);const de=Object.keys(w.current);try{await p0(de.map(V=>()=>{const H=w.current[V];return ko({api:D,locale:E,projectId:e,releaseId:T?"":v,appDid:c.meta.did,component:H.component,resources:H.resources,initUrl:s})}),{concurrency:2})}catch(V){O.error(((ue=(re=(Y=V==null?void 0:V.response)==null?void 0:Y.data)==null?void 0:re.error)==null?void 0:ue.message)||V.message),k(!1),l({resources:"Invalid save the resource"});return}A.blockletTitle=(A.blockletTitle||"").trim(),A.blockletDescription=(A.blockletDescription||"").trim(),A.blockletIntroduction=(A.blockletIntroduction||"").trim(),A.note=(A.note||"").trim(),A.blockletComponents=((A==null?void 0:A.blockletComponents)||[]).filter(V=>V.included).map(V=>i1(V,["did","required"])).map(JSON.stringify),k(!0),D.createRelease({input:{...A,did:c.meta.did,projectId:e,releaseId:T?"":v,status:q}}).then(V=>{var H;if(q==="draft"?O.success(S("blocklet.publish.saveDraftSuccess")):(N(!1),O.success(S("blocklet.publish.createReleaseSuccess")),window.parent.postMessage({event:"studioDialog.released",componentDid:u},"*")),d==="create"||d==="new-release"){const le=(H=V==null?void 0:V.release)==null?void 0:H.id;P(`../${e}/view/${le}`,{replace:!0})}else y()}).catch(V=>{const H=Fe(V);O.error(H),/resource.*empty/.test(H)&&l({blockletResource:H})}).finally(()=>{k(!1)})},G=async q=>{await Po(D,q),j()};let Z=null;if(h&&Qe){const q=Le(Qe,`/api/project/${c.meta.did}/${e}/${v}/release/blocklet.json`);if(L==="pack"){const J=new URL(Qe);J.pathname=Le(J.pathname,"/launch-blocklet/agreement"),J.searchParams.set("blocklet_meta_url",q),Z=o.jsx("a",{href:J.href,target:"_blank",rel:"noreferrer",children:U?o.jsx(ce,{color:"primary",sx:{mr:1},onClick:()=>F(q),children:o.jsx(Ye,{icon:"ic:baseline-install-desktop"})}):o.jsx(ie,{variant:"outlined",sx:{mr:1},onClick:()=>F(q),children:S("common.install")})})}else Z=o.jsxs(o.Fragment,{children:[U?o.jsx(ce,{color:"primary",sx:{mr:1},onClick:()=>F(q),children:o.jsx(Ye,{icon:"ic:baseline-install-desktop"})}):o.jsx(ie,{variant:"outlined",sx:{mr:1},onClick:()=>F(q),children:S("blocklet.publish.copyInstallUrl")}),o.jsx(o2,{fullWidth:!0,maxWidth:"sm",open:$,onClose:()=>F(""),children:o.jsxs(z,{sx:{py:5,px:4,wordBreak:"break-all"},children:[o.jsx(X,{variant:"h6",sx:{mb:2},children:S("blocklet.publish.installResourceTip")}),o.jsx(L2,{children:$}),o.jsxs(X,{sx:{mt:2},children:[S("blocklet.publish.installResourceTip2"),o.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:S("blocklet.publish.installResourceHelp")})]})]})})]})}return o.jsxs(o.Fragment,{children:[o.jsx(Oo,{className:"sticky-header",children:o.jsxs(z,{display:"flex",alignItems:"center",flexDirection:"row",children:[o.jsxs(v0,{className:"breadcrumbs","aria-label":"breadcrumb",children:[o.jsx(ae,{to:"../",children:S("common.blockletStudio")}),e===W.UNOWNED_DID?o.jsx(X,{color:"text.primary",children:o.jsx(ye,{maxLength:U?6:30,children:(t==null?void 0:t.blockletTitle)||"Blocklet"})}):o.jsx(ae,{to:`../${e}`,children:o.jsx(ye,{maxLength:U?6:30,children:(t==null?void 0:t.blockletTitle)||"Blocklet"})}),o.jsx(X,{color:"text.primary",children:d==="create"?S("common.create"):(t==null?void 0:t.blockletVersion)||S("common.edit")})]}),o.jsx(z,{flex:"1"}),!h&&o.jsxs(ie,{variant:"contained",disabled:a,style:{marginRight:12},onClick:()=>Q(fe.PROJECT.RELEASE_STATUS.published),children:[a&&o.jsx(s1,{size:14,sx:{mr:.5},color:"inherit"}),S("common.release")]}),h&&o.jsxs(o.Fragment,{children:[Z,o.jsx("a",{href:Le(`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${c.meta.did}/${e}/${v}/download/${(p.files||[])[0]}`),children:U?null:o.jsx(ie,{variant:"outlined",sx:{mr:1},children:S("common.download")})}),o.jsxs(ie,{variant:"contained",onClick:()=>I(!0),children:[o.jsx(I0,{style:{fontSize:"1.3em",marginRight:4}}),S(U?"common.upload":"common.uploadToStore")]})]})]})}),o.jsx(l2,{title:S("common.connectToStore"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:M,onClose:()=>I(!1),children:o.jsx(M1,{projectType:L,blocklet:c,releaseType:((ve=t==null?void 0:t.blockletComponents)==null?void 0:ve.length)>0?"pack":"resource",projectId:e,releaseId:v,componentDid:u,onPublish:ne,onOpenConnectStore:G,onDelete:j,connectedStores:t.connectedStores||[],publishedStoreIds:p==null?void 0:p.publishedStoreIds})})]})}P0.propTypes={projectId:x.string.isRequired,params:x.object.isRequired,mode:x.string.isRequired,loading:x.bool.isRequired,blocklet:x.object.isRequired,release:x.object.isRequired,isPublished:x.bool.isRequired,releaseId:x.string.isRequired,getData:x.func.isRequired,getRelease:x.func.isRequired,componentDid:x.string.isRequired,resourceRelateComponents:x.object.isRequired,disabledSelectComponents:x.bool.isRequired,saveSelectedEventsRef:x.object.isRequired,isSelectedResources:x.bool.isRequired,initLogoUrl:x.string.isRequired,setLoading:x.func.isRequired,releaseUsedLast:x.bool.isRequired,setReleaseUsedLast:x.func.isRequired,projectType:x.string.isRequired,setParamsErrTip:x.func.isRequired,setParams:x.func.isRequired,initUrl:x.object.isRequired};const Oo=se.div`
167
+ `;var S1={},No=ke;Object.defineProperty(S1,"__esModule",{value:!0});var I0=S1.default=void 0,_o=No(ze()),Do=o;I0=S1.default=(0,_o.default)((0,Do.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l4.65-4.65c.2-.2.51-.2.71 0L17 13z"}),"CloudUploadRounded");function M1({blocklet:e,releaseId:t,connectedStores:l,projectId:s,releaseType:r,publishedStoreIds:d,onPublish:a,onDelete:c,projectType:p,componentDid:h,onOpenConnectStore:v}){var w,m,R;const{t:j}=oe(),y=((w=e==null?void 0:e.settings)==null?void 0:w.storeList)||[],u=C.useMemo(()=>l!=null&&l.length?l==null?void 0:l.reduce((k,T)=>(k[T.storeId]=T,k),{}):{},[l]),i=(m=e==null?void 0:e.meta)==null?void 0:m.did,f=()=>{};return o.jsxs(t2,{children:[y==null?void 0:y.map(k=>o.jsx(M2,{"data-cy":"store-switch",children:o.jsx(I2,{children:o.jsx(R2,{releaseId:t,projectId:s,releaseType:r,kind:"publish",teamDid:i,store:k,published:(d==null?void 0:d.indexOf(k.id))>-1,connectedStore:u[k.id],onPublish:a,onDelete:c,onOpenConnectStore:v})})},k.url)),!!(y!=null&&y.length)&&o.jsx(z2,{type:"info",style:{width:"100%"},children:o.jsxs(z,{color:k2[400],component:"a",href:p==="pack"?"https://www.arcblock.io/docs/blocklet-developer/en/5PXToZve-5IXAN1bc8rkpxAc":"https://www.arcblock.io/docs/blocklet-developer/en/hB5VWLfg9VnbWsL1JGLuLUfW",target:"_blank",display:"flex",alignItems:"center",rel:"noreferrer",children:[j(p==="pack"?"blocklet.publish.whyCantSeeInStore":"blocklet.publish.whyCantSeeResourceBlockletInStore"),o.jsx(S2,{sx:{marginLeft:1}})]})}),h&&((R=window.blocklet)==null?void 0:R.tenantMode)===fe.BLOCKLET_TENANT_MODES.MULTIPLE?null:o.jsx(y2,{onAdd:f,teamDid:i,storeList:y})]})}M1.propTypes={blocklet:x.object.isRequired,projectId:x.string.isRequired,releaseId:x.string.isRequired,releaseType:x.string.isRequired,onPublish:x.func,onDelete:x.func,publishedStoreIds:x.arrayOf(x.string),connectedStores:x.arrayOf(x.object).isRequired,projectType:x.string,componentDid:x.string,onOpenConnectStore:x.func};M1.defaultProps={projectType:"",componentDid:"",publishedStoreIds:[],onPublish:()=>{},onDelete:()=>{},onOpenConnectStore:()=>{}};const L0=({params:e,isSelectedResources:t,projectId:l,status:s,t:r})=>{const d=[];return e.blockletTitle||d.push({param:"blockletTitle",message:r("blocklet.publish.errorTip.noTitle")}),(!l||l===W.UNOWNED_DID)&&d.push({param:"projectId",message:r("blocklet.publish.errorTip.noDid")}),t||d.push({param:"blockletResources",message:r("blocklet.publish.errorTip.noResource")}),e.blockletVersion?Ce.valid(e.blockletVersion)||d.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.inValidVersion")}):d.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.noVersion")}),s===fe.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||d.push({param:"blockletDescription",message:r("blocklet.publish.errorTip.noDescription")}),e.note||d.push({param:"note",message:r("blocklet.publish.errorTip.noNote")})),d.length?d:null},Bo=({params:e,isSelectedResources:t,step:l,t:s,projectId:r})=>{if(l===0){if(!e.blockletTitle)return s("blocklet.publish.errorTip.noTitle");if(!r||r===W.UNOWNED_DID)return s("blocklet.publish.errorTip.noDid");if(!e.blockletDescription)return s("blocklet.publish.errorTip.noDescription")}if(l===2&&!t)return s("blocklet.publish.errorTip.noResource");if(l>=4){if(!e.blockletVersion)return s("blocklet.publish.errorTip.noVersion");if(!Ce.valid(e.blockletVersion))return s("blocklet.publish.errorTip.inValidVersion");if(!e.note)return s("blocklet.publish.errorTip.noNote")}return""},Eo=async e=>{if(typeof e!="string")throw new Error("URL must be a string");try{const t=e.split("/").pop().split("?")[0],s=await(await fetch(e)).blob();return new File([s],t,{type:s.type})}catch{throw new Error("Failed to convert Logo URL to file")}};function*Ao(e,t){let l=0;for(;l<e.size;)yield e.slice(l,l+t),l+=t}const Ho=async({did:e,projectId:t,uploadType:l="logo",imageUrl:s})=>{const r=await Eo(s);new FormData().append("file",r);const a={uploaderId:"Uploader",relativePath:encodeURIComponent(r.name),name:encodeURIComponent(r.name),type:r.type},p=(await E1.post(Le(W.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/project",e,t,l,"upload"),null,{headers:{"Tus-Resumable":"1.0.0","Upload-Length":r.size,"X-Uploader-File-Ext":r.name.split(".").pop(),"Upload-Metadata":Object.keys(a).map(y=>`${y} ${btoa(a[y])}`).join(",")}})).headers.location,h=2*1024*1024;let v=0,j="";for(const y of Ao(r,h)){const u=await E1.patch(Le(W.WELLKNOWN_SERVICE_PATH_PREFIX,p),y,{headers:{"Tus-Resumable":"1.0.0","Upload-Offset":v,"Content-Type":"application/offset+octet-stream"}});v+=y.size,j=u.data.filename}return j};var t0;const Qe=(t0=window.env)==null?void 0:t0.serverEndpoint;function P0({projectId:e,params:t,setParamsErrTip:l,initUrl:s,setParams:r,mode:d,loading:a,blocklet:c,release:p,isPublished:h,releaseId:v,getData:j,getRelease:y,componentDid:u,resourceRelateComponents:i,disabledSelectComponents:f,saveSelectedEventsRef:w,isSelectedResources:m,initLogoUrl:R,setLoading:k,releaseUsedLast:T,setReleaseUsedLast:N,projectType:L}){var ve;const{t:S,locale:E}=oe(),{api:D}=Se(),P=r1(),[M,I]=C.useState(!1),[$,F]=C.useState(),U=Be(q=>q.breakpoints.down("md")),ne=()=>{window.parent.postMessage({event:"studioDialog.uploaded",componentDid:u},"*"),y()},Q=async q=>{var Y,re,ue;const J=L0({params:t,isSelectedResources:m,projectId:e,status:q,t:S});if(J){O.error(J.map(V=>V.message).join("; ")),l(J.reduce((V,H)=>({...V,[H.param]:H.message}),{}));return}const A={...t},ee=((c==null?void 0:c.children)||[]).reduce((V,H)=>(V[H.meta.did]=!0,V),{});if(Object.keys(i).forEach(V=>{if(!ee[V])return;let H=!1;f||A.blockletComponents.forEach(le=>{le.did===V&&(le.included=!0,le.required=!0,H=!0)}),H||A.blockletComponents.push({did:V,included:!0,required:!0})}),A.blockletVersion=Ce.valid(A.blockletVersion),!A.blockletVersion){O.error("Invalid Blocklet Version"),l({blockletVersion:"Invalid Blocklet Version"});return}if(k(!0),R)try{const V=await Ho({did:c.meta.did,projectId:e,imageUrl:R});A.blockletLogo=V,r({blockletLogo:V})}catch(V){O.error(V.message),k(!1);return}const de=Object.keys(w.current);try{await p0(de.map(V=>()=>{const H=w.current[V];return ko({api:D,locale:E,projectId:e,releaseId:T?"":v,appDid:c.meta.did,component:H.component,resources:H.resources,initUrl:s})}),{concurrency:2})}catch(V){O.error(((ue=(re=(Y=V==null?void 0:V.response)==null?void 0:Y.data)==null?void 0:re.error)==null?void 0:ue.message)||V.message),k(!1),l({resources:"Invalid save the resource"});return}A.blockletTitle=(A.blockletTitle||"").trim(),A.blockletDescription=(A.blockletDescription||"").trim(),A.blockletIntroduction=(A.blockletIntroduction||"").trim(),A.note=(A.note||"").trim(),A.blockletComponents=((A==null?void 0:A.blockletComponents)||[]).filter(V=>V.included).map(V=>i1(V,["did","required"])).map(JSON.stringify),k(!0),D.createRelease({input:{...A,did:c.meta.did,projectId:e,releaseId:T?"":v,status:q}}).then(V=>{var H;if(q==="draft"?O.success(S("blocklet.publish.saveDraftSuccess")):(N(!1),O.success(S("blocklet.publish.createReleaseSuccess")),window.parent.postMessage({event:"studioDialog.released",componentDid:u},"*")),d==="create"||d==="new-release"){const le=(H=V==null?void 0:V.release)==null?void 0:H.id;P(`../${e}/view/${le}`,{replace:!0})}else y()}).catch(V=>{const H=Fe(V);O.error(H),/resource.*empty/.test(H)&&l({blockletResource:H})}).finally(()=>{k(!1)})},G=async q=>{await Po(D,q),j()};let Z=null;if(h&&Qe){const q=Le(Qe,`/api/project/${c.meta.did}/${e}/${v}/release/blocklet.json`);if(L==="pack"){const J=new URL(Qe);J.pathname=Le(J.pathname,"/launch-blocklet/agreement"),J.searchParams.set("blocklet_meta_url",q),Z=o.jsx("a",{href:J.href,target:"_blank",rel:"noreferrer",children:U?o.jsx(ce,{color:"primary",sx:{mr:1},onClick:()=>F(q),children:o.jsx(Ye,{icon:"ic:baseline-install-desktop"})}):o.jsx(ie,{variant:"outlined",sx:{mr:1},onClick:()=>F(q),children:S("common.install")})})}else Z=o.jsxs(o.Fragment,{children:[U?o.jsx(ce,{color:"primary",sx:{mr:1},onClick:()=>F(q),children:o.jsx(Ye,{icon:"ic:baseline-install-desktop"})}):o.jsx(ie,{variant:"outlined",sx:{mr:1},onClick:()=>F(q),children:S("blocklet.publish.copyInstallUrl")}),o.jsx(o2,{fullWidth:!0,maxWidth:"sm",open:$,onClose:()=>F(""),children:o.jsxs(z,{sx:{py:5,px:4,wordBreak:"break-all"},children:[o.jsx(X,{variant:"h6",sx:{mb:2},children:S("blocklet.publish.installResourceTip")}),o.jsx(L2,{children:$}),o.jsxs(X,{sx:{mt:2},children:[S("blocklet.publish.installResourceTip2"),o.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:S("blocklet.publish.installResourceHelp")})]})]})})]})}return o.jsxs(o.Fragment,{children:[o.jsx(Oo,{className:"sticky-header",children:o.jsxs(z,{display:"flex",alignItems:"center",flexDirection:"row",children:[o.jsxs(v0,{className:"breadcrumbs","aria-label":"breadcrumb",children:[o.jsx(ae,{to:"../",children:S("common.blockletStudio")}),e===W.UNOWNED_DID?o.jsx(X,{color:"text.primary",children:o.jsx(ye,{maxLength:U?6:30,children:(t==null?void 0:t.blockletTitle)||"Blocklet"})}):o.jsx(ae,{to:`../${e}`,children:o.jsx(ye,{maxLength:U?6:30,children:(t==null?void 0:t.blockletTitle)||"Blocklet"})}),o.jsx(X,{color:"text.primary",children:d==="create"?S("common.create"):(t==null?void 0:t.blockletVersion)||S("common.edit")})]}),o.jsx(z,{flex:"1"}),!h&&o.jsxs(ie,{variant:"contained",disabled:a,style:{marginRight:12},onClick:()=>Q(fe.PROJECT.RELEASE_STATUS.published),children:[a&&o.jsx(s1,{size:14,sx:{mr:.5},color:"inherit"}),S("common.release")]}),h&&o.jsxs(o.Fragment,{children:[Z,o.jsx("a",{href:Le(`${W.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${c.meta.did}/${e}/${v}/download/${(p.files||[])[0]}`),children:U?null:o.jsx(ie,{variant:"outlined",sx:{mr:1},children:S("common.download")})}),o.jsxs(ie,{variant:"contained",onClick:()=>I(!0),children:[o.jsx(I0,{style:{fontSize:"1.3em",marginRight:4}}),S(U?"common.upload":"common.uploadToStore")]})]})]})}),o.jsx(l2,{title:S("common.connectToStore"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:M,onClose:()=>I(!1),children:o.jsx(M1,{projectType:L,blocklet:c,releaseType:((ve=t==null?void 0:t.blockletComponents)==null?void 0:ve.length)>0?"pack":"resource",projectId:e,releaseId:v,componentDid:u,onPublish:ne,onOpenConnectStore:G,onDelete:j,connectedStores:t.connectedStores||[],publishedStoreIds:p==null?void 0:p.publishedStoreIds})})]})}P0.propTypes={projectId:x.string.isRequired,params:x.object.isRequired,mode:x.string.isRequired,loading:x.bool.isRequired,blocklet:x.object.isRequired,release:x.object.isRequired,isPublished:x.bool.isRequired,releaseId:x.string.isRequired,getData:x.func.isRequired,getRelease:x.func.isRequired,componentDid:x.string.isRequired,resourceRelateComponents:x.object.isRequired,disabledSelectComponents:x.bool.isRequired,saveSelectedEventsRef:x.object.isRequired,isSelectedResources:x.bool.isRequired,initLogoUrl:x.string.isRequired,setLoading:x.func.isRequired,releaseUsedLast:x.bool.isRequired,setReleaseUsedLast:x.func.isRequired,projectType:x.string.isRequired,setParamsErrTip:x.func.isRequired,setParams:x.func.isRequired,initUrl:x.object.isRequired};const Oo=se.div`
168
168
  .sticky-header {
169
169
  margin-top: -12px;
170
170
  padding: 12px 0;
@@ -1,4 +1,4 @@
1
- import{b$ as e,P as o,r as u,j as p,c0 as h,c1 as x,bj as b,T as w}from"./index-BvsLirqD.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=x(n,s,["style"]),{type:r,content:l,children:m,style:y,className:g,forwardedRef:d,...f}=t,{palette:a}=b(),i=Object.assign({},c[r]||c.primary,y);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:g,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=h(w)`
1
+ import{b$ as e,P as o,r as u,j as p,c0 as h,c1 as x,bj as b,T as w}from"./index-BZDKSnZd.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=x(n,s,["style"]),{type:r,content:l,children:m,style:y,className:g,forwardedRef:d,...f}=t,{palette:a}=b(),i=Object.assign({},c[r]||c.primary,y);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:g,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=h(w)`
2
2
  && {
3
3
  display: inline-flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{aV as Y,aM as ce,u as E,r as v,eG as Ze,bY as ie,aq as Z,f3 as Pe,j as e,T as x,B as u,I as re,ap as Qe,a1 as W,l as q,b8 as de,q as I,P as p,Z as ve,a0 as He,gj as Ve,X as _,Y as $,aQ as V,f2 as Ke,az as Xe,aO as We,$ as Ge,O as Ye,be as je,dI as qe,cp as _e,a9 as $e,E as L,bf as H,a as et,gk as tt}from"./index-BvsLirqD.js";import{S as ye}from"./index-BgwjaAEK.js";import{D as st,A as ot,f as le}from"./index-D4zAIKo5.js";import"./api-BEakJrYk.js";import{u as Ie,P as nt}from"./use-blocklet-info-for-connect-did-spaces-DXCdpGY7.js";import{e as G,f as Ae,h as at,i as Se,j as it,k as rt,l as Ce,d as lt}from"./spaces-BFbdkHH8.js";import{g as z}from"./dashboard-gEbtoKpZ.js";import{T as ct}from"./TextField-C5D15Ugf.js";import{I as dt}from"./index-zD9-bZuV.js";import{E as Be}from"./Link-5b2HVhJS.js";import{W as pt}from"./did-address-Etx4oDtC.js";import{S as ke}from"./switch-control-DBbuPW4q.js";import{d as mt}from"./MoreVert-BEZvlzF-.js";import{d as ht}from"./DeleteOutline-BaCf1XtY.js";import{L as K,a as X}from"./ListItemText-BWOzBiMo.js";import{e as ut}from"./mode-B2dWMeTO.js";import{T as ae}from"./index-DUsylIII.js";import{D as ft}from"./index-B-MiDNZJ.js";import"./ExpandMore-Dw5iC69g.js";import"./ButtonGroup-CYyG5u2K.js";import"./CloseOutlined-DW47mLri.js";import"./index-BvTERmRP.js";import"./index-QUyszNOn.js";import"./useLocalStorage-CTTJpYi8.js";import"./confirm-Bp1YUyru.js";import"./Alert-DtzaUssX.js";import"./useSlot-C0EbF40A.js";import"./Delete-BeboIHFa.js";import"./PlayArrow-Bep57q0l.js";import"./RadioGroup-DjYscIah.js";import"./FormControlLabel-J_nG7S9r.js";import"./useFormControl-D74Gykn0.js";import"./FormGroup-B2XKvk2U.js";import"./Avatar-CUpS4Ilr.js";import"./session-CVIETtuz.js";import"./permission-DWzaHXWC.js";import"./useAsync-BIhajT1g.js";import"./useSetState-B8DWdra7.js";import"./fallback-CIBVmJin.js";import"./index-DWdOmPJK.js";import"./Toolbar-CSkIjhiI.js";import"./Hidden-BLdLc8h9.js";import"./MoreHoriz-D2VMH51n.js";import"./index-DA6RGcPS.js";import"./selector-BEck9RSE.js";import"./FormControl-CKJrH8LS.js";import"./InputLabel-lATzw7NR.js";import"./Select-B59j8vqU.js";import"./index-B4NnGwvJ.js";import"./FilterList-B_AYjksa.js";import"./toPropertyKey-hKuLU48H.js";import"./LastPage-2k34T11k.js";import"./index-QBptYklD.js";import"./redux-CTTkxs7M.js";import"./Search-DFMpNFHb.js";import"./index-kTvctsLd.js";function ee({...t}){const{blocklet:s}=Y(),{info:d}=ce(),{t:a,locale:i}=E(),[h,o]=v.useState(""),[r,j]=v.useState(!1),[c,m]=v.useState(!1),[k,y]=v.useState(""),f=Ie({blocklet:s}),g=Ze(d),{spaceGateways:B,addSpaceGateway:se}=z(),[D,M]=v.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:ie.create({baseURL:Z(window.location.origin,Pe())}).get,messages:{title:a("storage.spaces.provideNFT.title",{appName:f.appName},i),scan:a("storage.spaces.provideNFT.scan",{appName:f.appName},i),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.provideNFT.success")})},onClose:()=>{M(l=>({...l,open:!1}))}}),[n,J]=v.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:f.appName},i),scan:a("storage.spaces.authorize.scan",{appName:f.appName},i),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{J(l=>({...l,open:!1}))}}),b=async({endpoint:l,name:A,did:S})=>{const R=await Ae(l);if(!await Se(R)){I.error(a("storage.spaces.gateway.add.invalidUrl"));return}if(B.some(P=>P.endpoint===l)){I.error(a("storage.spaces.gateway.add.duplicate",{name:A}));return}const O={name:A,did:S,url:R,endpoint:l};await se(O,l),I.success(a("storage.spaces.connectedWithName",{name:(O==null?void 0:O.name)??"DID Spaces"}))},T=async(l,A)=>{try{if(!de.isEmpty(l.spaceGateway))await b(A(l.spaceGateway));else{const S=A(l.endpoint),R=l.space?A(l.space):{};await b({endpoint:S,did:G(S),name:"DID Space",...R})}J(S=>({...S,open:!1})),o(null),M(S=>({...S,open:!1}))}catch(S){console.error(S),I.error(le(S))}},C=()=>{M(l=>({...l,open:!0,extraParams:{appPid:s.appPid,appName:f.appName,appDescription:f.appDescription,scopes:f.scopes,appUrl:f.appUrl,referrer:f.referrer,nodeDid:d.did}}))},w=async()=>{try{j(!0);const l=await Ae(h),A=at(l),S=new URL(l).searchParams.get("spaceDid");if(!await Se(A))throw new Error(a("storage.spaces.gateway.add.invalidUrl"));J(R=>({...R,open:!0,prefix:Z(A,"space/api/did"),baseUrl:new URL(A).origin,checkFn:ie.create({baseURL:Z(A,"space")}).get,extraParams:{appDid:f.appDid,appName:f.appName,appDescription:f.appDescription,scopes:f.scopes,appUrl:f.appUrl,referrer:f.referrer,nodeDid:d.did,spaceDid:S}})),m(!1)}catch(l){const A=`${a("storage.spaces.gateway.add.failed",i)}: ${le(l)}`;y(A)}finally{j(!1)}};return e.jsxs(u,{children:[e.jsx(ye,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:C,menu:[e.jsx(ye.Item,{sx:{textTransform:"none"},onClick:()=>m(!0),size:"small",...t,children:a("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(x,{sx:{fontWeight:"bold",textTransform:"none"},children:a("storage.spaces.connect.useWallet")})}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:D.prefix,open:D.open,popup:!0,action:D.action,webWalletUrl:g,baseUrl:D.baseUrl,checkFn:D.checkFn,onSuccess:T,onClose:D.onClose,checkTimeout:D.checkTimeout,extraParams:D.extraParams,messages:D.messages,locale:i}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:n.prefix,open:n.open,popup:!0,action:n.action,baseUrl:n.baseUrl,checkFn:n.checkFn,onSuccess:T,onClose:n.onClose,checkTimeout:n.checkTimeout,extraParams:n.extraParams,messages:n.messages,locale:i}),e.jsxs(Qe,{title:a("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:c,onClose:()=>m(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(W,{onClick:l=>{l.stopPropagation(),m(!1)},color:"inherit",children:a("common.cancel")}),e.jsxs(W,{onClick:w,color:"primary",disabled:r||!h,variant:"contained",autoFocus:!0,children:[r&&e.jsx(q,{size:16}),a("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(st,{component:"div",children:e.jsx(x,{component:"div",children:e.jsx(ct,{label:a("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:h,onChange:l=>{y(null),o(l.target.value)},disabled:r,onKeyPress:async l=>{l.key==="Enter"&&await w()},autoFocus:!0})})})}),!!k&&e.jsx(ot,{type:"error",style:{width:"100%"},children:k})]})]})}ee.propTypes={};ee.defaultProps={};function te({blocklet:t,...s}){const{t:d}=v.useContext(He);if(!t.diskInfo)return e.jsx(x,{children:d("blocklet.diskInfo.empty")});const a=(o,r,j)=>e.jsxs(x,{children:[j?e.jsx(Be,{style:{cursor:"pointer"},onClick:j,underline:"hover",children:o}):o," ",e.jsx("strong",{children:r?Ve(r):"empty"})]}),i=t.environments.reduce((o,r)=>(o[r.key]=r.value,o),{}),h=[{key:"appDir",name:d("blocklet.diskInfo.appDir"),value:a(i.BLOCKLET_APP_DIR,t.diskInfo.app)},{key:"dataDir",name:d("blocklet.diskInfo.dataDir"),value:a(i.BLOCKLET_DATA_DIR,t.diskInfo.data)},{key:"logDir",name:d("blocklet.diskInfo.logDir"),value:a(i.BLOCKLET_LOG_DIR,t.diskInfo.log)},{key:"cacheDir",name:d("blocklet.diskInfo.cacheDir"),value:a(i.BLOCKLET_CACHE_DIR,t.diskInfo.cache)}];return e.jsx(xt,{component:"div",...s,children:h.map(o=>e.jsx(dt,{valueComponent:"div",nameWidth:120,name:o.name,children:o.value},o.key))})}te.propTypes={blocklet:p.object.isRequired};te.defaultProps={};const xt=ve(x)``;var De=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0BwmD+1rA90yarpO4ZpjLgs8+BTUfU9w+gkwEi6ftxqyB9Wt6IBstE0E8kxJLeKaVhNA/uEwIslv1JmRwcSzAo+URPCF5M8AGzEF8yG+QVBFl53FqhfYqd7/PM6AmJouW4cVge9pZuMJga2NQH918Sp4VIXddVCKizUTFu3CbUMxyxgOUoSpidf+JEuRy/g3EyyCTz0yw2KRGtDs4fE8btEktCKZzL3J6mFoLZdlcJK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cXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};De.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ue(){const{t}=E(),{blocklet:s}=Y();return e.jsxs(u,{children:[e.jsxs(u,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(De,{style:{width:200,height:250}}),e.jsx(x,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ee,{})]}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}Ue.propTypes={};var pe={},gt=$;Object.defineProperty(pe,"__esModule",{value:!0});var be=pe.default=void 0,jt=gt(_()),yt=e;be=pe.default=(0,jt.default)((0,yt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var me={},At=$;Object.defineProperty(me,"__esModule",{value:!0});var Re=me.default=void 0,St=At(_()),Ct=e;Re=me.default=(0,St.default)((0,Ct.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var he={},vt=$;Object.defineProperty(he,"__esModule",{value:!0});var Ee=he.default=void 0,It=vt(_()),Bt=e;Ee=he.default=(0,It.default)((0,Bt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function ue({spaceGateway:t,onDelete:s}){const{t:d}=E(),[a,i]=v.useState(!1),[h,o]=v.useState(!1),r=(c,m)=>{c==null||c.preventDefault(),c==null||c.stopPropagation(),i(m)},j=async c=>{try{c==null||c.stopPropagation(),o(!0),await s(t),i(!1)}catch(m){console.error(m),I.error(`${d("storage.space.gateway.delete.failed")}: ${le(m)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(V,{color:"red",onClick:c=>r(c,!0),children:[e.jsx(K,{style:{minWidth:24,color:"red"},children:e.jsx(ht,{fontSize:"small"})}),e.jsx(X,{style:{color:"red"},children:d("common.delete")})]}),e.jsx(Ke,{title:d("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:a,confirmButton:{text:d("common.confirm"),props:{variant:"contained",color:"error",loading:h}},cancelButton:{text:d("common.cancel"),props:{variant:"contained",color:"primary"},loading:h},onConfirm:j,onCancel:c=>r(c,!1)})]})}ue.propTypes={onDelete:p.func,spaceGateway:p.shape({name:p.string.isRequired,url:p.string.isRequired,protected:p.bool}).isRequired};ue.defaultProps={onDelete:()=>{}};function fe({spaceGateway:t,connected:s,onDelete:d,onConnect:a,enableSwitchToSpace:i,backupInProgress:h,...o}){const[r,j]=v.useState(null),{t:c}=E(),[m,k]=v.useState(!1),y=(g,B)=>{g.stopPropagation(),g.preventDefault(),j(B&&g.currentTarget)},f=async g=>{try{k(!0),y(g,!1),await a(t)}catch(B){console.error(B),I.error(B.message)}finally{k(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Xe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:g=>y(g,!0),size:"small",...o,children:m||t!=null&&t.loading?e.jsx(q,{size:"24px"}):e.jsx(mt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:r,keepMounted:!0,open:!!r,onClose:g=>y(g,!1),children:[e.jsxs(V,{onClick:g=>{y(g,!1),window.open(t.endpoint?it(t.endpoint):t.url)},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(be,{fontSize:"small"})}),e.jsx(X,{children:c("common.open")})]}),e.jsxs(V,{onClick:g=>{y(g,!1),window.open(rt(t.endpoint))},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Ee,{fontSize:"small"})}),e.jsx(X,{children:c("storage.spaces.strategy.viewBackupFiles")})]}),!s&&i&&e.jsxs(V,{onClick:f,children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Re,{fontSize:"small"})}),e.jsx(X,{children:c("storage.spaces.connect.switchToSpace")})]}),!h&&e.jsx(ue,{spaceGateway:t,onDelete:d})]})]})}fe.propTypes={spaceGateway:p.shape({name:p.string.isRequired,url:p.string.isRequired,protected:p.bool,endpoint:p.string.isRequired,loading:p.bool}).isRequired,connected:p.bool.isRequired,enableSwitchToSpace:p.bool,onDelete:p.func,onConnect:p.func,backupInProgress:p.bool};fe.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};var Te=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Te.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var we=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};we.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xe({spaceGateway:t,connected:s,onDelete:d,onBackupNow:a,...i}){const h=Ge(U=>U.breakpoints.down("md")),{t:o,locale:r}=E(),{blocklet:j}=Y(),{api:c,info:{did:m}}=ce(),{appDid:k,appName:y,appDescription:f,scopes:g,appUrl:B,referrer:se}=Ie({blocklet:j}),{updateSpaceGateway:D,backupEndpoint:M,backupProgress:n,refreshBackupEndpoint:J}=z(),[b,T]=v.useState(!1),[C,w]=v.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:y},r),scan:o("storage.spaces.authorize.scan",{appName:y},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{w(U=>({...U,open:!1}))}}),{data:l,loading:A}=Ye(async()=>s?Ce(M):!0,{refreshDeps:[s,M,C==null?void 0:C.open,b]}),S=s&&l,R=s&&!b&&l&&!(t!=null&&t.loading),F=s&&b&&l,O=s&&!l&&!A&&!b,P=async()=>{if(await Ce(t==null?void 0:t.endpoint)){await c.configBlocklet({input:{did:[j.meta.did],configs:[{key:$e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),J(),I.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}w(Q=>({...Q,open:!0,prefix:Z(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ie.create({baseURL:Z(t.url,"space")}).get,extraParams:{appDid:k,appName:y,appDescription:f,scopes:g,appUrl:B,referrer:se,nodeDid:m,spaceDid:t.did}}))},Me=async(U,Q)=>{const oe=Q(U.endpoint),ze=G(oe),N=U.space?Q(U.space):{};if(t.did&&ze!==t.did){w(ne=>({...ne,open:!1})),I.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:N!=null&&N.name?N.name:""}));return}const Je={...t,name:N.name??"DID Space",did:N.did??G(oe),endpoint:oe};await D(Je),w(ne=>({...ne,open:!1}))},Ne=async()=>{try{if(b)return;T(!0),await a()}catch(U){console.error(U),I.error(U.message)}finally{T(!0)}};return v.useEffect(()=>{n!=null&&n.completed?((n==null?void 0:n.progress)===100?I.success(o("storage.spaces.backupSuccessfully")):(n==null?void 0:n.progress)===-1&&I.error(n==null?void 0:n.message),T(!1),n.progress=0,n.message=""):n.progress&&T(!0)},[n]),e.jsxs(kt,{style:{position:"relative"},children:[e.jsxs(u,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...i,children:[e.jsx(u,{display:"flex",children:e.jsx(nt,{alt:t.did,src:lt(t.endpoint)})}),e.jsxs(u,{className:"spaces-info",display:"flex",flexGrow:(!h||!F)&&1,minWidth:"180px",flexDirection:F?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(u,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(x,{color:s?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:t.name}),S&&e.jsx(je,{label:e.jsxs(e.Fragment,{children:[e.jsx(Te,{style:{marginRight:"4px"}}),o("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),O&&e.jsx(je,{label:e.jsxs(e.Fragment,{children:[e.jsx(we,{style:{marginRight:"4px"}}),o("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),e.jsx(u,{className:"spaces-address",display:F?"none":"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(x,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(pt,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})})]}),e.jsxs(u,{className:"spaces-backup",display:"flex",alignItems:"center",flex:h&&F&&1,children:[R&&e.jsxs(u,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[e.jsx(W,{variant:"contained",size:"small",onClick:Ne,children:o("storage.spaces.strategy.backupNow")}),ut&&e.jsx(ke,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(x,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),F&&e.jsxs(u,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!h&&"640px",marginLeft:h&&"16px",width:h&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(x,{color:"primary",children:n==null?void 0:n.message}),e.jsxs(u,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(u,{sx:{width:"100%",mr:1},children:e.jsx(qe,{color:"primary",variant:"determinate",value:n==null?void 0:n.progress})}),e.jsx(u,{sx:{maxWidth:"100%"},children:e.jsxs(x,{variant:"body2",color:"text.secondary",children:[n==null?void 0:n.progress,"%"]})})]})]}),O&&e.jsx(u,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(W,{color:"error",variant:"contained",size:"small",onClick:P,children:o("storage.spaces.disconnected.reconnectNow")})}),e.jsx(fe,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:t,connected:s,onDelete:d,onConnect:P,enableSwitchToSpace:(n==null?void 0:n.completed)||de.isEmpty(n==null?void 0:n.message),backupInProgress:F})]})]}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:C.prefix,open:C.open,popup:!0,action:C.action,baseUrl:C.baseUrl,checkFn:C.checkFn,onSuccess:Me,onClose:C.onClose,checkTimeout:C.checkTimeout,extraParams:C.extraParams,messages:C.messages,locale:r},"get-endpoint"),e.jsx(u,{className:`selected-container ${s?"selected":""}`,children:e.jsx(_e,{className:"selected-icon"})})]})}xe.propTypes={spaceGateway:p.shape({did:p.string.isRequired,name:p.string.isRequired,url:p.string.isRequired,endpoint:p.string.isRequired,protected:p.bool,loading:p.bool}).isRequired,connected:p.bool.isRequired,progress:p.any.isRequired,onDelete:p.func,onBackupNow:p.func};xe.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const kt=ve(u)`
1
+ import{aV as Y,aM as ce,u as E,r as v,eG as Ze,bY as ie,aq as Z,f3 as Pe,j as e,T as x,B as u,I as re,ap as Qe,a1 as W,l as q,b8 as de,q as I,P as p,Z as ve,a0 as He,gj as Ve,X as _,Y as $,aQ as V,f2 as Ke,az as Xe,aO as We,$ as Ge,O as Ye,be as je,dI as qe,cp as _e,a9 as $e,E as L,bf as H,a as et,gk as tt}from"./index-BZDKSnZd.js";import{S as ye}from"./index-CxMKFgvm.js";import{D as st,A as ot,f as le}from"./index-C53-lHR1.js";import"./api-Cktespab.js";import{u as Ie,P as nt}from"./use-blocklet-info-for-connect-did-spaces-Cq_WKGiX.js";import{e as G,f as Ae,h as at,i as Se,j as it,k as rt,l as Ce,d as lt}from"./spaces-64XCaLBP.js";import{g as z}from"./dashboard-DPoD1K7J.js";import{T as ct}from"./TextField-BNqWjS_W.js";import{I as dt}from"./index-uYFtMGcO.js";import{E as Be}from"./Link-Dv3Et2ez.js";import{W as pt}from"./did-address-C9Oll4dh.js";import{S as ke}from"./switch-control-BsBzcfId.js";import{d as mt}from"./MoreVert-BADqdigz.js";import{d as ht}from"./DeleteOutline-3NaKxm4R.js";import{L as K,a as X}from"./ListItemText-CF3SWkSv.js";import{e as ut}from"./mode-B2dWMeTO.js";import{T as ae}from"./index-HsjvndAb.js";import{D as ft}from"./index-CnS9gaZ3.js";import"./ExpandMore-DEuMN2Eb.js";import"./ButtonGroup-NxdmPJmE.js";import"./CloseOutlined-CoRB9rwa.js";import"./index-B0JW66A1.js";import"./index-DIXgdP4C.js";import"./useLocalStorage-Czpb9_Rt.js";import"./confirm-BG-SFOgO.js";import"./Alert-D6XZ7QoO.js";import"./useSlot-DqOsNscr.js";import"./Delete-BX85Nb2n.js";import"./PlayArrow-B7IgLc7s.js";import"./RadioGroup-DN_TYJnV.js";import"./FormControlLabel-BJDx8Xii.js";import"./useFormControl-CBVnaiQn.js";import"./FormGroup-Dep8Dllq.js";import"./Avatar-BJ2rSWho.js";import"./session-O2f-MDS6.js";import"./permission-ClKRDM0A.js";import"./useAsync-D_LImVl0.js";import"./useSetState-BJAEhktW.js";import"./fallback-CCfEf6ty.js";import"./index-CS-E_cNi.js";import"./Toolbar-DyMvP6oS.js";import"./Hidden-CMJk-ibZ.js";import"./MoreHoriz-iT3NGqZF.js";import"./index-DPY5mu1v.js";import"./selector-CtmL8AXX.js";import"./FormControl-AzhLQUNz.js";import"./InputLabel-BlRVCdPn.js";import"./Select-DgtmL-LZ.js";import"./index-CXKKa4he.js";import"./FilterList-CZtEWE4e.js";import"./toPropertyKey-hKuLU48H.js";import"./LastPage-BIy6SW9k.js";import"./index-C1al0chy.js";import"./redux-DiG_x-Yj.js";import"./Search-CJ0P_3xr.js";import"./index-W3PjrkqJ.js";function ee({...t}){const{blocklet:s}=Y(),{info:d}=ce(),{t:a,locale:i}=E(),[h,o]=v.useState(""),[r,j]=v.useState(!1),[c,m]=v.useState(!1),[k,y]=v.useState(""),f=Ie({blocklet:s}),g=Ze(d),{spaceGateways:B,addSpaceGateway:se}=z(),[D,M]=v.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:ie.create({baseURL:Z(window.location.origin,Pe())}).get,messages:{title:a("storage.spaces.provideNFT.title",{appName:f.appName},i),scan:a("storage.spaces.provideNFT.scan",{appName:f.appName},i),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.provideNFT.success")})},onClose:()=>{M(l=>({...l,open:!1}))}}),[n,J]=v.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:f.appName},i),scan:a("storage.spaces.authorize.scan",{appName:f.appName},i),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{J(l=>({...l,open:!1}))}}),b=async({endpoint:l,name:A,did:S})=>{const R=await Ae(l);if(!await Se(R)){I.error(a("storage.spaces.gateway.add.invalidUrl"));return}if(B.some(P=>P.endpoint===l)){I.error(a("storage.spaces.gateway.add.duplicate",{name:A}));return}const O={name:A,did:S,url:R,endpoint:l};await se(O,l),I.success(a("storage.spaces.connectedWithName",{name:(O==null?void 0:O.name)??"DID Spaces"}))},T=async(l,A)=>{try{if(!de.isEmpty(l.spaceGateway))await b(A(l.spaceGateway));else{const S=A(l.endpoint),R=l.space?A(l.space):{};await b({endpoint:S,did:G(S),name:"DID Space",...R})}J(S=>({...S,open:!1})),o(null),M(S=>({...S,open:!1}))}catch(S){console.error(S),I.error(le(S))}},C=()=>{M(l=>({...l,open:!0,extraParams:{appPid:s.appPid,appName:f.appName,appDescription:f.appDescription,scopes:f.scopes,appUrl:f.appUrl,referrer:f.referrer,nodeDid:d.did}}))},w=async()=>{try{j(!0);const l=await Ae(h),A=at(l),S=new URL(l).searchParams.get("spaceDid");if(!await Se(A))throw new Error(a("storage.spaces.gateway.add.invalidUrl"));J(R=>({...R,open:!0,prefix:Z(A,"space/api/did"),baseUrl:new URL(A).origin,checkFn:ie.create({baseURL:Z(A,"space")}).get,extraParams:{appDid:f.appDid,appName:f.appName,appDescription:f.appDescription,scopes:f.scopes,appUrl:f.appUrl,referrer:f.referrer,nodeDid:d.did,spaceDid:S}})),m(!1)}catch(l){const A=`${a("storage.spaces.gateway.add.failed",i)}: ${le(l)}`;y(A)}finally{j(!1)}};return e.jsxs(u,{children:[e.jsx(ye,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:C,menu:[e.jsx(ye.Item,{sx:{textTransform:"none"},onClick:()=>m(!0),size:"small",...t,children:a("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(x,{sx:{fontWeight:"bold",textTransform:"none"},children:a("storage.spaces.connect.useWallet")})}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:D.prefix,open:D.open,popup:!0,action:D.action,webWalletUrl:g,baseUrl:D.baseUrl,checkFn:D.checkFn,onSuccess:T,onClose:D.onClose,checkTimeout:D.checkTimeout,extraParams:D.extraParams,messages:D.messages,locale:i}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:n.prefix,open:n.open,popup:!0,action:n.action,baseUrl:n.baseUrl,checkFn:n.checkFn,onSuccess:T,onClose:n.onClose,checkTimeout:n.checkTimeout,extraParams:n.extraParams,messages:n.messages,locale:i}),e.jsxs(Qe,{title:a("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:c,onClose:()=>m(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(W,{onClick:l=>{l.stopPropagation(),m(!1)},color:"inherit",children:a("common.cancel")}),e.jsxs(W,{onClick:w,color:"primary",disabled:r||!h,variant:"contained",autoFocus:!0,children:[r&&e.jsx(q,{size:16}),a("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(st,{component:"div",children:e.jsx(x,{component:"div",children:e.jsx(ct,{label:a("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:h,onChange:l=>{y(null),o(l.target.value)},disabled:r,onKeyPress:async l=>{l.key==="Enter"&&await w()},autoFocus:!0})})})}),!!k&&e.jsx(ot,{type:"error",style:{width:"100%"},children:k})]})]})}ee.propTypes={};ee.defaultProps={};function te({blocklet:t,...s}){const{t:d}=v.useContext(He);if(!t.diskInfo)return e.jsx(x,{children:d("blocklet.diskInfo.empty")});const a=(o,r,j)=>e.jsxs(x,{children:[j?e.jsx(Be,{style:{cursor:"pointer"},onClick:j,underline:"hover",children:o}):o," ",e.jsx("strong",{children:r?Ve(r):"empty"})]}),i=t.environments.reduce((o,r)=>(o[r.key]=r.value,o),{}),h=[{key:"appDir",name:d("blocklet.diskInfo.appDir"),value:a(i.BLOCKLET_APP_DIR,t.diskInfo.app)},{key:"dataDir",name:d("blocklet.diskInfo.dataDir"),value:a(i.BLOCKLET_DATA_DIR,t.diskInfo.data)},{key:"logDir",name:d("blocklet.diskInfo.logDir"),value:a(i.BLOCKLET_LOG_DIR,t.diskInfo.log)},{key:"cacheDir",name:d("blocklet.diskInfo.cacheDir"),value:a(i.BLOCKLET_CACHE_DIR,t.diskInfo.cache)}];return e.jsx(xt,{component:"div",...s,children:h.map(o=>e.jsx(dt,{valueComponent:"div",nameWidth:120,name:o.name,children:o.value},o.key))})}te.propTypes={blocklet:p.object.isRequired};te.defaultProps={};const xt=ve(x)``;var De=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0BwmD+1rA90yarpO4ZpjLgs8+BTUfU9w+gkwEi6ftxqyB9Wt6IB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MnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};De.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ue(){const{t}=E(),{blocklet:s}=Y();return e.jsxs(u,{children:[e.jsxs(u,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(De,{style:{width:200,height:250}}),e.jsx(x,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ee,{})]}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}Ue.propTypes={};var pe={},gt=$;Object.defineProperty(pe,"__esModule",{value:!0});var be=pe.default=void 0,jt=gt(_()),yt=e;be=pe.default=(0,jt.default)((0,yt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var me={},At=$;Object.defineProperty(me,"__esModule",{value:!0});var Re=me.default=void 0,St=At(_()),Ct=e;Re=me.default=(0,St.default)((0,Ct.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var he={},vt=$;Object.defineProperty(he,"__esModule",{value:!0});var Ee=he.default=void 0,It=vt(_()),Bt=e;Ee=he.default=(0,It.default)((0,Bt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function ue({spaceGateway:t,onDelete:s}){const{t:d}=E(),[a,i]=v.useState(!1),[h,o]=v.useState(!1),r=(c,m)=>{c==null||c.preventDefault(),c==null||c.stopPropagation(),i(m)},j=async c=>{try{c==null||c.stopPropagation(),o(!0),await s(t),i(!1)}catch(m){console.error(m),I.error(`${d("storage.space.gateway.delete.failed")}: ${le(m)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(V,{color:"red",onClick:c=>r(c,!0),children:[e.jsx(K,{style:{minWidth:24,color:"red"},children:e.jsx(ht,{fontSize:"small"})}),e.jsx(X,{style:{color:"red"},children:d("common.delete")})]}),e.jsx(Ke,{title:d("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:a,confirmButton:{text:d("common.confirm"),props:{variant:"contained",color:"error",loading:h}},cancelButton:{text:d("common.cancel"),props:{variant:"contained",color:"primary"},loading:h},onConfirm:j,onCancel:c=>r(c,!1)})]})}ue.propTypes={onDelete:p.func,spaceGateway:p.shape({name:p.string.isRequired,url:p.string.isRequired,protected:p.bool}).isRequired};ue.defaultProps={onDelete:()=>{}};function fe({spaceGateway:t,connected:s,onDelete:d,onConnect:a,enableSwitchToSpace:i,backupInProgress:h,...o}){const[r,j]=v.useState(null),{t:c}=E(),[m,k]=v.useState(!1),y=(g,B)=>{g.stopPropagation(),g.preventDefault(),j(B&&g.currentTarget)},f=async g=>{try{k(!0),y(g,!1),await a(t)}catch(B){console.error(B),I.error(B.message)}finally{k(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Xe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:g=>y(g,!0),size:"small",...o,children:m||t!=null&&t.loading?e.jsx(q,{size:"24px"}):e.jsx(mt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:r,keepMounted:!0,open:!!r,onClose:g=>y(g,!1),children:[e.jsxs(V,{onClick:g=>{y(g,!1),window.open(t.endpoint?it(t.endpoint):t.url)},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(be,{fontSize:"small"})}),e.jsx(X,{children:c("common.open")})]}),e.jsxs(V,{onClick:g=>{y(g,!1),window.open(rt(t.endpoint))},children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Ee,{fontSize:"small"})}),e.jsx(X,{children:c("storage.spaces.strategy.viewBackupFiles")})]}),!s&&i&&e.jsxs(V,{onClick:f,children:[e.jsx(K,{style:{minWidth:24},children:e.jsx(Re,{fontSize:"small"})}),e.jsx(X,{children:c("storage.spaces.connect.switchToSpace")})]}),!h&&e.jsx(ue,{spaceGateway:t,onDelete:d})]})]})}fe.propTypes={spaceGateway:p.shape({name:p.string.isRequired,url:p.string.isRequired,protected:p.bool,endpoint:p.string.isRequired,loading:p.bool}).isRequired,connected:p.bool.isRequired,enableSwitchToSpace:p.bool,onDelete:p.func,onConnect:p.func,backupInProgress:p.bool};fe.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};var Te=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Te.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var we=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};we.defaultProps={width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xe({spaceGateway:t,connected:s,onDelete:d,onBackupNow:a,...i}){const h=Ge(U=>U.breakpoints.down("md")),{t:o,locale:r}=E(),{blocklet:j}=Y(),{api:c,info:{did:m}}=ce(),{appDid:k,appName:y,appDescription:f,scopes:g,appUrl:B,referrer:se}=Ie({blocklet:j}),{updateSpaceGateway:D,backupEndpoint:M,backupProgress:n,refreshBackupEndpoint:J}=z(),[b,T]=v.useState(!1),[C,w]=v.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:y},r),scan:o("storage.spaces.authorize.scan",{appName:y},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{w(U=>({...U,open:!1}))}}),{data:l,loading:A}=Ye(async()=>s?Ce(M):!0,{refreshDeps:[s,M,C==null?void 0:C.open,b]}),S=s&&l,R=s&&!b&&l&&!(t!=null&&t.loading),F=s&&b&&l,O=s&&!l&&!A&&!b,P=async()=>{if(await Ce(t==null?void 0:t.endpoint)){await c.configBlocklet({input:{did:[j.meta.did],configs:[{key:$e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),J(),I.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}w(Q=>({...Q,open:!0,prefix:Z(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ie.create({baseURL:Z(t.url,"space")}).get,extraParams:{appDid:k,appName:y,appDescription:f,scopes:g,appUrl:B,referrer:se,nodeDid:m,spaceDid:t.did}}))},Me=async(U,Q)=>{const oe=Q(U.endpoint),ze=G(oe),N=U.space?Q(U.space):{};if(t.did&&ze!==t.did){w(ne=>({...ne,open:!1})),I.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:N!=null&&N.name?N.name:""}));return}const Je={...t,name:N.name??"DID Space",did:N.did??G(oe),endpoint:oe};await D(Je),w(ne=>({...ne,open:!1}))},Ne=async()=>{try{if(b)return;T(!0),await a()}catch(U){console.error(U),I.error(U.message)}finally{T(!0)}};return v.useEffect(()=>{n!=null&&n.completed?((n==null?void 0:n.progress)===100?I.success(o("storage.spaces.backupSuccessfully")):(n==null?void 0:n.progress)===-1&&I.error(n==null?void 0:n.message),T(!1),n.progress=0,n.message=""):n.progress&&T(!0)},[n]),e.jsxs(kt,{style:{position:"relative"},children:[e.jsxs(u,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...i,children:[e.jsx(u,{display:"flex",children:e.jsx(nt,{alt:t.did,src:lt(t.endpoint)})}),e.jsxs(u,{className:"spaces-info",display:"flex",flexGrow:(!h||!F)&&1,minWidth:"180px",flexDirection:F?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(u,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(x,{color:s?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:t.name}),S&&e.jsx(je,{label:e.jsxs(e.Fragment,{children:[e.jsx(Te,{style:{marginRight:"4px"}}),o("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),O&&e.jsx(je,{label:e.jsxs(e.Fragment,{children:[e.jsx(we,{style:{marginRight:"4px"}}),o("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),e.jsx(u,{className:"spaces-address",display:F?"none":"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(x,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(pt,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})})]}),e.jsxs(u,{className:"spaces-backup",display:"flex",alignItems:"center",flex:h&&F&&1,children:[R&&e.jsxs(u,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[e.jsx(W,{variant:"contained",size:"small",onClick:Ne,children:o("storage.spaces.strategy.backupNow")}),ut&&e.jsx(ke,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(x,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),F&&e.jsxs(u,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!h&&"640px",marginLeft:h&&"16px",width:h&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(x,{color:"primary",children:n==null?void 0:n.message}),e.jsxs(u,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(u,{sx:{width:"100%",mr:1},children:e.jsx(qe,{color:"primary",variant:"determinate",value:n==null?void 0:n.progress})}),e.jsx(u,{sx:{maxWidth:"100%"},children:e.jsxs(x,{variant:"body2",color:"text.secondary",children:[n==null?void 0:n.progress,"%"]})})]})]}),O&&e.jsx(u,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(W,{color:"error",variant:"contained",size:"small",onClick:P,children:o("storage.spaces.disconnected.reconnectNow")})}),e.jsx(fe,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:t,connected:s,onDelete:d,onConnect:P,enableSwitchToSpace:(n==null?void 0:n.completed)||de.isEmpty(n==null?void 0:n.message),backupInProgress:F})]})]}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:C.prefix,open:C.open,popup:!0,action:C.action,baseUrl:C.baseUrl,checkFn:C.checkFn,onSuccess:Me,onClose:C.onClose,checkTimeout:C.checkTimeout,extraParams:C.extraParams,messages:C.messages,locale:r},"get-endpoint"),e.jsx(u,{className:`selected-container ${s?"selected":""}`,children:e.jsx(_e,{className:"selected-icon"})})]})}xe.propTypes={spaceGateway:p.shape({did:p.string.isRequired,name:p.string.isRequired,url:p.string.isRequired,endpoint:p.string.isRequired,protected:p.bool,loading:p.bool}).isRequired,connected:p.bool.isRequired,progress:p.any.isRequired,onDelete:p.func,onBackupNow:p.func};xe.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const kt=ve(u)`
2
2
  .selected-container {
3
3
  position: absolute;
4
4
  right: 0px;
@@ -1,4 +1,4 @@
1
- import{r as y,j as i,c0 as h,B as p,P as o}from"./index-BvsLirqD.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(y);var c=i;function v(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g(e,t,r){return t=b(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",s(s({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
1
+ import{r as y,j as i,c0 as h,B as p,P as o}from"./index-BZDKSnZd.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(y);var c=i;function v(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g(e,t,r){return t=b(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",s(s({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;