@abtnode/blocklet-services 1.16.25-next-3d78a4cb → 1.16.25-next-bc2f4c63

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 (171) hide show
  1. package/api/services/auth/connect/connect-to-did-spaces-for-user.js +4 -1
  2. package/dist/assets/{Add-NMa-M1Q0.js → Add-E-Uy_6DF.js} +1 -1
  3. package/dist/assets/{Alert-9wz-SfVH.js → Alert-Pt-ZsdXz.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-2jJxChvP.js → ArrowDropDown-QDp9yLZu.js} +1 -1
  5. package/dist/assets/{Avatar-gImElMr2.js → Avatar-DjYDdC4Y.js} +1 -1
  6. package/dist/assets/{ButtonGroup-yDF0xi1D.js → ButtonGroup-INcuOk6N.js} +1 -1
  7. package/dist/assets/{CheckCircle-lHs77bkx.js → CheckCircle-ZE36oFm6.js} +1 -1
  8. package/dist/assets/{ChevronRight-mO238vY_.js → ChevronRight-10j1EEGW.js} +1 -1
  9. package/dist/assets/{CloseOutlined-_SreG5tJ.js → CloseOutlined-eARgu6L1.js} +1 -1
  10. package/dist/assets/{Delete-FIV1VRAH.js → Delete-RZzg-ZC4.js} +1 -1
  11. package/dist/assets/{DeleteOutline-cT2nXpK-.js → DeleteOutline-SM-0L53U.js} +1 -1
  12. package/dist/assets/{Done-UoP7s52I.js → Done-qS9bIH_w.js} +1 -1
  13. package/dist/assets/{Download-LxurGFpv.js → Download-5_huAfzh.js} +1 -1
  14. package/dist/assets/{Edit-HaU-_qL4.js → Edit-wWRWmpt5.js} +1 -1
  15. package/dist/assets/{EditIcon-b5c6BhD5.js → EditIcon-K0a_S0gh.js} +1 -1
  16. package/dist/assets/{ExpandMore-OAGMzw3l.js → ExpandMore-OJdD8wBw.js} +1 -1
  17. package/dist/assets/{FilterList-7ij1AZQJ.js → FilterList-Wlh0o175.js} +4 -4
  18. package/dist/assets/{FormControl-oDdBAHRY.js → FormControl-b6R3X9iZ.js} +1 -1
  19. package/dist/assets/{FormControlLabel-mxbf-j4N.js → FormControlLabel-tkk4UmT-.js} +1 -1
  20. package/dist/assets/{FormGroup-g0YmWnKj.js → FormGroup-GIaS19hu.js} +1 -1
  21. package/dist/assets/{Google-AxxsJlUn.js → Google-Vp4kt3Yw.js} +1 -1
  22. package/dist/assets/{Grid-AT3ygHJV.js → Grid-op03i2gG.js} +1 -1
  23. package/dist/assets/{Hidden-LQKjswzc.js → Hidden-LDXaA7QE.js} +1 -1
  24. package/dist/assets/{InfoOutlined-06EXFeDn.js → InfoOutlined-83Bt9cc3.js} +1 -1
  25. package/dist/assets/{InputAdornment-VuS2_oMc.js → InputAdornment-MNhfGdzm.js} +1 -1
  26. package/dist/assets/{InputLabel-2qJR9Egb.js → InputLabel-RWdZETCM.js} +1 -1
  27. package/dist/assets/{LastPage-5fS6cOhK.js → LastPage-xhjc0FYv.js} +1 -1
  28. package/dist/assets/{Launch-PWcKbIzR.js → Launch-kfYUoiJm.js} +1 -1
  29. package/dist/assets/{LaunchOutlined-NH837_ZB.js → LaunchOutlined-EuVayCey.js} +1 -1
  30. package/dist/assets/{Link-HTHg_pUm.js → Link-sMHRLAhK.js} +1 -1
  31. package/dist/assets/{ListItem-NGeUkLV-.js → ListItem-DY28wT0F.js} +1 -1
  32. package/dist/assets/{ListItemText-7v7ZTw5u.js → ListItemText-CHlc1cm0.js} +1 -1
  33. package/dist/assets/{LockIcon-EVmvDasu.js → LockIcon-AxFBOElS.js} +1 -1
  34. package/dist/assets/{Loop-fYtWuUwa.js → Loop-k74terNK.js} +1 -1
  35. package/dist/assets/{MoreHoriz-iTa90LIi.js → MoreHoriz-6oCyuqz1.js} +1 -1
  36. package/dist/assets/{MoreVert-lieR_Xff.js → MoreVert-S0JjL3ST.js} +1 -1
  37. package/dist/assets/{OpenInNew-2IVN35Wq.js → OpenInNew-dHB8I-mY.js} +1 -1
  38. package/dist/assets/{Pagination-p0K608Pw.js → Pagination-K37lnAAf.js} +1 -1
  39. package/dist/assets/{PlayArrow-NklJcWlF.js → PlayArrow-RgVA_Vhu.js} +1 -1
  40. package/dist/assets/{RadioGroup-H5jcgCgt.js → RadioGroup-mdoQCIlz.js} +1 -1
  41. package/dist/assets/{Search-5XETl0i_.js → Search-Ws1Y067Y.js} +1 -1
  42. package/dist/assets/{Select-pV3i3qpz.js → Select-XOhKkdl9.js} +2 -2
  43. package/dist/assets/{ServerLogo-HX8hLzvi.js → ServerLogo-uQwvyIVW.js} +1 -1
  44. package/dist/assets/{Skeleton-D6saHrZm.js → Skeleton-XRsF_kRv.js} +1 -1
  45. package/dist/assets/{Slider-z3HJyOTL.js → Slider-AQ61Nhmq.js} +1 -1
  46. package/dist/assets/{Stepper-VPMrTHZb.js → Stepper-JhYpYItY.js} +1 -1
  47. package/dist/assets/{TableRow-C_coU4a1.js → TableRow-McErKo52.js} +2 -2
  48. package/dist/assets/{TextField-upXvpfEU.js → TextField-ojrDs8Sg.js} +1 -1
  49. package/dist/assets/{Toolbar-y-RPR7ka.js → Toolbar-fKSQD6kR.js} +1 -1
  50. package/dist/assets/{ViewList-kXhlrqjT.js → ViewList-Z3lkWLAm.js} +1 -1
  51. package/dist/assets/{access-control-762y7PVy.js → access-control-xrWRFAND.js} +1 -1
  52. package/dist/assets/{actions-lQzb6Jj9.js → actions-PlS7MPBA.js} +1 -1
  53. package/dist/assets/{add-component-core-r_9ZAl_l.js → add-component-core-Z20TfzQ1.js} +8 -8
  54. package/dist/assets/add-resource-zQZqtMQL.js +1 -0
  55. package/dist/assets/{addon-6GKJUulN.js → addon-aCfJtGQ6.js} +1 -1
  56. package/dist/assets/{analytics-VXDqCcaZ.js → analytics-o2kYELNS.js} +6 -6
  57. package/dist/assets/api-rGSobLSz.js +1 -0
  58. package/dist/assets/{audit-logs-dCDjHCkV.js → audit-logs-u_H5563O.js} +1 -1
  59. package/dist/assets/{button-9IYN9Hx2.js → button-QdRLQj98.js} +1 -1
  60. package/dist/assets/{click-to-copy-1QBfdqHN.js → click-to-copy-JCuFDJdG.js} +1 -1
  61. package/dist/assets/{complete-bjB1jkBY.js → complete-ZAhfn1MI.js} +2 -2
  62. package/dist/assets/{component-3PxHqzLG.js → component-qxbIyx-x.js} +16 -16
  63. package/dist/assets/{config-qko_RKYv.js → config-B4S7nDlc.js} +1 -1
  64. package/dist/assets/{config-guBQ2xXX.js → config-PU2jWUqp.js} +1 -1
  65. package/dist/assets/{config-navigation-j2hxqzBt.js → config-navigation-EAEaByBJ.js} +5 -5
  66. package/dist/assets/{config-space-YwSwWRVo.js → config-space-qgmh9-fz.js} +1 -1
  67. package/dist/assets/{confirm-7Hh_SSFd.js → confirm-W3yNAofT.js} +1 -1
  68. package/dist/assets/{connect-tmvrTIsQ.js → connect-Fmsi6PXI.js} +1 -1
  69. package/dist/assets/{connect-gJq3eOk3.js → connect-gI1khV3G.js} +1 -1
  70. package/dist/assets/connect-to-1ewiHWT6.js +54 -0
  71. package/dist/assets/{content-layout-AtLirrgM.js → content-layout-zMIKXX1i.js} +1 -1
  72. package/dist/assets/dashboard-JHZuW25_.js +134 -0
  73. package/dist/assets/{did-address-8E42uyI-.js → did-address-9m9tYh5q.js} +1 -1
  74. package/dist/assets/{domain-Qws0qQ3h.js → domain-Sk0SMdZH.js} +1 -1
  75. package/dist/assets/{domain-list-xipbIs2T.js → domain-list-53da40TE.js} +2 -2
  76. package/dist/assets/{exchange-passport-nOrxxaSx.js → exchange-passport-xuyvag2R.js} +1 -1
  77. package/dist/assets/{fallback-mHcLRxLo.js → fallback-gmfSXd3Y.js} +1 -1
  78. package/dist/assets/{fuel-yFF_NzsF.js → fuel-zS6cXb-c.js} +1 -1
  79. package/dist/assets/{fullpage-rrOmqxSy.js → fullpage-A7HeCoHY.js} +1 -1
  80. package/dist/assets/{home-5_BgRDNM.js → home-_SLX6F5b.js} +1 -1
  81. package/dist/assets/{iframe-ajsEFsJa.js → iframe-EUkUor9M.js} +1 -1
  82. package/dist/assets/{index-iq_e37_h.js → index-1XFBUK0L.js} +3 -3
  83. package/dist/assets/{index-ewlbl2rV.js → index-3m5m0Azr.js} +4 -4
  84. package/dist/assets/{index-QUz246T1.js → index-4G6oewXC.js} +1 -1
  85. package/dist/assets/{index-MxDjYbBB.js → index-5RAPyZhu.js} +1 -1
  86. package/dist/assets/{index-7d02nDqC.js → index-6-a1zIdI.js} +1 -1
  87. package/dist/assets/{index-RFIYPU8k.js → index-6YTWue35.js} +1 -1
  88. package/dist/assets/{index-Y4ui5f0Z.js → index-9sNhSE2Y.js} +9 -9
  89. package/dist/assets/{index-VDbohr0m.js → index-GI1yS25N.js} +2 -2
  90. package/dist/assets/index-Ly_Yd813.js +1 -0
  91. package/dist/assets/{index-nI8IL2Hs.js → index-NkljuAao.js} +1 -1
  92. package/dist/assets/{index-viQfv9eh.js → index-Oxu7k4-x.js} +3 -3
  93. package/dist/assets/{index-8_lv4I5h.js → index-RFmSVBpK.js} +1 -1
  94. package/dist/assets/index-T7wxd3j-.js +13 -0
  95. package/dist/assets/{index-_ctbZdsq.js → index-_k-czSGL.js} +7 -7
  96. package/dist/assets/{index-zvnLTd7V.js → index-_oP7djMv.js} +1 -1
  97. package/dist/assets/{index-XXPjiGPU.js → index-eE-NCd9F.js} +1 -1
  98. package/dist/assets/{index-goxpAoXB.js → index-eEL2jyON.js} +1 -1
  99. package/dist/assets/{index-Hg8SES5w.js → index-eEjVn98u.js} +1 -1
  100. package/dist/assets/{index-G4D865RD.js → index-h8_sQZk8.js} +18 -18
  101. package/dist/assets/{index-cSpRcGEF.js → index-ieRv_ikC.js} +1 -1
  102. package/dist/assets/{index-ug8ILiCN.js → index-jf1H7R2D.js} +93 -93
  103. package/dist/assets/{index-aPbuN1__.js → index-jfsLCTyu.js} +1 -1
  104. package/dist/assets/{index-zR6QuaBQ.js → index-pakggjkF.js} +9 -9
  105. package/dist/assets/{index-6P3wKob2.js → index-ptjnk_N2.js} +1 -1
  106. package/dist/assets/{index-O020ew9R.js → index-rnEgZe00.js} +1 -1
  107. package/dist/assets/{index-TM5n4RIg.js → index-t1hxKaXM.js} +5 -5
  108. package/dist/assets/{index-LLIyId-n.js → index-wY-UkzyM.js} +1 -1
  109. package/dist/assets/{index-WHCTABmF.js → index-zpm_l8Rt.js} +1 -1
  110. package/dist/assets/{index.es-ZHZzppEf.js → index.es-BtZ2SL-q.js} +3 -3
  111. package/dist/assets/{index.esm-721HBjKH.js → index.esm-WG0jmlDj.js} +1 -1
  112. package/dist/assets/{invitation-g37oqDwV.js → invitation-ldyeGnCr.js} +1 -1
  113. package/dist/assets/{invite-d69YWpHA.js → invite-vUWcovLZ.js} +1 -1
  114. package/dist/assets/{issue-passport-dW50nDwX.js → issue-passport-W2hj9o8C.js} +1 -1
  115. package/dist/assets/{jss-plugin-props-sort.esm-Rx5MOaXm.js → jss-plugin-props-sort.esm-wWr140ix.js} +1 -1
  116. package/dist/assets/{launch-result-message-GVlquU-F.js → launch-result-message-S3BXYmn8.js} +1 -1
  117. package/dist/assets/{layout-shVaPNBI.js → layout-HQzktH_z.js} +2 -2
  118. package/dist/assets/{list-header-8NAw2mf5.js → list-header-UJPF00gt.js} +1 -1
  119. package/dist/assets/localization-YS4N8wIH.js +1 -0
  120. package/dist/assets/{log-GXgOa-mv.js → log-UdsKugr5.js} +1 -1
  121. package/dist/assets/{login-UQMbPJwO.js → login-G8GqsUr6.js} +1 -1
  122. package/dist/assets/{logo-uploader-TIyOiPM3.js → logo-uploader-qoqn-ySy.js} +3 -3
  123. package/dist/assets/{lost-passport-_aDgWs63.js → lost-passport-kV_VrG75.js} +3 -3
  124. package/dist/assets/{lottie-xKIBeEPM.js → lottie-ruxsBqYl.js} +1 -1
  125. package/dist/assets/{notifications--xS7ebff.js → notifications-Pdzrsh0_.js} +2 -2
  126. package/dist/assets/overview-tFit8gVN.js +12 -0
  127. package/dist/assets/{page-header-ak7IAddF.js → page-header-u-U54mSY.js} +1 -1
  128. package/dist/assets/{permission-JPMtSvqY.js → permission-LFDtcUJ-.js} +1 -1
  129. package/dist/assets/{preferences-qBE3VogO.js → preferences-SKOBPRWu.js} +1 -1
  130. package/dist/assets/publish-resource-VoUxFlbI.js +1 -0
  131. package/dist/assets/{react-hL3RwciS.js → react-W_eG3Zih.js} +3 -3
  132. package/dist/assets/{redux-WDzBVqX6.js → redux-WfHEzn4a.js} +1 -1
  133. package/dist/assets/{selector-BKU6rDfk.js → selector-FHo2eGtC.js} +3 -3
  134. package/dist/assets/session-O1SiVihc.js +1 -0
  135. package/dist/assets/{setup-lonJmA3s.js → setup-U-3DA_c5.js} +3 -3
  136. package/dist/assets/{slicedToArray-2rPrh7Wd.js → slicedToArray-yVMslDaB.js} +1 -1
  137. package/dist/assets/{spaces-iblVQdlV.js → spaces-HonhbzPi.js} +1 -1
  138. package/dist/assets/{start-OIH_hW56.js → start-NyxE34ag.js} +1 -1
  139. package/dist/assets/{step-actions-EE6feCxq.js → step-actions-zuFESXuF.js} +1 -1
  140. package/dist/assets/{studio-pwHgJvf5.js → studio-pkpk6r_C.js} +1 -1
  141. package/dist/assets/{switch-control-tcY98nZ9.js → switch-control--mMgueKK.js} +1 -1
  142. package/dist/assets/{toUpper-21RJ-5gN.js → toUpper-hoSFB9Cp.js} +1 -1
  143. package/dist/assets/{transfer-OzO17Pcs.js → transfer-xLs4sizv.js} +1 -1
  144. package/dist/assets/{ua-parser-J1qbmQ9r.js → ua-parser-IG43pig6.js} +1 -1
  145. package/dist/assets/uniqBy-UuyoKNv3.js +1 -0
  146. package/dist/assets/{unsubscribe-xOo9aVq6.js → unsubscribe-VAifBi0o.js} +1 -1
  147. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-3v-_M2kK.js → use-blocklet-info-for-connect-did-spaces-rGpiZ7NN.js} +1 -1
  148. package/dist/assets/useAsync-0ZkqOKUc.js +1 -0
  149. package/dist/assets/{useFormControl-vFMW8QlB.js → useFormControl-JPOhw-bl.js} +1 -1
  150. package/dist/assets/{useLocalStorage-06lVqZYx.js → useLocalStorage-DmY46DDm.js} +1 -1
  151. package/dist/assets/{useSetState-eCfkvDeH.js → useSetState-dzByTBic.js} +1 -1
  152. package/dist/assets/{useSlot-Hgy7wgji.js → useSlot-v5bcc8Kc.js} +1 -1
  153. package/dist/assets/{user-center-_9WdvukY.js → user-center-solRldPR.js} +1 -1
  154. package/dist/assets/{user-sessions-8fjUaysv.js → user-sessions-pCF1CYcG.js} +1 -1
  155. package/dist/assets/{util-4lnt5jw_.js → util-T6ywpBlM.js} +1 -1
  156. package/dist/assets/{wrap-locale-k5RASHR2.js → wrap-locale-X1izeBJD.js} +1 -1
  157. package/dist/index.html +1 -1
  158. package/dist/service-worker.js +1 -1
  159. package/package.json +18 -18
  160. package/dist/assets/add-resource-gRp69UNL.js +0 -1
  161. package/dist/assets/api-LgIxKv8G.js +0 -1
  162. package/dist/assets/connect-to-H_Vjwa1I.js +0 -54
  163. package/dist/assets/dashboard-HCTOZrs8.js +0 -134
  164. package/dist/assets/index-YVKYSpyM.js +0 -1
  165. package/dist/assets/index-oqz0KKiU.js +0 -13
  166. package/dist/assets/localization-VsUQgdut.js +0 -1
  167. package/dist/assets/overview-TLa2IGzX.js +0 -12
  168. package/dist/assets/publish-resource--tWTaChj.js +0 -1
  169. package/dist/assets/session-hMz18Oeh.js +0 -1
  170. package/dist/assets/uniqBy-4E93YRzM.js +0 -1
  171. package/dist/assets/useAsync-QfOGCMkY.js +0 -1
