@abtnode/blocklet-services 1.16.23-beta-2229bcee → 1.16.23-beta-47ca27f8

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 (180) hide show
  1. package/dist/assets/{Add-WGVQ3GRr.js → Add-HAkh2sOx.js} +1 -1
  2. package/dist/assets/{Avatar-YMtJdnI_.js → Avatar-5PX3dF0M.js} +1 -1
  3. package/dist/assets/Box-2_oXuYOC.js +1 -0
  4. package/dist/assets/Box-yQhvFXZ4.js +1 -0
  5. package/dist/assets/{Button-Oyoqwxg3.js → Button-Taj4wxsV.js} +1 -1
  6. package/dist/assets/{ButtonBase-5Z1AWt5e.js → ButtonBase-TsfR2Ejp.js} +1 -1
  7. package/dist/assets/{ButtonBase-xjweeUOl.js → ButtonBase-ds-9hfKF.js} +1 -1
  8. package/dist/assets/{CardContent-yeDfX9ln.js → CardContent-Vn0H-ykk.js} +1 -1
  9. package/dist/assets/{CheckCircle-8IV-X6By.js → CheckCircle-wp8Rpkat.js} +1 -1
  10. package/dist/assets/{Checkbox-1cXdLmYE.js → Checkbox-WEkSGgqM.js} +1 -1
  11. package/dist/assets/{ChevronLeft-S0fikUJz.js → ChevronLeft-MTYzdGu1.js} +1 -1
  12. package/dist/assets/{ChevronRight-zPOQgoXz.js → ChevronRight-23KxaoBu.js} +1 -1
  13. package/dist/assets/{Chip-YPzB9l-v.js → Chip-oMHQfGpn.js} +1 -1
  14. package/dist/assets/{CircularProgress-vLV_mYDK.js → CircularProgress-UhRyzU-L.js} +1 -1
  15. package/dist/assets/{Close-LIjcg2Ps.js → Close-7tjuDTIQ.js} +1 -1
  16. package/dist/assets/{Collapse-MqqvdojT.js → Collapse-Rktw-r6T.js} +1 -1
  17. package/dist/assets/{DeleteOutline-7B3nYSpV.js → DeleteOutline-dHCLXJOk.js} +1 -1
  18. package/dist/assets/{Done-zcM7xD3g.js → Done-0AHeZpV_.js} +1 -1
  19. package/dist/assets/{Download-RZ4Xe2KO.js → Download-RrzGwcpL.js} +1 -1
  20. package/dist/assets/{Edit-wDeuP8y3.js → Edit-9FHLgqnc.js} +1 -1
  21. package/dist/assets/{EditIcon-OMijC2ii.js → EditIcon-JNYyqVkw.js} +1 -1
  22. package/dist/assets/{ExpandMore-vPh5i2pY.js → ExpandMore-AZp5Wv95.js} +1 -1
  23. package/dist/assets/{ExpandMore-IoFpVjxd.js → ExpandMore-HS9ZdUC5.js} +1 -1
  24. package/dist/assets/{FilterList-1CdZTXpd.js → FilterList-tSSRG144.js} +1 -1
  25. package/dist/assets/{Google-0LXkMlJf.js → Google-XP8iq_9h.js} +1 -1
  26. package/dist/assets/{Grid-69U8MTSa.js → Grid-LxqZ048V.js} +1 -1
  27. package/dist/assets/{Grid-NvOzc65v.js → Grid-uIDC1Dk-.js} +1 -1
  28. package/dist/assets/{Hidden-tYBefado.js → Hidden-jOHh-nOO.js} +1 -1
  29. package/dist/assets/{IconButton-4mdVVQZ8.js → IconButton-N0c6O5nz.js} +1 -1
  30. package/dist/assets/{IconButton-Stp3xBL-.js → IconButton-UwR3-0NL.js} +1 -1
  31. package/dist/assets/{InfoOutlined-DPvsHq9m.js → InfoOutlined-mkAnLuml.js} +1 -1
  32. package/dist/assets/{InputAdornment-Mjrquz9X.js → InputAdornment-_p1uwE3h.js} +1 -1
  33. package/dist/assets/{InputAdornment-Qv284Vfe.js → InputAdornment-eiYABgDx.js} +1 -1
  34. package/dist/assets/{InputLabel-uyVS695v.js → InputLabel-Z2BfnoGi.js} +1 -1
  35. package/dist/assets/{Launch-w3Wye567.js → Launch-t50iGquN.js} +1 -1
  36. package/dist/assets/{Link-Hw9Ca0hp.js → Link-S6gXb_sR.js} +1 -1
  37. package/dist/assets/{Link-UFDa3yGB.js → Link-Ztw8lZh_.js} +1 -1
  38. package/dist/assets/{ListItem-xXgvl-_v.js → ListItem-CsQT7_Y0.js} +1 -1
  39. package/dist/assets/{ListItemText-HBcpjb-y.js → ListItemText-Z_BlB5GU.js} +1 -1
  40. package/dist/assets/{LockIcon-aS_vBnoW.js → LockIcon-N64w0tOF.js} +1 -1
  41. package/dist/assets/{Loop-rUutauWI.js → Loop-cXU2nixm.js} +1 -1
  42. package/dist/assets/{OpenInNew-JP2h5vEP.js → OpenInNew-e-1hEprE.js} +1 -1
  43. package/dist/assets/{Pagination-ELeIARUc.js → Pagination-hF6gAwBG.js} +1 -1
  44. package/dist/assets/{Paper-CT8-Tf75.js → Paper-dhztGun2.js} +1 -1
  45. package/dist/assets/{RevokeIcon-ZQFK5fXr.js → RevokeIcon-6b0zoRoM.js} +1 -1
  46. package/dist/assets/{Search-7VfT-NID.js → Search-K8k_olp5.js} +1 -1
  47. package/dist/assets/{Search-YNaL_Cal.js → Search-hARQKO4c.js} +1 -1
  48. package/dist/assets/{Select-tZktthO0.js → Select-VVRpAz6G.js} +1 -1
  49. package/dist/assets/{ServerLogo-DsjZVfJP.js → ServerLogo-Z-AxAPF-.js} +1 -1
  50. package/dist/assets/{Skeleton-xucwHuGs.js → Skeleton-DOJpxB_p.js} +1 -1
  51. package/dist/assets/{StepLabel-5BqddTtn.js → StepLabel-qH6Jspwz.js} +1 -1
  52. package/dist/assets/{TextField-MscCjrFR.js → TextField-7oqc3A5T.js} +1 -1
  53. package/dist/assets/{TextField-MHpA2nij.js → TextField-Xzz8twmn.js} +2 -2
  54. package/dist/assets/{Toolbar-blleP0fp.js → Toolbar-erlbYT0o.js} +1 -1
  55. package/dist/assets/{Tooltip-TJebbf08.js → Tooltip-N8uXItlt.js} +1 -1
  56. package/dist/assets/{Typography-VrdbhbRS.js → Typography-UDbZ1S4P.js} +1 -1
  57. package/dist/assets/{Typography-gzW9rNGq.js → Typography-gcm4VbT4.js} +1 -1
  58. package/dist/assets/{access-control-QO19LJxv.js → access-control-1-AB8Zz4.js} +1 -1
  59. package/dist/assets/{actions-wnWrwpfr.js → actions-pPHDcJiy.js} +1 -1
  60. package/dist/assets/{add-component-core-UJUpRIi2.js → add-component-core-JltpkqM1.js} +19 -19
  61. package/dist/assets/add-resource-3pZIROMS.js +1 -0
  62. package/dist/assets/{addon-64KY17R3.js → addon-0ytccgFe.js} +1 -1
  63. package/dist/assets/{analytics-jAN7GSCb.js → analytics-QLTA0Klt.js} +1 -1
  64. package/dist/assets/api-plw61fT1.js +1 -0
  65. package/dist/assets/{audit-logs-VNHThEQI.js → audit-logs-QNzACvgL.js} +1 -1
  66. package/dist/assets/{button-rmyqwOhO.js → button-LQo--zEq.js} +1 -1
  67. package/dist/assets/{click-to-copy-yc98TA-Y.js → click-to-copy-YCRgRpgV.js} +1 -1
  68. package/dist/assets/{complete-Rx2E-AIR.js → complete-kSWTrUDB.js} +1 -1
  69. package/dist/assets/{component-lOj5KJ2H.js → component-R4OOvs3Y.js} +26 -26
  70. package/dist/assets/{config-edsFrKDH.js → config-EMixIt7x.js} +1 -1
  71. package/dist/assets/{config-Qydx8uJj.js → config-M72R5lj3.js} +1 -1
  72. package/dist/assets/{config-navigation-VjGxKtAq.js → config-navigation-TqAA_VTM.js} +13 -13
  73. package/dist/assets/{config-space-1IVZiyVu.js → config-space-hqP646ET.js} +1 -1
  74. package/dist/assets/{confirm-X32y0OJ8.js → confirm-qiO2KLCl.js} +1 -1
  75. package/dist/assets/{connect-__18smU1.js → connect-qstsRWWM.js} +1 -1
  76. package/dist/assets/{connect-to-lZyqUXok.js → connect-to-tAiM-2C-.js} +1 -1
  77. package/dist/assets/{connect-khzazIhm.js → connect-w4waItwI.js} +1 -1
  78. package/dist/assets/{content-layout-7Xs3RZeR.js → content-layout-5a5YwWiV.js} +1 -1
  79. package/dist/assets/{createStack-Q1bse37y.js → createStack-otVt5u3V.js} +1 -1
  80. package/dist/assets/{createSvgIcon-As8N9OsD.js → createSvgIcon-dMfYf-BF.js} +1 -1
  81. package/dist/assets/{createSvgIcon-QnMMaQef.js → createSvgIcon-vJHFh5-e.js} +1 -1
  82. package/dist/assets/{dashboard-hjUAT53t.js → dashboard-tk2Zj0Iy.js} +3 -3
  83. package/dist/assets/{did-address-nnmMTsE0.js → did-address-EcQj8KKn.js} +1 -1
  84. package/dist/assets/{domain-ZhlFXZvh.js → domain-2CdQ_Y3W.js} +1 -1
  85. package/dist/assets/{domain-list-xjV9jYyD.js → domain-list-RmHrzAld.js} +1 -1
  86. package/dist/assets/{exchange-passport-KGyEbK3I.js → exchange-passport-fwa9EQLX.js} +1 -1
  87. package/dist/assets/{fallback-IEuA_cby.js → fallback-rmh2tyHR.js} +1 -1
  88. package/dist/assets/{formControlState-RTdrWynp.js → formControlState-ITAwsVlF.js} +1 -1
  89. package/dist/assets/{fuel-FgAgOiF7.js → fuel-OeFTUAqM.js} +1 -1
  90. package/dist/assets/{fullpage-TV1AEuff.js → fullpage-ulgaGMfr.js} +1 -1
  91. package/dist/assets/home-Kau_sqYV.js +1 -0
  92. package/dist/assets/{iframe-DRT4l2HB.js → iframe-RYGZInxO.js} +1 -1
  93. package/dist/assets/{index-G3IOBshf.js → index--wiF8mdU.js} +3 -3
  94. package/dist/assets/{index-b7P8dXaW.js → index-1LoAlz_D.js} +109 -109
  95. package/dist/assets/{index-OTxP0mo5.js → index-3Gt1qwaG.js} +1 -1
  96. package/dist/assets/{index-FvQORRgH.js → index-3L-shBOI.js} +1 -1
  97. package/dist/assets/{index-hURffp3u.js → index-7CTOHAM7.js} +1 -1
  98. package/dist/assets/{index-oAG2POvk.js → index-7dpcVR4r.js} +1 -1
  99. package/dist/assets/{index-1kJhAn58.js → index-A70j6-FT.js} +1 -1
  100. package/dist/assets/{index-2lTWjgGl.js → index-IfzllcnH.js} +1 -1
  101. package/dist/assets/{index-a20c3idj.js → index-M2Q-LUVW.js} +1 -1
  102. package/dist/assets/{index-JEZqkZBH.js → index-MICfQdxp.js} +1 -1
  103. package/dist/assets/{index-0L6EFjA-.js → index-S3AXT8xr.js} +1 -1
  104. package/dist/assets/{index-wbQ-ZxVz.js → index-VFVjYT5M.js} +1 -1
  105. package/dist/assets/{index-y7MSz_DX.js → index-W2uUvH1R.js} +1 -1
  106. package/dist/assets/{index-ClDKkclJ.js → index-XhgQcf4c.js} +1 -1
  107. package/dist/assets/{index-UmYTEmfc.js → index-bzO1lgrh.js} +1 -1
  108. package/dist/assets/{index-s9QIt3ko.js → index-dSx-_bkh.js} +1 -1
  109. package/dist/assets/{index-t6K4UMWm.js → index-eHJVJ0oa.js} +3 -3
  110. package/dist/assets/{index-A0XP7jOV.js → index-f2e8-jph.js} +1 -1
  111. package/dist/assets/{index-fp_GCKZG.js → index-fy3VHxQ-.js} +1 -1
  112. package/dist/assets/{index-7YCI1diH.js → index-ifZh0v2H.js} +1 -1
  113. package/dist/assets/{index-8yqf8NtP.js → index-lH7kst-l.js} +1 -1
  114. package/dist/assets/{index-mR4p-IgT.js → index-p49pWz3A.js} +1 -1
  115. package/dist/assets/{index-dHXZG-ng.js → index-vK8pD1J5.js} +1 -1
  116. package/dist/assets/{index-CUQzUKjp.js → index-wqiaLCSa.js} +1 -1
  117. package/dist/assets/{index-5z2yj7B6.js → index-wzDvlRWd.js} +1 -1
  118. package/dist/assets/{index-LjaUA433.js → index-x-hWO8c2.js} +1 -1
  119. package/dist/assets/index-yavkBA9P.js +1 -0
  120. package/dist/assets/{index-H-EdJCOS.js → index-z68tym-5.js} +1 -1
  121. package/dist/assets/{index-DKbVweR7.js → index-zANLoUbz.js} +3 -3
  122. package/dist/assets/{index.es-l5uagbAO.js → index.es-g7x0RbBb.js} +1 -1
  123. package/dist/assets/{index.esm-vxs0Vp_r.js → index.esm-EKRhXnXW.js} +1 -1
  124. package/dist/assets/{invite-GtClRUaU.js → invite-zRKtERWD.js} +1 -1
  125. package/dist/assets/{issue-passport-KoPvY9Kk.js → issue-passport-9JCUpg-H.js} +1 -1
  126. package/dist/assets/{jss-plugin-props-sort.esm-_8ajCc8G.js → jss-plugin-props-sort.esm-WZ6qfOAb.js} +1 -1
  127. package/dist/assets/{launch-result-message-fUnGqO_Z.js → launch-result-message-OfebXpdW.js} +1 -1
  128. package/dist/assets/{layout-_JN8FvY3.js → layout-T_0qJLQ2.js} +1 -1
  129. package/dist/assets/{list-header-TzeTzN0P.js → list-header-utM5dBjc.js} +1 -1
  130. package/dist/assets/{listItemButtonClasses-dVmEAM-y.js → listItemButtonClasses-hkZeStXq.js} +1 -1
  131. package/dist/assets/localization-91hg4t7I.js +1 -0
  132. package/dist/assets/{log-ncZ4SWpA.js → log-I1GzaD_w.js} +1 -1
  133. package/dist/assets/{login-NuAi2Syo.js → login-04v880Iz.js} +1 -1
  134. package/dist/assets/{logo-uploader-Oo_gyW5D.js → logo-uploader-GWc0UE5a.js} +3 -3
  135. package/dist/assets/{lost-passport-c0AB43lK.js → lost-passport-F5idDReU.js} +3 -3
  136. package/dist/assets/{lottie-RDmkFf84.js → lottie-HUeyVXHO.js} +1 -1
  137. package/dist/assets/{notifications-N7Zish1m.js → notifications-l1yCHIQ4.js} +1 -1
  138. package/dist/assets/{overview-IaJ_cbdi.js → overview-nK3M7e6f.js} +1 -1
  139. package/dist/assets/{page-header-xhgLZB05.js → page-header-UMumPn76.js} +1 -1
  140. package/dist/assets/{permission-Cm7HAliG.js → permission-4bghYHvM.js} +1 -1
  141. package/dist/assets/{preferences-uIse65rz.js → preferences-8RXBVFut.js} +1 -1
  142. package/dist/assets/publish-resource-hzXbza9w.js +1 -0
  143. package/dist/assets/{react-o04d-cyu.js → react-Pl9wLqVE.js} +6 -6
  144. package/dist/assets/{selector-w-1YjotN.js → selector-8S0Ovg2V.js} +1 -1
  145. package/dist/assets/session-qd-ncyNw.js +1 -0
  146. package/dist/assets/{setup-Uv9GFsZo.js → setup-Azfq43r5.js} +3 -3
  147. package/dist/assets/slicedToArray-sAkvvam0.js +2 -0
  148. package/dist/assets/{spaces-WiAi-IsC.js → spaces-pyZ1WB8d.js} +1 -1
  149. package/dist/assets/{start-mwHJkaqh.js → start-1Un44vsd.js} +1 -1
  150. package/dist/assets/{step-actions-tzewrsBu.js → step-actions-mQONdxTQ.js} +1 -1
  151. package/dist/assets/{studio-p1SDntTP.js → studio-DELVgW-e.js} +1 -1
  152. package/dist/assets/{styled-PB3HdPJn.js → styled-vyyGyo-B.js} +1 -1
  153. package/dist/assets/{switch-control-dwDYbRCs.js → switch-control-U_pIrchw.js} +1 -1
  154. package/dist/assets/{toUpper-vVgUYjsF.js → toUpper-2qNPrjIY.js} +1 -1
  155. package/dist/assets/{transfer-hEPB6naM.js → transfer-wFwEqrOx.js} +1 -1
  156. package/dist/assets/{uniqBy-MyT7qhfv.js → uniqBy-pUE78X3A.js} +1 -1
  157. package/dist/assets/{unsubscribe-I1lmv_D0.js → unsubscribe-xRe3X65Z.js} +1 -1
  158. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-dreUs9Sq.js → use-blocklet-info-for-connect-did-spaces-CtHsgbj0.js} +1 -1
  159. package/dist/assets/{useAsync-rY0Vnqtc.js → useAsync-pxr77aA7.js} +1 -1
  160. package/dist/assets/{useMediaQuery-_-fVP1yd.js → useMediaQuery--siIU3rp.js} +1 -1
  161. package/dist/assets/{useSetState-XoAUn8MB.js → useSetState-W0uZizyA.js} +1 -1
  162. package/dist/assets/{useSlotProps-tC6PRPgK.js → useSlotProps-JXekjaoI.js} +1 -1
  163. package/dist/assets/useTheme-umtft1k4.js +1 -0
  164. package/dist/assets/{user-center-HgiCB6xs.js → user-center-at2edvXt.js} +1 -1
  165. package/dist/assets/{util-MPIIDw4m.js → util-QwXbQR6E.js} +1 -1
  166. package/dist/assets/{wrap-locale-D0W5J_eH.js → wrap-locale-BPajZpMF.js} +1 -1
  167. package/dist/index.html +1 -1
  168. package/dist/service-worker.js +1 -1
  169. package/package.json +18 -18
  170. package/dist/assets/Box-19RxwaCl.js +0 -1
  171. package/dist/assets/Box-5JP3oQ3C.js +0 -1
  172. package/dist/assets/add-resource-7aFOKZXw.js +0 -1
  173. package/dist/assets/api-Ju9OpSYb.js +0 -1
  174. package/dist/assets/home-6oLbXW1Q.js +0 -1
  175. package/dist/assets/index-iz89eKW_.js +0 -1
  176. package/dist/assets/localization-0_Q3Njmy.js +0 -1
  177. package/dist/assets/publish-resource-zdjnf6_1.js +0 -1
  178. package/dist/assets/session-m6Wr3myh.js +0 -1
  179. package/dist/assets/slicedToArray-GzH9QIuR.js +0 -2
  180. package/dist/assets/useTheme-qZqW0dW7.js +0 -1
