@abtnode/blocklet-services 1.16.23-beta-abdda301 → 1.16.23-beta-035db744

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 (284) hide show
  1. package/api/routes/env.js +8 -0
  2. package/api/routes/user.js +3 -0
  3. package/api/services/dashboard/index.js +1 -1
  4. package/api/services/notification/index.js +1 -1
  5. package/api/services/relay/index.js +1 -1
  6. package/dist/assets/Add-wAhT997v.js +1 -0
  7. package/dist/assets/Avatar-FfLDTS1T.js +1 -0
  8. package/dist/assets/Box-lZ5spsQH.js +1 -0
  9. package/dist/assets/Box-xVyhqbFH.js +1 -0
  10. package/dist/assets/Button-RbtuWDeR.js +1 -0
  11. package/dist/assets/ButtonBase-TSoPFIBe.js +74 -0
  12. package/dist/assets/ButtonBase-WWn27IPV.js +74 -0
  13. package/dist/assets/CardContent-JgOQSc2A.js +1 -0
  14. package/dist/assets/CheckCircle-lrVCqf2n.js +1 -0
  15. package/dist/assets/Checkbox-hUFDjNSc.js +1 -0
  16. package/dist/assets/ChevronLeft-xvl64PGZ.js +1 -0
  17. package/dist/assets/ChevronRight-wrcW9iQD.js +1 -0
  18. package/dist/assets/Chip-7KtYmZN9.js +1 -0
  19. package/dist/assets/CircularProgress-Q4pselFx.js +28 -0
  20. package/dist/assets/Close-SFAKpp5f.js +1 -0
  21. package/dist/assets/Collapse-B9GV1Oit.js +1 -0
  22. package/dist/assets/DeleteOutline-bqcRHaFk.js +1 -0
  23. package/dist/assets/Done-Rmbh35pz.js +1 -0
  24. package/dist/assets/Download-ubfkvcSA.js +1 -0
  25. package/dist/assets/Edit-13YG9S_C.js +1 -0
  26. package/dist/assets/{EditIcon-mE1h5C2Z.js → EditIcon-BFyZg_Io.js} +1 -1
  27. package/dist/assets/ExpandMore-BaF2rZER.js +1 -0
  28. package/dist/assets/ExpandMore-KT3Riu-V.js +1 -0
  29. package/dist/assets/FilterList-A3lP9lXN.js +25 -0
  30. package/dist/assets/{Google-keN4-shv.js → Google-cGngGIlT.js} +4 -4
  31. package/dist/assets/Grid-Ja7ckZan.js +1 -0
  32. package/dist/assets/Grid-lKrAKrf2.js +1 -0
  33. package/dist/assets/Hidden-epK0WlDg.js +1 -0
  34. package/dist/assets/IconButton-2kDl8ha3.js +1 -0
  35. package/dist/assets/IconButton-Bw_740x8.js +74 -0
  36. package/dist/assets/InfoOutlined-ZQ0Ss7Qq.js +1 -0
  37. package/dist/assets/InputAdornment-JJseDebg.js +1 -0
  38. package/dist/assets/InputAdornment-gVGmth-c.js +1 -0
  39. package/dist/assets/InputLabel-E4gynfPT.js +1 -0
  40. package/dist/assets/Launch-0UyPzd-q.js +1 -0
  41. package/dist/assets/Link-QmOupva0.js +1 -0
  42. package/dist/assets/Link-qhTRVvm5.js +1 -0
  43. package/dist/assets/ListItem-cxnU28E5.js +1 -0
  44. package/dist/assets/ListItemText-3DGsMIsc.js +1 -0
  45. package/dist/assets/{LockIcon-u-MEyeJ4.js → LockIcon-ScNYb_CL.js} +1 -1
  46. package/dist/assets/Loop-jlraOZ0y.js +1 -0
  47. package/dist/assets/OpenInNew-QAO3RVjc.js +1 -0
  48. package/dist/assets/Pagination-cc9vbiQH.js +2 -0
  49. package/dist/assets/Paper-kKqGsJ2_.js +1 -0
  50. package/dist/assets/{RevokeIcon-4zvAH67R.js → RevokeIcon-qytdNGtr.js} +1 -1
  51. package/dist/assets/Search-NO0Vj1Jx.js +2 -0
  52. package/dist/assets/Search-OMtIqcCB.js +1 -0
  53. package/dist/assets/Select-CLqvWhqc.js +2 -0
  54. package/dist/assets/{ServerLogo-isi19Tgj.js → ServerLogo-S3ffHW5K.js} +1 -1
  55. package/dist/assets/{Skeleton-gnG2NynL.js → Skeleton-kWPBv3hN.js} +5 -5
  56. package/dist/assets/StepLabel-xaoyvbWL.js +1 -0
  57. package/dist/assets/TextField-w62Tj_bv.js +2 -0
  58. package/dist/assets/TextField-yFSUKkfQ.js +1 -0
  59. package/dist/assets/Toolbar-p2Rw9VP_.js +1 -0
  60. package/dist/assets/Tooltip-a9pLijAX.js +1 -0
  61. package/dist/assets/Typography-4MXIXIgI.js +1 -0
  62. package/dist/assets/Typography-tvdIv5ZI.js +1 -0
  63. package/dist/assets/access-control-pMbwueld.js +13 -0
  64. package/dist/assets/actions-d6S2vs_m.js +1 -0
  65. package/dist/assets/add-component-core-Ixi2anfP.js +1001 -0
  66. package/dist/assets/add-resource-ul54uC2R.js +1 -0
  67. package/dist/assets/addon-jQ_lW5VA.js +31 -0
  68. package/dist/assets/analytics-FnaWc0o9.js +52 -0
  69. package/dist/assets/api-2KA7QvaK.js +1 -0
  70. package/dist/assets/{audit-logs-gy_GiPr1.js → audit-logs-dvdWU6So.js} +4 -4
  71. package/dist/assets/{button-sDNcUZdA.js → button-GVcV-kDi.js} +1 -1
  72. package/dist/assets/{click-to-copy-jP1Jjfmi.js → click-to-copy-0upUV1g8.js} +1 -1
  73. package/dist/assets/complete-jMtkQCKD.js +45 -0
  74. package/dist/assets/{component-mGiUoK4S.js → component-CWQe0NKu.js} +52 -52
  75. package/dist/assets/config-1ig6XAhh.js +1 -0
  76. package/dist/assets/config-navigation-0_7bDd95.js +102 -0
  77. package/dist/assets/config-ne8Y3LYs.js +32 -0
  78. package/dist/assets/{config-space-PPRQ64ov.js → config-space-KB8DhRe0.js} +1 -1
  79. package/dist/assets/confirm-Tyae6_Zc.js +7 -0
  80. package/dist/assets/connect-1QIaxGG0.js +1 -0
  81. package/dist/assets/connect-5SX-6mUN.js +5 -0
  82. package/dist/assets/connect-to-wW4QpEKP.js +54 -0
  83. package/dist/assets/{content-layout-RY8gcl_K.js → content-layout-3EgufeDh.js} +1 -1
  84. package/dist/assets/createStack-jceJWRju.js +1 -0
  85. package/dist/assets/createSvgIcon-TtyKAxsD.js +1 -0
  86. package/dist/assets/createSvgIcon-tFt1ryL0.js +1 -0
  87. package/dist/assets/dashboard-XUsTUl6m.js +134 -0
  88. package/dist/assets/did-address-3FoRRVKx.js +1 -0
  89. package/dist/assets/domain-Ou4FCB7Q.js +9 -0
  90. package/dist/assets/domain-list-uKO7uNWW.js +12 -0
  91. package/dist/assets/exchange-passport-X9HNXxpJ.js +1 -0
  92. package/dist/assets/{fallback-LxCPCLff.js → fallback-79zmcfbz.js} +1 -1
  93. package/dist/assets/formControlState-3f1dynOx.js +1 -0
  94. package/dist/assets/fuel-NHW2abk6.js +32 -0
  95. package/dist/assets/fullpage-gUYOsR-B.js +1 -0
  96. package/dist/assets/home-82LFYu2G.js +1 -0
  97. package/dist/assets/{iframe--iPe_a2f.js → iframe-f6hNs76Z.js} +1 -1
  98. package/dist/assets/{index-nkT_KXMy.js → index--CkleDlS.js} +1 -1
  99. package/dist/assets/index-2x3nG07a.js +201 -0
  100. package/dist/assets/{index-Vhx3FEvR.js → index-575yCkwl.js} +1 -1
  101. package/dist/assets/{index-MxeALFQf.js → index-7R0o6am8.js} +1 -1
  102. package/dist/assets/index-C3Uo8DGF.js +1 -0
  103. package/dist/assets/index-Dgm_SdZp.js +38 -0
  104. package/dist/assets/index-ELElcEqG.js +262 -0
  105. package/dist/assets/index-EuNhIMk-.js +1 -0
  106. package/dist/assets/index-QooYxDDB.js +17 -0
  107. package/dist/assets/{index-MylE_YAh.js → index-UPj3aFBg.js} +1 -1
  108. package/dist/assets/{index-tI696upG.js → index-Wd4YrnM9.js} +239 -329
  109. package/dist/assets/index-WjkFYOnL.js +16 -0
  110. package/dist/assets/{index-E4ZWmyGk.js → index-Z2TAkC1I.js} +1 -1
  111. package/dist/assets/index-ZibHxXIb.js +1 -0
  112. package/dist/assets/{index-z3ODAN3L.js → index-ac-7VxTm.js} +1 -1
  113. package/dist/assets/{index-W37UcQvv.js → index-cC16saNb.js} +25 -25
  114. package/dist/assets/index-dEtDHC5_.js +107 -0
  115. package/dist/assets/{index-WQaB8b9n.js → index-dO0N2FSj.js} +18 -18
  116. package/dist/assets/{index-2nmtaKL_.js → index-eiTVXDI8.js} +7 -7
  117. package/dist/assets/index-eshZ-tWA.js +4 -0
  118. package/dist/assets/{index-zukWofPQ.js → index-gaKMaa0N.js} +2 -2
  119. package/dist/assets/{index-gES45_RI.js → index-ja_Ipmzw.js} +5 -5
  120. package/dist/assets/{index-8pn_hXfi.js → index-jhy8ISuP.js} +7 -7
  121. package/dist/assets/index-jzY_5Mpt.js +1 -0
  122. package/dist/assets/index-k2zXVcXF.js +13 -0
  123. package/dist/assets/{index-bo2FHAot.js → index-oibkouzz.js} +1 -1
  124. package/dist/assets/index-qz_i-v1s.js +232 -0
  125. package/dist/assets/index-xk-W3y0O.js +268 -0
  126. package/dist/assets/index-yQZH21L_.js +1 -0
  127. package/dist/assets/{index.es-i484Hhds.js → index.es-pb4HlLo5.js} +1 -1
  128. package/dist/assets/index.esm-MVO-Yc9O.js +1 -0
  129. package/dist/assets/{invite-Q1WeH466.js → invite-7yOdsQPj.js} +8 -8
  130. package/dist/assets/issue-passport-mz5RdvLm.js +23 -0
  131. package/dist/assets/{jss-plugin-props-sort.esm-FVYd2q-V.js → jss-plugin-props-sort.esm-RZD2YHN-.js} +5 -5
  132. package/dist/assets/{launch-result-message-vav8FvlH.js → launch-result-message-dnUrrccd.js} +1 -1
  133. package/dist/assets/{layout-RSyMpp2D.js → layout-IXZgeuoW.js} +2 -2
  134. package/dist/assets/{list-header-BSBH0zQ3.js → list-header-T8PLjATD.js} +3 -3
  135. package/dist/assets/listItemButtonClasses-ej_0Wd0u.js +1 -0
  136. package/dist/assets/localization-UG7NGJKC.js +1 -0
  137. package/dist/assets/{log-E6fi0KKA.js → log-So71tnEv.js} +9 -9
  138. package/dist/assets/login-z1wY6qap.js +1 -0
  139. package/dist/assets/{logo-uploader-zfDQNUwk.js → logo-uploader-3ZuH123a.js} +5 -5
  140. package/dist/assets/lost-passport-R6oQSaxt.js +169 -0
  141. package/dist/assets/{lottie-_pLPoJ-1.js → lottie-RksaOdGU.js} +1 -1
  142. package/dist/assets/notifications-4fCG9FZ_.js +62 -0
  143. package/dist/assets/overview-B1K4ptrI.js +12 -0
  144. package/dist/assets/{page-header-XDCgljDC.js → page-header-2zyJkZ9E.js} +1 -1
  145. package/dist/assets/permission-DycDqWdA.js +7 -0
  146. package/dist/assets/preferences-k5XbYYxZ.js +1 -0
  147. package/dist/assets/publish-resource-1Zx2Swpb.js +1 -0
  148. package/dist/assets/{react-6q_2_cUd.js → react-5TzuQvhn.js} +3 -3
  149. package/dist/assets/selector-8Gj_YDKP.js +46 -0
  150. package/dist/assets/session-VA6PMO42.js +1 -0
  151. package/dist/assets/setup-y6CbGPfx.js +19 -0
  152. package/dist/assets/slicedToArray-8mFdVgnF.js +2 -0
  153. package/dist/assets/spaces-jG6buFhb.js +1 -0
  154. package/dist/assets/start-sUJoEx0p.js +186 -0
  155. package/dist/assets/step-actions-igJpcln5.js +31 -0
  156. package/dist/assets/studio-nX-Lvt-n.js +6 -0
  157. package/dist/assets/styled-QR9SQDeC.js +1 -0
  158. package/dist/assets/{switch-control-oXc5mNlV.js → switch-control-CzeK8njp.js} +1 -1
  159. package/dist/assets/{toUpper-RvHIoRYk.js → toUpper-3Gzsyh0C.js} +1 -1
  160. package/dist/assets/transfer-9hxkFsSj.js +16 -0
  161. package/dist/assets/{uniqBy-G2UOKHwr.js → uniqBy-p8TICBgq.js} +1 -1
  162. package/dist/assets/unsubscribe-9M-VvMEf.js +1 -0
  163. package/dist/assets/use-blocklet-info-for-connect-did-spaces-3p2Dd823.js +1 -0
  164. package/dist/assets/useAsync-bLl3m9OW.js +1 -0
  165. package/dist/assets/useMediaQuery-HjFmqP7e.js +1 -0
  166. package/dist/assets/useSetState-8hL6FUWi.js +1 -0
  167. package/dist/assets/useSlotProps-XvH7yjDf.js +1 -0
  168. package/dist/assets/useTheme-FGGdIoCP.js +1 -0
  169. package/dist/assets/user-center-GbgTVIf_.js +57 -0
  170. package/dist/assets/util-dDJEMWX7.js +1 -0
  171. package/dist/assets/visuallyHidden-DVicuktI.js +1 -0
  172. package/dist/assets/wrap-locale-DMEY67bd.js +7 -0
  173. package/dist/assets/{zh-fBqPZH6c.js → zh-MG2dbypE.js} +1 -1
  174. package/dist/index.html +1 -1
  175. package/dist/service-worker.js +1 -1
  176. package/package.json +38 -36
  177. package/dist/assets/Add-7g2VVPVn.js +0 -1
  178. package/dist/assets/Alert-J_LOTKGn.js +0 -1
  179. package/dist/assets/ArrowDropDown-w6SQB4Z1.js +0 -1
  180. package/dist/assets/Avatar-xIRaYTfu.js +0 -1
  181. package/dist/assets/ButtonGroup-HB3VSTeB.js +0 -1
  182. package/dist/assets/CardContent-5l4uh4ig.js +0 -1
  183. package/dist/assets/CheckCircle-nSCABwDK.js +0 -1
  184. package/dist/assets/Checkbox-P8vtjjVF.js +0 -1
  185. package/dist/assets/ChevronRight-ZrEi_w6i.js +0 -1
  186. package/dist/assets/CloseOutlined-PTKdbMiF.js +0 -1
  187. package/dist/assets/DeleteOutline-ey3GBCUW.js +0 -1
  188. package/dist/assets/Done-vK5iR6vU.js +0 -1
  189. package/dist/assets/Download-aahJoMlE.js +0 -1
  190. package/dist/assets/Edit-OU0N7xYs.js +0 -1
  191. package/dist/assets/ExpandMore-DBIVxyRD.js +0 -1
  192. package/dist/assets/FilterList-R-AE_GHN.js +0 -25
  193. package/dist/assets/FormControl-6yEJYlS5.js +0 -1
  194. package/dist/assets/FormControlLabel-20HNTqkg.js +0 -1
  195. package/dist/assets/FormGroup-35Eh4cl8.js +0 -1
  196. package/dist/assets/Grid-Q18GgpBs.js +0 -1
  197. package/dist/assets/Hidden-3U4cjY85.js +0 -1
  198. package/dist/assets/Icon-WKt0hv2v.js +0 -1
  199. package/dist/assets/InfoOutlined-GGjNqSSj.js +0 -1
  200. package/dist/assets/InputAdornment-v0Ghs4vA.js +0 -1
  201. package/dist/assets/InputLabel-PDpXpeRG.js +0 -1
  202. package/dist/assets/LastPage-eSVNX9y4.js +0 -1
  203. package/dist/assets/Launch-FTSCmPJ-.js +0 -1
  204. package/dist/assets/LaunchOutlined-5E6LXiE2.js +0 -1
  205. package/dist/assets/ListItem-pLuDtQgS.js +0 -1
  206. package/dist/assets/Loop-e0nOZxTR.js +0 -1
  207. package/dist/assets/MoreHoriz-PuMXq2PC.js +0 -1
  208. package/dist/assets/MoreVert-dCeo9SdV.js +0 -13
  209. package/dist/assets/OpenInNew-2pd62hQ9.js +0 -1
  210. package/dist/assets/Pagination-w5FDsB3B.js +0 -2
  211. package/dist/assets/PlayArrow-Uiau983f.js +0 -1
  212. package/dist/assets/RadioGroup-YCEsD_pu.js +0 -1
  213. package/dist/assets/Search-gz6hDZ_X.js +0 -1
  214. package/dist/assets/Select-M-8Lo2J5.js +0 -2
  215. package/dist/assets/Slider-iEQ0mBzA.js +0 -1
  216. package/dist/assets/Stepper-XYDkJ2KJ.js +0 -1
  217. package/dist/assets/TableRow-k9qE6omq.js +0 -2
  218. package/dist/assets/TextField-6hzePx6A.js +0 -1
  219. package/dist/assets/Toolbar-sSwWYKZs.js +0 -1
  220. package/dist/assets/access-control-k-igQFn7.js +0 -13
  221. package/dist/assets/actions-vPPAeKO_.js +0 -1
  222. package/dist/assets/add-component-core-mNoHl6TM.js +0 -900
  223. package/dist/assets/add-resource-BqkaB-gy.js +0 -1
  224. package/dist/assets/addon-_8k2HI__.js +0 -31
  225. package/dist/assets/analytics-W_LPwJnj.js +0 -52
  226. package/dist/assets/api-ED7jlksD.js +0 -1
  227. package/dist/assets/complete-cr5QM3f0.js +0 -45
  228. package/dist/assets/config-KH6srg17.js +0 -1
  229. package/dist/assets/config-U_F5gU_d.js +0 -32
  230. package/dist/assets/config-navigation-d3bE_bc9.js +0 -25
  231. package/dist/assets/confirm-1yUPPWyO.js +0 -7
  232. package/dist/assets/connect-JblIPNnK.js +0 -5
  233. package/dist/assets/connect-lEBu3S8Z.js +0 -1
  234. package/dist/assets/connect-to-Ec-PR8-d.js +0 -54
  235. package/dist/assets/dashboard-nqR-1NiP.js +0 -134
  236. package/dist/assets/did-address-OD4YOZ2O.js +0 -1
  237. package/dist/assets/domain-K6GMaIw4.js +0 -9
  238. package/dist/assets/domain-list-9GkXg5KQ.js +0 -12
  239. package/dist/assets/exchange-passport-NbW-kRvx.js +0 -1
  240. package/dist/assets/fuel-PLFgTm7J.js +0 -32
  241. package/dist/assets/fullpage-dMf47sgh.js +0 -1
  242. package/dist/assets/home-UZSoxDIO.js +0 -1
  243. package/dist/assets/index-1sYdSjgN.js +0 -54
  244. package/dist/assets/index-DbTtClCr.js +0 -1
  245. package/dist/assets/index-Iq36j3UA.js +0 -4
  246. package/dist/assets/index-Lwmxm_Tf.js +0 -16
  247. package/dist/assets/index-LwwZXnmq.js +0 -1
  248. package/dist/assets/index-PppwoIFB.js +0 -1
  249. package/dist/assets/index-Rean_S2b.js +0 -1
  250. package/dist/assets/index-_pLbqUL4.js +0 -267
  251. package/dist/assets/index-ckNUZNet.js +0 -232
  252. package/dist/assets/index-e6gALx9Q.js +0 -201
  253. package/dist/assets/index-fbLp4t_l.js +0 -38
  254. package/dist/assets/index-pgOqLld_.js +0 -1
  255. package/dist/assets/index-qpt45Jn0.js +0 -17
  256. package/dist/assets/index-zHYp13Ik.js +0 -262
  257. package/dist/assets/index.esm-HfciCOwM.js +0 -1
  258. package/dist/assets/issue-passport-tWWlizy7.js +0 -23
  259. package/dist/assets/localization-Q3LMXTEM.js +0 -1
  260. package/dist/assets/login-aWY-kYPK.js +0 -1
  261. package/dist/assets/lost-passport-wGRDHiL4.js +0 -169
  262. package/dist/assets/notifications-knIU14Bw.js +0 -62
  263. package/dist/assets/overview-7x_asHqV.js +0 -12
  264. package/dist/assets/permission-MnsY9Eps.js +0 -7
  265. package/dist/assets/preferences-vAQvxF7l.js +0 -1
  266. package/dist/assets/publish-resource-K9WG3ef9.js +0 -1
  267. package/dist/assets/selector-1dpe9L67.js +0 -46
  268. package/dist/assets/session-4Q3tQEqQ.js +0 -1
  269. package/dist/assets/setup-xSftcgSH.js +0 -19
  270. package/dist/assets/slicedToArray-Ed16vtYp.js +0 -2
  271. package/dist/assets/spaces--3SmdlJ4.js +0 -1
  272. package/dist/assets/start-bCHKgB-l.js +0 -186
  273. package/dist/assets/step-actions-h70_KUEF.js +0 -31
  274. package/dist/assets/studio-0bYB_8US.js +0 -6
  275. package/dist/assets/transfer-ChTc5bsG.js +0 -16
  276. package/dist/assets/unsubscribe-9GoXYfe0.js +0 -1
  277. package/dist/assets/use-blocklet-info-for-connect-did-spaces-k15NWp1Q.js +0 -1
  278. package/dist/assets/useAsync-y9Q4DzVF.js +0 -1
  279. package/dist/assets/useFormControl-UFbFMiSx.js +0 -1
  280. package/dist/assets/useLocalStorage-Ne-e0YYQ.js +0 -1
  281. package/dist/assets/useSetState-YFQy57cQ.js +0 -1
  282. package/dist/assets/user-center-sD1F8VCv.js +0 -57
  283. package/dist/assets/util-fKfjbPC7.js +0 -1
  284. package/dist/assets/wrap-locale-BDhExX8x.js +0 -7