@@ -1,54 +0,0 @@
1
- import{bo as _,a2 as $,u as I,j as e,B as o,T as u,P as p,r as g,ay as ee,eW as se,o as S,cj as E,U as te,bj as ae,cd as ne,b9 as oe,aZ as ie,ex as ce,bQ as N,c as k,eX as re,y as L,ap as le,X as G,S as pe,de}from"./index-ug8ILiCN.js";import{P as he,u as fe}from"./use-blocklet-info-for-connect-did-spaces-3v-_M2kK.js";import{d as xe,e as me,f as V,h as ge,i as H}from"./spaces-iblVQdlV.js";import{W as ue}from"./did-address-8E42uyI-.js";import{d as Ae}from"./DeleteOutline-cT2nXpK-.js";import{f as D,D as ye,A as Ce}from"./index-ewlbl2rV.js";import{u as X}from"./config-space-YwSwWRVo.js";import{S as P}from"./index-VDbohr0m.js";import"./api-LgIxKv8G.js";import{T as je}from"./TextField-upXvpfEU.js";function ve({key:a}={key:"sm"}){const n=_();return $(n.breakpoints.down(a))}var Z=function(n){return e.jsxs("svg",{...n,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.222l-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.263L121.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.089l1.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.333l.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("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("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),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("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAA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LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};Z.defaultProps={width:"228",height:"258",viewBox:"0 0 228 258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Be(){const{t:a}=I();return e.jsx(o,{children:e.jsxs(o,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(Z,{style:{width:200,height:250}}),e.jsx(u,{marginTop:"24px",marginBottom:"24px",children:a("storage.spaces.connect.providerForStorage")})]})})}Be.propTypes={};function R({spaceGateway:a,onDeleteSpace:n}){const{t:l}=I(),[y,t]=g.useState(!1),[c,x]=g.useState(!1),m=(i,C)=>{i==null||i.stopPropagation(),t(C)},B=async i=>{try{i==null||i.stopPropagation(),x(!0),await n(a),t(!1)}catch(C){console.error(C),S.error(`${l("storage.spaces.gateway.delete.failed")}: ${D(C)}`)}finally{x(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(ee,{size:"small",onClick:i=>m(i,!0),children:e.jsx(Ae,{})}),e.jsx(se,{title:l("common.delConfirmDescription",{data:`${a==null?void 0:a.name}`}),open:y,confirmButton:{text:l("common.confirm"),props:{variant:"contained",color:"error",loading:c}},cancelButton:{text:l("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:B,onCancel:i=>m(i,!1)})]})}R.propTypes={onDeleteSpace:p.func,spaceGateway:p.shape({name:p.string.isRequired,url:p.string.isRequired,protected:p.bool}).isRequired};R.defaultProps={onDeleteSpace:()=>{}};var K=function(n){return e.jsx("svg",{...n,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};K.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b({spaceGateway:a,connected:n,onDisconnect:l,...y}){const t=ve(),{t:c}=I(),x=async()=>{try{await l(),S.success(c("storage.spaces.gateway.delete.succeeded",{name:a.name}))}catch(m){console.error(m),S.error(D(m))}};return e.jsxs(Se,{style:{position:"relative"},children:[e.jsxs(o,{sx:{backgroundColor:n?"#F0FDFF":"inherit","&:hover":{backgroundColor:n?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...y,children:[e.jsx(o,{display:"flex",children:e.jsx(he,{alt:a.did,src:xe(a.endpoint)})}),e.jsxs(o,{className:"spaces-info",display:"flex",flexGrow:1,flexDirection:"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(o,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(u,{color:n?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:a.name}),e.jsx(ae,{label:e.jsxs(e.Fragment,{children:[e.jsx(K,{style:{marginRight:"4px"}}),c("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:t?null:"20px",fontWeight:"bold"}})]}),e.jsx(o,{className:"spaces-address",display:"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(u,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:a.did&&e.jsx(ue,{copyable:!1,size:14,compact:!0,responsive:!1,did:a.did})})})]}),e.jsx(o,{className:"spaces-backup",display:"flex",alignItems:"center",children:e.jsx(o,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(R,{spaceGateway:a,onDeleteSpace:x})})})]}),e.jsx(o,{className:"selected-container selected",children:e.jsx(ne,{className:"selected-icon"})})]})}b.propTypes={spaceGateway:p.shape({did:p.string.isRequired,name:p.string.isRequired,url:p.string.isRequired,endpoint:p.string.isRequired,protected:p.bool}).isRequired,connected:E.bool,onDisconnect:E.func};b.defaultProps={connected:!1,onDisconnect:()=>{}};const Se=te(o)`
2
- .selected-container {
3
- position: absolute;
4
- right: 0px;
5
- bottom: 0px;
6
- display: flex;
7
- -webkit-box-pack: end;
8
- justify-content: flex-end;
9
- align-items: flex-end;
10
- width: 32px;
11
- height: 32px;
12
- border-radius: 0px 0px 8px;
13
- color: rgb(255, 255, 255);
14
- overflow: hidden;
15
- transition: all 0.4s ease 0s;
16
-
17
- &::after {
18
- position: absolute;
19
- z-index: 0;
20
- left: 60px;
21
- top: 60px;
22
- display: block;
23
- width: 0px;
24
- height: 0px;
25
- border-width: 16px;
26
- border-style: solid;
27
- border-color: transparent #1dc1c7 #1dc1c7 transparent;
28
- transition: all 0.1s ease 0s;
29
- content: '';
30
- }
31
-
32
- .selected-icon {
33
- visibility: hidden;
34
- width: 60%;
35
- height: 60%;
36
- position: relative;
37
- z-index: 2;
38
- margin: 0px 1px 1px 0px;
39
- font-size: 16px;
40
- transition: all 0.2s ease 0s;
41
- }
42
- }
43
-
44
- .selected-container.selected {
45
- &::after {
46
- left: 0px;
47
- top: 0px;
48
- }
49
-
50
- .selected-icon {
51
- visibility: visible;
52
- }
53
- }
54
- `;function ze(){const{t:a}=I(),{spaceGateway:n,settingStorageEndpoint:l}=X();return e.jsxs(o,{display:"flex",flexDirection:"column",children:[e.jsx(o,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:e.jsx(u,{fontSize:"1.2rem",fontWeight:"bold",children:a("storage.spaces.connected.title")})}),e.jsx(o,{children:e.jsx(b,{style:{marginTop:"12px"},spaceGateway:n,connected:!0,onDisconnect:()=>l(null)},n.endpoint)})]})}function W({onConnect:a,...n}){const{blocklet:l}=oe(),{info:y}=ie(),{t,locale:c}=I(),[x,m]=g.useState(""),[B,i]=g.useState(!1),[C,U]=g.useState(!1),[T,z]=g.useState(""),d=fe({blocklet:l}),Y=ce(y),{storageEndpoint:M}=X(),[h,F]=g.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,prefix:"/api/did",checkFn:N.create({baseURL:k(window.location.origin,re())}).get,messages:{title:t("storage.spaces.provideNFT.title",{appName:d.appName},c),scan:t("storage.spaces.provideNFT.scan",{appName:d.appName},c),confirm:"",success:e.jsx(u,{gutterBottom:!0,children:t("storage.spaces.provideNFT.success")})},onClose:()=>{F(s=>({...s,open:!1}))}}),[f,w]=g.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:t("storage.spaces.authorize.title",{appName:d.appName},c),scan:t("storage.spaces.authorize.scan",{appName:d.appName},c),confirm:"",success:e.jsx(u,{gutterBottom:!0,children:t("storage.spaces.authorize.success")})},onClose:()=>{w(s=>({...s,open:!1}))}}),J=async({did:s,name:r,endpoint:A})=>{const j=await V(A);if(!await H(j)){S.error(t("storage.spaces.gateway.add.invalidUrl"));return}const v={name:r,did:s,url:j,endpoint:A};await a(v),S.success(t("storage.spaces.connectedWithName",{name:v.name}))},O=(s,r)=>{setTimeout(async()=>{if(w(v=>({...v,open:!1})),m(null),F(v=>({...v,open:!1})),!de(s.spaceGateway)){await J(r(s.spaceGateway));return}const A=r(s.endpoint),j=s.space?r(s.space):{};await J({endpoint:A,did:me(A),name:"DID Space",...j})},0)},q=()=>{F(s=>({...s,open:!0,extraParams:{appPid:l.appPid,referrer:window.location.href}}))},Q=async()=>{try{i(!0);const s=await V(x),r=ge(s),A=new URL(s).searchParams.get("spaceDid");if(!await H(r))throw new Error(t("storage.spaces.gateway.add.invalidUrl"));w(j=>({...j,open:!0,prefix:k(r,"space/api/did"),baseUrl:new URL(r).origin,checkFn:N.create({baseURL:k(r,"space")}).get,extraParams:{appDid:d.appDid,appName:d.appName,appDescription:d.appDescription,scopes:d.scopes,appUrl:d.appUrl,referrer:d.referrer,nodeDid:y.did,spaceDid:A}})),U(!1)}catch(s){const r=`${t("storage.spaces.gateway.add.failed",c)}: ${D(s)}`;z(r)}finally{i(!1)}};return e.jsxs(o,{children:[e.jsx(P,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:q,variant:"outlined",menu:[e.jsx(P.Item,{sx:{textTransform:"none"},onClick:()=>U(!0),size:"small",...n,children:t(M?"storage.spaces.connect.useSpaceGatewayReconnect":"storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(u,{sx:{fontWeight:"bold",textTransform:"none"},children:t(M?"storage.spaces.connect.useWalletReconnect":"storage.spaces.connect.useWallet")})}),e.jsx(L,{forceConnected:!1,saveConnect:!1,prefix:h.prefix,open:h.open,popup:!0,action:h.action,webWalletUrl:Y,baseUrl:h.baseUrl,checkFn:h.checkFn,onSuccess:O,onClose:h.onClose,checkTimeout:h.checkTimeout,extraParams:h.extraParams,messages:h.messages,locale:c}),e.jsx(L,{forceConnected:!1,saveConnect:!1,prefix:f.prefix,open:f.open,popup:!0,action:f.action,baseUrl:f.baseUrl,checkFn:f.checkFn,onSuccess:O,onClose:f.onClose,checkTimeout:f.checkTimeout,extraParams:f.extraParams,messages:f.messages,locale:c}),e.jsxs(le,{title:t("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:C,onClose:()=>U(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(G,{onClick:s=>{s.stopPropagation(),U(!1)},color:"inherit",children:t("common.cancel")}),e.jsxs(G,{onClick:Q,color:"primary",disabled:B||!x,variant:"contained",autoFocus:!0,children:[B&&e.jsx(pe,{size:16}),t("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(ye,{component:"div",children:e.jsx(u,{component:"div",children:e.jsx(je,{label:t("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:x,onChange:s=>{z(null),m(s.target.value)},disabled:B,onKeyPress:async s=>{s.key==="Enter"&&await Q()},autoFocus:!0})})})}),!!T&&e.jsx(Ce,{type:"error",style:{width:"100%"},children:T})]})]})}W.propTypes={onConnect:E.func};W.defaultProps={onConnect:()=>{}};export{ze as C,Be as D,W as a,ve as u};
@@ -1,134 +0,0 @@
1
- import{r as h,aA as Fn,aB as zn,aC as Dt,aD as z,aE as Vn,aF as ve,aG as bn,aH as ht,j as l,aI as Hn,aJ as sr,aK as ir,aL as ar,aM as cr,aN as lr,aO as ur,aP as dr,aQ as fr,aR as pr,aS as mr,aT as hr,aU as qn,aV as gr,aW as vr,aX as yr,P as y,V as Bt,aY as gt,a as vt,S as X,Q as K,R as G,U as Je,e as et,aZ as N,a8 as B,a_ as xr,a$ as Kn,b0 as he,ay as kt,b1 as br,L as Gn,b2 as yt,b3 as wr,X as ye,a6 as De,T as Q,b4 as Sr,o as k,b5 as Cr,b6 as jr,c as at,b7 as _r,b8 as xt,A as Pr,u as V,b9 as we,x as Y,B as D,y as Er,ba as Or,bb as Rr,bc as $t,bd as tt,af as nt,be as He,a4 as Fe,bf as Wn,bg as Qn,bh as Yn,a2 as Mt,bi as Xn,bj as xe,bk as ge,bl as Nt,bm as Zn,bn as Ir,aa as wn,bo as Lr,bp as Tr,bq as Ar,br as Dr,ae as Br,bs as kr,bt as $r,bu as Mr,ax as Nr,C as Ge,bv as Ur,bw as Fr,bx as zr,H as Vr,Z as U,by as Hr,ak as qr,K as Sn}from"./index-ug8ILiCN.js";import{d as Kr,T as Gr}from"./MoreVert-lieR_Xff.js";import{D as Wr,_ as Jn,P as Qr}from"./permission-JPMtSvqY.js";import{T as eo}from"./index-oqz0KKiU.js";import{_ as Yr}from"./useLocalStorage-06lVqZYx.js";import{C as Cn}from"./confirm-7Hh_SSFd.js";import{d as Xr}from"./Delete-FIV1VRAH.js";import{d as Zr}from"./PlayArrow-NklJcWlF.js";import{A as Jr}from"./Alert-9wz-SfVH.js";import{L as es,a as to}from"./ListItemText-7v7ZTw5u.js";import{B as ts}from"./ButtonGroup-yDF0xi1D.js";import{R as ns,a as jn}from"./RadioGroup-H5jcgCgt.js";import{F as bt,C as os}from"./FormControlLabel-mxbf-j4N.js";import{f as Be,A as rs}from"./index-ewlbl2rV.js";import{A as no}from"./Avatar-gImElMr2.js";import{u as ss}from"./session-hMz18Oeh.js";import{g as is,a as as}from"./spaces-iblVQdlV.js";import{E as cs}from"./Link-HTHg_pUm.js";import{E as ls}from"./fallback-mHcLRxLo.js";import{L as us,D as ds}from"./index-iq_e37_h.js";import{u as fs}from"./index-G4D865RD.js";import{_ as oo}from"./useSetState-eCfkvDeH.js";import{c as ps}from"./useSlot-Hgy7wgji.js";const ro=e=>{const t=h.useRef({});return h.useEffect(()=>{t.current=e}),t.current};function ms(e){const{badgeContent:t,invisible:n=!1,max:o=99,showZero:r=!1}=e,i=ro({badgeContent:t,max:o});let s=n;n===!1&&t===0&&!r&&(s=!0);const{badgeContent:a,max:c=o}=s?i:e,u=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:u}}function hs(e){return zn("MuiBadge",e)}const gs=Fn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ee=gs,vs=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ct=10,lt=4,ys=ps(),xs=e=>{const{color:t,anchorOrigin:n,invisible:o,overlap:r,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,o&&"invisible",`anchorOrigin${z(n.vertical)}${z(n.horizontal)}`,`anchorOrigin${z(n.vertical)}${z(n.horizontal)}${z(r)}`,`overlap${z(r)}`,t!=="default"&&`color${z(t)}`]};return Hn(a,hs,s)},bs=Dt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ws=Dt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${z(n.anchorOrigin.vertical)}${z(n.anchorOrigin.horizontal)}${z(n.overlap)}`],n.color!=="default"&&t[`color${z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ct*2,lineHeight:1,padding:"0 6px",height:ct*2,borderRadius:ct,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var o,r;return((o=e.vars)!=null?o:e).palette[n].main&&((r=e.vars)!=null?r:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:lt,height:lt*2,minWidth:lt*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ee.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),Ss=h.forwardRef(function(t,n){var o,r,i,s,a,c;const u=ys({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:p,component:f,components:g={},componentsProps:b={},children:m,overlap:O="rectangular",color:v="default",invisible:E=!1,max:j=99,badgeContent:S,slots:P,slotProps:C,showZero:I=!1,variant:w="standard"}=u,R=Vn(u,vs),{badgeContent:L,invisible:A,max:Z,displayValue:Ce}=ms({max:j,invisible:E,badgeContent:S,showZero:I}),je=ro({anchorOrigin:d,color:v,overlap:O,variant:w,badgeContent:S}),le=A||L==null&&w!=="dot",{color:ue=v,overlap:de=O,anchorOrigin:_=d,variant:x=w}=le?je:u,M=x!=="dot"?Ce:void 0,W=ve({},u,{badgeContent:L,invisible:le,max:Z,displayValue:M,showZero:I,anchorOrigin:_,color:ue,overlap:de,variant:x}),J=xs(W),oe=(o=(r=P==null?void 0:P.root)!=null?r:g.Root)!=null?o:bs,re=(i=(s=P==null?void 0:P.badge)!=null?s:g.Badge)!=null?i:ws,_e=(a=C==null?void 0:C.root)!=null?a:b.root,Pe=(c=C==null?void 0:C.badge)!=null?c:b.badge,fe=bn({elementType:oe,externalSlotProps:_e,externalForwardedProps:R,additionalProps:{ref:n,as:f},ownerState:W,className:ht(_e==null?void 0:_e.className,J.root,p)}),pe=bn({elementType:re,externalSlotProps:Pe,ownerState:W,className:ht(J.badge,Pe==null?void 0:Pe.className)});return l.jsxs(oe,ve({},fe,{children:[m,l.jsx(re,ve({},pe,{children:M}))]}))}),so=Ss;function Cs(e){return zn("MuiListItemAvatar",e)}Fn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const js=["className"],_s=e=>{const{alignItems:t,classes:n}=e;return Hn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Cs,n)},Ps=Dt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>ve({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Es=h.forwardRef(function(t,n){const o=sr({props:t,name:"MuiListItemAvatar"}),{className:r}=o,i=Vn(o,js),s=h.useContext(ir),a=ve({},o,{alignItems:s.alignItems}),c=_s(a);return l.jsx(Ps,ve({className:ht(c.root,r),ownerState:a,ref:n},i))}),Os=Es;var Rs=ar,Is=ur,Ls=dr,Ts=cr,As=lr,Ds=fr,Bs=200;function ks(e,t,n,o){var r=-1,i=Is,s=!0,a=e.length,c=[],u=t.length;if(!a)return c;n&&(t=Ts(t,As(n))),o?(i=Ls,s=!1):t.length>=Bs&&(i=Ds,s=!1,t=new Rs(t));e:for(;++r<a;){var d=e[r],p=n==null?d:n(d);if(d=o||d!==0?d:0,s&&p===p){for(var f=u;f--;)if(t[f]===p)continue e;c.push(d)}else i(t,p,o)||c.push(d)}return c}var $s=ks,Ms=$s,Ns=pr,_n=mr;function Us(e,t,n){var o=e.length;if(o<2)return o?_n(e[0]):[];for(var r=-1,i=Array(o);++r<o;)for(var s=e[r],a=-1;++a<o;)a!=r&&(i[r]=Ms(i[r]||s,e[a],t,n));return _n(Ns(i,1),t,n)}var Fs=Us,zs=gr,Vs=hr,Hs=Fs,qs=yr,Ks=vr,Gs=Vs(function(e){var t=Ks(e);return t=typeof t=="function"?t:void 0,Hs(zs(e,qs),void 0,t)}),Ws=Gs;const Qs=qn(Ws),io=h.createContext({});function Ut({children:e,type:t}){const[n,o]=h.useState([]),r=h.useRef([]),i=c=>{if(!r.current.includes(c)){const u=[...r.current,c];o(u),r.current=u}},s=c=>{if(r.current.includes(c)){const u=r.current.filter(d=>d!==c);o(u),r.current=u}},a=c=>{const u=n.filter(p=>c.find(f=>f===p));Qs(u,n).forEach(p=>s(p))};return l.jsx(io.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:s,matchDeletingDid:a},children:e})}Ut.propTypes={type:y.string,children:y.node.isRequired};Ut.defaultProps={type:"blocklets"};function vl(){return h.useContext(io)}function Ft({children:e,style:t,...n}){return l.jsx(eo,{style:t,...n,children:e})}Ft.propTypes={children:y.any.isRequired,style:y.object};Ft.defaultProps={style:{}};const $={yellow:"#FFCF71",grey:"#888888"};function zt({status:e,variant:t,source:n,progress:o,...r}){const{t:i}=h.useContext(Bt),s={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning"},a={added:$.grey,waiting:$.yellow,downloading:$.yellow,extracting:$.yellow,downloaded:$.grey,installing:$.yellow,installed:$.grey,starting:$.yellow,running:"success",stopping:$.yellow,stopped:$.grey,error:"error",upgrading:$.yellow,restarting:$.yellow,corrupted:"error",deleting:$.yellow},c=gt(e),u=i(`blocklet.status.${e}`);return t==="dot"?l.jsx(vt,{title:i("blocklet.statusTip",{status:u}),children:l.jsx(Wr,{color:a[e],...r})}):l.jsxs(Ft,{type:s[e],...r,children:[c&&l.jsx(X,{size:12,color:"inherit",style:{marginRight:5}}),u,e==="downloading"&&o?l.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}zt.propTypes={status:y.string.isRequired,variant:y.oneOf(["dot","tag"]),source:y.string,progress:y.number};zt.defaultProps={variant:"tag",source:"",progress:0};var Vt={},Ys=G;Object.defineProperty(Vt,"__esModule",{value:!0});var ao=Vt.default=void 0,Xs=Ys(K()),Zs=l;ao=Vt.default=(0,Xs.default)((0,Zs.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Ht={},Js=G;Object.defineProperty(Ht,"__esModule",{value:!0});var co=Ht.default=void 0,ei=Js(K()),ti=l;co=Ht.default=(0,ei.default)((0,ti.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var qt={},ni=G;Object.defineProperty(qt,"__esModule",{value:!0});var lo=qt.default=void 0,oi=ni(K()),ri=l;lo=qt.default=(0,oi.default)((0,ri.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Kt={},si=G;Object.defineProperty(Kt,"__esModule",{value:!0});var uo=Kt.default=void 0,ii=si(K()),ai=l;uo=Kt.default=(0,ii.default)((0,ai.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Gt={},ci=G;Object.defineProperty(Gt,"__esModule",{value:!0});var fo=Gt.default=void 0,li=ci(K()),ui=l;fo=Gt.default=(0,li.default)((0,ui.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Wt={},di=G;Object.defineProperty(Wt,"__esModule",{value:!0});var po=Wt.default=void 0,fi=di(K()),pi=l;po=Wt.default=(0,fi.default)((0,pi.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");const te={Start:Zr,Stop:ao,Restart:co,Reload:lo,Remove:Xr,Config:uo,Log:fo,Group:po};function Qt({blocklet:e,onStart:t,onComplete:n,variant:o,hasPermission:r,useBlockletUrlEvaluation:i,...s}){var de,_;const a=et(),c=N(),[u,d]=h.useState(null),[p,f]=h.useState(null),[g,b]=h.useState(!1),[m,O]=h.useState(null),{t:v}=h.useContext(Bt),[E]=Yr("skip-blocklet-setup",!1),{loading:j,recommendedUrl:S}=i(e),P=gt(e.status),C=((_=(de=e==null?void 0:e.controller)==null?void 0:de.status)==null?void 0:_.value)===B.BLOCKLET_CONTROLLER_STATUS.suspended,{inService:I}=c,w=(x,M,W=!1)=>async()=>{const J=async fe=>{var Ue;t({action:x,blocklet:e}),b(!0),f(x);let pe=!1;try{if(x==="remove")await M(fe);else if(x==="start"){if(!Sr(e)){k.error(v("blocklet.noComponent"));return}if(!I&&!E&&!((Ue=e.settings)!=null&&Ue.initialized)&&e.mode!==B.BLOCKLET_MODES.DEVELOPMENT){const H=Cr(c.info),xn=new URL(S);xn.searchParams.set("serverUrl",H),window.open(xn.href),n({action:x,blocklet:e});return}const se=e.children.filter(H=>!gt(H.status)&&H.status!=="running").map(H=>H.meta.did),me={did:e.meta.did,componentDids:se};await M({input:me})}else if(["stop","restart","reload"].includes(x)){const se=e.children.filter(H=>H.status==="running").map(H=>H.meta.did),me={did:e.meta.did,componentDids:se};await M({input:me})}else{const se={did:e.meta.did};await M({input:se})}x==="remove"?pe=!0:await jr(1e3),x==="reload"&&k.success(v("blocklet.reloadSuccess")),O(null),n({action:x,blocklet:e})}catch(se){const me=`Blocklet ${x} failed: ${Be(se)}`;throw n({action:x,blocklet:e,error:new Error(me)}),new Error(me)}finally{pe||b(!1)}},oe=()=>{b(!1),O(null)},re=De(e,!0),_e=e.mode===B.BLOCKLET_MODES.DEVELOPMENT?{description:()=>l.jsx(Q,{component:"div",children:l.jsx(Q,{gutterBottom:!0,children:v("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(fe,pe)=>l.jsxs(Q,{component:"div",children:[l.jsx(Q,{gutterBottom:!0,children:v("blocklet.action.removeApplicationDescription")}),l.jsxs(ns,{name:"removeType",value:fe.removeType,onChange:Ue=>pe({...fe,removeType:Ue.target.value}),children:[l.jsx(bt,{value:"backup",control:l.jsx(jn,{}),label:v("blocklet.action.removeApplicationAfterBackup")}),l.jsx(bt,{value:"complete",control:l.jsx(jn,{}),label:v("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Pe={stop:{title:`${v("common.stop")} ${re}`,description:v("blocklet.action.stopDescription"),confirm:v("blocklet.action.confirmStop"),cancel:v("common.cancel"),onConfirm:J,onCancel:oe},restart:{title:`${v("common.restart")} ${re}`,description:v("blocklet.action.restartDescription"),confirm:v("blocklet.action.confirmRestart"),cancel:v("common.cancel"),onConfirm:J,onCancel:oe},remove:{title:`${v("common.remove")} ${re}`,confirm:v("blocklet.action.confirmRemove"),cancel:v("common.cancel"),onConfirm:J,onCancel:oe,..._e},cancelDownload:{title:`${v("common.cancel")}`,description:v("blocklet.action.cancelDownloadDescription",{name:re}),confirm:v("common.confirm"),cancel:v("common.cancel"),onConfirm:J,onCancel:oe}};W?O(Pe[x]):await J()},R=!!u,L=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(x.currentTarget)},A=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(null)},Z=async(x,M)=>{try{M.stopPropagation(),M.preventDefault()}catch{}if(typeof x.handler=="function")try{b(!0),f(x.action),await x.handler()}catch(W){console.error(`Blocklet ${x.name} failed: `,W)}finally{b(!1),d(null)}else d(null)},Ce=!I&&xr(e)?{action:"remove",icon:te.Remove,name:v("common.remove"),handler:w("remove",async({removeType:x})=>{x==="backup"&&await c.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await c.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:P}:null,je={action:"remove",icon:te.Remove,name:v("common.cancel"),handler:w("cancelDownload",c.api.cancelDownloadBlocklet,!0)},le=Kn(e),ue=[{action:"start",icon:te.Start,name:v("common.start"),handler:w("start",c.api.startBlocklet),disabled:C||e.children.every(x=>x.status==="running")||he(e.status)||j||P},{action:"stop",icon:te.Stop,name:v("common.stop"),handler:w("stop",c.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:te.Restart,name:v("common.restart"),handler:w("restart",c.api.restartBlocklet,!0),disabled:C||e.status!=="running"},he(e.status)?je:Ce,{separator:!0},{onlyInMenu:!0,action:"config",icon:te.Config,name:v("common.config"),handler:()=>{a(`/blocklets/${e.meta.did}/configuration`)},disabled:he(e.status)},{onlyInMenu:!0,action:"team",icon:te.Group,name:v("common.manageTeam"),handler:()=>{a(`/blocklets/${e.meta.did}/members`)},disabled:he(e.status)},{onlyInMenu:!0,action:"log",icon:te.Log,name:v("common.log"),handler:()=>{a(`/logs/blocklet-${e.meta.did}`)},disabled:he(e.status)}].filter(Boolean);return o==="menu"?l.jsxs(Pn,{"data-cy":"blocklet-actions",children:[l.jsx(kt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:L,size:"small",disabled:!r||!he(e.status)&&g,children:l.jsx(Kr,{})}),l.jsxs(br,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:R,onClose:A,PaperProps:{},children:[le.length>0&&l.jsxs(Jr,{style:{maxWidth:"400px"},severity:"error",children:[v("blocklet.config.missingRequired"),l.jsx("br",{}),l.jsx(Gn,{to:`/blocklets/${e.meta.did}/components`,children:v("blocklet.config.gotoFix")})]}),ue.map((x,M)=>x.separator?l.jsx(yt,{},`separator-${M}`):l.jsxs(wr,{dense:!0,onClick:W=>Z(x,W),disabled:g||x.disabled,"data-cy":`${x.action}-blocklet`,children:[l.jsx(es,{style:{minWidth:24},children:p===x.action&&g?l.jsx(X,{size:16,sx:{marginRight:1}}):l.jsx(x.icon,{fontSize:"small"})}),l.jsx(to,{primary:x.name})]},x.name))]}),m&&l.jsx(Cn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):l.jsxs(Pn,{"data-cy":"blocklet-actions",...s,children:[l.jsx(ts,{children:ue.filter(x=>!x.separator&&!x.onlyInMenu).map(x=>l.jsxs(ye,{title:x.name,"data-cy":`${x.action}-blocklet`,onClick:()=>Z(x),disabled:!!x.disabled||g,children:[p===x.action&&g?l.jsx(X,{size:16,sx:{marginRight:1}}):l.jsx(x.icon,{}),l.jsx("span",{className:"blocklet-action-text",children:x.name})]},x.name))}),m&&l.jsx(Cn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}Qt.propTypes={blocklet:y.object.isRequired,onStart:y.func.isRequired,onComplete:y.func.isRequired,variant:y.oneOf(["menu","group"]),hasPermission:y.bool,useBlockletUrlEvaluation:y.func};Qt.defaultProps={variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const Pn=Je.div`
2
- display: flex;
3
- align-items: center;
4
-
5
- @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
6
- .MuiButton-root {
7
- padding: 4px;
8
- font-size: 10px;
9
- }
10
- }
11
- `,ut=(e,t)=>{var o;let n="?v=";return t?n+=_r(t):n+=`${(o=e==null?void 0:e.meta)==null?void 0:o.version}${xt(e==null?void 0:e.status)?"~":""}`,n};function mi({blocklet:e}){var u,d,p,f;const{inService:t}=N(),n=(u=((e==null?void 0:e.environments)||[]).find(g=>g.key===B.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:u.value,o=(d=((e==null?void 0:e.environments)||[]).find(g=>g.key===B.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:d.value,r=(p=((e==null?void 0:e.environments)||[]).find(g=>g.key===B.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:p.value,i=((f=window.env)==null?void 0:f.apiPrefix)||"/",s=at(i,`/blocklet/logo/${t?"":e.meta.did}`,ut(e,n)),a=at(i,`/blocklet/logo-rect/${t?"":e.meta.did}`,ut(e,o)),c=at(i,`/blocklet/logo-favicon/${t?"":e.meta.did}`,ut(e,r));return{logoUrl:s,rectLogoUrl:a,faviconUrl:c}}function Yt({blocklet:e,style:t,size:n,...o}){var a;const{logoUrl:r}=mi({blocklet:e}),{variant:i}=o;let s=l.jsx("img",{src:r,alt:"",style:{width:n}});return e.meta.logo||(a=(e.configs||[]).find(u=>u.key===B.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))!=null&&a.value||(s=l.jsx(Pr,{did:e.meta.did||"",responsive:!0})),l.jsx(no,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},t),...o,children:s})}Yt.propTypes={blocklet:y.object.isRequired,style:y.object,size:y.oneOfType([y.number,y.string])};Yt.defaultProps={style:{},size:40};const hi=e=>{const t={};let n=null;return Rr(e,o=>{t[o.meta.bundleDid]?n=De(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},gi=(e,t,n)=>{var i;const{hostname:o,href:r}=e;if(!t)return r;if(n){const a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!a)return r;const c=a[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(p=>p.value).filter(Boolean).find(p=>p.endsWith(Y.DEFAULT_DID_DOMAIN))||"").replace(`.${Y.DEFAULT_DID_DOMAIN}`,"");return d?r.replace(o,`${d}-${c}.${Y.DEFAULT_IP_DOMAIN_SUFFIX}`):r}return r.replace(t.meta.bundleDid,t.appPid)};function mo(){const{t:e}=V(),{api:t}=ss(),{blocklet:n}=we(),{inService:o}=N(),[r,i]=h.useState(!1),[s,a]=h.useState(5),c=n&&n.structVersion!==Y.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){k.error(e("blocklet.migrate.tip.running"));return}const f=hi(n);if(f){k.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}i(!0)}catch(f){k.error(Be(f))}},d=()=>{const f=gi(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),a(5),setInterval(()=>{a(g=>g-1)},1e3)},p=()=>i(!1);return[c&&l.jsxs(rs,{type:"warning",style:{margin:"12px 0"},children:[l.jsxs(D,{display:"flex",alignItems:"center",children:[l.jsx(ye,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),l.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>l.jsx(D,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&l.jsx(Er,{popup:!0,open:r,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Or(n,!0),title:De(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:p},"connect")]}mo.propTypes={};async function vi({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const r=await Promise.all(n.map(async i=>{let{name:s}=i;const a=await is(i.endpoint);return!$t.isEmpty(a)&&a!==s&&(s=a,o=!0),{...i,name:s}}));return o&&await Promise.all(r.filter(i=>i.did).map(i=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:i.did},spaceGateway:{...i}}}))),r}function yi({setLoading:e,refresh:t}={}){var c;const{blocklet:n,actions:{refreshBlocklet:o}}=we(),r=(c=n==null?void 0:n.meta)==null?void 0:c.did,[i,s]=h.useState([]),{api:a}=N();return tt(async()=>{try{if(!r){s([]);return}e==null||e(!0);const{spaceGateways:u}=await a.getBlockletSpaceGateways({input:{did:r}}),d=await vi({blockletDid:r,nodeApi:a,spaceGateways:u});s(d??[])}catch(u){console.error(u),k.error(Be(u))}finally{e==null||e(!1)}},[r,o,t]),{spaceGateways:i}}function ho({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var a;const{blocklet:n}=we(),[o,r]=h.useState([]),{api:i}=N(),s=$t.debounce(async()=>{try{if(t(!0),!n){r([]);return}const{backups:c}=await i.getBlockletBackups({input:{did:n.meta.did}});r(c??[])}catch(c){console.error(c),k.error(Be(c))}finally{t(!1)}},2e3);return tt(async()=>{s()},[(a=n==null?void 0:n.meta)==null?void 0:a.did].concat(e)),{backups:o}}function xi({appDid:e}){const{backups:t}=ho(),[n,o]=h.useState({message:"",progress:0,completed:!1}),r=N(),{ws:{useSubscription:i}}=r;return i(B.BlockletEvents.backupProgress,s=>{e===(s==null?void 0:s.appDid)&&o(()=>({...s}))},[e]),h.useEffect(()=>{var s;if(t!=null&&t.length&&$t.isNull((s=t[0])==null?void 0:s.status)){const[a]=t;o(()=>({message:a.message,progress:a.progress,completed:a.progress>=100}))}},[t]),n}function bi({deps:e}={deps:[]}){var i;const{blocklet:t}=we(),{api:n}=N(),[o,r]=h.useState(null);return tt(async()=>{var s;if((s=t==null?void 0:t.meta)!=null&&s.did){const{autoBackup:a}=await n.getAutoBackup({input:{did:t.meta.did}});r(a)}},[(i=t==null?void 0:t.meta)==null?void 0:i.did].concat(e)),o}function wi({deps:e}={deps:[]}){var i;const{blocklet:t}=we(),{api:n}=N(),[o,r]=h.useState(null);return tt(async()=>{var s;if((s=t==null?void 0:t.meta)!=null&&s.did){const{autoCheckUpdate:a}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});r(a)}},[(i=t==null?void 0:t.meta)==null?void 0:i.did].concat(e)),o}const go=h.createContext({}),{Provider:Si,Consumer:yl}=go;function Xt({children:e}){const{t}=V(),{api:n}=N(),{blocklet:o}=we(),[r,i]=h.useState(!1),[s,a]=h.useState(!1),{spaceGateways:c}=yi({refresh:s,setLoading:i}),u=xi({appDid:o==null?void 0:o.appDid}),[d,p]=h.useState(!1),f=h.useMemo(()=>as(o==null?void 0:o.environments),[o,s,d]),[g,b]=h.useState(!1),{backups:m}=ho({deps:[u],setLoading:b}),[O,v]=h.useState(c==null?void 0:c.find(_=>_.endpoint===f)),[E,j]=h.useState(!1),S=bi({deps:[E]}),[P,C]=h.useState(!1),I=wi({deps:[P]}),w=()=>{a(_=>!_)},R=()=>{p(_=>!_)},L=()=>{j(_=>!_)},A=()=>{C(_=>!_)},Z=async(_,x)=>{c.push({..._,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:_}}),f!==x&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:B.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:x}]}}),w(),v(_)},Ce=async _=>{if(_){if(_.endpoint===f){k.warning(t("storage.spaces.gateway.delete.failedForConnected"));return}await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:_==null?void 0:_.did}}),w(),v(_)}},je=async _=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:_.did},spaceGateway:_}}),f!==_.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:B.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:_.endpoint}]}}),k.success(t("storage.spaces.connectedWithName",{name:(_==null?void 0:_.name)??"DID Spaces"})),w()},le=_=>(_==null?void 0:_.endpoint)===f,ue=async _=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:_}}),L()},de=async _=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:_}}),A()};return l.jsx(Si,{value:{spaceGateways:c,selectedSpaceGateway:O,addSpaceGateway:Z,deleteSpaceGateway:Ce,updateSpaceGateway:je,refreshSpaceGateways:w,spaceGatewaysLoading:r,spaceGatewayIsSelected:le,updateAutoBackup:ue,updateAutoCheckUpdate:de,autoCheckUpdate:I,backupEndpoint:f,backupProgress:u,backups:m,backupsLoading:g,refreshBackupEndpoint:R,autoBackup:S},children:e})}Xt.propTypes={children:y.any.isRequired};Xt.defaultProps={};function xl(){return h.useContext(go)}const vo=h.createContext({});function bl(){return h.useContext(vo)}const{Provider:Ci,Consumer:wl}=vo,{did:F,appId:ji}=window.env;function _i({children:e}){var C,I;const{t,locale:n}=V(),{blocklet:o}=nt(),[r,i]=h.useState([]),[s,a]=h.useState([]),[c,u]=h.useState([]),d=De(o),p=((C=((o==null?void 0:o.environments)||[]).find(w=>w.key===B.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:C.value)||"auto",f=(o==null?void 0:o.trustedPassports)||[],g=(o==null?void 0:o.trustedFactories)||[],b=(o==null?void 0:o.enablePassportIssuance)!==!1,m=async()=>{try{const w=await Fe.doBatchQuery({getRoles:{input:{teamDid:F}},getPermissions:{input:{teamDid:F}},getInvitations:{input:{teamDid:F}}});a((w.getRoles.roles||[]).filter(R=>!Y.RBAC_CONFIG.roles.some(L=>L.name===R.name&&(!L.passport||L.ci))).map(R=>(R.hasDescription=!!R.description,R.hasDescription||(R.description=t("team.passport.description",{teamName:d,title:R.title})),R))),u(w.getPermissions.permissions||[]),i(w.getInvitations.invitations||[])}catch(w){k.error(w.message)}},O=({did:w}={})=>{const R={teamDid:F,user:{did:w}};return Fe.getUser({input:R})},v=({query:w,paging:R}={})=>{const L={teamDid:F};return R&&(L.paging=R),w&&(L.query=w),L.sort={lastLoginAt:-1},Fe.getUsers({input:L})},E=()=>Fe.getUsersCountPerRole({input:{teamDid:F}}),j=()=>m();h.useEffect(()=>{var w;(w=o==null?void 0:o.meta)!=null&&w.did&&m()},[(I=o==null?void 0:o.meta)==null?void 0:I.did]),h.useEffect(()=>{a(w=>w.map(R=>(R.hasDescription||(R.description=t("team.passport.description",{teamName:d,title:R.title})),{...R})))},[t,n]);const S=w=>{w.teamDid===F&&m()};He(B.TeamEvents.userAdded,S,[F]),He(B.TeamEvents.userRemoved,S,[F]),He(B.TeamEvents.userUpdated,S,[F]);const P={teamDid:F,teamIssuerDid:ji,teamName:d,invitations:r,roles:s,permissions:c,trustedPassports:f,trustedFactories:g,isNodeTeam:!1,enablePassportIssuance:b,refresh:j,passportColor:p,endpoint:window.location.origin,blocklet:o,api:{getUser:O,getUsers:v,getUsersCountPerRole:E}};return l.jsx(Ci,{value:P,children:e})}function T(e,t,n){return Wn.call(t,"css")?l.jsx(Qn,Yn(e,t),n):l.jsx(e,t,n)}function dt(e,t,n){return Wn.call(t,"css")?l.jsxs(Qn,Yn(e,t),n):l.jsxs(e,t,n)}/**
12
- * (c) Iconify
13
- *
14
- * For the full copyright and license information, please view the license.txt or license.gpl.txt
15
- * files at https://github.com/iconify/iconify
16
- *
17
- * Licensed under MIT.
18
- *
19
- * @license MIT
20
- * @version 3.1.1
21
- */const yo=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ke=Object.freeze({...yo,...We}),wt=Object.freeze({...ke,body:"",hidden:!1});function Pi(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function En(e,t){const n=Pi(e,t);for(const o in wt)o in We?o in e&&!(o in n)&&(n[o]=We[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Ei(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function i(s){if(n[s])return r[s]=[];if(!(s in r)){r[s]=null;const a=o[s]&&o[s].parent,c=a&&i(a);c&&(r[s]=[a].concat(c))}return r[s]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(i),r}function Oi(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function s(a){i=En(o[a]||r[a],i)}return s(t),n.forEach(s),En(e,i)}function xo(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=Ei(e);for(const r in o){const i=o[r];i&&(t(r,Oi(e,r,i)),n.push(r))}return n}const Re=/^[a-z0-9]+(-[a-z0-9]+)*$/,Se=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),c=r.pop(),u={provider:r.length>0?r[0]:o,prefix:c,name:a};return t&&!qe(u)?null:u}const i=r[0],s=i.split("-");if(s.length>1){const a={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!qe(a)?null:a}if(n&&o===""){const a={provider:o,prefix:"",name:i};return t&&!qe(a,n)?null:a}return null},qe=(e,t)=>e?!!((e.provider===""||e.provider.match(Re))&&(t&&e.prefix===""||e.prefix.match(Re))&&e.name.match(Re)):!1,Ri={provider:"",aliases:{},not_found:{},...yo};function ft(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function bo(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ft(e,Ri))return null;const n=t.icons;for(const r in n){const i=n[r];if(!r.match(Re)||typeof i.body!="string"||!ft(i,wt))return null}const o=t.aliases||Object.create(null);for(const r in o){const i=o[r],s=i.parent;if(!r.match(Re)||typeof s!="string"||!n[s]&&!o[s]||!ft(i,wt))return null}return t}const Qe=Object.create(null);function Ii(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function q(e,t){const n=Qe[e]||(Qe[e]=Object.create(null));return n[t]||(n[t]=Ii(e,t))}function Zt(e,t){return bo(t)?xo(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function Li(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Ti(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Qe)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(Qe[r]||{})).forEach(s=>{const a=q(r,s);n=n.concat(Object.keys(a.icons).map(c=>(r!==""?"@"+r+":":"")+s+":"+c))})}),n}let Te=!1;function Ai(e){return typeof e=="boolean"&&(Te=e),Te}function $e(e){const t=typeof e=="string"?Se(e,!0,Te):e;if(t){const n=q(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function wo(e,t){const n=Se(e,!0,Te);if(!n)return!1;const o=q(n.provider,n.prefix);return Li(o,n.name,t)}function So(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Te&&!t&&!e.prefix){let r=!1;return bo(e)&&(e.prefix="",xo(e,(i,s)=>{s&&wo(i,s)&&(r=!0)})),r}const n=e.prefix;if(!qe({provider:t,prefix:n,name:"a"}))return!1;const o=q(t,n);return!!Zt(o,e)}function Di(e){return!!$e(e)}function Bi(e){const t=$e(e);return t?{...ke,...t}:null}const Co=Object.freeze({width:null,height:null}),jo=Object.freeze({...Co,...We}),ki=/(-?[0-9.]*[0-9]+[0-9.]*)/g,$i=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function St(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(ki);if(o===null||!o.length)return e;const r=[];let i=o.shift(),s=$i.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*t*n)/n)}else r.push(i);if(i=o.shift(),i===void 0)return r.join("");s=!s}}const Mi=e=>e==="unset"||e==="undefined"||e==="none";function ot(e,t){const n={...ke,...e},o={...jo,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(b=>{const m=[],O=b.hFlip,v=b.vFlip;let E=b.rotate;O?v?E+=2:(m.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),m.push("scale(-1 1)"),r.top=r.left=0):v&&(m.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),m.push("scale(1 -1)"),r.top=r.left=0);let j;switch(E<0&&(E-=Math.floor(E/4)*4),E=E%4,E){case 1:j=r.height/2+r.top,m.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:m.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:j=r.width/2+r.left,m.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}E%2===1&&(r.left!==r.top&&(j=r.left,r.left=r.top,r.top=j),r.width!==r.height&&(j=r.width,r.width=r.height,r.height=j)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const s=o.width,a=o.height,c=r.width,u=r.height;let d,p;s===null?(p=a===null?"1em":a==="auto"?u:a,d=St(p,c/u)):(d=s==="auto"?c:s,p=a===null?St(d,u/c):a==="auto"?u:a);const f={},g=(b,m)=>{Mi(m)||(f[b]=m.toString())};return g("width",d),g("height",p),f.viewBox=r.left.toString()+" "+r.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:f,body:i}}const Ni=/\sid="(\S+)"/g,Ui="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Fi=0;function _o(e,t=Ui){const n=[];let o;for(;o=Ni.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Fi++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const ie={local:!0,session:!0},Po={local:new Set,session:new Set};let Jt=!1;function zi(e){Jt=e}const On="iconify2",Ae="iconify",Eo=Ae+"-count",Rn=Ae+"-version",Oo=36e5,Vi=168;function Ct(e,t){try{return e.getItem(t)}catch{}}function en(e,t,n){try{return e.setItem(t,n),!0}catch{}}function In(e,t){try{e.removeItem(t)}catch{}}function jt(e,t){return en(e,Eo,t.toString())}function _t(e){return parseInt(Ct(e,Eo))||0}let ze=typeof window>"u"?{}:window;function Ro(e){const t=e+"Storage";try{if(ze&&ze[t]&&typeof ze[t].length=="number")return ze[t]}catch{}ie[e]=!1}function Io(e,t){const n=Ro(e);if(!n)return;const o=Ct(n,Rn);if(o!==On){if(o){const a=_t(n);for(let c=0;c<a;c++)In(n,Ae+c.toString())}en(n,Rn,On),jt(n,0);return}const r=Math.floor(Date.now()/Oo)-Vi,i=a=>{const c=Ae+a.toString(),u=Ct(n,c);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>r&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,a))return!0}catch{}In(n,c)}};let s=_t(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,jt(n,s)):Po[e].add(a))}function Lo(){if(!Jt){zi(!0);for(const e in ie)Io(e,t=>{const n=t.data,o=t.provider,r=n.prefix,i=q(o,r);if(!Zt(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function To(e,t){switch(e){case"local":case"session":ie[e]=t;break;case"all":for(const n in ie)ie[n]=t;break}}const Pt=Object.create(null);function Ao(e,t){Pt[e]=t}function Et(e){return Pt[e]||Pt[""]}function tn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const rt=Object.create(null),Ee=["https://api.simplesvg.com","https://api.unisvg.com"],Ke=[];for(;Ee.length>0;)Ee.length===1||Math.random()>.5?Ke.push(Ee.shift()):Ke.push(Ee.pop());rt[""]=tn({resources:["https://api.iconify.design"].concat(Ke)});function Do(e,t){const n=tn(t);return n===null?!1:(rt[e]=n,!0)}function st(e){return rt[e]}function Hi(){return Object.keys(rt)}const qi=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ye=qi();function Ki(e){Ye=e}function Gi(){return Ye}function Wi(e,t){const n=st(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(s=>{r=Math.max(r,s.length)});const i=t+".json?icons=";o=n.maxURL-r-n.path.length-i.length}return o}function Qi(e){return e===404}const Yi=(e,t,n)=>{const o=[],r=Wi(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=r&&u>0&&(o.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=c.length),s.icons.push(c)}),o.push(s),o};function Xi(e){if(typeof e=="string"){const t=st(e);if(t)return t.path}return"/"}const Zi=(e,t,n)=>{if(!Ye){n("abort",424);return}let o=Xi(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});o+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;Ye(e+o).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(Qi(s)?"abort":"next",s)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})},Ji={prepare:Yi,send:Zi};function ea(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const i=r.provider,s=r.prefix,a=r.name,c=n[i]||(n[i]=Object.create(null)),u=c[s]||(c[s]=q(i,s));let d;a in u.icons?d=t.loaded:s===""||u.missing.has(a)?d=t.missing:d=t.pending;const p={provider:i,prefix:s,name:a};d.push(p)}),t}function Bo(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function ta(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==r)return!0;const u=c.name;if(e.icons[u])s.loaded.push({provider:o,prefix:r,name:u});else if(e.missing.has(u))s.missing.push({provider:o,prefix:r,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||Bo([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let na=0;function oa(e,t,n){const o=na++,r=Bo.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),r}function ra(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const i=typeof r=="string"?Se(r,t,n):r;i&&o.push(i)}),o}var sa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ia(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let C=e.resources.slice(0);for(s=[];C.length>1;){const I=Math.floor(Math.random()*C.length);s.push(C[I]),C=C.slice(0,I).concat(C.slice(I+1))}s=s.concat(C)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let c="pending",u=0,d,p=null,f=[],g=[];typeof o=="function"&&g.push(o);function b(){p&&(clearTimeout(p),p=null)}function m(){c==="pending"&&(c="aborted"),b(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function O(C,I){I&&(g=[]),typeof C=="function"&&g.push(C)}function v(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:O,abort:m}}function E(){c="failed",g.forEach(C=>{C(void 0,d)})}function j(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function S(C,I,w){const R=I!=="success";switch(f=f.filter(L=>L!==C),c){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=w,E();return}if(R){d=w,f.length||(s.length?P():E());return}if(b(),j(),!e.random){const L=e.resources.indexOf(C.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(w)})}function P(){if(c!=="pending")return;b();const C=s.shift();if(C===void 0){if(f.length){p=setTimeout(()=>{b(),c==="pending"&&(j(),E())},e.timeout);return}E();return}const I={status:"pending",resource:C,callback:(w,R)=>{S(I,w,R)}};f.push(I),u++,p=setTimeout(P,e.rotate),n(C,t,I.callback)}return setTimeout(P),v}function ko(e){const t={...sa,...e};let n=[];function o(){n=n.filter(a=>a().status==="pending")}function r(a,c,u){const d=ia(t,a,c,(p,f)=>{o(),u&&u(p,f)});return n.push(d),d}function i(a){return n.find(c=>a(c))||null}return{query:r,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:o}}function Ln(){}const pt=Object.create(null);function aa(e){if(!pt[e]){const t=st(e);if(!t)return;const n=ko(t),o={config:t,redundancy:n};pt[e]=o}return pt[e]}function $o(e,t,n){let o,r;if(typeof e=="string"){const i=Et(e);if(!i)return n(void 0,424),Ln;r=i.send;const s=aa(e);s&&(o=s.redundancy)}else{const i=tn(e);if(i){o=ko(i);const s=e.resources?e.resources[0]:"",a=Et(s);a&&(r=a.send)}}return!o||!r?(n(void 0,424),Ln):o.query(t,r,n)().abort}function ca(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in ie)Io(o,r=>{const i=r.data;return r.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function la(e,t){Jt||Lo();function n(o){let r;if(!ie[o]||!(r=Ro(o)))return;const i=Po[o];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=_t(r),!jt(r,s+1))return;const a={cached:Math.floor(Date.now()/Oo),provider:e.provider,data:t};return en(r,Ae+s.toString(),JSON.stringify(a))}t.lastModified&&!ca(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Tn(){}function ua(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ta(e)}))}function da(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let i;if(!r||!(i=Et(n)))return;i.prepare(n,o,r).forEach(a=>{$o(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=Zt(e,c);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(p=>{d.delete(p)}),la(e,c)}catch(u){console.error(u)}ua(e)})})}))}const fa=e=>{const n=q(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},nn=(e,t)=>{const n=ra(e,!0,Ai()),o=ea(n);if(!o.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(o.loaded,o.missing,o.pending,Tn)}),()=>{c=!1}}const r=Object.create(null),i=[];let s,a;return o.pending.forEach(c=>{const{provider:u,prefix:d}=c;if(d===a&&u===s)return;s=u,a=d,i.push(q(u,d));const p=r[u]||(r[u]=Object.create(null));p[d]||(p[d]=[])}),o.pending.forEach(c=>{const{provider:u,prefix:d,name:p}=c,f=q(u,d),g=f.pendingIcons||(f.pendingIcons=new Set);g.has(p)||(g.add(p),r[u][d].push(p))}),i.forEach(c=>{const{provider:u,prefix:d}=c;r[u][d].length&&da(c,r[u][d])}),t?oa(t,o,i):Tn},pa=e=>new Promise((t,n)=>{const o=typeof e=="string"?Se(e,!0):e;if(!o){n(e);return}nn([o||e],r=>{if(r.length&&o){const i=$e(o);if(i){t({...ke,...i});return}}n(e)})});function Mo(e,t){const n={...e};for(const o in t){const r=t[o],i=typeof r;o in Co?(r===null||r&&(i==="string"||i==="number"))&&(n[o]=r):i===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const it={...jo,inline:!1},mt="iconify",Ot="iconify-inline",ne="iconifyData"+Date.now();let ce=[];function Me(e){for(let t=0;t<ce.length;t++){const n=ce[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function No(e,t=!1){let n=Me(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ce.push(n),n)}function ma(){if(document.documentElement)return No(document.documentElement);ce.push({node:()=>document.documentElement})}function ha(e){ce=ce.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Ne(){return ce}function ga(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Ie=null;const va={childList:!0,subtree:!0,attributes:!0};function Uo(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Ie&&Ie(e)}))}function ya(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||r.type==="attributes"&&r.target[ne]!==void 0){n.paused||Uo(e);return}}}function Fo(e,t){e.observer.instance.observe(t,va)}function Xe(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(ya.bind(null,e)),Fo(e,n),t.paused||Uo(e))}function An(){Ne().forEach(Xe)}function zo(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function xa(e){const t=Ie!==null;if(Ie!==e&&(Ie=e,t&&Ne().forEach(zo)),t){An();return}ga(An)}function Rt(e){(e?[e]:Ne()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ba(e){if(e){const t=Me(e);t&&Rt(t)}else Rt()}function It(e){(e?[e]:Ne()).forEach(t=>{if(!t.observer){Xe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?Fo(t,o):Xe(t);else return}})}function wa(e){if(e){const t=Me(e);t&&It(t)}else It()}function Vo(e,t=!1){const n=No(e,t);return Xe(n),n}function Ho(e){const t=Me(e);t&&(zo(t),ha(e))}function Sa(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in it)if(n[r]!==o[r])return!0;return!1}function Ca(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?o(i):0)}}return t}const ja=/[\s,]+/;function _a(e,t){t.split(ja).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Pa=["width","height"],Ea=["inline","hFlip","vFlip"];function Oa(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ra(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&Se(t,!0);if(!n)return null;const o={...it,inline:e.classList&&e.classList.contains(Ot)};Pa.forEach(a=>{const c=e.getAttribute("data-"+a);c&&(o[a]=c)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(o.rotate=Ca(r));const i=e.getAttribute("data-flip");typeof i=="string"&&_a(o,i),Ea.forEach(a=>{const c="data-"+a,u=Oa(e.getAttribute(c),c);typeof u=="boolean"&&(o[a]=u)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:s}}const Ia="svg."+mt+", i."+mt+", span."+mt+", i."+Ot+", span."+Ot;function La(e){const t=[];return e.querySelectorAll(Ia).forEach(n=>{const o=n[ne]||n.tagName.toLowerCase()!=="svg"?Ra(n):null;o&&t.push({node:n,props:o})}),t}function qo(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Le;function Ta(){try{Le=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Le=null}}function Aa(e){return Le===void 0&&Ta(),Le?Le.createHTML(e):e}function Ko(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Go(e,t,n,o){const r=e.classList;if(o){const s=o.classList;Array.from(s).forEach(a=>{r.add(a)})}const i=[];return t.forEach(s=>{r.contains(s)?n.has(s)&&i.push(s):(r.add(s),i.push(s))}),n.forEach(s=>{t.has(s)||r.remove(s)}),i}function Wo(e,t,n){const o=e.style;(n||[]).forEach(i=>{o.removeProperty(i)});const r=[];for(const i in t)o.getPropertyValue(i)||(r.push(i),o.setProperty(i,t[i]));return r}function Qo(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const r=t.customisations,i=ot(n,r),s=e[ne],a=qo(_o(i.body),{"aria-hidden":"true",role:"img",...i.attributes});o.innerHTML=Aa(a);const c=o.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const m=u.item(b),O=m.name;O!=="class"&&!c.hasAttribute(O)&&c.setAttribute(O,m.value)}const d=Ko(t.icon),p=Go(c,d,new Set(s&&s.addedClasses),e),f=Wo(c,r.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),g={...t,status:"loaded",addedClasses:p,addedStyles:f};return c[ne]=g,e.parentNode&&e.parentNode.replaceChild(c,e),c}function Da(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ba(e){return"data:image/svg+xml,"+Da(e)}function ka(e){return'url("'+Ba(e)+'")'}const $a={display:"inline-block"},Lt={"background-color":"currentColor"},Yo={"background-color":"transparent"},Dn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Bn={"-webkit-mask":Lt,mask:Lt,background:Yo};for(const e in Bn){const t=Bn[e];for(const n in Dn)t[e+"-"+n]=Dn[n]}function kn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Ma(e,t,n,o){const r=t.customisations,i=ot(n,r),s=i.attributes,a=e[ne],c=qo(i.body,{...s,width:n.width+"",height:n.height+""}),u=Ko(t.icon),d=Go(e,u,new Set(a&&a.addedClasses)),f={"--svg":ka(c),width:kn(s.width),height:kn(s.height),...$a,...o?Lt:Yo};r.inline&&(f["vertical-align"]="-0.125em");const g=Wo(e,f,a&&a.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:g};return e[ne]=b,e}let Ve=!1;function Na(){Ve||(Ve=!0,setTimeout(()=>{Ve&&(Ve=!1,be())}))}function be(e,t=!1){const n=Object.create(null);function o(r,i){const{provider:s,prefix:a,name:c}=r,u=q(s,a),d=u.icons[c];if(d)return{status:"loaded",icon:d};if(u.missing.has(c))return{status:"missing"};if(i&&!fa(r)){const p=n[s]||(n[s]=Object.create(null));(p[a]||(p[a]=new Set)).add(c)}return{status:"loading"}}(e?[e]:Ne()).forEach(r=>{const i=typeof r.node=="function"?r.node():r.node;if(!i||!i.querySelectorAll)return;let s=!1,a=!1;function c(u,d,p){if(a||(a=!0,Rt(r)),u.tagName.toUpperCase()!=="SVG"){const f=d.mode,g=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof g=="boolean"){Ma(u,d,{...ke,...p},g);return}}Qo(u,d,p)}La(i).forEach(({node:u,props:d})=>{const p=u[ne];if(!p){const{status:g,icon:b}=o(d.icon,!0);if(b){c(u,d,b);return}s=s||g==="loading",u[ne]={...d,status:g};return}let f;if(Sa(p,d)){if(f=o(d.icon,p.name!==d.name),!f.icon){s=s||f.status==="loading",Object.assign(p,{...d,status:f.status});return}}else{if(p.status!=="loading")return;if(f=o(d.icon,!1),!f.icon){p.status=f.status;return}}c(u,d,f.icon)}),r.temporary&&!s?Ho(i):t&&s?Vo(i,!0):a&&r.observer&&It(r)});for(const r in n){const i=n[r];for(const s in i){const a=i[s];nn(Array.from(a).map(c=>({provider:r,prefix:s,name:c})),Na)}}}function Ua(e){const t=Me(e);t?be(t):be({node:e,temporary:!0},!0)}function Xo(e,t,n=!1){const o=$e(e);if(!o)return null;const r=Se(e),i=Mo(it,t||{}),s=Qo(document.createElement("span"),{name:e,icon:r,customisations:i},o);return n?s.outerHTML:s}function Fa(){return"3.1.1"}function za(e,t){return Xo(e,t,!1)}function Va(e,t){return Xo(e,t,!0)}function Ha(e,t){const n=$e(e);if(!n)return null;const o=Mo(it,t||{});return ot(n,o)}function qa(e){e?Ua(e):be()}if(typeof document<"u"&&typeof window<"u"){ma();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!So(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{xa(be),be()})}function Ka(e,t){To(e,t!==!1)}function Ga(e){To(e,!0)}Ao("",Ji);if(typeof document<"u"&&typeof window<"u"){Lo();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Do(n,r)||console.error(o)}catch{console.error(o)}}}}const Wa={getAPIConfig:st,setAPIModule:Ao,sendAPIQuery:$o,setFetch:Ki,getFetch:Gi,listAPIProviders:Hi},Qa={_api:Wa,addAPIProvider:Do,loadIcons:nn,loadIcon:pa,iconExists:Di,getIcon:Bi,listIcons:Ti,addIcon:wo,addCollection:So,replaceIDs:_o,calculateSize:St,buildIcon:ot,getVersion:Fa,renderSVG:za,renderHTML:Va,renderIcon:Ha,scan:qa,observe:Vo,stopObserving:Ho,pauseObserver:ba,resumeObserver:wa,enableCache:Ka,disableCache:Ga};try{self.Iconify===void 0&&(self.Iconify=Qa)}catch{}var on={},Ya=G;Object.defineProperty(on,"__esModule",{value:!0});var Zo=on.default=void 0,Xa=Ya(K()),Za=l;Zo=on.default=(0,Xa.default)((0,Za.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var rn={},Ja=G;Object.defineProperty(rn,"__esModule",{value:!0});var Jo=rn.default=void 0,ec=Ja(K()),tc=l;Jo=rn.default=(0,ec.default)((0,tc.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var sn={},nc=G;Object.defineProperty(sn,"__esModule",{value:!0});var er=sn.default=void 0,oc=nc(K()),rc=l;er=sn.default=(0,oc.default)((0,rc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function an({infos:e}){const{t}=V(),n=e.map(r=>`* ${r.label}: ${r.value}`).join(`
22
- `),o=new URL("https://github.com/blocklet/blocklet-site/issues/new");return o.searchParams.set("title","[Feedback]"),o.searchParams.set("body",`<!-- [Enter feedback here] -->
23
-
24
-
25
-
26
- <!--
27
- Document Details
28
- ${n}
29
- * Page: ${window.location.href}
30
- -->
31
- `),T(D,{sx:{mx:{xs:0,md:2}},children:T(cs,{sx:{color:"text.primary"},target:"_blank",href:o.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}an.propTypes={infos:y.arrayOf(y.shape({label:y.string,value:y.string}))};an.defaultProps={infos:[]};var sc={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},ic={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const Tt=new Map,ac=(e,t)=>{Tt.set(e,t)},cc=(e="en_US")=>Tt.get(e)||Tt.get("en_US");var tr={registerLang:ac,getLang:cc},lc=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const uc=lc,{getLang:Oe}=tr,dc=(e,t)=>t===1?e:`${e}s`,fc=1e-7;var pc=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=Oe(t.locale),o=[],r=(a,c)=>{const u=Math.floor(a*10**c+fc);return(Math.round(u)/10**c).toFixed(c)},i=(a,c,u)=>{if((o.length===0||!t.colonNotation)&&a===0&&!(t.colonNotation&&c==="minute"))return;const{long:d}=n[c]||Oe("en_US")[c],{short:p}=n[c]||Oe("en_US")[c];let f=(u||a||"0").toString(),g,b;if(t.colonNotation){g=o.length>0?":":"",b="";const m=f.includes(".")?f.split(".")[0].length:f.length,O=o.length>0?2:1;f="0".repeat(Math.max(0,O-m))+f}else g="",t.locale==="zh_CN"?Object.values(s).filter(m=>m>0).length>1?!s.days&&!s.hours&&s.minutes&&t.compact?b=d:b=p:s.minutes?b=d:b=p:b=t.verbose?` ${dc(d,a)}`:p;o.push(g+f+b)},s=uc(e);if(i(Math.trunc(s.days/365),"year"),i(s.days%365,"day"),i(s.hours,"hour"),i(s.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(s.seconds,"second"),t.formatSubMilliseconds)i(s.milliseconds,"millisecond"),i(s.microseconds,"microsecond"),i(s.nanoseconds,"nanosecond");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,c=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=a>=1?Math.round(a):Math.ceil(a),d=c?a.toFixed(c):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const a=e/1e3%60,c=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=r(a,c),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(o.length===0){const a=(n.millisecond||Oe("en_US").millisecond).long,c=(n.millisecond||Oe("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${a}`:c}`:`0${t.verbose?` ${a}s`:c}`}if(t.compact)return o[0];if(typeof t.unitCount=="number"){const a=t.colonNotation?"":" ";return o.slice(0,Math.max(t.unitCount,1)).join(a)}return t.colonNotation?o.join(""):o.join(" ")};const mc=sc,hc=ic,{registerLang:cn}=tr,nr=pc;cn("en_US",mc);cn("zh_CN",hc);nr.registerLang=cn;var gc=nr;const Ze=qn(gc);var ln={},vc=G;Object.defineProperty(ln,"__esModule",{value:!0});var or=ln.default=void 0,yc=vc(K()),$n=l;or=ln.default=(0,yc.default)([(0,$n.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,$n.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ae({children:e}){return l.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(or,{fontSize:"small"}),e]})}ae.propTypes={children:y.node.isRequired};const xc="https://launcher.arcblock.io/",bc=30*24*60*60*1e3;function un({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:o,...r}){var P,C,I,w,R,L;const{t:i,locale:s}=V(),a=N(),[c,u]=oo({safeIframeRef:null,popoverAnchorEl:null}),d=h.useRef(null),p=Mt(A=>A.breakpoints.down("md")),{sx:f={},...g}=r,b=p?"mobile":"desktop",m=Jn(async()=>{const[A,Z]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:o,launcherUrl:e}}),Xn({launcherUrl:e||xc,nftDid:n,launcherSessionId:o,locale:s})]);return{launcherSession:A.launcherSession,subscriptionURL:Z}},[s]);if(m.loading)return l.jsx(xe,{label:l.jsxs(ae,{children:[!p&&i("expiration.desktop.loading"),l.jsx(X,{size:16})]}),variant:"success",sx:{cursor:"pointer",...f},...g});if(m.error)return console.error(m.error),l.jsx(xe,{label:l.jsx(ae,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...f},...g,onClick:()=>m.retry()});const O=A=>{u({popoverAnchorEl:A.currentTarget})},v=()=>{u({popoverAnchorEl:null})},E=(P=m.value)==null?void 0:P.launcherSession;let j="success";["expired","terminated"].includes((I=(C=m.value)==null?void 0:C.launcherSession)==null?void 0:I.statusText)&&(j="error");let S=null;if(E.expirationDate&&!E.subscription){const A=ge(E.expirationDate).diff(ge(),"ms");S=i(`expiration.${b}.tips.${j}`,{validity:Ze(A,{locale:Nt(s),compact:!0,verbose:!0})}),A>0&&A<=bc&&(j="warning")}return l.jsxs(l.Fragment,{children:[l.jsx(xe,{label:l.jsx(ae,{children:S||((R=(w=E==null?void 0:E.subscription)==null?void 0:w.product)==null?void 0:R.name)||i("common.subscription")}),color:j,variant:j!=="success"?"contained":"outlined",sx:{cursor:"pointer",...f},...g,onClick:O}),l.jsx(Zn,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:v,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:l.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(L=m.value)==null?void 0:L.subscriptionURL})})]})}un.propTypes={chainHost:y.string.isRequired,nftId:y.string,launcherSessionId:y.string,sx:y.object,retention:y.number,launcherUrl:y.string.isRequired};un.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const wc=30*24*60*60*1e3,Sc="https://launcher.arcblock.io/";function dn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:o,...r}){var C,I;const{t:i,locale:s}=V(),[a,c]=oo({safeIframeRef:null,popoverAnchorEl:null}),u=h.useRef(null),d=Mt(w=>w.breakpoints.down("md")),p=N(),{sx:f={},...g}=r,b=d?"mobile":"desktop",m=Jn(async()=>{const[w,R]=await Promise.all([p.api.getLauncherSession({input:{launcherSessionId:o,launcherUrl:e}}),Xn({launcherUrl:e||Sc,nftDid:n,launcherSessionId:o,locale:s})]);return{asset:w,subscriptionURL:R}},[s]);if(m.loading)return l.jsx(xe,{label:l.jsxs(ae,{children:[!d&&i("expiration.desktop.loading"),l.jsx(X,{size:16})]}),variant:"success",sx:{cursor:"pointer",...f},...g});if(m.error)return console.error(m.error),l.jsx(xe,{label:l.jsx(ae,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...f},...g,onClick:()=>m.retry()});const O=Ir((C=m.value)==null?void 0:C.asset),v=ge(O).isBefore(ge()),E=ge(O).diff(ge(),"ms");let j="success";E<=wc&&(j="warning"),v&&(j="error");const S=w=>{c({popoverAnchorEl:w.currentTarget})},P=()=>{c({popoverAnchorEl:null})};return l.jsxs(l.Fragment,{children:[l.jsx(xe,{label:l.jsx(ae,{children:i(`expiration.${b}.tips.${j}`,{validity:Ze(E,{locale:Nt(s),compact:!0,verbose:!0})})}),color:j,variant:j!=="success"?"contained":"outlined",sx:{cursor:"pointer",...f},...g,onClick:S}),l.jsx(Zn,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:l.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(I=m.value)==null?void 0:I.subscriptionURL})})]})}dn.propTypes={chainHost:y.string.isRequired,nftId:y.string,launcherSessionId:y.string,sx:y.object,retention:y.number,launcherUrl:y.string.isRequired};dn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var fn={};Object.defineProperty(fn,"__esModule",{value:!0});var At=fn.default=void 0;Cc(h);var Mn=l;function Cc(e){return e&&e.__esModule?e:{default:e}}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nn(Object(n),!0).forEach(function(o){jc(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function jc(e,t,n){return t=_c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _c(e){var t=Pc(e,"string");return typeof t=="symbol"?t:String(t)}function Pc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pn=function(t){return(0,Mn.jsx)("svg",Un(Un({},t),{},{children:(0,Mn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})}))};pn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};pn.displayName="notification";At=fn.default=pn;function rr({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:l.jsx(eo,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}rr.propTypes={status:y.string.isRequired};function mn({value:e,...t}){const{t:n,locale:o}=V();if(!e)return"-";const r={locale:Nt(o),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const c=Ze(i-s,r);return l.jsx(vt,{title:wn(e,o),placement:"top-end",enterTouchDelay:0,children:l.jsx("span",{...t,children:n("common.afterTime",{time:c})})})}const a=Ze(s-i,r);return l.jsx(vt,{title:wn(e,o),placement:"top-end",enterTouchDelay:0,children:l.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}mn.propTypes={value:y.any};mn.defaultProps={value:""};function Ec(e,t){const n=h.useRef(t);h.useEffect(()=>{const o=r=>n.current(r.detail);return window.addEventListener(e,o),()=>window.removeEventListener(e,o)},[e])}function Oc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function Sl(e){const t=et(),{t:n}=V(),o=()=>{const r=new URLSearchParams(window.location.search);r.get("checkUpdate")&&(r.delete("checkUpdate"),t(r.toString()),e(),k.success(n("notification.checkingForUpdates")))};h.useEffect(o,[]),Ec("checkUpdate",o)}function hn({onHide:e,api:t,notifications:n,updateNotifications:o,viewAllUrl:r,teamDid:i}){const{inService:s}=N(),{t:a,locale:c}=h.useContext(Bt),[u,d]=h.useState(!0),[p,f]=h.useState(!1),g=et(),b=Lr();let m=u?n:n.filter(S=>S.read===!1);m=m.slice(0,5);const O=n.filter(S=>S.read===!1).length>0,v=async()=>{f(!0);const S=n.filter(P=>P.read===!1).map(P=>P.id).join(",");s?await t.readBlockletNotifications({input:{id:S,teamDid:i}}):await t.readNotifications({input:{id:S}}),o(),f(!1)},E=(S,P)=>{P.read||(s?t.readBlockletNotifications({input:{id:P.id,teamDid:i}}).then(()=>o()):t.readNotifications({input:{id:P.id}}).then(()=>o())),e(S),g(r)},j=(S,P)=>{S.preventDefault(),S.stopPropagation(),g(P),Oc()};return l.jsxs(Rc,{children:[l.jsxs(Q,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),l.jsx(ye,{component:Gn,to:r,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),l.jsx(yt,{}),l.jsxs(Tr,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[m.length===0&&l.jsx(Q,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),m.length>0&&m.map(S=>l.jsxs(us,{alignItems:"flex-start",disabled:S.read,onClick:P=>E(P,S),children:[l.jsx(Os,{className:"list-item-avatar",children:l.jsxs(l.Fragment,{children:[l.jsx(no,{children:S.entityType.substr(0,1).toUpperCase()}),l.jsx(rr,{className:"notification-tag",status:S.severity})]})}),l.jsx(to,{primary:S.title,secondary:l.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[l.jsx(Q,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:S.description}),l.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[l.jsx(mn,{value:S.createdAt,locale:c,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),S.action&&!S.read?l.jsx(ye,{color:"primary",variant:"outlined",onPointerDown:P=>{P.stopPropagation(),P.preventDefault()},onClick:P=>j(P,S.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},S.id))]}),l.jsx(yt,{}),l.jsxs(Q,{component:"div",className:"notification-footer",children:[l.jsx(bt,{control:l.jsx(os,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),l.jsx(Qr,{permission:s?"":"mutate_notification",role:s?Ar:[],children:O&&l.jsxs(ye,{disabled:p,onClick:v,className:"",children:[p&&l.jsx(X,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Rc=Je.div`
32
- width: 420px;
33
-
34
- @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
35
- width: calc(100vw - 10px);
36
- }
37
-
38
- .notification-header {
39
- padding: 8px 16px;
40
- display: flex;
41
- justify-content: space-between;
42
- }
43
-
44
- .notification-tip {
45
- padding: 8px 16px;
46
- }
47
-
48
- .notification-footer {
49
- padding: 8px 16px;
50
- display: flex;
51
- justify-content: space-between;
52
- }
53
-
54
- .MuiButtonBase-root {
55
- white-space: pre-wrap;
56
- }
57
-
58
- .list-item-avatar {
59
- display: flex;
60
- flex-direction: column;
61
- align-items: center;
62
- min-width: 80px;
63
-
64
- .notification-tag {
65
- margin-top: 4px;
66
- }
67
- }
68
-
69
- .MuiButtonBase-root:not(.Mui-disabled) {
70
- .MuiAvatar-root {
71
- background: ${e=>e.theme.palette.primary.light};
72
- }
73
- }
74
- `;hn.propTypes={onHide:y.func,api:y.shape({readNotifications:y.func.isRequired,readBlockletNotifications:y.func.isRequired}).isRequired,notifications:y.arrayOf(y.shape({id:y.string,read:y.bool,entityType:y.string,title:y.string,createdAt:y.string,description:y.string}).isRequired).isRequired,updateNotifications:y.func.isRequired,viewAllUrl:y.string.isRequired,teamDid:y.string};hn.defaultProps={onHide:()=>{},teamDid:""};function gn({api:e,notifications:t,updateNotifications:n,viewAllUrl:o,teamDid:r}){const[i,s]=h.useState(!1),a=h.useRef(null),c=()=>{s(p=>!p)},u=p=>{a.current&&a.current.contains(p.target)||s(!1)},d=t.filter(p=>p.read===!1).length;return l.jsxs("div",{className:"notification-addon",children:[l.jsx(kt,{ref:a,"aria-controls":"notify-list-grow","aria-haspopup":"true","data-cy":"toggle-notification-btn",onClick:c,children:d>0?l.jsx(so,{badgeContent:d,max:99,color:"primary",children:l.jsx(At,{style:{width:"auto",height:24}})}):l.jsx(At,{style:{width:"auto",height:24}})}),i&&l.jsx(Dr,{open:!0,anchorEl:a.current,disablePortal:!0,placement:"bottom-end",children:l.jsx(Br,{id:"notify-list-grow",children:l.jsx(kr,{onClickAway:u,children:l.jsx("div",{children:l.jsx(hn,{notifications:t,updateNotifications:n,api:e,viewAllUrl:o,onHide:u,teamDid:r})})})})})]})}gn.propTypes={notifications:y.arrayOf(y.object),viewAllUrl:y.string.isRequired,api:y.object.isRequired,updateNotifications:y.func.isRequired,teamDid:y.string};gn.defaultProps={notifications:[],teamDid:""};const Ic=`${Y.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function vn(){const{did:e}=window.env,{api:t,data:n,refresh:o}=$r();return l.jsx(gn,{api:t,viewAllUrl:Ic,notifications:n||[],updateNotifications:o,teamDid:e})}vn.propTypes={};vn.defaultProps={};function Lc(){const{inFullPage:e,toggleFullPage:t}=fs();return T(kt,{onClick:t,children:e?T(er,{sx:{transform:"scale(1.3)"}}):T(Jo,{sx:{transform:"scale(1.3)"}})})}function yn({children:e}){var m;const{t}=V(),{loading:n,error:o,actions:{refreshBlocklet:r},env:i,blocklet:s}=nt(),{info:a}=Mr(),c=Nr(),u=Mt(O=>O.breakpoints.down("md")),{appId:d,version:p}=i,f=[{label:"App ID",value:d},{label:"App Version",value:p},{label:"App Bundle Name",value:(m=s==null?void 0:s.meta)==null?void 0:m.bundleName},{label:"Server Id",value:a.did},{label:"Server Version",value:a.version}],g=O=>{var E,j,S,P;const v=Array.isArray(O)?O:[O];if(v.unshift(T(vn,{})),v.unshift(T(Lc,{})),s){const C={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Fr(s)?v.unshift(T(un,{chainHost:(E=s==null?void 0:s.controller)==null?void 0:E.chainHost,nftId:(j=s==null?void 0:s.controller)==null?void 0:j.nftId,launcherSessionId:(S=s==null?void 0:s.controller)==null?void 0:S.launcherSessionId,launcherUrl:(P=s==null?void 0:s.controller)==null?void 0:P.launcherUrl,sx:C})):a.ownerNft&&a.launcher&&v.unshift(T(dn,{chainHost:a.launcher.chainHost,nftId:a.ownerNft.did,launcherUrl:a.launcher.url,sx:C}))}return v},b={};return u&&(b.logo=null),dt(Tc,{legacy:!1,fullWidth:!0,headerAddons:g,headerProps:b,isMobile:u,footerProps:{addon:T(an,{infos:f})},children:[!s&&n&&T(Ge,{relative:"parent",children:T(X,{})}),!s&&o&&dt(Ge,{relative:"parent",children:[dt(D,{display:"flex",alignItems:"center",children:[T(Zo,{color:"error",sx:{marginRight:1}}),Be(o)]}),T(ye,{onClick:()=>r(),children:T("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!s&&T(D,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:T(Ur,{FallbackComponent:ls,resetKeys:[c.pathname],children:e})})]})}yn.propTypes={children:y.any};yn.defaultProps={children:null};const Tc=Je(ds)`
75
- div.dashboard-content {
76
- padding: 0;
77
- }
78
- .header-addons .locales {
79
- max-height: 400px;
80
- overflow-y: auto;
81
- }
82
- `,Ac=h.lazy(()=>U(()=>import("./overview-TLa2IGzX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49]))),Dc=h.lazy(()=>U(()=>import("./index-Y4ui5f0Z.js"),__vite__mapDeps([50,1,2,51,4,52,53,54,55,22,23,24,25,26,56,57,58,59,37,38,30,32,60,46,61,62,27,63,43,45,47,29,5,44,48,49,39,15,64,42,18,65,66,67,7,8,9,10,11,12,68,20,13,14,28,31,33,34,35,36,40,41,19,16]))),Bc=h.lazy(()=>U(()=>import("./index-_ctbZdsq.js"),__vite__mapDeps([69,1,2,4,70,5,35,71,6,54,55,22,23,24,25,26,9,10,11,13,12,14,15,37,72,7,8,31,16,73,32,33,27,34,30,36,38,39,40,41,42,19,43,44,45,46,47,29,48,49]))),kc=h.lazy(()=>U(()=>import("./index-cSpRcGEF.js"),__vite__mapDeps([74,1,2,75,76,77,78,51,71,79,35,22,23,24,25,26,80,39,15,5,32,52,81,14,82,9,10,11,13,12,16,68,37,66,83,84,30,85,86,56,57,58,59,38,60,46,61,62,55,27,20,87,41,31,33,34,36,40,42,19,8,43,44,45,47,29,48,49,88]))),$c=h.lazy(()=>U(()=>import("./audit-logs-dCDjHCkV.js"),__vite__mapDeps([89,1,2,90,31,33,23,24,25,26,91,60,32,9,10,11,13,12,14,15,27,34,30,35,36,37,38,39,40,41,42,19,8,43,44,45,46,47,29,5,48,49,16,92]))),Mc=h.lazy(()=>U(()=>import("./log-GXgOa-mv.js"),__vite__mapDeps([93,1,2,33,35,94,23,24,26,95]))),Nc=h.lazy(()=>U(()=>import("./index-zR6QuaBQ.js"),__vite__mapDeps([96,1,2,27,56,57,58,59,37,24,23,38,25,30,26,22,32,60,46,61,62,55,31,7,8,13,12,14,15,80,39,33,11,73,94,16,97,68,51,41,5,18,19]))),Uc=h.lazy(()=>U(()=>import("./config-navigation-j2hxqzBt.js"),__vite__mapDeps([98,1,2,61,62,59,99,100,81,26,23,24,14,15,101,42,25,30,22,32,73,63,43,45,46,47,29,5,44,48,49,39,102,12,35,9,10,11,31,33,13,27,34,36,37,38,40,41,19,8,16]))),Fc=h.lazy(()=>U(()=>import("./index-XXPjiGPU.js"),__vite__mapDeps([103,1,2,70,5,35,12,19,104,65,40,41,42,22,23,24,25,26,20,8,7,85,66,37,15,32,97,30,82,31,56,57,58,59,38,60,46,61,62,55,27,9,10,11,33,13,14,34,36,39,43,44,45,47,29,48,49,16]))),zc=h.lazy(()=>U(()=>import("./component-3PxHqzLG.js"),__vite__mapDeps([105,1,2,4,76,77,78,51,71,79,35,22,23,24,25,26,85,66,37,15,9,10,11,32,57,58,59,38,30,60,46,62,55,106,80,39,97,99,100,102,73,107,68,27,14,12,108,109,110,111,47,40,41,42,19,112,113,114,72,13,48,21,90,20,7,8,115,33,83,43,116,117,104,65,70,5,118,119,6,17,31,36,34,28,29,44,45,49,16]))),Vc=h.lazy(()=>U(()=>import("./analytics-VXDqCcaZ.js"),__vite__mapDeps([120,1,2,32,9,10,11,75,121,106,59,80,39,15,48,30,23,24,26,14,12,22,25,73,56,57,58,37,38,60,46,61,62,55,27,31,33,13,34,35,36,40,41,42,19,8,43,44,45,47,29,5,49,16]))),Hc=h.lazy(()=>U(()=>import("./notifications--xS7ebff.js"),__vite__mapDeps([122,1,2,9,10,11,37,24,48,39,15,30,91,60,32,31,33,13,12,14,27,34,35,36,38,40,41,42,19,8,43,44,45,46,47,29,5,49,16])));function qc(){var m,O;const e=et(),{tab:t="overview"}=Hr(),{blocklet:n,actions:{refreshBlocklet:o}}=nt(),{t:r}=V(),i=(m=n==null?void 0:n.meta)==null?void 0:m.did,s=v=>{e(`${Y.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${v}`)},a=()=>{o()},c=!n||xt(n.status)?[]:Kn(n),u=[{label:r("common.overview"),value:"overview"},{label:l.jsx(so,{color:"error",variant:"dot",invisible:!c.length,children:r("common.components")}),value:"components"}];xt(n==null?void 0:n.status)||u.push({label:r("common.configuration"),value:"configuration"}),u.push({label:r("common.auditLogs"),value:"audit-logs"}),n&&((O=n.children)!=null&&O.length)&&n.structVersion===Y.APP_STRUCT_VERSION&&u.push({label:r("common.logs"),value:"logs"}),u.push({label:r("common.configNavigation"),value:"navigation"}),u.push({label:r("common.storage"),value:"storage"}),u.push({label:r("common.publish"),value:"publish"});const d=l.jsx($c,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});He(Y.EVENTS.NOTIFICATION_BLOCKLET_CREATE,v=>{const{severity:E,title:j,description:S}=v||{};E==="error"?k.error(S||j):k.success(S||j)});const p={overview:l.jsx(Ac,{}),members:l.jsx(D,{mt:-5,children:l.jsx(Dc,{type:"blocklet",createPassportSvg:Sn})}),passports:l.jsx(D,{mt:-4.5,children:l.jsx(Bc,{createPassportSvg:Sn})}),components:zc,configuration:l.jsx(kc,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:Mc,navigation:Uc,storage:l.jsx(Fc,{}),analytics:l.jsx(D,{mt:-5,children:l.jsx(Vc,{})}),publish:l.jsx(Nc,{}),notifications:l.jsx(Hc,{})},f=p[t]||p.overview,g=!["members","passports","analytics","notifications"].includes(t),b=n?l.jsxs(Ut,{type:"components",children:[g&&l.jsx(D,{pt:3,children:l.jsx(Gr,{tabs:u,current:t,onChange:s,scrollButtons:"auto"})}),l.jsx("div",{className:"page-content",children:l.jsx(h.Suspense,{fallback:l.jsx(Ge,{relative:"parent",children:l.jsx(X,{})}),children:h.isValidElement(f)?f:l.jsx(f,{blocklet:n})})})]}):l.jsx(Ge,{relative:"parent",children:l.jsx(X,{})});return l.jsx(qr,{children:l.jsx(_i,{children:l.jsx(yn,{children:l.jsx(Xt,{children:l.jsxs(Gc,{children:[g&&l.jsxs(D,{component:"div",className:"page-header",children:[l.jsxs(Q,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[n?l.jsx(Yt,{blocklet:n,style:{marginRight:16}}):null,n?l.jsxs(D,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[l.jsx(D,{children:De(n)}),(n==null?void 0:n.status)!=="unknown"&&l.jsx(zt,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${r("common.blocklet")} ${r("common.detail")}`]}),n?l.jsx(Qt,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:v}={})=>{v&&k.error(v.message)},variant:"group"}):null]}),l.jsx(mo,{}),b]})})})})})}function Kc(){var o;const{blocklet:e}=nt(),{t}=V(),n=(o=e==null?void 0:e.meta)==null?void 0:o.did;return h.useEffect(()=>{const r=zr();return n&&r.connect(),()=>{n&&r.isConnected()&&r.disconnect()}},[n]),l.jsxs(l.Fragment,{children:[l.jsx(Vr,{children:l.jsx("title",{children:t("pageTitle.dashboard")})}),l.jsx(qc,{})]})}const Gc=Je.main`
83
- .page-header {
84
- display: flex;
85
- justify-content: space-between;
86
- align-items: center;
87
- flex-wrap: wrap;
88
- gap: 16px;
89
- }
90
-
91
- .page-title {
92
- display: flex;
93
- align-items: center;
94
-
95
- .page-link {
96
- font-size: 15px;
97
- margin-top: 8px;
98
- margin-left: 8px;
99
- }
100
- }
101
-
102
- .page-content {
103
- margin-top: 18px;
104
- }
105
-
106
- @media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
107
- .page-header {
108
- flex-direction: column;
109
- align-items: flex-start;
110
- .page-actions,
111
- .MuiButtonGroup-root {
112
- width: 100%;
113
- }
114
- .MuiButtonGroup-root {
115
- .MuiButtonBase-root {
116
- flex: 1;
117
- }
118
- .blocklet-action-text {
119
- display: none;
120
- }
121
- }
122
- }
123
-
124
- .page-title {
125
- margin-bottom: 15px;
126
- }
127
- }
128
- `,Cl=Object.freeze(Object.defineProperty({__proto__:null,default:Kc},Symbol.toStringTag,{value:"Module"}));export{zt as B,Os as L,rr as N,mn as R,Ft as W,$s as _,so as a,mi as b,po as c,Zo as d,Yt as e,ro as f,xl as g,Ht as h,te as i,ao as j,vl as k,co as l,lo as m,Sl as n,Cl as o,Ze as p,bl as u};
129
- function __vite__mapDeps(indexes) {
130
- if (!__vite__mapDeps.viteFileDeps) {
131
- __vite__mapDeps.viteFileDeps = ["assets/overview-TLa2IGzX.js","assets/index-ug8ILiCN.js","assets/index-F9vDNwHQ.css","assets/domain-list-xipbIs2T.js","assets/Add-NMa-M1Q0.js","assets/ExpandMore-OAGMzw3l.js","assets/LockIcon-EVmvDasu.js","assets/did-address-8E42uyI-.js","assets/Link-HTHg_pUm.js","assets/permission-JPMtSvqY.js","assets/useAsync-QfOGCMkY.js","assets/session-hMz18Oeh.js","assets/index-ewlbl2rV.js","assets/confirm-7Hh_SSFd.js","assets/Alert-9wz-SfVH.js","assets/useSlot-Hgy7wgji.js","assets/useSetState-eCfkvDeH.js","assets/InfoOutlined-06EXFeDn.js","assets/OpenInNew-2IVN35Wq.js","assets/api-LgIxKv8G.js","assets/index-aPbuN1__.js","assets/util-4lnt5jw_.js","assets/TextField-upXvpfEU.js","assets/FormControl-oDdBAHRY.js","assets/useFormControl-vFMW8QlB.js","assets/InputLabel-2qJR9Egb.js","assets/Select-pV3i3qpz.js","assets/Delete-FIV1VRAH.js","assets/actions-lQzb6Jj9.js","assets/MoreHoriz-iTa90LIi.js","assets/ListItemText-7v7ZTw5u.js","assets/index-oqz0KKiU.js","assets/MoreVert-lieR_Xff.js","assets/useLocalStorage-06lVqZYx.js","assets/PlayArrow-NklJcWlF.js","assets/ButtonGroup-yDF0xi1D.js","assets/RadioGroup-H5jcgCgt.js","assets/FormControlLabel-mxbf-j4N.js","assets/FormGroup-g0YmWnKj.js","assets/Avatar-gImElMr2.js","assets/spaces-iblVQdlV.js","assets/index-WHCTABmF.js","assets/index-d-Rw6UM2.js","assets/fallback-mHcLRxLo.js","assets/index-iq_e37_h.js","assets/index-G4D865RD.js","assets/Toolbar-y-RPR7ka.js","assets/Hidden-LQKjswzc.js","assets/ListItem-NGeUkLV-.js","assets/selector-BKU6rDfk.js","assets/index-Y4ui5f0Z.js","assets/index-zvnLTd7V.js","assets/Loop-fYtWuUwa.js","assets/ViewList-kXhlrqjT.js","assets/list-header-8NAw2mf5.js","assets/Search-5XETl0i_.js","assets/index-LLIyId-n.js","assets/FilterList-7ij1AZQJ.js","assets/TableRow-C_coU4a1.js","assets/Grid-AT3ygHJV.js","assets/LastPage-5fS6cOhK.js","assets/index-goxpAoXB.js","assets/redux-WDzBVqX6.js","assets/index-viQfv9eh.js","assets/ua-parser-J1qbmQ9r.js","assets/CloseOutlined-_SreG5tJ.js","assets/index-6P3wKob2.js","assets/user-sessions-8fjUaysv.js","assets/click-to-copy-1QBfdqHN.js","assets/index-_ctbZdsq.js","assets/index-VDbohr0m.js","assets/EditIcon-b5c6BhD5.js","assets/Google-AxxsJlUn.js","assets/InputAdornment-VuS2_oMc.js","assets/index-cSpRcGEF.js","assets/iframe-ajsEFsJa.js","assets/Edit-HaU-_qL4.js","assets/Done-UoP7s52I.js","assets/logo-uploader-TIyOiPM3.js","assets/ArrowDropDown-2jJxChvP.js","assets/ChevronRight-mO238vY_.js","assets/index.esm-721HBjKH.js","assets/mode-Ip8p6ZjP.js","assets/Launch-PWcKbIzR.js","assets/config-guBQ2xXX.js","assets/switch-control-tcY98nZ9.js","assets/Slider-z3HJyOTL.js","assets/index-nI8IL2Hs.js","assets/index-1NyTkR9G.css","assets/audit-logs-dCDjHCkV.js","assets/index-O020ew9R.js","assets/Pagination-p0K608Pw.js","assets/audit-logs-QseNTS8s.css","assets/log-GXgOa-mv.js","assets/Download-LxurGFpv.js","assets/log-993Rbbf_.css","assets/index-zR6QuaBQ.js","assets/DeleteOutline-cT2nXpK-.js","assets/config-navigation-j2hxqzBt.js","assets/slicedToArray-2rPrh7Wd.js","assets/jss-plugin-props-sort.esm-Rx5MOaXm.js","assets/index-YVKYSpyM.js","assets/Skeleton-D6saHrZm.js","assets/index-XXPjiGPU.js","assets/use-blocklet-info-for-connect-did-spaces-3v-_M2kK.js","assets/component-3PxHqzLG.js","assets/index-7d02nDqC.js","assets/toUpper-21RJ-5gN.js","assets/add-component-core-r_9ZAl_l.js","assets/uniqBy-4E93YRzM.js","assets/page-header-ak7IAddF.js","assets/config-space-YwSwWRVo.js","assets/lottie-xKIBeEPM.js","assets/launch-result-message-GVlquU-F.js","assets/index-QUz246T1.js","assets/Stepper-VPMrTHZb.js","assets/preact.module-CqtzSW6G.js","assets/connect-to-H_Vjwa1I.js","assets/content-layout-AtLirrgM.js","assets/add-component-core-sZCWP9eJ.css","assets/analytics-VXDqCcaZ.js","assets/LaunchOutlined-NH837_ZB.js","assets/notifications--xS7ebff.js"]
132
- }
133
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
134
- }
@@ -1 +0,0 @@
1
- import{fN as J,r as P,ep as N,N as q,eq as V,ge as S,gf as $,M as B,a0 as j,dm as p}from"./index-ug8ILiCN.js";var Q=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),J(i,e)},U=function(i,e,r){var n=P.useRef(),t=P.useRef(0);Q(e,n.current)||(n.current=e,t.current+=1),N(i,[t.current],r)},X=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),M={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:X?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?M.meta.includes(i.keyCode):i.metaKey}};function D(i){return $(i)||B(i)}function Y(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function x(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=M[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&Y(i)===l.length?e:!1:a===l.length?e:!1}function Z(i,e){return j(i)?i:D(i)?function(r){return x(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return x(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=q(e),b=q(i);U(function(){var A,m,L,v=V(a,window);if(v){var T=function(g){var C,E=Z(b.current,o),h=E(g),y=D(h)?h:g.key;if(h)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,y)};try{for(var K=S(l),k=K.next();!k.done;k=K.next()){var G=k.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,G,T,s)}}catch(g){A={error:g}}finally{try{k&&!k.done&&(m=K.return)&&m.call(K)}finally{if(A)throw A.error}}return function(){var g,C,E;try{for(var h=S(l),y=h.next();!y.done;y=h.next()){var H=y.value;(E=v==null?void 0:v.removeEventListener)===null||E===void 0||E.call(v,H,T,s)}}catch(W){g={error:W}}finally{try{y&&!y.done&&(C=h.return)&&C.call(h)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function z(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=p.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=z(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=z(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),A=r.charCodeAt(a+u);if(b!==A)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
@@ -1,13 +0,0 @@
1
- import{bR as o,P as e,r as u,j as p,bS as b,bT as h,bo as x,T as w}from"./index-ug8ILiCN.js";const c={error:{color:o.common.white,backgroundColor:o.error.main},warning:{color:o.common.white,backgroundColor:o.warning.main},success:{color:o.common.white,backgroundColor:o.success.main},primary:{color:o.common.white,backgroundColor:o.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=h(n,s,["style"]),{type:r,content:l,children:m,style:y,className:g,forwardedRef:d,...f}=t,{palette:a}=x(),i=Object.assign({},c[r]||c.primary,y);return a[r]&&Object.assign(i,{color:a[r].contrastText||o.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:g,style:i,...f,children:l||m})}s.propTypes={children:e.any.isRequired,type:e.oneOf(Object.keys(c)),content:e.string,className:e.string,style:e.oneOfType([e.object,e.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=b(w)`
2
- && {
3
- display: inline-flex;
4
- justify-content: center;
5
- align-items: center;
6
- padding: 2px 10px;
7
- height: 20px;
8
- line-height: 20px;
9
- font-size: 12px;
10
- font-weight: 500;
11
- border-radius: 4px;
12
- }
13
- `;export{C as T};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-ug8ILiCN.js";import{S as t}from"./studio-pwHgJvf5.js";import"./index-G4D865RD.js";import"./Toolbar-y-RPR7ka.js";import"./Hidden-LQKjswzc.js";import"./MoreHoriz-iTa90LIi.js";import"./ExpandMore-OAGMzw3l.js";import"./fallback-mHcLRxLo.js";function e(){return o.jsx(t,{children:"Coming soon..."})}export{e as default};
@@ -1,12 +0,0 @@
1
- import{u as D,aZ as I,r as A,b9 as y,j as t,X as T,a6 as b,bw as C,ar as S,aa as B,fz as E,U as L,T as N}from"./index-ug8ILiCN.js";import{d as P,a as W}from"./domain-list-xipbIs2T.js";import{d as _}from"./ExpandMore-OAGMzw3l.js";import{I as R}from"./index-aPbuN1__.js";import{T as $}from"./index-oqz0KKiU.js";import{W as s}from"./did-address-8E42uyI-.js";import{B as z}from"./dashboard-HCTOZrs8.js";import"./Add-NMa-M1Q0.js";import"./LockIcon-EVmvDasu.js";import"./permission-JPMtSvqY.js";import"./useAsync-QfOGCMkY.js";import"./session-hMz18Oeh.js";import"./index-ewlbl2rV.js";import"./confirm-7Hh_SSFd.js";import"./Alert-9wz-SfVH.js";import"./useSlot-Hgy7wgji.js";import"./useSetState-eCfkvDeH.js";import"./InfoOutlined-06EXFeDn.js";import"./OpenInNew-2IVN35Wq.js";import"./api-LgIxKv8G.js";import"./util-4lnt5jw_.js";import"./TextField-upXvpfEU.js";import"./FormControl-oDdBAHRY.js";import"./useFormControl-vFMW8QlB.js";import"./InputLabel-2qJR9Egb.js";import"./Select-pV3i3qpz.js";import"./Link-HTHg_pUm.js";import"./Delete-FIV1VRAH.js";import"./actions-lQzb6Jj9.js";import"./MoreHoriz-iTa90LIi.js";import"./ListItemText-7v7ZTw5u.js";import"./MoreVert-lieR_Xff.js";import"./useLocalStorage-06lVqZYx.js";import"./PlayArrow-NklJcWlF.js";import"./ButtonGroup-yDF0xi1D.js";import"./RadioGroup-H5jcgCgt.js";import"./FormControlLabel-mxbf-j4N.js";import"./FormGroup-g0YmWnKj.js";import"./Avatar-gImElMr2.js";import"./spaces-iblVQdlV.js";import"./index-WHCTABmF.js";import"./index-d-Rw6UM2.js";import"./fallback-mHcLRxLo.js";import"./index-iq_e37_h.js";import"./index-G4D865RD.js";import"./Toolbar-y-RPR7ka.js";import"./Hidden-LQKjswzc.js";import"./ListItem-NGeUkLV-.js";import"./selector-BKU6rDfk.js";const H={arcblock:"ArcBlock",ethereum:"Ethereum"};function K(){var u,f,v,x,h;const{t:o,locale:j}=D(),{info:m,inService:g}=I(),[i,k]=A.useState(!1),{blocklet:e}=y(),{appDid:l,appPid:p,migratedFrom:r=[]}=e,c=(u=e.environments.find(a=>a.key==="BLOCKLET_APP_CHAIN_TYPE"))==null?void 0:u.value,d=[l?{name:o("blocklet.appId"),value:t.jsx(s,{did:l})}:null,p?{name:o("blocklet.appPid"),value:t.jsx(s,{did:p})}:null,(r==null?void 0:r.length)>1?{name:o("blocklet.alsoKnownAs"),value:t.jsxs("div",{children:[(i?r.slice(1):r.slice(1,2)).map(a=>t.jsx(s,{did:a.appDid})),r.length>2&&t.jsx(T,{style:{marginLeft:"18px"},endIcon:i?t.jsx(P,{}):t.jsx(_,{}),onClick:()=>k(!i),children:o(i?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,{name:o("common.name"),value:b(e,!0)},{name:o("common.status"),value:t.jsx(z,{status:e.status,source:e.source,progress:e.progress})},C(e)?{name:"NFT",value:t.jsx(s,{external:!0,href:S((f=e==null?void 0:e.controller)==null?void 0:f.chainHost,(v=e==null?void 0:e.controller)==null?void 0:v.nftId,"asset"),did:(x=e==null?void 0:e.controller)==null?void 0:x.nftId})}:null,{name:o("blocklet.installedAt"),value:B(e.installedAt,j)},{name:o("blocklet.overview.accessControl"),value:o(`team.whoCanAccess.${E(e)}.title`)},{name:o("common.owner"),value:(h=e.settings)!=null&&h.owner?t.jsx(s,{did:e.settings.owner.did}):"--"},{name:o("blocklet.config.walletType.name"),value:H[c||"arcblock"]||c},e.externalSkSource?{name:o("blocklet.skSource"),value:e.externalSkSource}:null].filter(Boolean);g&&d.push({name:o("common.serverDid"),value:t.jsx(s,{did:m.did})},{name:o("common.serverVersion"),value:t.jsx($,{children:m.version})});const w=a=>a.map(n=>t.jsx(R,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:n.name,nameFormatter:()=>n.name,children:n.value},n.name));return t.jsxs(O,{component:"div",children:[t.jsx(W,{}),t.jsx("div",{className:"title",children:t.jsx("span",{children:o("common.basicInfo")})}),t.jsx("div",{className:"basicInfo",children:w(d)})]})}K.propTypes={};const O=L(N)`
2
- .title {
3
- font-size: 1.2rem;
4
- font-weight: bold;
5
- margin-top: ${o=>o.theme.spacing(5)};
6
- margin-bottom: ${o=>o.theme.spacing(3)};
7
-
8
- &.first {
9
- margin-top: 0;
10
- }
11
- }
12
- `;export{K as default};
@@ -1 +0,0 @@
1
- import{u as n,by as l,a2 as c,j as o,ap as d,B as u}from"./index-ug8ILiCN.js";import h from"./index-zR6QuaBQ.js";import"./Delete-FIV1VRAH.js";import"./index-LLIyId-n.js";import"./FilterList-7ij1AZQJ.js";import"./TableRow-C_coU4a1.js";import"./Grid-AT3ygHJV.js";import"./FormControlLabel-mxbf-j4N.js";import"./useFormControl-vFMW8QlB.js";import"./FormControl-oDdBAHRY.js";import"./FormGroup-g0YmWnKj.js";import"./InputLabel-2qJR9Egb.js";import"./ListItemText-7v7ZTw5u.js";import"./Select-pV3i3qpz.js";import"./TextField-upXvpfEU.js";import"./MoreVert-lieR_Xff.js";import"./LastPage-5fS6cOhK.js";import"./Toolbar-y-RPR7ka.js";import"./index-goxpAoXB.js";import"./redux-WDzBVqX6.js";import"./Search-5XETl0i_.js";import"./index-oqz0KKiU.js";import"./did-address-8E42uyI-.js";import"./Link-HTHg_pUm.js";import"./confirm-7Hh_SSFd.js";import"./index-ewlbl2rV.js";import"./Alert-9wz-SfVH.js";import"./useSlot-Hgy7wgji.js";import"./ChevronRight-mO238vY_.js";import"./Avatar-gImElMr2.js";import"./useLocalStorage-06lVqZYx.js";import"./session-hMz18Oeh.js";import"./InputAdornment-VuS2_oMc.js";import"./Download-LxurGFpv.js";import"./useSetState-eCfkvDeH.js";import"./DeleteOutline-cT2nXpK-.js";import"./click-to-copy-1QBfdqHN.js";import"./index-zvnLTd7V.js";import"./index-WHCTABmF.js";import"./ExpandMore-OAGMzw3l.js";import"./OpenInNew-2IVN35Wq.js";import"./api-LgIxKv8G.js";const i=new URL(window.location.href),r=i.searchParams.get("mode")==="dialog",g=r?"":i.searchParams.get("padding")||"";function eo(){const{t:e}=n(),{componentDid:p}=l(),m=c(a=>a.breakpoints.down("md")),s=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:p},"*")},t=o.jsx(h,{padding:g});return r?o.jsx(d,{className:"resource-dialog",title:e("blocklet.publish.createResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:m?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:s,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:o.jsx(u,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:t})}):t}export{eo as default};
@@ -1 +0,0 @@
1
- import{r as o,bM as t}from"./index-ug8ILiCN.js";function e(){return o.useContext(t)}export{e as u};
@@ -1 +0,0 @@
1
- import{aU as a,du as n,aS as s}from"./index-ug8ILiCN.js";var u=n,i=s;function o(e,t){return e&&e.length?i(e,u(t)):[]}var r=o;const b=a(r);export{b as u};
@@ -1 +0,0 @@
1
- import{ca as R,d5 as $,r as v}from"./index-ug8ILiCN.js";const p=R($);var q={},c={},f={},M;function h(){if(M)return f;M=1,Object.defineProperty(f,"__esModule",{value:!0});var e=v;function r(){var t=e.useRef(!1),u=e.useCallback(function(){return t.current},[]);return e.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),u}return f.default=r,f}var A;function k(){if(A)return c;A=1,Object.defineProperty(c,"__esModule",{value:!0});var e=p,r=v,t=e.__importDefault(h());function u(n,o,l){o===void 0&&(o=[]),l===void 0&&(l={loading:!1});var i=r.useRef(0),_=t.default(),g=r.useState(l),y=g[0],d=g[1],F=r.useCallback(function(){for(var b=[],s=0;s<arguments.length;s++)b[s]=arguments[s];var m=++i.current;return y.loading||d(function(a){return e.__assign(e.__assign({},a),{loading:!0})}),n.apply(void 0,b).then(function(a){return _()&&m===i.current&&d({value:a,loading:!1}),a},function(a){return _()&&m===i.current&&d({error:a,loading:!1}),a})},o);return[y,F]}return c.default=u,c}Object.defineProperty(q,"__esModule",{value:!0});var S=p,U=v,j=S.__importDefault(k());function C(e,r){r===void 0&&(r=[]);var t=j.default(e,r,{loading:!0}),u=t[0],n=t[1];return U.useEffect(function(){n()},[n]),u}var O=q.default=C;export{O as _,p as r,q as u};