@abtnode/blocklet-services 1.16.21-beta-da3f852a → 1.16.21-beta-8ce6a704

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 (163) hide show
  1. package/api/services/auth/index.js +22 -4
  2. package/api/util/attach-shared-utils.js +8 -1
  3. package/dist/assets/{Add-Fa_jDVH4.js → Add-TPn0Xq2y.js} +1 -1
  4. package/dist/assets/{Alert-CVBj6K_x.js → Alert-msfMnXoL.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-eyRAz4BW.js → ArrowDropDown-u5qE0c6W.js} +1 -1
  6. package/dist/assets/{Autocomplete-JUBrNs2g.js → Autocomplete-vyFefb0T.js} +1 -1
  7. package/dist/assets/{Avatar-phMyiuZN.js → Avatar-40UryW2V.js} +1 -1
  8. package/dist/assets/{ButtonGroup-WpuCESRm.js → ButtonGroup-YM9idA0S.js} +1 -1
  9. package/dist/assets/{CardContent-11p23WdN.js → CardContent-Q2QI-QCi.js} +1 -1
  10. package/dist/assets/{CheckCircle-TSCHhVSn.js → CheckCircle-EKyY4n73.js} +1 -1
  11. package/dist/assets/{Checkbox-E7hRdaZx.js → Checkbox-6b2Wxw9o.js} +1 -1
  12. package/dist/assets/{ChevronRight-4XdBuB9J.js → ChevronRight-969UYibA.js} +1 -1
  13. package/dist/assets/{DeleteOutline-ldnn034A.js → DeleteOutline-VKfxyMcW.js} +1 -1
  14. package/dist/assets/{DialogContentText-GOi1cMCU.js → DialogContentText-IKkXjwY4.js} +1 -1
  15. package/dist/assets/{Done-QX8JUe6j.js → Done-8vU_Upzq.js} +1 -1
  16. package/dist/assets/{Download-6axtZJsQ.js → Download-dvlwhMcC.js} +1 -1
  17. package/dist/assets/{Edit-3QDIocJ_.js → Edit-GbCk8hZt.js} +1 -1
  18. package/dist/assets/{EditIcon-iEwSDmTg.js → EditIcon-kce6kCKp.js} +1 -1
  19. package/dist/assets/{ExpandMore-AjCxxobS.js → ExpandMore-IA-2iaem.js} +1 -1
  20. package/dist/assets/{FilterList-2ERNRQaM.js → FilterList-qFkuKu0i.js} +1 -1
  21. package/dist/assets/{FormControl-dd94hWMS.js → FormControl-hdLaFfly.js} +1 -1
  22. package/dist/assets/{FormControlLabel-RXb6vK7s.js → FormControlLabel--DtAy8ru.js} +1 -1
  23. package/dist/assets/{FormGroup--UBs69R8.js → FormGroup-uAQ93T09.js} +1 -1
  24. package/dist/assets/{Google-IOajhpti.js → Google-Q7CSvqZv.js} +1 -1
  25. package/dist/assets/{Grid-xUYHRi0b.js → Grid-W1BkY5Ap.js} +1 -1
  26. package/dist/assets/{Hidden-mWvmgc4A.js → Hidden-85MTYsBc.js} +1 -1
  27. package/dist/assets/{Icon-Z3sa2o7_.js → Icon-NXg5tkLd.js} +1 -1
  28. package/dist/assets/{InfoOutlined-ASBaIOeG.js → InfoOutlined-CbR8jNPO.js} +1 -1
  29. package/dist/assets/{InputAdornment-uDUcdmme.js → InputAdornment-DqlpUqnE.js} +1 -1
  30. package/dist/assets/{InputLabel-TPtinWuK.js → InputLabel-NZgDieHH.js} +1 -1
  31. package/dist/assets/{LastPage-JHHCVMPH.js → LastPage-8I3Fk9_4.js} +1 -1
  32. package/dist/assets/{Launch-Lgl-88-b.js → Launch-eOQU29xS.js} +1 -1
  33. package/dist/assets/{LaunchOutlined-lL2bUPmR.js → LaunchOutlined-ZzEMLrgz.js} +1 -1
  34. package/dist/assets/{ListItem-0o0I3uAI.js → ListItem-8xgbSCnj.js} +1 -1
  35. package/dist/assets/{LockIcon-JBIsvzZH.js → LockIcon-sfj5oPgW.js} +1 -1
  36. package/dist/assets/{Loop-xAh7ODfS.js → Loop--wL6OZAl.js} +1 -1
  37. package/dist/assets/{MoreHoriz-CgcL_RUW.js → MoreHoriz-nW6861tu.js} +1 -1
  38. package/dist/assets/{MoreVert--r4YINap.js → MoreVert-js_otO_B.js} +1 -1
  39. package/dist/assets/{OpenInNew-UCL6a4s2.js → OpenInNew-LA_Vftw3.js} +1 -1
  40. package/dist/assets/{Pagination-Bv9Q6Zpr.js → Pagination-y_j_46OO.js} +1 -1
  41. package/dist/assets/{PlayArrow-lHMXu7Pu.js → PlayArrow-yDXb6jT-.js} +1 -1
  42. package/dist/assets/{RadioGroup-7FTePFM-.js → RadioGroup-q_troyXZ.js} +1 -1
  43. package/dist/assets/{Search-iVqmV6Op.js → Search-TiKYSEXg.js} +1 -1
  44. package/dist/assets/{Select-S9JKyZyg.js → Select-kt7kYpdf.js} +1 -1
  45. package/dist/assets/{ServerLogo-q3dZeMtc.js → ServerLogo-zKRLrZ_t.js} +1 -1
  46. package/dist/assets/{Skeleton-bZ_Miios.js → Skeleton-SccM_IPU.js} +1 -1
  47. package/dist/assets/{Slider-55cYAWYh.js → Slider-a2MsZ4Gl.js} +1 -1
  48. package/dist/assets/{Stepper-jB61m6gP.js → Stepper-cuElXodD.js} +1 -1
  49. package/dist/assets/{TableRow-NtkZR5qp.js → TableRow-g8XooIYl.js} +1 -1
  50. package/dist/assets/{TextField-mvaGVkiG.js → TextField-_iwvPvON.js} +1 -1
  51. package/dist/assets/{Toolbar-yH3XFZuP.js → Toolbar-VMTR0FH4.js} +1 -1
  52. package/dist/assets/{access-control-btXZcun0.js → access-control-uHfbEVh8.js} +1 -1
  53. package/dist/assets/{actions-gHfHu3vC.js → actions-eG2nr68h.js} +1 -1
  54. package/dist/assets/{add-component-core-rFzl_VX2.js → add-component-core-Wo1tPDwI.js} +1 -1
  55. package/dist/assets/add-resource-FFT9Nq-D.js +1 -0
  56. package/dist/assets/{addon-1QMy4IRG.js → addon-Bog8-kCc.js} +1 -1
  57. package/dist/assets/{analytics-RDIHqtEC.js → analytics-EzRmxVsS.js} +1 -1
  58. package/dist/assets/api-KhkAYAK1.js +1 -0
  59. package/dist/assets/{audit-logs-UyvhmXR3.js → audit-logs-F9Pr7cjv.js} +1 -1
  60. package/dist/assets/{button-t_AwvrL4.js → button-pphPD4D7.js} +1 -1
  61. package/dist/assets/{click-to-copy-H6ULFxkd.js → click-to-copy-TVTLHTem.js} +1 -1
  62. package/dist/assets/{complete-IuJpgYIr.js → complete-0l0ron_0.js} +1 -1
  63. package/dist/assets/{component-G6qh7GXc.js → component-CrwULnW_.js} +1 -1
  64. package/dist/assets/{config-TgYTBZTt.js → config-c0Lr2t0H.js} +1 -1
  65. package/dist/assets/{config-navigation-Rn6Zod0O.js → config-navigation-L-qLX4B0.js} +1 -1
  66. package/dist/assets/{config-4scj9ePp.js → config-vlauq037.js} +1 -1
  67. package/dist/assets/{confirm-rTEv2cR4.js → confirm-sh5q1a0n.js} +1 -1
  68. package/dist/assets/{confirm-QgU1_PTp.js → confirm-tcpqKzZB.js} +1 -1
  69. package/dist/assets/{connect-QgYEXdVh.js → connect-nYhNuMqi.js} +1 -1
  70. package/dist/assets/{connect-Dl-8ETzY.js → connect-obhVg5Ok.js} +1 -1
  71. package/dist/assets/{content-layout-royTMDoy.js → content-layout-NIhaYYrz.js} +1 -1
  72. package/dist/assets/{dashboard-u9hZyLwN.js → dashboard-I5vRXleu.js} +3 -3
  73. package/dist/assets/{did-address-HLejxWfT.js → did-address-qq_1T5l2.js} +1 -1
  74. package/dist/assets/{did-utils-HUCV2HWu.js → did-utils-n-LpEp5G.js} +1 -1
  75. package/dist/assets/{domain-GpRAPaIx.js → domain-MeqIChvN.js} +1 -1
  76. package/dist/assets/{domain-list-lPrVUmAl.js → domain-list-yGq_Y4yz.js} +1 -1
  77. package/dist/assets/{exchange-passport-IuC9VwEx.js → exchange-passport--BD8S8jX.js} +1 -1
  78. package/dist/assets/{fallback-b_zmsVbg.js → fallback-FI7UBCyS.js} +1 -1
  79. package/dist/assets/{format-error-wlUtS96P.js → format-error-AwlVbqQ_.js} +1 -1
  80. package/dist/assets/{fuel-TR64CTn1.js → fuel-Tnz0Y8l1.js} +1 -1
  81. package/dist/assets/fullpage-a7ojvBVp.js +1 -0
  82. package/dist/assets/{home-3M89U2oU.js → home-emaTaf8u.js} +1 -1
  83. package/dist/assets/{iframe-tVY0Votd.js → iframe-qCWq1lRA.js} +1 -1
  84. package/dist/assets/{index-FN8xWpsb.js → index-7WDAi8QZ.js} +1 -1
  85. package/dist/assets/{index-evdoM2z3.js → index-ALnlxAZf.js} +1 -1
  86. package/dist/assets/{index-dmjAo0qH.js → index-DMCnrsz9.js} +1 -1
  87. package/dist/assets/{index-FBVX6B9S.js → index-FwjymWKs.js} +4 -4
  88. package/dist/assets/{index--OWo39zO.js → index-HhHxxbfK.js} +1 -1
  89. package/dist/assets/{index-21p4-hlH.js → index-KULIep2J.js} +1 -1
  90. package/dist/assets/{index-0niAcafj.js → index-NeahD9R-.js} +1 -1
  91. package/dist/assets/{index-CLYRJvy9.js → index-Q8npJK7t.js} +1 -1
  92. package/dist/assets/{index-BG8b7I-X.js → index-Ro3Si39i.js} +1 -1
  93. package/dist/assets/{index-3wOALYwV.js → index-RxmlMTY4.js} +1 -1
  94. package/dist/assets/{index-K2Ybm2pw.js → index-S9SK_SjL.js} +1 -1
  95. package/dist/assets/{index-HUMCtJ-F.js → index-UJ1YMaoR.js} +1 -1
  96. package/dist/assets/{index-Drj2DsEg.js → index-VrHUjlIO.js} +1 -1
  97. package/dist/assets/{index-l56g_CHP.js → index-WY_Xf5uh.js} +1 -1
  98. package/dist/assets/{index-kA6bEgMs.js → index-XSoLlKHE.js} +1 -1
  99. package/dist/assets/{index--CyhSTyx.js → index-YpqYtp4Y.js} +1 -1
  100. package/dist/assets/{index-jXP9EjwJ.js → index-a5IVf4Ds.js} +1 -1
  101. package/dist/assets/{index-BD3_xRrb.js → index-bx0V2_nY.js} +3 -3
  102. package/dist/assets/{index-xRHYRJ_7.js → index-h5B_-jrN.js} +1 -1
  103. package/dist/assets/{index-l2b8-RX7.js → index-k76AZIv6.js} +1 -1
  104. package/dist/assets/{index-KIoBUz9b.js → index-kE9Ny3to.js} +1 -1
  105. package/dist/assets/{index-H9IRRby9.js → index-oSKvPxqz.js} +3 -3
  106. package/dist/assets/{index-O5NefLt1.js → index-pYu4WiGr.js} +1 -1
  107. package/dist/assets/{index-y1vZ4I-c.js → index-uFXfSLT3.js} +1 -1
  108. package/dist/assets/{index-pXkIJMvn.js → index-usQGF3Hd.js} +1 -1
  109. package/dist/assets/{index-G8cwybdF.js → index-v3sD9jwl.js} +1 -1
  110. package/dist/assets/{index-O-lzERhh.js → index-vcrZDM8V.js} +1 -1
  111. package/dist/assets/{index.es-EW-0danM.js → index.es-wsof92By.js} +1 -1
  112. package/dist/assets/{index.esm-yzdsIZwH.js → index.esm-sb7FovOt.js} +1 -1
  113. package/dist/assets/{invite-ZFnOF7D-.js → invite-U6iWhMyt.js} +1 -1
  114. package/dist/assets/{issue-passport-LI0vQTx6.js → issue-passport-HcMt_zdr.js} +1 -1
  115. package/dist/assets/{jss-plugin-props-sort.esm-dCzWy4MH.js → jss-plugin-props-sort.esm-uATOjvk7.js} +1 -1
  116. package/dist/assets/{launch-result-message-ZdZYSlup.js → launch-result-message-PfgqBUec.js} +1 -1
  117. package/dist/assets/{layout-EmhtrWaf.js → layout-_xpJFULa.js} +1 -1
  118. package/dist/assets/{list-header-CQgHRvVE.js → list-header-EVFeaoah.js} +1 -1
  119. package/dist/assets/localization-A9q7RwDF.js +1 -0
  120. package/dist/assets/{log-z1RzeRR6.js → log-3oZd9rhJ.js} +1 -1
  121. package/dist/assets/{login-zL8w551q.js → login-EhjG48Yw.js} +1 -1
  122. package/dist/assets/{logo-uploader-zW337Go0.js → logo-uploader-wd-ziphC.js} +3 -3
  123. package/dist/assets/{lost-passport-GLaDRSNa.js → lost-passport-Zuhxyica.js} +3 -3
  124. package/dist/assets/{lottie-jK27rNdj.js → lottie-8GVMnq4j.js} +1 -1
  125. package/dist/assets/{memoize-one.esm-t8vjaxPM.js → memoize-one.esm-SfINFbzL.js} +1 -1
  126. package/dist/assets/{nav-menu-Tl5mEfRm.js → nav-menu-MsHU6Nrg.js} +1 -1
  127. package/dist/assets/{notifications-PlI3p8fj.js → notifications-0zNYwhYd.js} +1 -1
  128. package/dist/assets/{overview-ysfYkE05.js → overview-l9Mpqmhu.js} +1 -1
  129. package/dist/assets/{page-header-66OZD-k5.js → page-header-H2K8sq1W.js} +1 -1
  130. package/dist/assets/{permission-hBdmK8vu.js → permission-z3yQEkWY.js} +1 -1
  131. package/dist/assets/preferences-E_gHyBm2.js +1 -0
  132. package/dist/assets/publish-resource-oHk38jQi.js +1 -0
  133. package/dist/assets/{react-0H7F4HJd.js → react-xqSM7B89.js} +3 -3
  134. package/dist/assets/{selector-MhbaknSB.js → selector-F8m6H7ls.js} +1 -1
  135. package/dist/assets/session-JrxJoUmO.js +1 -0
  136. package/dist/assets/{setup-sZd9bR8j.js → setup-Q8eWrWcl.js} +3 -3
  137. package/dist/assets/{slicedToArray-k67ntm7h.js → slicedToArray-cvBDQ8ge.js} +1 -1
  138. package/dist/assets/{spaces-PqbUeoTO.js → spaces-hhM8J11w.js} +1 -1
  139. package/dist/assets/{start-Zw90S5HQ.js → start-8bpjhQMX.js} +1 -1
  140. package/dist/assets/{step-actions-ILFnVvrv.js → step-actions-nm_Ds7nY.js} +1 -1
  141. package/dist/assets/{studio-o1cOhwh6.js → studio-VzA8spAy.js} +1 -1
  142. package/dist/assets/{switch-control-X6a6W1Im.js → switch-control-3QoW5jw5.js} +1 -1
  143. package/dist/assets/{transfer-ZLiabJcr.js → transfer-rlOoYYgH.js} +1 -1
  144. package/dist/assets/{uniqBy-ngvp8e0L.js → uniqBy-ce2Rut-n.js} +1 -1
  145. package/dist/assets/{unsubscribe-QliZKSwU.js → unsubscribe-knq8tExI.js} +1 -1
  146. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-gdL1zKwo.js → use-blocklet-info-for-connect-did-spaces-xmxqqrX1.js} +1 -1
  147. package/dist/assets/{useAsync-L140-N35.js → useAsync-mbLXKNT9.js} +1 -1
  148. package/dist/assets/{useFormControl-pwVb7wu_.js → useFormControl-1XPmGFai.js} +1 -1
  149. package/dist/assets/{useLocalStorage-UtHo1ezh.js → useLocalStorage-aXh_Rj3q.js} +1 -1
  150. package/dist/assets/{useSetState-qyJ6mTGB.js → useSetState--uFjPInN.js} +1 -1
  151. package/dist/assets/{user-_XAxkLCw.js → user-Dz7m3bpJ.js} +1 -1
  152. package/dist/assets/{util-Xu6BqTTW.js → util-VyxQThsV.js} +1 -1
  153. package/dist/assets/{wallet-hidden-topbar-bqcwYNs3.js → wallet-hidden-topbar-UIfeoHPs.js} +3 -3
  154. package/dist/assets/{wrap-locale-FLgJeXdD.js → wrap-locale-RacvOmgo.js} +1 -1
  155. package/dist/index.html +1 -1
  156. package/package.json +22 -22
  157. package/dist/assets/add-resource-WRcoBeLJ.js +0 -1
  158. package/dist/assets/api-dJ8jWDqQ.js +0 -1
  159. package/dist/assets/fullpage-ErEPlrFR.js +0 -1
  160. package/dist/assets/localization-57p2YRoa.js +0 -1
  161. package/dist/assets/preferences-h7aAXHWa.js +0 -1
  162. package/dist/assets/publish-resource-6bBVAn-l.js +0 -1
  163. package/dist/assets/session-UBJotivU.js +0 -1