@@ -1 +1 @@
1
- import{r as a,N as e,j as t,ax as n,Q as o}from"./index-b7P8dXaW.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};
1
+ import{r as a,N as e,j as t,ax as n,Q as o}from"./index-1LoAlz_D.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};
@@ -1 +1 @@
1
- import{P as o,r as x,j as e,bC as K,dV as M,a9 as B,Q as W}from"./index-b7P8dXaW.js";import{d as v}from"./EditIcon-OMijC2ii.js";import{d as $}from"./Close-LIjcg2Ps.js";import{d as A}from"./Done-zcM7xD3g.js";import{C as G}from"./Google-0LXkMlJf.js";import{B as u}from"./Box-5JP3oQ3C.js";import{P as H}from"./formControlState-RTdrWynp.js";import{M as Q}from"./TextField-MscCjrFR.js";import{R as U,F as Y,L as J}from"./logo-uploader-Oo_gyW5D.js";import{I as R}from"./IconButton-Stp3xBL-.js";import{S as X}from"./CircularProgress-vLV_mYDK.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function V({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let m=null;return n&&(m=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(m)}},[n]);const g=m=>{d.current=m,s(m)},y=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:y,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(H,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(G,{color:r,onChange:m=>g(m.hex)})})]});return n?i:b}V.propTypes=S;function _({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,g=x.useRef(s),y=i=>{i.key==="Enter"&&a(g.current,"confirm")},b=i=>{g.current=i,a(i)};return n?e.jsx(Q,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:y,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}_.propTypes=S;_.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?K.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:M({title:"Owner",issuer:B(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(V,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:_,color:V,passport:F,uploader:n=>e.jsx(J,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function E({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const g=Object.prototype.toString.call(s)==="[object Object]",[y,b]=x.useState(null),[i,m]=x.useState(g?s:a),P=x.useRef();function I(t,p,h){const{key:f,secure:C}=t,k=i[f]!==p,j={...i,[f]:p};k&&m(j),l({[f]:p},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&m({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function T(t,{editing:p=!1}){const{key:h}=t,f=g?s[h]:i[h];return f==="__encrypted__"?p?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:p,description:h,required:f,solo:C=!1,hidden:D=!1,componentProps:k={}}=t;if(D)return null;const j=!!(y&&p===y.key),w=T(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:p,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(U,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(X,{size:24}):e.jsx(A,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx($,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[p],"edit")},disabled:d||y,size:"large",children:e.jsx(v,{})})})]})]},p)})})}E.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};E.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=W(Y)``;export{E as S};
1
+ import{P as o,r as x,j as e,bC as K,dV as M,a9 as B,Q as W}from"./index-1LoAlz_D.js";import{d as v}from"./EditIcon-JNYyqVkw.js";import{d as $}from"./Close-7tjuDTIQ.js";import{d as A}from"./Done-0AHeZpV_.js";import{C as G}from"./Google-XP8iq_9h.js";import{B as u}from"./Box-2_oXuYOC.js";import{P as H}from"./formControlState-ITAwsVlF.js";import{M as Q}from"./TextField-7oqc3A5T.js";import{R as U,F as Y,L as J}from"./logo-uploader-GWc0UE5a.js";import{I as R}from"./IconButton-UwR3-0NL.js";import{S as X}from"./CircularProgress-UhRyzU-L.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function V({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let m=null;return n&&(m=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(m)}},[n]);const g=m=>{d.current=m,s(m)},y=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:y,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(H,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(G,{color:r,onChange:m=>g(m.hex)})})]});return n?i:b}V.propTypes=S;function _({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,g=x.useRef(s),y=i=>{i.key==="Enter"&&a(g.current,"confirm")},b=i=>{g.current=i,a(i)};return n?e.jsx(Q,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:y,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}_.propTypes=S;_.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?K.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:M({title:"Owner",issuer:B(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(V,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:_,color:V,passport:F,uploader:n=>e.jsx(J,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function E({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const g=Object.prototype.toString.call(s)==="[object Object]",[y,b]=x.useState(null),[i,m]=x.useState(g?s:a),P=x.useRef();function I(t,p,h){const{key:f,secure:C}=t,k=i[f]!==p,j={...i,[f]:p};k&&m(j),l({[f]:p},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&m({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function T(t,{editing:p=!1}){const{key:h}=t,f=g?s[h]:i[h];return f==="__encrypted__"?p?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:p,description:h,required:f,solo:C=!1,hidden:D=!1,componentProps:k={}}=t;if(D)return null;const j=!!(y&&p===y.key),w=T(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:p,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(U,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(X,{size:24}):e.jsx(A,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx($,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[p],"edit")},disabled:d||y,size:"large",children:e.jsx(v,{})})})]})]},p)})})}E.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};E.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=W(Y)``;export{E as S};
@@ -1,4 +1,4 @@
1
- import{a as Ze,g as Ke,U as re,bq as et,c as B,_ as O,r as x,W as Ee,f as we,j as a,h as $,i as tt,a1 as St,cc as Mt,bY as $t,bx as me,cd as _t,aM as ke,ce as rt,cf as ee,P as i,bR as ge,k as xe,c9 as P,ag as It,aB as Oe,L as pe,V as F,c8 as Lt,bt as nt,$ as _,cg as zt,ch as Dt,bO as Ht,ci as Bt,cj as Ft,ck as qt}from"./index-b7P8dXaW.js";import{T as Wt}from"./Toolbar-blleP0fp.js";import{H as ot}from"./Hidden-tYBefado.js";import{d as Ut}from"./ExpandMore-IoFpVjxd.js";const je={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function Vt(e){return Ze("MuiAppBar",e)}Ke("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Yt=["className","color","enableColorOnDark","position"],Gt=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${B(t)}`,`position${B(r)}`]};return tt(o,Vt,n)},de=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Xt=re(et,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${B(r.position)}`],t[`color${B(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return O({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&O({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&O({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&O({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:de(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:de(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:de(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:de(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Qt=x.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=we(n,Yt),u=O({},n,{color:s,position:l,enableColorOnDark:d}),p=Gt(u);return a.jsx(Xt,O({square:!0,component:"header",ownerState:u,elevation:4,className:$(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),Jt=Qt,Zt=St({createStyledComponent:re("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${B(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ee({props:e,name:"MuiContainer"})}),ne=Zt;function Kt(e){return Ze("MuiDrawer",e)}Ke("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const er=["BackdropProps"],tr=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],at=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},rr=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${B(r)}`,n!=="temporary"&&`paperAnchorDocked${B(r)}`]};return tt(o,Kt,t)},nr=re(Mt,{name:"MuiDrawer",slot:"Root",overridesResolver:at})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Ue=re("div",{shouldForwardProp:$t,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:at})({flex:"0 0 auto"}),or=re(et,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${B(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${B(r.anchor)}`]]}})(({theme:e,ownerState:t})=>O({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),it={left:"right",right:"left",top:"down",bottom:"up"};function ar(e){return["left","right"].indexOf(e)!==-1}function ir(e,t){return e.direction==="rtl"&&ar(t)?it[t]:t}const sr=x.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDrawer"}),o=me(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:l,children:c,className:u,elevation:p=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:b=!1,PaperProps:y={},SlideProps:T,TransitionComponent:j=_t,transitionDuration:C=s,variant:E="temporary"}=n,L=we(n.ModalProps,er),S=we(n,tr),R=x.useRef(!1);x.useEffect(()=>{R.current=!0},[]);const N=ir(o,d),W=O({},n,{anchor:d,elevation:p,open:b,variant:E},S),M=rr(W),le=a.jsx(or,O({elevation:E==="temporary"?p:0,square:!0},y,{className:$(M.paper,y.className),ownerState:W,children:c}));if(E==="permanent")return a.jsx(Ue,O({className:$(M.root,M.docked,u),ownerState:W,ref:r},S,{children:le}));const ce=a.jsx(j,O({in:b,direction:it[N],timeout:C,appear:R.current},T,{children:le}));return E==="persistent"?a.jsx(Ue,O({className:$(M.root,M.docked,u),ownerState:W,ref:r},S,{children:ce})):a.jsx(nr,O({BackdropProps:O({},l,h,{transitionDuration:C}),className:$(M.root,M.modal,u),open:b,ownerState:W,onClose:m,hideBackdrop:f,ref:r},S,L,{children:ce}))}),st=sr;function lr(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var lt=x,cr=lr(lt);function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ur=!!(typeof window<"u"&&window.document&&window.document.createElement);function pr(e,t,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=e(d.map(function(p){return p.props})),u.canUseDOM?t(l):r&&(l=r(l))}var u=function(p){dr(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var b=l;return l=void 0,d=[],b};var h=f.prototype;return h.UNSAFE_componentWillMount=function(){d.push(this),c()},h.componentDidUpdate=function(){c()},h.componentWillUnmount=function(){var b=d.indexOf(this);d.splice(b,1),c()},h.render=function(){return cr.createElement(s,this.props)},f}(lt.PureComponent);return Ve(u,"displayName","SideEffect("+n(s)+")"),Ve(u,"canUseDOM",ur),u}}var fr=pr;const hr=ke(fr);var mr=typeof Element<"u",gr=typeof Map=="function",xr=typeof Set=="function",vr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ue(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ue(e[n],t[n]))return!1;return!0}var s;if(gr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!ue(n.value[1],t.get(n.value[0])))return!1;return!0}if(xr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(vr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(mr&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ue(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var br=function(t,r){try{return ue(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const yr=ke(br);/*
1
+ import{a as Ze,g as Ke,U as re,bq as et,c as B,_ as O,r as x,W as Ee,f as we,j as a,h as $,i as tt,a1 as St,cc as Mt,bY as $t,bx as me,cd as _t,aM as ke,ce as rt,cf as ee,P as i,bR as ge,k as xe,c9 as P,ag as It,aB as Oe,L as pe,V as F,c8 as Lt,bt as nt,$ as _,cg as zt,ch as Dt,bO as Ht,ci as Bt,cj as Ft,ck as qt}from"./index-1LoAlz_D.js";import{T as Wt}from"./Toolbar-erlbYT0o.js";import{H as ot}from"./Hidden-jOHh-nOO.js";import{d as Ut}from"./ExpandMore-HS9ZdUC5.js";const je={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function Vt(e){return Ze("MuiAppBar",e)}Ke("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Yt=["className","color","enableColorOnDark","position"],Gt=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${B(t)}`,`position${B(r)}`]};return tt(o,Vt,n)},de=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Xt=re(et,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${B(r.position)}`],t[`color${B(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return O({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&O({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&O({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&O({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:de(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:de(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:de(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:de(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Qt=x.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=we(n,Yt),u=O({},n,{color:s,position:l,enableColorOnDark:d}),p=Gt(u);return a.jsx(Xt,O({square:!0,component:"header",ownerState:u,elevation:4,className:$(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),Jt=Qt,Zt=St({createStyledComponent:re("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${B(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ee({props:e,name:"MuiContainer"})}),ne=Zt;function Kt(e){return Ze("MuiDrawer",e)}Ke("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const er=["BackdropProps"],tr=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],at=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},rr=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${B(r)}`,n!=="temporary"&&`paperAnchorDocked${B(r)}`]};return tt(o,Kt,t)},nr=re(Mt,{name:"MuiDrawer",slot:"Root",overridesResolver:at})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Ue=re("div",{shouldForwardProp:$t,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:at})({flex:"0 0 auto"}),or=re(et,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${B(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${B(r.anchor)}`]]}})(({theme:e,ownerState:t})=>O({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),it={left:"right",right:"left",top:"down",bottom:"up"};function ar(e){return["left","right"].indexOf(e)!==-1}function ir(e,t){return e.direction==="rtl"&&ar(t)?it[t]:t}const sr=x.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDrawer"}),o=me(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:l,children:c,className:u,elevation:p=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:b=!1,PaperProps:y={},SlideProps:T,TransitionComponent:j=_t,transitionDuration:C=s,variant:E="temporary"}=n,L=we(n.ModalProps,er),S=we(n,tr),R=x.useRef(!1);x.useEffect(()=>{R.current=!0},[]);const N=ir(o,d),W=O({},n,{anchor:d,elevation:p,open:b,variant:E},S),M=rr(W),le=a.jsx(or,O({elevation:E==="temporary"?p:0,square:!0},y,{className:$(M.paper,y.className),ownerState:W,children:c}));if(E==="permanent")return a.jsx(Ue,O({className:$(M.root,M.docked,u),ownerState:W,ref:r},S,{children:le}));const ce=a.jsx(j,O({in:b,direction:it[N],timeout:C,appear:R.current},T,{children:le}));return E==="persistent"?a.jsx(Ue,O({className:$(M.root,M.docked,u),ownerState:W,ref:r},S,{children:ce})):a.jsx(nr,O({BackdropProps:O({},l,h,{transitionDuration:C}),className:$(M.root,M.modal,u),open:b,ownerState:W,onClose:m,hideBackdrop:f,ref:r},S,L,{children:ce}))}),st=sr;function lr(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var lt=x,cr=lr(lt);function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ur=!!(typeof window<"u"&&window.document&&window.document.createElement);function pr(e,t,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=e(d.map(function(p){return p.props})),u.canUseDOM?t(l):r&&(l=r(l))}var u=function(p){dr(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var b=l;return l=void 0,d=[],b};var h=f.prototype;return h.UNSAFE_componentWillMount=function(){d.push(this),c()},h.componentDidUpdate=function(){c()},h.componentWillUnmount=function(){var b=d.indexOf(this);d.splice(b,1),c()},h.render=function(){return cr.createElement(s,this.props)},f}(lt.PureComponent);return Ve(u,"displayName","SideEffect("+n(s)+")"),Ve(u,"canUseDOM",ur),u}}var fr=pr;const hr=ke(fr);var mr=typeof Element<"u",gr=typeof Map=="function",xr=typeof Set=="function",vr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ue(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ue(e[n],t[n]))return!1;return!0}var s;if(gr&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!ue(n.value[1],t.get(n.value[0])))return!1;return!0}if(xr&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(vr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(mr&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ue(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var br=function(t,r){try{return ue(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const yr=ke(br);/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
@@ -1,4 +1,4 @@
1
- import{g as I,a as V,U as N,_ as p,d as U,r as m,W as _,f as A,j as n,e5 as F,e6 as H,h as q,c as a,i as D,bG as E,c8 as k,bq as J,c1 as K,c7 as Q,P as u,by as X,c9 as M,c0 as Y}from"./index-b7P8dXaW.js";import{d as Z}from"./ExpandMore-IoFpVjxd.js";import{g as S}from"./Chip-YPzB9l-v.js";function w(t){return V("MuiButtonGroup",t)}const r=I("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),oo=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],to=(t,o)=>{const{ownerState:i}=t;return[{[`& .${r.grouped}`]:o.grouped},{[`& .${r.grouped}`]:o[`grouped${a(i.orientation)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}${a(i.orientation)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}${a(i.color)}`]},{[`& .${r.firstButton}`]:o.firstButton},{[`& .${r.lastButton}`]:o.lastButton},{[`& .${r.middleButton}`]:o.middleButton},o.root,o[i.variant],i.disableElevation===!0&&o.disableElevation,i.fullWidth&&o.fullWidth,i.orientation==="vertical"&&o.vertical]},io=t=>{const{classes:o,color:i,disabled:l,disableElevation:g,fullWidth:B,orientation:d,variant:s}=t,v={root:["root",s,d==="vertical"&&"vertical",B&&"fullWidth",g&&"disableElevation"],grouped:["grouped",`grouped${a(d)}`,`grouped${a(s)}`,`grouped${a(s)}${a(d)}`,`grouped${a(s)}${a(i)}`,l&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return D(v,w,o)},ro=N("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:to})(({theme:t,ownerState:o})=>p({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},o.variant==="contained"&&{boxShadow:(t.vars||t).shadows[2]},o.disableElevation&&{boxShadow:"none"},o.fullWidth&&{width:"100%"},o.orientation==="vertical"&&{flexDirection:"column"},{[`& .${r.grouped}`]:p({minWidth:40,"&:hover":p({},o.variant==="contained"&&{boxShadow:"none"})},o.variant==="contained"&&{boxShadow:"none"}),[`& .${r.firstButton},& .${r.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},o.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},o.variant==="text"&&o.orientation==="horizontal"&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${r.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.orientation==="vertical"&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${r.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.color!=="inherit"&&{borderColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / 0.5)`:U(t.palette[o.color].main,.5)},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"transparent"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"transparent"},o.variant==="contained"&&o.orientation==="horizontal"&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${r.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.orientation==="vertical"&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${r.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.color!=="inherit"&&{borderColor:(t.vars||t).palette[o.color].dark},{"&:hover":p({},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"currentColor"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${r.lastButton},& .${r.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},o.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},o.variant==="outlined"&&o.orientation==="horizontal"&&{marginLeft:-1},o.variant==="outlined"&&o.orientation==="vertical"&&{marginTop:-1})})),no=m.forwardRef(function(o,i){const l=_({props:o,name:"MuiButtonGroup"}),{children:g,className:B,color:d="primary",component:s="div",disabled:v=!1,disableElevation:h=!1,disableFocusRipple:b=!1,disableRipple:c=!1,fullWidth:x=!1,orientation:P="horizontal",size:$="medium",variant:C="outlined"}=l,e=A(l,oo),y=p({},l,{color:d,component:s,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,orientation:P,size:$,variant:C}),f=io(y),L=m.useMemo(()=>({className:f.grouped,color:d,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,size:$,variant:C}),[d,v,h,b,c,x,$,C,f.grouped]),T=S(g),W=T.length,O=z=>{const R=z===0,G=z===W-1;return R&&G?"":R?f.firstButton:G?f.lastButton:f.middleButton};return n.jsx(ro,p({as:s,role:"group",className:q(f.root,B),ref:i,ownerState:y},e,{children:n.jsx(F.Provider,{value:L,children:T.map((z,R)=>n.jsx(H.Provider,{value:O(R),children:z},R))})}))}),ao=no;function j(t){const{size:o,color:i,menu:l,children:g,variant:B,onClick:d,menuButtonProps:s,...v}=t,[h,b]=m.useState(!1),c=m.useRef(null),x=Array.isArray(l)?l.map((e,y)=>m.isValidElement(e)?e:m.createElement(E,{...e,key:y})):l,P=()=>{b(e=>!e)},$=e=>{c.current&&c.current.contains(e.target)||b(!1)},C=e=>{e.target.closest(".MuiMenuItem-root")&&b(!1)};return n.jsxs(n.Fragment,{children:[n.jsxs(eo,{variant:B,size:o,color:i,ref:c,...v,children:[typeof g=="function"?g():n.jsx(k,{onClick:d,color:i,children:g}),n.jsx(k,{onClick:P,color:i,...s,"aria-label":"more functions",children:n.jsx(Z,{})})]}),n.jsx(lo,{open:h,anchorEl:c.current,placement:"bottom-end",disablePortal:!1,children:n.jsx(J,{children:n.jsx(K,{onClickAway:$,children:n.jsx(Q,{onClick:C,children:x})})})})]})}j.propTypes={size:u.oneOf(["small","medium","large"]),color:u.oneOf(["primary","secondary","inherit"]),menu:u.oneOfType([u.node,u.array]),children:u.node,variant:u.oneOf(["outlined","contained"]),onClick:u.func,menuButtonProps:u.object};j.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:X,menuButtonProps:{}};j.Item=E;const eo=M(ao)`
1
+ import{g as I,a as V,U as N,_ as p,d as U,r as m,W as _,f as A,j as n,e5 as F,e6 as H,h as q,c as a,i as D,bG as E,c8 as k,bq as J,c1 as K,c7 as Q,P as u,by as X,c9 as M,c0 as Y}from"./index-1LoAlz_D.js";import{d as Z}from"./ExpandMore-HS9ZdUC5.js";import{g as S}from"./Chip-oMHQfGpn.js";function w(t){return V("MuiButtonGroup",t)}const r=I("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),oo=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],to=(t,o)=>{const{ownerState:i}=t;return[{[`& .${r.grouped}`]:o.grouped},{[`& .${r.grouped}`]:o[`grouped${a(i.orientation)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}${a(i.orientation)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}${a(i.color)}`]},{[`& .${r.firstButton}`]:o.firstButton},{[`& .${r.lastButton}`]:o.lastButton},{[`& .${r.middleButton}`]:o.middleButton},o.root,o[i.variant],i.disableElevation===!0&&o.disableElevation,i.fullWidth&&o.fullWidth,i.orientation==="vertical"&&o.vertical]},io=t=>{const{classes:o,color:i,disabled:l,disableElevation:g,fullWidth:B,orientation:d,variant:s}=t,v={root:["root",s,d==="vertical"&&"vertical",B&&"fullWidth",g&&"disableElevation"],grouped:["grouped",`grouped${a(d)}`,`grouped${a(s)}`,`grouped${a(s)}${a(d)}`,`grouped${a(s)}${a(i)}`,l&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return D(v,w,o)},ro=N("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:to})(({theme:t,ownerState:o})=>p({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},o.variant==="contained"&&{boxShadow:(t.vars||t).shadows[2]},o.disableElevation&&{boxShadow:"none"},o.fullWidth&&{width:"100%"},o.orientation==="vertical"&&{flexDirection:"column"},{[`& .${r.grouped}`]:p({minWidth:40,"&:hover":p({},o.variant==="contained"&&{boxShadow:"none"})},o.variant==="contained"&&{boxShadow:"none"}),[`& .${r.firstButton},& .${r.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},o.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},o.variant==="text"&&o.orientation==="horizontal"&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${r.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.orientation==="vertical"&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${r.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.color!=="inherit"&&{borderColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / 0.5)`:U(t.palette[o.color].main,.5)},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"transparent"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"transparent"},o.variant==="contained"&&o.orientation==="horizontal"&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${r.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.orientation==="vertical"&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${r.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.color!=="inherit"&&{borderColor:(t.vars||t).palette[o.color].dark},{"&:hover":p({},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"currentColor"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${r.lastButton},& .${r.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},o.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},o.variant==="outlined"&&o.orientation==="horizontal"&&{marginLeft:-1},o.variant==="outlined"&&o.orientation==="vertical"&&{marginTop:-1})})),no=m.forwardRef(function(o,i){const l=_({props:o,name:"MuiButtonGroup"}),{children:g,className:B,color:d="primary",component:s="div",disabled:v=!1,disableElevation:h=!1,disableFocusRipple:b=!1,disableRipple:c=!1,fullWidth:x=!1,orientation:P="horizontal",size:$="medium",variant:C="outlined"}=l,e=A(l,oo),y=p({},l,{color:d,component:s,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,orientation:P,size:$,variant:C}),f=io(y),L=m.useMemo(()=>({className:f.grouped,color:d,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,size:$,variant:C}),[d,v,h,b,c,x,$,C,f.grouped]),T=S(g),W=T.length,O=z=>{const R=z===0,G=z===W-1;return R&&G?"":R?f.firstButton:G?f.lastButton:f.middleButton};return n.jsx(ro,p({as:s,role:"group",className:q(f.root,B),ref:i,ownerState:y},e,{children:n.jsx(F.Provider,{value:L,children:T.map((z,R)=>n.jsx(H.Provider,{value:O(R),children:z},R))})}))}),ao=no;function j(t){const{size:o,color:i,menu:l,children:g,variant:B,onClick:d,menuButtonProps:s,...v}=t,[h,b]=m.useState(!1),c=m.useRef(null),x=Array.isArray(l)?l.map((e,y)=>m.isValidElement(e)?e:m.createElement(E,{...e,key:y})):l,P=()=>{b(e=>!e)},$=e=>{c.current&&c.current.contains(e.target)||b(!1)},C=e=>{e.target.closest(".MuiMenuItem-root")&&b(!1)};return n.jsxs(n.Fragment,{children:[n.jsxs(eo,{variant:B,size:o,color:i,ref:c,...v,children:[typeof g=="function"?g():n.jsx(k,{onClick:d,color:i,children:g}),n.jsx(k,{onClick:P,color:i,...s,"aria-label":"more functions",children:n.jsx(Z,{})})]}),n.jsx(lo,{open:h,anchorEl:c.current,placement:"bottom-end",disablePortal:!1,children:n.jsx(J,{children:n.jsx(K,{onClickAway:$,children:n.jsx(Q,{onClick:C,children:x})})})})]})}j.propTypes={size:u.oneOf(["small","medium","large"]),color:u.oneOf(["primary","secondary","inherit"]),menu:u.oneOfType([u.node,u.array]),children:u.node,variant:u.oneOf(["outlined","contained"]),onClick:u.func,menuButtonProps:u.object};j.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:X,menuButtonProps:{}};j.Item=E;const eo=M(ao)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -1,4 +1,4 @@
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-b7P8dXaW.js";import{d as mt,_ as zt}from"./useSetState-XoAUn8MB.js";import{D as ht}from"./index-mR4p-IgT.js";import{T as bt}from"./index-8yqf8NtP.js";import{B as N}from"./Box-5JP3oQ3C.js";import{S as $e}from"./CircularProgress-vLV_mYDK.js";import{W as Wt}from"./did-address-nnmMTsE0.js";import{C as xt,M as Ut}from"./confirm-X32y0OJ8.js";import{B as gt,d as Kt}from"./ChevronRight-zPOQgoXz.js";import{B as Ht,I as ve}from"./IconButton-Stp3xBL-.js";import{_ as qt,F as Xt,C as Jt}from"./Checkbox-1cXdLmYE.js";import{u as Gt}from"./session-m6Wr3myh.js";import{s as K,u as Ve}from"./styled-PB3HdPJn.js";import{c as Qt}from"./createSvgIcon-As8N9OsD.js";import{T as _}from"./Typography-gzW9rNGq.js";import{a as Yt,b as Zt}from"./formControlState-RTdrWynp.js";import{M as J}from"./TextField-MscCjrFR.js";import{M as De}from"./InputAdornment-Qv284Vfe.js";import{d as Ze}from"./Download-RZ4Xe2KO.js";import{d as eo}from"./DeleteOutline-7B3nYSpV.js";import{T as to}from"./index-2lTWjgGl.js";import{M as oo,A as lo,f as Ee}from"./index-7YCI1diH.js";import{C as so}from"./click-to-copy-yc98TA-Y.js";import{c as yt}from"./index-LjaUA433.js";import{i as no}from"./index-A0XP7jOV.js";import{d as ro}from"./ExpandMore-vPh5i2pY.js";import{d as io}from"./OpenInNew-JP2h5vEP.js";import{C as kt}from"./Collapse-MqqvdojT.js";import"./api-Ju9OpSYb.js";import{A as ao}from"./Avatar-YMtJdnI_.js";import"./FilterList-1CdZTXpd.js";import"./Search-YNaL_Cal.js";import"./TextField-MHpA2nij.js";import"./createStack-Q1bse37y.js";import"./Grid-69U8MTSa.js";import"./Toolbar-blleP0fp.js";import"./index-5z2yj7B6.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Link-UFDa3yGB.js";import"./Select-tZktthO0.js";import"./InputLabel-uyVS695v.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)`
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-1LoAlz_D.js";import{d as mt,_ as zt}from"./useSetState-W0uZizyA.js";import{D as ht}from"./index-p49pWz3A.js";import{T as bt}from"./index-lH7kst-l.js";import{B as N}from"./Box-2_oXuYOC.js";import{S as $e}from"./CircularProgress-UhRyzU-L.js";import{W as Wt}from"./did-address-EcQj8KKn.js";import{C as xt,M as Ut}from"./confirm-qiO2KLCl.js";import{B as gt,d as Kt}from"./ChevronRight-23KxaoBu.js";import{B as Ht,I as ve}from"./IconButton-UwR3-0NL.js";import{_ as qt,F as Xt,C as Jt}from"./Checkbox-WEkSGgqM.js";import{u as Gt}from"./session-qd-ncyNw.js";import{s as K,u as Ve}from"./styled-vyyGyo-B.js";import{c as Qt}from"./createSvgIcon-dMfYf-BF.js";import{T as _}from"./Typography-gcm4VbT4.js";import{a as Yt,b as Zt}from"./formControlState-ITAwsVlF.js";import{M as J}from"./TextField-7oqc3A5T.js";import{M as De}from"./InputAdornment-eiYABgDx.js";import{d as Ze}from"./Download-RrzGwcpL.js";import{d as eo}from"./DeleteOutline-dHCLXJOk.js";import{T as to}from"./index-IfzllcnH.js";import{M as oo,A as lo,f as Ee}from"./index-ifZh0v2H.js";import{C as so}from"./click-to-copy-YCRgRpgV.js";import{c as yt}from"./index-x-hWO8c2.js";import{i as no}from"./index-f2e8-jph.js";import{d as ro}from"./ExpandMore-AZp5Wv95.js";import{d as io}from"./OpenInNew-e-1hEprE.js";import{C as kt}from"./Collapse-Rktw-r6T.js";import"./api-plw61fT1.js";import{A as ao}from"./Avatar-5PX3dF0M.js";import"./FilterList-tSSRG144.js";import"./Search-hARQKO4c.js";import"./TextField-Xzz8twmn.js";import"./createStack-otVt5u3V.js";import"./Grid-LxqZ048V.js";import"./Toolbar-erlbYT0o.js";import"./index-wzDvlRWd.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Link-Ztw8lZh_.js";import"./Select-VVRpAz6G.js";import"./InputLabel-Z2BfnoGi.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
2
  .main-table > div:first-child {
3
3
  display: none;
4
4
  }
@@ -108,7 +108,7 @@ 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 a
108
108
  background: #fff;
109
109
  z-index: 10;
110
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-o04d-cyu.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`
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-Pl9wLqVE.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
112
  .sticky-header {
113
113
  margin-top: -12px;
114
114
  padding: 12px 0;
@@ -195,7 +195,7 @@ 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 a
195
195
  `;export{Pt as default};
196
196
  function __vite__mapDeps(indexes) {
197
197
  if (!__vite__mapDeps.viteFileDeps) {
198
- __vite__mapDeps.viteFileDeps = ["assets/react-o04d-cyu.js","assets/index-b7P8dXaW.js","assets/index-TCTrVMXW.css","assets/index-iz89eKW_.js","assets/preact.module-yJdvQMHZ.js","assets/index-1kJhAn58.js","assets/index-LjaUA433.js","assets/toUpper-vVgUYjsF.js","assets/uniqBy-MyT7qhfv.js","assets/react-yqGXLqWb.css"]
198
+ __vite__mapDeps.viteFileDeps = ["assets/react-Pl9wLqVE.js","assets/index-1LoAlz_D.js","assets/index-TCTrVMXW.css","assets/index-yavkBA9P.js","assets/preact.module-yJdvQMHZ.js","assets/index-A70j6-FT.js","assets/index-x-hWO8c2.js","assets/toUpper-2qNPrjIY.js","assets/uniqBy-pUE78X3A.js","assets/react-yqGXLqWb.css"]
199
199
  }
200
200
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
201
201
  }
@@ -1 +1 @@
1
- import{aM as a}from"./index-b7P8dXaW.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-1LoAlz_D.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{bK as m,r as p,aM as z}from"./index-b7P8dXaW.js";var M={},B={},u={},x={},h={};h.__esModule=!0;h.joinClassNames=void 0;h.joinClassNames=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];return s.filter(function(d){return d}).join(" ")};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=h,v=function(n){var o=n.className,t=n.maxHeight,a=n.color,e=n.lineSpacing,l=e===void 0?"0.7em":e,c=n.style,f={maxHeight:t,width:"100%",height:"1em",backgroundColor:a,marginTop:l};return d.createElement("div",{className:i.joinClassNames("text-row",o),style:r(r({},f),c)})};s.default=v})(x);var P={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=h,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,borderRadius:"500rem",width:"100%",height:"100%"};return d.createElement("div",{className:i.joinClassNames("round-shape",o),style:r(r({},e),t)})};s.default=v})(P);var L={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=h,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,width:"100%",height:"100%",marginRight:10};return d.createElement("div",{className:i.joinClassNames("rect-shape",o),style:r(r({},e),t)})};s.default=v})(L);var k={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=x,v=h,n={width:"100%"},o=[97,100,94,90,98,95,98,40],t=function(a){var e=a.rows,l=a.lineSpacing,c=a.color,f=a.style,j=a.className,w=a.widths,_=w===void 0?o:w,g=function(R){return{maxHeight:100/(e*2-1)+"%",width:_[(R+_.length)%_.length]+"%"}};return d.createElement("div",{className:v.joinClassNames("text-block",j),style:r(r({},n),f)},Array.apply(null,Array(e)).map(function(R,b){return d.createElement(i.default,{color:c,style:g(b),lineSpacing:b!==0?l:0,key:b})}))};s.default=t})(k);var A={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=k,v=P,n=h,o={display:"flex"},t=function(a){var e=a.className,l=a.style,c=a.color,f=a.rows;return d.createElement("div",{className:n.joinClassNames("media-block",e),style:r(r({},o),l)},d.createElement(v.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),d.createElement(i.default,{color:c,rows:f}))};s.default=t})(A);u.__esModule=!0;u.media=u.text=u.rect=u.round=u.textRow=u.MediaBlock=u.TextBlock=u.RectShape=u.RoundShape=u.TextRow=void 0;var H=x;u.TextRow=H.default;var D=P;u.RoundShape=D.default;var F=L;u.RectShape=F.default;var W=k;u.TextBlock=W.default;var $=A;u.MediaBlock=$.default;u.textRow=H.default;u.round=D.default;u.rect=F.default;u.text=W.default;u.media=$.default;(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(t){for(var a,e=1,l=arguments.length;e<l;e++){a=arguments[e];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},r.apply(this,arguments)},d=m&&m.__rest||function(t,a){var e={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(e[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(t);c<l.length;c++)a.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(t,l[c])&&(e[l[c]]=t[l[c]]);return e};s.__esModule=!0;var i=p,v=u,n=h,o=function(t){var a=t.delay,e=a===void 0?0:a,l=t.type,c=l===void 0?"text":l,f=t.color,j=f===void 0?"#CDCDCD":f,w=t.rows,_=w===void 0?3:w,g=t.ready,R=t.firstLaunchOnly,b=t.children,C=t.className,G=t.showLoadingAnimation,y=t.customPlaceholder,I=d(t,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),E=i.useState(g),O=E[0],S=E[1],N=i.useRef(null),K=function(){var T=G?n.joinClassNames("show-loading-animation",C):C;if(y&&i.isValidElement(y)){var V=n.joinClassNames(y.props.className,T);return i.cloneElement(y,{className:V})}else if(y)return y;var q=v[c];return i.createElement(q,r({},I,{color:j,rows:_,className:T}))};return i.useEffect(function(){!R&&O&&!g?e&&e>0?N.current=window.setTimeout(function(){S(!1)},e):S(!1):g&&(N.current&&window.clearTimeout(N.current),O||S(!0))},[R,O,g,e]),i.useEffect(function(){return function(){N.current&&window.clearTimeout(N.current)}},[]),O?b:K()};s.default=o})(B);(function(s){s.__esModule=!0;var r=B;s.default=r.default})(M);const Q=z(M);export{Q as R};
1
+ import{bK as m,r as p,aM as z}from"./index-1LoAlz_D.js";var M={},B={},u={},x={},h={};h.__esModule=!0;h.joinClassNames=void 0;h.joinClassNames=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];return s.filter(function(d){return d}).join(" ")};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=h,v=function(n){var o=n.className,t=n.maxHeight,a=n.color,e=n.lineSpacing,l=e===void 0?"0.7em":e,c=n.style,f={maxHeight:t,width:"100%",height:"1em",backgroundColor:a,marginTop:l};return d.createElement("div",{className:i.joinClassNames("text-row",o),style:r(r({},f),c)})};s.default=v})(x);var P={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=h,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,borderRadius:"500rem",width:"100%",height:"100%"};return d.createElement("div",{className:i.joinClassNames("round-shape",o),style:r(r({},e),t)})};s.default=v})(P);var L={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=h,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,width:"100%",height:"100%",marginRight:10};return d.createElement("div",{className:i.joinClassNames("rect-shape",o),style:r(r({},e),t)})};s.default=v})(L);var k={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=x,v=h,n={width:"100%"},o=[97,100,94,90,98,95,98,40],t=function(a){var e=a.rows,l=a.lineSpacing,c=a.color,f=a.style,j=a.className,w=a.widths,_=w===void 0?o:w,g=function(R){return{maxHeight:100/(e*2-1)+"%",width:_[(R+_.length)%_.length]+"%"}};return d.createElement("div",{className:v.joinClassNames("text-block",j),style:r(r({},n),f)},Array.apply(null,Array(e)).map(function(R,b){return d.createElement(i.default,{color:c,style:g(b),lineSpacing:b!==0?l:0,key:b})}))};s.default=t})(k);var A={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=k,v=P,n=h,o={display:"flex"},t=function(a){var e=a.className,l=a.style,c=a.color,f=a.rows;return d.createElement("div",{className:n.joinClassNames("media-block",e),style:r(r({},o),l)},d.createElement(v.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),d.createElement(i.default,{color:c,rows:f}))};s.default=t})(A);u.__esModule=!0;u.media=u.text=u.rect=u.round=u.textRow=u.MediaBlock=u.TextBlock=u.RectShape=u.RoundShape=u.TextRow=void 0;var H=x;u.TextRow=H.default;var D=P;u.RoundShape=D.default;var F=L;u.RectShape=F.default;var W=k;u.TextBlock=W.default;var $=A;u.MediaBlock=$.default;u.textRow=H.default;u.round=D.default;u.rect=F.default;u.text=W.default;u.media=$.default;(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(t){for(var a,e=1,l=arguments.length;e<l;e++){a=arguments[e];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},r.apply(this,arguments)},d=m&&m.__rest||function(t,a){var e={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(e[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(t);c<l.length;c++)a.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(t,l[c])&&(e[l[c]]=t[l[c]]);return e};s.__esModule=!0;var i=p,v=u,n=h,o=function(t){var a=t.delay,e=a===void 0?0:a,l=t.type,c=l===void 0?"text":l,f=t.color,j=f===void 0?"#CDCDCD":f,w=t.rows,_=w===void 0?3:w,g=t.ready,R=t.firstLaunchOnly,b=t.children,C=t.className,G=t.showLoadingAnimation,y=t.customPlaceholder,I=d(t,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),E=i.useState(g),O=E[0],S=E[1],N=i.useRef(null),K=function(){var T=G?n.joinClassNames("show-loading-animation",C):C;if(y&&i.isValidElement(y)){var V=n.joinClassNames(y.props.className,T);return i.cloneElement(y,{className:V})}else if(y)return y;var q=v[c];return i.createElement(q,r({},I,{color:j,rows:_,className:T}))};return i.useEffect(function(){!R&&O&&!g?e&&e>0?N.current=window.setTimeout(function(){S(!1)},e):S(!1):g&&(N.current&&window.clearTimeout(N.current),O||S(!0))},[R,O,g,e]),i.useEffect(function(){return function(){N.current&&window.clearTimeout(N.current)}},[]),O?b:K()};s.default=o})(B);(function(s){s.__esModule=!0;var r=B;s.default=r.default})(M);const Q=z(M);export{Q as R};
@@ -1,4 +1,4 @@
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-b7P8dXaW.js";import{s as h,u as E,r as le}from"./styled-PB3HdPJn.js";import{B as ce,h as de,d as O,b as pe,F as ue}from"./formControlState-RTdrWynp.js";import{T as me}from"./Typography-gzW9rNGq.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(`
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-1LoAlz_D.js";import{s as h,u as E,r as le}from"./styled-vyyGyo-B.js";import{B as ce,h as de,d as O,b as pe,F as ue}from"./formControlState-ITAwsVlF.js";import{T as me}from"./Typography-gcm4VbT4.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
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
3
  width: ${e=>e.size*2}px;
4
4
  height: ${e=>e.size*2}px;
@@ -1,4 +1,4 @@
1
- import{cn as e,P as o,r as u,j as p,c9 as h,cg as x,bx as b,V as w}from"./index-b7P8dXaW.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=x(n,s,["style"]),{type:r,content:l,children:m,style:g,className:y,forwardedRef:d,...f}=t,{palette:a}=b(),i=Object.assign({},c[r]||c.primary,g);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:y,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=h(w)`
1
+ import{cn as e,P as o,r as u,j as p,c9 as h,cg as x,bx as b,V as w}from"./index-1LoAlz_D.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=x(n,s,["style"]),{type:r,content:l,children:m,style:g,className:y,forwardedRef:d,...f}=t,{palette:a}=b(),i=Object.assign({},c[r]||c.primary,g);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:y,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=h(w)`
2
2
  && {
3
3
  display: inline-flex;
4
4
  justify-content: center;