@abtnode/blocklet-services 1.16.25-beta-be3a37f4 → 1.16.25-beta-44800645

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 (178) hide show
  1. package/dist/assets/{Add-lZ4mxpbL.js → Add-RbgRRhCv.js} +1 -1
  2. package/dist/assets/{Alert-Sdrkip3b.js → Alert-Hc-vRcv5.js} +1 -1
  3. package/dist/assets/{ArrowDropDown-0_YaRpzF.js → ArrowDropDown-fPZj9l3d.js} +1 -1
  4. package/dist/assets/{Avatar-xLWc5S5b.js → Avatar-pFlMlW9k.js} +1 -1
  5. package/dist/assets/{ButtonGroup-Re1nNykr.js → ButtonGroup-fYdjWCqA.js} +1 -1
  6. package/dist/assets/{CheckCircle-pSajKl0K.js → CheckCircle-fSvBxXZ6.js} +1 -1
  7. package/dist/assets/{ChevronRight-E9CFXCjm.js → ChevronRight-ClXyVjft.js} +1 -1
  8. package/dist/assets/{CloseOutlined-X-D-0DBL.js → CloseOutlined-VT0zAvld.js} +1 -1
  9. package/dist/assets/{Delete-yBiZpo99.js → Delete-afRhjl9p.js} +1 -1
  10. package/dist/assets/{DeleteOutline-65Cuhlpm.js → DeleteOutline-gpvwCJBG.js} +1 -1
  11. package/dist/assets/{Done-xYwONwQm.js → Done-9tgSPX47.js} +1 -1
  12. package/dist/assets/{Download-nUZa-YZm.js → Download-7lfhfrMU.js} +1 -1
  13. package/dist/assets/{Edit-OhHXrW-y.js → Edit-G99zPQk6.js} +1 -1
  14. package/dist/assets/{EditIcon-Bc_-MLIG.js → EditIcon-A5ZyjJ6d.js} +1 -1
  15. package/dist/assets/{ExpandMore-V-R7JsGL.js → ExpandMore-TWn4Tvg-.js} +1 -1
  16. package/dist/assets/{FilterList-Hm_AfXra.js → FilterList-WYr_w9y3.js} +1 -1
  17. package/dist/assets/{FormControl-UyqgO9Ab.js → FormControl-mFUfcsqw.js} +1 -1
  18. package/dist/assets/{FormControlLabel-9bCs5HRT.js → FormControlLabel-x8ZAESYq.js} +1 -1
  19. package/dist/assets/{FormGroup-ofRNksFA.js → FormGroup-rPjzKW3Y.js} +1 -1
  20. package/dist/assets/{Google-S_pBVgQ8.js → Google-beHujGwD.js} +1 -1
  21. package/dist/assets/{Grid-3SE35yjG.js → Grid-tXSADazD.js} +1 -1
  22. package/dist/assets/{Hidden-oxCC7kMQ.js → Hidden-uo52Be7o.js} +1 -1
  23. package/dist/assets/{InfoOutlined-jLffwAQN.js → InfoOutlined-DDI2ORHD.js} +1 -1
  24. package/dist/assets/{InputAdornment-8CaUKP_t.js → InputAdornment-R97dlEhc.js} +1 -1
  25. package/dist/assets/{InputLabel--xXan3mK.js → InputLabel-C7zmYa1i.js} +1 -1
  26. package/dist/assets/{LastPage-D9tpDmBg.js → LastPage-PqxzIENp.js} +1 -1
  27. package/dist/assets/{Launch-hRhwJbQR.js → Launch-ShqaQv2a.js} +1 -1
  28. package/dist/assets/{LaunchOutlined-6538M4-X.js → LaunchOutlined-T-TKHVc0.js} +1 -1
  29. package/dist/assets/{Link-qwWqvw7Y.js → Link-vJvUXDpQ.js} +1 -1
  30. package/dist/assets/{ListItem-uf59B9KY.js → ListItem-Lk7DD4jR.js} +1 -1
  31. package/dist/assets/{ListItemText-v8mvGUjy.js → ListItemText-AjXkf-Hp.js} +1 -1
  32. package/dist/assets/{LockIcon-HXoQTlUo.js → LockIcon-AQRwt1Yz.js} +1 -1
  33. package/dist/assets/{Loop-y2VDs_7o.js → Loop-ZMhiBMcX.js} +1 -1
  34. package/dist/assets/{MoreHoriz-h0p3UhnV.js → MoreHoriz-AJwUbFbC.js} +1 -1
  35. package/dist/assets/{MoreVert-MwQoF0F6.js → MoreVert-mGfd9QIB.js} +1 -1
  36. package/dist/assets/{OpenInNew-EArz_tFd.js → OpenInNew-KPsrDWVD.js} +1 -1
  37. package/dist/assets/{Pagination-P2Q87_Fw.js → Pagination-C24OInPF.js} +1 -1
  38. package/dist/assets/{PlayArrow-aCMeuyjP.js → PlayArrow-Ahpt4Tqt.js} +1 -1
  39. package/dist/assets/{RadioGroup-J9SFYdhF.js → RadioGroup-EADuYgMS.js} +1 -1
  40. package/dist/assets/{Search-JVIzhtig.js → Search-Tx3hGdOJ.js} +1 -1
  41. package/dist/assets/{Select-Uz_h4btJ.js → Select-tj9u34pI.js} +1 -1
  42. package/dist/assets/{ServerLogo-cJ3Q9a_X.js → ServerLogo-1ZgolQg7.js} +1 -1
  43. package/dist/assets/{Skeleton--a2ajR0H.js → Skeleton-3UEk9PiF.js} +1 -1
  44. package/dist/assets/{Slider-d03zAvC1.js → Slider-eN72r9Lh.js} +1 -1
  45. package/dist/assets/{Stepper-Ckw-JQ2D.js → Stepper-byv_tUG1.js} +1 -1
  46. package/dist/assets/{TableRow-wEa_QnPy.js → TableRow-m-kPORhi.js} +1 -1
  47. package/dist/assets/{TextField-y1frF4gR.js → TextField-GwYTrJWV.js} +1 -1
  48. package/dist/assets/{Toolbar-y0kWdfqe.js → Toolbar-qOcEr5XA.js} +1 -1
  49. package/dist/assets/{ViewList-nYuZscNN.js → ViewList-3IAYdgZb.js} +1 -1
  50. package/dist/assets/{access-control-APvTPpAm.js → access-control-mo9yzqp-.js} +1 -1
  51. package/dist/assets/{actions-DL367zbF.js → actions-M-m19BeQ.js} +1 -1
  52. package/dist/assets/{add-component-core-KZRHpJtF.js → add-component-core-WXty5t79.js} +1 -1
  53. package/dist/assets/add-resource-Nod3O2LT.js +1 -0
  54. package/dist/assets/{addon-PtLac09D.js → addon-PLI5E7Ma.js} +1 -1
  55. package/dist/assets/{analytics-r5zIdsEi.js → analytics-3cZtwND4.js} +1 -1
  56. package/dist/assets/api-BB9R1fve.js +1 -0
  57. package/dist/assets/{ar-D9yktoXU.js → ar-QYKKaEb-.js} +1 -1
  58. package/dist/assets/{audit-logs-L50xEbC1.js → audit-logs-A_9W4NvX.js} +1 -1
  59. package/dist/assets/{button-kxA4_akG.js → button-l-TbiytY.js} +1 -1
  60. package/dist/assets/{click-to-copy-BXczzFkc.js → click-to-copy-LvKlsEgb.js} +1 -1
  61. package/dist/assets/{complete-wFu-iD6J.js → complete-Nd2WjIiW.js} +1 -1
  62. package/dist/assets/{component-cgfgry4n.js → component-cq_RYTzF.js} +39 -39
  63. package/dist/assets/{config-u8MQycm5.js → config-6sACRV3b.js} +1 -1
  64. package/dist/assets/{config-P1j_HOCS.js → config-GEFqXeWN.js} +1 -1
  65. package/dist/assets/{config-navigation-44ONhSCZ.js → config-navigation-SX6ZSEZr.js} +1 -1
  66. package/dist/assets/{config-space-wFjyKefP.js → config-space-lmB_PN0g.js} +1 -1
  67. package/dist/assets/{confirm-2kHFQlD_.js → confirm-y500w-Zq.js} +1 -1
  68. package/dist/assets/{connect-DhaI81RV.js → connect-OvnvqnaY.js} +1 -1
  69. package/dist/assets/{connect-8d2_FRcC.js → connect-mzcG8PDd.js} +1 -1
  70. package/dist/assets/{connect-to-IYkW0Mij.js → connect-to-7LNSS9uq.js} +1 -1
  71. package/dist/assets/{content-layout-K3qfzXkD.js → content-layout-4TzFn-oP.js} +1 -1
  72. package/dist/assets/{dashboard-EF-S_0yr.js → dashboard-G9QPL_nR.js} +3 -3
  73. package/dist/assets/{de-QQ-sRiHr.js → de-2-jD6QEr.js} +1 -1
  74. package/dist/assets/{did-address-Q6r9kSWU.js → did-address-bpVwxY87.js} +1 -1
  75. package/dist/assets/{domain-XXTXs5-i.js → domain-UT2T98Bi.js} +1 -1
  76. package/dist/assets/{domain-list-XLuzyzq7.js → domain-list-0_WGUKIp.js} +1 -1
  77. package/dist/assets/{es-udrxAOPj.js → es-1XcdsJ2u.js} +1 -1
  78. package/dist/assets/{exchange-passport-2p0qsOrz.js → exchange-passport-zyT8DGS5.js} +1 -1
  79. package/dist/assets/{fallback-stZRYYBF.js → fallback-DPep9aPI.js} +1 -1
  80. package/dist/assets/{fr-tQ3isg9d.js → fr-BOg_vssD.js} +1 -1
  81. package/dist/assets/{fuel-DZxH_Hjw.js → fuel-mUKxoRwM.js} +1 -1
  82. package/dist/assets/{fullpage-a5T_jRyi.js → fullpage-Kz6_uBrt.js} +1 -1
  83. package/dist/assets/{hi-n-_OAux8.js → hi-omXH4h0-.js} +1 -1
  84. package/dist/assets/{home-2OrcwbfG.js → home-2TZwOhas.js} +1 -1
  85. package/dist/assets/{id-gvVGB1k_.js → id-eN35NmSv.js} +1 -1
  86. package/dist/assets/{iframe-Kzn32-hn.js → iframe-t1YG6sKf.js} +1 -1
  87. package/dist/assets/{index-5-f0uSU3.js → index-3gEJxYUx.js} +1 -1
  88. package/dist/assets/{index-aHetRZlP.js → index-4_kfWHm5.js} +1 -1
  89. package/dist/assets/{index-3ySpuGaA.js → index-5aDxOjX3.js} +1 -1
  90. package/dist/assets/{index-qlPnZF_S.js → index-5jnMol7l.js} +1 -1
  91. package/dist/assets/{index-41MsyR99.js → index-7wnQOIvK.js} +1 -1
  92. package/dist/assets/{index-CRbbKO3F.js → index-8KLdqC7x.js} +1 -1
  93. package/dist/assets/{index-3gq6XeKX.js → index-8glvWVr4.js} +3 -3
  94. package/dist/assets/{index-_IFA08HO.js → index-9uBgJQwB.js} +1 -1
  95. package/dist/assets/{index-AAeG7JoU.js → index-DHHN0KIM.js} +1 -1
  96. package/dist/assets/{index-d0HWrgcb.js → index-F-a7lH-V.js} +1 -1
  97. package/dist/assets/{index-qSYDZylC.js → index-Fu6i9CIs.js} +79 -79
  98. package/dist/assets/{index-btS5NVdj.js → index-Gk2kKcuz.js} +1 -1
  99. package/dist/assets/{index-i7lnxZJ8.js → index-H2H5vR6m.js} +1 -1
  100. package/dist/assets/{index-dbuVZzvX.js → index-IABG1nxI.js} +1 -1
  101. package/dist/assets/{index-Xmh3L24H.js → index-IC6pvK0u.js} +1 -1
  102. package/dist/assets/{index-5UdUp3Bz.js → index-LLy9KxIl.js} +1 -1
  103. package/dist/assets/{index-8Ltw7adH.js → index-RmYNzgY-.js} +1 -1
  104. package/dist/assets/{index-h_D0VzlA.js → index-UjtCZLjM.js} +1 -1
  105. package/dist/assets/{index-eksOb0dZ.js → index-W1ANfu7o.js} +3 -3
  106. package/dist/assets/{index-V3bd7z9T.js → index-XQ_DuiRL.js} +1 -1
  107. package/dist/assets/{index-baXn_loT.js → index-dL4kdOyY.js} +1 -1
  108. package/dist/assets/{index-QEc24wlT.js → index-fiOQQyqn.js} +1 -1
  109. package/dist/assets/{index-aF8jhNI-.js → index-lUyTcquW.js} +1 -1
  110. package/dist/assets/{index-rPWBV4BD.js → index-mnGytjkS.js} +1 -1
  111. package/dist/assets/{index-Z516eVX-.js → index-nIL7Y1uW.js} +1 -1
  112. package/dist/assets/{index-0FPN72Sx.js → index-oAFK2q12.js} +3 -3
  113. package/dist/assets/{index-qovA7RT2.js → index-vObSINnE.js} +1 -1
  114. package/dist/assets/{index-eHiuO6FO.js → index-xHjvXRZd.js} +1 -1
  115. package/dist/assets/{index.es-PP-WzLpZ.js → index.es-sUhZ7WY4.js} +1 -1
  116. package/dist/assets/{index.esm-7VB_gheg.js → index.esm-WAg8huF7.js} +1 -1
  117. package/dist/assets/{invitation-MFS-Nbg2.js → invitation-iD84rDgy.js} +1 -1
  118. package/dist/assets/{invite-A0723Fa0.js → invite-xHmIQdYA.js} +1 -1
  119. package/dist/assets/{issue-passport-qeoGEzEJ.js → issue-passport-V52Tex3M.js} +1 -1
  120. package/dist/assets/{ja-rpqthl1E.js → ja-uXcYH1WO.js} +1 -1
  121. package/dist/assets/{jss-plugin-props-sort.esm-D5BlghfN.js → jss-plugin-props-sort.esm-C-ZUMnWl.js} +1 -1
  122. package/dist/assets/{ko-h4z2Ved-.js → ko-185M34oe.js} +1 -1
  123. package/dist/assets/{launch-result-message-BTtWZO4x.js → launch-result-message-AqcVfxi2.js} +1 -1
  124. package/dist/assets/{layout-zDjW3z4b.js → layout-R2ymlaZ8.js} +1 -1
  125. package/dist/assets/{list-header-NrNf4ww2.js → list-header-ecCasU0T.js} +1 -1
  126. package/dist/assets/localization-G92KSOVY.js +1 -0
  127. package/dist/assets/{log-vtX0UCjY.js → log-mVf6rSLC.js} +1 -1
  128. package/dist/assets/{login-flhHgexj.js → login-MCGWBpAv.js} +1 -1
  129. package/dist/assets/{logo-uploader-xRQlkZ4F.js → logo-uploader-k-46j1Ns.js} +3 -3
  130. package/dist/assets/{lost-passport-mha6EGzR.js → lost-passport-4LBTSM8W.js} +3 -3
  131. package/dist/assets/{lottie-ZP6kRMPz.js → lottie-WidlKumj.js} +1 -1
  132. package/dist/assets/{notifications-3Xzs4h9V.js → notifications-Mm9ok9mm.js} +1 -1
  133. package/dist/assets/{overview-WqmvrFVk.js → overview-CNCtbf9K.js} +1 -1
  134. package/dist/assets/{page-header-_Bv8UU1p.js → page-header-m2AlDbtJ.js} +1 -1
  135. package/dist/assets/{permission-UQw_mXhQ.js → permission-rvAJofNO.js} +1 -1
  136. package/dist/assets/{preferences-tICAys9H.js → preferences-WjdetJyv.js} +1 -1
  137. package/dist/assets/{pt-IgiDTYB-.js → pt-z7OfMj-M.js} +1 -1
  138. package/dist/assets/publish-resource-nIIJ2ZM9.js +1 -0
  139. package/dist/assets/{react-borpVomN.js → react-Q619OHdV.js} +3 -3
  140. package/dist/assets/{redux--rqpftZj.js → redux-g7QVn4tY.js} +1 -1
  141. package/dist/assets/{ru-RDsyfXO5.js → ru-yjZq7H3q.js} +1 -1
  142. package/dist/assets/{selector-sBtObpG1.js → selector-TryFKxPO.js} +1 -1
  143. package/dist/assets/session-yHfr4mpL.js +1 -0
  144. package/dist/assets/{setup-sUfD_NMH.js → setup-nP8GAtE3.js} +3 -3
  145. package/dist/assets/{slicedToArray-vO7CT7RI.js → slicedToArray-EpbFzTC2.js} +1 -1
  146. package/dist/assets/{spaces-Mb6GGuoZ.js → spaces-YgNUW4Gd.js} +1 -1
  147. package/dist/assets/{start-i4dGLDuk.js → start-tlCgG8Ew.js} +1 -1
  148. package/dist/assets/{step-actions-eyJ47HoG.js → step-actions-v_hcTHRD.js} +1 -1
  149. package/dist/assets/{studio-mrQdpWqr.js → studio-1ow5ZAEc.js} +1 -1
  150. package/dist/assets/{switch-control-XB9n-Ggg.js → switch-control-Zbrqx6Ew.js} +1 -1
  151. package/dist/assets/{th-J7YiOUSD.js → th-Mrqi4DKP.js} +1 -1
  152. package/dist/assets/{toUpper-40rJRTB6.js → toUpper-NJ4QXIze.js} +1 -1
  153. package/dist/assets/{transfer-7z-6sRns.js → transfer-N63axgYn.js} +1 -1
  154. package/dist/assets/{ua-parser-M2aliXHw.js → ua-parser--DJGheiy.js} +1 -1
  155. package/dist/assets/{uniqBy-FPiZPJ28.js → uniqBy-i-surHNj.js} +1 -1
  156. package/dist/assets/{unsubscribe-Bgz-96K2.js → unsubscribe-trXOozY8.js} +1 -1
  157. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-RqzHWIsv.js → use-blocklet-info-for-connect-did-spaces-wPuELHgZ.js} +1 -1
  158. package/dist/assets/{useAsync-HlOA1vZO.js → useAsync-1tY7at3-.js} +1 -1
  159. package/dist/assets/{useFormControl-RPQwTOAU.js → useFormControl-vN6TXdWi.js} +1 -1
  160. package/dist/assets/{useLocalStorage-QIvxcgrR.js → useLocalStorage-cWn4IlZf.js} +1 -1
  161. package/dist/assets/{useSetState-7V0tflQ2.js → useSetState-g2p2X03O.js} +1 -1
  162. package/dist/assets/{useSlot-rlbG6RwJ.js → useSlot-MeOlDmtJ.js} +1 -1
  163. package/dist/assets/{user-center-MixqlgtO.js → user-center-j57gXRC0.js} +1 -1
  164. package/dist/assets/{user-sessions-DHsskD-P.js → user-sessions-TUevi34A.js} +1 -1
  165. package/dist/assets/{util-85N-_Pgj.js → util-WuGd-dVe.js} +1 -1
  166. package/dist/assets/{vi-kAbNCgvr.js → vi-HKoQZZgD.js} +1 -1
  167. package/dist/assets/wrap-locale-fTUDpO_H.js +7 -0
  168. package/dist/assets/{zh-y3CgTRBX.js → zh-XPFWoF1h.js} +1 -1
  169. package/dist/assets/{zh-tw-pkAc85io.js → zh-tw-_3Gc_DYG.js} +1 -1
  170. package/dist/index.html +1 -1
  171. package/dist/service-worker.js +1 -1
  172. package/package.json +18 -18
  173. package/dist/assets/add-resource-T1d1Huct.js +0 -1
  174. package/dist/assets/api-4mY5BjEo.js +0 -1
  175. package/dist/assets/localization-2rcERL-P.js +0 -1
  176. package/dist/assets/publish-resource-G6Rshv3j.js +0 -1
  177. package/dist/assets/session-PXkZWYZj.js +0 -1
  178. package/dist/assets/wrap-locale-GDRCyvNR.js +0 -7