@@ -1,4 +1,4 @@
1
- import{b9 as Y,a9 as ce,u as T,r as S,cv as Qe,c as N,w as R,ce as ie,j as e,T as x,B as f,x as re,am as Pe,F as Z,S as q,n as C,P as m,G as Ce,E as He,H as ve,g8 as Ve,K as _,M as $,bf as K,cw as Ke,aK as Xe,bd as We,U as Ze,aq as Ge,bt as ge,eT as Ye,ac as Be,cx as qe,$ as _e,bv as V,a as $e}from"./index-FBVX6B9S.js";import{S as je}from"./index-O-lzERhh.js";import{A as et}from"./index-O5NefLt1.js";import"./api-dJ8jWDqQ.js";import{u as Ie,P as tt}from"./use-blocklet-info-for-connect-did-spaces-gdL1zKwo.js";import{d as G,e as ye,i as Ae,f as st,j as ot,k as nt,l as Se,h as at}from"./spaces-PqbUeoTO.js";import{f as J}from"./dashboard-u9hZyLwN.js";import{D as it}from"./DialogContentText-GOi1cMCU.js";import{T as rt}from"./TextField-mvaGVkiG.js";import{f as le}from"./format-error-wlUtS96P.js";import{I as lt}from"./index-l2b8-RX7.js";import{W as ct}from"./did-address-HLejxWfT.js";import{a as De}from"./switch-control-X6a6W1Im.js";import{d as dt,T as ae}from"./MoreVert--r4YINap.js";import{d as pt}from"./DeleteOutline-ldnn034A.js";import{L as X,a as W}from"./confirm-rTEv2cR4.js";import{e as ht}from"./mode-Ip8p6ZjP.js";import{D as mt}from"./index-Drj2DsEg.js";import{I as ut}from"./Icon-Z3sa2o7_.js";import"./ExpandMore-AjCxxobS.js";import"./ButtonGroup-WpuCESRm.js";import"./index-kA6bEgMs.js";import"./index-BG8b7I-X.js";import"./permission-hBdmK8vu.js";import"./useAsync-L140-N35.js";import"./session-UBJotivU.js";import"./useLocalStorage-UtHo1ezh.js";import"./useSetState-qyJ6mTGB.js";import"./PlayArrow-lHMXu7Pu.js";import"./Alert-CVBj6K_x.js";import"./RadioGroup-7FTePFM-.js";import"./FormControlLabel-RXb6vK7s.js";import"./useFormControl-pwVb7wu_.js";import"./FormGroup--UBs69R8.js";import"./Avatar-phMyiuZN.js";import"./fallback-b_zmsVbg.js";import"./wallet-hidden-topbar-bqcwYNs3.js";import"./ListItem-0o0I3uAI.js";import"./selector-MhbaknSB.js";import"./index--CyhSTyx.js";import"./nav-menu-Tl5mEfRm.js";import"./MoreHoriz-CgcL_RUW.js";import"./Toolbar-yH3XFZuP.js";import"./Hidden-mWvmgc4A.js";import"./Checkbox-E7hRdaZx.js";import"./FormControl-dd94hWMS.js";import"./InputLabel-TPtinWuK.js";import"./Select-S9JKyZyg.js";import"./FilterList-2ERNRQaM.js";import"./TableRow-NtkZR5qp.js";import"./LastPage-JHHCVMPH.js";import"./index-pXkIJMvn.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Grid-xUYHRi0b.js";import"./Search-iVqmV6Op.js";function ee({...t}){const{blocklet:s}=Y(),{info:d}=ce(),{t:a,locale:r}=T(),[u,o]=S.useState(""),[l,g]=S.useState(!1),[p,h]=S.useState(!1),[j,v]=S.useState(""),i=Ie({blocklet:s}),B=Qe(d),{spaceGateways:w,addSpaceGateway:se}=J(),[I,O]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,prefix:N(R.PROD_DID_SPACES.CORE_URL,"space/api/did"),baseUrl:new URL(R.PROD_DID_SPACES.CORE_URL).origin,checkFn:ie.create({baseURL:N(R.PROD_DID_SPACES.CORE_URL,"space")}).get,messages:{title:a("storage.spaces.provideNFT.title",{appName:i.appName},r),scan:a("storage.spaces.provideNFT.scan",{appName:i.appName},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.provideNFT.success")})},onClose:()=>{O(c=>({...c,open:!1}))}}),[n,Q]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:i.appName},r),scan:a("storage.spaces.authorize.scan",{appName:i.appName},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{Q(c=>({...c,open:!1}))}}),E=async(c,A)=>{try{const D=A(c.endpoint),b=c.space?A(c.space):{};await L({endpoint:D,did:G(D),name:"DID Space",...b}),Q(U=>({...U,open:!1})),o(null),O(U=>({...U,open:!1}))}catch(D){console.error(D),C.error(le(D))}},L=async({endpoint:c,name:A,did:D})=>{const b=await ye(c);if(!await Ae(b)){C.error(a("storage.spaces.gateway.add.invalidUrl"));return}if(w.some(P=>P.endpoint===c)){C.error(a("storage.spaces.gateway.add.duplicate",{name:A}));return}const F={name:A,did:D,url:b,endpoint:c};await se(F,c),C.success(a("storage.spaces.connectedWithName",{name:(F==null?void 0:F.name)??"DID Spaces"}))},y=()=>{O(c=>({...c,open:!0,extraParams:{appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:d.did}}))},z=async()=>{try{g(!0);const c=await ye(u),A=st(c),D=new URL(c).searchParams.get("spaceDid");if(!await Ae(A))throw new Error(a("storage.spaces.gateway.add.invalidUrl"));Q(b=>({...b,open:!0,prefix:N(A,"space/api/did"),baseUrl:new URL(A).origin,checkFn:ie.create({baseURL:N(A,"space")}).get,extraParams:{appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:d.did,spaceDid:D}})),h(!1)}catch(c){const A=`${a("storage.spaces.gateway.add.failed",r)}: ${le(c)}`;v(A)}finally{g(!1)}};return e.jsxs(f,{children:[e.jsx(je,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:y,menu:[e.jsx(je.Item,{sx:{textTransform:"none"},onClick:()=>h(!0),size:"small",...t,children:a("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(x,{sx:{fontWeight:"bold",textTransform:"none"},children:a("storage.spaces.connect.useWallet")})}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,webWalletUrl:B,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:E,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:r}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:n.prefix,open:n.open,popup:!0,action:n.action,baseUrl:n.baseUrl,checkFn:n.checkFn,onSuccess:E,onClose:n.onClose,checkTimeout:n.checkTimeout,extraParams:n.extraParams,messages:n.messages,locale:r}),e.jsxs(Pe,{title:a("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:p,onClose:()=>h(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(Z,{onClick:c=>{c.stopPropagation(),h(!1)},color:"inherit",children:a("common.cancel")}),e.jsxs(Z,{onClick:z,color:"primary",disabled:l||!u,variant:"contained",autoFocus:!0,children:[l&&e.jsx(q,{size:16}),a("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(it,{component:"div",children:e.jsx(x,{component:"div",children:e.jsx(rt,{label:a("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:u,onChange:c=>{v(null),o(c.target.value)},disabled:l,onKeyPress:async c=>{c.key==="Enter"&&await z()},autoFocus:!0})})})}),!!j&&e.jsx(et,{type:"error",style:{width:"100%"},children:j})]})]})}ee.propTypes={};ee.defaultProps={};function te({blocklet:t,...s}){const{t:d}=S.useContext(He);if(!t.diskInfo)return e.jsx(x,{children:d("blocklet.diskInfo.empty")});const a=(o,l,g)=>e.jsxs(x,{children:[g?e.jsx(ve,{style:{cursor:"pointer"},onClick:g,underline:"hover",children:o}):o," ",e.jsx("strong",{children:l?Ve(l):"empty"})]}),r=t.environments.reduce((o,l)=>(o[l.key]=l.value,o),{}),u=[{key:"appDir",name:d("blocklet.diskInfo.appDir"),value:a(r.BLOCKLET_APP_DIR,t.diskInfo.app)},{key:"dataDir",name:d("blocklet.diskInfo.dataDir"),value:a(r.BLOCKLET_DATA_DIR,t.diskInfo.data)},{key:"logDir",name:d("blocklet.diskInfo.logDir"),value:a(r.BLOCKLET_LOG_DIR,t.diskInfo.log)},{key:"cacheDir",name:d("blocklet.diskInfo.cacheDir"),value:a(r.BLOCKLET_CACHE_DIR,t.diskInfo.cache)}];return e.jsx(ft,{component:"div",...s,children:u.map(o=>e.jsx(lt,{valueComponent:"div",nameWidth:120,name:o.name,children:o.value},o.key))})}te.propTypes={blocklet:m.object.isRequired};te.defaultProps={};const ft=Ce(x)``;var ke=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.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+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh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mJ8UMGkWSrYgSAuzRViTEA7tgePYuBGUYId9lgeqCiJ/JAP+K37em+n0mcKzQjQWZNGFywCCCF+7J1+B4vr0gBhFB6S+89eO6chpzkyM8s0MdCgW7njgiikAKvGH0fRKr9cXmycUjU8xfeY87PIXB3q1TK2GWGjxhtr146ZKTKWPp9sR8MWBNzQTNNrIt4XCVHh+OwfYAo9QybSeFUX5a9bl1On+cL5YHUjp/eID+XwV2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};ke.defaultProps={width:"228",height:"258",viewBox:"0 0 228 258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ue(){const{t}=T(),{blocklet:s}=Y();return e.jsxs(f,{children:[e.jsxs(f,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(ke,{style:{width:200,height:250}}),e.jsx(x,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ee,{})]}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}Ue.propTypes={};var de={},xt=$;Object.defineProperty(de,"__esModule",{value:!0});var Re=de.default=void 0,gt=xt(_()),jt=e,yt=(0,gt.default)((0,jt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");Re=de.default=yt;var pe={},At=$;Object.defineProperty(pe,"__esModule",{value:!0});var Ee=pe.default=void 0,St=At(_()),Ct=e,vt=(0,St.default)((0,Ct.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02z"}),"ElectricBoltOutlined");Ee=pe.default=vt;var he={},Bt=$;Object.defineProperty(he,"__esModule",{value:!0});var be=he.default=void 0,It=Bt(_()),Dt=e,kt=(0,It.default)((0,Dt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"FolderOutlined");be=he.default=kt;function me({spaceGateway:t,onDelete:s}){const{t:d}=T(),[a,r]=S.useState(!1),[u,o]=S.useState(!1),l=(p,h)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),r(h)},g=async p=>{try{p==null||p.stopPropagation(),o(!0),await s(t),r(!1)}catch(h){console.error(h),C.error(`${d("storage.space.gateway.delete.failed")}: ${le(h)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(K,{color:"red",onClick:p=>l(p,!0),children:[e.jsx(X,{style:{minWidth:24,color:"red"},children:e.jsx(pt,{fontSize:"small"})}),e.jsx(W,{style:{color:"red"},children:d("common.delete")})]}),e.jsx(Ke,{title:d("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:a,confirmButton:{text:d("common.confirm"),props:{variant:"contained",color:"error",loading:u}},cancelButton:{text:d("common.cancel"),props:{variant:"contained",color:"primary"},loading:u},onConfirm:g,onCancel:p=>l(p,!1)})]})}me.propTypes={onDelete:m.func,spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool}).isRequired};me.defaultProps={onDelete:()=>{}};function ue({spaceGateway:t,connected:s,onDelete:d,onConnect:a,enableSwitchToSpace:r,...u}){const[o,l]=S.useState(null),{t:g}=T(),[p,h]=S.useState(!1),j=(i,B)=>{i.stopPropagation(),i.preventDefault(),l(B&&i.currentTarget)},v=async i=>{try{h(!0),j(i,!1),await a(t)}catch(B){console.error(B),C.error(B.message)}finally{h(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Xe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:i=>j(i,!0),size:"small",...u,children:p||t!=null&&t.loading?e.jsx(q,{size:"24px"}):e.jsx(dt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:o,keepMounted:!0,open:!!o,onClose:i=>j(i,!1),children:[e.jsxs(K,{onClick:i=>{j(i,!1),window.open(t.endpoint?ot(t.endpoint):t.url)},children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(Re,{fontSize:"small"})}),e.jsx(W,{children:g("common.open")})]}),e.jsxs(K,{onClick:i=>{j(i,!1),window.open(nt(t.endpoint))},children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(be,{fontSize:"small"})}),e.jsx(W,{children:g("storage.spaces.strategy.viewBackupFiles")})]}),!s&&r&&e.jsxs(K,{onClick:v,children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(Ee,{fontSize:"small"})}),e.jsx(W,{children:g("storage.spaces.connect.switchToSpace")})]}),!s&&e.jsx(me,{spaceGateway:t,onDelete:d})]})]})}ue.propTypes={spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool,endpoint:m.string.isRequired,loading:m.bool}).isRequired,connected:m.bool.isRequired,enableSwitchToSpace:m.bool,onDelete:m.func,onConnect:m.func};ue.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0};var Te=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Te.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var we=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};we.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fe({spaceGateway:t,connected:s,onDelete:d,onBackupNow:a,...r}){const u=Ze(k=>k.breakpoints.down("md")),{t:o,locale:l}=T(),{blocklet:g}=Y(),{api:p,info:{did:h}}=ce(),{appDid:j,appName:v,appDescription:i,scopes:B,appUrl:w,referrer:se}=Ie({blocklet:g}),{updateSpaceGateway:I,backupEndpoint:O,backupProgress:n,refreshBackupEndpoint:Q}=J(),[E,L]=S.useState(!1),[y,z]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:v},l),scan:o("storage.spaces.authorize.scan",{appName:v},l),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{z(k=>({...k,open:!1}))}}),{data:c,loading:A}=Ge(async()=>s?Se(O):!0,{refreshDeps:[s,O,y==null?void 0:y.open,E]}),D=s&&c,b=s&&!E&&c&&!(t!=null&&t.loading),U=s&&E&&c,F=s&&!c&&!A&&!E,P=async()=>{if(await Se(t==null?void 0:t.endpoint)){await p.configBlocklet({input:{did:[g.meta.did],configs:[{key:_e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),Q(),C.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}z(H=>({...H,open:!0,prefix:N(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ie.create({baseURL:N(t.url,"space")}).get,extraParams:{appDid:j,appName:v,appDescription:i,scopes:B,appUrl:w,referrer:se,nodeDid:h,spaceDid:t.did}}))},Le=async(k,H)=>{const oe=H(k.endpoint),Ne=G(oe),M=k.space?H(k.space):{};if(t.did&&Ne!==t.did){z(ne=>({...ne,open:!1})),C.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:M!=null&&M.name?M.name:""}));return}const Je={...t,name:M.name??"DID Space",did:M.did??G(oe),endpoint:oe};await I(Je),z(ne=>({...ne,open:!1}))},Me=async()=>{try{if(E)return;L(!0),await a()}catch(k){console.error(k),C.error(k.message)}finally{L(!0)}};return S.useEffect(()=>{n!=null&&n.completed?((n==null?void 0:n.progress)===100?C.success(o("storage.spaces.backupSuccessfully")):(n==null?void 0:n.progress)===-1&&C.error(n==null?void 0:n.message),L(!1),n.progress=0,n.message=""):n.progress&&L(!0)},[n]),e.jsxs(Ut,{style:{position:"relative"},children:[e.jsxs(f,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...r,children:[e.jsx(f,{display:"flex",children:e.jsx(tt,{alt:t.did,src:at(t.endpoint)})}),e.jsxs(f,{className:"spaces-info",display:"flex",flexGrow:(!u||!U)&&1,minWidth:"180px",flexDirection:U?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(f,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(x,{color:s?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:t.name}),D&&e.jsx(ge,{label:e.jsxs(e.Fragment,{children:[e.jsx(Te,{style:{marginRight:"4px"}}),o("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),F&&e.jsx(ge,{label:e.jsxs(e.Fragment,{children:[e.jsx(we,{style:{marginRight:"4px"}}),o("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),e.jsx(f,{className:"spaces-address",display:U?"none":"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(x,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(ct,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})})]}),e.jsxs(f,{className:"spaces-backup",display:"flex",alignItems:"center",flex:u&&U&&1,children:[b&&e.jsxs(f,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[e.jsx(Z,{variant:"contained",size:"small",onClick:Me,children:o("storage.spaces.strategy.backupNow")}),ht&&e.jsx(De,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(x,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),U&&e.jsxs(f,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!u&&"640px",marginLeft:u&&"16px",width:u&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(x,{color:"primary",children:n==null?void 0:n.message}),e.jsxs(f,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(f,{sx:{width:"100%",mr:1},children:e.jsx(Ye,{color:"primary",variant:"determinate",value:n==null?void 0:n.progress})}),e.jsx(f,{sx:{maxWidth:"100%"},children:e.jsxs(x,{variant:"body2",color:"text.secondary",children:[n==null?void 0:n.progress,"%"]})})]})]}),F&&e.jsx(f,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(Z,{color:"error",variant:"contained",size:"small",onClick:P,children:o("storage.spaces.disconnected.reconnectNow")})}),e.jsx(ue,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:t,connected:s,onDelete:d,onConnect:P,enableSwitchToSpace:(n==null?void 0:n.completed)||Be.isEmpty(n==null?void 0:n.message)})]})]}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:y.prefix,open:y.open,popup:!0,action:y.action,baseUrl:y.baseUrl,checkFn:y.checkFn,onSuccess:Le,onClose:y.onClose,checkTimeout:y.checkTimeout,extraParams:y.extraParams,messages:y.messages,locale:l},"get-endpoint"),e.jsx(f,{className:`selected-container ${s?"selected":""}`,children:e.jsx(qe,{className:"selected-icon"})})]})}fe.propTypes={spaceGateway:m.shape({did:m.string.isRequired,name:m.string.isRequired,url:m.string.isRequired,endpoint:m.string.isRequired,protected:m.bool,loading:m.bool}).isRequired,connected:m.bool.isRequired,progress:m.any.isRequired,onDelete:m.func,onBackupNow:m.func};fe.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const Ut=Ce(f)`
1
+ import{b9 as Y,a9 as ce,u as T,r as S,cv as Qe,c as N,w as R,ce as ie,j as e,T as x,B as f,x as re,am as Pe,F as Z,S as q,n as C,P as m,G as Ce,E as He,H as ve,g8 as Ve,K as _,M as $,bf as K,cw as Ke,aK as Xe,bd as We,U as Ze,aq as Ge,bt as ge,eT as Ye,ac as Be,cx as qe,$ as _e,bv as V,a as $e}from"./index-FwjymWKs.js";import{S as je}from"./index-vcrZDM8V.js";import{A as et}from"./index-pYu4WiGr.js";import"./api-KhkAYAK1.js";import{u as Ie,P as tt}from"./use-blocklet-info-for-connect-did-spaces-xmxqqrX1.js";import{d as G,e as ye,i as Ae,f as st,j as ot,k as nt,l as Se,h as at}from"./spaces-hhM8J11w.js";import{f as J}from"./dashboard-I5vRXleu.js";import{D as it}from"./DialogContentText-IKkXjwY4.js";import{T as rt}from"./TextField-_iwvPvON.js";import{f as le}from"./format-error-AwlVbqQ_.js";import{I as lt}from"./index-k76AZIv6.js";import{W as ct}from"./did-address-qq_1T5l2.js";import{a as De}from"./switch-control-3QoW5jw5.js";import{d as dt,T as ae}from"./MoreVert-js_otO_B.js";import{d as pt}from"./DeleteOutline-VKfxyMcW.js";import{L as X,a as W}from"./confirm-sh5q1a0n.js";import{e as ht}from"./mode-Ip8p6ZjP.js";import{D as mt}from"./index-VrHUjlIO.js";import{I as ut}from"./Icon-NXg5tkLd.js";import"./ExpandMore-IA-2iaem.js";import"./ButtonGroup-YM9idA0S.js";import"./index-XSoLlKHE.js";import"./index-Ro3Si39i.js";import"./permission-z3yQEkWY.js";import"./useAsync-mbLXKNT9.js";import"./session-JrxJoUmO.js";import"./useLocalStorage-aXh_Rj3q.js";import"./useSetState--uFjPInN.js";import"./PlayArrow-yDXb6jT-.js";import"./Alert-msfMnXoL.js";import"./RadioGroup-q_troyXZ.js";import"./FormControlLabel--DtAy8ru.js";import"./useFormControl-1XPmGFai.js";import"./FormGroup-uAQ93T09.js";import"./Avatar-40UryW2V.js";import"./fallback-FI7UBCyS.js";import"./wallet-hidden-topbar-UIfeoHPs.js";import"./ListItem-8xgbSCnj.js";import"./selector-F8m6H7ls.js";import"./index-YpqYtp4Y.js";import"./nav-menu-MsHU6Nrg.js";import"./MoreHoriz-nW6861tu.js";import"./Toolbar-VMTR0FH4.js";import"./Hidden-85MTYsBc.js";import"./Checkbox-6b2Wxw9o.js";import"./FormControl-hdLaFfly.js";import"./InputLabel-NZgDieHH.js";import"./Select-kt7kYpdf.js";import"./FilterList-qFkuKu0i.js";import"./TableRow-g8XooIYl.js";import"./LastPage-8I3Fk9_4.js";import"./index-usQGF3Hd.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Grid-W1BkY5Ap.js";import"./Search-TiKYSEXg.js";function ee({...t}){const{blocklet:s}=Y(),{info:d}=ce(),{t:a,locale:r}=T(),[u,o]=S.useState(""),[l,g]=S.useState(!1),[p,h]=S.useState(!1),[j,v]=S.useState(""),i=Ie({blocklet:s}),B=Qe(d),{spaceGateways:w,addSpaceGateway:se}=J(),[I,O]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,prefix:N(R.PROD_DID_SPACES.CORE_URL,"space/api/did"),baseUrl:new URL(R.PROD_DID_SPACES.CORE_URL).origin,checkFn:ie.create({baseURL:N(R.PROD_DID_SPACES.CORE_URL,"space")}).get,messages:{title:a("storage.spaces.provideNFT.title",{appName:i.appName},r),scan:a("storage.spaces.provideNFT.scan",{appName:i.appName},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.provideNFT.success")})},onClose:()=>{O(c=>({...c,open:!1}))}}),[n,Q]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:i.appName},r),scan:a("storage.spaces.authorize.scan",{appName:i.appName},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{Q(c=>({...c,open:!1}))}}),E=async(c,A)=>{try{const D=A(c.endpoint),b=c.space?A(c.space):{};await L({endpoint:D,did:G(D),name:"DID Space",...b}),Q(U=>({...U,open:!1})),o(null),O(U=>({...U,open:!1}))}catch(D){console.error(D),C.error(le(D))}},L=async({endpoint:c,name:A,did:D})=>{const b=await ye(c);if(!await Ae(b)){C.error(a("storage.spaces.gateway.add.invalidUrl"));return}if(w.some(P=>P.endpoint===c)){C.error(a("storage.spaces.gateway.add.duplicate",{name:A}));return}const F={name:A,did:D,url:b,endpoint:c};await se(F,c),C.success(a("storage.spaces.connectedWithName",{name:(F==null?void 0:F.name)??"DID Spaces"}))},y=()=>{O(c=>({...c,open:!0,extraParams:{appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:d.did}}))},z=async()=>{try{g(!0);const c=await ye(u),A=st(c),D=new URL(c).searchParams.get("spaceDid");if(!await Ae(A))throw new Error(a("storage.spaces.gateway.add.invalidUrl"));Q(b=>({...b,open:!0,prefix:N(A,"space/api/did"),baseUrl:new URL(A).origin,checkFn:ie.create({baseURL:N(A,"space")}).get,extraParams:{appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:d.did,spaceDid:D}})),h(!1)}catch(c){const A=`${a("storage.spaces.gateway.add.failed",r)}: ${le(c)}`;v(A)}finally{g(!1)}};return e.jsxs(f,{children:[e.jsx(je,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:y,menu:[e.jsx(je.Item,{sx:{textTransform:"none"},onClick:()=>h(!0),size:"small",...t,children:a("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(x,{sx:{fontWeight:"bold",textTransform:"none"},children:a("storage.spaces.connect.useWallet")})}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,webWalletUrl:B,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:E,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:r}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:n.prefix,open:n.open,popup:!0,action:n.action,baseUrl:n.baseUrl,checkFn:n.checkFn,onSuccess:E,onClose:n.onClose,checkTimeout:n.checkTimeout,extraParams:n.extraParams,messages:n.messages,locale:r}),e.jsxs(Pe,{title:a("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:p,onClose:()=>h(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(Z,{onClick:c=>{c.stopPropagation(),h(!1)},color:"inherit",children:a("common.cancel")}),e.jsxs(Z,{onClick:z,color:"primary",disabled:l||!u,variant:"contained",autoFocus:!0,children:[l&&e.jsx(q,{size:16}),a("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(it,{component:"div",children:e.jsx(x,{component:"div",children:e.jsx(rt,{label:a("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:u,onChange:c=>{v(null),o(c.target.value)},disabled:l,onKeyPress:async c=>{c.key==="Enter"&&await z()},autoFocus:!0})})})}),!!j&&e.jsx(et,{type:"error",style:{width:"100%"},children:j})]})]})}ee.propTypes={};ee.defaultProps={};function te({blocklet:t,...s}){const{t:d}=S.useContext(He);if(!t.diskInfo)return e.jsx(x,{children:d("blocklet.diskInfo.empty")});const a=(o,l,g)=>e.jsxs(x,{children:[g?e.jsx(ve,{style:{cursor:"pointer"},onClick:g,underline:"hover",children:o}):o," ",e.jsx("strong",{children:l?Ve(l):"empty"})]}),r=t.environments.reduce((o,l)=>(o[l.key]=l.value,o),{}),u=[{key:"appDir",name:d("blocklet.diskInfo.appDir"),value:a(r.BLOCKLET_APP_DIR,t.diskInfo.app)},{key:"dataDir",name:d("blocklet.diskInfo.dataDir"),value:a(r.BLOCKLET_DATA_DIR,t.diskInfo.data)},{key:"logDir",name:d("blocklet.diskInfo.logDir"),value:a(r.BLOCKLET_LOG_DIR,t.diskInfo.log)},{key:"cacheDir",name:d("blocklet.diskInfo.cacheDir"),value:a(r.BLOCKLET_CACHE_DIR,t.diskInfo.cache)}];return e.jsx(ft,{component:"div",...s,children:u.map(o=>e.jsx(lt,{valueComponent:"div",nameWidth:120,name:o.name,children:o.value},o.key))})}te.propTypes={blocklet:m.object.isRequired};te.defaultProps={};const ft=Ce(x)``;var ke=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.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+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnl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XVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};ke.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 Ue(){const{t}=T(),{blocklet:s}=Y();return e.jsxs(f,{children:[e.jsxs(f,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(ke,{style:{width:200,height:250}}),e.jsx(x,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ee,{})]}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}Ue.propTypes={};var de={},xt=$;Object.defineProperty(de,"__esModule",{value:!0});var Re=de.default=void 0,gt=xt(_()),jt=e,yt=(0,gt.default)((0,jt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");Re=de.default=yt;var pe={},At=$;Object.defineProperty(pe,"__esModule",{value:!0});var Ee=pe.default=void 0,St=At(_()),Ct=e,vt=(0,St.default)((0,Ct.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02z"}),"ElectricBoltOutlined");Ee=pe.default=vt;var he={},Bt=$;Object.defineProperty(he,"__esModule",{value:!0});var be=he.default=void 0,It=Bt(_()),Dt=e,kt=(0,It.default)((0,Dt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"FolderOutlined");be=he.default=kt;function me({spaceGateway:t,onDelete:s}){const{t:d}=T(),[a,r]=S.useState(!1),[u,o]=S.useState(!1),l=(p,h)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),r(h)},g=async p=>{try{p==null||p.stopPropagation(),o(!0),await s(t),r(!1)}catch(h){console.error(h),C.error(`${d("storage.space.gateway.delete.failed")}: ${le(h)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(K,{color:"red",onClick:p=>l(p,!0),children:[e.jsx(X,{style:{minWidth:24,color:"red"},children:e.jsx(pt,{fontSize:"small"})}),e.jsx(W,{style:{color:"red"},children:d("common.delete")})]}),e.jsx(Ke,{title:d("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:a,confirmButton:{text:d("common.confirm"),props:{variant:"contained",color:"error",loading:u}},cancelButton:{text:d("common.cancel"),props:{variant:"contained",color:"primary"},loading:u},onConfirm:g,onCancel:p=>l(p,!1)})]})}me.propTypes={onDelete:m.func,spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool}).isRequired};me.defaultProps={onDelete:()=>{}};function ue({spaceGateway:t,connected:s,onDelete:d,onConnect:a,enableSwitchToSpace:r,...u}){const[o,l]=S.useState(null),{t:g}=T(),[p,h]=S.useState(!1),j=(i,B)=>{i.stopPropagation(),i.preventDefault(),l(B&&i.currentTarget)},v=async i=>{try{h(!0),j(i,!1),await a(t)}catch(B){console.error(B),C.error(B.message)}finally{h(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Xe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:i=>j(i,!0),size:"small",...u,children:p||t!=null&&t.loading?e.jsx(q,{size:"24px"}):e.jsx(dt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:o,keepMounted:!0,open:!!o,onClose:i=>j(i,!1),children:[e.jsxs(K,{onClick:i=>{j(i,!1),window.open(t.endpoint?ot(t.endpoint):t.url)},children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(Re,{fontSize:"small"})}),e.jsx(W,{children:g("common.open")})]}),e.jsxs(K,{onClick:i=>{j(i,!1),window.open(nt(t.endpoint))},children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(be,{fontSize:"small"})}),e.jsx(W,{children:g("storage.spaces.strategy.viewBackupFiles")})]}),!s&&r&&e.jsxs(K,{onClick:v,children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(Ee,{fontSize:"small"})}),e.jsx(W,{children:g("storage.spaces.connect.switchToSpace")})]}),!s&&e.jsx(me,{spaceGateway:t,onDelete:d})]})]})}ue.propTypes={spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool,endpoint:m.string.isRequired,loading:m.bool}).isRequired,connected:m.bool.isRequired,enableSwitchToSpace:m.bool,onDelete:m.func,onConnect:m.func};ue.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0};var Te=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Te.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var we=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};we.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fe({spaceGateway:t,connected:s,onDelete:d,onBackupNow:a,...r}){const u=Ze(k=>k.breakpoints.down("md")),{t:o,locale:l}=T(),{blocklet:g}=Y(),{api:p,info:{did:h}}=ce(),{appDid:j,appName:v,appDescription:i,scopes:B,appUrl:w,referrer:se}=Ie({blocklet:g}),{updateSpaceGateway:I,backupEndpoint:O,backupProgress:n,refreshBackupEndpoint:Q}=J(),[E,L]=S.useState(!1),[y,z]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:v},l),scan:o("storage.spaces.authorize.scan",{appName:v},l),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{z(k=>({...k,open:!1}))}}),{data:c,loading:A}=Ge(async()=>s?Se(O):!0,{refreshDeps:[s,O,y==null?void 0:y.open,E]}),D=s&&c,b=s&&!E&&c&&!(t!=null&&t.loading),U=s&&E&&c,F=s&&!c&&!A&&!E,P=async()=>{if(await Se(t==null?void 0:t.endpoint)){await p.configBlocklet({input:{did:[g.meta.did],configs:[{key:_e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),Q(),C.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}z(H=>({...H,open:!0,prefix:N(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ie.create({baseURL:N(t.url,"space")}).get,extraParams:{appDid:j,appName:v,appDescription:i,scopes:B,appUrl:w,referrer:se,nodeDid:h,spaceDid:t.did}}))},Le=async(k,H)=>{const oe=H(k.endpoint),Ne=G(oe),M=k.space?H(k.space):{};if(t.did&&Ne!==t.did){z(ne=>({...ne,open:!1})),C.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:M!=null&&M.name?M.name:""}));return}const Je={...t,name:M.name??"DID Space",did:M.did??G(oe),endpoint:oe};await I(Je),z(ne=>({...ne,open:!1}))},Me=async()=>{try{if(E)return;L(!0),await a()}catch(k){console.error(k),C.error(k.message)}finally{L(!0)}};return S.useEffect(()=>{n!=null&&n.completed?((n==null?void 0:n.progress)===100?C.success(o("storage.spaces.backupSuccessfully")):(n==null?void 0:n.progress)===-1&&C.error(n==null?void 0:n.message),L(!1),n.progress=0,n.message=""):n.progress&&L(!0)},[n]),e.jsxs(Ut,{style:{position:"relative"},children:[e.jsxs(f,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...r,children:[e.jsx(f,{display:"flex",children:e.jsx(tt,{alt:t.did,src:at(t.endpoint)})}),e.jsxs(f,{className:"spaces-info",display:"flex",flexGrow:(!u||!U)&&1,minWidth:"180px",flexDirection:U?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(f,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(x,{color:s?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:t.name}),D&&e.jsx(ge,{label:e.jsxs(e.Fragment,{children:[e.jsx(Te,{style:{marginRight:"4px"}}),o("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),F&&e.jsx(ge,{label:e.jsxs(e.Fragment,{children:[e.jsx(we,{style:{marginRight:"4px"}}),o("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),e.jsx(f,{className:"spaces-address",display:U?"none":"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(x,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(ct,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})})]}),e.jsxs(f,{className:"spaces-backup",display:"flex",alignItems:"center",flex:u&&U&&1,children:[b&&e.jsxs(f,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[e.jsx(Z,{variant:"contained",size:"small",onClick:Me,children:o("storage.spaces.strategy.backupNow")}),ht&&e.jsx(De,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(x,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),U&&e.jsxs(f,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!u&&"640px",marginLeft:u&&"16px",width:u&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(x,{color:"primary",children:n==null?void 0:n.message}),e.jsxs(f,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(f,{sx:{width:"100%",mr:1},children:e.jsx(Ye,{color:"primary",variant:"determinate",value:n==null?void 0:n.progress})}),e.jsx(f,{sx:{maxWidth:"100%"},children:e.jsxs(x,{variant:"body2",color:"text.secondary",children:[n==null?void 0:n.progress,"%"]})})]})]}),F&&e.jsx(f,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(Z,{color:"error",variant:"contained",size:"small",onClick:P,children:o("storage.spaces.disconnected.reconnectNow")})}),e.jsx(ue,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:t,connected:s,onDelete:d,onConnect:P,enableSwitchToSpace:(n==null?void 0:n.completed)||Be.isEmpty(n==null?void 0:n.message)})]})]}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:y.prefix,open:y.open,popup:!0,action:y.action,baseUrl:y.baseUrl,checkFn:y.checkFn,onSuccess:Le,onClose:y.onClose,checkTimeout:y.checkTimeout,extraParams:y.extraParams,messages:y.messages,locale:l},"get-endpoint"),e.jsx(f,{className:`selected-container ${s?"selected":""}`,children:e.jsx(qe,{className:"selected-icon"})})]})}fe.propTypes={spaceGateway:m.shape({did:m.string.isRequired,name:m.string.isRequired,url:m.string.isRequired,endpoint:m.string.isRequired,protected:m.bool,loading:m.bool}).isRequired,connected:m.bool.isRequired,progress:m.any.isRequired,onDelete:m.func,onBackupNow:m.func};fe.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const Ut=Ce(f)`
2
2
  .selected-container {
3
3
  position: absolute;
4
4
  right: 0px;
@@ -1 +1 @@
1
- import{b4 as a}from"./index-FBVX6B9S.js";var e=i,s=/^(?:\w+:)?\/\/(\S+)$/,l=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function i(t){if(typeof t!="string")return!1;var o=t.match(s);if(!o)return!1;var r=o[1];return r?!!(l.test(r)||n.test(r)):!1}const c=a(e);export{c as i};
1
+ import{b4 as a}from"./index-FwjymWKs.js";var e=i,s=/^(?:\w+:)?\/\/(\S+)$/,l=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function i(t){if(typeof t!="string")return!1;var o=t.match(s);if(!o)return!1;var r=o[1];return r?!!(l.test(r)||n.test(r)):!1}const c=a(e);export{c as i};
@@ -1,4 +1,4 @@
1
- import{aN as Ve,aM as We,aO as Ye,a7 as Ge,aP as G,aS as M,r as A,aQ as Xe,aR as Qe,j as a,aU as Z,aV as Je,b4 as ae,c5 as Ae,c6 as B,P as s,K as je,M as Ee,c2 as C,a4 as Ze,bz as Ce,aJ as ie,L as X,T as k,b as Ke,aK as et,B as L,c7 as tt,O as se,c8 as rt,c9 as nt,ca as ot}from"./index-FBVX6B9S.js";import{d as at,D as it,R as st,N as lt}from"./nav-menu-Tl5mEfRm.js";import{T as ct}from"./Toolbar-yH3XFZuP.js";import{H as Pe}from"./Hidden-mWvmgc4A.js";const te={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function dt(t){return Ve("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const ut=["className","color","enableColorOnDark","position"],pt=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${G(e)}`,`position${G(r)}`]};return Je(o,dt,n)},W=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,ft=Ye(Ge,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${G(r.position)}`],e[`color${G(r.color)}`]]}})(({theme:t,ownerState:e})=>{const r=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return M({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!t.vars&&M({},e.color==="default"&&{backgroundColor:r,color:t.palette.getContrastText(r)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&M({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&M({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:W(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:W(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:W(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:W(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ht=A.forwardRef(function(e,r){const n=Xe({props:e,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=Qe(n,ut),u=M({},n,{color:i,position:l,enableColorOnDark:d}),p=pt(u);return a.jsx(ft,M({square:!0,component:"header",ownerState:u,elevation:4,className:Z(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),gt=ht;function mt(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Oe=A,xt=mt(Oe);function xe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var yt=!!(typeof window<"u"&&window.document&&window.document.createElement);function vt(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=t(d.map(function(p){return p.props})),u.canUseDOM?e(l):r&&(l=r(l))}var u=function(p){bt(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,d=[],y};var m=f.prototype;return m.UNSAFE_componentWillMount=function(){d.push(this),c()},m.componentDidUpdate=function(){c()},m.componentWillUnmount=function(){var y=d.indexOf(this);d.splice(y,1),c()},m.render=function(){return xt.createElement(i,this.props)},f}(Oe.PureComponent);return xe(u,"displayName","SideEffect("+n(i)+")"),xe(u,"canUseDOM",yt),u}}var Tt=vt;const wt=ae(Tt);var At=typeof Element<"u",jt=typeof Map=="function",Et=typeof Set=="function",Ct=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Y(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Y(t[n],e[n]))return!1;return!0}var i;if(jt&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;for(i=t.entries();!(n=i.next()).done;)if(!Y(n.value[1],e.get(n.value[0])))return!1;return!0}if(Et&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(Ct&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;if(At&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&t.$$typeof)&&!Y(t[o[n]],e[o[n]]))return!1;return!0}return t!==t&&e!==e}var Pt=function(e,r){try{return Y(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Ot=ae(Pt);/*
1
+ import{aN as Ve,aM as We,aO as Ye,a7 as Ge,aP as G,aS as M,r as A,aQ as Xe,aR as Qe,j as a,aU as Z,aV as Je,b4 as ae,c5 as Ae,c6 as B,P as s,K as je,M as Ee,c2 as C,a4 as Ze,bz as Ce,aJ as ie,L as X,T as k,b as Ke,aK as et,B as L,c7 as tt,O as se,c8 as rt,c9 as nt,ca as ot}from"./index-FwjymWKs.js";import{d as at,D as it,R as st,N as lt}from"./nav-menu-MsHU6Nrg.js";import{T as ct}from"./Toolbar-VMTR0FH4.js";import{H as Pe}from"./Hidden-85MTYsBc.js";const te={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function dt(t){return Ve("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const ut=["className","color","enableColorOnDark","position"],pt=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${G(e)}`,`position${G(r)}`]};return Je(o,dt,n)},W=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,ft=Ye(Ge,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${G(r.position)}`],e[`color${G(r.color)}`]]}})(({theme:t,ownerState:e})=>{const r=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return M({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!t.vars&&M({},e.color==="default"&&{backgroundColor:r,color:t.palette.getContrastText(r)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&M({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&M({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:W(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:W(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:W(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:W(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ht=A.forwardRef(function(e,r){const n=Xe({props:e,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=Qe(n,ut),u=M({},n,{color:i,position:l,enableColorOnDark:d}),p=pt(u);return a.jsx(ft,M({square:!0,component:"header",ownerState:u,elevation:4,className:Z(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),gt=ht;function mt(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Oe=A,xt=mt(Oe);function xe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var yt=!!(typeof window<"u"&&window.document&&window.document.createElement);function vt(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=t(d.map(function(p){return p.props})),u.canUseDOM?e(l):r&&(l=r(l))}var u=function(p){bt(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,d=[],y};var m=f.prototype;return m.UNSAFE_componentWillMount=function(){d.push(this),c()},m.componentDidUpdate=function(){c()},m.componentWillUnmount=function(){var y=d.indexOf(this);d.splice(y,1),c()},m.render=function(){return xt.createElement(i,this.props)},f}(Oe.PureComponent);return xe(u,"displayName","SideEffect("+n(i)+")"),xe(u,"canUseDOM",yt),u}}var Tt=vt;const wt=ae(Tt);var At=typeof Element<"u",jt=typeof Map=="function",Et=typeof Set=="function",Ct=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Y(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Y(t[n],e[n]))return!1;return!0}var i;if(jt&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;for(i=t.entries();!(n=i.next()).done;)if(!Y(n.value[1],e.get(n.value[0])))return!1;return!0}if(Et&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(Ct&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;if(At&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&t.$$typeof)&&!Y(t[o[n]],e[o[n]]))return!1;return!0}return t!==t&&e!==e}var Pt=function(e,r){try{return Y(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Ot=ae(Pt);/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
@@ -1,2 +1,2 @@
1
- import{b4 as G}from"./index-FBVX6B9S.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
1
+ import{b4 as G}from"./index-FwjymWKs.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
2
2
  `,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function M(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];M(i);for(var a;a=K();)a!==!1&&(i.push(a),M(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function W(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}O.exports=W;O.exports.default=W;var vn=O.exports;const En=G(vn),On={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,Mn as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,On as w};
@@ -1,4 +1,4 @@
1
- import{al as yo,j as t,aO as ce,bR as Co,aS as F,ey as xt,aR as Ne,aM as Ye,aN as Ze,T as Z,r as c,aQ as et,aT as To,aU as He,aV as tt,B as j,S as Ge,P as K,u as Oe,a9 as Me,b9 as _e,bJ as Le,L as re,F as le,dc as Nt,aK as Ue,n as _,G as je,e as vt,x as So,bf as Io,de as wo,$ as ne,c as ot,w as Ae,bU as Ro,bz as Eo,dz as Po,bV as $t,dy as bt,cn as Bt,bT as ze,ez as Dt,bW as No,ce as gt,bP as vo,Q as $o,eA as We,cu as Bo,aJ as Do,ai as Ao,aj as Ke}from"./index-FBVX6B9S.js";import{d as At,_ as Oo}from"./useSetState-qyJ6mTGB.js";import{D as Ot}from"./index-Drj2DsEg.js";import{T as Mt}from"./MoreVert--r4YINap.js";import{W as Mo}from"./did-address-HLejxWfT.js";import{C as _t}from"./confirm-rTEv2cR4.js";import{B as Lt,d as _o}from"./ChevronRight-4XdBuB9J.js";import{_ as Lo}from"./useLocalStorage-UtHo1ezh.js";import{u as Vo}from"./session-UBJotivU.js";import{T as ke}from"./TextField-mvaGVkiG.js";import{M as Qe}from"./InputAdornment-uDUcdmme.js";import{d as kt}from"./Download-6axtZJsQ.js";import{d as Fo}from"./DeleteOutline-ldnn034A.js";import{T as zo}from"./index-BG8b7I-X.js";import{c as Vt}from"./index--OWo39zO.js";import{i as Ko}from"./index-kA6bEgMs.js";import{d as Wo}from"./ExpandMore-AjCxxobS.js";import{d as Uo}from"./OpenInNew-UCL6a4s2.js";import{F as Ho}from"./FormControlLabel-RXb6vK7s.js";import{C as qo}from"./Checkbox-E7hRdaZx.js";import"./api-dJ8jWDqQ.js";import{A as Jo}from"./Avatar-phMyiuZN.js";import{f as Je}from"./format-error-wlUtS96P.js";import"./FilterList-2ERNRQaM.js";import"./TableRow-NtkZR5qp.js";import"./FormControl-dd94hWMS.js";import"./useFormControl-pwVb7wu_.js";import"./FormGroup--UBs69R8.js";import"./InputLabel-TPtinWuK.js";import"./Select-S9JKyZyg.js";import"./LastPage-JHHCVMPH.js";import"./Toolbar-yH3XFZuP.js";import"./index-pXkIJMvn.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Grid-xUYHRi0b.js";import"./Search-iVqmV6Op.js";import"./DialogContentText-GOi1cMCU.js";import"./Alert-CVBj6K_x.js";const Xo=yo(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Go=["slots","slotProps"],Qo=ce(Co)(({theme:e})=>F({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":F({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":F({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:xt(e.palette.grey[200],.12)}:{backgroundColor:xt(e.palette.grey[600],.12)})})),Yo=ce(Xo)({width:24,height:16});function Zo(e){const{slots:n={},slotProps:r={}}=e,l=Ne(e,Go),m=e;return t.jsx("li",{children:t.jsx(Qo,F({focusRipple:!0},l,{ownerState:m,children:t.jsx(Yo,F({as:n.CollapsedIcon,ownerState:m},r.collapsedIcon))}))})}function es(e){return Ze("MuiBreadcrumbs",e)}const ts=Ye("MuiBreadcrumbs",["root","ol","li","separator"]),os=ts,ss=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ns=e=>{const{classes:n}=e;return tt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},es,n)},rs=ce(Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,n)=>[{[`& .${os.li}`]:n.li},n.root]})({}),ls=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,n)=>n.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),as=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,n)=>n.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function is(e,n,r,l){return e.reduce((m,d,b)=>(b<e.length-1?m=m.concat(d,t.jsx(as,{"aria-hidden":!0,className:n,ownerState:l,children:r},`separator-${b}`)):m.push(d),m),[])}const cs=c.forwardRef(function(n,r){const l=et({props:n,name:"MuiBreadcrumbs"}),{children:m,className:d,component:b="nav",slots:u={},slotProps:y={},expandText:g="Show path",itemsAfterCollapse:S=1,itemsBeforeCollapse:I=1,maxItems:E=8,separator:i="/"}=l,k=Ne(l,ss),[a,C]=c.useState(!1),$=F({},l,{component:b,expanded:a,expandText:g,itemsAfterCollapse:S,itemsBeforeCollapse:I,maxItems:E,separator:i}),B=ns($),p=To({elementType:u.CollapsedIcon,externalSlotProps:y.collapsedIcon,ownerState:$}),w=c.useRef(null),W=N=>{const U=()=>{C(!0);const ee=w.current.querySelector("a[href],button,[tabindex]");ee&&ee.focus()};return I+S>=N.length?N:[...N.slice(0,I),t.jsx(Zo,{"aria-label":g,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:p},onClick:U},"ellipsis"),...N.slice(N.length-S,N.length)]},h=c.Children.toArray(m).filter(N=>c.isValidElement(N)).map((N,U)=>t.jsx("li",{className:B.li,children:N},`child-${U}`));return t.jsx(rs,F({ref:r,component:b,color:"text.secondary",className:He(B.root,d),ownerState:$},k,{children:t.jsx(ls,{className:B.ol,ref:w,ownerState:$,children:is(a||E&&h.length<=E?h:W(h),B.separator,i,$)})}))}),st=cs;function Ve({size:e,...n}){return t.jsx(j,{display:"flex",mt:4,...n,children:t.jsx(Ge,{size:e})})}Ve.propTypes={size:K.number};Ve.defaultProps={size:24};function Ft(){const{t:e,locale:n}=Oe(),{api:r}=Me(),[l,m]=c.useState(!0),{blocklet:d}=_e(),[b,u]=c.useState(null),{componentDid:y=""}=Le(),[g,S]=c.useState(null),I=()=>{r.getProjects({input:{did:d.meta.did,componentDid:y}}).then(a=>{const C=(a==null?void 0:a.projects)||[];m(!1),S(C)}).catch(a=>{m(!1),_.error(a.message)})},E=a=>{u(a)},i=()=>{m(!1);const a=b.id;r.deleteProject({input:{did:d.meta.did,projectId:a}}).then(()=>{m(!1),I(),_.success(e("common.removeSuccess")),u(null)}).catch(C=>{m(!1),_.error(C.message)})};if(c.useEffect(()=>{I()},[]),!g&&l)return t.jsx(Ve,{});if(!g)return null;if(!g.length)return t.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[t.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),t.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const k=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(re,{to:`${C.id}`,children:C.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:a=>t.jsx(Mo,{size:14,responsive:!0,did:a})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:a=>a?t.jsx(Mt,{type:"success",children:a}):""}},y?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:a=>{const C=(d.children||[]).find($=>$.meta.did===a);return C?t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:14,blocklet:C,ancestors:[d]}),t.jsx(j,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:C.meta.title})]},a):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:a=>t.jsx(Nt,{value:Number(a),locale:n})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(j,{display:"flex",children:t.jsx(Ue,{color:"error","aria-label":"delete",onClick:()=>E(C),children:t.jsx(At,{sx:{fontSize:18}})})})}}}].filter(Boolean);return t.jsxs(ds,{children:[t.jsx(j,{sx:{textAlign:"right"},children:t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),t.jsx(Ot,{className:"main-table",locale:n,data:g,columns:k,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),b&&t.jsx(_t,{title:`${e("common.delete")} ${b.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:i,onCancel:()=>u(null)})]})}Ft.propTypes={};const ds=je(j)`
1
+ import{al as yo,j as t,aO as ce,bR as Co,aS as F,ey as xt,aR as Ne,aM as Ye,aN as Ze,T as Z,r as c,aQ as et,aT as To,aU as He,aV as tt,B as j,S as Ge,P as K,u as Oe,a9 as Me,b9 as _e,bJ as Le,L as re,F as le,dc as Nt,aK as Ue,n as _,G as je,e as vt,x as So,bf as Io,de as wo,$ as ne,c as ot,w as Ae,bU as Ro,bz as Eo,dz as Po,bV as $t,dy as bt,cn as Bt,bT as ze,ez as Dt,bW as No,ce as gt,bP as vo,Q as $o,eA as We,cu as Bo,aJ as Do,ai as Ao,aj as Ke}from"./index-FwjymWKs.js";import{d as At,_ as Oo}from"./useSetState--uFjPInN.js";import{D as Ot}from"./index-VrHUjlIO.js";import{T as Mt}from"./MoreVert-js_otO_B.js";import{W as Mo}from"./did-address-qq_1T5l2.js";import{C as _t}from"./confirm-sh5q1a0n.js";import{B as Lt,d as _o}from"./ChevronRight-969UYibA.js";import{_ as Lo}from"./useLocalStorage-aXh_Rj3q.js";import{u as Vo}from"./session-JrxJoUmO.js";import{T as ke}from"./TextField-_iwvPvON.js";import{M as Qe}from"./InputAdornment-DqlpUqnE.js";import{d as kt}from"./Download-dvlwhMcC.js";import{d as Fo}from"./DeleteOutline-VKfxyMcW.js";import{T as zo}from"./index-Ro3Si39i.js";import{c as Vt}from"./index-HhHxxbfK.js";import{i as Ko}from"./index-XSoLlKHE.js";import{d as Wo}from"./ExpandMore-IA-2iaem.js";import{d as Uo}from"./OpenInNew-LA_Vftw3.js";import{F as Ho}from"./FormControlLabel--DtAy8ru.js";import{C as qo}from"./Checkbox-6b2Wxw9o.js";import"./api-KhkAYAK1.js";import{A as Jo}from"./Avatar-40UryW2V.js";import{f as Je}from"./format-error-AwlVbqQ_.js";import"./FilterList-qFkuKu0i.js";import"./TableRow-g8XooIYl.js";import"./FormControl-hdLaFfly.js";import"./useFormControl-1XPmGFai.js";import"./FormGroup-uAQ93T09.js";import"./InputLabel-NZgDieHH.js";import"./Select-kt7kYpdf.js";import"./LastPage-8I3Fk9_4.js";import"./Toolbar-VMTR0FH4.js";import"./index-usQGF3Hd.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Grid-W1BkY5Ap.js";import"./Search-TiKYSEXg.js";import"./DialogContentText-IKkXjwY4.js";import"./Alert-msfMnXoL.js";const Xo=yo(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Go=["slots","slotProps"],Qo=ce(Co)(({theme:e})=>F({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":F({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":F({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:xt(e.palette.grey[200],.12)}:{backgroundColor:xt(e.palette.grey[600],.12)})})),Yo=ce(Xo)({width:24,height:16});function Zo(e){const{slots:n={},slotProps:r={}}=e,l=Ne(e,Go),m=e;return t.jsx("li",{children:t.jsx(Qo,F({focusRipple:!0},l,{ownerState:m,children:t.jsx(Yo,F({as:n.CollapsedIcon,ownerState:m},r.collapsedIcon))}))})}function es(e){return Ze("MuiBreadcrumbs",e)}const ts=Ye("MuiBreadcrumbs",["root","ol","li","separator"]),os=ts,ss=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ns=e=>{const{classes:n}=e;return tt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},es,n)},rs=ce(Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,n)=>[{[`& .${os.li}`]:n.li},n.root]})({}),ls=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,n)=>n.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),as=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,n)=>n.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function is(e,n,r,l){return e.reduce((m,d,b)=>(b<e.length-1?m=m.concat(d,t.jsx(as,{"aria-hidden":!0,className:n,ownerState:l,children:r},`separator-${b}`)):m.push(d),m),[])}const cs=c.forwardRef(function(n,r){const l=et({props:n,name:"MuiBreadcrumbs"}),{children:m,className:d,component:b="nav",slots:u={},slotProps:y={},expandText:g="Show path",itemsAfterCollapse:S=1,itemsBeforeCollapse:I=1,maxItems:E=8,separator:i="/"}=l,k=Ne(l,ss),[a,C]=c.useState(!1),$=F({},l,{component:b,expanded:a,expandText:g,itemsAfterCollapse:S,itemsBeforeCollapse:I,maxItems:E,separator:i}),B=ns($),p=To({elementType:u.CollapsedIcon,externalSlotProps:y.collapsedIcon,ownerState:$}),w=c.useRef(null),W=N=>{const U=()=>{C(!0);const ee=w.current.querySelector("a[href],button,[tabindex]");ee&&ee.focus()};return I+S>=N.length?N:[...N.slice(0,I),t.jsx(Zo,{"aria-label":g,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:p},onClick:U},"ellipsis"),...N.slice(N.length-S,N.length)]},h=c.Children.toArray(m).filter(N=>c.isValidElement(N)).map((N,U)=>t.jsx("li",{className:B.li,children:N},`child-${U}`));return t.jsx(rs,F({ref:r,component:b,color:"text.secondary",className:He(B.root,d),ownerState:$},k,{children:t.jsx(ls,{className:B.ol,ref:w,ownerState:$,children:is(a||E&&h.length<=E?h:W(h),B.separator,i,$)})}))}),st=cs;function Ve({size:e,...n}){return t.jsx(j,{display:"flex",mt:4,...n,children:t.jsx(Ge,{size:e})})}Ve.propTypes={size:K.number};Ve.defaultProps={size:24};function Ft(){const{t:e,locale:n}=Oe(),{api:r}=Me(),[l,m]=c.useState(!0),{blocklet:d}=_e(),[b,u]=c.useState(null),{componentDid:y=""}=Le(),[g,S]=c.useState(null),I=()=>{r.getProjects({input:{did:d.meta.did,componentDid:y}}).then(a=>{const C=(a==null?void 0:a.projects)||[];m(!1),S(C)}).catch(a=>{m(!1),_.error(a.message)})},E=a=>{u(a)},i=()=>{m(!1);const a=b.id;r.deleteProject({input:{did:d.meta.did,projectId:a}}).then(()=>{m(!1),I(),_.success(e("common.removeSuccess")),u(null)}).catch(C=>{m(!1),_.error(C.message)})};if(c.useEffect(()=>{I()},[]),!g&&l)return t.jsx(Ve,{});if(!g)return null;if(!g.length)return t.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[t.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),t.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const k=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(re,{to:`${C.id}`,children:C.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:a=>t.jsx(Mo,{size:14,responsive:!0,did:a})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:a=>a?t.jsx(Mt,{type:"success",children:a}):""}},y?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:a=>{const C=(d.children||[]).find($=>$.meta.did===a);return C?t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:14,blocklet:C,ancestors:[d]}),t.jsx(j,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:C.meta.title})]},a):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:a=>t.jsx(Nt,{value:Number(a),locale:n})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(j,{display:"flex",children:t.jsx(Ue,{color:"error","aria-label":"delete",onClick:()=>E(C),children:t.jsx(At,{sx:{fontSize:18}})})})}}}].filter(Boolean);return t.jsxs(ds,{children:[t.jsx(j,{sx:{textAlign:"right"},children:t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),t.jsx(Ot,{className:"main-table",locale:n,data:g,columns:k,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),b&&t.jsx(_t,{title:`${e("common.delete")} ${b.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:i,onCancel:()=>u(null)})]})}Ft.propTypes={};const ds=je(j)`
2
2
  .main-table > div:first-child {
3
3
  display: none;
4
4
  }
@@ -110,7 +110,7 @@ import{al as yo,j as t,aO as ce,bR as Co,aS as F,ey as xt,aR as Ne,aM as Ye,aN a
110
110
  background: #fff;
111
111
  z-index: 10;
112
112
  }
113
- `,wt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],Rt=1024*1024*10,Et=c.lazy(()=>$o(()=>import("./react-0H7F4HJd.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Uploader}))),Ws=(e,n,r)=>{const l=[];return e.blockletTitle||l.push({param:"blockletTitle",message:r("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?We.valid(e.blockletVersion)||l.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):l.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.noVersion")}),n===ne.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||l.push({param:"blockletDescription",message:r("blocklet.publish.errorTip.noDescription")}),e.note||l.push({param:"note",message:r("blocklet.publish.errorTip.noNote")})),l.length?l:null},Us=({tabs:e,blocklet:n,ancestors:r=[]})=>{const l=n.meta.did;e.push({label:t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:24,blocklet:n,ancestors:r}),t.jsx(j,{ml:"4px",className:"text",children:t.jsx(j,{children:n.meta.title})})]},l),value:l})},Pt=e=>{const n=Bo(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","note"]);return n.blockletScreenshots||(n.blockletScreenshots=[]),n};function dt({...e}){var O,Q,G;const n=vt(),{projectId:r,releaseId:l,componentDid:m}=Le(),{t:d}=Oe(),{blocklet:b}=_e(),[u,y]=Oo(null),[g,S]=c.useState({}),[I,E]=c.useState(!1),[i,k]=c.useState(!1),[a,C]=c.useState(null),{api:$}=Me(),B=c.useRef(null),p=c.useRef(null),w=l==="create"?"":l,W=l==="create"?"create":"edit",h=[],N=((b==null?void 0:b.children)||[]).filter(x=>{var v;return(v=x.meta.resource)==null?void 0:v.exportApi}).filter(x=>!m||x.meta.did===m);N.forEach(x=>{Us({tabs:h,blocklet:x,t:d,ancestors:[b]})});const[U,ee]=c.useState((O=h[0])==null?void 0:O.value),ae=(a==null?void 0:a.status)==="published",z=ae,de=()=>{$.getProject({input:{did:b.meta.did,projectId:r}}).then(x=>{E(!1);const v=x.project||{};v.blockletVersion?We.valid(v.blockletVersion)&&(v.blockletVersion=We.inc(v.blockletVersion,"patch")):v.blockletVersion="1.0.0",y(Pt(v))}).catch(x=>{E(!1),_.error(Je(x))})},ue=()=>{$.getRelease({input:{did:b.meta.did,projectId:r,releaseId:w}}).then(x=>{E(!1),y(Pt(x==null?void 0:x.release)),C(x==null?void 0:x.release)}).catch(x=>{E(!1),_.error(Je(x))})},pe=c.useCallback(()=>{if(W==="edit"){if(!w){_.error("Empty release id");return}ue()}W==="create"&&de()},[W,w]);c.useEffect(()=>{pe()},[pe]);const ye=x=>{const v=Ws(u,x,d);if(v){_.error(v.map(L=>L.message).join("; ")),S(v.reduce((L,H)=>({...L,[H.param]:H.message}),{}));return}const M={...u};if(M.blockletVersion=We.valid(M.blockletVersion),!M.blockletVersion){_.error("Invalid Blocklet Version"),S({blockletVersion:"Invalid Blocklet Version"});return}M.blockletTitle=(M.blockletTitle||"").trim(),M.blockletDescription=(M.blockletDescription||"").trim(),M.blockletIntroduction=(M.blockletIntroduction||"").trim(),M.note=(M.note||"").trim(),k(x),E(!0),$.createRelease({input:{...M,did:b.meta.did,projectId:r,releaseId:w,status:x}}).then(L=>{var H;if(k(!1),E(!1),x==="draft"?_.success(d("blocklet.publish.saveDraftSuccess")):_.success(d("blocklet.publish.createReleaseSuccess")),W==="create"){const Te=(H=L==null?void 0:L.release)==null?void 0:H.id;n(`../${r}/${Te}`,{replace:!0})}else ue()}).catch(L=>{k(!1),E(!1);const H=Je(L);_.error(H),/resource.*empty/.test(H)&&S({blockletResource:H})})};if(!u&&I)return t.jsx(Ve,{});if(!u)return null;const ie=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/logo/upload`,fe=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/screenshot/upload`,te=u!=null&&u.blockletLogo?`${ie}/${u.blockletLogo}`:`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,oe=((u==null?void 0:u.blockletScreenshots)||[]).filter(Boolean).map(x=>`${fe}/${x}`),we=N.find(x=>x.meta.did===U),R=we?t.jsx(j,{children:t.jsx(ct,{error:g.blockletResource,app:b,component:we,projectId:r,release:{...a,id:w},onSave:x=>{x.length&&S({blockletResource:""})}})}):t.jsx(j,{display:"flex",mt:-3,children:t.jsx(vo,{children:d("common.empty")})}),Ce=x=>{ee(x)};return t.jsxs(Hs,{...e,children:[t.jsxs(j,{className:"sticky-header",children:[t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"../",children:d("common.publish")}),t.jsx(re,{to:`../${r}`,children:(u==null?void 0:u.blockletTitle)||"Blocklet"}),t.jsx(Z,{color:"text.primary",children:W==="create"?d("common.create"):(u==null?void 0:u.blockletVersion)||d("common.edit")})]}),t.jsxs(j,{display:"flex",children:[!ae&&t.jsxs(t.Fragment,{children:[t.jsxs(le,{variant:"outlined",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[i===ne.PROJECT.RELEASE_STATUS.draft&&t.jsx(Ge,{size:14,sx:{mr:.5}}),d("blocklet.publish.saveDraft")]}),t.jsxs(le,{variant:"contained",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.published),children:[i===ne.PROJECT.RELEASE_STATUS.published&&t.jsx(Ge,{size:14,sx:{mr:.5},color:"inherit"}),d("common.release")]})]}),ae&&t.jsx(le,{variant:"contained",children:t.jsx("a",{href:ot(`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/${w}/download/${(a.files||[])[0]}`),children:d("common.download")})})]})]}),t.jsxs(j,{pt:3,children:[t.jsxs(j,{display:"flex",className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.productTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{label:`Blocklet ${d("common.title")}`,placeholder:`Blocklet ${d("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:u.blockletTitle||"",onChange:x=>{S({blockletTitle:""}),y({blockletTitle:x.target.value})},error:!!g.blockletTitle,helperText:g.blockletTitle||""}),t.jsx(ke,{label:`Blocklet ${d("common.description")}`,placeholder:`Blocklet ${d("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:z},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletDescription||"",onChange:x=>{S({blockletDescription:""}),y({blockletDescription:x.target.value})},error:!!g.blockletDescription,helperText:g.blockletDescription||"",sx:{mt:3}}),t.jsx(ke,{label:`Blocklet ${d("common.introduction")}`,placeholder:`Blocklet ${d("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:z,endAdornment:t.jsxs(Qe,{position:"end",children:[((Q=u==null?void 0:u.blockletIntroduction)==null?void 0:Q.length)||0," / ",ne.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:u.blockletIntroduction||"",onChange:x=>{S({blockletIntroduction:""}),y({blockletIntroduction:x.target.value.slice(0,ne.PROJECT.MAX_INTRO_LENGTH)})},error:!!g.blockletIntroduction,helperText:g.blockletIntroduction||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.versionTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{required:!0,label:`Blocklet ${d("common.version")}`,placeholder:`Blocklet ${d("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletVersion,onChange:x=>{S({blockletVersion:""}),y({blockletVersion:x.target.value})},error:!!g.blockletVersion,helperText:g.blockletVersion||""}),t.jsx(ke,{label:d("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:z,endAdornment:t.jsxs(Qe,{position:"end",children:[((G=u==null?void 0:u.note)==null?void 0:G.length)||0," / ",ne.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:u.note,onChange:x=>{S({note:""}),y({note:x.target.value.slice(0,ne.PROJECT.MAX_NOTE_LENGTH)})},error:!!g.note,helperText:g.note||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.imgTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsxs(j,{display:"flex",children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.logo")}),t.jsx(j,{sx:{flex:1,cursor:z?"default":"pointer"},children:t.jsx(Jo,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:te,onClick:()=>!z&&B.current.open()})})]}),t.jsxs(j,{display:"flex",mt:3,children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.screenshot")}),t.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[oe.map((x,v)=>t.jsxs(j,{className:"screenshot",children:[t.jsx("img",{alt:"screenshot",src:x}),!z&&t.jsx(Ue,{className:"action",onClick:()=>{const M=[...u.blockletScreenshots];M.splice(v,1),y({blockletScreenshots:M})},children:t.jsx(Fo,{})})]})),oe.length<5&&t.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:z?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!z&&p.current.open(),children:"+"})]})]})]}),t.jsx(Et,{id:"​uploader-logo",ref:B,popup:!0,onUploadFinish:x=>{y({blockletLogo:x.data.filename}),B.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:ie,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:1}}},"uploader-logo"),t.jsx(Et,{id:"​uploader-screenshot",ref:p,popup:!0,onUploadFinish:x=>{var M;const v=u.blockletScreenshots||[];v.push((M=x.data)==null?void 0:M.filename),y({blockletScreenshots:v}),p.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:fe,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:5-oe.length}}},"uploader-screenshot")]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(j,{className:"left",children:t.jsx(Z,{variant:"h3",children:d("blocklet.publish.resourceTitle")})}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(zo,{tabs:h,current:U,onChange:Ce,sx:{ml:-2,mt:-1.5}}),t.jsx(j,{children:R})]})]})]})]})}dt.propTypes={};dt.defaultProps={};const Hs=je.div`
113
+ `,wt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],Rt=1024*1024*10,Et=c.lazy(()=>$o(()=>import("./react-xqSM7B89.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Uploader}))),Ws=(e,n,r)=>{const l=[];return e.blockletTitle||l.push({param:"blockletTitle",message:r("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?We.valid(e.blockletVersion)||l.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):l.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.noVersion")}),n===ne.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||l.push({param:"blockletDescription",message:r("blocklet.publish.errorTip.noDescription")}),e.note||l.push({param:"note",message:r("blocklet.publish.errorTip.noNote")})),l.length?l:null},Us=({tabs:e,blocklet:n,ancestors:r=[]})=>{const l=n.meta.did;e.push({label:t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:24,blocklet:n,ancestors:r}),t.jsx(j,{ml:"4px",className:"text",children:t.jsx(j,{children:n.meta.title})})]},l),value:l})},Pt=e=>{const n=Bo(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","note"]);return n.blockletScreenshots||(n.blockletScreenshots=[]),n};function dt({...e}){var O,Q,G;const n=vt(),{projectId:r,releaseId:l,componentDid:m}=Le(),{t:d}=Oe(),{blocklet:b}=_e(),[u,y]=Oo(null),[g,S]=c.useState({}),[I,E]=c.useState(!1),[i,k]=c.useState(!1),[a,C]=c.useState(null),{api:$}=Me(),B=c.useRef(null),p=c.useRef(null),w=l==="create"?"":l,W=l==="create"?"create":"edit",h=[],N=((b==null?void 0:b.children)||[]).filter(x=>{var v;return(v=x.meta.resource)==null?void 0:v.exportApi}).filter(x=>!m||x.meta.did===m);N.forEach(x=>{Us({tabs:h,blocklet:x,t:d,ancestors:[b]})});const[U,ee]=c.useState((O=h[0])==null?void 0:O.value),ae=(a==null?void 0:a.status)==="published",z=ae,de=()=>{$.getProject({input:{did:b.meta.did,projectId:r}}).then(x=>{E(!1);const v=x.project||{};v.blockletVersion?We.valid(v.blockletVersion)&&(v.blockletVersion=We.inc(v.blockletVersion,"patch")):v.blockletVersion="1.0.0",y(Pt(v))}).catch(x=>{E(!1),_.error(Je(x))})},ue=()=>{$.getRelease({input:{did:b.meta.did,projectId:r,releaseId:w}}).then(x=>{E(!1),y(Pt(x==null?void 0:x.release)),C(x==null?void 0:x.release)}).catch(x=>{E(!1),_.error(Je(x))})},pe=c.useCallback(()=>{if(W==="edit"){if(!w){_.error("Empty release id");return}ue()}W==="create"&&de()},[W,w]);c.useEffect(()=>{pe()},[pe]);const ye=x=>{const v=Ws(u,x,d);if(v){_.error(v.map(L=>L.message).join("; ")),S(v.reduce((L,H)=>({...L,[H.param]:H.message}),{}));return}const M={...u};if(M.blockletVersion=We.valid(M.blockletVersion),!M.blockletVersion){_.error("Invalid Blocklet Version"),S({blockletVersion:"Invalid Blocklet Version"});return}M.blockletTitle=(M.blockletTitle||"").trim(),M.blockletDescription=(M.blockletDescription||"").trim(),M.blockletIntroduction=(M.blockletIntroduction||"").trim(),M.note=(M.note||"").trim(),k(x),E(!0),$.createRelease({input:{...M,did:b.meta.did,projectId:r,releaseId:w,status:x}}).then(L=>{var H;if(k(!1),E(!1),x==="draft"?_.success(d("blocklet.publish.saveDraftSuccess")):_.success(d("blocklet.publish.createReleaseSuccess")),W==="create"){const Te=(H=L==null?void 0:L.release)==null?void 0:H.id;n(`../${r}/${Te}`,{replace:!0})}else ue()}).catch(L=>{k(!1),E(!1);const H=Je(L);_.error(H),/resource.*empty/.test(H)&&S({blockletResource:H})})};if(!u&&I)return t.jsx(Ve,{});if(!u)return null;const ie=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/logo/upload`,fe=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/screenshot/upload`,te=u!=null&&u.blockletLogo?`${ie}/${u.blockletLogo}`:`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,oe=((u==null?void 0:u.blockletScreenshots)||[]).filter(Boolean).map(x=>`${fe}/${x}`),we=N.find(x=>x.meta.did===U),R=we?t.jsx(j,{children:t.jsx(ct,{error:g.blockletResource,app:b,component:we,projectId:r,release:{...a,id:w},onSave:x=>{x.length&&S({blockletResource:""})}})}):t.jsx(j,{display:"flex",mt:-3,children:t.jsx(vo,{children:d("common.empty")})}),Ce=x=>{ee(x)};return t.jsxs(Hs,{...e,children:[t.jsxs(j,{className:"sticky-header",children:[t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"../",children:d("common.publish")}),t.jsx(re,{to:`../${r}`,children:(u==null?void 0:u.blockletTitle)||"Blocklet"}),t.jsx(Z,{color:"text.primary",children:W==="create"?d("common.create"):(u==null?void 0:u.blockletVersion)||d("common.edit")})]}),t.jsxs(j,{display:"flex",children:[!ae&&t.jsxs(t.Fragment,{children:[t.jsxs(le,{variant:"outlined",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[i===ne.PROJECT.RELEASE_STATUS.draft&&t.jsx(Ge,{size:14,sx:{mr:.5}}),d("blocklet.publish.saveDraft")]}),t.jsxs(le,{variant:"contained",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.published),children:[i===ne.PROJECT.RELEASE_STATUS.published&&t.jsx(Ge,{size:14,sx:{mr:.5},color:"inherit"}),d("common.release")]})]}),ae&&t.jsx(le,{variant:"contained",children:t.jsx("a",{href:ot(`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/${w}/download/${(a.files||[])[0]}`),children:d("common.download")})})]})]}),t.jsxs(j,{pt:3,children:[t.jsxs(j,{display:"flex",className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.productTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{label:`Blocklet ${d("common.title")}`,placeholder:`Blocklet ${d("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:u.blockletTitle||"",onChange:x=>{S({blockletTitle:""}),y({blockletTitle:x.target.value})},error:!!g.blockletTitle,helperText:g.blockletTitle||""}),t.jsx(ke,{label:`Blocklet ${d("common.description")}`,placeholder:`Blocklet ${d("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:z},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletDescription||"",onChange:x=>{S({blockletDescription:""}),y({blockletDescription:x.target.value})},error:!!g.blockletDescription,helperText:g.blockletDescription||"",sx:{mt:3}}),t.jsx(ke,{label:`Blocklet ${d("common.introduction")}`,placeholder:`Blocklet ${d("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:z,endAdornment:t.jsxs(Qe,{position:"end",children:[((Q=u==null?void 0:u.blockletIntroduction)==null?void 0:Q.length)||0," / ",ne.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:u.blockletIntroduction||"",onChange:x=>{S({blockletIntroduction:""}),y({blockletIntroduction:x.target.value.slice(0,ne.PROJECT.MAX_INTRO_LENGTH)})},error:!!g.blockletIntroduction,helperText:g.blockletIntroduction||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.versionTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{required:!0,label:`Blocklet ${d("common.version")}`,placeholder:`Blocklet ${d("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletVersion,onChange:x=>{S({blockletVersion:""}),y({blockletVersion:x.target.value})},error:!!g.blockletVersion,helperText:g.blockletVersion||""}),t.jsx(ke,{label:d("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:z,endAdornment:t.jsxs(Qe,{position:"end",children:[((G=u==null?void 0:u.note)==null?void 0:G.length)||0," / ",ne.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:u.note,onChange:x=>{S({note:""}),y({note:x.target.value.slice(0,ne.PROJECT.MAX_NOTE_LENGTH)})},error:!!g.note,helperText:g.note||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.imgTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsxs(j,{display:"flex",children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.logo")}),t.jsx(j,{sx:{flex:1,cursor:z?"default":"pointer"},children:t.jsx(Jo,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:te,onClick:()=>!z&&B.current.open()})})]}),t.jsxs(j,{display:"flex",mt:3,children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.screenshot")}),t.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[oe.map((x,v)=>t.jsxs(j,{className:"screenshot",children:[t.jsx("img",{alt:"screenshot",src:x}),!z&&t.jsx(Ue,{className:"action",onClick:()=>{const M=[...u.blockletScreenshots];M.splice(v,1),y({blockletScreenshots:M})},children:t.jsx(Fo,{})})]})),oe.length<5&&t.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:z?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!z&&p.current.open(),children:"+"})]})]})]}),t.jsx(Et,{id:"​uploader-logo",ref:B,popup:!0,onUploadFinish:x=>{y({blockletLogo:x.data.filename}),B.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:ie,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:1}}},"uploader-logo"),t.jsx(Et,{id:"​uploader-screenshot",ref:p,popup:!0,onUploadFinish:x=>{var M;const v=u.blockletScreenshots||[];v.push((M=x.data)==null?void 0:M.filename),y({blockletScreenshots:v}),p.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:fe,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:5-oe.length}}},"uploader-screenshot")]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(j,{className:"left",children:t.jsx(Z,{variant:"h3",children:d("blocklet.publish.resourceTitle")})}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(zo,{tabs:h,current:U,onChange:Ce,sx:{ml:-2,mt:-1.5}}),t.jsx(j,{children:R})]})]})]})]})}dt.propTypes={};dt.defaultProps={};const Hs=je.div`
114
114
  .sticky-header {
115
115
  margin-top: -12px;
116
116
  padding: 12px 0;
@@ -197,7 +197,7 @@ import{al as yo,j as t,aO as ce,bR as Co,aS as F,ey as xt,aR as Ne,aM as Ye,aN a
197
197
  `;export{qt as default};
