@abtnode/blocklet-services 1.16.43-beta-20250425-130658-8da18f4d → 1.16.43-beta-20250427-232837-e671de06

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 (149) hide show
  1. package/api/routes/oauth/client.js +2 -0
  2. package/api/routes/oauth/server.js +75 -0
  3. package/api/routes/user.js +1 -0
  4. package/api/services/oauth/server.js +31 -1
  5. package/dist/assets/{AdapterDayjs-6a0bjomM.js → AdapterDayjs-BUGplkxR.js} +1 -1
  6. package/dist/assets/{ArrowDropDown-DiAXbLgf.js → ArrowDropDown-B0sLkJoY.js} +1 -1
  7. package/dist/assets/{CheckCircle-BOBzbtP2.js → CheckCircle-BNrN9mgy.js} +1 -1
  8. package/dist/assets/{ChevronLeft-JDNo_7RB.js → ChevronLeft-Dq00IS01.js} +1 -1
  9. package/dist/assets/{ChevronRight-Cfe-QLJe.js → ChevronRight-ZTqWK-Ga.js} +1 -1
  10. package/dist/assets/{DeleteOutline-DW9Kk9LF.js → DeleteOutline-C2sY6hfm.js} +1 -1
  11. package/dist/assets/{Done-CAPpWSLt.js → Done-JLiLhELm.js} +1 -1
  12. package/dist/assets/{Download-BFPjDYTH.js → Download-Ch4RfGRW.js} +1 -1
  13. package/dist/assets/{Edit-D6qkTeBz.js → Edit-CY6fFHQM.js} +1 -1
  14. package/dist/assets/{Error-SwROBcf8.js → Error-CSFUqG0m.js} +1 -1
  15. package/dist/assets/{ExpandLess-BpA2naWp.js → ExpandLess-BiMmSOBl.js} +1 -1
  16. package/dist/assets/{Google-C5jm8HrI.js → Google-GOp5YvmZ.js} +1 -1
  17. package/dist/assets/{InfoOutlined-B-fGWta1.js → InfoOutlined-CQB5qKm-.js} +1 -1
  18. package/dist/assets/{Launch-GqtcaQf1.js → Launch-fxgQvk19.js} +1 -1
  19. package/dist/assets/{LaunchOutlined-D7W2P0hG.js → LaunchOutlined-BV4_W1pb.js} +1 -1
  20. package/dist/assets/{MoreHoriz-3W8Fr_ZL.js → MoreHoriz-CX_pwfPT.js} +1 -1
  21. package/dist/assets/{PlayArrow-Cja7S4vv.js → PlayArrow-DFH1Psjx.js} +1 -1
  22. package/dist/assets/{TuneOutlined-B3W8vgdw.js → TuneOutlined-Dy2qPFGI.js} +1 -1
  23. package/dist/assets/{ViewList-BRsEAVjL.js → ViewList-e3CoNi3K.js} +1 -1
  24. package/dist/assets/{access-control-hoDAWTTL.js → access-control-B20P1UrY.js} +1 -1
  25. package/dist/assets/{actions-BPVh6JdI.js → actions-DA-6s_nQ.js} +1 -1
  26. package/dist/assets/{add-component-core-BXXPrLkI.js → add-component-core-DG9mQFsr.js} +1 -1
  27. package/dist/assets/{add-resource-DSoZMbAG.js → add-resource-BoS5YkVy.js} +1 -1
  28. package/dist/assets/{addon-CY4PNd8X.js → addon-Bcc-Xwbf.js} +1 -1
  29. package/dist/assets/{advanced-BV9dnonO.js → advanced-DTe2fs5L.js} +1 -1
  30. package/dist/assets/{appearance-DbKPqE0i.js → appearance-DYi32tlk.js} +1 -1
  31. package/dist/assets/{ar-mN5tHF4O.js → ar-DupP3pla.js} +1 -1
  32. package/dist/assets/{audit-logs-CY7CyxpG.js → audit-logs-CydL26ZC.js} +2 -2
  33. package/dist/assets/{authorize-CLUD6O4F.js → authorize-DUyL7MEU.js} +1 -1
  34. package/dist/assets/{base32-bFQC4m_a.js → base32-p9VcJrwv.js} +1 -1
  35. package/dist/assets/{branding-LKt9TBDZ.js → branding-CAMtNLMU.js} +1 -1
  36. package/dist/assets/{branding-psyKu6rz.js → branding-_VO2ZZ3t.js} +2 -2
  37. package/dist/assets/{bundle-avatar-CNkSW5-i.js → bundle-avatar-D0t7RLGx.js} +1 -1
  38. package/dist/assets/{button-BXbVAdLT.js → button-BeZibzB9.js} +1 -1
  39. package/dist/assets/{click-to-copy-CSwrPBKm.js → click-to-copy-BGyXQL2i.js} +1 -1
  40. package/dist/assets/{complete-B8igFASe.js → complete-BzCBoyhn.js} +1 -1
  41. package/dist/assets/{component-RJz0SwId.js → component-5gjaNHCg.js} +1 -1
  42. package/dist/assets/{config-C2EcTJzj.js → config-1xq1_d84.js} +1 -1
  43. package/dist/assets/{config-CqUiFvo_.js → config-Bh19ZUJ-.js} +1 -1
  44. package/dist/assets/{config-navigation-D8u4Wwi0.js → config-navigation-Dvjz9nAh.js} +3 -3
  45. package/dist/assets/{config-space-BytYjhBd.js → config-space-CYg-72ab.js} +1 -1
  46. package/dist/assets/{confirm-qekNSA6N.js → confirm-DqvNmeoz.js} +1 -1
  47. package/dist/assets/{connect-BPW0KY4c.js → connect-Bbc2y5nS.js} +1 -1
  48. package/dist/assets/{connect-DZqNlu4F.js → connect-DM2xKEWk.js} +1 -1
  49. package/dist/assets/{connect-to-BcxM4POV.js → connect-to-Ck5O2M1K.js} +1 -1
  50. package/dist/assets/{dashboard-DrtJT0zg.js → dashboard-8QXGSoVu.js} +3 -3
  51. package/dist/assets/{de-BP5gdcKp.js → de-TcDcBkI0.js} +1 -1
  52. package/dist/assets/{delete-confirm-DEV7zNkl.js → delete-confirm-_BzUlhv2.js} +1 -1
  53. package/dist/assets/{did-address-DZ4aPkg2.js → did-address-DUThaBlf.js} +1 -1
  54. package/dist/assets/{domain-action-card-B5PD8_Bw.js → domain-action-card-D3w6jyPR.js} +1 -1
  55. package/dist/assets/{domain-CcBq0Tmt.js → domain-ag7_Ivc1.js} +1 -1
  56. package/dist/assets/domains-BDxEOJh6.js +1 -0
  57. package/dist/assets/{email-BWcxSNWH.js → email-DKpgximx.js} +1 -1
  58. package/dist/assets/{es-CBFvWN06.js → es-CDD0y3ur.js} +1 -1
  59. package/dist/assets/{exchange-passport-Bw0lAjY5.js → exchange-passport-Izkf8qpM.js} +1 -1
  60. package/dist/assets/{fr-CmHa1dCv.js → fr-zYSSKlBw.js} +1 -1
  61. package/dist/assets/{fuel-DBFO1voi.js → fuel-CcBzY6Bt.js} +1 -1
  62. package/dist/assets/{gen-access-key-BW8kZ1Xs.js → gen-access-key-DxKwgiGT.js} +1 -1
  63. package/dist/assets/{get-safe-url-BZgGKuU5.js → get-safe-url-Bq9SFfX6.js} +1 -1
  64. package/dist/assets/{get-safe-url-C0AtthsC.js → get-safe-url-DBsPGn--.js} +1 -1
  65. package/dist/assets/{hi-CWyDCXYI.js → hi-BsP-0YrU.js} +1 -1
  66. package/dist/assets/{home-CTPoo1SY.js → home-Bi8fA3jh.js} +1 -1
  67. package/dist/assets/{id-3xH3q-wr.js → id-CY2FWdMB.js} +1 -1
  68. package/dist/assets/{iframe--qNemH7W.js → iframe-DZ181i8X.js} +1 -1
  69. package/dist/assets/{index-eeIdp1fF.js → index-B2yOcqTl.js} +1 -1
  70. package/dist/assets/{index-d728JwfZ.js → index-BGgGfqEc.js} +1 -1
  71. package/dist/assets/{index-D5iB7faJ.js → index-B_vrglsK.js} +1 -1
  72. package/dist/assets/{index-u9S0L-Rf.js → index-BnmeT4Bk.js} +1 -1
  73. package/dist/assets/{index-BvQykj-W.js → index-C8QMe2NL.js} +1 -1
  74. package/dist/assets/{index-Ci9HJ6Iv.js → index-CGBZONPv.js} +1 -1
  75. package/dist/assets/{index-C5yNf__V.js → index-Cjjg2_Xp.js} +1 -1
  76. package/dist/assets/{index-BUb5Yjs_.js → index-DNG6b9sp.js} +4 -4
  77. package/dist/assets/{index-CGJUebpH.js → index-DO3_1y-L.js} +7 -7
  78. package/dist/assets/{index-CnjT4Zv0.js → index-DO4cSlUf.js} +1 -1
  79. package/dist/assets/{index-BoJFRi1m.js → index-DcBUShKK.js} +1 -1
  80. package/dist/assets/{index-CY6pLbAD.js → index-Dl4W1N74.js} +1 -1
  81. package/dist/assets/{index-DLBv7Dtg.js → index-DuH8q5ir.js} +1 -1
  82. package/dist/assets/{index-DS-sLY6b.js → index-DyxFC42L.js} +3 -3
  83. package/dist/assets/{index-COd4R-rR.js → index-EnQ254k3.js} +1 -1
  84. package/dist/assets/{index-lI6b97z3.js → index-bb90BUf4.js} +1 -1
  85. package/dist/assets/{index-Dv_p9rOk.js → index-mDKG4SiY.js} +1 -1
  86. package/dist/assets/index-n0Q-fETi.js +99 -0
  87. package/dist/assets/{index-CXuahOvP.js → index-slEV_y-C.js} +1 -1
  88. package/dist/assets/{invitation-DRfkSNu9.js → invitation-BrAZQXQL.js} +1 -1
  89. package/dist/assets/{invite-t5XgIivH.js → invite-Cbz8B2uW.js} +1 -1
  90. package/dist/assets/{issue-passport-Cn04_O-m.js → issue-passport-Dd_yyO08.js} +1 -1
  91. package/dist/assets/{item-cpKk__48.js → item-nK3D7WH5.js} +1 -1
  92. package/dist/assets/{ja-Dlm9gbED.js → ja-BLPXqHM4.js} +1 -1
  93. package/dist/assets/{ko-JYKwx9PY.js → ko-Cxgk34co.js} +1 -1
  94. package/dist/assets/{landing-page-CaOceQxT.js → landing-page-BMM_oJb1.js} +1 -1
  95. package/dist/assets/{layout-DTFm6q61.js → layout-Cw-hwCHs.js} +1 -1
  96. package/dist/assets/{list-CMmXasDM.js → list-Dmtz4mRb.js} +1 -1
  97. package/dist/assets/localization-DATb3Y_j.js +1 -0
  98. package/dist/assets/{log-CYW8Ap44.js → log-Chqr_or_.js} +1 -1
  99. package/dist/assets/{logger-BbYYsfRo.js → logger-zix81YaM.js} +1 -1
  100. package/dist/assets/{login-GHsnMk-9.js → login-DjB23H9M.js} +1 -1
  101. package/dist/assets/{login-oauth-callback-B2HyhVt7.js → login-oauth-callback-ILeP59KT.js} +1 -1
  102. package/dist/assets/{logo-uploader-ly-3UjHj.js → logo-uploader-CJrdpVcQ.js} +3 -3
  103. package/dist/assets/{lost-passport-BduGI9L4.js → lost-passport-Do1Pl0xI.js} +1 -1
  104. package/dist/assets/{open-window-Cw3Ugf66.js → open-window-D8MZhu_7.js} +1 -1
  105. package/dist/assets/{overview-C101Lhxl.js → overview-DLA9wj6a.js} +1 -1
  106. package/dist/assets/{page-header-Bk-0dymm.js → page-header-CWY8mxlT.js} +1 -1
  107. package/dist/assets/{passport-item-BUfjEppi.js → passport-item-CWtlyIE_.js} +1 -1
  108. package/dist/assets/{permission-C_VicyW0.js → permission-BGM09622.js} +1 -1
  109. package/dist/assets/{preferences-C_nxZvVu.js → preferences-DYdbb0kG.js} +1 -1
  110. package/dist/assets/{profile-embed-CgXxt11D.js → profile-embed-CeEMHxEc.js} +1 -1
  111. package/dist/assets/{pt-BgyGyT44.js → pt-BINIHul4.js} +1 -1
  112. package/dist/assets/{publish-resource-DBfSpWOt.js → publish-resource-BEc_A5mC.js} +1 -1
  113. package/dist/assets/{react-beautiful-dnd.esm-kaYRX6nt.js → react-beautiful-dnd.esm-ByydTUk4.js} +1 -1
  114. package/dist/assets/{relative-time-CuIhVa08.js → relative-time-Djw-K4Zu.js} +1 -1
  115. package/dist/assets/{ru-CEVWIKf9.js → ru-BifF7u-P.js} +1 -1
  116. package/dist/assets/{runtime-Pqx3AapT.js → runtime-DXl0lfXF.js} +1 -1
  117. package/dist/assets/sdk-CTe6rL6c.js +1 -0
  118. package/dist/assets/{security-BSs6l8nY.js → security-BhkfG23R.js} +1 -1
  119. package/dist/assets/{session-BoLXmmdy.js → session-VIMbdc9j.js} +1 -1
  120. package/dist/assets/{setup-BK8QRxSP.js → setup-BmYxTt6Z.js} +9 -3
  121. package/dist/assets/{spaces-FInvGagn.js → spaces-WkJCApHO.js} +1 -1
  122. package/dist/assets/{start-e5k6uJu1.js → start-CVexuuAk.js} +1 -1
  123. package/dist/assets/{status-uX3_TUfC.js → status-CygZ0LuY.js} +1 -1
  124. package/dist/assets/{step-actions-5JhpbsMf.js → step-actions-D_1PFeFs.js} +1 -1
  125. package/dist/assets/{studio-gQoPFCFH.js → studio-Byjzwg8q.js} +1 -1
  126. package/dist/assets/{switch-control-1DAS0xgi.js → switch-control-5fEOPVKs.js} +1 -1
  127. package/dist/assets/{th-y94pKVk7.js → th-CBxM23U5.js} +1 -1
  128. package/dist/assets/{traffic-CLSnYOIK.js → traffic-T11hxc--.js} +1 -1
  129. package/dist/assets/{transfer-Dh9v20QV.js → transfer-ROpxn9LD.js} +1 -1
  130. package/dist/assets/{unsubscribe-BiCDicGU.js → unsubscribe-Cd3XOnSp.js} +1 -1
  131. package/dist/assets/{use-app-logo-Cc5WhrJy.js → use-app-logo-B8Kl9EZt.js} +1 -1
  132. package/dist/assets/{useLocalStorage-BxIzITf9.js → useLocalStorage-DldnaMbZ.js} +1 -1
  133. package/dist/assets/{user-center-1qavaXbB.js → user-center-CzyCbtWm.js} +1 -1
  134. package/dist/assets/{util-Ce3AQBfV.js → util-Bjy-tP7q.js} +1 -1
  135. package/dist/assets/{util-BrciyiqD.js → util-Dw9Eiuko.js} +1 -1
  136. package/dist/assets/{vendor-arcblock-BUng-RXZ.js → vendor-arcblock-ScFEr-lj.js} +2 -2
  137. package/dist/assets/{vendor-ux-did-connect-CsNUdA6Y.js → vendor-ux-did-connect-BdkhddhO.js} +1 -1
  138. package/dist/assets/{vi-Dw7W2UPp.js → vi-DY_Y13jR.js} +1 -1
  139. package/dist/assets/wrap-locale-DMTYAE64.js +1 -0
  140. package/dist/assets/{zh-Dag6w2Z7.js → zh-BYRCoK6F.js} +1 -1
  141. package/dist/assets/{zh-tw-CMYkmBeh.js → zh-tw-BG0rlH8p.js} +1 -1
  142. package/dist/index.html +3 -3
  143. package/dist/service-worker.js +1 -1
  144. package/package.json +21 -21
  145. package/dist/assets/domains-CGsSPrGB.js +0 -1
  146. package/dist/assets/index-BtWj67HV.js +0 -99
  147. package/dist/assets/localization-Bp5pyrsz.js +0 -1
  148. package/dist/assets/sdk-guHRt_DC.js +0 -1
  149. package/dist/assets/wrap-locale-Bc5OA7-R.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as S,g as Ee,b as ct}from"./vendor-react-DEoibe3W.js";import{a as dt,m as oe}from"./vendor-hooks-DftG_2gV.js";import{j as e,a9 as g,H as w,ag as H,E as pt,T as E,X as ut,ak as te,ac as K,aa as O,aj as Oe,a8 as mt,I as $,O as W,q as ie,N as ft,br as Me,cm as qe,cn as ee,bV as We,bq as $e,bx as ht,bs as xt,bS as gt,v as yt,y as jt,bn as vt,s as bt}from"./vendor-mui-core-CQ38ohp2.js";import{u as L,al as U,ar as Ct,Y as F,a5 as xe,j as G,aN as St,B as _,r as Tt,_ as ge,bu as He,f as wt,b6 as Pt,bN as Fe,bg as It,bt as Rt}from"./vendor-ux-did-connect-CsNUdA6Y.js";import{z as N,l as ne,t as Ue,U as J,C as Dt,ac as kt,f as Ft,b as re,aw as Nt,R as Ge}from"./index-CGJUebpH.js";import{v as At,c as Lt,K as ye,Z as X}from"./vendor-arcblock-BUng-RXZ.js";import{W as je}from"./did-address-DZ4aPkg2.js";import{u as M}from"./dashboard-DrtJT0zg.js";import{r as ve,a as be,b as Ce,c as le,d as Bt,e as Ve,u as zt,f as _t}from"./passport-item-BUfjEppi.js";import{p as Ye}from"./util-BrciyiqD.js";import{w as V,P as Ke}from"./permission-C_VicyW0.js";import{C as Et}from"./Google-C5jm8HrI.js";import{L as Z,ay as Ot,J as Mt}from"./vendor-utils-BNHJB5U7.js";import{E as ce}from"./EditIcon-Bi2cR-_u.js";import{C as Se}from"./confirm-qekNSA6N.js";import{L as Ze}from"./list-header-CgF1S4js.js";import{f as se}from"./format-error-BrmqJs5a.js";import{_ as qt}from"./useSetState-CWq0AVWn.js";import{L as Wt}from"./LockIcon-fuTfhB_G.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-BxIzITf9.js";import"./PlayArrow-Cja7S4vv.js";import"./get-safe-url-BZgGKuU5.js";import"./session-BoLXmmdy.js";import"./index-BoJFRi1m.js";import"./InfoOutlined-B-fGWta1.js";import"./dot-BE1YP292.js";import"./useAsync-CGW40D2-.js";import"./use-mobile-DlKplWTG.js";import"./index-D5iB7faJ.js";import"./Phone-KP65huHK.js";import"./Location-B8EOY3d0.js";import"./Email-Dz2Eyqu0.js";import"./Timezone-Ce4E1Xey.js";import"./base32-bFQC4m_a.js";import"./cloneDeep-SfcdeqEN.js";const Ne="info";function Te({createPassportSvg:f,passport:o,onCancel:c,onSwitchPassport:m}){const{t:p}=L(),l=dt({tab:Ne}),h={info:{label:p("common.basicInfo"),value:Ne,component:()=>e.jsx(Je,{passport:o,createPassportSvg:f})},logs:{label:p("common.logs"),value:"logs",component:()=>e.jsx(et,{passport:o})},related:{label:p("team.passport.related"),value:"related",component:()=>e.jsx(tt,{passport:o,onSwitchPassport:m})}},s=Object.values(h).map(({label:n,value:t})=>({label:n,value:t})).filter(n=>n.value==="related"?o.parentDid:!0),u=h[l.tab]||h.info,a=n=>{l.tab=n};return e.jsx(U,{title:p("common.passport"),onClose:c,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs($t,{children:[e.jsx(g,{className:"tabs",children:e.jsx(Ct,{tabs:s,current:l.tab,onChange:a,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(u.component,{})})]})})}Te.propTypes={createPassportSvg:w.func.isRequired,passport:w.object.isRequired,onCancel:w.func.isRequired,onSwitchPassport:w.func};Te.defaultProps={onSwitchPassport:()=>{}};const $t=H(g)`
1
+ import{r as S,g as Ee,b as ct}from"./vendor-react-DEoibe3W.js";import{a as dt,m as oe}from"./vendor-hooks-DftG_2gV.js";import{j as e,a9 as g,H as w,ag as H,E as pt,T as E,X as ut,ak as te,ac as K,aa as O,aj as Oe,a8 as mt,I as $,O as W,q as ie,N as ft,br as Me,cm as qe,cn as ee,bV as We,bq as $e,bx as ht,bs as xt,bS as gt,v as yt,y as jt,bn as vt,s as bt}from"./vendor-mui-core-CQ38ohp2.js";import{u as L,al as U,ar as Ct,Y as F,a5 as xe,j as G,aN as St,B as _,r as Tt,_ as ge,bu as He,f as wt,b6 as Pt,bN as Fe,bg as It,bt as Rt}from"./vendor-ux-did-connect-BdkhddhO.js";import{z as N,l as ne,t as Ue,U as J,C as Dt,ac as kt,f as Ft,b as re,aw as Nt,R as Ge}from"./index-DO3_1y-L.js";import{v as At,c as Lt,K as ye,Z as X}from"./vendor-arcblock-ScFEr-lj.js";import{W as je}from"./did-address-DUThaBlf.js";import{u as M}from"./dashboard-8QXGSoVu.js";import{r as ve,a as be,b as Ce,c as le,d as Bt,e as Ve,u as zt,f as _t}from"./passport-item-CWtlyIE_.js";import{p as Ye}from"./util-Dw9Eiuko.js";import{w as V,P as Ke}from"./permission-BGM09622.js";import{C as Et}from"./Google-GOp5YvmZ.js";import{L as Z,ay as Ot,J as Mt}from"./vendor-utils-BNHJB5U7.js";import{E as ce}from"./EditIcon-Bi2cR-_u.js";import{C as Se}from"./confirm-DqvNmeoz.js";import{L as Ze}from"./list-header-CgF1S4js.js";import{f as se}from"./format-error-BrmqJs5a.js";import{_ as qt}from"./useSetState-CWq0AVWn.js";import{L as Wt}from"./LockIcon-fuTfhB_G.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-DldnaMbZ.js";import"./PlayArrow-DFH1Psjx.js";import"./get-safe-url-Bq9SFfX6.js";import"./session-VIMbdc9j.js";import"./index-DcBUShKK.js";import"./InfoOutlined-CQB5qKm-.js";import"./dot-BE1YP292.js";import"./useAsync-CGW40D2-.js";import"./use-mobile-DlKplWTG.js";import"./index-B_vrglsK.js";import"./Phone-KP65huHK.js";import"./Location-B8EOY3d0.js";import"./Email-Dz2Eyqu0.js";import"./Timezone-Ce4E1Xey.js";import"./base32-p9VcJrwv.js";import"./cloneDeep-SfcdeqEN.js";const Ne="info";function Te({createPassportSvg:f,passport:o,onCancel:c,onSwitchPassport:m}){const{t:p}=L(),l=dt({tab:Ne}),h={info:{label:p("common.basicInfo"),value:Ne,component:()=>e.jsx(Je,{passport:o,createPassportSvg:f})},logs:{label:p("common.logs"),value:"logs",component:()=>e.jsx(et,{passport:o})},related:{label:p("team.passport.related"),value:"related",component:()=>e.jsx(tt,{passport:o,onSwitchPassport:m})}},s=Object.values(h).map(({label:n,value:t})=>({label:n,value:t})).filter(n=>n.value==="related"?o.parentDid:!0),u=h[l.tab]||h.info,a=n=>{l.tab=n};return e.jsx(U,{title:p("common.passport"),onClose:c,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs($t,{children:[e.jsx(g,{className:"tabs",children:e.jsx(Ct,{tabs:s,current:l.tab,onChange:a,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(u.component,{})})]})})}Te.propTypes={createPassportSvg:w.func.isRequired,passport:w.object.isRequired,onCancel:w.func.isRequired,onSwitchPassport:w.func};Te.defaultProps={onSwitchPassport:()=>{}};const $t=H(g)`
2
2
  margin-top: -16px;
3
3
 
4
4
  .tabs {
@@ -1 +1 @@
1
- import{r as P,b as J,g as W}from"./vendor-react-DEoibe3W.js";import{H as x,j as i,ao as B,s as _,w as ee,a9 as U,T as w,y as te}from"./vendor-mui-core-CQ38ohp2.js";import{f as E,u as H}from"./vendor-hooks-DftG_2gV.js";import{j as ne,i as v,I as se}from"./vendor-ux-did-connect-CsNUdA6Y.js";import{z as O,x as re,y as z}from"./vendor-utils-BNHJB5U7.js";const Be=e=>{if(!e||!e.length)return[];const t=[];let o=null,s=[];if(e.forEach(n=>{var y,f,p,h;if(!n.activity||!n.activity.type||!o){o&&(s.length===1?t.push(s[0]):(o.items=s,t.push(o))),n.activity&&n.activity.type?(o=n,s=[n]):(t.push(n),o=null,s=[]);return}const r=s[0].activity,a=r.type,c=(y=r.target)==null?void 0:y.type,l=(f=r.target)==null?void 0:f.id,u=n.activity.type,d=(p=n.activity.target)==null?void 0:p.type,g=(h=n.activity.target)==null?void 0:h.id;if(a&&u&&a===u&&(!r.target&&!n.activity.target||r.target&&n.activity.target&&c===d&&l===g))s.push(n);else{if(s.length===1)t.push(s[0]);else{const T=Object.assign({},o,{items:s});t.push(T)}o=n,s=[n]}}),o)if(s.length===1)t.push(s[0]);else{const n=Object.assign({},o,{items:s});t.push(n)}return t},oe=e=>!O(e.activity)&&!!e.activity.type&&!!e.activity.actor,ze=e=>oe(e)&&!!e.actorInfo&&!!e.actorInfo.did,ie=e=>{if(!e)return null;const{meta:t,target:o}=e;return{metaLink:t==null?void 0:t.id,targetLink:o==null?void 0:o.id}},S={COMMENT:"comment",LIKE:"like",FOLLOW:"follow",TIPS:"tips",MENTION:"mention",ASSIGN:"assign"},ae={[S.COMMENT]:(e,t)=>t>1?i.jsxs(i.Fragment,{children:["left ",t," comments on your ",e]}):i.jsxs(i.Fragment,{children:["commented on your ",e]}),[S.LIKE]:e=>i.jsxs(i.Fragment,{children:["liked your ",e]}),[S.FOLLOW]:()=>i.jsx(i.Fragment,{children:"followed you"}),[S.TIPS]:e=>i.jsxs(i.Fragment,{children:["gave tips to your ",e]}),[S.MENTION]:e=>i.jsxs(i.Fragment,{children:["mentioned you in ",e]}),[S.ASSIGN]:()=>i.jsx(i.Fragment,{children:"assigned you a task"})},b=P.memo(function({user:t,color:o=v.textBase}){const s=re(z(ne.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:t.did});return i.jsx(B,{href:s,color:o,fontWeight:600,target:"_blank",sx:{textDecoration:"none"},onClick:n=>{n.customPreventRedirect=!0},children:t.fullName||"System"})});b.propTypes={user:x.shape({did:x.string.isRequired,fullName:x.string.isRequired}).isRequired,color:x.string};b.displayName="UserLink";function $e({activity:e,users:t,actors:o,extra:s={},mountPoint:n=""}){const{type:r,target:a}=e||{},{type:c}=a||{},{linkColor:l=v.textBase}=s||{},u=E(()=>{if(!Array.isArray(t))return new Map;const p=new Map;return t.forEach(h=>{h!=null&&h.did&&!p.has(h.did)&&p.set(h.did,h)}),p},[t]),d=E(()=>Array.isArray(o)?o.map(p=>p?u.get(p)||{did:p,fullName:"System"}:null):[],[o,u]),g=H(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return i.jsx(b,{user:d[0],color:l});const p=d.slice(0,-1),h=d[d.length-1];if(d.length===2)return i.jsxs(i.Fragment,{children:[i.jsx(b,{user:p[0],color:l})," and ",i.jsx(b,{user:h,color:l})]});const T=d.length>3,F=T?d.slice(0,2):p;return i.jsxs(i.Fragment,{children:[F.map((I,Z)=>i.jsxs(J.Fragment,{children:[i.jsx(b,{user:I,color:l}),Z<F.length-1?", ":""]},I.did)),T?`, and ${d.length-2} others`:i.jsxs(i.Fragment,{children:[", and ",i.jsx(b,{user:h,color:l})]})]})}),m=H(()=>{const p=ae[r];return p?p(c,t.length):null}),y=E(()=>{const p=g(),h=m();return!p||!h?null:i.jsxs(i.Fragment,{children:[p," ",h]})},[r,c,d,g,m]),f=E(()=>{if(!e)return null;const p=ie(e);return p!=null&&p.targetLink?z(n,p.targetLink):null},[e,n]);return!r||O(a)?null:i.jsxs(i.Fragment,{children:[y," ",i.jsx(B,{href:f,color:v.primaryBase,target:"_blank",sx:{textDecoration:"none"},onClick:p=>{p.customPreventRedirect=!0},children:a.name})]})}const le={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 7L7 17M8 7h9v9"/>'};$.propTypes={meta:x.object.isRequired};const ce=_(ee)(({theme:e})=>({maxWidth:320,display:"flex",flexDirection:"column",gap:e.spacing(1.5),padding:e.spacing(2),marginTop:e.spacing(1),borderRadius:e.spacing(1),border:`1px solid ${v.dividerColor}`,boxShadow:"none"})),de=_(U)(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1)})),pe=_(U)({display:"flex",justifyContent:"space-between",alignItems:"center"});function $({meta:e}){const{amount:t,symbol:o,chainId:s}=e,n=()=>{window.open(`https://explorer.arcblock.io/chain/${s}`,"_blank")};return i.jsxs(ce,{children:[i.jsxs(de,{children:[i.jsx("img",{alt:"ArcBlock Beta",src:"https://bbqat7g5cg33cyr4pdrd6foycgzfb5xxeh2se7gcqkq.did.abtnet.io/payment-kit/methods/arcblock.png",width:32,height:32,style:{borderRadius:16}}),i.jsx(w,{variant:"h5",color:v.textBase,children:"ArcBlock"})]}),i.jsxs(pe,{children:[i.jsxs(U,{display:"flex",alignItems:"baseline",gap:1,children:[i.jsxs(w,{component:"span",variant:"h5",color:v.textBase,fontWeight:"bold",children:["+ ",t]}),i.jsx(w,{component:"span",variant:"subtitle2",color:v.textSubtitle,children:o})]}),i.jsx(te,{variant:"outlined",size:"small",color:"secondary",endIcon:i.jsx(se,{icon:le}),onClick:n,sx:{borderRadius:4},children:"View on Chain"})]})]})}q.propTypes={meta:x.object.isRequired,type:x.string.isRequired,hideTips:x.bool,sx:x.object};q.defaultProps={hideTips:!1,sx:{}};function q({meta:e,type:t,hideTips:o=!1,sx:s}){return O(e)?null:t==="tips"&&!o?i.jsx($,{meta:e}):i.jsx(w,{variant:"subtitle2",fontSize:16,component:"p",sx:s,color:v.textSubtitle,children:e.content})}var ue=P;function he(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var M=he(ue);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s])}return e},j.apply(this,arguments)}function fe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,C(e,t)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,n){return s.__proto__=n,s},C(e,t)}function me(e,t){if(e==null)return{};var o={},s=Object.keys(e),n,r;for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var A={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},ge=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function ye(e,t){if(!e||typeof e!="object")return e;var o={};return Object.keys(e).forEach(function(s){t.indexOf(s)>-1||(o[s]=e[s])}),o}var xe=["component","className","unsafeHTML"];function V(e,t){if(t!=="letters"&&t!=="words")throw new Error("Unsupported options basedOn: "+t);if(e.nodeType===Node.TEXT_NODE){var o=document.createDocumentFragment(),s;switch(t){case"words":s=e.textContent.split(/\b|(?=\W)/);break;case"letters":s=Array.from(e.textContent);break}s.forEach(function(c){o.appendChild(ve(c))}),e.parentNode.replaceChild(o,e)}else if(e.nodeType===Node.ELEMENT_NODE)for(var n=[].slice.call(e.childNodes),r=n.length,a=0;a<r;a++)V(n[a],t)}function ve(e){var t=document.createElement("span");return t.className="LinesEllipsis-unit",t.textContent=e,t}function R(e){e.parentNode.replaceChild(document.createTextNode(e.textContent),e)}function G(e,t){if(!(!t.contains(e)||e===t)){for(;e.nextElementSibling;)e.parentNode.removeChild(e.nextElementSibling);G(e.parentNode,t)}}function be(e){for(var t=e;t=t.parentNode;)if(/p|div|main|section|h\d|ul|ol|li/.test(t.tagName.toLowerCase()))return t}function N(e){return!!(e.offsetHeight&&(e.offsetWidth||/\S/.test(e.textContent)))}var K={component:"div",unsafeHTML:"",maxLine:1,ellipsis:"…",ellipsisHTML:void 0,className:"",basedOn:void 0,onReflow:function(){},winWidth:void 0},Se=Object.keys(K),Y=function(e){fe(t,e);function t(s){var n;return n=e.call(this,s)||this,n.state={html:s.unsafeHTML,clamped:!1},n.canvas=null,n.maxLine=0,n.nlUnits=[],n}var o=t.prototype;return o.componentDidMount=function(){this.initCanvas(),this.reflow(this.props)},o.componentDidUpdate=function(n){n.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),this.props!==n&&this.reflow(this.props)},o.componentWillUnmount=function(){this.canvas.parentNode.removeChild(this.canvas),this.canvas=null},o.setState=function(n,r){return typeof n.clamped<"u"&&(this.clamped=n.clamped),e.prototype.setState.call(this,n,r)},o.initCanvas=function(){if(!this.canvas){var n=this.canvas=document.createElement("div");n.className="LinesEllipsis-canvas "+this.props.className,n.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(A).forEach(function(r){n.style[r]=A[r]}),document.body.appendChild(n)}},o.copyStyleToCanvas=function(){var n=this,r=window.getComputedStyle(this.target);ge.forEach(function(a){n.canvas.style[a]=r[a]})},o.reflow=function(n){this.maxLine=+n.maxLine||1,this.canvas.innerHTML=n.unsafeHTML;var r=n.basedOn||(/^[\x00-\x7F]+$/.test(n.unsafeHTML)?"words":"letters");V(this.canvas,r);var a=this.putEllipsis(this.calcIndexes()),c={clamped:a,html:this.canvas.innerHTML};this.setState(c,n.onReflow.bind(this,c))},o.calcIndexes=function(){var n=[0],r=this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit")),a=r.length;if(!r.length)return n;var c=r.find(N);if(!c)return n;for(var l=1,u=c.offsetTop,d=1;d<a&&!(N(r[d])&&r[d].offsetTop-u>1&&(l++,n.push(d),u=r[d].offsetTop,l>this.maxLine));d++);return n},o.putEllipsis=function(n){if(n.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,n[this.maxLine]);var r=this.nlUnits.pop(),a=this.makeEllipsisSpan();do G(r,this.canvas),be(r).appendChild(a),r=this.nlUnits.pop();while(r&&(!N(r)||a.offsetHeight>r.offsetHeight||a.offsetTop>r.offsetTop));return r&&R(r),this.nlUnits.forEach(R),!0},o.makeEllipsisSpan=function(){var n=this.props,r=n.ellipsisHTML,a=n.ellipsis,c=document.createElement("span");c.appendChild(document.createElement("wbr"));var l=document.createElement("span");return l.className="LinesEllipsis-ellipsis",r?l.innerHTML=r:l.textContent=a,c.appendChild(l),c},o.isClamped=function(){return this.clamped},o.render=function(){var n=this,r=this.state,a=r.html,c=r.clamped,l=this.props,u=l.component,d=l.className,g=l.unsafeHTML,m=me(l,xe);return M.default.createElement(u,j({className:"LinesEllipsis "+(c?"LinesEllipsis--clamped":"")+" "+d,ref:function(f){return n.target=f}},ye(m,Se)),M.default.createElement("div",{dangerouslySetInnerHTML:{__html:c?a:g}}))},t}(M.default.Component);Y.defaultProps=K;var Le=Y;const qe=W(Le),Te=e=>{const t="explorer.arcblockio.cn";return e&&{beta:"beta.abtnetwork.io",main:"main.abtnetwork.io"}[e]||t},Ee=e=>{try{return new URL(e).host}catch{return e}};var Ve={getChainHost:Te,getUrlHost:Ee},Ge={linkStyle:{color:"#2754C5",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"14px",textDecoration:"underline"},actionsStyle:{margin:"20px -8px 0px"},actionStyle:{color:"#4598fa",fontSize:14,border:"1px solid #4598fa",display:"inline-block",borderRadius:"4px",margin:"8px",marginTop:"8px",marginBottom:"8px",marginLeft:"8px",marginRight:"8px"},assetStyle:{backgroundColor:"#f6f6f6",borderRadius:"8px",padding:"8px"},remarkStyle:{color:"#9397a1",fontSize:"12px",margin:0,whiteSpace:"pre-line!important"},summaryStyle:{color:"#49c3ad",fontWeight:700},titleStyle:{marginBottom:"6px"},severityColorMap:{normal:"#C4C5CA",success:"#25C99B",error:"#F16E6E",warning:"#DE9E37"},attachmentsStyle:{borderLeft:"2px solid transparent",paddingLeft:"20px"},h1Style:{color:"#333",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"24px",fontWeight:"bold",margin:"40px 0",padding:"0"},footerStyle:{color:"#898989",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"12px",lineHeight:"22px",margin:0}},we={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},Me={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const k=new Map,Ne=(e,t)=>{k.set(e,t)},je=(e="en_US")=>k.get(e)||k.get("en_US");var X={registerLang:Ne,getLang:je},Ce=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const ke=Ce,{getLang:L}=X,_e=(e,t)=>t===1?e:`${e}s`,Ue=1e-7;var Oe=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const o=L(t.locale),s=[],n=(c,l)=>{const u=Math.floor(c*10**l+Ue);return(Math.round(u)/10**l).toFixed(l)},r=(c,l,u)=>{if((s.length===0||!t.colonNotation)&&c===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=o[l]||L("en_US")[l],{short:g}=o[l]||L("en_US")[l];let m=(u||c||"0").toString(),y,f;if(t.colonNotation){y=s.length>0?":":"",f="";const p=m.includes(".")?m.split(".")[0].length:m.length,h=s.length>0?2:1;m="0".repeat(Math.max(0,h-p))+m}else y="",t.locale==="zh_CN"?Object.values(a).filter(p=>p>0).length>1?!a.days&&!a.hours&&a.minutes&&t.compact?f=d:f=g:a.minutes?f=d:f=g:f=t.verbose?` ${_e(d,c)}`:g;s.push(y+m+f)},a=ke(e);if(r(Math.trunc(a.days/365),"year"),r(a.days%365,"day"),r(a.hours,"hour"),r(a.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(r(a.seconds,"second"),t.formatSubMilliseconds)r(a.milliseconds,"millisecond"),r(a.microseconds,"microsecond"),r(a.nanoseconds,"nanosecond");else{const c=a.milliseconds+a.microseconds/1e3+a.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=c>=1?Math.round(c):Math.ceil(c),d=l?c.toFixed(l):u;r(Number.parseFloat(d,10),"millisecond",d)}else{const c=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=n(c,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");r(Number.parseFloat(d,10),"second",d)}if(s.length===0){const c=(o.millisecond||L("en_US").millisecond).long,l=(o.millisecond||L("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${c}`:l}`:`0${t.verbose?` ${c}s`:l}`}if(t.compact)return s[0];if(typeof t.unitCount=="number"){const c=t.colonNotation?"":" ";return s.slice(0,Math.max(t.unitCount,1)).join(c)}return t.colonNotation?s.join(""):s.join(" ")};const De=we,Fe=Me,{registerLang:D}=X,Q=Oe;D("en_US",De);D("zh_CN",Fe);Q.registerLang=D;var Ie=Q;const Ke=W(Ie);export{qe as H,q as M,ze as a,Ve as c,le as d,ie as g,oe as i,Be as m,Ke as p,Ge as s,$e as u};
1
+ import{r as P,b as J,g as W}from"./vendor-react-DEoibe3W.js";import{H as x,j as i,ao as B,s as _,w as ee,a9 as U,T as w,y as te}from"./vendor-mui-core-CQ38ohp2.js";import{f as E,u as H}from"./vendor-hooks-DftG_2gV.js";import{j as ne,i as v,I as se}from"./vendor-ux-did-connect-BdkhddhO.js";import{z as O,x as re,y as z}from"./vendor-utils-BNHJB5U7.js";const Be=e=>{if(!e||!e.length)return[];const t=[];let o=null,s=[];if(e.forEach(n=>{var y,f,p,h;if(!n.activity||!n.activity.type||!o){o&&(s.length===1?t.push(s[0]):(o.items=s,t.push(o))),n.activity&&n.activity.type?(o=n,s=[n]):(t.push(n),o=null,s=[]);return}const r=s[0].activity,a=r.type,c=(y=r.target)==null?void 0:y.type,l=(f=r.target)==null?void 0:f.id,u=n.activity.type,d=(p=n.activity.target)==null?void 0:p.type,g=(h=n.activity.target)==null?void 0:h.id;if(a&&u&&a===u&&(!r.target&&!n.activity.target||r.target&&n.activity.target&&c===d&&l===g))s.push(n);else{if(s.length===1)t.push(s[0]);else{const T=Object.assign({},o,{items:s});t.push(T)}o=n,s=[n]}}),o)if(s.length===1)t.push(s[0]);else{const n=Object.assign({},o,{items:s});t.push(n)}return t},oe=e=>!O(e.activity)&&!!e.activity.type&&!!e.activity.actor,ze=e=>oe(e)&&!!e.actorInfo&&!!e.actorInfo.did,ie=e=>{if(!e)return null;const{meta:t,target:o}=e;return{metaLink:t==null?void 0:t.id,targetLink:o==null?void 0:o.id}},S={COMMENT:"comment",LIKE:"like",FOLLOW:"follow",TIPS:"tips",MENTION:"mention",ASSIGN:"assign"},ae={[S.COMMENT]:(e,t)=>t>1?i.jsxs(i.Fragment,{children:["left ",t," comments on your ",e]}):i.jsxs(i.Fragment,{children:["commented on your ",e]}),[S.LIKE]:e=>i.jsxs(i.Fragment,{children:["liked your ",e]}),[S.FOLLOW]:()=>i.jsx(i.Fragment,{children:"followed you"}),[S.TIPS]:e=>i.jsxs(i.Fragment,{children:["gave tips to your ",e]}),[S.MENTION]:e=>i.jsxs(i.Fragment,{children:["mentioned you in ",e]}),[S.ASSIGN]:()=>i.jsx(i.Fragment,{children:"assigned you a task"})},b=P.memo(function({user:t,color:o=v.textBase}){const s=re(z(ne.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:t.did});return i.jsx(B,{href:s,color:o,fontWeight:600,target:"_blank",sx:{textDecoration:"none"},onClick:n=>{n.customPreventRedirect=!0},children:t.fullName||"System"})});b.propTypes={user:x.shape({did:x.string.isRequired,fullName:x.string.isRequired}).isRequired,color:x.string};b.displayName="UserLink";function $e({activity:e,users:t,actors:o,extra:s={},mountPoint:n=""}){const{type:r,target:a}=e||{},{type:c}=a||{},{linkColor:l=v.textBase}=s||{},u=E(()=>{if(!Array.isArray(t))return new Map;const p=new Map;return t.forEach(h=>{h!=null&&h.did&&!p.has(h.did)&&p.set(h.did,h)}),p},[t]),d=E(()=>Array.isArray(o)?o.map(p=>p?u.get(p)||{did:p,fullName:"System"}:null):[],[o,u]),g=H(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return i.jsx(b,{user:d[0],color:l});const p=d.slice(0,-1),h=d[d.length-1];if(d.length===2)return i.jsxs(i.Fragment,{children:[i.jsx(b,{user:p[0],color:l})," and ",i.jsx(b,{user:h,color:l})]});const T=d.length>3,F=T?d.slice(0,2):p;return i.jsxs(i.Fragment,{children:[F.map((I,Z)=>i.jsxs(J.Fragment,{children:[i.jsx(b,{user:I,color:l}),Z<F.length-1?", ":""]},I.did)),T?`, and ${d.length-2} others`:i.jsxs(i.Fragment,{children:[", and ",i.jsx(b,{user:h,color:l})]})]})}),m=H(()=>{const p=ae[r];return p?p(c,t.length):null}),y=E(()=>{const p=g(),h=m();return!p||!h?null:i.jsxs(i.Fragment,{children:[p," ",h]})},[r,c,d,g,m]),f=E(()=>{if(!e)return null;const p=ie(e);return p!=null&&p.targetLink?z(n,p.targetLink):null},[e,n]);return!r||O(a)?null:i.jsxs(i.Fragment,{children:[y," ",i.jsx(B,{href:f,color:v.primaryBase,target:"_blank",sx:{textDecoration:"none"},onClick:p=>{p.customPreventRedirect=!0},children:a.name})]})}const le={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 7L7 17M8 7h9v9"/>'};$.propTypes={meta:x.object.isRequired};const ce=_(ee)(({theme:e})=>({maxWidth:320,display:"flex",flexDirection:"column",gap:e.spacing(1.5),padding:e.spacing(2),marginTop:e.spacing(1),borderRadius:e.spacing(1),border:`1px solid ${v.dividerColor}`,boxShadow:"none"})),de=_(U)(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1)})),pe=_(U)({display:"flex",justifyContent:"space-between",alignItems:"center"});function $({meta:e}){const{amount:t,symbol:o,chainId:s}=e,n=()=>{window.open(`https://explorer.arcblock.io/chain/${s}`,"_blank")};return i.jsxs(ce,{children:[i.jsxs(de,{children:[i.jsx("img",{alt:"ArcBlock Beta",src:"https://bbqat7g5cg33cyr4pdrd6foycgzfb5xxeh2se7gcqkq.did.abtnet.io/payment-kit/methods/arcblock.png",width:32,height:32,style:{borderRadius:16}}),i.jsx(w,{variant:"h5",color:v.textBase,children:"ArcBlock"})]}),i.jsxs(pe,{children:[i.jsxs(U,{display:"flex",alignItems:"baseline",gap:1,children:[i.jsxs(w,{component:"span",variant:"h5",color:v.textBase,fontWeight:"bold",children:["+ ",t]}),i.jsx(w,{component:"span",variant:"subtitle2",color:v.textSubtitle,children:o})]}),i.jsx(te,{variant:"outlined",size:"small",color:"secondary",endIcon:i.jsx(se,{icon:le}),onClick:n,sx:{borderRadius:4},children:"View on Chain"})]})]})}q.propTypes={meta:x.object.isRequired,type:x.string.isRequired,hideTips:x.bool,sx:x.object};q.defaultProps={hideTips:!1,sx:{}};function q({meta:e,type:t,hideTips:o=!1,sx:s}){return O(e)?null:t==="tips"&&!o?i.jsx($,{meta:e}):i.jsx(w,{variant:"subtitle2",fontSize:16,component:"p",sx:s,color:v.textSubtitle,children:e.content})}var ue=P;function he(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var M=he(ue);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s])}return e},j.apply(this,arguments)}function fe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,C(e,t)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,n){return s.__proto__=n,s},C(e,t)}function me(e,t){if(e==null)return{};var o={},s=Object.keys(e),n,r;for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var A={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},ge=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function ye(e,t){if(!e||typeof e!="object")return e;var o={};return Object.keys(e).forEach(function(s){t.indexOf(s)>-1||(o[s]=e[s])}),o}var xe=["component","className","unsafeHTML"];function V(e,t){if(t!=="letters"&&t!=="words")throw new Error("Unsupported options basedOn: "+t);if(e.nodeType===Node.TEXT_NODE){var o=document.createDocumentFragment(),s;switch(t){case"words":s=e.textContent.split(/\b|(?=\W)/);break;case"letters":s=Array.from(e.textContent);break}s.forEach(function(c){o.appendChild(ve(c))}),e.parentNode.replaceChild(o,e)}else if(e.nodeType===Node.ELEMENT_NODE)for(var n=[].slice.call(e.childNodes),r=n.length,a=0;a<r;a++)V(n[a],t)}function ve(e){var t=document.createElement("span");return t.className="LinesEllipsis-unit",t.textContent=e,t}function R(e){e.parentNode.replaceChild(document.createTextNode(e.textContent),e)}function G(e,t){if(!(!t.contains(e)||e===t)){for(;e.nextElementSibling;)e.parentNode.removeChild(e.nextElementSibling);G(e.parentNode,t)}}function be(e){for(var t=e;t=t.parentNode;)if(/p|div|main|section|h\d|ul|ol|li/.test(t.tagName.toLowerCase()))return t}function N(e){return!!(e.offsetHeight&&(e.offsetWidth||/\S/.test(e.textContent)))}var K={component:"div",unsafeHTML:"",maxLine:1,ellipsis:"…",ellipsisHTML:void 0,className:"",basedOn:void 0,onReflow:function(){},winWidth:void 0},Se=Object.keys(K),Y=function(e){fe(t,e);function t(s){var n;return n=e.call(this,s)||this,n.state={html:s.unsafeHTML,clamped:!1},n.canvas=null,n.maxLine=0,n.nlUnits=[],n}var o=t.prototype;return o.componentDidMount=function(){this.initCanvas(),this.reflow(this.props)},o.componentDidUpdate=function(n){n.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),this.props!==n&&this.reflow(this.props)},o.componentWillUnmount=function(){this.canvas.parentNode.removeChild(this.canvas),this.canvas=null},o.setState=function(n,r){return typeof n.clamped<"u"&&(this.clamped=n.clamped),e.prototype.setState.call(this,n,r)},o.initCanvas=function(){if(!this.canvas){var n=this.canvas=document.createElement("div");n.className="LinesEllipsis-canvas "+this.props.className,n.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(A).forEach(function(r){n.style[r]=A[r]}),document.body.appendChild(n)}},o.copyStyleToCanvas=function(){var n=this,r=window.getComputedStyle(this.target);ge.forEach(function(a){n.canvas.style[a]=r[a]})},o.reflow=function(n){this.maxLine=+n.maxLine||1,this.canvas.innerHTML=n.unsafeHTML;var r=n.basedOn||(/^[\x00-\x7F]+$/.test(n.unsafeHTML)?"words":"letters");V(this.canvas,r);var a=this.putEllipsis(this.calcIndexes()),c={clamped:a,html:this.canvas.innerHTML};this.setState(c,n.onReflow.bind(this,c))},o.calcIndexes=function(){var n=[0],r=this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit")),a=r.length;if(!r.length)return n;var c=r.find(N);if(!c)return n;for(var l=1,u=c.offsetTop,d=1;d<a&&!(N(r[d])&&r[d].offsetTop-u>1&&(l++,n.push(d),u=r[d].offsetTop,l>this.maxLine));d++);return n},o.putEllipsis=function(n){if(n.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,n[this.maxLine]);var r=this.nlUnits.pop(),a=this.makeEllipsisSpan();do G(r,this.canvas),be(r).appendChild(a),r=this.nlUnits.pop();while(r&&(!N(r)||a.offsetHeight>r.offsetHeight||a.offsetTop>r.offsetTop));return r&&R(r),this.nlUnits.forEach(R),!0},o.makeEllipsisSpan=function(){var n=this.props,r=n.ellipsisHTML,a=n.ellipsis,c=document.createElement("span");c.appendChild(document.createElement("wbr"));var l=document.createElement("span");return l.className="LinesEllipsis-ellipsis",r?l.innerHTML=r:l.textContent=a,c.appendChild(l),c},o.isClamped=function(){return this.clamped},o.render=function(){var n=this,r=this.state,a=r.html,c=r.clamped,l=this.props,u=l.component,d=l.className,g=l.unsafeHTML,m=me(l,xe);return M.default.createElement(u,j({className:"LinesEllipsis "+(c?"LinesEllipsis--clamped":"")+" "+d,ref:function(f){return n.target=f}},ye(m,Se)),M.default.createElement("div",{dangerouslySetInnerHTML:{__html:c?a:g}}))},t}(M.default.Component);Y.defaultProps=K;var Le=Y;const qe=W(Le),Te=e=>{const t="explorer.arcblockio.cn";return e&&{beta:"beta.abtnetwork.io",main:"main.abtnetwork.io"}[e]||t},Ee=e=>{try{return new URL(e).host}catch{return e}};var Ve={getChainHost:Te,getUrlHost:Ee},Ge={linkStyle:{color:"#2754C5",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"14px",textDecoration:"underline"},actionsStyle:{margin:"20px -8px 0px"},actionStyle:{color:"#4598fa",fontSize:14,border:"1px solid #4598fa",display:"inline-block",borderRadius:"4px",margin:"8px",marginTop:"8px",marginBottom:"8px",marginLeft:"8px",marginRight:"8px"},assetStyle:{backgroundColor:"#f6f6f6",borderRadius:"8px",padding:"8px"},remarkStyle:{color:"#9397a1",fontSize:"12px",margin:0,whiteSpace:"pre-line!important"},summaryStyle:{color:"#49c3ad",fontWeight:700},titleStyle:{marginBottom:"6px"},severityColorMap:{normal:"#C4C5CA",success:"#25C99B",error:"#F16E6E",warning:"#DE9E37"},attachmentsStyle:{borderLeft:"2px solid transparent",paddingLeft:"20px"},h1Style:{color:"#333",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"24px",fontWeight:"bold",margin:"40px 0",padding:"0"},footerStyle:{color:"#898989",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"12px",lineHeight:"22px",margin:0}},we={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},Me={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const k=new Map,Ne=(e,t)=>{k.set(e,t)},je=(e="en_US")=>k.get(e)||k.get("en_US");var X={registerLang:Ne,getLang:je},Ce=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const ke=Ce,{getLang:L}=X,_e=(e,t)=>t===1?e:`${e}s`,Ue=1e-7;var Oe=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const o=L(t.locale),s=[],n=(c,l)=>{const u=Math.floor(c*10**l+Ue);return(Math.round(u)/10**l).toFixed(l)},r=(c,l,u)=>{if((s.length===0||!t.colonNotation)&&c===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=o[l]||L("en_US")[l],{short:g}=o[l]||L("en_US")[l];let m=(u||c||"0").toString(),y,f;if(t.colonNotation){y=s.length>0?":":"",f="";const p=m.includes(".")?m.split(".")[0].length:m.length,h=s.length>0?2:1;m="0".repeat(Math.max(0,h-p))+m}else y="",t.locale==="zh_CN"?Object.values(a).filter(p=>p>0).length>1?!a.days&&!a.hours&&a.minutes&&t.compact?f=d:f=g:a.minutes?f=d:f=g:f=t.verbose?` ${_e(d,c)}`:g;s.push(y+m+f)},a=ke(e);if(r(Math.trunc(a.days/365),"year"),r(a.days%365,"day"),r(a.hours,"hour"),r(a.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(r(a.seconds,"second"),t.formatSubMilliseconds)r(a.milliseconds,"millisecond"),r(a.microseconds,"microsecond"),r(a.nanoseconds,"nanosecond");else{const c=a.milliseconds+a.microseconds/1e3+a.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=c>=1?Math.round(c):Math.ceil(c),d=l?c.toFixed(l):u;r(Number.parseFloat(d,10),"millisecond",d)}else{const c=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=n(c,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");r(Number.parseFloat(d,10),"second",d)}if(s.length===0){const c=(o.millisecond||L("en_US").millisecond).long,l=(o.millisecond||L("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${c}`:l}`:`0${t.verbose?` ${c}s`:l}`}if(t.compact)return s[0];if(typeof t.unitCount=="number"){const c=t.colonNotation?"":" ";return s.slice(0,Math.max(t.unitCount,1)).join(c)}return t.colonNotation?s.join(""):s.join(" ")};const De=we,Fe=Me,{registerLang:D}=X,Q=Oe;D("en_US",De);D("zh_CN",Fe);Q.registerLang=D;var Ie=Q;const Ke=W(Ie);export{qe as H,q as M,ze as a,Ve as c,le as d,ie as g,oe as i,Be as m,Ke as p,Ge as s,$e as u};
@@ -1 +1 @@
1
- import{r as h}from"./vendor-react-DEoibe3W.js";import{H as e,j as a,bo as Y,bq as w,O as S,q as j,a9 as v}from"./vendor-mui-core-CQ38ohp2.js";import{t as s}from"./index-CGJUebpH.js";import{u as H}from"./vendor-ux-did-connect-CsNUdA6Y.js";import{A as M}from"./vendor-arcblock-BUng-RXZ.js";import{f as _}from"./vendor-hooks-DftG_2gV.js";import{L as A,D as C}from"./vendor-mui-x-B0hsmEJ3.js";import{A as y}from"./AdapterDayjs-6a0bjomM.js";function x({value:r,onChange:i,error:m,helperText:u,label:t,timezone:n}){const f=n?s().tz(n):s(),p=_(()=>{let l=s();return r&&(l=n?s(r).tz(n):s(r)),l.format("YYYY-MM-DD[T]HH:mm")},[r,n]),D=l=>{const T=n?s(l).tz(n).format("YYYY-MM-DD HH:mm:00"):s(l).format("YYYY-MM-DD HH:mm:00");i(new Date(T))};return a.jsx(A,{dateAdapter:y,children:a.jsxs(Y,{fullWidth:!0,error:m,children:[a.jsx(C,{label:t,minDateTime:f,value:s(p),onChange:D,slotProps:{textField:{error:m,helperText:m?u:""}},format:"YYYY-MM-DD HH:mm"}),u&&a.jsx(w,{children:u})]})})}x.propTypes={value:e.oneOfType([e.string,e.instanceOf(Date)]),onChange:e.func.isRequired,error:e.bool,helperText:e.string,label:e.string,timezone:e.string};x.defaultProps={value:null,error:!1,helperText:"",label:"",timezone:""};function E(r){return a.jsx(M,{...r,width:20,height:20})}const c={MINUTES_30:30*60*1e3,HOUR_1:60*60*1e3,HOURS_3:3*60*60*1e3,DAY_1:24*60*60*1e3,DAYS_7:7*24*60*60*1e3,DAYS_30:30*24*60*60*1e3};function b({placeholder:r,value:i,onChange:m,timezone:u}){const{t}=H(),[n,f]=h.useState(i||""),[p,D]=h.useState(null),l=h.useMemo(()=>[{value:new Date(Date.now()+c.MINUTES_30),label:`30 ${t("common.minutes")}`},{value:new Date(Date.now()+c.HOUR_1),label:`1 ${t("common.hour")}`},{value:new Date(Date.now()+c.HOURS_3),label:`3 ${t("common.hours")}`},{value:new Date(Date.now()+c.DAY_1),label:`1 ${t("common.day")}`},{value:new Date(Date.now()+c.DAYS_7),label:`7 ${t("common.days")}`},{value:new Date(Date.now()+c.DAYS_30),label:`30 ${t("common.days")}`},{value:"custom",label:t("common.custom")}],[t]),T=o=>{if(f(o),o==="custom"){const d=s().toDate();D(d),m(d)}else m(o)},g=o=>{D(o),m(o)};return h.useEffect(()=>{i&&(l.find(d=>s(d.value).isSame(i))||(f("custom"),D(i)))},[]),a.jsxs(a.Fragment,{children:[a.jsx(Y,{fullWidth:!0,children:a.jsx(S,{select:!0,value:n,label:r||t("team.passport.passportExpireTime"),onChange:o=>T(o.target.value),variant:"outlined",SelectProps:{IconComponent:E},children:l.map(o=>a.jsx(j,{value:o.value,children:o.label},o.value))})}),n==="custom"&&a.jsx(v,{children:a.jsx(x,{value:p,onChange:g,label:t("team.passport.customExpireTime"),timezone:u,error:!p,helperText:p?void 0:t("team.passport.customExpireTime")})})]})}b.propTypes={value:e.oneOfType([e.string,e.instanceOf(Date)]),onChange:e.func.isRequired,timezone:e.string,placeholder:e.string};b.defaultProps={value:"",timezone:"",placeholder:""};export{b as T};
1
+ import{r as h}from"./vendor-react-DEoibe3W.js";import{H as e,j as a,bo as Y,bq as w,O as S,q as j,a9 as v}from"./vendor-mui-core-CQ38ohp2.js";import{t as s}from"./index-DO3_1y-L.js";import{u as H}from"./vendor-ux-did-connect-BdkhddhO.js";import{A as M}from"./vendor-arcblock-ScFEr-lj.js";import{f as _}from"./vendor-hooks-DftG_2gV.js";import{L as A,D as C}from"./vendor-mui-x-B0hsmEJ3.js";import{A as y}from"./AdapterDayjs-BUGplkxR.js";function x({value:r,onChange:i,error:m,helperText:u,label:t,timezone:n}){const f=n?s().tz(n):s(),p=_(()=>{let l=s();return r&&(l=n?s(r).tz(n):s(r)),l.format("YYYY-MM-DD[T]HH:mm")},[r,n]),D=l=>{const T=n?s(l).tz(n).format("YYYY-MM-DD HH:mm:00"):s(l).format("YYYY-MM-DD HH:mm:00");i(new Date(T))};return a.jsx(A,{dateAdapter:y,children:a.jsxs(Y,{fullWidth:!0,error:m,children:[a.jsx(C,{label:t,minDateTime:f,value:s(p),onChange:D,slotProps:{textField:{error:m,helperText:m?u:""}},format:"YYYY-MM-DD HH:mm"}),u&&a.jsx(w,{children:u})]})})}x.propTypes={value:e.oneOfType([e.string,e.instanceOf(Date)]),onChange:e.func.isRequired,error:e.bool,helperText:e.string,label:e.string,timezone:e.string};x.defaultProps={value:null,error:!1,helperText:"",label:"",timezone:""};function E(r){return a.jsx(M,{...r,width:20,height:20})}const c={MINUTES_30:30*60*1e3,HOUR_1:60*60*1e3,HOURS_3:3*60*60*1e3,DAY_1:24*60*60*1e3,DAYS_7:7*24*60*60*1e3,DAYS_30:30*24*60*60*1e3};function b({placeholder:r,value:i,onChange:m,timezone:u}){const{t}=H(),[n,f]=h.useState(i||""),[p,D]=h.useState(null),l=h.useMemo(()=>[{value:new Date(Date.now()+c.MINUTES_30),label:`30 ${t("common.minutes")}`},{value:new Date(Date.now()+c.HOUR_1),label:`1 ${t("common.hour")}`},{value:new Date(Date.now()+c.HOURS_3),label:`3 ${t("common.hours")}`},{value:new Date(Date.now()+c.DAY_1),label:`1 ${t("common.day")}`},{value:new Date(Date.now()+c.DAYS_7),label:`7 ${t("common.days")}`},{value:new Date(Date.now()+c.DAYS_30),label:`30 ${t("common.days")}`},{value:"custom",label:t("common.custom")}],[t]),T=o=>{if(f(o),o==="custom"){const d=s().toDate();D(d),m(d)}else m(o)},g=o=>{D(o),m(o)};return h.useEffect(()=>{i&&(l.find(d=>s(d.value).isSame(i))||(f("custom"),D(i)))},[]),a.jsxs(a.Fragment,{children:[a.jsx(Y,{fullWidth:!0,children:a.jsx(S,{select:!0,value:n,label:r||t("team.passport.passportExpireTime"),onChange:o=>T(o.target.value),variant:"outlined",SelectProps:{IconComponent:E},children:l.map(o=>a.jsx(j,{value:o.value,children:o.label},o.value))})}),n==="custom"&&a.jsx(v,{children:a.jsx(x,{value:p,onChange:g,label:t("team.passport.customExpireTime"),timezone:u,error:!p,helperText:p?void 0:t("team.passport.customExpireTime")})})]})}b.propTypes={value:e.oneOfType([e.string,e.instanceOf(Date)]),onChange:e.func.isRequired,timezone:e.string,placeholder:e.string};b.defaultProps={value:"",timezone:"",placeholder:""};export{b as T};
@@ -1 +1 @@
1
- import{j as o,a9 as r,H as i,T as n}from"./vendor-mui-core-CQ38ohp2.js";import{L as f,r as g}from"./vendor-react-DEoibe3W.js";import"./index-CGJUebpH.js";import"./vendor-arcblock-BUng-RXZ.js";import"./vendor-ux-did-connect-CsNUdA6Y.js";import"./vendor-utils-BNHJB5U7.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";const l=(e,t)=>[e,...Array.isArray(t)?t:[t]],a=(e=2)=>({overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"});function c({sx:e,...t}){const s=l({display:"flex",flexWrap:"wrap",mx:-1},e);return o.jsx(r,{sx:s,...t})}c.propTypes={sx:i.object};c.defaultProps={sx:{}};function p({icon:e}){const[t,s]=g.useState(!1);return!e||t?null:typeof e=="string"?o.jsx(r,{component:"img",src:e,alt:"",sx:{width:1,height:1},onError:()=>s(!0)}):e}p.propTypes={icon:i.oneOfType([i.string,i.node]).isRequired};function w({title:e,desc:t,extra:s,cover:b,icon:d,to:x,sx:h}){const m=l({position:"relative",flexBasis:{xs:"100%",sm:"50%",md:"33.33%",lg:"25%"},maxWidth:{xs:"100%",sm:"50%",md:"33.33%",lg:"25%"},mb:{xs:2,md:6},px:1},h);return o.jsx(r,{sx:m,children:o.jsx(r,{component:f,to:x,target:"_blank",sx:{display:"flex",flexDirection:"column",gap:1,height:1,pt:0,color:"inherit",textDecoration:"none",borderRadius:1,cursor:"pointer"},children:o.jsxs(r,{children:[o.jsxs(r,{sx:{position:"relative"},children:[b,d&&o.jsx(r,{sx:{position:"absolute",top:44,left:16,zIndex:1,width:56,height:56},children:o.jsx(p,{icon:d})})]}),o.jsx(n,{sx:{mt:1,fontSize:"1.25rem",fontWeight:600,...a()},children:e}),t&&o.jsx(n,{variant:"body2",sx:{my:1,...a(),color:"text.secondary"},children:t}),s]})})})}w.propTypes={title:i.string.isRequired,desc:i.string.isRequired,extra:i.node.isRequired,cover:i.string.isRequired,icon:i.string.isRequired,to:i.string.isRequired,sx:i.object.isRequired};const k="/.well-known/service/static/assets/doc-board-bg-DWZHV9Ng.png";function u({board:e,sx:t,...s}){return o.jsx(w,{date:e.createdAt,sx:t,to:e.link,title:e.title,desc:e.desc,cover:o.jsx(r,{sx:{position:"relative",paddingTop:`${9/16*100}%`,border:1,borderColor:"divider",borderRadius:1,overflow:"hidden"},children:o.jsx(r,{component:"img",src:k,alt:"",sx:{position:"absolute",top:0,left:0,width:1}})}),icon:e.icon,...s})}u.propTypes={board:i.object.isRequired,sx:i.object.isRequired};function C(){const e=[{id:"1",title:"Blocklet Platform",desc:"Guide to understand and build on our blocklet platform",icon:"https://www.arcblock.io/favicon.ico",link:"https://www.arcblock.io/docs/blocklet-developer/en/getting-started"},{id:"2",title:"Create Blocklet",desc:"Build blocklet with just one command line.",icon:"https://www.arcblock.io/favicon.ico",link:"https://www.arcblock.io/docs/createblocklet/en/quick-start"},{id:"3",title:"Blocklet Launcher",desc:"Streamlining Blocklet Launching.",icon:"https://www.arcblock.io/docs/uploads/5a4f4716bc8061532a535fe816a9169c.png",link:"https://www.arcblock.io/docs/launcher/en/launcher-welcome"},{id:"4",title:"DID Spaces",desc:"Digital Spaces for Decentralized Identity (DID)",icon:"https://www.arcblock.io/docs/uploads/3a8b142d7c940c57eced71eddba2ff19.png",link:"https://www.arcblock.io/docs/did-spaces/en/did-spaces-getting-started"},{id:"5",title:"DID Wallet",desc:"DID Wallet Support docs",icon:"https://www.arcblock.io/docs/uploads/59ddb28f405ee670428e5fe1ff12d104.png",link:"https://www.arcblock.io/docs/did-wallet/en/get-started"},{id:"6",title:"DID Names",desc:"Naming Service based on NFT and verifiable credentials",icon:"https://www.didnames.io/favicon.ico?imageFilter=resize&w=32",link:"https://www.arcblock.io/docs/did-domain/en/did-domain-faq"},{id:"7",title:"Blockchain",desc:"The ledger for ArcBlock ecosystem",icon:"https://www.arcblock.io/docs/uploads/4a20c152faae0f104ed0815ff3b8b48b.png",link:"https://www.arcblock.io/docs/blockchain/en/blockchain-how-to-guides"},{id:"8",title:"DID Connect",desc:"The open protocol and development kit for connecting users and dapps",icon:"https://www.arcblock.io/docs/uploads/d189118f89b56e9d5b03ad5a0212a4ab.png",link:"https://www.arcblock.io/docs/did-connect/en/developer-guides"}];return o.jsx(c,{children:e.map(t=>o.jsx(u,{board:t},t.id))})}export{C as default};
1
+ import{j as o,a9 as r,H as i,T as n}from"./vendor-mui-core-CQ38ohp2.js";import{L as f,r as g}from"./vendor-react-DEoibe3W.js";import"./index-DO3_1y-L.js";import"./vendor-arcblock-ScFEr-lj.js";import"./vendor-ux-did-connect-BdkhddhO.js";import"./vendor-utils-BNHJB5U7.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";const l=(e,t)=>[e,...Array.isArray(t)?t:[t]],a=(e=2)=>({overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"});function c({sx:e,...t}){const s=l({display:"flex",flexWrap:"wrap",mx:-1},e);return o.jsx(r,{sx:s,...t})}c.propTypes={sx:i.object};c.defaultProps={sx:{}};function p({icon:e}){const[t,s]=g.useState(!1);return!e||t?null:typeof e=="string"?o.jsx(r,{component:"img",src:e,alt:"",sx:{width:1,height:1},onError:()=>s(!0)}):e}p.propTypes={icon:i.oneOfType([i.string,i.node]).isRequired};function w({title:e,desc:t,extra:s,cover:b,icon:d,to:x,sx:h}){const m=l({position:"relative",flexBasis:{xs:"100%",sm:"50%",md:"33.33%",lg:"25%"},maxWidth:{xs:"100%",sm:"50%",md:"33.33%",lg:"25%"},mb:{xs:2,md:6},px:1},h);return o.jsx(r,{sx:m,children:o.jsx(r,{component:f,to:x,target:"_blank",sx:{display:"flex",flexDirection:"column",gap:1,height:1,pt:0,color:"inherit",textDecoration:"none",borderRadius:1,cursor:"pointer"},children:o.jsxs(r,{children:[o.jsxs(r,{sx:{position:"relative"},children:[b,d&&o.jsx(r,{sx:{position:"absolute",top:44,left:16,zIndex:1,width:56,height:56},children:o.jsx(p,{icon:d})})]}),o.jsx(n,{sx:{mt:1,fontSize:"1.25rem",fontWeight:600,...a()},children:e}),t&&o.jsx(n,{variant:"body2",sx:{my:1,...a(),color:"text.secondary"},children:t}),s]})})})}w.propTypes={title:i.string.isRequired,desc:i.string.isRequired,extra:i.node.isRequired,cover:i.string.isRequired,icon:i.string.isRequired,to:i.string.isRequired,sx:i.object.isRequired};const k="/.well-known/service/static/assets/doc-board-bg-DWZHV9Ng.png";function u({board:e,sx:t,...s}){return o.jsx(w,{date:e.createdAt,sx:t,to:e.link,title:e.title,desc:e.desc,cover:o.jsx(r,{sx:{position:"relative",paddingTop:`${9/16*100}%`,border:1,borderColor:"divider",borderRadius:1,overflow:"hidden"},children:o.jsx(r,{component:"img",src:k,alt:"",sx:{position:"absolute",top:0,left:0,width:1}})}),icon:e.icon,...s})}u.propTypes={board:i.object.isRequired,sx:i.object.isRequired};function C(){const e=[{id:"1",title:"Blocklet Platform",desc:"Guide to understand and build on our blocklet platform",icon:"https://www.arcblock.io/favicon.ico",link:"https://www.arcblock.io/docs/blocklet-developer/en/getting-started"},{id:"2",title:"Create Blocklet",desc:"Build blocklet with just one command line.",icon:"https://www.arcblock.io/favicon.ico",link:"https://www.arcblock.io/docs/createblocklet/en/quick-start"},{id:"3",title:"Blocklet Launcher",desc:"Streamlining Blocklet Launching.",icon:"https://www.arcblock.io/docs/uploads/5a4f4716bc8061532a535fe816a9169c.png",link:"https://www.arcblock.io/docs/launcher/en/launcher-welcome"},{id:"4",title:"DID Spaces",desc:"Digital Spaces for Decentralized Identity (DID)",icon:"https://www.arcblock.io/docs/uploads/3a8b142d7c940c57eced71eddba2ff19.png",link:"https://www.arcblock.io/docs/did-spaces/en/did-spaces-getting-started"},{id:"5",title:"DID Wallet",desc:"DID Wallet Support docs",icon:"https://www.arcblock.io/docs/uploads/59ddb28f405ee670428e5fe1ff12d104.png",link:"https://www.arcblock.io/docs/did-wallet/en/get-started"},{id:"6",title:"DID Names",desc:"Naming Service based on NFT and verifiable credentials",icon:"https://www.didnames.io/favicon.ico?imageFilter=resize&w=32",link:"https://www.arcblock.io/docs/did-domain/en/did-domain-faq"},{id:"7",title:"Blockchain",desc:"The ledger for ArcBlock ecosystem",icon:"https://www.arcblock.io/docs/uploads/4a20c152faae0f104ed0815ff3b8b48b.png",link:"https://www.arcblock.io/docs/blockchain/en/blockchain-how-to-guides"},{id:"8",title:"DID Connect",desc:"The open protocol and development kit for connecting users and dapps",icon:"https://www.arcblock.io/docs/uploads/d189118f89b56e9d5b03ad5a0212a4ab.png",link:"https://www.arcblock.io/docs/did-connect/en/developer-guides"}];return o.jsx(c,{children:e.map(t=>o.jsx(u,{board:t},t.id))})}export{C as default};