@@ -0,0 +1 @@
1
+ import{cS as Ze,_ as p,h as G,f as z,Y as X,r as l,aR as q,j as O,bc as ye,cL as Ie,cM as Qe,d3 as ze,cp as fe,aQ as Fe,aT as Le,cO as Ue,a as re,g as se,i as ie,d as $e,co as Je}from"./index-Wd4YrnM9.js";import{T as et,d as tt,s as V,u as ae,r as nt}from"./styled-QR9SQDeC.js";function Te(){const e=Ze(tt);return e[et]||e}const Oe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function We(e){return typeof e=="string"}function ot(e,t,n){return e===void 0||We(e)?t:p({},t,{ownerState:p({},t.ownerState,n)})}function qe(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function rt(e,t,n){return typeof e=="function"?e(t,n):e}function De(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function st(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const y=G(n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),b=p({},n==null?void 0:n.style,r==null?void 0:r.style,o==null?void 0:o.style),M=p({},n,r,o);return y.length>0&&(M.className=y),Object.keys(b).length>0&&(M.style=b),{props:M,internalRef:void 0}}const i=qe(p({},r,o)),c=De(o),u=De(r),d=t(i),g=G(d==null?void 0:d.className,n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),v=p({},d==null?void 0:d.style,n==null?void 0:n.style,r==null?void 0:r.style,o==null?void 0:o.style),C=p({},d,n,u,c);return g.length>0&&(C.className=g),Object.keys(v).length>0&&(C.style=v),{props:C,internalRef:d.ref}}const it=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function oe(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:s=!1}=e,i=z(e,it),c=s?{}:rt(o,r),{props:u,internalRef:d}=st(p({},i,{externalSlotProps:c})),g=X(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return ot(n,p({},u,{ref:g}),r)}const at=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lt(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ct(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function ut(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ct(e))}function dt(e){const t=[],n=[];return Array.from(e.querySelectorAll(at)).forEach((o,r)=>{const s=lt(o);s===-1||!ut(o)||(s===0?t.push(o):n.push({documentOrder:r,tabIndex:s,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function ft(){return!0}function pt(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=dt,isEnabled:i=ft,open:c}=e,u=l.useRef(!1),d=l.useRef(null),g=l.useRef(null),v=l.useRef(null),C=l.useRef(null),y=l.useRef(!1),b=l.useRef(null),M=X(t.ref,b),T=l.useRef(null);l.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),l.useEffect(()=>{if(!c||!b.current)return;const a=q(b.current);return b.current.contains(a.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),y.current&&b.current.focus()),()=>{r||(v.current&&v.current.focus&&(u.current=!0,v.current.focus()),v.current=null)}},[c]),l.useEffect(()=>{if(!c||!b.current)return;const a=q(b.current),f=h=>{T.current=h,!(o||!i()||h.key!=="Tab")&&a.activeElement===b.current&&h.shiftKey&&(u.current=!0,g.current&&g.current.focus())},m=()=>{const h=b.current;if(h===null)return;if(!a.hasFocus()||!i()||u.current){u.current=!1;return}if(h.contains(a.activeElement)||o&&a.activeElement!==d.current&&a.activeElement!==g.current)return;if(a.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!y.current)return;let N=[];if((a.activeElement===d.current||a.activeElement===g.current)&&(N=s(b.current)),N.length>0){var L,$;const j=!!((L=T.current)!=null&&L.shiftKey&&(($=T.current)==null?void 0:$.key)==="Tab"),D=N[0],H=N[N.length-1];typeof D!="string"&&typeof H!="string"&&(j?H.focus():D.focus())}else h.focus()};a.addEventListener("focusin",m),a.addEventListener("keydown",f,!0);const S=setInterval(()=>{a.activeElement&&a.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(S),a.removeEventListener("focusin",m),a.removeEventListener("keydown",f,!0)}},[n,o,r,i,c,s]);const x=a=>{v.current===null&&(v.current=a.relatedTarget),y.current=!0,C.current=a.target;const f=t.props.onFocus;f&&f(a)},F=a=>{v.current===null&&(v.current=a.relatedTarget),y.current=!0};return O.jsxs(l.Fragment,{children:[O.jsx("div",{tabIndex:c?0:-1,onFocus:F,ref:d,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:M,onFocus:x}),O.jsx("div",{tabIndex:c?0:-1,onFocus:F,ref:g,"data-testid":"sentinelEnd"})]})}function ht(e){return typeof e=="function"?e():e}const mt=l.forwardRef(function(t,n){const{children:o,container:r,disablePortal:s=!1}=t,[i,c]=l.useState(null),u=X(l.isValidElement(o)?o.ref:null,n);if(ye(()=>{s||c(ht(r)||document.body)},[r,s]),ye(()=>{if(i&&!s)return Ie(n,i),()=>{Ie(n,null)}},[n,i,s]),s){if(l.isValidElement(o)){const d={ref:u};return l.cloneElement(o,d)}return O.jsx(l.Fragment,{children:o})}return O.jsx(l.Fragment,{children:i&&Qe.createPortal(o,i)})});function vt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ae(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function gt(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function _e(e,t,n,o,r){const s=[t,n,...o];[].forEach.call(e.children,i=>{const c=s.indexOf(i)===-1,u=!gt(i);c&&u&&de(i,r)})}function be(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function bt(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(vt(o)){const i=ze(q(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Ae(o)+i}px`;const c=q(o).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Ae(u)+i}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=q(o).body;else{const i=o.parentElement,c=fe(o);s=(i==null?void 0:i.nodeName)==="HTML"&&c.getComputedStyle(i).overflowY==="scroll"?i:o}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:c})=>{s?i.style.setProperty(c,s):i.style.removeProperty(c)})}}function xt(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Et{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const r=xt(n);_e(n,t.mount,t.modalRef,r,!0);const s=be(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=be(this.containers,s=>s.modals.indexOf(t)!==-1),r=this.containers[o];r.restore||(r.restore=bt(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=be(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[r];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&de(t.modalRef,n),_e(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(r,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&de(i.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Pt(e){return typeof e=="function"?e():e}function yt(e){return e?e.props.hasOwnProperty("in"):!1}const Rt=new Et;function Tt(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:r=Rt,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:c,children:u,onClose:d,open:g,rootRef:v}=e,C=l.useRef({}),y=l.useRef(null),b=l.useRef(null),M=X(b,v),[T,x]=l.useState(!g),F=yt(u);let a=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(a=!1);const f=()=>q(y.current),m=()=>(C.current.modalRef=b.current,C.current.mount=y.current,C.current),S=()=>{r.mount(m(),{disableScrollLock:o}),b.current&&(b.current.scrollTop=0)},h=Fe(()=>{const P=Pt(t)||f().body;r.add(m(),P),b.current&&S()}),N=l.useCallback(()=>r.isTopModal(m()),[r]),L=Fe(P=>{y.current=P,P&&(g&&N()?S():b.current&&de(b.current,a))}),$=l.useCallback(()=>{r.remove(m(),a)},[a,r]);l.useEffect(()=>()=>{$()},[$]),l.useEffect(()=>{g?h():(!F||!s)&&$()},[g,$,F,s,h]);const j=P=>R=>{var A;(A=P.onKeyDown)==null||A.call(P,R),!(R.key!=="Escape"||R.which===229||!N())&&(n||(R.stopPropagation(),d&&d(R,"escapeKeyDown")))},D=P=>R=>{var A;(A=P.onClick)==null||A.call(P,R),R.target===R.currentTarget&&d&&d(R,"backdropClick")};return{getRootProps:(P={})=>{const R=qe(e);delete R.onTransitionEnter,delete R.onTransitionExited;const A=p({},R,P);return p({role:"presentation"},A,{onKeyDown:j(A),ref:M})},getBackdropProps:(P={})=>{const R=P;return p({"aria-hidden":!0},R,{onClick:D(R),open:g})},getTransitionProps:()=>{const P=()=>{x(!1),i&&i()},R=()=>{x(!0),c&&c(),s&&$()};return{onEnter:Le(P,u==null?void 0:u.props.onEnter),onExited:Le(R,u==null?void 0:u.props.onExited)}},rootRef:M,portalRef:L,isTopModal:N,exited:T,hasTransition:F}}const Ge=e=>e.scrollTop;function me(e,t){var n,o;const{timeout:r,easing:s,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(o=i.transitionTimingFunction)!=null?o:typeof s=="object"?s[t.mode]:s,delay:i.transitionDelay}}const St=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Re(e){return`scale(${e}, ${e**2})`}const kt={entering:{opacity:1,transform:Re(1)},entered:{opacity:1,transform:"none"}},xe=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ve=l.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:s,easing:i,in:c,onEnter:u,onEntered:d,onEntering:g,onExit:v,onExited:C,onExiting:y,style:b,timeout:M="auto",TransitionComponent:T=Ue}=t,x=z(t,St),F=l.useRef(),a=l.useRef(),f=Te(),m=l.useRef(null),S=X(m,s.ref,n),h=E=>P=>{if(E){const R=m.current;P===void 0?E(R):E(R,P)}},N=h(g),L=h((E,P)=>{Ge(E);const{duration:R,delay:A,easing:I}=me({style:b,timeout:M,easing:i},{mode:"enter"});let B;M==="auto"?(B=f.transitions.getAutoHeightDuration(E.clientHeight),a.current=B):B=R,E.style.transition=[f.transitions.create("opacity",{duration:B,delay:A}),f.transitions.create("transform",{duration:xe?B:B*.666,delay:A,easing:I})].join(","),u&&u(E,P)}),$=h(d),j=h(y),D=h(E=>{const{duration:P,delay:R,easing:A}=me({style:b,timeout:M,easing:i},{mode:"exit"});let I;M==="auto"?(I=f.transitions.getAutoHeightDuration(E.clientHeight),a.current=I):I=P,E.style.transition=[f.transitions.create("opacity",{duration:I,delay:R}),f.transitions.create("transform",{duration:xe?I:I*.666,delay:xe?R:R||I*.333,easing:A})].join(","),E.style.opacity=0,E.style.transform=Re(.75),v&&v(E)}),H=h(C),k=E=>{M==="auto"&&(F.current=setTimeout(E,a.current||0)),o&&o(m.current,E)};return l.useEffect(()=>()=>{clearTimeout(F.current)},[]),O.jsx(T,p({appear:r,in:c,nodeRef:m,onEnter:L,onEntered:$,onEntering:N,onExit:D,onExited:H,onExiting:j,addEndListener:k,timeout:M==="auto"?null:M},x,{children:(E,P)=>l.cloneElement(s,p({style:p({opacity:0,transform:Re(.75),visibility:E==="exited"&&!c?"hidden":void 0},kt[E],b,s.props.style),ref:S},P))}))});Ve.muiSupportAuto=!0;const Ct=Ve,Mt=l.createContext({}),wt=Mt;function Nt(e){return re("MuiList",e)}se("MuiList",["root","padding","dense","subheader"]);const It=["children","className","component","dense","disablePadding","subheader"],Ft=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return ie({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},Nt,t)},Lt=V("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>p({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),$t=l.forwardRef(function(t,n){const o=ae({props:t,name:"MuiList"}),{children:r,className:s,component:i="ul",dense:c=!1,disablePadding:u=!1,subheader:d}=o,g=z(o,It),v=l.useMemo(()=>({dense:c}),[c]),C=p({},o,{component:i,dense:c,disablePadding:u}),y=Ft(C);return O.jsx(wt.Provider,{value:v,children:O.jsxs(Lt,p({as:i,className:G(y.root,s),ref:n,ownerState:C},g,{children:[d,r]}))})}),Ot=$t,Dt=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ee(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function He(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ye(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ue(e,t,n,o,r,s){let i=!1,c=r(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(i)return!1;i=!0}const u=o?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Ye(c,s)||u)c=r(e,c,n);else return c.focus(),!0}return!1}const At=l.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:s=!1,children:i,className:c,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:g,variant:v="selectedMenu"}=t,C=z(t,Dt),y=l.useRef(null),b=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ye(()=>{r&&y.current.focus()},[r]),l.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(a,f)=>{const m=!y.current.style.width;if(a.clientHeight<y.current.clientHeight&&m){const S=`${ze(q(a))}px`;y.current.style[f.direction==="rtl"?"paddingLeft":"paddingRight"]=S,y.current.style.width=`calc(100% + ${S})`}return y.current}}),[]);const M=a=>{const f=y.current,m=a.key,S=q(f).activeElement;if(m==="ArrowDown")a.preventDefault(),ue(f,S,d,u,Ee);else if(m==="ArrowUp")a.preventDefault(),ue(f,S,d,u,He);else if(m==="Home")a.preventDefault(),ue(f,null,d,u,Ee);else if(m==="End")a.preventDefault(),ue(f,null,d,u,He);else if(m.length===1){const h=b.current,N=m.toLowerCase(),L=performance.now();h.keys.length>0&&(L-h.lastTime>500?(h.keys=[],h.repeating=!0,h.previousKeyMatched=!0):h.repeating&&N!==h.keys[0]&&(h.repeating=!1)),h.lastTime=L,h.keys.push(N);const $=S&&!h.repeating&&Ye(S,h);h.previousKeyMatched&&($||ue(f,S,!1,u,Ee,h))?a.preventDefault():h.previousKeyMatched=!1}g&&g(a)},T=X(y,n);let x=-1;l.Children.forEach(i,(a,f)=>{if(!l.isValidElement(a)){x===f&&(x+=1,x>=i.length&&(x=-1));return}a.props.disabled||(v==="selectedMenu"&&a.props.selected||x===-1)&&(x=f),x===f&&(a.props.disabled||a.props.muiSkipListHighlight||a.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const F=l.Children.map(i,(a,f)=>{if(f===x){const m={};return s&&(m.autoFocus=!0),a.props.tabIndex===void 0&&v==="selectedMenu"&&(m.tabIndex=0),l.cloneElement(a,m)}return a});return O.jsx(Ot,p({role:"menu",ref:T,className:c,onKeyDown:M,tabIndex:r?0:-1},C,{children:F}))}),_t=At,Ht=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],jt={entering:{opacity:1},entered:{opacity:1}},Bt=l.forwardRef(function(t,n){const o=Te(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:c,easing:u,in:d,onEnter:g,onEntered:v,onEntering:C,onExit:y,onExited:b,onExiting:M,style:T,timeout:x=r,TransitionComponent:F=Ue}=t,a=z(t,Ht),f=l.useRef(null),m=X(f,c.ref,n),S=k=>E=>{if(k){const P=f.current;E===void 0?k(P):k(P,E)}},h=S(C),N=S((k,E)=>{Ge(k);const P=me({style:T,timeout:x,easing:u},{mode:"enter"});k.style.webkitTransition=o.transitions.create("opacity",P),k.style.transition=o.transitions.create("opacity",P),g&&g(k,E)}),L=S(v),$=S(M),j=S(k=>{const E=me({style:T,timeout:x,easing:u},{mode:"exit"});k.style.webkitTransition=o.transitions.create("opacity",E),k.style.transition=o.transitions.create("opacity",E),y&&y(k)}),D=S(b),H=k=>{s&&s(f.current,k)};return O.jsx(F,p({appear:i,in:d,nodeRef:f,onEnter:N,onEntered:L,onEntering:h,onExit:j,onExited:D,onExiting:$,addEndListener:H,timeout:x},a,{children:(k,E)=>l.cloneElement(c,p({style:p({opacity:0,visibility:k==="exited"&&!d?"hidden":void 0},jt[k],T,c.props.style),ref:m},E))}))}),Kt=Bt;function zt(e){return re("MuiBackdrop",e)}se("MuiBackdrop",["root","invisible"]);const Ut=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Wt=e=>{const{classes:t,invisible:n}=e;return ie({root:["root",n&&"invisible"]},zt,t)},qt=V("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>p({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Gt=l.forwardRef(function(t,n){var o,r,s;const i=ae({props:t,name:"MuiBackdrop"}),{children:c,className:u,component:d="div",components:g={},componentsProps:v={},invisible:C=!1,open:y,slotProps:b={},slots:M={},TransitionComponent:T=Kt,transitionDuration:x}=i,F=z(i,Ut),a=p({},i,{component:d,invisible:C}),f=Wt(a),m=(o=b.root)!=null?o:v.root;return O.jsx(T,p({in:y,timeout:x},F,{children:O.jsx(qt,p({"aria-hidden":!0},m,{as:(r=(s=M.root)!=null?s:g.Root)!=null?r:d,className:G(f.root,u,m==null?void 0:m.className),ownerState:p({},a,m==null?void 0:m.ownerState),classes:f,ref:n,children:c}))}))}),Vt=Gt;function Yt(e){return re("MuiModal",e)}se("MuiModal",["root","hidden","backdrop"]);const Xt=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Zt=e=>{const{open:t,exited:n,classes:o}=e;return ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Yt,o)},Qt=V("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>p({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Jt=V(Vt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),en=l.forwardRef(function(t,n){var o,r,s,i,c,u;const d=ae({name:"MuiModal",props:t}),{BackdropComponent:g=Jt,BackdropProps:v,className:C,closeAfterTransition:y=!1,children:b,container:M,component:T,components:x={},componentsProps:F={},disableAutoFocus:a=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:S=!1,disableRestoreFocus:h=!1,disableScrollLock:N=!1,hideBackdrop:L=!1,keepMounted:$=!1,onBackdropClick:j,open:D,slotProps:H,slots:k}=d,E=z(d,Xt),P=p({},d,{closeAfterTransition:y,disableAutoFocus:a,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:S,disableRestoreFocus:h,disableScrollLock:N,hideBackdrop:L,keepMounted:$}),{getRootProps:R,getBackdropProps:A,getTransitionProps:I,portalRef:B,isTopModal:pe,exited:U,hasTransition:he}=Tt(p({},P,{rootRef:n})),Z=p({},P,{exited:U}),Y=Zt(Z),Q={};if(b.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:w,onExited:_}=I();Q.onEnter=w,Q.onExited=_}const J=(o=(r=k==null?void 0:k.root)!=null?r:x.Root)!=null?o:Qt,le=(s=(i=k==null?void 0:k.backdrop)!=null?i:x.Backdrop)!=null?s:g,ce=(c=H==null?void 0:H.root)!=null?c:F.root,ee=(u=H==null?void 0:H.backdrop)!=null?u:F.backdrop,ve=oe({elementType:J,externalSlotProps:ce,externalForwardedProps:E,getSlotProps:R,additionalProps:{ref:n,as:T},ownerState:Z,className:G(C,ce==null?void 0:ce.className,Y==null?void 0:Y.root,!Z.open&&Z.exited&&(Y==null?void 0:Y.hidden))}),ge=oe({elementType:le,externalSlotProps:ee,additionalProps:v,getSlotProps:w=>A(p({},w,{onClick:_=>{j&&j(_),w!=null&&w.onClick&&w.onClick(_)}})),className:G(ee==null?void 0:ee.className,v==null?void 0:v.className,Y==null?void 0:Y.backdrop),ownerState:Z});return!$&&!D&&(!he||U)?null:O.jsx(mt,{ref:B,container:M,disablePortal:S,children:O.jsxs(J,p({},ve,{children:[!L&&g?O.jsx(le,p({},ge)):null,O.jsx(pt,{disableEnforceFocus:f,disableAutoFocus:a,disableRestoreFocus:h,isEnabled:pe,open:D,children:l.cloneElement(b,Q)})]}))})}),tn=en;function nn(e){return re("MuiPaper",e)}se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const on=["className","component","elevation","square","variant"],rn=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return ie(s,nn,r)},sn=V("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return p({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&p({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${$e("#fff",Oe(t.elevation))}, ${$e("#fff",Oe(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),an=l.forwardRef(function(t,n){const o=ae({props:t,name:"MuiPaper"}),{className:r,component:s="div",elevation:i=1,square:c=!1,variant:u="elevation"}=o,d=z(o,on),g=p({},o,{component:s,elevation:i,square:c,variant:u}),v=rn(g);return O.jsx(sn,p({as:s,ownerState:g,className:G(v.root,r),ref:n},d))}),ln=an;function cn(e){return re("MuiPopover",e)}se("MuiPopover",["root","paper"]);const un=["onEntering"],dn=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fn=["slotProps"];function je(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Be(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ke(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Pe(e){return typeof e=="function"?e():e}const pn=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"]},cn,t)},hn=V(tn,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xe=V(ln,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mn=l.forwardRef(function(t,n){var o,r,s;const i=ae({props:t,name:"MuiPopover"}),{action:c,anchorEl:u,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:g,anchorReference:v="anchorEl",children:C,className:y,container:b,elevation:M=8,marginThreshold:T=16,open:x,PaperProps:F={},slots:a,slotProps:f,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:S=Ct,transitionDuration:h="auto",TransitionProps:{onEntering:N}={},disableScrollLock:L=!1}=i,$=z(i.TransitionProps,un),j=z(i,dn),D=(o=f==null?void 0:f.paper)!=null?o:F,H=l.useRef(),k=X(H,D.ref),E=p({},i,{anchorOrigin:d,anchorReference:v,elevation:M,marginThreshold:T,externalPaperSlotProps:D,transformOrigin:m,TransitionComponent:S,transitionDuration:h,TransitionProps:$}),P=pn(E),R=l.useCallback(()=>{if(v==="anchorPosition")return g;const w=Pe(u),K=(w&&w.nodeType===1?w:q(H.current).body).getBoundingClientRect();return{top:K.top+je(K,d.vertical),left:K.left+Be(K,d.horizontal)}},[u,d.horizontal,d.vertical,g,v]),A=l.useCallback(w=>({vertical:je(w,m.vertical),horizontal:Be(w,m.horizontal)}),[m.horizontal,m.vertical]),I=l.useCallback(w=>{const _={width:w.offsetWidth,height:w.offsetHeight},K=A(_);if(v==="none")return{top:null,left:null,transformOrigin:Ke(K)};const Se=R();let te=Se.top-K.vertical,ne=Se.left-K.horizontal;const ke=te+_.height,Ce=ne+_.width,Me=fe(Pe(u)),we=Me.innerHeight-T,Ne=Me.innerWidth-T;if(T!==null&&te<T){const W=te-T;te-=W,K.vertical+=W}else if(T!==null&&ke>we){const W=ke-we;te-=W,K.vertical+=W}if(T!==null&&ne<T){const W=ne-T;ne-=W,K.horizontal+=W}else if(Ce>Ne){const W=Ce-Ne;ne-=W,K.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:Ke(K)}},[u,v,R,A,T]),[B,pe]=l.useState(x),U=l.useCallback(()=>{const w=H.current;if(!w)return;const _=I(w);_.top!==null&&(w.style.top=_.top),_.left!==null&&(w.style.left=_.left),w.style.transformOrigin=_.transformOrigin,pe(!0)},[I]);l.useEffect(()=>(L&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[u,L,U]);const he=(w,_)=>{N&&N(w,_),U()},Z=()=>{pe(!1)};l.useEffect(()=>{x&&U()}),l.useImperativeHandle(c,()=>x?{updatePosition:()=>{U()}}:null,[x,U]),l.useEffect(()=>{if(!x)return;const w=Je(()=>{U()}),_=fe(u);return _.addEventListener("resize",w),()=>{w.clear(),_.removeEventListener("resize",w)}},[u,x,U]);let Y=h;h==="auto"&&!S.muiSupportAuto&&(Y=void 0);const Q=b||(u?q(Pe(u)).body:void 0),J=(r=a==null?void 0:a.root)!=null?r:hn,le=(s=a==null?void 0:a.paper)!=null?s:Xe,ce=oe({elementType:le,externalSlotProps:p({},D,{style:B?D.style:p({},D.style,{opacity:0})}),additionalProps:{elevation:M,ref:k},ownerState:E,className:G(P.paper,D==null?void 0:D.className)}),ee=oe({elementType:J,externalSlotProps:(f==null?void 0:f.root)||{},externalForwardedProps:j,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Q,open:x},ownerState:E,className:G(P.root,y)}),{slotProps:ve}=ee,ge=z(ee,fn);return O.jsx(J,p({},ge,!We(J)&&{slotProps:ve,disableScrollLock:L},{children:O.jsx(S,p({appear:!0,in:x,onEntering:he,onExited:Z,timeout:Y},$,{children:O.jsx(le,p({},ce,{children:C}))}))}))}),vn=mn;function gn(e){return re("MuiMenu",e)}se("MuiMenu",["root","paper","list"]);const bn=["onEntering"],xn=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],En={vertical:"top",horizontal:"right"},Pn={vertical:"top",horizontal:"left"},yn=e=>{const{classes:t}=e;return ie({root:["root"],paper:["paper"],list:["list"]},gn,t)},Rn=V(vn,{shouldForwardProp:e=>nt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tn=V(Xe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sn=V(_t,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),kn=l.forwardRef(function(t,n){var o,r;const s=ae({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:c,className:u,disableAutoFocusItem:d=!1,MenuListProps:g={},onClose:v,open:C,PaperProps:y={},PopoverClasses:b,transitionDuration:M="auto",TransitionProps:{onEntering:T}={},variant:x="selectedMenu",slots:F={},slotProps:a={}}=s,f=z(s.TransitionProps,bn),m=z(s,xn),S=Te(),h=S.direction==="rtl",N=p({},s,{autoFocus:i,disableAutoFocusItem:d,MenuListProps:g,onEntering:T,PaperProps:y,transitionDuration:M,TransitionProps:f,variant:x}),L=yn(N),$=i&&!d&&C,j=l.useRef(null),D=(I,B)=>{j.current&&j.current.adjustStyleForScrollbar(I,S),T&&T(I,B)},H=I=>{I.key==="Tab"&&(I.preventDefault(),v&&v(I,"tabKeyDown"))};let k=-1;l.Children.map(c,(I,B)=>{l.isValidElement(I)&&(I.props.disabled||(x==="selectedMenu"&&I.props.selected||k===-1)&&(k=B))});const E=(o=F.paper)!=null?o:Tn,P=(r=a.paper)!=null?r:y,R=oe({elementType:F.root,externalSlotProps:a.root,ownerState:N,className:[L.root,u]}),A=oe({elementType:E,externalSlotProps:P,ownerState:N,className:L.paper});return O.jsx(Rn,p({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:h?"right":"left"},transformOrigin:h?En:Pn,slots:{paper:E,root:F.root},slotProps:{root:R,paper:A},open:C,ref:n,transitionDuration:M,TransitionProps:p({onEntering:D},f),ownerState:N},m,{classes:b,children:O.jsx(Sn,p({onKeyDown:H,actions:j,autoFocus:i&&(k===-1||d),autoFocusItem:$,variant:x},g,{className:G(L.list,g.className),children:c}))}))}),In=kn,Cn=l.createContext(void 0),Mn=Cn;function Fn(){return l.useContext(Mn)}function Ln({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}export{Vt as B,Kt as F,Ct as G,wt as L,In as M,vn as P,oe as a,Te as b,Ot as c,ln as d,mt as e,Ln as f,ot as g,tn as h,Mn as i,We as j,me as k,qe as l,_t as m,pt as n,Fn as u};
@@ -0,0 +1,32 @@
1
+ import{k as B,j as e,r as a,N as L,aj as W,n as I,S as _,m as D,J as q,P as u,Q as z}from"./index-Wd4YrnM9.js";import{r as E}from"./createSvgIcon-tFt1ryL0.js";import{W as R}from"./did-address-3FoRRVKx.js";import{P as $}from"./page-header-2zyJkZ9E.js";import{S as H}from"./layout-IXZgeuoW.js";import{S as T}from"./step-actions-igJpcln5.js";import{S as m}from"./button-GVcV-kDi.js";import{B as t}from"./Box-lZ5spsQH.js";import{L as V}from"./Link-qhTRVvm5.js";import"./Link-QmOupva0.js";import"./styled-QR9SQDeC.js";import"./Typography-4MXIXIgI.js";import"./content-layout-3EgufeDh.js";import"./useTheme-FGGdIoCP.js";import"./useMediaQuery-HjFmqP7e.js";import"./Typography-tvdIv5ZI.js";var l={},A=B;Object.defineProperty(l,"__esModule",{value:!0});var f=l.default=void 0,F=A(E()),M=e;f=l.default=(0,F.default)((0,M.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch");function x({onNext:n,onPrevious:h}){const{locale:j,t:s}=a.useContext(L),{blocklet:c,gas:p,tokenInfo:y,actions:g}=W(),{api:v}=I(),[S,r]=a.useState(!1),{need:d="",current:k="",owe:o=99999,deficiency:b,symbol:C="",endpoint:i}=p||{},{origin:w="/"}=i?new URL(i):{};a.useEffect(()=>{const P=setInterval(()=>{g.refreshFuel()},2e3);return()=>{clearInterval(P)}},[]);const N=()=>{r(!1)};return p?e.jsxs(O,{children:[e.jsx("div",{className:"header",children:e.jsx($,{title:s("setup.fuel.title"),onClickBack:h})}),e.jsxs(t,{className:"qr-body",children:[e.jsxs(t,{mb:6,className:"tip",children:[s("setup.fuel.tipStart").replace("slot",""),e.jsx("span",{className:"amount",children:`${d} ${C}`}),s("setup.fuel.tipEnd")]}),e.jsx(t,{fontSize:16,fontWeight:"fontWeightBold",mb:.5,children:s("setup.fuel.addressTitle")}),e.jsxs(t,{display:"flex",alignItems:"center",children:[e.jsx(R,{className:"address",did:c.appDid}),e.jsx(V,{style:{lineHeight:1},target:"_blank",href:D(w,"/explorer/accounts/",c.appDid),underline:"hover",children:e.jsx(f,{className:"icon-launch"})})]}),e.jsx(t,{my:2,children:e.jsx(m,{color:"primary",onClick:()=>r(!0),disabled:!o,children:s("setup.fuel.fuelApp")})}),e.jsx(q,{popup:!0,open:S,action:"fuel",checkFn:v.get,checkTimeout:10*60*1e3,onSuccess:N,onClose:()=>r(!1),locale:j,messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{amount:b,...y,endpoint:i}}),e.jsxs(t,{display:"flex",color:"text.secondary",children:[e.jsxs(t,{display:"flex",children:[e.jsxs(t,{children:[s("setup.fuel.need"),":"]}),e.jsx(t,{ml:.5,color:"primary.main",fontWeight:"fontWeightBold",children:d})]}),e.jsxs(t,{display:"flex",ml:3,children:[e.jsxs(t,{children:[s("setup.fuel.current"),":"]}),e.jsx(t,{ml:.5,color:o>0?"error.main":"primary.main",fontWeight:"fontWeightBold",children:k})]})]})]}),e.jsx(T,{mt:8,children:e.jsx(m,{disabled:o>0,onClick:()=>n(),children:s("setup.next")})})]}):e.jsx(t,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:e.jsx(_,{})})}x.propTypes={onNext:u.func,onPrevious:u.func};x.defaultProps={onNext:()=>{},onPrevious:()=>{}};const O=z(H)`
2
+ .qr-body {
3
+ width: 580px;
4
+ ${n=>n.theme.breakpoints.down("md")} {
5
+ width: 80%;
6
+ }
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+
11
+ .tip {
12
+ font-size: 16px;
13
+ font-weight: bold;
14
+ }
15
+
16
+ .address {
17
+ width: 100%;
18
+ text-align: center;
19
+ }
20
+
21
+ .amount {
22
+ color: ${n=>n.theme.palette.primary.main};
23
+ }
24
+
25
+ .icon-launch {
26
+ font-size: 16px;
27
+ margin-left: 6px;
28
+ line-height: 1;
29
+ color: ${n=>n.theme.palette.primary.main};
30
+ }
31
+ }
32
+ `;export{x as default};
@@ -0,0 +1 @@
1
+ import{g as _,a as H,R as w,d as I,U as E,V as m,c as P,_ as y,r as B,W as q,f as U,X as O,Y as X,j as r,h as Y,i as Z,P as c,Z as G,$ as u,A as J,a0 as b}from"./index-Wd4YrnM9.js";function K(e){return H("MuiLink",e)}const Q=_("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ee=Q,R={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ne=e=>R[e]||e,oe=({theme:e,ownerState:n})=>{const t=ne(n.color),s=w(e,`palette.${t}`,!1)||n.color,o=w(e,`palette.${t}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:I(s,.4)},re=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],te=e=>{const{classes:n,component:t,focusVisible:s,underline:o}=e,l={root:["root",`underline${P(o)}`,t==="button"&&"button",s&&"focusVisible"]};return Z(l,K,n)},se=E(m,{name:"MuiLink",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[`underline${P(t.underline)}`],t.component==="button"&&n.button]}})(({theme:e,ownerState:n})=>y({},n.underline==="none"&&{textDecoration:"none"},n.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},n.underline==="always"&&y({textDecoration:"underline"},n.color!=="inherit"&&{textDecorationColor:oe({theme:e,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),n.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ee.focusVisible}`]:{outline:"auto"}})),ie=B.forwardRef(function(n,t){const s=q({props:n,name:"MuiLink"}),{className:o,color:l="primary",component:i="a",onBlur:a,onFocus:p,TypographyClasses:x,underline:g="always",variant:h="inherit",sx:d}=s,V=U(s,re),{isFocusVisibleRef:j,onBlur:$,onFocus:L,ref:A}=O(),[z,C]=B.useState(!1),S=X(t,A),W=f=>{$(f),j.current===!1&&C(!1),a&&a(f)},M=f=>{L(f),j.current===!0&&C(!0),p&&p(f)},T=y({},s,{color:l,component:i,focusVisible:z,underline:g,variant:h}),N=te(T);return r.jsx(se,y({color:l,className:Y(N.root,o),classes:x,component:i,onBlur:W,onFocus:M,ref:S,ownerState:T,variant:h,sx:[...Object.keys(R).includes(l)?[]:[{color:l}],...Array.isArray(d)?d:[d]]},V))}),k=ie;function v({linkProps:e,...n}){return r.jsxs(m,{...n,children:["Powered by"," ",r.jsx(k,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...e,children:"ArcBlock"}),"'s"," ",r.jsx(k,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...e,children:"Blocklet Technology"}),", the decentralized web engine."]})}v.propTypes={linkProps:c.object};v.defaultProps={linkProps:{}};const F="/.well-known/service/static/assets/login-bg-m34fVHNm.png";function D({did:e,children:n,title:t,description:s,logo:o,logoSize:l,appUrl:i}){var x,g,h,d;if(!e)return n;let a;try{a=G(e)}catch{console.warn("Invalid did:",e)}const p=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{};return t===void 0&&(t=p.appName),s===void 0&&(s=p.appDescription),o===void 0&&(o=((x=globalThis==null?void 0:globalThis.blocklet)==null?void 0:x.appLogoRect)||((g=globalThis==null?void 0:globalThis.blocklet)==null?void 0:g.appLogo)||""),typeof o=="string"&&(o?o=r.jsx(u,{sx:{height:l,maxHeight:l,maxWidth:"50%",objectFit:"contain"},component:"img",src:o}):o=r.jsx(J,{size:l,did:e,src:o,variant:"rounded"})),typeof i=="string"&&(i=((h=globalThis==null?void 0:globalThis.blocklet)==null?void 0:h.appUrl)||"",!i&&(globalThis!=null&&globalThis.env)&&(i=(d=globalThis==null?void 0:globalThis.env)==null?void 0:d.baseUrl)),r.jsxs(u,{sx:{width:"100vw",height:"100vh",display:"flex",backgroundColor:b.backgroundsBgSubtile},children:[r.jsxs(u,{sx:{position:"relative",fontSize:0,flex:30,display:{xs:"none",lg:"flex"},minWidth:"400px",backgroundColor:b.surfaceBgSubtitle},children:[r.jsx(u,{sx:{position:"absolute",top:0,bottom:0,left:0,right:0,background:a?`linear-gradient(0deg, ${a} 0%, ${a} 100%), url(${F}), lightgray 50% / cover no-repeat`:`url(${F}), lightgray 50% / cover no-repeat`,backgroundPosition:"center",backgroundSize:"cover",backgroundBlendMode:a?"soft-light, normal":"unset",mask:"linear-gradient(172deg, rgba(0, 0, 0, 0.0) 24.62%, rgba(0, 0, 0, 0.80) 44.47%, #000 100%)"}}),r.jsxs(u,{sx:{display:"flex",flexDirection:"column",position:"absolute",top:0,left:0,width:"100%",p:3},children:[i?r.jsx(u,{children:r.jsx(k,{href:i,underline:"none",color:"inherit",children:o})}):o,t&&r.jsx(m,{variant:"h5",sx:{mt:3,mb:1,p:0,mx:0,fontWeight:"bold"},children:i?r.jsx(k,{href:i,underline:"none",color:"inherit",children:t}):t}),s&&r.jsx(m,{variant:"body2",sx:{m:0,p:0,color:b.foregroundsFgSubtile,fontSize:"12px",lineHeight:"20px"},children:s})]}),r.jsx(v,{linkProps:{underline:"always",color:b.textSubtitle},sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"12px",color:b.textSubtitle}})]}),r.jsx(u,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flex:70,maxWidth:{xs:"100%",md:"90%"},margin:"auto",height:{xs:"100%",md:"auto"}},children:n})]})}D.propTypes={did:c.string.isRequired,children:c.any.isRequired,title:c.any,description:c.any,logo:c.any,logoSize:c.number,appUrl:c.string};D.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:40,appUrl:""};export{D as F};
@@ -0,0 +1 @@
1
+ import{j as o,O as t,L as r,I as i}from"./index-Wd4YrnM9.js";import{S as e}from"./studio-nX-Lvt-n.js";import{B as n}from"./Box-lZ5spsQH.js";import"./index-cC16saNb.js";import"./Toolbar-p2Rw9VP_.js";import"./Hidden-epK0WlDg.js";import"./ExpandMore-KT3Riu-V.js";import"./fallback-79zmcfbz.js";import"./createSvgIcon-tFt1ryL0.js";function L(){return o.jsx(e,{children:o.jsxs(n,{m:4,children:[o.jsx(t,{component:r,to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,size:"large",color:"primary",variant:"outlined",children:"Preference Builder"}),o.jsx(t,{component:r,style:{marginLeft:16},to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,size:"large",color:"primary",variant:"outlined",children:"Localization"})]})})}export{L as default};
@@ -1 +1 @@
1
- import{c3 as x}from"./index-tI696upG.js";import{o as E}from"./index-W37UcQvv.js";const L=({url:o,allowFullScreen:r,position:a,display:i,height:u,width:c,overflow:f,styles:y,onLoad:p,onMouseOver:m,onMouseOut:w,scrolling:b,id:d,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:A,importance:F,referrerpolicy:M,allowpaymentrequest:S,src:$,key:q})=>{const t=E({src:$||o,target:v||null,style:{position:a||null,display:i||"initial",overflow:f||null},scrolling:b||null,allowpaymentrequest:S||null,importance:F||null,sandbox:s&&[...s].join(" ")||null,loading:A||null,styles:y||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:d||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:c||null,height:u||null,onLoad:p||null,onMouseOver:m||null,onMouseOut:w||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(r)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),x.createElement("iframe",Object.assign({},l))},z=L;export{z as I};
1
+ import{cf as x}from"./index-Wd4YrnM9.js";import{o as E}from"./index-cC16saNb.js";const L=({url:o,allowFullScreen:r,position:a,display:i,height:u,width:c,overflow:f,styles:y,onLoad:p,onMouseOver:m,onMouseOut:w,scrolling:b,id:d,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:A,importance:F,referrerpolicy:M,allowpaymentrequest:S,src:$,key:q})=>{const t=E({src:$||o,target:v||null,style:{position:a||null,display:i||"initial",overflow:f||null},scrolling:b||null,allowpaymentrequest:S||null,importance:F||null,sandbox:s&&[...s].join(" ")||null,loading:A||null,styles:y||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:d||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:c||null,height:u||null,onLoad:p||null,onMouseOver:m||null,onMouseOut:w||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(r)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),x.createElement("iframe",Object.assign({},l))},z=L;export{z as I};
@@ -1,4 +1,4 @@
1
- import{aO as l}from"./index-tI696upG.js";var c={exports:{}};/*!
1
+ import{aM as l}from"./index-Wd4YrnM9.js";var c={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -0,0 +1,201 @@
1
+ import{j as l,_ as v,ea as Qe,f as te,g as Oe,a as _e,r as x,h as me,i as Le,P as D,l as be,aW as xe,aX as ge,bo as ye,L as z,O as V,bv as ut,T as w,Q as G,o as pt,J as $t,bB as Dt,ab as F,m as fe,I as ue,Y as Me,bc as Bt,aQ as he,aR as ft,aV as At,d as Se,bu as Ot,bP as Ye,bD as _t,a4 as Lt,eb as Ie,ec as Mt,aB as Vt,ap as Ft,aq as Te}from"./index-Wd4YrnM9.js";import{d as mt,_ as zt}from"./useSetState-8hL6FUWi.js";import{D as ht}from"./index-dO0N2FSj.js";import{T as bt}from"./index-k2zXVcXF.js";import{B as N}from"./Box-xVyhqbFH.js";import{S as $e}from"./CircularProgress-Q4pselFx.js";import{W as Wt}from"./did-address-3FoRRVKx.js";import{C as xt,M as Ut}from"./confirm-Tyae6_Zc.js";import{B as gt,d as Kt}from"./ChevronRight-wrcW9iQD.js";import{B as Ht,I as ve}from"./IconButton-Bw_740x8.js";import{_ as qt,F as Xt,C as Jt}from"./Checkbox-hUFDjNSc.js";import{u as Gt}from"./session-VA6PMO42.js";import{s as K,u as Ve}from"./styled-QR9SQDeC.js";import{c as Qt}from"./createSvgIcon-TtyKAxsD.js";import{T as _}from"./Typography-4MXIXIgI.js";import{a as Yt,b as Zt}from"./formControlState-3f1dynOx.js";import{M as J}from"./TextField-yFSUKkfQ.js";import{M as De}from"./InputAdornment-gVGmth-c.js";import{d as Ze}from"./Download-ubfkvcSA.js";import{d as eo}from"./DeleteOutline-bqcRHaFk.js";import{T as to}from"./index-yQZH21L_.js";import{M as oo,A as lo,f as Ee}from"./index-Dgm_SdZp.js";import{C as so}from"./click-to-copy-0upUV1g8.js";import{c as yt}from"./index--CkleDlS.js";import{i as no}from"./index-575yCkwl.js";import{d as ro}from"./ExpandMore-BaF2rZER.js";import{d as io}from"./OpenInNew-QAO3RVjc.js";import{C as kt}from"./Collapse-B9GV1Oit.js";import"./api-2KA7QvaK.js";import{A as ao}from"./Avatar-FfLDTS1T.js";import"./FilterList-A3lP9lXN.js";import"./Search-NO0Vj1Jx.js";import"./TextField-w62Tj_bv.js";import"./createStack-jceJWRju.js";import"./Grid-lKrAKrf2.js";import"./Toolbar-p2Rw9VP_.js";import"./index-ja_Ipmzw.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Link-QmOupva0.js";import"./Select-CLqvWhqc.js";import"./InputLabel-E4gynfPT.js";const co=Qt(l.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"),uo=["slots","slotProps"],po=K(Ht)(({theme:e})=>v({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":v({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":v({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Qe(e.palette.grey[200],.12)}:{backgroundColor:Qe(e.palette.grey[600],.12)})})),fo=K(co)({width:24,height:16});function mo(e){const{slots:t={},slotProps:o={}}=e,s=te(e,uo),i=e;return l.jsx("li",{children:l.jsx(po,v({focusRipple:!0},s,{ownerState:i,children:l.jsx(fo,v({as:t.CollapsedIcon,ownerState:i},o.collapsedIcon))}))})}function ho(e){return _e("MuiBreadcrumbs",e)}const bo=Oe("MuiBreadcrumbs",["root","ol","li","separator"]),xo=bo,go=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],yo=e=>{const{classes:t}=e;return Le({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},ho,t)},ko=K(_,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${xo.li}`]:t.li},t.root]})({}),jo=K("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),No=K("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Co(e,t,o,s){return e.reduce((i,c,p)=>(p<e.length-1?i=i.concat(c,l.jsx(No,{"aria-hidden":!0,className:t,ownerState:s,children:o},`separator-${p}`)):i.push(c),i),[])}const So=x.forwardRef(function(t,o){const s=Ve({props:t,name:"MuiBreadcrumbs"}),{children:i,className:c,component:p="nav",slots:r={},slotProps:b={},expandText:u="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:f=1,maxItems:k=8,separator:d="/"}=s,n=te(s,go),[a,m]=x.useState(!1),g=v({},s,{component:p,expanded:a,expandText:u,itemsAfterCollapse:h,itemsBeforeCollapse:f,maxItems:k,separator:d}),j=yo(g),y=Yt({elementType:r.CollapsedIcon,externalSlotProps:b.collapsedIcon,ownerState:g}),S=x.useRef(null),E=R=>{const $=()=>{m(!0);const T=S.current.querySelector("a[href],button,[tabindex]");T&&T.focus()};return f+h>=R.length?R:[...R.slice(0,f),l.jsx(mo,{"aria-label":u,slots:{CollapsedIcon:r.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:$},"ellipsis"),...R.slice(R.length-h,R.length)]},I=x.Children.toArray(i).filter(R=>x.isValidElement(R)).map((R,$)=>l.jsx("li",{className:j.li,children:R},`child-${$}`));return l.jsx(ko,v({ref:o,component:p,color:"text.secondary",className:me(j.root,c),ownerState:g},n,{children:l.jsx(jo,{className:j.ol,ref:S,ownerState:g,children:Co(a||k&&I.length<=k?I:E(I),j.separator,d,g)})}))}),Fe=So;function ke({size:e,...t}){return l.jsx(N,{display:"flex",mt:4,...t,children:l.jsx($e,{size:e})})}ke.propTypes={size:D.number};ke.defaultProps={size:24};function jt(){const{t:e,locale:t}=be(),{api:o}=xe(),[s,i]=x.useState(!0),{blocklet:c}=ge(),[p,r]=x.useState(null),{componentDid:b=""}=ye(),[u,h]=x.useState(null),f=()=>{o.getProjects({input:{did:c.meta.did,componentDid:b}}).then(a=>{const m=(a==null?void 0:a.projects)||[];i(!1),h(m)}).catch(a=>{i(!1),w.error(a.message)})},k=a=>{r(a)},d=()=>{i(!1);const a=p.id;o.deleteProject({input:{did:c.meta.did,projectId:a}}).then(()=>{i(!1),f(),w.success(e("common.removeSuccess")),r(null)}).catch(m=>{i(!1),w.error(m.message)})};if(x.useEffect(()=>{f()},[]),!u&&s)return l.jsx(ke,{});if(!u)return null;if(!u.length)return l.jsxs(N,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(N,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),l.jsx(N,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),l.jsx(z,{to:"create",children:l.jsx(V,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const n=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:a=>{const m=u[a];return l.jsx(z,{to:`${m.id}`,children:m.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:a=>l.jsx(Wt,{size:14,responsive:!0,did:a})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:a=>a?l.jsx(bt,{type:"success",children:a}):""}},b?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:a=>{const m=(c.children||[]).find(g=>g.meta.did===a);return m?l.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(gt,{size:14,blocklet:m,ancestors:[c]}),l.jsx(N,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:m.meta.title})]},a):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:a=>l.jsx(ut,{value:Number(a),locale:t})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:a=>{const m=u[a];return l.jsx(N,{display:"flex",children:l.jsx(ve,{color:"error","aria-label":"delete",onClick:()=>k(m),children:l.jsx(mt,{sx:{fontSize:18}})})})}}}].filter(Boolean);return l.jsxs(To,{children:[l.jsx(N,{sx:{textAlign:"right"},children:l.jsx(z,{to:"create",children:l.jsx(V,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),l.jsx(ht,{className:"main-table",locale:t,data:u,columns:n,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),p&&l.jsx(xt,{title:`${e("common.delete")} ${p.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:d,onCancel:()=>r(null)})]})}jt.propTypes={};const To=G(N)`
2
+ .main-table > div:first-child {
3
+ display: none;
4
+ }
5
+ `,Io=[{label:{en:"Resource",zh:"资源"},value:"resource"},{label:{en:"Application",zh:"应用"},value:"pack"}];function ze({...e}){const t=pt(),{t:o,locale:s}=be(),{blocklet:i}=ge(),[c,p]=x.useState(""),[r,b]=x.useState(!1),[u,h]=x.useState("resource"),{api:f}=Gt(),{api:k}=xe(),[d,n]=x.useState(),[a,m]=x.useState(!1),[g]=qt("manual-create-blocklet-did",!1),{componentDid:j=""}=ye(),y=I=>{w.error(I.message),m(!1)},S=I=>{var $;const R=($=I==null?void 0:I.blockletWallet)==null?void 0:$.address;R?n(R):w.error("Empty Blocklet DID"),m(!1)},E=()=>{if(!d){w.error(o("blocklet.publish.errorTip.noDid"));return}if(!c){w.error(o("blocklet.publish.errorTip.noTitle"));return}b(!0),k.createProject({input:{did:i.meta.did,blockletTitle:c||"",blockletDid:d,type:u,componentDid:j}}).then(()=>{b(!1),t("../",{replace:!0})}).catch(I=>{b(!1),w.error(I.message)})};return l.jsxs(vo,{...e,children:[l.jsxs(Fe,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(z,{to:"..",children:o("common.publish")}),l.jsxs(_,{color:"text.primary",children:[o("common.create")," Blocklet"]})]}),l.jsxs(N,{style:{maxWidth:500},children:[l.jsx(J,{required:!0,sx:{mb:4},label:"Blocklet DID",fullWidth:!0,readonly:!0,autoComplete:"off",variant:"outlined",onChange:I=>g&&n(I.target.value),onClick:()=>!g&&!d&&m(!0),InputProps:{"data-cy":"export-blocklet-did",endAdornment:!g&&l.jsx(De,{position:"end",children:l.jsx(V,{onClick:()=>m(!0),children:o(d?"common.update":"common.create")})})},helperText:"",value:d||""}),a&&l.jsx($t,{open:!0,popup:!0,onClose:()=>m(!1),action:"gen-blocklet-key-pair",locale:s,checkFn:f.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:S,onError:y,extraParams:{did:i.meta.did},messages:{title:o("blocklet.publish.connect.title"),scan:o("blocklet.publish.connect.scan"),confirm:o("blocklet.publish.connect.confirm"),success:o("blocklet.publish.connect.success")}}),l.jsx(J,{required:!0,label:`Blocklet ${o("common.title")}`,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-title"},fullWidth:!0,helperText:"",value:c||"",onChange:I=>{p(I.target.value)}}),l.jsx(J,{sx:{my:4},id:"blocklet-type",select:!0,label:`Blocklet ${o("common.type")}`,helperText:"",fullWidth:!0,value:u,onChange:I=>h(I.target.value),children:Io.map(I=>l.jsx(Ut,{value:I.value,disabled:I.disabled,children:I.label[s]||I.label.en},I.value))})]}),l.jsx(V,{variant:"contained",disabled:r,onClick:E,children:o("common.create")})]})}ze.propTypes={};ze.defaultProps={};const vo=G.div`
6
+ .breadcrumbs {
7
+ margin-bottom: 24px;
8
+ }
9
+ `;function Nt(){const{t:e,locale:t}=be(),{projectId:o}=ye(),{api:s}=xe(),[i,c]=x.useState(!0),{blocklet:p}=ge(),[r,b]=x.useState(null),[u,h]=x.useState(null),[f,k]=x.useState(null),d=()=>{s.getReleases({input:{did:p.meta.did,projectId:o}}).then(y=>{const S=(y==null?void 0:y.releases)||[];c(!1),b(S)}).catch(y=>{c(!1),w.error(y.message)})},n=()=>{s.doBatchQuery({getProject:{input:{did:p.meta.did,projectId:o}},getReleases:{input:{did:p.meta.did,projectId:o}}}).then(y=>{h(y.getProject.project||{}),b(y.getReleases.releases||[]),c(!1)}).catch(y=>{c(!1),w.error(y.message)})};x.useEffect(()=>{n()},[]);const a=()=>{c(!1);const y=f.id;s.deleteRelease({input:{did:p.meta.did,projectId:o,releaseId:y}}).then(()=>{c(!1),d(),w.success(e("common.removeSuccess")),k(null)}).catch(S=>{c(!1),w.error(S.message)})},m=y=>{k(y)};if(!r&&i)return l.jsx(ke,{});if(!r)return null;const g=l.jsxs(Fe,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(z,{to:"..",children:e("common.publish")}),l.jsx(_,{color:"text.primary",children:u.blockletTitle})]});if(!r.length)return l.jsxs(l.Fragment,{children:[g,l.jsxs(N,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(N,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.releaseEmptyTip")}),l.jsx(N,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createReleaseTip")}),l.jsx(z,{to:"create",children:l.jsx(V,{variant:"contained",children:e("blocklet.publish.createRelease")})})]})]});const j=[{label:e("common.version"),name:"blockletVersion",options:{customBodyRenderLite:y=>{const S=r[y];return l.jsx(z,{to:`${S.id}`,children:S.blockletVersion||"/"})}}},{label:e("blocklet.publish.releaseNote"),name:"note",options:{customBodyRenderLite:y=>{const S=r[y];return l.jsx(_,{className:"note",children:S.note||""})}}},{label:e("common.status"),name:"status",options:{customBodyRender:y=>l.jsx(bt,{type:y==="published"?"success":"warning",children:Dt(y)})}},{label:e("common.lastPublishedAt"),name:"updatedAt",options:{customBodyRenderLite:y=>{const S=r[y];return S.status!==F.PROJECT.RELEASE_STATUS.published?"":l.jsx(ut,{value:Number(S.updatedAt),locale:t})}}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:y=>{const S=r[y];return l.jsxs(N,{display:"flex",alignItems:"center",children:[l.jsx(ve,{color:"primary","aria-label":"download",disabled:S.status!=="published",children:S.status==="published"?l.jsx("a",{style:{display:"flex"},href:fe(`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${u.id}/${S.id}/download/${(S.files||[])[0]}`),children:l.jsx(Ze,{sx:{fontSize:18}})}):l.jsx(Ze,{sx:{fontSize:18}})}),l.jsx(ve,{color:"error","aria-label":"delete",onClick:()=>m(S),children:l.jsx(mt,{sx:{fontSize:18}})})]})}}}];return l.jsxs(Eo,{children:[l.jsxs(N,{className:"header",children:[g,l.jsx(z,{to:"create",children:l.jsx(V,{variant:"contained",children:e("blocklet.publish.createRelease")})})]}),l.jsx(ht,{className:"main-table",verticalKeyWidth:100,locale:t,data:r,columns:j,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),f&&l.jsx(xt,{title:e(`${e("common.delete")} ${f.blockletVersion}`),description:e("blocklet.publish.deleteReleaseTip"),confirm:e("common.confirm"),onConfirm:a,onCancel:()=>k(null)})]})}Nt.propTypes={};const Eo=G(N)`
10
+ .header {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ }
15
+ .main-table > div:first-child {
16
+ display: none;
17
+ }
18
+ .note {
19
+ word-break: break-all;
20
+ white-space: pre-line;
21
+ }
22
+ `;function Ro(e){return typeof e=="string"}function Po(e,t,o){return e===void 0||Ro(e)?t:v({},t,{ownerState:v({},t.ownerState,o)})}function wo(e,t=[]){if(e===void 0)return{};const o={};return Object.keys(e).filter(s=>s.match(/^on[A-Z]/)&&typeof e[s]=="function"&&!t.includes(s)).forEach(s=>{o[s]=e[s]}),o}function $o(e,t,o){return typeof e=="function"?e(t,o):e}function et(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(o=>!(o.match(/^on[A-Z]/)&&typeof e[o]=="function")).forEach(o=>{t[o]=e[o]}),t}function Do(e){const{getSlotProps:t,additionalProps:o,externalSlotProps:s,externalForwardedProps:i,className:c}=e;if(!t){const d=me(o==null?void 0:o.className,c,i==null?void 0:i.className,s==null?void 0:s.className),n=v({},o==null?void 0:o.style,i==null?void 0:i.style,s==null?void 0:s.style),a=v({},o,i,s);return d.length>0&&(a.className=d),Object.keys(n).length>0&&(a.style=n),{props:a,internalRef:void 0}}const p=wo(v({},i,s)),r=et(s),b=et(i),u=t(p),h=me(u==null?void 0:u.className,o==null?void 0:o.className,c,i==null?void 0:i.className,s==null?void 0:s.className),f=v({},u==null?void 0:u.style,o==null?void 0:o.style,i==null?void 0:i.style,s==null?void 0:s.style),k=v({},u,o,b,r);return h.length>0&&(k.className=h),Object.keys(f).length>0&&(k.style=f),{props:k,internalRef:u.ref}}const Bo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ao(e){var t;const{elementType:o,externalSlotProps:s,ownerState:i,skipResolvingSlotProps:c=!1}=e,p=te(e,Bo),r=c?{}:$o(s,i),{props:b,internalRef:u}=Do(v({},p,{externalSlotProps:r})),h=Me(u,r==null?void 0:r.ref,(t=e.additionalProps)==null?void 0:t.ref);return Po(o,v({},b,{ref:h}),i)}function Oo(e){return _e("MuiTreeView",e)}Oe("MuiTreeView",["root"]);const Ct={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},St=x.createContext(Ct),_o=(e,t)=>{const o=x.useRef({}),[s,i]=x.useState(()=>{const p={};return e.forEach(r=>{r.models&&Object.entries(r.models).forEach(([b,u])=>{o.current[b]={controlledProp:u.controlledProp,defaultProp:u.defaultProp,isControlled:t[u.controlledProp]!==void 0},p[b]=t[u.defaultProp]})}),p});return Object.fromEntries(Object.entries(o.current).map(([p,r])=>{const b=r.isControlled?t[r.controlledProp]:s[p];return[p,{value:b,setValue:u=>{r.isControlled||i(h=>v({},h,{[p]:u}))}}]}))};class Lo{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,o,s={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),s.isFirst?i.highPriority.set(o,!0):i.regular.set(o,!0)}removeListener(t,o){this.events[t]&&(this.events[t].regular.delete(o),this.events[t].highPriority.delete(o))}removeAllListeners(){this.events={}}emit(t,...o){const s=this.events[t];if(!s)return;const i=Array.from(s.highPriority.keys()),c=Array.from(s.regular.keys());for(let p=i.length-1;p>=0;p-=1){const r=i[p];s.highPriority.has(r)&&r.apply(this,o)}for(let p=0;p<c.length;p+=1){const r=c[p];s.regular.has(r)&&r.apply(this,o)}}once(t,o){const s=this;this.on(t,function i(...c){s.removeListener(t,i),o.apply(s,c)})}}const Re=(e,t)=>{const o=e.getNode(t),s=e.getNavigableChildrenIds(o.parentId),i=s.indexOf(t);if(i===0)return o.parentId;let c=s[i-1];for(;e.isNodeExpanded(c)&&e.getNavigableChildrenIds(c).length>0;)c=e.getNavigableChildrenIds(c).pop();return c},pe=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let o=e.getNode(t);for(;o!=null;){const s=e.getNavigableChildrenIds(o.parentId),i=s[s.indexOf(o.id)+1];if(i)return i;o=e.getNode(o.parentId)}return null},Be=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},Ae=e=>e.getNavigableChildrenIds(null)[0],ne=(e,t)=>{Object.assign(e,t)},Mo=e=>e.isPropagationStopped!==void 0,Vo=({instance:e})=>{const[t]=x.useState(()=>new Lo),o=x.useCallback((...i)=>{const[c,p,r={}]=i;r.defaultMuiPrevented=!1,!(Mo(r)&&r.isPropagationStopped())&&t.emit(c,p,r)},[t]),s=x.useCallback((i,c)=>(t.on(i,c),()=>{t.removeListener(i,c)}),[t]);ne(e,{$$publishEvent:o,$$subscribeEvent:s})},Fo=[Vo],zo=e=>{const t=[...Fo,...e.plugins],o=t.reduce((n,a)=>a.getDefaultizedParams?a.getDefaultizedParams(n):n,e),s=_o(t,o),c=x.useRef({}).current,p=x.useRef(null),r=Me(p,e.rootRef),[b,u]=x.useState(()=>{const n={};return t.forEach(a=>{a.getInitialState&&Object.assign(n,a.getInitialState(o))}),n}),h=[];let f=Ct;const k=n=>{const a=n({instance:c,params:o,state:b,setState:u,rootRef:p,models:s})||{};a.getRootProps&&h.push(a.getRootProps),a.contextValue&&(f=a.contextValue)};return t.forEach(k),{getRootProps:(n={})=>{const a=v({role:"tree",tabIndex:0},n,{ref:r});return h.forEach(m=>{Object.assign(a,m(n))}),a},rootRef:r,contextValue:f}},Wo=["element"];function Uo(e,t){for(let o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}function Ko(e,t){let o=0,s=e.length-1;for(;o<=s;){const i=Math.floor((o+s)/2);if(e[i].element===t)return i;e[i].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?s=i-1:o=i+1}return o}const Tt=x.createContext({});function Ho(e){const t=x.useRef(null);return x.useEffect(()=>{t.current=e},[e]),t.current}const tt=()=>{};function qo(e){const[,t]=x.useState(),{registerDescendant:o=tt,unregisterDescendant:s=tt,descendants:i=[],parentId:c=null}=x.useContext(Tt),p=Uo(i,u=>u.element===e.element),r=Ho(i),b=i.some((u,h)=>r&&r[h]&&r[h].element!==u.element);return Bt(()=>{if(e.element)return o(v({},e,{index:p})),()=>{s(e.element)};t({})},[o,s,p,b,e]),{parentId:c,index:p}}function It(e){const{children:t,id:o}=e,[s,i]=x.useState([]),c=x.useCallback(b=>{let{element:u}=b,h=te(b,Wo);i(f=>{if(f.length===0)return[v({},h,{element:u,index:0})];const k=Ko(f,u);let d;if(f[k]&&f[k].element===u)d=f;else{const n=v({},h,{element:u,index:k});d=f.slice(),d.splice(k,0,n)}return d.forEach((n,a)=>{n.index=a}),d})},[]),p=x.useCallback(b=>{i(u=>u.filter(h=>b!==h.element))},[]),r=x.useMemo(()=>({descendants:s,registerDescendant:c,unregisterDescendant:p,parentId:o}),[s,c,p,o]);return l.jsx(Tt.Provider,{value:r,children:t})}function Xo(e){const{value:t,children:o}=e;return l.jsx(St.Provider,{value:t,children:l.jsx(It,{children:o})})}const Jo=(e,t,o)=>{e.$$publishEvent(t,o)},Go=({instance:e,params:t})=>{const o=x.useRef({}),s=x.useCallback(u=>o.current[u],[]),i=x.useCallback(u=>{o.current[u.id]=u},[]),c=x.useCallback(u=>{const h=v({},o.current);delete h[u],o.current=h,Jo(e,"removeNode",{id:u})},[e]),p=x.useCallback(u=>{if(u==null)return!1;let h=e.getNode(u);if(!h)return!1;if(h.disabled)return!0;for(;h.parentId!=null;)if(h=e.getNode(h.parentId),h.disabled)return!0;return!1},[e]),r=he(u=>Object.values(o.current).filter(h=>h.parentId===u).sort((h,f)=>h.index-f.index).map(h=>h.id));ne(e,{getNode:s,updateNode:i,removeNode:c,getChildrenIds:r,getNavigableChildrenIds:u=>{let h=e.getChildrenIds(u);return t.disabledItemsFocusable||(h=h.filter(f=>!e.isNodeDisabled(f))),h},isNodeDisabled:p})},We=({instance:e,params:t,models:o})=>{const s=x.useCallback(r=>Array.isArray(o.expanded.value)?o.expanded.value.indexOf(r)!==-1:!1,[o.expanded.value]),i=x.useCallback(r=>{var b;return!!((b=e.getNode(r))!=null&&b.expandable)},[e]),c=he((r,b)=>{if(b==null)return;let u;o.expanded.value.indexOf(b)!==-1?u=o.expanded.value.filter(h=>h!==b):u=[b].concat(o.expanded.value),t.onNodeToggle&&t.onNodeToggle(r,u),o.expanded.setValue(u)});ne(e,{isNodeExpanded:s,isNodeExpandable:i,toggleNodeExpansion:c,expandAllSiblings:(r,b)=>{const u=e.getNode(b),f=e.getChildrenIds(u.parentId).filter(d=>e.isNodeExpandable(d)&&!e.isNodeExpanded(d)),k=o.expanded.value.concat(f);f.length>0&&(o.expanded.setValue(k),t.onNodeToggle&&t.onNodeToggle(r,k))}})};We.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const Qo=[];We.getDefaultizedParams=e=>{var t;return v({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:Qo})};const Yo=(e,t,o)=>{if(t===o)return[t,o];const s=e.getNode(t),i=e.getNode(o);if(s.parentId===i.id||i.parentId===s.id)return i.parentId===s.id?[s.id,i.id]:[i.id,s.id];const c=[s.id],p=[i.id];let r=s.parentId,b=i.parentId,u=p.indexOf(r)!==-1,h=c.indexOf(b)!==-1,f=!0,k=!0;for(;!h&&!u;)f&&(c.push(r),u=p.indexOf(r)!==-1,f=r!==null,!u&&f&&(r=e.getNode(r).parentId)),k&&!u&&(p.push(b),h=c.indexOf(b)!==-1,k=b!==null,!h&&k&&(b=e.getNode(b).parentId));const d=u?r:b,n=e.getChildrenIds(d),a=c[c.indexOf(d)-1],m=p[p.indexOf(d)-1];return n.indexOf(a)<n.indexOf(m)?[t,o]:[o,t]},Ue=({instance:e,params:t,models:o})=>{const s=x.useRef(null),i=x.useRef(!1),c=x.useRef([]),p=n=>Array.isArray(o.selected.value)?o.selected.value.indexOf(n)!==-1:o.selected.value===n,r=(n,a,m=!1)=>{if(!t.disableSelection){if(m){if(Array.isArray(o.selected.value)){let g;o.selected.value.indexOf(a)!==-1?g=o.selected.value.filter(j=>j!==a):g=[a].concat(o.selected.value),t.onNodeSelect&&t.onNodeSelect(n,g),o.selected.setValue(g)}}else{const g=t.multiSelect?[a]:a;t.onNodeSelect&&t.onNodeSelect(n,g),o.selected.setValue(g)}s.current=a,i.current=!1,c.current=[]}},b=(n,a)=>{const[m,g]=Yo(e,n,a),j=[m];let y=m;for(;y!==g;)y=pe(e,y),j.push(y);return j},u=(n,a)=>{let m=o.selected.value.slice();const{start:g,next:j,current:y}=a;!j||!y||(c.current.indexOf(y)===-1&&(c.current=[]),i.current?c.current.indexOf(j)!==-1?(m=m.filter(S=>S===g||S!==y),c.current=c.current.filter(S=>S===g||S!==y)):(m.push(j),c.current.push(j)):(m.push(j),c.current.push(y,j)),t.onNodeSelect&&t.onNodeSelect(n,m),o.selected.setValue(m))},h=(n,a)=>{let m=o.selected.value.slice();const{start:g,end:j}=a;i.current&&(m=m.filter(E=>c.current.indexOf(E)===-1));let y=b(g,j);y=y.filter(E=>!e.isNodeDisabled(E)),c.current=y;let S=m.concat(y);S=S.filter((E,I)=>S.indexOf(E)===I),t.onNodeSelect&&t.onNodeSelect(n,S),o.selected.setValue(S)};return ne(e,{isNodeSelected:p,selectNode:r,selectRange:(n,a,m=!1)=>{if(t.disableSelection)return;const{start:g=s.current,end:j,current:y}=a;m?u(n,{start:g,next:j,current:y}):g!=null&&j!=null&&h(n,{start:g,end:j}),i.current=!0},rangeSelectToLast:(n,a)=>{s.current||(s.current=a);const m=i.current?s.current:a;e.selectRange(n,{start:m,end:Be(e)})},rangeSelectToFirst:(n,a)=>{s.current||(s.current=a);const m=i.current?s.current:a;e.selectRange(n,{start:m,end:Ae(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};Ue.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const Zo=[];Ue.getDefaultizedParams=e=>{var t,o,s;return v({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(o=e.multiSelect)!=null?o:!1,defaultSelected:(s=e.defaultSelected)!=null?s:e.multiSelect?Zo:null})};const ot=1e3;class el{constructor(t=ot){this.timeouts=new Map,this.cleanupTimeout=ot,this.cleanupTimeout=t}register(t,o,s){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof o=="function"&&o(),this.timeouts.delete(s.cleanupToken)},this.cleanupTimeout);this.timeouts.set(s.cleanupToken,i)}unregister(t){const o=this.timeouts.get(t.cleanupToken);o&&(this.timeouts.delete(t.cleanupToken),clearTimeout(o))}reset(){this.timeouts&&(this.timeouts.forEach((t,o)=>{this.unregister({cleanupToken:o})}),this.timeouts=void 0)}}class tl{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,o,s){this.registry.register(t,o,s)}unregister(t){this.registry.unregister(t)}reset(){}}class ol{}function ll(e){let t=0;return function(s,i,c){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new tl:new el);const[p]=x.useState(new ol),r=x.useRef(null),b=x.useRef();b.current=c;const u=x.useRef(null);if(!r.current&&b.current){const h=(f,k)=>{if(!k.defaultMuiPrevented){var d;(d=b.current)==null||d.call(b,f,k)}};r.current=s.$$subscribeEvent(i,h),t+=1,u.current={cleanupToken:t},e.registry.register(p,()=>{var f;(f=r.current)==null||f.call(r),r.current=null,u.current=null},u.current)}else!b.current&&r.current&&(r.current(),r.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));x.useEffect(()=>{if(!r.current&&b.current){const h=(f,k)=>{if(!k.defaultMuiPrevented){var d;(d=b.current)==null||d.call(b,f,k)}};r.current=s.$$subscribeEvent(i,h)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var h;(h=r.current)==null||h.call(r),r.current=null}},[s,i])}}const sl={registry:null},nl=ll(sl),Ke=({instance:e,params:t,state:o,setState:s,models:i,rootRef:c})=>{const p=he(d=>{const n=typeof d=="function"?d(o.focusedNodeId):d;s(a=>v({},a,{focusedNodeId:n}))}),r=x.useCallback(d=>o.focusedNodeId===d,[o.focusedNodeId]),b=he((d,n)=>{n&&(p(n),t.onNodeFocus&&t.onNodeFocus(d,n))});ne(e,{isNodeFocused:r,focusNode:b}),nl(e,"removeNode",({id:d})=>{p(n=>n===d&&c.current===ft(c.current).activeElement?e.getChildrenIds(null)[0]:n)});const u=d=>n=>{var a;if((a=d.onFocus)==null||a.call(d,n),n.target===n.currentTarget){const m=j=>{const y=e.getNode(j);return y&&(y.parentId==null||e.isNodeExpanded(y.parentId))};let g;Array.isArray(i.selected.value)?g=i.selected.value.find(m):i.selected.value!=null&&m(i.selected.value)&&(g=i.selected.value),g==null&&(g=e.getNavigableChildrenIds(null)[0]),e.focusNode(n,g)}},h=d=>n=>{var a;(a=d.onBlur)==null||a.call(d,n),p(null)},f=e.getNode(o.focusedNodeId),k=f?f.idAttribute:null;return{getRootProps:d=>({onFocus:u(d),onBlur:h(d),"aria-activedescendant":k??void 0})}};Ke.getInitialState=()=>({focusedNodeId:null});Ke.getDefaultizedParams=e=>{var t;return v({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function rl(e){return e&&e.length===1&&e.match(/\S/)}function lt(e,t,o){for(let s=t;s<e.length;s+=1)if(o===e[s])return s;return-1}const il=({instance:e,params:t,state:o})=>{const i=Zt().direction==="rtl",c=x.useRef({}),p=he((d,n)=>(c.current[d]=n,()=>{const a=v({},c.current);delete a[d],c.current=a}));ne(e,{mapFirstChar:p});const r=d=>(o.focusedNodeId!=null&&e.isNodeExpandable(o.focusedNodeId)&&(e.isNodeExpanded(o.focusedNodeId)?e.focusNode(d,pe(e,o.focusedNodeId)):e.isNodeDisabled(o.focusedNodeId)||e.toggleNodeExpansion(d,o.focusedNodeId)),!0),b=d=>{if(o.focusedNodeId==null)return!1;if(e.isNodeExpanded(o.focusedNodeId)&&!e.isNodeDisabled(o.focusedNodeId))return e.toggleNodeExpansion(d,o.focusedNodeId),!0;const n=e.getNode(o.focusedNodeId).parentId;return n?(e.focusNode(d,n),!0):!1},u=(d,n,a)=>{let m,g;const j=a.toLowerCase(),y=[],S=[];Object.keys(c.current).forEach(E=>{const I=e.getNode(E),R=I.parentId?e.isNodeExpanded(I.parentId):!0,$=t.disabledItemsFocusable?!1:e.isNodeDisabled(E);R&&!$&&(y.push(E),S.push(c.current[E]))}),m=y.indexOf(n)+1,m>=y.length&&(m=0),g=lt(S,m,j),g===-1&&(g=lt(S,0,j)),g>-1&&e.focusNode(d,y[g])},h=(d,n)=>{e.isNodeDisabled(pe(e,n))||e.selectRange(d,{end:pe(e,n),current:n},!0)},f=(d,n)=>{e.isNodeDisabled(Re(e,n))||e.selectRange(d,{end:Re(e,n),current:n},!0)},k=d=>n=>{var a;(a=d.onKeyDown)==null||a.call(d,n);let m=!1;const g=n.key;if(n.altKey||n.currentTarget!==n.target||o.focusedNodeId==null)return;const j=n.ctrlKey||n.metaKey;switch(g){case" ":!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&(m=!0,t.multiSelect&&n.shiftKey?e.selectRange(n,{end:o.focusedNodeId}):t.multiSelect?e.selectNode(n,o.focusedNodeId,!0):e.selectNode(n,o.focusedNodeId)),n.stopPropagation();break;case"Enter":e.isNodeDisabled(o.focusedNodeId)||(e.isNodeExpandable(o.focusedNodeId)?(e.toggleNodeExpansion(n,o.focusedNodeId),m=!0):t.disableSelection||(m=!0,t.multiSelect?e.selectNode(n,o.focusedNodeId,!0):e.selectNode(n,o.focusedNodeId))),n.stopPropagation();break;case"ArrowDown":t.multiSelect&&n.shiftKey&&!t.disableSelection&&h(n,o.focusedNodeId),e.focusNode(n,pe(e,o.focusedNodeId)),m=!0;break;case"ArrowUp":t.multiSelect&&n.shiftKey&&!t.disableSelection&&f(n,o.focusedNodeId),e.focusNode(n,Re(e,o.focusedNodeId)),m=!0;break;case"ArrowRight":i?m=b(n):m=r(n);break;case"ArrowLeft":i?m=r(n):m=b(n);break;case"Home":t.multiSelect&&j&&n.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&e.rangeSelectToFirst(n,o.focusedNodeId),e.focusNode(n,Ae(e)),m=!0;break;case"End":t.multiSelect&&j&&n.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(o.focusedNodeId)&&e.rangeSelectToLast(n,o.focusedNodeId),e.focusNode(n,Be(e)),m=!0;break;default:g==="*"?(e.expandAllSiblings(n,o.focusedNodeId),m=!0):t.multiSelect&&j&&g.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(n,{start:Ae(e),end:Be(e)}),m=!0):!j&&!n.shiftKey&&rl(g)&&(u(n,o.focusedNodeId,g),m=!0)}m&&(n.preventDefault(),n.stopPropagation())};return{getRootProps:d=>({onKeyDown:k(d)})}},al=({instance:e,params:t})=>{const o=At(t.id);return{getRootProps:()=>({id:o}),contextValue:{treeId:o,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},cl=[Go,We,Ue,Ke,il,al],dl=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],ul=e=>{const{classes:t}=e;return Le({root:["root"]},Oo,t)},st=K("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),pl=x.forwardRef(function(t,o){const s=Ve({props:t,name:"MuiTreeView"}),i=s,c=s,{disabledItemsFocusable:p,expanded:r,defaultExpanded:b,onNodeToggle:u,onNodeFocus:h,disableSelection:f,defaultSelected:k,selected:d,multiSelect:n,onNodeSelect:a,id:m,defaultCollapseIcon:g,defaultEndIcon:j,defaultExpandIcon:y,defaultParentIcon:S,children:E}=c,I=te(c,dl),{getRootProps:R,contextValue:$}=zo({disabledItemsFocusable:p,expanded:r,defaultExpanded:b,onNodeToggle:u,onNodeFocus:h,disableSelection:f,defaultSelected:k,selected:d,multiSelect:n,onNodeSelect:a,id:m,defaultCollapseIcon:g,defaultEndIcon:j,defaultExpandIcon:y,defaultParentIcon:S,plugins:cl,rootRef:o}),T=ul(s),B=Ao({elementType:st,externalSlotProps:{},externalForwardedProps:I,className:T.root,getSlotProps:R,ownerState:i});return l.jsx(Xo,{value:$,children:l.jsx(st,v({},B,{children:E}))})}),vt=()=>x.useContext(St);function fl(e){const{instance:t,multiSelect:o}=vt(),s=t?t.isNodeExpandable(e):!1,i=t?t.isNodeExpanded(e):!1,c=t?t.isNodeFocused(e):!1,p=t?t.isNodeSelected(e):!1,r=t?t.isNodeDisabled(e):!1;return{disabled:r,expanded:i,selected:p,focused:c,handleExpansion:f=>{if(t&&!r){c||t.focusNode(f,e);const k=o&&(f.shiftKey||f.ctrlKey||f.metaKey);s&&!(k&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(f,e)}},handleSelection:f=>{t&&!r&&(c||t.focusNode(f,e),o&&(f.shiftKey||f.ctrlKey||f.metaKey)?f.shiftKey?t.selectRange(f,{end:e}):t.selectNode(f,e,!0):t.selectNode(f,e))},preventSelection:f=>{(f.shiftKey||f.ctrlKey||f.metaKey||r)&&f.preventDefault()}}}const ml=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Et=x.forwardRef(function(t,o){const{classes:s,className:i,displayIcon:c,expansionIcon:p,icon:r,label:b,nodeId:u,onClick:h,onMouseDown:f}=t,k=te(t,ml),{disabled:d,expanded:n,selected:a,focused:m,handleExpansion:g,handleSelection:j,preventSelection:y}=fl(u),S=r||p||c,E=R=>{y(R),f&&f(R)},I=R=>{g(R),j(R),h&&h(R)};return l.jsxs("div",v({},k,{className:me(i,s.root,n&&s.expanded,a&&s.selected,m&&s.focused,d&&s.disabled),onClick:I,onMouseDown:E,ref:o,children:[l.jsx("div",{className:s.iconContainer,children:S}),l.jsx("div",{className:s.label,children:b})]}))});function hl(e){return _e("MuiTreeItem",e)}const X=Oe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),bl=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],xl=e=>{const{classes:t}=e;return Le({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},hl,t)},gl=K("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),yl=K(Et,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${X.iconContainer}`]:t.iconContainer},t.label&&{[`& .${X.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${X.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${X.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${X.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${X.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${X.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${X.label}`]:v({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),kl=K(kt,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),jl=x.forwardRef(function(t,o){const s=Ve({props:t,name:"MuiTreeItem"}),{children:i,className:c,collapseIcon:p,ContentComponent:r=Et,ContentProps:b,endIcon:u,expandIcon:h,disabled:f,icon:k,id:d,label:n,nodeId:a,onClick:m,onMouseDown:g,TransitionComponent:j=kt,TransitionProps:y}=s,S=te(s,bl),{icons:E,multiSelect:I,disabledItemsFocusable:R,treeId:$,instance:T}=vt();let B;d!=null?B=d:$&&a&&(B=`${$}-${a}`);const[H,je]=x.useState(null),Ne=x.useRef(null),oe=Me(je,o),L=x.useMemo(()=>({element:H,id:a}),[a,H]),{index:le,parentId:re}=qo(L),q=!!(Array.isArray(i)?i.length:i),Q=T?T.isNodeExpanded(a):!1,ie=T?T.isNodeFocused(a):!1,se=T?T.isNodeSelected(a):!1,ae=T?T.isNodeDisabled(a):!1,Y=v({},s,{expanded:Q,focused:ie,selected:se,disabled:ae}),M=xl(Y);let ce,de;q&&(Q?de=p||E.defaultCollapseIcon:de=h||E.defaultExpandIcon),q?ce=E.defaultParentIcon:ce=u||E.defaultEndIcon,x.useEffect(()=>{if(T&&le!==-1)return T.updateNode({id:a,idAttribute:B,index:le,parentId:re,expandable:q,disabled:f}),()=>T.removeNode(a)},[T,re,le,a,q,f,B]),x.useEffect(()=>{if(T&&n){var O,ee;return T.mapFirstChar(a,((O=(ee=Ne.current)==null?void 0:ee.textContent)!=null?O:"").substring(0,1).toLowerCase())}},[T,a,n]);let Z;I?Z=se:se&&(Z=!0);function Ce(O){if(O.target===O.currentTarget){let C;typeof O.target.getRootNode=="function"?C=O.target.getRootNode():C=ft(O.target),C.getElementById($).focus({preventScroll:!0})}const ee=!R&&ae;T&&!ie&&O.currentTarget===O.target&&!ee&&T.focusNode(O,a)}return l.jsxs(gl,v({className:me(M.root,c),role:"treeitem","aria-expanded":q?Q:void 0,"aria-selected":Z,"aria-disabled":ae||void 0,id:B,tabIndex:-1},S,{ownerState:Y,onFocus:Ce,ref:oe,children:[l.jsx(yl,v({as:r,ref:Ne,classes:{root:M.content,expanded:M.expanded,selected:M.selected,focused:M.focused,disabled:M.disabled,iconContainer:M.iconContainer,label:M.label},label:n,nodeId:a,onClick:m,onMouseDown:g,icon:k,expansionIcon:de,displayIcon:ce,ownerState:Y},b)),i&&l.jsx(It,{id:a,children:l.jsx(kl,v({as:j,unmountOnExit:!0,className:M.group,in:Q,component:"ul",role:"group"},y,{children:i}))})]}))});function He({data:e,...t}){return!e||!e.length?null:l.jsx(Nl,{...t,children:e.map(o=>l.jsx("a",{href:o.url,target:"_blank",rel:"noreferrer",children:l.jsx("img",{src:o.url,alt:o.alt||""})},o.url))})}He.propTypes={data:D.arrayOf(D.shape({url:D.string,alt:D.string}))};He.defaultProps={data:[]};const Nl=G(N)`
23
+ display: flex;
24
+ justify-content: flex-start;
25
+ flex-wrap: wrap;
26
+ margin-bottom: -12px;
27
+ a {
28
+ display: flex;
29
+ }
30
+ img {
31
+ height: 128px;
32
+ cursor: pointer;
33
+ margin-right: 12px;
34
+ margin-bottom: 12px;
35
+ }
36
+ `,Pe=(e,t)=>{const o=[...e];for(;o.length>0;){const s=o.shift();if(s.id===t)return s;s.children&&o.push(...s.children)}return[]};function qe({icon:e}){return e?no(e)?l.jsx("img",{className:"resource-icon",src:e,alt:"icon"}):l.jsx(Ot,{className:"resource-icon",icon:e}):null}qe.propTypes={icon:D.string};qe.defaultProps={icon:""};function Xe({disabled:e,data:t,onChange:o,value:s}){const i=s;function c(d,n=[]){return n.push(d.id),d.children&&d.children.forEach(a=>c(a,n)),n}const p=d=>c(Pe(t,d)),r=(d,n=[])=>{const a=Pe(t,d);return a.parent?(n.push(a.parent),r(a.parent,n)):n};function b(d,n){const a=p(d.id),m=a.indexOf(d.id);return a.splice(m,1),a.every(g=>i.concat(n).includes(g))}const u=(d,n)=>{d.stopPropagation();const a=p(n),m=r(n);if(i.includes(n)){const g=i.filter(j=>!a.concat(m).includes(j));o(g)}else{const g=a;for(let j=0;j<m.length;++j)b(Pe(t,m[j]),g)&&g.push(m[j]);o([...i].concat(g))}},h=d=>{d.stopPropagation()},f=t.some(d=>{var n;return((n=d.children)==null?void 0:n.length)>0}),k=d=>{var n;return l.jsx(jl,{nodeId:d.id,label:l.jsx(Xt,{onClick:h,control:l.jsx(Jt,{size:"small",checked:i.indexOf(d.id)!==-1,tabIndex:-1,disableRipple:!0,onClick:a=>u(a,d.id),disabled:e}),label:l.jsxs(N,{className:"content",children:[l.jsxs(N,{display:"flex",alignItems:"center",children:[d.icon&&l.jsx(qe,{icon:d.icon}),l.jsx(N,{className:"name",children:d.name}),d.url&&l.jsx("a",{href:d.url,target:"_blank",rel:"noreferrer",className:"link",children:l.jsx(io,{className:"link-icon"})})]}),!!d.description&&l.jsx(N,{className:"description",children:d.description}),!!((n=d.images)!=null&&n.length)&&l.jsx(He,{className:"images",data:d.images})]})}),children:Array.isArray(d.children)?d.children.map(k):null},d.id)};return l.jsx(Cl,{className:yt(!f&&"no-children"),multiSelect:!0,defaultCollapseIcon:l.jsx(ro,{}),defaultExpandIcon:l.jsx(Kt,{}),selected:i,children:t.map(d=>k(d))})}Xe.propTypes={data:D.array,value:D.array,onChange:D.func,disabled:D.bool};Xe.defaultProps={data:[],value:[],onChange:()=>{},disabled:!1};const Cl=G(pl)`
37
+ &.no-children {
38
+ .MuiTreeItem-content {
39
+ padding: 0;
40
+ .MuiTreeItem-iconContainer {
41
+ display: none;
42
+ }
43
+ .MuiTreeItem-label {
44
+ padding-left: 0;
45
+ }
46
+ }
47
+ }
48
+ .MuiTreeItem-content {
49
+ align-items: flex-start;
50
+ .MuiTreeItem-iconContainer {
51
+ transform: translateY(10px);
52
+ }
53
+ &.Mui-selected {
54
+ background-color: transparent;
55
+ }
56
+ }
57
+ .MuiTreeItem-label {
58
+ cursor: default;
59
+ }
60
+ .MuiFormControlLabel-root {
61
+ align-items: flex-start;
62
+ }
63
+ .content {
64
+ padding-top: 6px;
65
+ }
66
+ .name {
67
+ font-size: 16px;
68
+ font-weight: 700;
69
+ }
70
+ .resource-icon {
71
+ margin-right: 2px;
72
+ font-size: 16px;
73
+ }
74
+ img.resource-icon {
75
+ width: 1rem;
76
+ height: 1rem;
77
+ }
78
+ .link {
79
+ margin-left: 8px;
80
+ font-size: 16px;
81
+ color: ${({theme:e})=>e.palette.primary.main};
82
+ display: flex;
83
+ }
84
+ .link-icon {
85
+ font-size: inherit;
86
+ }
87
+ .description {
88
+ font-size: 14px;
89
+ color: ${({theme:e})=>e.palette.text.secondary};
90
+ }
91
+ `,Rt=(e,t)=>(e.forEach(o=>{t&&(o.parent=t),(o.children||[]).forEach(s=>{s.parent=o.id,Rt(s.children||[],s.id)})}),e);function Sl(e,t){return e.length!==t.length?!1:e.every((o,s)=>o===t[s])}function Je({app:e,component:t,projectId:o,release:s,error:i,onSave:c}){const{t:p,locale:r}=be(),{api:b}=xe(),[u,h]=x.useState([]),[f,k]=x.useState([]),[d,n]=x.useState([]),[a,m]=x.useState(!1),g=x.useMemo(()=>Sl(f,d)?null:p("blocklet.publish.resourceChangedWarning"),[f,d,p]),j=s.id,y=s.status==="published",{exportApi:S="/"}=(t==null?void 0:t.meta.resource)||{},E=new URL(fe("http://127.0.0.1",t.mountPoint,S||"/").replace(/\/+/g,"/"));E.searchParams.set("projectId",o),E.searchParams.set("releaseId",j),E.searchParams.set("local",r);const I=`${E.pathname}${E.search}`,R=async T=>{try{await b.updateSelectedResources({input:{did:e.meta.did,projectId:o,releaseId:j,componentDid:t.meta.did,resources:T}})}catch(B){w.error(B.message)}},$=async()=>{const T=f;try{m(!0),await Ye.post(I,{resources:T,projectId:o,releaseId:j,locale:r}),w.success(p("common.saveSuccess")),m(!1),R(f),n(f),c(f)}catch(B){m(!1),w.error(B.message)}};return x.useEffect(()=>{Ye.get(I).then(T=>{var H;const B=Rt(((H=T.data)==null?void 0:H.resources)||[]);h(B)}).catch(T=>{w.error(T.message)}),b.getSelectedResources({input:{did:e.meta.did,projectId:o,releaseId:j,componentDid:t.meta.did}}).then(T=>{const B=(T==null?void 0:T.resources)||[];k(B),n(B)}).catch(T=>{w.error(T.message)})},[I]),t.status!=="running"?l.jsx(nt,{children:l.jsx(N,{pt:6,children:p("blocklet.publish.componentNotRunning",{name:t.meta.title})})}):[l.jsx(nt,{className:yt(i&&"error"),children:l.jsxs(N,{children:[l.jsx(Xe,{data:u,value:f,onChange:T=>{k(T)},disabled:a||y}),!y&&l.jsx(N,{className:"footer",children:l.jsx(V,{variant:"contained",disabled:a,onClick:()=>$(),children:p("common.save")})})]})}),!!g&&l.jsx(N,{color:"warning.main",mt:1,fontSize:14,children:g}),!!i&&l.jsx(N,{color:"error.main",mt:1,fontSize:14,children:i})]}Je.propTypes={component:D.object.isRequired,app:D.object.isRequired,projectId:D.string.isRequired,error:D.string,release:D.shape({id:D.string.isRequired,status:D.string}),onSave:D.func};Je.defaultProps={error:"",release:{id:""},onSave:()=>{}};const nt=G(N)`
92
+ border: 1px solid #ccc;
93
+ &.error {
94
+ border-color: ${e=>e.theme.palette.error.main};
95
+ }
96
+ border-radius: 4px;
97
+ padding: 16px;
98
+ padding-bottom: 0px;
99
+ max-height: 600px;
100
+ overflow-y: auto;
101
+ .footer {
102
+ border-top: 1px solid #ddd;
103
+ display: flex;
104
+ padding: 12px 0;
105
+ margin-top: 12px;
106
+ position: sticky;
107
+ bottom: 0;
108
+ background: #fff;
109
+ z-index: 10;
110
+ }
111
+ `,rt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],it=1024*1024*10;var dt;const we=(dt=window.env)==null?void 0:dt.serverEndpoint,at=x.lazy(()=>Lt(()=>import("./react-5TzuQvhn.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Uploader}))),Tl=(e,t,o)=>{const s=[];return e.blockletTitle||s.push({param:"blockletTitle",message:o("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Ie.valid(e.blockletVersion)||s.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):s.push({param:"blockletVersion",message:o("blocklet.publish.errorTip.noVersion")}),t===F.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||s.push({param:"blockletDescription",message:o("blocklet.publish.errorTip.noDescription")}),e.note||s.push({param:"note",message:o("blocklet.publish.errorTip.noNote")})),s.length?s:null},Il=({tabs:e,blocklet:t,ancestors:o=[]})=>{const s=t.meta.did;e.push({label:l.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(gt,{size:24,blocklet:t,ancestors:o}),l.jsx(N,{ml:"4px",className:"text",children:l.jsx(N,{children:t.meta.title})})]},s),value:s})},ct=e=>{const t=Mt(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","note"]);return t.blockletScreenshots||(t.blockletScreenshots=[]),t};function Ge({...e}){var Ce,O,ee;const t=pt(),{projectId:o,releaseId:s,componentDid:i}=ye(),{t:c}=be(),{blocklet:p}=ge(),[r,b]=zt(null),[u,h]=x.useState({}),[f,k]=x.useState(!1),[d,n]=x.useState(!1),[a,m]=x.useState(null),{api:g}=xe(),j=x.useRef(null),y=x.useRef(null),[S,E]=x.useState(),[I,R]=x.useState(),$=s==="create"?"":s,T=s==="create"?"create":"edit",B=[],H=((p==null?void 0:p.children)||[]).filter(C=>{var A;return(A=C.meta.resource)==null?void 0:A.exportApi}).filter(C=>!i||C.meta.did===i);H.forEach(C=>{Il({tabs:B,blocklet:C,t:c,ancestors:[p]})});const[je,Ne]=x.useState((Ce=B[0])==null?void 0:Ce.value),oe=(a==null?void 0:a.status)==="published",L=oe,le=({typeOnly:C}={})=>{g.getProject({input:{did:p.meta.did,projectId:o}}).then(A=>{k(!1);const P=A.project||{};if(C){E(P.type);return}P.blockletVersion?Ie.valid(P.blockletVersion)&&(P.blockletVersion=Ie.inc(P.blockletVersion,"patch")):P.blockletVersion="1.0.0",b(ct(P)),E(P.type)}).catch(A=>{k(!1),w.error(Ee(A))})},re=()=>{g.getRelease({input:{did:p.meta.did,projectId:o,releaseId:$}}).then(C=>{k(!1),b(ct(C==null?void 0:C.release)),m(C==null?void 0:C.release)}).catch(C=>{k(!1),w.error(Ee(C))})},q=x.useCallback(()=>{if(T==="edit"){if(!$){w.error("Empty release id");return}re(),le({typeOnly:!0})}T==="create"&&le()},[T,$]);x.useEffect(()=>{q()},[q]);const Q=C=>{const A=Tl(r,C,c);if(A){w.error(A.map(W=>W.message).join("; ")),h(A.reduce((W,U)=>({...W,[U.param]:U.message}),{}));return}const P={...r};if(P.blockletVersion=Ie.valid(P.blockletVersion),!P.blockletVersion){w.error("Invalid Blocklet Version"),h({blockletVersion:"Invalid Blocklet Version"});return}P.blockletTitle=(P.blockletTitle||"").trim(),P.blockletDescription=(P.blockletDescription||"").trim(),P.blockletIntroduction=(P.blockletIntroduction||"").trim(),P.note=(P.note||"").trim(),n(C),k(!0),g.createRelease({input:{...P,did:p.meta.did,projectId:o,releaseId:$,status:C}}).then(W=>{var U;if(n(!1),k(!1),C==="draft"?w.success(c("blocklet.publish.saveDraftSuccess")):w.success(c("blocklet.publish.createReleaseSuccess")),T==="create"){const wt=(U=W==null?void 0:W.release)==null?void 0:U.id;t(`../${o}/${wt}`,{replace:!0})}else re()}).catch(W=>{n(!1),k(!1);const U=Ee(W);w.error(U),/resource.*empty/.test(U)&&h({blockletResource:U})})};if(!r&&f)return l.jsx(ke,{});if(!r)return null;const ie=`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/logo/upload`,se=`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/screenshot/upload`,ae=r!=null&&r.blockletLogo?`${ie}/${r.blockletLogo}`:`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,Y=((r==null?void 0:r.blockletScreenshots)||[]).filter(Boolean).map(C=>`${se}/${C}`),M=H.find(C=>C.meta.did===je),ce=M?l.jsx(N,{children:l.jsx(Je,{error:u.blockletResource,app:p,component:M,projectId:o,release:{...a,id:$},onSave:C=>{C.length&&h({blockletResource:""})}})}):l.jsx(N,{display:"flex",mt:-3,children:l.jsx(_t,{children:c("common.empty")})}),de=C=>{Ne(C)};let Z=null;if(oe&&we){const C=fe(we,`/api/project/${p.meta.did}/${o}/${$}/release/blocklet.json`);if(S==="pack"){const A=new URL(we);A.pathname=fe(A.pathname,"/launch-blocklet/agreement"),A.searchParams.set("blocklet_meta_url",C),Z=l.jsx(V,{variant:"outlined",style:{marginRight:8},children:l.jsx("a",{href:A.href,target:"_blank",rel:"noreferrer",children:c("common.install")})})}else Z=l.jsxs(l.Fragment,{children:[l.jsx(V,{variant:"outlined",style:{marginRight:8},onClick:()=>R(C),children:c("common.install")}),l.jsx(oo,{fullWidth:!0,maxWidth:"sm",open:I,onClose:()=>R(""),children:l.jsxs(N,{sx:{py:5,px:4,wordBreak:"break-all"},children:[l.jsx(_,{variant:"h6",sx:{mb:2},children:c("blocklet.publish.installResourceTip")}),l.jsx(so,{children:I}),l.jsxs(_,{sx:{mt:2},children:[c("blocklet.publish.installResourceTip2"),l.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:c("blocklet.publish.installResourceHelp")})]})]})})]})}return l.jsxs(vl,{...e,children:[l.jsxs(N,{className:"sticky-header",children:[l.jsxs(Fe,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(z,{to:"../",children:c("common.publish")}),l.jsx(z,{to:`../${o}`,children:(r==null?void 0:r.blockletTitle)||"Blocklet"}),l.jsx(_,{color:"text.primary",children:T==="create"?c("common.create"):(r==null?void 0:r.blockletVersion)||c("common.edit")})]}),l.jsxs(N,{display:"flex",children:[!oe&&l.jsxs(l.Fragment,{children:[l.jsxs(V,{variant:"outlined",disabled:f||d,onClick:()=>Q(F.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[d===F.PROJECT.RELEASE_STATUS.draft&&l.jsx($e,{size:14,sx:{mr:.5}}),c("blocklet.publish.saveDraft")]}),l.jsxs(V,{variant:"contained",disabled:f||d,onClick:()=>Q(F.PROJECT.RELEASE_STATUS.published),children:[d===F.PROJECT.RELEASE_STATUS.published&&l.jsx($e,{size:14,sx:{mr:.5},color:"inherit"}),c("common.release")]})]}),oe&&l.jsxs(l.Fragment,{children:[Z,l.jsx(V,{variant:"contained",children:l.jsx("a",{href:fe(`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/${$}/download/${(a.files||[])[0]}`),children:c("common.download")})})]})]})]}),l.jsxs(N,{children:[S==="pack"&&l.jsx(lo,{type:"info",style:{width:"100%"},children:c("blocklet.publish.packTip")}),l.jsx(N,{pt:3}),l.jsxs(N,{display:"flex",className:"section",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.productTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(J,{label:`Blocklet ${c("common.title")}`,placeholder:`Blocklet ${c("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:L},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:r.blockletTitle||"",onChange:C=>{h({blockletTitle:""}),b({blockletTitle:C.target.value})},error:!!u.blockletTitle,helperText:u.blockletTitle||""}),l.jsx(J,{label:`Blocklet ${c("common.description")}`,placeholder:`Blocklet ${c("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:L},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletDescription||"",onChange:C=>{h({blockletDescription:""}),b({blockletDescription:C.target.value})},error:!!u.blockletDescription,helperText:u.blockletDescription||"",sx:{mt:3}}),l.jsx(J,{label:`Blocklet ${c("common.introduction")}`,placeholder:`Blocklet ${c("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:L,endAdornment:l.jsxs(De,{position:"end",children:[((O=r==null?void 0:r.blockletIntroduction)==null?void 0:O.length)||0," / ",F.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:r.blockletIntroduction||"",onChange:C=>{h({blockletIntroduction:""}),b({blockletIntroduction:C.target.value.slice(0,F.PROJECT.MAX_INTRO_LENGTH)})},error:!!u.blockletIntroduction,helperText:u.blockletIntroduction||"",sx:{mt:3}})]})]}),l.jsxs(N,{display:"flex",mt:3,className:"section",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.versionTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(J,{required:!0,label:`Blocklet ${c("common.version")}`,placeholder:`Blocklet ${c("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:L},autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletVersion,onChange:C=>{h({blockletVersion:""}),b({blockletVersion:C.target.value})},error:!!u.blockletVersion,helperText:u.blockletVersion||""}),l.jsx(J,{label:c("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:L,endAdornment:l.jsxs(De,{position:"end",children:[((ee=r==null?void 0:r.note)==null?void 0:ee.length)||0," / ",F.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:r.note,onChange:C=>{h({note:""}),b({note:C.target.value.slice(0,F.PROJECT.MAX_NOTE_LENGTH)})},error:!!u.note,helperText:u.note||"",sx:{mt:3}})]})]}),l.jsxs(N,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.imgTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsxs(N,{display:"flex",children:[l.jsx(_,{variant:"subtitle1",sx:{mr:2},children:c("common.logo")}),l.jsx(N,{sx:{flex:1,cursor:L?"default":"pointer"},children:l.jsx(ao,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:ae,onClick:()=>!L&&j.current.open()})})]}),l.jsxs(N,{display:"flex",mt:3,children:[l.jsx(_,{variant:"subtitle1",sx:{mr:2},children:c("common.screenshot")}),l.jsxs(N,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[Y.map((C,A)=>l.jsxs(N,{className:"screenshot",children:[l.jsx("img",{alt:"screenshot",src:C}),!L&&l.jsx(ve,{className:"action",onClick:()=>{const P=[...r.blockletScreenshots];P.splice(A,1),b({blockletScreenshots:P})},children:l.jsx(eo,{})})]})),Y.length<5&&l.jsx(N,{sx:{width:200,height:140,background:"#eee",cursor:L?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!L&&y.current.open(),children:"+"})]})]})]}),l.jsx(at,{id:"​uploader-logo",ref:j,popup:!0,onUploadFinish:C=>{b({blockletLogo:C.data.filename}),j.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ie,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:rt,maxFileSize:it,maxNumberOfFiles:1}}},"uploader-logo"),l.jsx(at,{id:"​uploader-screenshot",ref:y,popup:!0,onUploadFinish:C=>{var P;const A=r.blockletScreenshots||[];A.push((P=C.data)==null?void 0:P.filename),b({blockletScreenshots:A}),y.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:se,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:rt,maxFileSize:it,maxNumberOfFiles:5-Y.length}}},"uploader-screenshot")]}),l.jsxs(N,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(N,{className:"left",children:l.jsx(_,{variant:"h3",children:c("blocklet.publish.resourceTitle")})}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(to,{tabs:B,current:je,onChange:de,sx:{ml:-2,mt:-1.5}}),l.jsx(N,{children:ce})]})]})]})]})}Ge.propTypes={};Ge.defaultProps={};const vl=G.div`
112
+ .sticky-header {
113
+ margin-top: -12px;
114
+ padding: 12px 0;
115
+ position: sticky;
116
+ top: 0;
117
+ z-index: 99;
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: space-between;
121
+ background-color: #fff;
122
+ padding-bottom: 12px;
123
+ border-bottom: ${({theme:e})=>`1px solid ${e.palette.divider}`};
124
+ }
125
+ .screenshot {
126
+ margin-bottom: 16px;
127
+ max-width: 200px;
128
+ max-height: 140px;
129
+ width: 200px;
130
+ height: 140px;
131
+ overflow: hidden;
132
+ display: flex;
133
+ align-items: center;
134
+ justify-content: center;
135
+ background-color: #eee;
136
+ margin-right: 16px;
137
+ position: relative;
138
+ .action {
139
+ visibility: hidden;
140
+ position: absolute;
141
+ top: 0px;
142
+ right: 0px;
143
+ background-color: rgba(0, 0, 0, 0.2);
144
+ color: rgba(255, 255, 255, 0.8);
145
+ }
146
+ &:hover .action {
147
+ visibility: visible;
148
+ }
149
+ }
150
+ .screenshot img {
151
+ width: 100%; /* 图像宽度填充容器 */
152
+ height: auto; /* 图像高度自适应 */
153
+ }
154
+ .section {
155
+ max-width: 800px;
156
+ &.full-width {
157
+ max-width: 100%;
158
+ }
159
+ .MuiTypography-h3 {
160
+ font-size: 1.1rem;
161
+ font-weight: 700;
162
+ }
163
+ .left {
164
+ flex-shrink: 0;
165
+ width: 140px;
166
+ }
167
+ .MuiTabs-indicator {
168
+ display: none;
169
+ }
170
+ .MuiTypography-subtitle1 {
171
+ width: 120px;
172
+ font-weight: 700;
173
+ font-size: 1rem;
174
+ ${({theme:e})=>e.breakpoints.down("sm")} {
175
+ width: 80px;
176
+ }
177
+ }
178
+ }
179
+ .MuiButtonBase-root {
180
+ a {
181
+ color: inherit;
182
+ }
183
+ }
184
+ .MuiInputBase-multiline .MuiInputAdornment-positionEnd {
185
+ align-self: flex-end;
186
+ .MuiTypography-root {
187
+ font-size: 0.8rem;
188
+ }
189
+ font-size: 0.8rem;
190
+ }
191
+ `;function Pt({padding:e}){const{blocklet:t}=ge(),o=Vt(),{componentDid:s}=ye();if(x.useEffect(()=>{if(s&&window.parent){const c=`${o.pathname}${o.search}`;window.parent.postMessage({event:"popstate",page:"publish",componentDid:s,path:c},"*")}},[s,o]),!t)return null;const i={};return e&&(i.padding=e),l.jsx(El,{style:i,children:l.jsxs(Ft,{children:[l.jsx(Te,{path:"/",element:l.jsx(jt,{})}),l.jsx(Te,{path:"/create",element:l.jsx(ze,{})}),l.jsx(Te,{path:"/:projectId",element:l.jsx(Nt,{})}),l.jsx(Te,{path:"/:projectId/:releaseId",element:l.jsx(Ge,{})})]})})}Pt.propTypes={padding:D.oneOfType([D.string,D.number])};Pt.defaultProps={padding:""};const El=G(N)`
192
+ a {
193
+ color: ${({theme:e})=>e.palette.primary.main};
194
+ }
195
+ `;export{Pt as default};
196
+ function __vite__mapDeps(indexes) {
197
+ if (!__vite__mapDeps.viteFileDeps) {
198
+ __vite__mapDeps.viteFileDeps = ["assets/react-5TzuQvhn.js","assets/index-Wd4YrnM9.js","assets/index-TCTrVMXW.css","assets/index-Z2TAkC1I.js","assets/preact.module-yJdvQMHZ.js","assets/index-UPj3aFBg.js","assets/index--CkleDlS.js","assets/toUpper-3Gzsyh0C.js","assets/uniqBy-p8TICBgq.js","assets/react-yqGXLqWb.css"]
199
+ }
200
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
201
+ }
@@ -1 +1 @@
1
- import{aO as a}from"./index-tI696upG.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{aM as a}from"./index-Wd4YrnM9.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 +1 @@
1
- import{aO as O,bG as j}from"./index-tI696upG.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:j,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=O(h),k=J({__proto__:null,default:N},[h]);export{k as i};
1
+ import{aM as j,bK as O}from"./index-Wd4YrnM9.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var b=l.pop(),g=l.join("."),c=this._dsf._obs,f=c[g]||{},n=f[b];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[g]||{},n=f[b],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const M=j(h),S=J({__proto__:null,default:M},[h]);export{S as i};
@@ -0,0 +1 @@
1
+ import{r as a,N as e,j as t,ax as n,Q as o}from"./index-Wd4YrnM9.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
@@ -0,0 +1,38 @@
1
+ import{aM as oe,g as $,a as k,r as p,c as x,_ as m,f as N,aV as te,j as d,h as C,i as R,cs as re,cm as ae,bc as se,P as c,cn as y,c9 as z,cg as ne,V as ie}from"./index-Wd4YrnM9.js";import{s as h,u as E,r as le}from"./styled-QR9SQDeC.js";import{B as ce,h as de,d as O,b as pe,F as ue}from"./formControlState-3f1dynOx.js";import{T as me}from"./Typography-4MXIXIgI.js";const ge={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},fe=e=>{const{details:o,errors:t,response:r}=e;return Array.isArray(t)?t.map(a=>a.message).join(`
2
+ `):Array.isArray(o)?`Validate failed: ${o.map(s=>{const n=s.message.replace(/["]/g,"'");return`${s.path.join(".")}: ${n}`}).join(";")}`:r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:e.message};var xe=fe;const Ke=oe(xe);function he(e){return k("MuiDialog",e)}const be=$("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),w=be,ye=p.createContext({}),Ce=ye,ve=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],De=h(ce,{name:"MuiDialog",slot:"Backdrop",overrides:(e,o)=>o.backdrop})({zIndex:-1}),$e=e=>{const{classes:o,scroll:t,maxWidth:r,fullWidth:a,fullScreen:s}=e,n={root:["root"],container:["container",`scroll${x(t)}`],paper:["paper",`paperScroll${x(t)}`,`paperWidth${x(String(r))}`,a&&"paperFullWidth",s&&"paperFullScreen"]};return R(n,he,o)},ke=h(de,{name:"MuiDialog",slot:"Root",overridesResolver:(e,o)=>o.root})({"@media print":{position:"absolute !important"}}),Te=h("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.container,o[`scroll${x(t.scroll)}`]]}})(({ownerState:e})=>m({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),We=h(O,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.paper,o[`scrollPaper${x(t.scroll)}`],o[`paperWidth${x(String(t.maxWidth))}`],t.fullWidth&&o.paperFullWidth,t.fullScreen&&o.paperFullScreen]}})(({theme:e,ownerState:o})=>m({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},o.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},o.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!o.maxWidth&&{maxWidth:"calc(100% - 64px)"},o.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${w.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},o.maxWidth&&o.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[o.maxWidth]}${e.breakpoints.unit}`,[`&.${w.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[o.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},o.fullWidth&&{width:"calc(100% - 64px)"},o.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${w.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Me=p.forwardRef(function(o,t){const r=E({props:o,name:"MuiDialog"}),a=pe(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":n,"aria-labelledby":i,BackdropComponent:l,BackdropProps:u,children:g,className:f,disableEscapeKeyDown:v=!1,fullScreen:_=!1,fullWidth:V=!1,maxWidth:Y="sm",onBackdropClick:B,onClose:W,open:F,PaperComponent:X=O,PaperProps:L={},scroll:G="paper",TransitionComponent:H=ue,transitionDuration:U=s,TransitionProps:K}=r,J=N(r,ve),D=m({},r,{disableEscapeKeyDown:v,fullScreen:_,fullWidth:V,maxWidth:Y,scroll:G}),M=$e(D),P=p.useRef(),Z=b=>{P.current=b.target===b.currentTarget},q=b=>{P.current&&(P.current=null,B&&B(b),W&&W(b,"backdropClick"))},S=te(i),ee=p.useMemo(()=>({titleId:S}),[S]);return d.jsx(ke,m({className:C(M.root,f),closeAfterTransition:!0,components:{Backdrop:De},componentsProps:{backdrop:m({transitionDuration:U,as:l},u)},disableEscapeKeyDown:v,onClose:W,open:F,ref:t,onClick:q,ownerState:D},J,{children:d.jsx(H,m({appear:!0,in:F,timeout:U,role:"presentation"},K,{children:d.jsx(Te,{className:C(M.container),onMouseDown:Z,ownerState:D,children:d.jsx(We,m({as:X,elevation:24,role:"dialog","aria-describedby":n,"aria-labelledby":S},L,{className:C(M.paper,L.className),ownerState:D,children:d.jsx(Ce.Provider,{value:ee,children:g})}))})}))}))}),Je=Me;function Pe(e){return k("MuiDialogContent",e)}$("MuiDialogContent",["root","dividers"]);function Ze(e){return k("MuiDialogTitle",e)}const Se=$("MuiDialogTitle",["root"]),we=Se,je=["className","dividers"],Ne=e=>{const{classes:o,dividers:t}=e;return R({root:["root",t&&"dividers"]},Pe,o)},Re=h("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.dividers&&o.dividers]}})(({theme:e,ownerState:o})=>m({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},o.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${we.root} + &`]:{paddingTop:0}})),Ee=p.forwardRef(function(o,t){const r=E({props:o,name:"MuiDialogContent"}),{className:a,dividers:s=!1}=r,n=N(r,je),i=m({},r,{dividers:s}),l=Ne(i);return d.jsx(Re,m({className:C(l.root,a),ownerState:i,ref:t},n))}),qe=Ee;function Ae(e){return k("MuiDialogContentText",e)}$("MuiDialogContentText",["root"]);const Be=["children","className"],Fe=e=>{const{classes:o}=e,r=R({root:["root"]},Ae,o);return m({},o,r)},Le=h(me,{shouldForwardProp:e=>le(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ue=p.forwardRef(function(o,t){const r=E({props:o,name:"MuiDialogContentText"}),{className:a}=r,s=N(r,Be),n=Fe(s);return d.jsx(Le,m({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:s,className:C(n.root,a)},r,{classes:n}))}),eo=Ue;function ze(e,o,t,r,a){const[s,n]=p.useState(()=>a&&t?t(e).matches:r?r(e).matches:o);return se(()=>{let i=!0;if(!t)return;const l=t(e),u=()=>{i&&n(l.matches)};return u(),l.addListener(u),()=>{i=!1,l.removeListener(u)}},[e,t]),s}const I=p.useSyncExternalStore;function Oe(e,o,t,r,a){const s=p.useCallback(()=>o,[o]),n=p.useMemo(()=>{if(a&&t)return()=>t(e).matches;if(r!==null){const{matches:g}=r(e);return()=>g}return s},[s,e,r,a,t]),[i,l]=p.useMemo(()=>{if(t===null)return[s,()=>()=>{}];const g=t(e);return[()=>g.matches,f=>(g.addListener(f),()=>{g.removeListener(f)})]},[s,t,e]);return I(l,i,n)}function oo(e,o={}){const t=re(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:n=null,noSsr:i=!1}=ae({name:"MuiUseMediaQuery",props:o,theme:t});let l=typeof e=="function"?e(t):e;return l=l.replace(/^@media( ?)/m,""),(I!==void 0?Oe:ze)(l,a,s,n,i)}const Q=(e,{name:o,alternative:t})=>function(a){return p.useEffect(()=>{},[]),d.jsx(e,{...a})},Ie={light:"fal",regular:"far",solid:"fas"};function A({name:e,color:o,size:t,variant:r,rounded:a,style:s,className:n,forwardedRef:i,...l}){const u=d.jsx("i",{ref:i,className:`${Ie[r]} fa-${e} ${a?"":n}`,style:Object.assign({color:o,fontSize:`${t}px`},s||{})});return a?d.jsx(Qe,{ref:i,size:t,color:o,className:n,...l,children:u}):u}A.propTypes={name:c.string.isRequired,className:c.string,color:c.string,rounded:c.bool,variant:c.string,size:c.number,style:c.object};A.defaultProps={rounded:!1,variant:"light",color:y.grey[900],className:"",size:24,style:{}};const Qe=z("span")`
3
+ width: ${e=>e.size*2}px;
4
+ height: ${e=>e.size*2}px;
5
+ border-radius: 50%;
6
+ border: 1px solid ${e=>e.color};
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+
11
+ .fa,
12
+ .fas,
13
+ .fal,
14
+ .far {
15
+ line-height: ${e=>e.size}px;
16
+ }
17
+ `,_e=Q(p.forwardRef((e,o)=>d.jsx(A,{...e,forwardedRef:o})),{name:"Icon",alternative:"SVG icons"}),j={error:{icon:"exclamation-circle",color:y.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:y.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:y.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:y.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function T(e){const o=ne(e,T,["style"]),{type:t,children:r,style:a,className:s,variant:n,...i}=o,{icon:l,color:u,backgroundColor:g,borderColor:f}=j[t]||j.success,v=Object.assign({color:ge[500],backgroundColor:n==="border"?g:"transparent",borderLeft:n==="border"?`5px solid ${f}`:"none"},a);return d.jsxs(Ve,{...i,className:`alert alert--${t} alert--${n} ${s}`.trim(),style:v,children:[n==="icon"&&d.jsx(_e,{className:"alert-icon",name:l,size:24,style:{color:u}}),d.jsx(ie,{component:"div",className:"alert-content",children:r})]})}T.propTypes={type:c.oneOf(Object.keys(j)),children:c.any.isRequired,className:c.string,style:c.oneOfType([c.object,c.string]),variant:c.oneOf(["border","icon"])};T.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};const to=Q(T,{name:"Alert",alternative:"@mui/material/Alert"}),Ve=z("div")`
18
+ display: flex;
19
+ align-items: center;
20
+ font-size: 16px;
21
+ margin: 0;
22
+ padding: 16px;
23
+ margin: 16px 0;
24
+
25
+ strong {
26
+ margin: 0 5px;
27
+ }
28
+
29
+ .alert-icon {
30
+ margin-right: 16px;
31
+ }
32
+
33
+ .alert-content {
34
+ flex: 1;
35
+ display: flex;
36
+ flex-direction: column;
37
+ }
38
+ `;export{to as A,Ce as D,Je as M,qe as a,eo as b,w as d,Ke as f,Ze as g,oo as u};