198
198
  function __vite__mapDeps(indexes) {
199
199
  if (!__vite__mapDeps.viteFileDeps) {
200
- __vite__mapDeps.viteFileDeps = ["assets/react-0H7F4HJd.js","assets/index-FBVX6B9S.js","assets/index-Fay2ci-b.css","assets/index-K2Ybm2pw.js","assets/preact.module-yJdvQMHZ.js","assets/index-21p4-hlH.js","assets/index--OWo39zO.js","assets/memoize-one.esm-t8vjaxPM.js","assets/uniqBy-ngvp8e0L.js","assets/react-yqGXLqWb.css"]
200
+ __vite__mapDeps.viteFileDeps = ["assets/react-xqSM7B89.js","assets/index-FwjymWKs.js","assets/index-Fay2ci-b.css","assets/index-S9SK_SjL.js","assets/preact.module-yJdvQMHZ.js","assets/index-KULIep2J.js","assets/index-HhHxxbfK.js","assets/memoize-one.esm-SfINFbzL.js","assets/uniqBy-ce2Rut-n.js","assets/react-yqGXLqWb.css"]
201
201
  }
202
202
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
203
203
  }
@@ -1,4 +1,4 @@
1
- import{K as je,M as De,j as n,P as U,G as ge,bC as ts,r as F,c6 as ns,B as p,cd as Sn,bt as Gn,aK as Le,S as ut,u as _e,a9 as de,F as ae,n as te,b9 as pe,w as ye,fz as as,b8 as ss,x as Wn,br as rs,T as vn,fA as is,by as os,am as ze,$ as ne,bB as cs,E as Ee,cP as ls,bO as we,bk as wt,be as Pe,fB as us,fC as ds,b4 as He,cu as st,N as dt,f as W,v as $e,bP as Ht,bf as qn,bz as Ge,Y as Gt,fD as fs,fE as gs,fF as ps,fG as ms,a as Nn,ez as hs,b as Be,aY as bs,aZ as _s,fH as Es,cV as xs,b3 as ys,bQ as Ie,c as Lt,fI as It,dd as Ss,dl as Yn,c2 as vs,cj as ve,cx as Ns,fJ as Zn,q as As}from"./index-FBVX6B9S.js";import{I as Cs}from"./iframe-tVY0Votd.js";import{I as Rs,F as Mt,d as Ts,L as Os,a as ws}from"./Edit-3QDIocJ_.js";import{B as Vn,d as Xn}from"./ChevronRight-4XdBuB9J.js";import{d as Jn}from"./ExpandMore-AjCxxobS.js";import{T as Wt}from"./index-BG8b7I-X.js";import{u as qt,a as Ls,b as Is,c as Ms}from"./dashboard-u9hZyLwN.js";import{d as js}from"./Loop-xAh7ODfS.js";import{d as Ds}from"./Done-QX8JUe6j.js";import{F as ks,R as Ps,L as Et}from"./logo-uploader-zW337Go0.js";import{a as An,A as Bs}from"./Autocomplete-JUBrNs2g.js";import{T as le,F as Fs}from"./TextField-mvaGVkiG.js";import{e as $s}from"./mode-Ip8p6ZjP.js";import{w as Qn,P as Us}from"./permission-hBdmK8vu.js";import{C as ea,a as Ks}from"./confirm-rTEv2cR4.js";import{f as Yt}from"./format-error-wlUtS96P.js";import{_ as zs}from"./useSetState-qyJ6mTGB.js";import{u as Hs}from"./session-UBJotivU.js";import{A as Gs}from"./index-O5NefLt1.js";import{C as Ws}from"./click-to-copy-H6ULFxkd.js";import{F as rt,S as qs}from"./FormControlLabel-RXb6vK7s.js";import{C as ta}from"./Checkbox-E7hRdaZx.js";import{D as Ys}from"./DialogContentText-GOi1cMCU.js";import{S as it,a as Zs}from"./switch-control-X6a6W1Im.js";import{u as Zt,C as ue}from"./index.esm-yzdsIZwH.js";import{u as na}from"./confirm-QgU1_PTp.js";import{F as be}from"./FormControl-dd94hWMS.js";import{d as Vs}from"./Launch-Lgl-88-b.js";import{d as Xs}from"./EditIcon-iEwSDmTg.js";import{A as jt}from"./config-4scj9ePp.js";import{S as Js}from"./Slider-55cYAWYh.js";import{D as Qs}from"./index-Drj2DsEg.js";import{I as er}from"./index-l2b8-RX7.js";import"./index-KIoBUz9b.js";import{i as aa}from"./index-kA6bEgMs.js";import{G as xt}from"./Grid-xUYHRi0b.js";import"./index--CyhSTyx.js";import"./nav-menu-Tl5mEfRm.js";import"./MoreHoriz-CgcL_RUW.js";import"./Toolbar-yH3XFZuP.js";import"./Hidden-mWvmgc4A.js";import"./ArrowDropDown-eyRAz4BW.js";import"./ButtonGroup-WpuCESRm.js";import"./Avatar-phMyiuZN.js";import"./MoreVert--r4YINap.js";import"./useLocalStorage-UtHo1ezh.js";import"./PlayArrow-lHMXu7Pu.js";import"./Alert-CVBj6K_x.js";import"./RadioGroup-7FTePFM-.js";import"./FormGroup--UBs69R8.js";import"./useFormControl-pwVb7wu_.js";import"./spaces-PqbUeoTO.js";import"./api-dJ8jWDqQ.js";import"./fallback-b_zmsVbg.js";import"./wallet-hidden-topbar-bqcwYNs3.js";import"./ListItem-0o0I3uAI.js";import"./selector-MhbaknSB.js";import"./index--OWo39zO.js";import"./Select-S9JKyZyg.js";import"./InputLabel-TPtinWuK.js";import"./useAsync-L140-N35.js";import"./FilterList-2ERNRQaM.js";import"./TableRow-NtkZR5qp.js";import"./LastPage-JHHCVMPH.js";import"./index-pXkIJMvn.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Search-iVqmV6Op.js";var Vt={},tr=De;Object.defineProperty(Vt,"__esModule",{value:!0});var sa=Vt.default=void 0,nr=tr(je()),ar=n,sr=(0,nr.default)((0,ar.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1zM3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1zm10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1zM7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1zm14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1zm-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1z"}),"TuneRounded");sa=Vt.default=sr;var Xt={},rr=De;Object.defineProperty(Xt,"__esModule",{value:!0});var ra=Xt.default=void 0,ir=rr(je()),or=n,cr=(0,ir.default)((0,or.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");ra=Xt.default=cr;var Jt={},lr=De;Object.defineProperty(Jt,"__esModule",{value:!0});var ia=Jt.default=void 0,ur=lr(je()),dr=n,fr=(0,ur.default)((0,dr.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");ia=Jt.default=fr;var Qt={},gr=De;Object.defineProperty(Qt,"__esModule",{value:!0});var oa=Qt.default=void 0,pr=gr(je()),mr=n,hr=(0,pr.default)((0,mr.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsNone");oa=Qt.default=hr;function en({label:e,disabled:t,required:a,initialValue:r,onChange:u,style:c,onSubmit:o,triggers:s,options:i,formatterBeforeSubmit:l,helperText:d,placeholder:E,renderImage:m,renderLabel:_,filterKeys:A,noEmpty:C,...T}){const[$,f]=F.useState(!1),[h,v]=F.useState(!1),[y,L]=ns.useState(""),[M,B]=F.useState(r),[R,b]=F.useState(M),j=F.useMemo(()=>{if(!i)return{};const k={};return i.forEach(g=>{k[g.code]=g}),k},[i]),S=()=>{if(!i)return[];if(!y)return i.map(g=>g.code);const k=new RegExp(y.toLowerCase());return i.filter(g=>{var x;for(let I=0;I<A.length;I++){const K=A[I];if(k.test((x=g[K])==null?void 0:x.toLowerCase()))return!0}return!1}).map(g=>g.code)},O=async()=>{v(!0);try{await o(typeof l=="function"?l(R):R)===!1?b(M):C&&!R.length?(b(r),B(r)):(b(R),B(R))}catch{b(M)}finally{v(!1),f(!1)}},P=(k,g)=>{if(!Array.isArray(g)){b([]),u([]);return}const x=g.filter(I=>j[I]);if(!x.length){b([]),u([]);return}b(x),u(x)},q=$?n.jsx(Bs,{options:i,value:R,onChange:P,inputValue:y,onInputChange:(k,g)=>{L(g)},PopperComponent:_r,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:S,getOptionLabel:k=>{var g;return(g=j[k])==null?void 0:g.name},renderInput:k=>n.jsx(le,{...k,label:"",placeholder:E}),renderOption:(k,g)=>{var I;const x=R.indexOf(g)!==-1;return F.createElement(br,{component:"li",...k,key:g},m(j[g]||{}),n.jsx(p,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:x?"700":"normal"},children:_(g,j[g])||((I=j[g])==null?void 0:I.name)}),n.jsx(p,{component:Sn,sx:{opacity:.5,width:18,height:18},style:{visibility:x?"visible":"hidden"}}))},...T}):n.jsx(p,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter(k=>i.some(g=>g.code===k)).map(k=>n.jsx(Gn,{label:i.find(g=>g.code===k).name,style:{marginRight:8},size:"small"},k))});return n.jsx(ks,{className:"form",style:c,children:n.jsxs(p,{className:"form-item",children:[n.jsxs(p,{className:"form-item-label",children:[e,a&&n.jsx(Ps,{})]}),n.jsxs(p,{className:"form-item-body",children:[n.jsx(p,{className:"form-item-input",children:q}),n.jsx(p,{className:"form-item-action",children:$?n.jsxs(n.Fragment,{children:[n.jsx(Le,{"data-cy":"schema-form-item-confirm",onClick:O,disabled:t||h,size:"large",children:h?n.jsx(ut,{size:24}):n.jsx(Ds,{})}),n.jsx(Le,{"data-cy":"schema-form-item-cancel",onClick:()=>{b(M),f(!1)},disabled:t||h,size:"large",children:n.jsx(Sn,{})})]}):n.jsx(Rs,{triggers:s,onEnterEdit:()=>f(!0),disabled:t})})]}),$&&d&&n.jsx(Fs,{children:d})]})})}en.propTypes={style:U.object,onSubmit:U.func,onChange:U.func,label:U.string,initialValue:U.string,required:U.bool,disabled:U.bool,triggers:U.array,options:U.array,helperText:U.string,formatterBeforeSubmit:U.func,placeholder:U.string,renderImage:U.func,filterKeys:U.arrayOf(U.string),noEmpty:U.bool,renderLabel:U.func};en.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,t)=>"",noEmpty:!1};const br=ge.div`
1
+ import{K as je,M as De,j as n,P as U,G as ge,bC as ts,r as F,c6 as ns,B as p,cd as Sn,bt as Gn,aK as Le,S as ut,u as _e,a9 as de,F as ae,n as te,b9 as pe,w as ye,fz as as,b8 as ss,x as Wn,br as rs,T as vn,fA as is,by as os,am as ze,$ as ne,bB as cs,E as Ee,cP as ls,bO as we,bk as wt,be as Pe,fB as us,fC as ds,b4 as He,cu as st,N as dt,f as W,v as $e,bP as Ht,bf as qn,bz as Ge,Y as Gt,fD as fs,fE as gs,fF as ps,fG as ms,a as Nn,ez as hs,b as Be,aY as bs,aZ as _s,fH as Es,cV as xs,b3 as ys,bQ as Ie,c as Lt,fI as It,dd as Ss,dl as Yn,c2 as vs,cj as ve,cx as Ns,fJ as Zn,q as As}from"./index-FwjymWKs.js";import{I as Cs}from"./iframe-qCWq1lRA.js";import{I as Rs,F as Mt,d as Ts,L as Os,a as ws}from"./Edit-GbCk8hZt.js";import{B as Vn,d as Xn}from"./ChevronRight-969UYibA.js";import{d as Jn}from"./ExpandMore-IA-2iaem.js";import{T as Wt}from"./index-Ro3Si39i.js";import{u as qt,a as Ls,b as Is,c as Ms}from"./dashboard-I5vRXleu.js";import{d as js}from"./Loop--wL6OZAl.js";import{d as Ds}from"./Done-8vU_Upzq.js";import{F as ks,R as Ps,L as Et}from"./logo-uploader-wd-ziphC.js";import{a as An,A as Bs}from"./Autocomplete-vyFefb0T.js";import{T as le,F as Fs}from"./TextField-_iwvPvON.js";import{e as $s}from"./mode-Ip8p6ZjP.js";import{w as Qn,P as Us}from"./permission-z3yQEkWY.js";import{C as ea,a as Ks}from"./confirm-sh5q1a0n.js";import{f as Yt}from"./format-error-AwlVbqQ_.js";import{_ as zs}from"./useSetState--uFjPInN.js";import{u as Hs}from"./session-JrxJoUmO.js";import{A as Gs}from"./index-pYu4WiGr.js";import{C as Ws}from"./click-to-copy-TVTLHTem.js";import{F as rt,S as qs}from"./FormControlLabel--DtAy8ru.js";import{C as ta}from"./Checkbox-6b2Wxw9o.js";import{D as Ys}from"./DialogContentText-IKkXjwY4.js";import{S as it,a as Zs}from"./switch-control-3QoW5jw5.js";import{u as Zt,C as ue}from"./index.esm-sb7FovOt.js";import{u as na}from"./confirm-tcpqKzZB.js";import{F as be}from"./FormControl-hdLaFfly.js";import{d as Vs}from"./Launch-eOQU29xS.js";import{d as Xs}from"./EditIcon-kce6kCKp.js";import{A as jt}from"./config-vlauq037.js";import{S as Js}from"./Slider-a2MsZ4Gl.js";import{D as Qs}from"./index-VrHUjlIO.js";import{I as er}from"./index-k76AZIv6.js";import"./index-kE9Ny3to.js";import{i as aa}from"./index-XSoLlKHE.js";import{G as xt}from"./Grid-W1BkY5Ap.js";import"./index-YpqYtp4Y.js";import"./nav-menu-MsHU6Nrg.js";import"./MoreHoriz-nW6861tu.js";import"./Toolbar-VMTR0FH4.js";import"./Hidden-85MTYsBc.js";import"./ArrowDropDown-u5qE0c6W.js";import"./ButtonGroup-YM9idA0S.js";import"./Avatar-40UryW2V.js";import"./MoreVert-js_otO_B.js";import"./useLocalStorage-aXh_Rj3q.js";import"./PlayArrow-yDXb6jT-.js";import"./Alert-msfMnXoL.js";import"./RadioGroup-q_troyXZ.js";import"./FormGroup-uAQ93T09.js";import"./useFormControl-1XPmGFai.js";import"./spaces-hhM8J11w.js";import"./api-KhkAYAK1.js";import"./fallback-FI7UBCyS.js";import"./wallet-hidden-topbar-UIfeoHPs.js";import"./ListItem-8xgbSCnj.js";import"./selector-F8m6H7ls.js";import"./index-HhHxxbfK.js";import"./Select-kt7kYpdf.js";import"./InputLabel-NZgDieHH.js";import"./useAsync-mbLXKNT9.js";import"./FilterList-qFkuKu0i.js";import"./TableRow-g8XooIYl.js";import"./LastPage-8I3Fk9_4.js";import"./index-usQGF3Hd.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Search-TiKYSEXg.js";var Vt={},tr=De;Object.defineProperty(Vt,"__esModule",{value:!0});var sa=Vt.default=void 0,nr=tr(je()),ar=n,sr=(0,nr.default)((0,ar.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1zM3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1zm10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1zM7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1zm14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1zm-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1z"}),"TuneRounded");sa=Vt.default=sr;var Xt={},rr=De;Object.defineProperty(Xt,"__esModule",{value:!0});var ra=Xt.default=void 0,ir=rr(je()),or=n,cr=(0,ir.default)((0,or.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");ra=Xt.default=cr;var Jt={},lr=De;Object.defineProperty(Jt,"__esModule",{value:!0});var ia=Jt.default=void 0,ur=lr(je()),dr=n,fr=(0,ur.default)((0,dr.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");ia=Jt.default=fr;var Qt={},gr=De;Object.defineProperty(Qt,"__esModule",{value:!0});var oa=Qt.default=void 0,pr=gr(je()),mr=n,hr=(0,pr.default)((0,mr.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsNone");oa=Qt.default=hr;function en({label:e,disabled:t,required:a,initialValue:r,onChange:u,style:c,onSubmit:o,triggers:s,options:i,formatterBeforeSubmit:l,helperText:d,placeholder:E,renderImage:m,renderLabel:_,filterKeys:A,noEmpty:C,...T}){const[$,f]=F.useState(!1),[h,v]=F.useState(!1),[y,L]=ns.useState(""),[M,B]=F.useState(r),[R,b]=F.useState(M),j=F.useMemo(()=>{if(!i)return{};const k={};return i.forEach(g=>{k[g.code]=g}),k},[i]),S=()=>{if(!i)return[];if(!y)return i.map(g=>g.code);const k=new RegExp(y.toLowerCase());return i.filter(g=>{var x;for(let I=0;I<A.length;I++){const K=A[I];if(k.test((x=g[K])==null?void 0:x.toLowerCase()))return!0}return!1}).map(g=>g.code)},O=async()=>{v(!0);try{await o(typeof l=="function"?l(R):R)===!1?b(M):C&&!R.length?(b(r),B(r)):(b(R),B(R))}catch{b(M)}finally{v(!1),f(!1)}},P=(k,g)=>{if(!Array.isArray(g)){b([]),u([]);return}const x=g.filter(I=>j[I]);if(!x.length){b([]),u([]);return}b(x),u(x)},q=$?n.jsx(Bs,{options:i,value:R,onChange:P,inputValue:y,onInputChange:(k,g)=>{L(g)},PopperComponent:_r,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:S,getOptionLabel:k=>{var g;return(g=j[k])==null?void 0:g.name},renderInput:k=>n.jsx(le,{...k,label:"",placeholder:E}),renderOption:(k,g)=>{var I;const x=R.indexOf(g)!==-1;return F.createElement(br,{component:"li",...k,key:g},m(j[g]||{}),n.jsx(p,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:x?"700":"normal"},children:_(g,j[g])||((I=j[g])==null?void 0:I.name)}),n.jsx(p,{component:Sn,sx:{opacity:.5,width:18,height:18},style:{visibility:x?"visible":"hidden"}}))},...T}):n.jsx(p,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter(k=>i.some(g=>g.code===k)).map(k=>n.jsx(Gn,{label:i.find(g=>g.code===k).name,style:{marginRight:8},size:"small"},k))});return n.jsx(ks,{className:"form",style:c,children:n.jsxs(p,{className:"form-item",children:[n.jsxs(p,{className:"form-item-label",children:[e,a&&n.jsx(Ps,{})]}),n.jsxs(p,{className:"form-item-body",children:[n.jsx(p,{className:"form-item-input",children:q}),n.jsx(p,{className:"form-item-action",children:$?n.jsxs(n.Fragment,{children:[n.jsx(Le,{"data-cy":"schema-form-item-confirm",onClick:O,disabled:t||h,size:"large",children:h?n.jsx(ut,{size:24}):n.jsx(Ds,{})}),n.jsx(Le,{"data-cy":"schema-form-item-cancel",onClick:()=>{b(M),f(!1)},disabled:t||h,size:"large",children:n.jsx(Sn,{})})]}):n.jsx(Rs,{triggers:s,onEnterEdit:()=>f(!0),disabled:t})})]}),$&&d&&n.jsx(Fs,{children:d})]})})}en.propTypes={style:U.object,onSubmit:U.func,onChange:U.func,label:U.string,initialValue:U.string,required:U.bool,disabled:U.bool,triggers:U.array,options:U.array,helperText:U.string,formatterBeforeSubmit:U.func,placeholder:U.string,renderImage:U.func,filterKeys:U.arrayOf(U.string),noEmpty:U.bool,renderLabel:U.func};en.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,t)=>"",noEmpty:!1};const br=ge.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{j as r,T as i,P as e,de as c,dN as f,c2 as u}from"./index-FBVX6B9S.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
1
+ import{j as r,T as i,P as e,de as c,dN as f,c2 as u}from"./index-FwjymWKs.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
2
2
  display: flex;
3
3
  flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
4
4
  justify-content: flex-start;