@@ -1,4 +1,4 @@
1
- import{P as o,j as n,d7 as z,d8 as Z,d9 as U,bQ as b,G as q,u as B,r as $,da as _,aH as C,bo as ee,B as w,X as W}from"./index-qSYDZylC.js";import{E as D}from"./fallback-stZRYYBF.js";import{R as oe,N as ne}from"./index-eHiuO6FO.js";import{i as te,a as re,B as G,S as ie,u as ae,f as K,g as R,p as se,m as Q,b as le,c as pe,H as de}from"./index-3gq6XeKX.js";import{d as ce}from"./ExpandMore-V-R7JsGL.js";import{A}from"./Avatar-xLWc5S5b.js";function N({icon:e,size:t,sx:r,...a}){const i=[...Array.isArray(r)?r:[r]];if(t&&i.push({width:t,height:t}),a.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),te(e))return n.jsx(A,{as:"span",...a,src:e,sx:i});if(re(e)){const u=t?.6*t+4:0;return n.jsx(A,{as:"span",...a,sx:i,children:n.jsx("iconify-icon",{icon:e,height:u||void 0})})}return e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),n.jsx(A,{as:"span",...a,sx:i,children:Array.from(e)[0]})):null}N.propTypes={icon:o.string.isRequired,size:o.number,sx:o.oneOfType([o.array,o.func,o.object])};N.defaultProps={size:null,sx:null};const ue=z();function S({theme:e,children:t}){const r=e?z(e):ue;return n.jsx(Z,{theme:r,children:t})}S.propTypes={children:o.any.isRequired,theme:o.object};S.defaultProps={theme:null};const fe=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const a=Q(e,s=>{var d,c;const p=s.icon?n.jsx(N,{icon:s.icon}):null;if(s.items)return{id:`${t++}`,label:s.title,icon:p,children:s.items};let l={};return((d=s.link)!=null&&d.startsWith("http://")||(c=s.link)!=null&&c.startsWith("https://"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:n.jsx("a",{href:s.link,...l,children:s.title}),icon:p,link:s.link}},"items"),i=le(a),u=pe(i.map(s=>s.link));return{navItems:a,activeId:u>=0?i[u].id:null}};function P({meta:e,addons:t,sessionManagerProps:r,homeLink:a,theme:i,hideNavMenu:u,...s}){var h,M;ae();const{locale:p}=B()||{},l=$.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return K(j)}catch(J){return console.error("Failed to format blocklet info",J,j),j}},[e]);if(!l.appName)return null;const{appLogo:d,appLogoRect:c,theme:m}=l,f=R((h=l==null?void 0:l.navigation)==null?void 0:h.header,p),y=fe(f),{navItems:g,activeId:k}=y,v=typeof t=="function"?j=>t(j,{navigation:y}):t,x=n.jsx(de,{formattedBlocklet:l,addons:v,sessionManagerProps:r});return n.jsx(S,{theme:i,children:n.jsx(he,{homeLink:a,logo:n.jsx("img",{src:c||d,alt:"logo"}),addons:x,..._(s,["bordered"]),$bordered:s==null?void 0:s.bordered,$bgcolor:(M=m==null?void 0:m.background)==null?void 0:M.header,children:u||!(g!=null&&g.length)?null:({isMobile:j})=>n.jsx(ne,{mode:j?"inline":"horizontal",activeId:k,items:g,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}P.propTypes={meta:G,addons:o.oneOfType([o.func,o.node]),sessionManagerProps:ie,homeLink:o.string,theme:o.object,hideNavMenu:o.bool};P.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:se,theme:null,hideNavMenu:!1};const he=b(oe)`
1
+ import{P as o,j as n,d7 as z,d8 as Z,d9 as U,bQ as b,G as q,u as B,r as $,da as _,aH as C,bo as ee,B as w,X as W}from"./index-Fu6i9CIs.js";import{E as D}from"./fallback-DPep9aPI.js";import{R as oe,N as ne}from"./index-xHjvXRZd.js";import{i as te,a as re,B as G,S as ie,u as ae,f as K,g as R,p as se,m as Q,b as le,c as pe,H as de}from"./index-8glvWVr4.js";import{d as ce}from"./ExpandMore-TWn4Tvg-.js";import{A}from"./Avatar-pFlMlW9k.js";function N({icon:e,size:t,sx:r,...a}){const i=[...Array.isArray(r)?r:[r]];if(t&&i.push({width:t,height:t}),a.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),te(e))return n.jsx(A,{as:"span",...a,src:e,sx:i});if(re(e)){const u=t?.6*t+4:0;return n.jsx(A,{as:"span",...a,sx:i,children:n.jsx("iconify-icon",{icon:e,height:u||void 0})})}return e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),n.jsx(A,{as:"span",...a,sx:i,children:Array.from(e)[0]})):null}N.propTypes={icon:o.string.isRequired,size:o.number,sx:o.oneOfType([o.array,o.func,o.object])};N.defaultProps={size:null,sx:null};const ue=z();function S({theme:e,children:t}){const r=e?z(e):ue;return n.jsx(Z,{theme:r,children:t})}S.propTypes={children:o.any.isRequired,theme:o.object};S.defaultProps={theme:null};const fe=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const a=Q(e,s=>{var d,c;const p=s.icon?n.jsx(N,{icon:s.icon}):null;if(s.items)return{id:`${t++}`,label:s.title,icon:p,children:s.items};let l={};return((d=s.link)!=null&&d.startsWith("http://")||(c=s.link)!=null&&c.startsWith("https://"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:n.jsx("a",{href:s.link,...l,children:s.title}),icon:p,link:s.link}},"items"),i=le(a),u=pe(i.map(s=>s.link));return{navItems:a,activeId:u>=0?i[u].id:null}};function P({meta:e,addons:t,sessionManagerProps:r,homeLink:a,theme:i,hideNavMenu:u,...s}){var h,M;ae();const{locale:p}=B()||{},l=$.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return K(j)}catch(J){return console.error("Failed to format blocklet info",J,j),j}},[e]);if(!l.appName)return null;const{appLogo:d,appLogoRect:c,theme:m}=l,f=R((h=l==null?void 0:l.navigation)==null?void 0:h.header,p),y=fe(f),{navItems:g,activeId:k}=y,v=typeof t=="function"?j=>t(j,{navigation:y}):t,x=n.jsx(de,{formattedBlocklet:l,addons:v,sessionManagerProps:r});return n.jsx(S,{theme:i,children:n.jsx(he,{homeLink:a,logo:n.jsx("img",{src:c||d,alt:"logo"}),addons:x,..._(s,["bordered"]),$bordered:s==null?void 0:s.bordered,$bgcolor:(M=m==null?void 0:m.background)==null?void 0:M.header,children:u||!(g!=null&&g.length)?null:({isMobile:j})=>n.jsx(ne,{mode:j?"inline":"horizontal",activeId:k,items:g,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}P.propTypes={meta:G,addons:o.oneOfType([o.func,o.node]),sessionManagerProps:ie,homeLink:o.string,theme:o.object,hideNavMenu:o.bool};P.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:se,theme:null,hideNavMenu:!1};const he=b(oe)`
2
2
  ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
3
3
  font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
4
4
  'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -1,4 +1,4 @@
1
- import{r,b3 as p,j as e,b as d,ad as M,bs as I,c4 as z,P as o,bD as E,bQ as m,br as O}from"./index-qSYDZylC.js";import{d as S}from"./ExpandMore-V-R7JsGL.js";import{B as v}from"./ButtonGroup-Re1nNykr.js";function u(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),b=Array.isArray(a)?a.map((n,P)=>r.isValidElement(n)?n:r.createElement(p,{...n,key:P})):a,k=()=>{c(n=>!n)},B=n=>{t.current&&t.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(d,{onClick:x,color:i,children:l}),e.jsx(d,{onClick:k,color:i,...y,"aria-label":"more functions",children:e.jsx(S,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:B,children:e.jsx(z,{onClick:C,children:b})})})})]})}u.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};u.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:E,menuButtonProps:{}};u.Item=p;const A=m(v)`
1
+ import{r,b3 as p,j as e,b as d,ad as M,bs as I,c4 as z,P as o,bD as E,bQ as m,br as O}from"./index-Fu6i9CIs.js";import{d as S}from"./ExpandMore-TWn4Tvg-.js";import{B as v}from"./ButtonGroup-fYdjWCqA.js";function u(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),t=r.useRef(null),b=Array.isArray(a)?a.map((n,P)=>r.isValidElement(n)?n:r.createElement(p,{...n,key:P})):a,k=()=>{c(n=>!n)},B=n=>{t.current&&t.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:t,...g,children:[typeof l=="function"?l():e.jsx(d,{onClick:x,color:i,children:l}),e.jsx(d,{onClick:k,color:i,...y,"aria-label":"more functions",children:e.jsx(S,{})})]}),e.jsx(L,{open:j,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:B,children:e.jsx(z,{onClick:C,children:b})})})})]})}u.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};u.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:E,menuButtonProps:{}};u.Item=p;const A=m(v)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -1,4 +1,4 @@
1
- import{r as S,j as t,fz as Gt,h as Ee,fA as Zt,aY as H,u as V,T as te,b3 as Ne,fB as _e,bn as ce,ao as Y,W as M,S as ne,P as b,R as W,bK as Jt,dy as Te,y as er,eu as tr,d1 as rr,U as de,B as E,bq as G,o as se,fC as nr,a5 as le,db as sr,aZ as St,x as q,a as ge,bG as wt,c as at,H as or,fD as Ct,bB as Pt,b6 as ir,O as ar,Q as cr,bM as Rt,i as lr,ax as dr,A as mr,dc as ur}from"./index-qSYDZylC.js";import{c as pr}from"./index-Z516eVX-.js";import{d as he}from"./Add-lZ4mxpbL.js";import{d as fr}from"./Loop-y2VDs_7o.js";import{d as gr}from"./ViewList-nYuZscNN.js";import{L as hr,S as xr,d as Ot}from"./list-header-NrNf4ww2.js";import{D as It,g as br}from"./index-qovA7RT2.js";import"./index-V3bd7z9T.js";import"./index-3gq6XeKX.js";import{e as Dt}from"./ua-parser-M2aliXHw.js";import{T as vr}from"./MoreVert-MwQoF0F6.js";import"./fallback-stZRYYBF.js";import"./index-btS5NVdj.js";import{U as yr}from"./user-sessions-DHsskD-P.js";import{u as Q,d as ct,W as Tt,a as jr}from"./dashboard-EF-S_0yr.js";import{W as Le}from"./did-address-Q6r9kSWU.js";import{P as K}from"./permission-UQw_mXhQ.js";import{D as Fe,A as re,f as Z}from"./index-41MsyR99.js";import{C as ve}from"./click-to-copy-BXczzFkc.js";import{F as At}from"./FormControl-UyqgO9Ab.js";import{I as kt}from"./InputLabel--xXan3mK.js";import{S as Et}from"./Select-Uz_h4btJ.js";import{T as Nt}from"./TextField-y1frF4gR.js";import{_ as Sr}from"./useAsync-HlOA1vZO.js";import{I as Ae}from"./index-AAeG7JoU.js";import{C as ye}from"./confirm-2kHFQlD_.js";import{u as _t}from"./session-PXkZWYZj.js";import{A as wr}from"./Avatar-xLWc5S5b.js";import{d as Cr}from"./Delete-yBiZpo99.js";import{A as Pr}from"./actions-DL367zbF.js";import{L as Rr,a as Or}from"./ListItemText-v8mvGUjy.js";import{F as Ir,C as Dr}from"./FormControlLabel-9bCs5HRT.js";import"./Search-JVIzhtig.js";import"./FilterList-Hm_AfXra.js";import"./TableRow-wEa_QnPy.js";import"./Grid-3SE35yjG.js";import"./useFormControl-RPQwTOAU.js";import"./FormGroup-ofRNksFA.js";import"./LastPage-D9tpDmBg.js";import"./Toolbar-y0kWdfqe.js";import"./index-5-f0uSU3.js";import"./redux--rqpftZj.js";import"./index-eHiuO6FO.js";import"./Hidden-oxCC7kMQ.js";import"./MoreHoriz-h0p3UhnV.js";import"./ExpandMore-V-R7JsGL.js";import"./ListItem-uf59B9KY.js";import"./selector-sBtObpG1.js";import"./index-d-Rw6UM2.js";import"./CloseOutlined-X-D-0DBL.js";import"./index-Xmh3L24H.js";import"./useLocalStorage-QIvxcgrR.js";import"./PlayArrow-aCMeuyjP.js";import"./Alert-Sdrkip3b.js";import"./useSlot-rlbG6RwJ.js";import"./ButtonGroup-Re1nNykr.js";import"./RadioGroup-J9SFYdhF.js";import"./spaces-Mb6GGuoZ.js";import"./index-dbuVZzvX.js";import"./api-4mY5BjEo.js";import"./Link-qwWqvw7Y.js";import"./useSetState-7V0tflQ2.js";var Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});var Lt=Ue.default=void 0;Tr(S);var ee=t;function Tr(e){return e&&e.__esModule?e:{default:e}}function lt(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),s.push.apply(s,i)}return s}function dt(e){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?lt(Object(s),!0).forEach(function(i){Ar(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):lt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Ar(e,r,s){return r=kr(r),r in e?Object.defineProperty(e,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[r]=s,e}function kr(e){var r=Er(e,"string");return typeof r=="symbol"?r:String(r)}function Er(e,r){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var $e=function(r){return(0,ee.jsxs)("svg",dt(dt({},r),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};$e.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};$e.displayName="person";Lt=Ue.default=$e;var fe={},Nr=e=>encodeURIComponent(e).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Ft="%[a-f0-9]{2}",mt=new RegExp("("+Ft+")|([^%]+?)","gi"),ut=new RegExp("("+Ft+")+","gi");function ke(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;var s=e.slice(0,r),i=e.slice(r);return Array.prototype.concat.call([],ke(s),ke(i))}function _r(e){try{return decodeURIComponent(e)}catch{for(var r=e.match(mt)||[],s=1;s<r.length;s++)e=ke(r,s).join(""),r=e.match(mt)||[];return e}}function Lr(e){for(var r={"%FE%FF":"��","%FF%FE":"��"},s=ut.exec(e);s;){try{r[s[0]]=decodeURIComponent(s[0])}catch{var i=_r(s[0]);i!==s[0]&&(r[s[0]]=i)}s=ut.exec(e)}r["%C2"]="�";for(var f=Object.keys(r),j=0;j<f.length;j++){var O=f[j];e=e.replace(new RegExp(O,"g"),r[O])}return e}var Fr=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Lr(e)}},Ur=(e,r)=>{if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(r==="")return[e];const s=e.indexOf(r);return s===-1?[e]:[e.slice(0,s),e.slice(s+r.length)]},$r=function(e,r){for(var s={},i=Object.keys(e),f=Array.isArray(r),j=0;j<i.length;j++){var O=i[j],R=e[O];(f?r.indexOf(O)!==-1:r(O,R,e))&&(s[O]=R)}return s};(function(e){const r=Nr,s=Fr,i=Ur,f=$r,j=n=>n==null;function O(n){switch(n.arrayFormat){case"index":return o=>(a,c)=>{const u=a.length;return c===void 0||n.skipNull&&c===null||n.skipEmptyString&&c===""?a:c===null?[...a,[h(o,n),"[",u,"]"].join("")]:[...a,[h(o,n),"[",h(u,n),"]=",h(c,n)].join("")]};case"bracket":return o=>(a,c)=>c===void 0||n.skipNull&&c===null||n.skipEmptyString&&c===""?a:c===null?[...a,[h(o,n),"[]"].join("")]:[...a,[h(o,n),"[]=",h(c,n)].join("")];case"comma":case"separator":return o=>(a,c)=>c==null||c.length===0?a:a.length===0?[[h(o,n),"=",h(c,n)].join("")]:[[a,h(c,n)].join(n.arrayFormatSeparator)];default:return o=>(a,c)=>c===void 0||n.skipNull&&c===null||n.skipEmptyString&&c===""?a:c===null?[...a,h(o,n)]:[...a,[h(o,n),"=",h(c,n)].join("")]}}function R(n){let o;switch(n.arrayFormat){case"index":return(a,c,u)=>{if(o=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!o){u[a]=c;return}u[a]===void 0&&(u[a]={}),u[a][o[1]]=c};case"bracket":return(a,c,u)=>{if(o=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!o){u[a]=c;return}if(u[a]===void 0){u[a]=[c];return}u[a]=[].concat(u[a],c)};case"comma":case"separator":return(a,c,u)=>{const g=typeof c=="string"&&c.includes(n.arrayFormatSeparator),m=typeof c=="string"&&!g&&d(c,n).includes(n.arrayFormatSeparator);c=m?d(c,n):c;const x=g||m?c.split(n.arrayFormatSeparator).map(A=>d(A,n)):c===null?c:d(c,n);u[a]=x};default:return(a,c,u)=>{if(u[a]===void 0){u[a]=c;return}u[a]=[].concat(u[a],c)}}}function p(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(n,o){return o.encode?o.strict?r(n):encodeURIComponent(n):n}function d(n,o){return o.decode?s(n):n}function w(n){return Array.isArray(n)?n.sort():typeof n=="object"?w(Object.keys(n)).sort((o,a)=>Number(o)-Number(a)).map(o=>n[o]):n}function l(n){const o=n.indexOf("#");return o!==-1&&(n=n.slice(0,o)),n}function v(n){let o="";const a=n.indexOf("#");return a!==-1&&(o=n.slice(a)),o}function I(n){n=l(n);const o=n.indexOf("?");return o===-1?"":n.slice(o+1)}function C(n,o){return o.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?n=Number(n):o.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")&&(n=n.toLowerCase()==="true"),n}function y(n,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),p(o.arrayFormatSeparator);const a=R(o),c=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return c;for(const u of n.split("&")){if(u==="")continue;let[g,m]=i(o.decode?u.replace(/\+/g," "):u,"=");m=m===void 0?null:["comma","separator"].includes(o.arrayFormat)?m:d(m,o),a(d(g,o),m,c)}for(const u of Object.keys(c)){const g=c[u];if(typeof g=="object"&&g!==null)for(const m of Object.keys(g))g[m]=C(g[m],o);else c[u]=C(g,o)}return o.sort===!1?c:(o.sort===!0?Object.keys(c).sort():Object.keys(c).sort(o.sort)).reduce((u,g)=>{const m=c[g];return m&&typeof m=="object"&&!Array.isArray(m)?u[g]=w(m):u[g]=m,u},Object.create(null))}e.extract=I,e.parse=y,e.stringify=(n,o)=>{if(!n)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),p(o.arrayFormatSeparator);const a=m=>o.skipNull&&j(n[m])||o.skipEmptyString&&n[m]==="",c=O(o),u={};for(const m of Object.keys(n))a(m)||(u[m]=n[m]);const g=Object.keys(u);return o.sort!==!1&&g.sort(o.sort),g.map(m=>{const x=n[m];return x===void 0?"":x===null?h(m,o):Array.isArray(x)?x.reduce(c(m),[]).join("&"):h(m,o)+"="+h(x,o)}).filter(m=>m.length>0).join("&")},e.parseUrl=(n,o)=>{o=Object.assign({decode:!0},o);const[a,c]=i(n,"#");return Object.assign({url:a.split("?")[0]||"",query:y(I(n),o)},o&&o.parseFragmentIdentifier&&c?{fragmentIdentifier:d(c,o)}:{})},e.stringifyUrl=(n,o)=>{o=Object.assign({encode:!0,strict:!0},o);const a=l(n.url).split("?")[0]||"",c=e.extract(n.url),u=e.parse(c,{sort:!1}),g=Object.assign(u,n.query);let m=e.stringify(g,o);m&&(m=`?${m}`);let x=v(n.url);return n.fragmentIdentifier&&(x=`#${h(n.fragmentIdentifier,o)}`),`${a}${m}${x}`},e.pick=(n,o,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:c,query:u,fragmentIdentifier:g}=e.parseUrl(n,a);return e.stringifyUrl({url:c,query:f(u,o),fragmentIdentifier:g},a)},e.exclude=(n,o,a)=>{const c=Array.isArray(o)?u=>!o.includes(u):(u,g)=>!o(u,g);return e.pick(n,c,a)}})(fe);const ie=Zt,Br={parseNumbers:!1,parseBooleans:!1},Mr={skipNull:!1,skipEmptyString:!1},zr=(e,r)=>{var s,i;const{navigateMode:f="push",parseOptions:j,stringifyOptions:O}=r||{},R=Object.assign(Object.assign({},Br),j),p=Object.assign(Object.assign({},Mr),O),h=ie.useLocation(),d=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),w=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),l=Gt(),v=S.useRef(typeof e=="function"?e():e||{}),I=S.useMemo(()=>fe.parse(h.search,R),[h.search]),C=S.useMemo(()=>Object.assign(Object.assign({},v.current),I),[I]);return[C,Ee(n=>{const o=typeof n=="function"?n(C):n;l(),d&&d[f]({hash:h.hash,search:fe.stringify(Object.assign(Object.assign({},I),o),p)||"?"},h.state),w&&w({hash:h.hash,search:fe.stringify(Object.assign(Object.assign({},I),o),p)||"?"},{replace:f==="replace",state:h.state})})]},qr=zr;function Be({teamDid:e,roles:r,onCancel:s,onSuccess:i,onError:f,endpoint:j}){const{api:O}=H(),[R,p]=S.useState(!1),[h,d]=S.useState(""),{t:w,locale:l}=V(),[v,I]=S.useState(0),[C,y]=S.useState(""),[n,o]=S.useState(""),[a,c]=S.useState(""),u=async()=>{if(!n){d(w("team.member.error.passportEmpty"));return}const x=a.trim();d(null),p(!0);try{const{inviteInfo:A}=await O.createMemberInvitation({input:{teamDid:e,role:n,remark:x}});y(A),I(1)}catch(A){const U=Z(A);d(U),f(A)}finally{p(!1)}},m=[{body:t.jsxs(te,{component:"div",children:[t.jsxs(At,{style:{width:"100%"},variant:"outlined",children:[t.jsx(kt,{children:w("common.passport")}),t.jsx(Et,{"data-cy":"invite-member-select-role",value:n,onChange:x=>{d(null),o(x.target.value)},fullWidth:!0,label:w("common.passport"),disabled:R,onKeyPress:x=>{x.key==="Enter"&&(x.preventDefault(),u())},children:r.filter(x=>x.name!=="owner").map(x=>t.jsx(Ne,{value:x.name,"data-cy":`invite-member-select-option-${x.name}`,children:t.jsx("span",{children:x.title||x.name})},x.name))})]}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(Nt,{label:w("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a,onChange:x=>{d(null),c(x.target.value)},disabled:R,"data-cy":"invite-member-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:w("common.cancel"),confirm:w("team.member.inviteDialog.createInviteLink"),onCancel:s,onConfirm:u},{body:()=>{const x=_e({inviteId:C.inviteId,endpoint:j});return t.jsxs("div",{children:[t.jsx(Wr,{children:w("team.member.inviteDialog.createSuccessTip",{expireDate:ce(C.expireDate,l)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ve,{children:x})]})},confirm:w("common.confirm"),onConfirm:i}][v];return t.jsxs(Y,{title:w("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[m.cancel&&t.jsx(M,{onClick:m.onCancel,color:"inherit",children:m.cancel}),t.jsxs(M,{onClick:m.onConfirm,color:"primary",disabled:R||!n,variant:"contained",autoFocus:!0,children:[R&&t.jsx(ne,{size:16}),m.confirm]})]}),children:[t.jsx(Fe,{component:"div",children:typeof m.body=="function"?m.body():m.body}),!!h&&t.jsx(re,{type:"error",variant:"icon",children:h})]})}Be.propTypes={teamDid:b.string.isRequired,onCancel:b.func.isRequired,onSuccess:b.func.isRequired,onError:b.func,roles:b.array,endpoint:b.string};Be.defaultProps={onError:()=>{},roles:[],endpoint:""};const Wr=W.div`
1
+ import{r as S,j as t,fz as Gt,h as Ee,fA as Zt,aY as H,u as V,T as te,b3 as Ne,fB as _e,bn as ce,ao as Y,W as M,S as ne,P as b,R as W,bK as Jt,dy as Te,y as er,eu as tr,d1 as rr,U as de,B as E,bq as G,o as se,fC as nr,a5 as le,db as sr,aZ as St,x as q,a as ge,bG as wt,c as at,H as or,fD as Ct,bB as Pt,b6 as ir,O as ar,Q as cr,bM as Rt,i as lr,ax as dr,A as mr,dc as ur}from"./index-Fu6i9CIs.js";import{c as pr}from"./index-nIL7Y1uW.js";import{d as he}from"./Add-RbgRRhCv.js";import{d as fr}from"./Loop-ZMhiBMcX.js";import{d as gr}from"./ViewList-3IAYdgZb.js";import{L as hr,S as xr,d as Ot}from"./list-header-ecCasU0T.js";import{D as It,g as br}from"./index-vObSINnE.js";import"./index-XQ_DuiRL.js";import"./index-8glvWVr4.js";import{e as Dt}from"./ua-parser--DJGheiy.js";import{T as vr}from"./MoreVert-mGfd9QIB.js";import"./fallback-DPep9aPI.js";import"./index-Gk2kKcuz.js";import{U as yr}from"./user-sessions-TUevi34A.js";import{u as Q,d as ct,W as Tt,a as jr}from"./dashboard-G9QPL_nR.js";import{W as Le}from"./did-address-bpVwxY87.js";import{P as K}from"./permission-rvAJofNO.js";import{D as Fe,A as re,f as Z}from"./index-7wnQOIvK.js";import{C as ve}from"./click-to-copy-LvKlsEgb.js";import{F as At}from"./FormControl-mFUfcsqw.js";import{I as kt}from"./InputLabel-C7zmYa1i.js";import{S as Et}from"./Select-tj9u34pI.js";import{T as Nt}from"./TextField-GwYTrJWV.js";import{_ as Sr}from"./useAsync-1tY7at3-.js";import{I as Ae}from"./index-DHHN0KIM.js";import{C as ye}from"./confirm-y500w-Zq.js";import{u as _t}from"./session-yHfr4mpL.js";import{A as wr}from"./Avatar-pFlMlW9k.js";import{d as Cr}from"./Delete-afRhjl9p.js";import{A as Pr}from"./actions-M-m19BeQ.js";import{L as Rr,a as Or}from"./ListItemText-AjXkf-Hp.js";import{F as Ir,C as Dr}from"./FormControlLabel-x8ZAESYq.js";import"./Search-Tx3hGdOJ.js";import"./FilterList-WYr_w9y3.js";import"./TableRow-m-kPORhi.js";import"./Grid-tXSADazD.js";import"./useFormControl-vN6TXdWi.js";import"./FormGroup-rPjzKW3Y.js";import"./LastPage-PqxzIENp.js";import"./Toolbar-qOcEr5XA.js";import"./index-3gEJxYUx.js";import"./redux-g7QVn4tY.js";import"./index-xHjvXRZd.js";import"./Hidden-uo52Be7o.js";import"./MoreHoriz-AJwUbFbC.js";import"./ExpandMore-TWn4Tvg-.js";import"./ListItem-Lk7DD4jR.js";import"./selector-TryFKxPO.js";import"./index-d-Rw6UM2.js";import"./CloseOutlined-VT0zAvld.js";import"./index-IC6pvK0u.js";import"./useLocalStorage-cWn4IlZf.js";import"./PlayArrow-Ahpt4Tqt.js";import"./Alert-Hc-vRcv5.js";import"./useSlot-MeOlDmtJ.js";import"./ButtonGroup-fYdjWCqA.js";import"./RadioGroup-EADuYgMS.js";import"./spaces-YgNUW4Gd.js";import"./index-IABG1nxI.js";import"./api-BB9R1fve.js";import"./Link-vJvUXDpQ.js";import"./useSetState-g2p2X03O.js";var Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});var Lt=Ue.default=void 0;Tr(S);var ee=t;function Tr(e){return e&&e.__esModule?e:{default:e}}function lt(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),s.push.apply(s,i)}return s}function dt(e){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?lt(Object(s),!0).forEach(function(i){Ar(e,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):lt(Object(s)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))})}return e}function Ar(e,r,s){return r=kr(r),r in e?Object.defineProperty(e,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[r]=s,e}function kr(e){var r=Er(e,"string");return typeof r=="symbol"?r:String(r)}function Er(e,r){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var i=s.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var $e=function(r){return(0,ee.jsxs)("svg",dt(dt({},r),{},{children:[(0,ee.jsx)("g",{clipPath:"url(#clip0)",children:(0,ee.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,ee.jsx)("defs",{children:(0,ee.jsx)("clipPath",{id:"clip0",children:(0,ee.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};$e.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};$e.displayName="person";Lt=Ue.default=$e;var fe={},Nr=e=>encodeURIComponent(e).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Ft="%[a-f0-9]{2}",mt=new RegExp("("+Ft+")|([^%]+?)","gi"),ut=new RegExp("("+Ft+")+","gi");function ke(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;var s=e.slice(0,r),i=e.slice(r);return Array.prototype.concat.call([],ke(s),ke(i))}function _r(e){try{return decodeURIComponent(e)}catch{for(var r=e.match(mt)||[],s=1;s<r.length;s++)e=ke(r,s).join(""),r=e.match(mt)||[];return e}}function Lr(e){for(var r={"%FE%FF":"��","%FF%FE":"��"},s=ut.exec(e);s;){try{r[s[0]]=decodeURIComponent(s[0])}catch{var i=_r(s[0]);i!==s[0]&&(r[s[0]]=i)}s=ut.exec(e)}r["%C2"]="�";for(var f=Object.keys(r),j=0;j<f.length;j++){var O=f[j];e=e.replace(new RegExp(O,"g"),r[O])}return e}var Fr=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Lr(e)}},Ur=(e,r)=>{if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(r==="")return[e];const s=e.indexOf(r);return s===-1?[e]:[e.slice(0,s),e.slice(s+r.length)]},$r=function(e,r){for(var s={},i=Object.keys(e),f=Array.isArray(r),j=0;j<i.length;j++){var O=i[j],R=e[O];(f?r.indexOf(O)!==-1:r(O,R,e))&&(s[O]=R)}return s};(function(e){const r=Nr,s=Fr,i=Ur,f=$r,j=n=>n==null;function O(n){switch(n.arrayFormat){case"index":return o=>(a,c)=>{const u=a.length;return c===void 0||n.skipNull&&c===null||n.skipEmptyString&&c===""?a:c===null?[...a,[h(o,n),"[",u,"]"].join("")]:[...a,[h(o,n),"[",h(u,n),"]=",h(c,n)].join("")]};case"bracket":return o=>(a,c)=>c===void 0||n.skipNull&&c===null||n.skipEmptyString&&c===""?a:c===null?[...a,[h(o,n),"[]"].join("")]:[...a,[h(o,n),"[]=",h(c,n)].join("")];case"comma":case"separator":return o=>(a,c)=>c==null||c.length===0?a:a.length===0?[[h(o,n),"=",h(c,n)].join("")]:[[a,h(c,n)].join(n.arrayFormatSeparator)];default:return o=>(a,c)=>c===void 0||n.skipNull&&c===null||n.skipEmptyString&&c===""?a:c===null?[...a,h(o,n)]:[...a,[h(o,n),"=",h(c,n)].join("")]}}function R(n){let o;switch(n.arrayFormat){case"index":return(a,c,u)=>{if(o=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!o){u[a]=c;return}u[a]===void 0&&(u[a]={}),u[a][o[1]]=c};case"bracket":return(a,c,u)=>{if(o=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!o){u[a]=c;return}if(u[a]===void 0){u[a]=[c];return}u[a]=[].concat(u[a],c)};case"comma":case"separator":return(a,c,u)=>{const g=typeof c=="string"&&c.includes(n.arrayFormatSeparator),m=typeof c=="string"&&!g&&d(c,n).includes(n.arrayFormatSeparator);c=m?d(c,n):c;const x=g||m?c.split(n.arrayFormatSeparator).map(A=>d(A,n)):c===null?c:d(c,n);u[a]=x};default:return(a,c,u)=>{if(u[a]===void 0){u[a]=c;return}u[a]=[].concat(u[a],c)}}}function p(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(n,o){return o.encode?o.strict?r(n):encodeURIComponent(n):n}function d(n,o){return o.decode?s(n):n}function w(n){return Array.isArray(n)?n.sort():typeof n=="object"?w(Object.keys(n)).sort((o,a)=>Number(o)-Number(a)).map(o=>n[o]):n}function l(n){const o=n.indexOf("#");return o!==-1&&(n=n.slice(0,o)),n}function v(n){let o="";const a=n.indexOf("#");return a!==-1&&(o=n.slice(a)),o}function I(n){n=l(n);const o=n.indexOf("?");return o===-1?"":n.slice(o+1)}function C(n,o){return o.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?n=Number(n):o.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")&&(n=n.toLowerCase()==="true"),n}function y(n,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),p(o.arrayFormatSeparator);const a=R(o),c=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return c;for(const u of n.split("&")){if(u==="")continue;let[g,m]=i(o.decode?u.replace(/\+/g," "):u,"=");m=m===void 0?null:["comma","separator"].includes(o.arrayFormat)?m:d(m,o),a(d(g,o),m,c)}for(const u of Object.keys(c)){const g=c[u];if(typeof g=="object"&&g!==null)for(const m of Object.keys(g))g[m]=C(g[m],o);else c[u]=C(g,o)}return o.sort===!1?c:(o.sort===!0?Object.keys(c).sort():Object.keys(c).sort(o.sort)).reduce((u,g)=>{const m=c[g];return m&&typeof m=="object"&&!Array.isArray(m)?u[g]=w(m):u[g]=m,u},Object.create(null))}e.extract=I,e.parse=y,e.stringify=(n,o)=>{if(!n)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),p(o.arrayFormatSeparator);const a=m=>o.skipNull&&j(n[m])||o.skipEmptyString&&n[m]==="",c=O(o),u={};for(const m of Object.keys(n))a(m)||(u[m]=n[m]);const g=Object.keys(u);return o.sort!==!1&&g.sort(o.sort),g.map(m=>{const x=n[m];return x===void 0?"":x===null?h(m,o):Array.isArray(x)?x.reduce(c(m),[]).join("&"):h(m,o)+"="+h(x,o)}).filter(m=>m.length>0).join("&")},e.parseUrl=(n,o)=>{o=Object.assign({decode:!0},o);const[a,c]=i(n,"#");return Object.assign({url:a.split("?")[0]||"",query:y(I(n),o)},o&&o.parseFragmentIdentifier&&c?{fragmentIdentifier:d(c,o)}:{})},e.stringifyUrl=(n,o)=>{o=Object.assign({encode:!0,strict:!0},o);const a=l(n.url).split("?")[0]||"",c=e.extract(n.url),u=e.parse(c,{sort:!1}),g=Object.assign(u,n.query);let m=e.stringify(g,o);m&&(m=`?${m}`);let x=v(n.url);return n.fragmentIdentifier&&(x=`#${h(n.fragmentIdentifier,o)}`),`${a}${m}${x}`},e.pick=(n,o,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:c,query:u,fragmentIdentifier:g}=e.parseUrl(n,a);return e.stringifyUrl({url:c,query:f(u,o),fragmentIdentifier:g},a)},e.exclude=(n,o,a)=>{const c=Array.isArray(o)?u=>!o.includes(u):(u,g)=>!o(u,g);return e.pick(n,c,a)}})(fe);const ie=Zt,Br={parseNumbers:!1,parseBooleans:!1},Mr={skipNull:!1,skipEmptyString:!1},zr=(e,r)=>{var s,i;const{navigateMode:f="push",parseOptions:j,stringifyOptions:O}=r||{},R=Object.assign(Object.assign({},Br),j),p=Object.assign(Object.assign({},Mr),O),h=ie.useLocation(),d=(s=ie.useHistory)===null||s===void 0?void 0:s.call(ie),w=(i=ie.useNavigate)===null||i===void 0?void 0:i.call(ie),l=Gt(),v=S.useRef(typeof e=="function"?e():e||{}),I=S.useMemo(()=>fe.parse(h.search,R),[h.search]),C=S.useMemo(()=>Object.assign(Object.assign({},v.current),I),[I]);return[C,Ee(n=>{const o=typeof n=="function"?n(C):n;l(),d&&d[f]({hash:h.hash,search:fe.stringify(Object.assign(Object.assign({},I),o),p)||"?"},h.state),w&&w({hash:h.hash,search:fe.stringify(Object.assign(Object.assign({},I),o),p)||"?"},{replace:f==="replace",state:h.state})})]},qr=zr;function Be({teamDid:e,roles:r,onCancel:s,onSuccess:i,onError:f,endpoint:j}){const{api:O}=H(),[R,p]=S.useState(!1),[h,d]=S.useState(""),{t:w,locale:l}=V(),[v,I]=S.useState(0),[C,y]=S.useState(""),[n,o]=S.useState(""),[a,c]=S.useState(""),u=async()=>{if(!n){d(w("team.member.error.passportEmpty"));return}const x=a.trim();d(null),p(!0);try{const{inviteInfo:A}=await O.createMemberInvitation({input:{teamDid:e,role:n,remark:x}});y(A),I(1)}catch(A){const U=Z(A);d(U),f(A)}finally{p(!1)}},m=[{body:t.jsxs(te,{component:"div",children:[t.jsxs(At,{style:{width:"100%"},variant:"outlined",children:[t.jsx(kt,{children:w("common.passport")}),t.jsx(Et,{"data-cy":"invite-member-select-role",value:n,onChange:x=>{d(null),o(x.target.value)},fullWidth:!0,label:w("common.passport"),disabled:R,onKeyPress:x=>{x.key==="Enter"&&(x.preventDefault(),u())},children:r.filter(x=>x.name!=="owner").map(x=>t.jsx(Ne,{value:x.name,"data-cy":`invite-member-select-option-${x.name}`,children:t.jsx("span",{children:x.title||x.name})},x.name))})]}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(Nt,{label:w("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:a,onChange:x=>{d(null),c(x.target.value)},disabled:R,"data-cy":"invite-member-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:w("common.cancel"),confirm:w("team.member.inviteDialog.createInviteLink"),onCancel:s,onConfirm:u},{body:()=>{const x=_e({inviteId:C.inviteId,endpoint:j});return t.jsxs("div",{children:[t.jsx(Wr,{children:w("team.member.inviteDialog.createSuccessTip",{expireDate:ce(C.expireDate,l)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ve,{children:x})]})},confirm:w("common.confirm"),onConfirm:i}][v];return t.jsxs(Y,{title:w("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[m.cancel&&t.jsx(M,{onClick:m.onCancel,color:"inherit",children:m.cancel}),t.jsxs(M,{onClick:m.onConfirm,color:"primary",disabled:R||!n,variant:"contained",autoFocus:!0,children:[R&&t.jsx(ne,{size:16}),m.confirm]})]}),children:[t.jsx(Fe,{component:"div",children:typeof m.body=="function"?m.body():m.body}),!!h&&t.jsx(re,{type:"error",variant:"icon",children:h})]})}Be.propTypes={teamDid:b.string.isRequired,onCancel:b.func.isRequired,onSuccess:b.func.isRequired,onError:b.func,roles:b.array,endpoint:b.string};Be.defaultProps={onError:()=>{},roles:[],endpoint:""};const Wr=W.div`
2
2
  font-size: 16px;
3
3
  font-weight: bold;
4
4
  `;function Me({teamDid:e,onCancel:r,onSuccess:s,onError:i,endpoint:f}){const{api:j,info:O}=H(),{api:R}=S.useContext(Jt),[p,h]=S.useState(!1),{t:d,locale:w}=V(),[l,v]=S.useState(""),[I,C]=S.useState(!1),[y,n]=S.useState(0),[o,a]=S.useState(""),[c,u]=S.useState(""),g=!!Te(O,"ownerNft.did"),m=Sr(async()=>{if(g){const{state:_}=await j.getDelegationState();return _}return{delegated:!0}});if(m.loading)return t.jsx(Y,{title:d("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:r,children:t.jsx("div",{style:{display:"flex",justifyContent:"center"},children:t.jsx(ne,{})})});if(m.error)return t.jsx(Y,{title:d("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:r,children:t.jsx(re,{type:"error",variant:"icon",children:Z(m.error)})});const x=async()=>{v(null),h(!0);try{const{inviteInfo:_}=await j.createTransferInvitation({input:{teamDid:e,role:"owner",remark:c.trim()}});a(_),n(z.length-1)}catch(_){const J=Z(_);v(J),i(_)}finally{h(!1)}},A=()=>{C(!0),n(1)},U=()=>{C(!1),n(0)},z=[{body:t.jsxs(te,{component:"div",children:[t.jsxs(re,{type:"warning",children:[t.jsx(te,{children:d("team.transferNode.inviteDialog.tips.progress")}),t.jsx(te,{children:d("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),t.jsx(re,{type:"warning",children:t.jsx(te,{children:d("team.transferNode.inviteDialog.tips.revoke")})}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(Nt,{label:d("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:c,onChange:_=>{v(null),u(_.target.value)},disabled:p,"data-cy":"transfer-node-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:d("common.cancel"),confirm:d("team.transferNode.inviteDialog.createInviteLink"),onCancel:r,onConfirm:g&&!Te(m,"value.delegated")?A:x},{body:()=>t.jsx(er,{action:"delegate-transfer-nft",open:I,locale:w,checkFn:R.get,onClose:U,onSuccess:x,checkTimeout:5*60*1e3,webWalletUrl:tr(O),extraParams:{targetDID:O.did},messages:{title:d("team.transferNode.delegateDialog.title"),scan:d("team.transferNode.delegateDialog.scan"),confirm:d("team.transferNode.delegateDialog.confirm"),success:d("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const _=_e({inviteId:o.inviteId,endpoint:f});return t.jsxs("div",{children:[t.jsx(Hr,{children:d("team.transferNode.inviteDialog.createSuccessTip",{expireDate:ce(o.expireDate,w)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ve,{children:_})]})},confirm:d("common.confirm"),onConfirm:s}],$=z[y];return t.jsxs(Y,{title:d("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[$.cancel&&t.jsx(M,{onClick:$.onCancel,color:"inherit",children:$.cancel}),t.jsxs(M,{onClick:$.onConfirm,color:"primary",disabled:p,variant:"contained",autoFocus:!0,children:[p&&t.jsx(ne,{size:16}),$.confirm]})]}),children:[t.jsx(Fe,{component:"div",children:typeof $.body=="function"?$.body():$.body}),!!l&&t.jsx(re,{type:"error",variant:"icon",children:l})]})}Me.propTypes={teamDid:b.string.isRequired,onCancel:b.func.isRequired,onSuccess:b.func.isRequired,onError:b.func,endpoint:b.string};Me.defaultProps={onError:()=>{},endpoint:""};const Hr=W.div`
@@ -1,2 +1,2 @@
1
- import{aT as G}from"./index-qSYDZylC.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
1
+ import{aT as G}from"./index-Fu6i9CIs.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
2
2
  `,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function M(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];M(i);for(var a;a=K();)a!==!1&&(i.push(a),M(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function W(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}O.exports=W;O.exports.default=W;var vn=O.exports;const En=G(vn),On={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,Mn as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,On as w};
@@ -1 +1 @@
1
- import{fK as J,r as P,el as V,M as x,em as $,gb as S,gc as j,K as B,gd as Q,dk as U}from"./index-qSYDZylC.js";var X=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),J(i,e)},Y=function(i,e,r){var n=P.useRef(),t=P.useRef(0);X(e,n.current)||(n.current=e,t.current+=1),V(i,[t.current],r)},Z=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),M={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Z?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?M.meta.includes(i.keyCode):i.metaKey}};function D(i){return j(i)||B(i)}function p(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function q(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=M[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&p(i)===l.length?e:!1:a===l.length?e:!1}function N(i,e){return Q(i)?i:D(i)?function(r){return q(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return q(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=x(e),b=x(i);Y(function(){var k,m,L,v=$(a,window);if(v){var T=function(g){var C,K=N(b.current,o),h=K(g),y=D(h)?h:g.key;if(h)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,y)};try{for(var E=S(l),A=E.next();!A.done;A=E.next()){var G=A.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,G,T,s)}}catch(g){k={error:g}}finally{try{A&&!A.done&&(m=E.return)&&m.call(E)}finally{if(k)throw k.error}}return function(){var g,C,K;try{for(var h=S(l),y=h.next();!y.done;y=h.next()){var H=y.value;(K=v==null?void 0:v.removeEventListener)===null||K===void 0||K.call(v,H,T,s)}}catch(W){g={error:W}}finally{try{y&&!y.done&&(C=h.return)&&C.call(h)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function z(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=U.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=z(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=z(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),k=r.charCodeAt(a+u);if(b!==k)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
1
+ import{fK as J,r as P,el as V,M as x,em as $,gb as S,gc as j,K as B,gd as Q,dk as U}from"./index-Fu6i9CIs.js";var X=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),J(i,e)},Y=function(i,e,r){var n=P.useRef(),t=P.useRef(0);X(e,n.current)||(n.current=e,t.current+=1),V(i,[t.current],r)},Z=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),M={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Z?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?M.meta.includes(i.keyCode):i.metaKey}};function D(i){return j(i)||B(i)}function p(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function q(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=M[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&p(i)===l.length?e:!1:a===l.length?e:!1}function N(i,e){return Q(i)?i:D(i)?function(r){return q(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return q(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=x(e),b=x(i);Y(function(){var k,m,L,v=$(a,window);if(v){var T=function(g){var C,K=N(b.current,o),h=K(g),y=D(h)?h:g.key;if(h)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,y)};try{for(var E=S(l),A=E.next();!A.done;A=E.next()){var G=A.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,G,T,s)}}catch(g){k={error:g}}finally{try{A&&!A.done&&(m=E.return)&&m.call(E)}finally{if(k)throw k.error}}return function(){var g,C,K;try{for(var h=S(l),y=h.next();!y.done;y=h.next()){var H=y.value;(K=v==null?void 0:v.removeEventListener)===null||K===void 0||K.call(v,H,T,s)}}catch(W){g={error:W}}finally{try{y&&!y.done&&(C=h.return)&&C.call(h)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function z(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=U.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=z(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=z(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),k=r.charCodeAt(a+u);if(b!==k)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
@@ -1,4 +1,4 @@
1
- import{aT as l}from"./index-qSYDZylC.js";var c={exports:{}};/*!
1
+ import{aT as l}from"./index-Fu6i9CIs.js";var c={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1,4 +1,4 @@
1
- import{an as At,j as l,aC as K,co as _t,aF as $,f4 as ot,aE as se,aA as _e,aB as Le,T as L,r as x,az as Oe,aG as ht,aH as Me,aI as Ve,B as j,S as we,P,u as ne,aY as be,aZ as xe,by as ge,L as W,W as F,bB as bt,ax as Se,o as w,R as q,e as xt,y as Lt,b3 as Ot,db as Mt,a5 as z,c as me,x as pe,b$ as gt,cj as Vt,cr as he,cs as kt,bo as Ft,cI as zt,cn as Ne,f5 as yt,bz as Wt,bO as lt,f6 as Fe,bG as Ut,cx as Kt,Y as qt,f7 as Te,aw as Ht,ak as Gt,al as Ie}from"./index-qSYDZylC.js";import{d as jt}from"./Delete-yBiZpo99.js";import{D as ze}from"./index-qovA7RT2.js";import{T as Ct}from"./index-Xmh3L24H.js";import{W as Jt}from"./did-address-Q6r9kSWU.js";import{C as Nt}from"./confirm-2kHFQlD_.js";import{B as We,d as Xt}from"./ChevronRight-E9CFXCjm.js";import{_ as Yt}from"./useLocalStorage-QIvxcgrR.js";import{u as Qt}from"./session-PXkZWYZj.js";import{T as X}from"./TextField-y1frF4gR.js";import{M as $e}from"./InputAdornment-8CaUKP_t.js";import{d as st}from"./Download-nUZa-YZm.js";import{_ as Zt}from"./useSetState-7V0tflQ2.js";import{d as eo}from"./DeleteOutline-65Cuhlpm.js";import{T as to}from"./MoreVert-MwQoF0F6.js";import{A as oo,f as Ee}from"./index-41MsyR99.js";import{C as lo}from"./click-to-copy-BXczzFkc.js";import{c as Ue}from"./index-Z516eVX-.js";import{i as so}from"./index-dbuVZzvX.js";import{d as no}from"./ExpandMore-V-R7JsGL.js";import{d as ro}from"./OpenInNew-EArz_tFd.js";import{F as io,C as De}from"./FormControlLabel-9bCs5HRT.js";import"./api-4mY5BjEo.js";import{A as co}from"./Avatar-xLWc5S5b.js";import"./FilterList-Hm_AfXra.js";import"./TableRow-wEa_QnPy.js";import"./Grid-3SE35yjG.js";import"./FormControl-UyqgO9Ab.js";import"./useFormControl-RPQwTOAU.js";import"./FormGroup-ofRNksFA.js";import"./InputLabel--xXan3mK.js";import"./ListItemText-v8mvGUjy.js";import"./Select-Uz_h4btJ.js";import"./LastPage-D9tpDmBg.js";import"./Toolbar-y0kWdfqe.js";import"./index-5-f0uSU3.js";import"./redux--rqpftZj.js";import"./Search-JVIzhtig.js";import"./Link-qwWqvw7Y.js";import"./Alert-Sdrkip3b.js";import"./useSlot-rlbG6RwJ.js";const ao=At(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(_t)(({theme:e})=>$({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":$({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":$({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:ot(e.palette.grey[200],.12)}:{backgroundColor:ot(e.palette.grey[600],.12)})})),fo=K(ao)({width:24,height:16});function mo(e){const{slots:t={},slotProps:o={}}=e,n=se(e,uo),d=e;return l.jsx("li",{children:l.jsx(po,$({focusRipple:!0},n,{ownerState:d,children:l.jsx(fo,$({as:t.CollapsedIcon,ownerState:d},o.collapsedIcon))}))})}function ho(e){return Le("MuiBreadcrumbs",e)}const bo=_e("MuiBreadcrumbs",["root","ol","li","separator"]),xo=bo,go=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ko=e=>{const{classes:t}=e;return Ve({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},ho,t)},yo=K(L,{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"}),Co=K("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function No(e,t,o,n){return e.reduce((d,a,p)=>(p<e.length-1?d=d.concat(a,l.jsx(Co,{"aria-hidden":!0,className:t,ownerState:n,children:o},`separator-${p}`)):d.push(a),d),[])}const Io=x.forwardRef(function(t,o){const n=Oe({props:t,name:"MuiBreadcrumbs"}),{children:d,className:a,component:p="nav",slots:c={},slotProps:h={},expandText:u="Show path",itemsAfterCollapse:b=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:r="/"}=n,s=se(n,go),[i,f]=x.useState(!1),k=$({},n,{component:p,expanded:i,expandText:u,itemsAfterCollapse:b,itemsBeforeCollapse:m,maxItems:g,separator:r}),C=ko(k),y=ht({elementType:c.CollapsedIcon,externalSlotProps:h.collapsedIcon,ownerState:k}),I=x.useRef(null),E=R=>{const D=()=>{f(!0);const T=I.current.querySelector("a[href],button,[tabindex]");T&&T.focus()};return m+b>=R.length?R:[...R.slice(0,m),l.jsx(mo,{"aria-label":u,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:D},"ellipsis"),...R.slice(R.length-b,R.length)]},S=x.Children.toArray(d).filter(R=>x.isValidElement(R)).map((R,D)=>l.jsx("li",{className:C.li,children:R},`child-${D}`));return l.jsx(yo,$({ref:o,component:p,color:"text.secondary",className:Me(C.root,a),ownerState:k},s,{children:l.jsx(jo,{className:C.ol,ref:I,ownerState:k,children:No(i||g&&S.length<=g?S:E(S),C.separator,r,k)})}))}),Ke=Io;function ke({size:e,...t}){return l.jsx(j,{display:"flex",mt:4,...t,children:l.jsx(we,{size:e})})}ke.propTypes={size:P.number};ke.defaultProps={size:24};function It(){const{t:e,locale:t}=ne(),{api:o}=be(),[n,d]=x.useState(!0),{blocklet:a}=xe(),[p,c]=x.useState(null),{componentDid:h=""}=ge(),[u,b]=x.useState(null),m=()=>{o.getProjects({input:{did:a.meta.did,componentDid:h}}).then(i=>{const f=(i==null?void 0:i.projects)||[];d(!1),b(f)}).catch(i=>{d(!1),w.error(i.message)})},g=i=>{c(i)},r=()=>{d(!1);const i=p.id;o.deleteProject({input:{did:a.meta.did,projectId:i}}).then(()=>{d(!1),m(),w.success(e("common.removeSuccess")),c(null)}).catch(f=>{d(!1),w.error(f.message)})};if(x.useEffect(()=>{m()},[]),!u&&n)return l.jsx(ke,{});if(!u)return null;if(!u.length)return l.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),l.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const s=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:i=>{const f=u[i];return l.jsx(W,{to:`${f.id}`,children:f.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:i=>l.jsx(Jt,{size:14,responsive:!0,did:i})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:i=>i?l.jsx(Ct,{type:"success",children:i}):""}},h?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:i=>{const f=(a.children||[]).find(k=>k.meta.did===i);return f?l.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(We,{size:14,blocklet:f,ancestors:[a]}),l.jsx(j,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:f.meta.title})]},i):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:i=>l.jsx(bt,{value:Number(i),locale:t})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:i=>{const f=u[i];return l.jsx(j,{display:"flex",children:l.jsx(Se,{color:"error","aria-label":"delete",onClick:()=>g(f),children:l.jsx(jt,{sx:{fontSize:18}})})})}}}].filter(Boolean);return l.jsxs(To,{children:[l.jsx(j,{sx:{textAlign:"right"},children:l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),l.jsx(ze,{className:"main-table",locale:t,data:u,columns:s,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),p&&l.jsx(Nt,{title:`${e("common.delete")} ${p.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:r,onCancel:()=>c(null)})]})}It.propTypes={};const To=q(j)`
1
+ import{an as At,j as l,aC as K,co as _t,aF as $,f4 as ot,aE as se,aA as _e,aB as Le,T as L,r as x,az as Oe,aG as ht,aH as Me,aI as Ve,B as j,S as we,P,u as ne,aY as be,aZ as xe,by as ge,L as W,W as F,bB as bt,ax as Se,o as w,R as q,e as xt,y as Lt,b3 as Ot,db as Mt,a5 as z,c as me,x as pe,b$ as gt,cj as Vt,cr as he,cs as kt,bo as Ft,cI as zt,cn as Ne,f5 as yt,bz as Wt,bO as lt,f6 as Fe,bG as Ut,cx as Kt,Y as qt,f7 as Te,aw as Ht,ak as Gt,al as Ie}from"./index-Fu6i9CIs.js";import{d as jt}from"./Delete-afRhjl9p.js";import{D as ze}from"./index-vObSINnE.js";import{T as Ct}from"./index-IC6pvK0u.js";import{W as Jt}from"./did-address-bpVwxY87.js";import{C as Nt}from"./confirm-y500w-Zq.js";import{B as We,d as Xt}from"./ChevronRight-ClXyVjft.js";import{_ as Yt}from"./useLocalStorage-cWn4IlZf.js";import{u as Qt}from"./session-yHfr4mpL.js";import{T as X}from"./TextField-GwYTrJWV.js";import{M as $e}from"./InputAdornment-R97dlEhc.js";import{d as st}from"./Download-7lfhfrMU.js";import{_ as Zt}from"./useSetState-g2p2X03O.js";import{d as eo}from"./DeleteOutline-gpvwCJBG.js";import{T as to}from"./MoreVert-mGfd9QIB.js";import{A as oo,f as Ee}from"./index-7wnQOIvK.js";import{C as lo}from"./click-to-copy-LvKlsEgb.js";import{c as Ue}from"./index-nIL7Y1uW.js";import{i as so}from"./index-IABG1nxI.js";import{d as no}from"./ExpandMore-TWn4Tvg-.js";import{d as ro}from"./OpenInNew-KPsrDWVD.js";import{F as io,C as De}from"./FormControlLabel-x8ZAESYq.js";import"./api-BB9R1fve.js";import{A as co}from"./Avatar-pFlMlW9k.js";import"./FilterList-WYr_w9y3.js";import"./TableRow-m-kPORhi.js";import"./Grid-tXSADazD.js";import"./FormControl-mFUfcsqw.js";import"./useFormControl-vN6TXdWi.js";import"./FormGroup-rPjzKW3Y.js";import"./InputLabel-C7zmYa1i.js";import"./ListItemText-AjXkf-Hp.js";import"./Select-tj9u34pI.js";import"./LastPage-PqxzIENp.js";import"./Toolbar-qOcEr5XA.js";import"./index-3gEJxYUx.js";import"./redux-g7QVn4tY.js";import"./Search-Tx3hGdOJ.js";import"./Link-vJvUXDpQ.js";import"./Alert-Hc-vRcv5.js";import"./useSlot-MeOlDmtJ.js";const ao=At(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(_t)(({theme:e})=>$({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":$({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":$({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:ot(e.palette.grey[200],.12)}:{backgroundColor:ot(e.palette.grey[600],.12)})})),fo=K(ao)({width:24,height:16});function mo(e){const{slots:t={},slotProps:o={}}=e,n=se(e,uo),d=e;return l.jsx("li",{children:l.jsx(po,$({focusRipple:!0},n,{ownerState:d,children:l.jsx(fo,$({as:t.CollapsedIcon,ownerState:d},o.collapsedIcon))}))})}function ho(e){return Le("MuiBreadcrumbs",e)}const bo=_e("MuiBreadcrumbs",["root","ol","li","separator"]),xo=bo,go=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ko=e=>{const{classes:t}=e;return Ve({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},ho,t)},yo=K(L,{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"}),Co=K("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function No(e,t,o,n){return e.reduce((d,a,p)=>(p<e.length-1?d=d.concat(a,l.jsx(Co,{"aria-hidden":!0,className:t,ownerState:n,children:o},`separator-${p}`)):d.push(a),d),[])}const Io=x.forwardRef(function(t,o){const n=Oe({props:t,name:"MuiBreadcrumbs"}),{children:d,className:a,component:p="nav",slots:c={},slotProps:h={},expandText:u="Show path",itemsAfterCollapse:b=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:r="/"}=n,s=se(n,go),[i,f]=x.useState(!1),k=$({},n,{component:p,expanded:i,expandText:u,itemsAfterCollapse:b,itemsBeforeCollapse:m,maxItems:g,separator:r}),C=ko(k),y=ht({elementType:c.CollapsedIcon,externalSlotProps:h.collapsedIcon,ownerState:k}),I=x.useRef(null),E=R=>{const D=()=>{f(!0);const T=I.current.querySelector("a[href],button,[tabindex]");T&&T.focus()};return m+b>=R.length?R:[...R.slice(0,m),l.jsx(mo,{"aria-label":u,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:D},"ellipsis"),...R.slice(R.length-b,R.length)]},S=x.Children.toArray(d).filter(R=>x.isValidElement(R)).map((R,D)=>l.jsx("li",{className:C.li,children:R},`child-${D}`));return l.jsx(yo,$({ref:o,component:p,color:"text.secondary",className:Me(C.root,a),ownerState:k},s,{children:l.jsx(jo,{className:C.ol,ref:I,ownerState:k,children:No(i||g&&S.length<=g?S:E(S),C.separator,r,k)})}))}),Ke=Io;function ke({size:e,...t}){return l.jsx(j,{display:"flex",mt:4,...t,children:l.jsx(we,{size:e})})}ke.propTypes={size:P.number};ke.defaultProps={size:24};function It(){const{t:e,locale:t}=ne(),{api:o}=be(),[n,d]=x.useState(!0),{blocklet:a}=xe(),[p,c]=x.useState(null),{componentDid:h=""}=ge(),[u,b]=x.useState(null),m=()=>{o.getProjects({input:{did:a.meta.did,componentDid:h}}).then(i=>{const f=(i==null?void 0:i.projects)||[];d(!1),b(f)}).catch(i=>{d(!1),w.error(i.message)})},g=i=>{c(i)},r=()=>{d(!1);const i=p.id;o.deleteProject({input:{did:a.meta.did,projectId:i}}).then(()=>{d(!1),m(),w.success(e("common.removeSuccess")),c(null)}).catch(f=>{d(!1),w.error(f.message)})};if(x.useEffect(()=>{m()},[]),!u&&n)return l.jsx(ke,{});if(!u)return null;if(!u.length)return l.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),l.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const s=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:i=>{const f=u[i];return l.jsx(W,{to:`${f.id}`,children:f.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:i=>l.jsx(Jt,{size:14,responsive:!0,did:i})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:i=>i?l.jsx(Ct,{type:"success",children:i}):""}},h?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:i=>{const f=(a.children||[]).find(k=>k.meta.did===i);return f?l.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(We,{size:14,blocklet:f,ancestors:[a]}),l.jsx(j,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:f.meta.title})]},i):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:i=>l.jsx(bt,{value:Number(i),locale:t})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:i=>{const f=u[i];return l.jsx(j,{display:"flex",children:l.jsx(Se,{color:"error","aria-label":"delete",onClick:()=>g(f),children:l.jsx(jt,{sx:{fontSize:18}})})})}}}].filter(Boolean);return l.jsxs(To,{children:[l.jsx(j,{sx:{textAlign:"right"},children:l.jsx(W,{to:"create",children:l.jsx(F,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),l.jsx(ze,{className:"main-table",locale:t,data:u,columns:s,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),p&&l.jsx(Nt,{title:`${e("common.delete")} ${p.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:r,onCancel:()=>c(null)})]})}It.propTypes={};const To=q(j)`
2
2
  .main-table > div:first-child {
3
3
  display: none;
4
4
  }
@@ -132,7 +132,7 @@ import{an as At,j as l,aC as K,co as _t,aF as $,f4 as ot,aE as se,aA as _e,aB as
132
132
  display: none;
133
133
  }
134
134
  }
135
- `,dt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],ut=1024*1024*10;var mt;const Pe=(mt=window.env)==null?void 0:mt.serverEndpoint,pt=x.lazy(()=>qt(()=>import("./react-borpVomN.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])).then(e=>({default:e.Uploader}))),kl=(e,t,o)=>{const n=[];return e.blockletTitle||n.push({param:"blockletTitle",message:o("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Te.valid(e.blockletVersion)||n.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):n.push({param:"blockletVersion",message:o("blocklet.publish.errorTip.noVersion")}),t===z.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||n.push({param:"blockletDescription",message:o("blocklet.publish.errorTip.noDescription")}),e.note||n.push({param:"note",message:o("blocklet.publish.errorTip.noNote")})),n.length?n:null},yl=({tabs:e,blocklet:t,ancestors:o=[]})=>{const n=t.meta.did;e.push({label:l.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(We,{size:24,blocklet:t,ancestors:o}),l.jsx(j,{ml:"4px",className:"text",children:l.jsx(j,{children:t.meta.title})})]},n),value:n})},ft=(e,t)=>{const o=Fe(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","blockletComponents","note"]);return o.blockletScreenshots||(o.blockletScreenshots=[]),o.blockletComponents?o.blockletComponents=o.blockletComponents.map(n=>({...n,included:!0})):o.blockletComponents=(t.children||[]).map(n=>({did:n.meta.did,included:!0,required:!0})),o};function tt({...e}){var Ce,_,ee;const t=xt(),{projectId:o,releaseId:n,componentDid:d}=ge(),{t:a}=ne(),{blocklet:p}=xe(),[c,h]=Zt(null),[u,b]=x.useState({}),[m,g]=x.useState(!1),[r,s]=x.useState(!1),[i,f]=x.useState(null),{api:k}=be(),C=x.useRef(null),y=x.useRef(null),[I,E]=x.useState(),[S,R]=x.useState(),D=n==="create"?"":n,T=n==="create"?"create":"edit",B=[],H=((p==null?void 0:p.children)||[]).filter(N=>{var A;return(A=N.meta.resource)==null?void 0:A.exportApi}).filter(N=>!d||N.meta.did===d);H.forEach(N=>{yl({tabs:B,blocklet:N,t:a,ancestors:[p]})});const[ye,je]=x.useState((Ce=B[0])==null?void 0:Ce.value),te=(i==null?void 0:i.status)==="published",O=te,oe=({typeOnly:N}={})=>{k.getProject({input:{did:p.meta.did,projectId:o}}).then(A=>{g(!1);const v=A.project||{};if(N){E(v.type);return}v.blockletVersion?Te.valid(v.blockletVersion)&&(v.blockletVersion=Te.inc(v.blockletVersion,"patch")):v.blockletVersion="1.0.0",h(ft(v,p)),E(v.type)}).catch(A=>{g(!1),w.error(Ee(A))})},ie=()=>{k.getRelease({input:{did:p.meta.did,projectId:o,releaseId:D}}).then(N=>{g(!1),h(ft(N==null?void 0:N.release,p)),f(N==null?void 0:N.release)}).catch(N=>{g(!1),w.error(Ee(N))})},G=x.useCallback(()=>{if(T==="edit"){if(!D){w.error("Empty release id");return}ie(),oe({typeOnly:!0})}T==="create"&&oe()},[T,D]);x.useEffect(()=>{G()},[G]);const Y=N=>{const A=kl(c,N,a);if(A){w.error(A.map(M=>M.message).join("; ")),b(A.reduce((M,U)=>({...M,[U.param]:U.message}),{}));return}const v={...c};if(v.blockletVersion=Te.valid(v.blockletVersion),!v.blockletVersion){w.error("Invalid Blocklet Version"),b({blockletVersion:"Invalid Blocklet Version"});return}v.blockletTitle=(v.blockletTitle||"").trim(),v.blockletDescription=(v.blockletDescription||"").trim(),v.blockletIntroduction=(v.blockletIntroduction||"").trim(),v.note=(v.note||"").trim(),I==="pack"?v.blockletComponents=(v.blockletComponents||[]).filter(M=>M.included).map(M=>Fe(M,["did","required"])).map(JSON.stringify):delete v.blockletComponents,s(N),g(!0),k.createRelease({input:{...v,did:p.meta.did,projectId:o,releaseId:D,status:N}}).then(M=>{var U;if(s(!1),g(!1),N==="draft"?w.success(a("blocklet.publish.saveDraftSuccess")):w.success(a("blocklet.publish.createReleaseSuccess")),T==="create"){const Bt=(U=M==null?void 0:M.release)==null?void 0:U.id;t(`../${o}/${Bt}`,{replace:!0})}else ie()}).catch(M=>{s(!1),g(!1);const U=Ee(M);w.error(U),/resource.*empty/.test(U)&&b({blockletResource:U})})};if(!c&&m)return l.jsx(ke,{});if(!c)return null;const ce=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/logo/upload`,le=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/screenshot/upload`,ae=c!=null&&c.blockletLogo?`${ce}/${c.blockletLogo}`:`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,Q=((c==null?void 0:c.blockletScreenshots)||[]).filter(Boolean).map(N=>`${le}/${N}`),V=H.find(N=>N.meta.did===ye),de=V?l.jsx(j,{children:l.jsx(Ze,{error:u.blockletResource,app:p,component:V,projectId:o,release:{...i,id:D},onSave:N=>{N.length&&b({blockletResource:""})}})}):l.jsx(j,{display:"flex",mt:-3,children:l.jsx(Ut,{children:a("common.empty")})}),ue=N=>{je(N)};let Z=null;if(te&&Pe){const N=me(Pe,`/api/project/${p.meta.did}/${o}/${D}/release/blocklet.json`);if(I==="pack"){const A=new URL(Pe);A.pathname=me(A.pathname,"/launch-blocklet/agreement"),A.searchParams.set("blocklet_meta_url",N),Z=l.jsx(F,{variant:"outlined",style:{marginRight:8},children:l.jsx("a",{href:A.href,target:"_blank",rel:"noreferrer",children:a("common.install")})})}else Z=l.jsxs(l.Fragment,{children:[l.jsx(F,{variant:"outlined",style:{marginRight:8},onClick:()=>R(N),children:a("common.install")}),l.jsx(Kt,{fullWidth:!0,maxWidth:"sm",open:S,onClose:()=>R(""),children:l.jsxs(j,{sx:{py:5,px:4,wordBreak:"break-all"},children:[l.jsx(L,{variant:"h6",sx:{mb:2},children:a("blocklet.publish.installResourceTip")}),l.jsx(lo,{children:S}),l.jsxs(L,{sx:{mt:2},children:[a("blocklet.publish.installResourceTip2"),l.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:a("blocklet.publish.installResourceHelp")})]})]})})]})}return l.jsxs(jl,{...e,children:[l.jsxs(j,{className:"sticky-header",children:[l.jsxs(Ke,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(W,{to:"../",children:a("common.publish")}),l.jsx(W,{to:`../${o}`,children:(c==null?void 0:c.blockletTitle)||"Blocklet"}),l.jsx(L,{color:"text.primary",children:T==="create"?a("common.create"):(c==null?void 0:c.blockletVersion)||a("common.edit")})]}),l.jsxs(j,{display:"flex",children:[!te&&l.jsxs(l.Fragment,{children:[l.jsxs(F,{variant:"outlined",disabled:m||r,onClick:()=>Y(z.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[r===z.PROJECT.RELEASE_STATUS.draft&&l.jsx(we,{size:14,sx:{mr:.5}}),a("blocklet.publish.saveDraft")]}),l.jsxs(F,{variant:"contained",disabled:m||r,onClick:()=>Y(z.PROJECT.RELEASE_STATUS.published),children:[r===z.PROJECT.RELEASE_STATUS.published&&l.jsx(we,{size:14,sx:{mr:.5},color:"inherit"}),a("common.release")]})]}),te&&l.jsxs(l.Fragment,{children:[Z,l.jsx(F,{variant:"contained",children:l.jsx("a",{href:me(`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/${D}/download/${(i.files||[])[0]}`),children:a("common.download")})})]})]})]}),l.jsxs(j,{children:[I==="pack"&&l.jsx(oo,{type:"info",style:{width:"100%"},children:a("blocklet.publish.packTip")}),l.jsx(j,{pt:3}),l.jsxs(j,{display:"flex",className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.productTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(X,{label:`Blocklet ${a("common.title")}`,placeholder:`Blocklet ${a("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:c.blockletTitle||"",onChange:N=>{b({blockletTitle:""}),h({blockletTitle:N.target.value})},error:!!u.blockletTitle,helperText:u.blockletTitle||""}),l.jsx(X,{label:`Blocklet ${a("common.description")}`,placeholder:`Blocklet ${a("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:O},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletDescription||"",onChange:N=>{b({blockletDescription:""}),h({blockletDescription:N.target.value})},error:!!u.blockletDescription,helperText:u.blockletDescription||"",sx:{mt:3}}),l.jsx(X,{label:`Blocklet ${a("common.introduction")}`,placeholder:`Blocklet ${a("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((_=c==null?void 0:c.blockletIntroduction)==null?void 0:_.length)||0," / ",z.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:c.blockletIntroduction||"",onChange:N=>{b({blockletIntroduction:""}),h({blockletIntroduction:N.target.value.slice(0,z.PROJECT.MAX_INTRO_LENGTH)})},error:!!u.blockletIntroduction,helperText:u.blockletIntroduction||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.versionTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(X,{required:!0,label:`Blocklet ${a("common.version")}`,placeholder:`Blocklet ${a("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletVersion,onChange:N=>{b({blockletVersion:""}),h({blockletVersion:N.target.value})},error:!!u.blockletVersion,helperText:u.blockletVersion||""}),l.jsx(X,{label:a("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((ee=c==null?void 0:c.note)==null?void 0:ee.length)||0," / ",z.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:c.note,onChange:N=>{b({note:""}),h({note:N.target.value.slice(0,z.PROJECT.MAX_NOTE_LENGTH)})},error:!!u.note,helperText:u.note||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.imgTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsxs(j,{display:"flex",children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.logo")}),l.jsx(j,{sx:{flex:1,cursor:O?"default":"pointer"},children:l.jsx(co,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:ae,onClick:()=>!O&&C.current.open()})})]}),l.jsxs(j,{display:"flex",mt:3,children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.screenshot")}),l.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[Q.map((N,A)=>l.jsxs(j,{className:"screenshot",children:[l.jsx("img",{alt:"screenshot",src:N}),!O&&l.jsx(Se,{className:"action",onClick:()=>{const v=[...c.blockletScreenshots];v.splice(A,1),h({blockletScreenshots:v})},children:l.jsx(eo,{})})]})),Q.length<5&&l.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:O?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!O&&y.current.open(),children:"+"})]})]})]}),l.jsx(pt,{id:"​uploader-logo",ref:C,popup:!0,onUploadFinish:N=>{h({blockletLogo:N.data.filename}),C.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ce,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:1}}},"uploader-logo"),l.jsx(pt,{id:"​uploader-screenshot",ref:y,popup:!0,onUploadFinish:N=>{var v;const A=c.blockletScreenshots||[];A.push((v=N.data)==null?void 0:v.filename),h({blockletScreenshots:A}),y.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:le,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:5-Q.length}}},"uploader-screenshot")]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("blocklet.publish.resourceTitle")})}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(to,{tabs:B,current:ye,onChange:ue,sx:{ml:-2,mt:-1.5}}),l.jsx(j,{children:de})]})]}),I==="pack"&&l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("common.components")})}),l.jsx(j,{sx:{flex:1},children:l.jsx(et,{disabled:m||O,app:p,value:c.blockletComponents,onChange:N=>{h({blockletComponents:N})}})})]})]})]})}tt.propTypes={};tt.defaultProps={};const jl=q.div`
135
+ `,dt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],ut=1024*1024*10;var mt;const Pe=(mt=window.env)==null?void 0:mt.serverEndpoint,pt=x.lazy(()=>qt(()=>import("./react-Q619OHdV.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])).then(e=>({default:e.Uploader}))),kl=(e,t,o)=>{const n=[];return e.blockletTitle||n.push({param:"blockletTitle",message:o("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Te.valid(e.blockletVersion)||n.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):n.push({param:"blockletVersion",message:o("blocklet.publish.errorTip.noVersion")}),t===z.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||n.push({param:"blockletDescription",message:o("blocklet.publish.errorTip.noDescription")}),e.note||n.push({param:"note",message:o("blocklet.publish.errorTip.noNote")})),n.length?n:null},yl=({tabs:e,blocklet:t,ancestors:o=[]})=>{const n=t.meta.did;e.push({label:l.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(We,{size:24,blocklet:t,ancestors:o}),l.jsx(j,{ml:"4px",className:"text",children:l.jsx(j,{children:t.meta.title})})]},n),value:n})},ft=(e,t)=>{const o=Fe(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","blockletComponents","note"]);return o.blockletScreenshots||(o.blockletScreenshots=[]),o.blockletComponents?o.blockletComponents=o.blockletComponents.map(n=>({...n,included:!0})):o.blockletComponents=(t.children||[]).map(n=>({did:n.meta.did,included:!0,required:!0})),o};function tt({...e}){var Ce,_,ee;const t=xt(),{projectId:o,releaseId:n,componentDid:d}=ge(),{t:a}=ne(),{blocklet:p}=xe(),[c,h]=Zt(null),[u,b]=x.useState({}),[m,g]=x.useState(!1),[r,s]=x.useState(!1),[i,f]=x.useState(null),{api:k}=be(),C=x.useRef(null),y=x.useRef(null),[I,E]=x.useState(),[S,R]=x.useState(),D=n==="create"?"":n,T=n==="create"?"create":"edit",B=[],H=((p==null?void 0:p.children)||[]).filter(N=>{var A;return(A=N.meta.resource)==null?void 0:A.exportApi}).filter(N=>!d||N.meta.did===d);H.forEach(N=>{yl({tabs:B,blocklet:N,t:a,ancestors:[p]})});const[ye,je]=x.useState((Ce=B[0])==null?void 0:Ce.value),te=(i==null?void 0:i.status)==="published",O=te,oe=({typeOnly:N}={})=>{k.getProject({input:{did:p.meta.did,projectId:o}}).then(A=>{g(!1);const v=A.project||{};if(N){E(v.type);return}v.blockletVersion?Te.valid(v.blockletVersion)&&(v.blockletVersion=Te.inc(v.blockletVersion,"patch")):v.blockletVersion="1.0.0",h(ft(v,p)),E(v.type)}).catch(A=>{g(!1),w.error(Ee(A))})},ie=()=>{k.getRelease({input:{did:p.meta.did,projectId:o,releaseId:D}}).then(N=>{g(!1),h(ft(N==null?void 0:N.release,p)),f(N==null?void 0:N.release)}).catch(N=>{g(!1),w.error(Ee(N))})},G=x.useCallback(()=>{if(T==="edit"){if(!D){w.error("Empty release id");return}ie(),oe({typeOnly:!0})}T==="create"&&oe()},[T,D]);x.useEffect(()=>{G()},[G]);const Y=N=>{const A=kl(c,N,a);if(A){w.error(A.map(M=>M.message).join("; ")),b(A.reduce((M,U)=>({...M,[U.param]:U.message}),{}));return}const v={...c};if(v.blockletVersion=Te.valid(v.blockletVersion),!v.blockletVersion){w.error("Invalid Blocklet Version"),b({blockletVersion:"Invalid Blocklet Version"});return}v.blockletTitle=(v.blockletTitle||"").trim(),v.blockletDescription=(v.blockletDescription||"").trim(),v.blockletIntroduction=(v.blockletIntroduction||"").trim(),v.note=(v.note||"").trim(),I==="pack"?v.blockletComponents=(v.blockletComponents||[]).filter(M=>M.included).map(M=>Fe(M,["did","required"])).map(JSON.stringify):delete v.blockletComponents,s(N),g(!0),k.createRelease({input:{...v,did:p.meta.did,projectId:o,releaseId:D,status:N}}).then(M=>{var U;if(s(!1),g(!1),N==="draft"?w.success(a("blocklet.publish.saveDraftSuccess")):w.success(a("blocklet.publish.createReleaseSuccess")),T==="create"){const Bt=(U=M==null?void 0:M.release)==null?void 0:U.id;t(`../${o}/${Bt}`,{replace:!0})}else ie()}).catch(M=>{s(!1),g(!1);const U=Ee(M);w.error(U),/resource.*empty/.test(U)&&b({blockletResource:U})})};if(!c&&m)return l.jsx(ke,{});if(!c)return null;const ce=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/logo/upload`,le=`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/screenshot/upload`,ae=c!=null&&c.blockletLogo?`${ce}/${c.blockletLogo}`:`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,Q=((c==null?void 0:c.blockletScreenshots)||[]).filter(Boolean).map(N=>`${le}/${N}`),V=H.find(N=>N.meta.did===ye),de=V?l.jsx(j,{children:l.jsx(Ze,{error:u.blockletResource,app:p,component:V,projectId:o,release:{...i,id:D},onSave:N=>{N.length&&b({blockletResource:""})}})}):l.jsx(j,{display:"flex",mt:-3,children:l.jsx(Ut,{children:a("common.empty")})}),ue=N=>{je(N)};let Z=null;if(te&&Pe){const N=me(Pe,`/api/project/${p.meta.did}/${o}/${D}/release/blocklet.json`);if(I==="pack"){const A=new URL(Pe);A.pathname=me(A.pathname,"/launch-blocklet/agreement"),A.searchParams.set("blocklet_meta_url",N),Z=l.jsx(F,{variant:"outlined",style:{marginRight:8},children:l.jsx("a",{href:A.href,target:"_blank",rel:"noreferrer",children:a("common.install")})})}else Z=l.jsxs(l.Fragment,{children:[l.jsx(F,{variant:"outlined",style:{marginRight:8},onClick:()=>R(N),children:a("common.install")}),l.jsx(Kt,{fullWidth:!0,maxWidth:"sm",open:S,onClose:()=>R(""),children:l.jsxs(j,{sx:{py:5,px:4,wordBreak:"break-all"},children:[l.jsx(L,{variant:"h6",sx:{mb:2},children:a("blocklet.publish.installResourceTip")}),l.jsx(lo,{children:S}),l.jsxs(L,{sx:{mt:2},children:[a("blocklet.publish.installResourceTip2"),l.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:a("blocklet.publish.installResourceHelp")})]})]})})]})}return l.jsxs(jl,{...e,children:[l.jsxs(j,{className:"sticky-header",children:[l.jsxs(Ke,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(W,{to:"../",children:a("common.publish")}),l.jsx(W,{to:`../${o}`,children:(c==null?void 0:c.blockletTitle)||"Blocklet"}),l.jsx(L,{color:"text.primary",children:T==="create"?a("common.create"):(c==null?void 0:c.blockletVersion)||a("common.edit")})]}),l.jsxs(j,{display:"flex",children:[!te&&l.jsxs(l.Fragment,{children:[l.jsxs(F,{variant:"outlined",disabled:m||r,onClick:()=>Y(z.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[r===z.PROJECT.RELEASE_STATUS.draft&&l.jsx(we,{size:14,sx:{mr:.5}}),a("blocklet.publish.saveDraft")]}),l.jsxs(F,{variant:"contained",disabled:m||r,onClick:()=>Y(z.PROJECT.RELEASE_STATUS.published),children:[r===z.PROJECT.RELEASE_STATUS.published&&l.jsx(we,{size:14,sx:{mr:.5},color:"inherit"}),a("common.release")]})]}),te&&l.jsxs(l.Fragment,{children:[Z,l.jsx(F,{variant:"contained",children:l.jsx("a",{href:me(`${pe.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/${D}/download/${(i.files||[])[0]}`),children:a("common.download")})})]})]})]}),l.jsxs(j,{children:[I==="pack"&&l.jsx(oo,{type:"info",style:{width:"100%"},children:a("blocklet.publish.packTip")}),l.jsx(j,{pt:3}),l.jsxs(j,{display:"flex",className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.productTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(X,{label:`Blocklet ${a("common.title")}`,placeholder:`Blocklet ${a("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:c.blockletTitle||"",onChange:N=>{b({blockletTitle:""}),h({blockletTitle:N.target.value})},error:!!u.blockletTitle,helperText:u.blockletTitle||""}),l.jsx(X,{label:`Blocklet ${a("common.description")}`,placeholder:`Blocklet ${a("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:O},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletDescription||"",onChange:N=>{b({blockletDescription:""}),h({blockletDescription:N.target.value})},error:!!u.blockletDescription,helperText:u.blockletDescription||"",sx:{mt:3}}),l.jsx(X,{label:`Blocklet ${a("common.introduction")}`,placeholder:`Blocklet ${a("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((_=c==null?void 0:c.blockletIntroduction)==null?void 0:_.length)||0," / ",z.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:c.blockletIntroduction||"",onChange:N=>{b({blockletIntroduction:""}),h({blockletIntroduction:N.target.value.slice(0,z.PROJECT.MAX_INTRO_LENGTH)})},error:!!u.blockletIntroduction,helperText:u.blockletIntroduction||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.versionTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(X,{required:!0,label:`Blocklet ${a("common.version")}`,placeholder:`Blocklet ${a("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:O},autoComplete:"off",variant:"outlined",fullWidth:!0,value:c.blockletVersion,onChange:N=>{b({blockletVersion:""}),h({blockletVersion:N.target.value})},error:!!u.blockletVersion,helperText:u.blockletVersion||""}),l.jsx(X,{label:a("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:O,endAdornment:l.jsxs($e,{position:"end",children:[((ee=c==null?void 0:c.note)==null?void 0:ee.length)||0," / ",z.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:c.note,onChange:N=>{b({note:""}),h({note:N.target.value.slice(0,z.PROJECT.MAX_NOTE_LENGTH)})},error:!!u.note,helperText:u.note||"",sx:{mt:3}})]})]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(L,{variant:"h3",className:"left",children:a("blocklet.publish.imgTitle")}),l.jsxs(j,{sx:{flex:1},children:[l.jsxs(j,{display:"flex",children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.logo")}),l.jsx(j,{sx:{flex:1,cursor:O?"default":"pointer"},children:l.jsx(co,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:ae,onClick:()=>!O&&C.current.open()})})]}),l.jsxs(j,{display:"flex",mt:3,children:[l.jsx(L,{variant:"subtitle1",sx:{mr:2},children:a("common.screenshot")}),l.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[Q.map((N,A)=>l.jsxs(j,{className:"screenshot",children:[l.jsx("img",{alt:"screenshot",src:N}),!O&&l.jsx(Se,{className:"action",onClick:()=>{const v=[...c.blockletScreenshots];v.splice(A,1),h({blockletScreenshots:v})},children:l.jsx(eo,{})})]})),Q.length<5&&l.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:O?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!O&&y.current.open(),children:"+"})]})]})]}),l.jsx(pt,{id:"​uploader-logo",ref:C,popup:!0,onUploadFinish:N=>{h({blockletLogo:N.data.filename}),C.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ce,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:1}}},"uploader-logo"),l.jsx(pt,{id:"​uploader-screenshot",ref:y,popup:!0,onUploadFinish:N=>{var v;const A=c.blockletScreenshots||[];A.push((v=N.data)==null?void 0:v.filename),h({blockletScreenshots:A}),y.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:le,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:dt,maxFileSize:ut,maxNumberOfFiles:5-Q.length}}},"uploader-screenshot")]}),l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("blocklet.publish.resourceTitle")})}),l.jsxs(j,{sx:{flex:1},children:[l.jsx(to,{tabs:B,current:ye,onChange:ue,sx:{ml:-2,mt:-1.5}}),l.jsx(j,{children:de})]})]}),I==="pack"&&l.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(j,{className:"left",children:l.jsx(L,{variant:"h3",children:a("common.components")})}),l.jsx(j,{sx:{flex:1},children:l.jsx(et,{disabled:m||O,app:p,value:c.blockletComponents,onChange:N=>{h({blockletComponents:N})}})})]})]})]})}tt.propTypes={};tt.defaultProps={};const jl=q.div`
136
136
  .sticky-header {
137
137
  margin-top: -12px;
138
138
  padding: 12px 0;
@@ -219,7 +219,7 @@ import{an as At,j as l,aC as K,co as _t,aF as $,f4 as ot,aE as se,aA as _e,aB as
219
219
  `;export{Dt as default};
220
220
  function __vite__mapDeps(indexes) {
221
221
  if (!__vite__mapDeps.viteFileDeps) {
222
- __vite__mapDeps.viteFileDeps = ["assets/react-borpVomN.js","assets/index-qSYDZylC.js","assets/index-F9vDNwHQ.css","assets/index-rPWBV4BD.js","assets/preact.module-lMgcnEc-.js","assets/index-qlPnZF_S.js","assets/index-Z516eVX-.js","assets/toUpper-40rJRTB6.js","assets/index-V3bd7z9T.js","assets/fallback-stZRYYBF.js","assets/index-eHiuO6FO.js","assets/Toolbar-y0kWdfqe.js","assets/Hidden-oxCC7kMQ.js","assets/MoreHoriz-h0p3UhnV.js","assets/ExpandMore-V-R7JsGL.js","assets/index-3gq6XeKX.js","assets/ListItem-uf59B9KY.js","assets/selector-sBtObpG1.js","assets/Avatar-xLWc5S5b.js","assets/useSlot-rlbG6RwJ.js","assets/ua-parser-M2aliXHw.js","assets/index-d-Rw6UM2.js","assets/CloseOutlined-X-D-0DBL.js","assets/MoreVert-MwQoF0F6.js","assets/index-btS5NVdj.js","assets/FormControlLabel-9bCs5HRT.js","assets/useFormControl-RPQwTOAU.js","assets/index-qovA7RT2.js","assets/FilterList-Hm_AfXra.js","assets/TableRow-wEa_QnPy.js","assets/Grid-3SE35yjG.js","assets/FormControl-UyqgO9Ab.js","assets/FormGroup-ofRNksFA.js","assets/InputLabel--xXan3mK.js","assets/ListItemText-v8mvGUjy.js","assets/Select-Uz_h4btJ.js","assets/TextField-y1frF4gR.js","assets/LastPage-D9tpDmBg.js","assets/index-5-f0uSU3.js","assets/redux--rqpftZj.js","assets/Search-JVIzhtig.js","assets/Delete-yBiZpo99.js","assets/uniqBy-FPiZPJ28.js","assets/react-i1f7jPtW.css"]
222
+ __vite__mapDeps.viteFileDeps = ["assets/react-Q619OHdV.js","assets/index-Fu6i9CIs.js","assets/index-F9vDNwHQ.css","assets/index-mnGytjkS.js","assets/preact.module-lMgcnEc-.js","assets/index-5jnMol7l.js","assets/index-nIL7Y1uW.js","assets/toUpper-NJ4QXIze.js","assets/index-XQ_DuiRL.js","assets/fallback-DPep9aPI.js","assets/index-xHjvXRZd.js","assets/Toolbar-qOcEr5XA.js","assets/Hidden-uo52Be7o.js","assets/MoreHoriz-AJwUbFbC.js","assets/ExpandMore-TWn4Tvg-.js","assets/index-8glvWVr4.js","assets/ListItem-Lk7DD4jR.js","assets/selector-TryFKxPO.js","assets/Avatar-pFlMlW9k.js","assets/useSlot-MeOlDmtJ.js","assets/ua-parser--DJGheiy.js","assets/index-d-Rw6UM2.js","assets/CloseOutlined-VT0zAvld.js","assets/MoreVert-mGfd9QIB.js","assets/index-Gk2kKcuz.js","assets/FormControlLabel-x8ZAESYq.js","assets/useFormControl-vN6TXdWi.js","assets/index-vObSINnE.js","assets/FilterList-WYr_w9y3.js","assets/TableRow-m-kPORhi.js","assets/Grid-tXSADazD.js","assets/FormControl-mFUfcsqw.js","assets/FormGroup-rPjzKW3Y.js","assets/InputLabel-C7zmYa1i.js","assets/ListItemText-AjXkf-Hp.js","assets/Select-tj9u34pI.js","assets/TextField-GwYTrJWV.js","assets/LastPage-PqxzIENp.js","assets/index-3gEJxYUx.js","assets/redux-g7QVn4tY.js","assets/Search-Tx3hGdOJ.js","assets/Delete-afRhjl9p.js","assets/uniqBy-i-surHNj.js","assets/react-i1f7jPtW.css"]
223
223
  }
224
224
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
225
225
  }