@abtnode/webapp 1.17.0-beta-20251106-091133-91484a26 → 1.17.0-beta-20251106-103128-74cfc823

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 (187) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-DalMJwhD.js → AdapterDayjs-CIesv5zf.js} +1 -1
  4. package/dist/assets/{Add-BJaOHr9s.js → Add-L4d2JZXR.js} +1 -1
  5. package/dist/assets/ArrowDropDown-BEtLpAqy.js +1 -0
  6. package/dist/assets/{Autocomplete-BtpXOuNf.js → Autocomplete-DaPuGlnI.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CtDi2J-M.js → Breadcrumbs-XhgCVD7u.js} +1 -1
  8. package/dist/assets/{ButtonGroup-DPiY53vd.js → ButtonGroup-B_P6ZZZ4.js} +1 -1
  9. package/dist/assets/{CSSTransition-Bw2ddZTQ.js → CSSTransition-BqlR62pg.js} +1 -1
  10. package/dist/assets/{CallMerge-CGVsnRYH.js → CallMerge-QoO05uTN.js} +1 -1
  11. package/dist/assets/{CardContent-ByDsC3UC.js → CardContent-D6T4mb6B.js} +1 -1
  12. package/dist/assets/{ChevronLeft-gcWuOwnw.js → ChevronLeft-Czwf-z4J.js} +1 -1
  13. package/dist/assets/{ChevronRight-Czhq6YeB.js → ChevronRight-Cx4VKEff.js} +1 -1
  14. package/dist/assets/{Clear-CKva4eBi.js → Clear-CPlMJ3VR.js} +1 -1
  15. package/dist/assets/{DeleteOutline-CpaciU3x.js → DeleteOutline-CDNvFcfW.js} +1 -1
  16. package/dist/assets/{Done-CLU5BqYw.js → Done-Cf4FmWLE.js} +1 -1
  17. package/dist/assets/{Edit-BjbXvYad.js → Edit-yQLD6nby.js} +1 -1
  18. package/dist/assets/{ErrorOutline-CSXVYe6M.js → ErrorOutline-6nm7fp-q.js} +1 -1
  19. package/dist/assets/{FilterList-BJOykCHp.js → FilterList-D2W01s0y.js} +1 -1
  20. package/dist/assets/{Google-SHWTgP_i.js → Google-CoSaBoSQ.js} +1 -1
  21. package/dist/assets/{HelpOutline-EW7qBW6g.js → HelpOutline-BuWMsMpl.js} +1 -1
  22. package/dist/assets/{KeyboardArrowDown-BpcBmZwq.js → KeyboardArrowDown-CYLIdlXV.js} +1 -1
  23. package/dist/assets/{Launch-DjhPb7Xi.js → Launch-CL_DBWI6.js} +1 -1
  24. package/dist/assets/{Link-sU5sIdSA.js → Link-CatXU5ME.js} +1 -1
  25. package/dist/assets/{ListItemButton-BLIqko7v.js → ListItemButton-fh4fKwhr.js} +1 -1
  26. package/dist/assets/{ListSubheader-Dv-UJcm5.js → ListSubheader-Dt6wbgew.js} +1 -1
  27. package/dist/assets/{LoadingButton-BZ1m9RXg.js → LoadingButton-DPchWuCI.js} +1 -1
  28. package/dist/assets/{MoreVert-DDyUOkUj.js → MoreVert-DVzkIKa5.js} +1 -1
  29. package/dist/assets/{OpenInNew-DQYN8Nx1.js → OpenInNew-DJWzmNWd.js} +1 -1
  30. package/dist/assets/{Refresh-B0XmjeJ3.js → Refresh-B5U6uEx9.js} +1 -1
  31. package/dist/assets/{Search-DhSwmkQ1.js → Search--1V2WQVn.js} +1 -1
  32. package/dist/assets/{Stepper-Tm_IonK9.js → Stepper-BEW_7ZGp.js} +1 -1
  33. package/dist/assets/{Switch-C5R2keD_.js → Switch-BYpwkINu.js} +1 -1
  34. package/dist/assets/{TableSearch-ChIn3Aak.js → TableSearch-DOitWCIk.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-XnP8cE92.js → ToggleButtonGroup-Z7ULO3Ae.js} +1 -1
  36. package/dist/assets/{UnfoldMore-C9BUwV8E.js → UnfoldMore-D47PgaQc.js} +1 -1
  37. package/dist/assets/{Verified-CHOSEVtj.js → Verified-BoILBhWS.js} +1 -1
  38. package/dist/assets/{VerifiedUser-Dixnu8-0.js → VerifiedUser-DpVMiyJe.js} +1 -1
  39. package/dist/assets/{ViewList-D7yxj6An.js → ViewList-3zzlu_wY.js} +1 -1
  40. package/dist/assets/{_createAggregator-DfK7n_7j.js → _createAggregator-DHzdxLTK.js} +1 -1
  41. package/dist/assets/{actions-ZeE8iUOI.js → actions-Bi9I3Lkb.js} +1 -1
  42. package/dist/assets/{actions-5Y9-88Ql.js → actions-Di8ZxeUv.js} +1 -1
  43. package/dist/assets/{agreement-CGBcE16y.js → agreement-trvO9udI.js} +1 -1
  44. package/dist/assets/api-D2aETd4a.js +1 -0
  45. package/dist/assets/{appearance-D-m6CFfC.js → appearance-BxpERvbE.js} +1 -1
  46. package/dist/assets/{audit-logs-CWTz8UN2.js → audit-logs-2jMqf5hx.js} +1 -1
  47. package/dist/assets/{base-chart-7GQt2N1M.js → base-chart-1KMt61fm.js} +1 -1
  48. package/dist/assets/{blocklet-CPwKiPX6.js → blocklet-BgOSOFk8.js} +1 -1
  49. package/dist/assets/{chain-DjrPrtvj.js → chain-BAIZGz9Q.js} +1 -1
  50. package/dist/assets/{click-to-copy-DLb2iRRo.js → click-to-copy-Mww6U2O2.js} +1 -1
  51. package/dist/assets/cloneDeep-CLl3dXVV.js +1 -0
  52. package/dist/assets/{collapse-CC77PAqz.js → collapse-Dkho70aO.js} +1 -1
  53. package/dist/assets/{config-navigation-DCTgQWGc.js → config-navigation-CPbVLFUr.js} +3 -3
  54. package/dist/assets/{connect-to-CYP6ST4F.js → connect-to-Csl5lNaA.js} +1 -1
  55. package/dist/assets/{cssMode-BmZ3qBXS.js → cssMode-DPwGt7Ip.js} +1 -1
  56. package/dist/assets/{delete-confirm-DSvSyiD8.js → delete-confirm-DVcd_1B0.js} +1 -1
  57. package/dist/assets/{depsEqual-UJplX9mU.js → depsEqual-BuPlTjct.js} +1 -1
  58. package/dist/assets/{detail-WlrzKwWy.js → detail-P2gwj9OJ.js} +3 -3
  59. package/dist/assets/{domains-CfqnBD4I.js → domains-C84ikKCb.js} +1 -1
  60. package/dist/assets/{download-H2XmdQXI.js → download-RPFAmtCT.js} +1 -1
  61. package/dist/assets/{edit.svg-DVuUM3KB.js → edit.svg-B6Dpe-Rf.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-r_Iqcnsj.js +1 -0
  63. package/dist/assets/engine-D0Jqm-AD.js +1 -0
  64. package/dist/assets/{freemarker2-DvTkFCdy.js → freemarker2-Jekitzo-.js} +1 -1
  65. package/dist/assets/{get-safe-url-BjGmijAx.js → get-safe-url-Dq2_VEWx.js} +1 -1
  66. package/dist/assets/getValidReactChildren-B9Wc-4VY.js +1 -0
  67. package/dist/assets/{graphqlMode-CkxoJJG0.js → graphqlMode-yKBKghX1.js} +2 -2
  68. package/dist/assets/{handlebars-DACautrS.js → handlebars-DALegy4-.js} +1 -1
  69. package/dist/assets/{html-CU4f7WqH.js → html-eDv-OIPV.js} +1 -1
  70. package/dist/assets/{html-title-Ca-JgCsh.js → html-title-BlprY12T.js} +1 -1
  71. package/dist/assets/{htmlMode-DqJjXVio.js → htmlMode-BZEB-mmR.js} +1 -1
  72. package/dist/assets/{iframe-2aVrQOtY.js → iframe-mlrH5a9B.js} +1 -1
  73. package/dist/assets/{index-DDhMAVFM.js → index-1kXNbJd1.js} +1 -1
  74. package/dist/assets/{index-DnM_VmsZ.js → index-3tnyKwBY.js} +1 -1
  75. package/dist/assets/{index-TbMNXftL.js → index-6nmiCyZ8.js} +1 -1
  76. package/dist/assets/{index-fNQPtBuc.js → index-7IBr_VNb.js} +3 -3
  77. package/dist/assets/{index-B6TuxWTr.js → index-BAPzLDmE.js} +1 -1
  78. package/dist/assets/{index-ZGyZk2OZ.js → index-BELVF5yq.js} +9 -9
  79. package/dist/assets/{index-BgYR95Zy.js → index-BHUuXHCx.js} +1 -1
  80. package/dist/assets/{index-Qsq8NN2R.js → index-BXt_mIyN.js} +3 -3
  81. package/dist/assets/{index-BN0b1Gve.js → index-BbaIpunj.js} +1 -1
  82. package/dist/assets/{index-C9qZuSIK.js → index-BcbepXI-.js} +1 -1
  83. package/dist/assets/{index-DmXLaJkF.js → index-BjBRGPzY.js} +1 -1
  84. package/dist/assets/{index-Bi0eEFvN.js → index-BmH4k6cQ.js} +1 -1
  85. package/dist/assets/{index-BohzE0_G.js → index-Br0tbkRw.js} +1 -1
  86. package/dist/assets/{index-jjbeseev.js → index-BrgrYbMQ.js} +2 -2
  87. package/dist/assets/{index-DsEBS9e4.js → index-BrmUJguV.js} +4 -4
  88. package/dist/assets/{index-CTRqTltQ.js → index-C0WIM-Vz.js} +1 -1
  89. package/dist/assets/{index-B2ArczGg.js → index-CDyzduuq.js} +1 -1
  90. package/dist/assets/{index-CiCnkusy.js → index-CEDIdKXe.js} +1 -1
  91. package/dist/assets/{index-hA-y-TpL.js → index-CFoc8aiV.js} +1 -1
  92. package/dist/assets/{index-DqVv93zN.js → index-CTBTcudy.js} +1 -1
  93. package/dist/assets/{index-Bl14cNgY.js → index-CVNQ07mK.js} +1 -1
  94. package/dist/assets/{index-BtreM3NC.js → index-CbAJUnfn.js} +1 -1
  95. package/dist/assets/{index-BRp5NVGY.js → index-Cj-fw8Is.js} +1 -1
  96. package/dist/assets/{index-imazHEHp.js → index-Cn2R2jBC.js} +1 -1
  97. package/dist/assets/{index-BqA6qopG.js → index-Cn4Cs0v8.js} +1 -1
  98. package/dist/assets/{index-CL7r8f7t.js → index-Csg14teI.js} +1 -1
  99. package/dist/assets/{index-DrY1ehLI.js → index-D-cAeMqp.js} +1 -1
  100. package/dist/assets/{index-DED1KN0e.js → index-D0UheAPn.js} +1 -1
  101. package/dist/assets/{index-amAPPuMu.js → index-D3o1Xd_h.js} +1 -1
  102. package/dist/assets/{index-Blu10up0.js → index-D7Dokw2V.js} +1 -1
  103. package/dist/assets/{index-12hGIPsK.js → index-DH4NOQmC.js} +1 -1
  104. package/dist/assets/{index-DiOAy3AN.js → index-DL4v1WVV.js} +1 -1
  105. package/dist/assets/{index-C-_TOagw.js → index-DOseyRNP.js} +1 -1
  106. package/dist/assets/{index-DS4UEAMl.js → index-Dak42aFg.js} +3 -3
  107. package/dist/assets/{index-CppKRVHi.js → index-Dr5nxDjS.js} +1 -1
  108. package/dist/assets/{index-B83_MINe.js → index-Ftkky04w.js} +1 -1
  109. package/dist/assets/{index-DBf8PBYJ.js → index-M3J_PkrJ.js} +3 -3
  110. package/dist/assets/{index-ClN0pNgG.js → index-RPrys1R8.js} +1 -1
  111. package/dist/assets/{index-DOMzSGye.js → index-Tz-RjzsL.js} +1 -1
  112. package/dist/assets/{index-CVfrZI-X.js → index-UcPEVOQN.js} +1 -1
  113. package/dist/assets/index-VJGuG7fG.js +1 -0
  114. package/dist/assets/{index-9LSsWDb7.js → index-VNX5NFbI.js} +1 -1
  115. package/dist/assets/{index-BDQcjWHA.js → index-WMHREIQl.js} +1 -1
  116. package/dist/assets/{index-BiLgRbWh.js → index-ZD-Gh2O6.js} +1 -1
  117. package/dist/assets/{index-29YXcG1w.js → index-dCfrxOmL.js} +1 -1
  118. package/dist/assets/{index-DVNXXPps.js → index-steG33vS.js} +1 -1
  119. package/dist/assets/{index.esm-BANIJT6f.js → index.esm-Dhbg504r.js} +1 -1
  120. package/dist/assets/{install-from-url-D1NOT4Pv.js → install-from-url-pl2ifjP1.js} +1 -1
  121. package/dist/assets/{invitation-O2oACqkb.js → invitation-XFKsIMJU.js} +1 -1
  122. package/dist/assets/{is-path-prefix-equal-O0yEMjd_.js → is-path-prefix-equal-CfyvEYyh.js} +1 -1
  123. package/dist/assets/{item-h3ruRo-H.js → item-O__B-QK7.js} +1 -1
  124. package/dist/assets/{javascript-DcJGEfYw.js → javascript-aM0WQ_ao.js} +1 -1
  125. package/dist/assets/{jsonMode-BHZ8m-ds.js → jsonMode-C4YrSLLv.js} +1 -1
  126. package/dist/assets/{liquid-DWbey1H2.js → liquid-D_rhDNWt.js} +1 -1
  127. package/dist/assets/{list-header-DyI0QsIk.js → list-header-b3IL_I5L.js} +1 -1
  128. package/dist/assets/{lock.svg-S4G8_hPn.js → lock.svg-bfTh_6AS.js} +1 -1
  129. package/dist/assets/{log-CKSZu6u8.js → log-B9FdJi22.js} +1 -1
  130. package/dist/assets/{lottie-react.esm-Bm0zPrgB.js → lottie-react.esm-Cg_Sv7zz.js} +1 -1
  131. package/dist/assets/{mdx-BGp37W7-.js → mdx-DU5ezyiX.js} +1 -1
  132. package/dist/assets/{memory-CWPB8_i3.js → memory-DJvhnk1Q.js} +1 -1
  133. package/dist/assets/{metric-DWK7z3FN.js → metric-D7sR5FhW.js} +1 -1
  134. package/dist/assets/omit-DoGyY1LH.js +1 -0
  135. package/dist/assets/{overview-STHknBJ9.js → overview-dJNiedWN.js} +1 -1
  136. package/dist/assets/{permission-CW0DzNy6.js → permission-bCEiJP2a.js} +1 -1
  137. package/dist/assets/{preference-COoVLSH3.js → preference-CXMkcNMd.js} +3 -3
  138. package/dist/assets/{python-BC35IEku.js → python-DbV_sHWO.js} +1 -1
  139. package/dist/assets/{raf-schd.esm-CIAiFP0D.js → raf-schd.esm-BVXbAgsG.js} +1 -1
  140. package/dist/assets/{razor-B6vnh7Vd.js → razor-CQjGQnW6.js} +1 -1
  141. package/dist/assets/{rotate-session-key-DU1HsGd_.js → rotate-session-key-OwV6DBvd.js} +1 -1
  142. package/dist/assets/{runtime-DUURaTXH.js → runtime-DdByz-fF.js} +1 -1
  143. package/dist/assets/schema-sOSNlloQ.js +1 -0
  144. package/dist/assets/sdk-CeiuAlH4.js +1 -0
  145. package/dist/assets/{service-BJKQP96S.js → service-DHQglA08.js} +1 -1
  146. package/dist/assets/{shorten-label-DA5be4J4.js → shorten-label-BOm4Z1bA.js} +1 -1
  147. package/dist/assets/{simple-select-CLUHLnUl.js → simple-select-CW6Fjvwz.js} +1 -1
  148. package/dist/assets/{spaces-D-45kKRl.js → spaces-62XG2gQV.js} +1 -1
  149. package/dist/assets/{status-CEUgb3XC.js → status-BVaU-H7r.js} +1 -1
  150. package/dist/assets/{status-wht8PoB0.js → status-DWBbl5qZ.js} +1 -1
  151. package/dist/assets/{switch-control-DiEhPK-D.js → switch-control-DMl-PeE3.js} +1 -1
  152. package/dist/assets/{table-icons-OH5JefYD.js → table-icons-DwdxV0fl.js} +1 -1
  153. package/dist/assets/{team-DOKbCs1u.js → team-93DobpI4.js} +1 -1
  154. package/dist/assets/{toLower-L52TDGAI.js → toLower-DWfQt-VS.js} +1 -1
  155. package/dist/assets/toUpper-B1-2A13a.js +1 -0
  156. package/dist/assets/{traffic-8l-nBZJu.js → traffic-h7HyzROl.js} +1 -1
  157. package/dist/assets/{tsMode-rhnC4GCm.js → tsMode-7pxa7wSL.js} +1 -1
  158. package/dist/assets/{typescript-C6f--cpD.js → typescript-CXMvlXQ8.js} +1 -1
  159. package/dist/assets/{url-evaluation-DkReRdN8.js → url-evaluation-DhmHBren.js} +1 -1
  160. package/dist/assets/{url-join-jtosGTU1.js → url-join-hpgPax_3.js} +1 -1
  161. package/dist/assets/{use-mobile-DDVf02JR.js → use-mobile-DbyCxVnw.js} +1 -1
  162. package/dist/assets/{use-mobile-CIJO5Cwx.js → use-mobile-NtnsxRwK.js} +1 -1
  163. package/dist/assets/{useAsync-CDB8iS9O.js → useAsync-D2t9nlPY.js} +1 -1
  164. package/dist/assets/{useAsyncRetry-D1fZm-7x.js → useAsyncRetry-CMr3x1C3.js} +1 -1
  165. package/dist/assets/{useLocalStorage-g990sECo.js → useLocalStorage-WwZ4k9_O.js} +1 -1
  166. package/dist/assets/{useThemeProps-CWahcrog.js → useThemeProps-nx2SX4I_.js} +1 -1
  167. package/dist/assets/{util-BlJo7yLZ.js → util-CrOAUthw.js} +1 -1
  168. package/dist/assets/{wait-container-Cq3P4_HW.js → wait-container-sZo9ImHf.js} +1 -1
  169. package/dist/assets/{without-wallet-BzSI0Ui2.js → without-wallet-C3Yj9Mru.js} +1 -1
  170. package/dist/assets/wrap-locale-CHT3wx1u.js +1 -0
  171. package/dist/assets/{xml-BWOkBtfO.js → xml-BXK6EpeV.js} +1 -1
  172. package/dist/assets/{yaml-B2eMN024.js → yaml-4XJpZ9ba.js} +1 -1
  173. package/dist/index.html +1 -1
  174. package/dist/service-worker.js +1 -1
  175. package/package.json +1 -1
  176. package/dist/assets/ArrowDropDown-BvfsnZmc.js +0 -1
  177. package/dist/assets/api-DSc3pJRw.js +0 -1
  178. package/dist/assets/cloneDeep-DRoc_4OI.js +0 -1
  179. package/dist/assets/emotion-cache.browser.esm-CHmknBa-.js +0 -1
  180. package/dist/assets/engine-CIf2Bmdn.js +0 -1
  181. package/dist/assets/getValidReactChildren-DJbrx6gC.js +0 -1
  182. package/dist/assets/index-CcyWzATh.js +0 -1
  183. package/dist/assets/omit-3k34emjP.js +0 -1
  184. package/dist/assets/schema-CqOuaGVk.js +0 -1
  185. package/dist/assets/sdk-BQM2VdGY.js +0 -1
  186. package/dist/assets/toUpper-s5XxN3Cm.js +0 -1
  187. package/dist/assets/wrap-locale-9aJSq-p0.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as p,p as ye,j as e,C as H,L as Ce,s as W,o as T,u as ce,V as Q,n as ve,q as we,$ as Be,D as Se,T as P,t as Z,v as q,w as Te,x as Le,y as Ae,z as Ie,A as me,H as M,B as De,d as Ee,f as Fe,E as Pe,F as Re,i as D,I as ee,J as te,K as S,M as Ne,N as _,O as se,P as _e,S as oe,Q as le,R as Ue,U as ne,X as Me,Y as We}from"./index-DsEBS9e4.js";import{u as $e}from"./useLocalStorage-g990sECo.js";import{g as Oe,H as ze}from"./index-29YXcG1w.js";import{y as qe}from"./index-Bl14cNgY.js";import{W as Ve,B as E}from"./status-wht8PoB0.js";import{D as He,u as Qe,B as re}from"./actions-5Y9-88Ql.js";import{I as Ke,B as Xe}from"./install-from-url-D1NOT4Pv.js";import{u as de}from"./url-evaluation-DkReRdN8.js";import{L as Je}from"./Launch-DjhPb7Xi.js";import{A as Ye}from"./Add-BJaOHr9s.js";import{v as F}from"./index-DiOAy3AN.js";import{s as ae}from"./schema-CqOuaGVk.js";import{P as Ge}from"./permission-CW0DzNy6.js";import"./FilterList-BJOykCHp.js";import"./CSSTransition-Bw2ddZTQ.js";import"./emotion-cache.browser.esm-CHmknBa-.js";import"./index-BtreM3NC.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-UJplX9mU.js";import"./TableSearch-ChIn3Aak.js";import"./Search-DhSwmkQ1.js";import"./Clear-CKva4eBi.js";import"./MoreVert-DDyUOkUj.js";import"./get-safe-url-BjGmijAx.js";import"./ButtonGroup-DPiY53vd.js";import"./getValidReactChildren-DJbrx6gC.js";import"./without-wallet-BzSI0Ui2.js";import"./index-CL7r8f7t.js";import"./cloneDeep-DRoc_4OI.js";import"./index-CiCnkusy.js";import"./Autocomplete-BtpXOuNf.js";import"./ListSubheader-Dv-UJcm5.js";import"./ListItemButton-BLIqko7v.js";import"./Stepper-Tm_IonK9.js";function V({blocklet:j,skipAccessibilityCheck:f=!1,...c}){const{t:r}=p.useContext(ye),{urls:C,loading:n,recommendedUrl:h}=de(j);if(n&&!f)return e.jsx(H,{size:12,...c});const k=f?C[0]:h;return k?e.jsx(et,{...c,children:e.jsx(Ze,{children:e.jsxs(Ce,{href:k,target:"_blank",className:"blocklet-interface",underline:"hover",children:[r("common.visit"),e.jsx(Je,{fontSize:"12",sx:{marginLeft:.5}})]})})}):r("blocklet.router.noAccessibleUrl")}const Ze=W.div`
1
+ import{r as p,p as ye,j as e,C as H,L as Ce,s as W,o as T,u as ce,V as Q,n as ve,q as we,$ as Be,D as Se,T as P,t as Z,v as q,w as Te,x as Le,y as Ae,z as Ie,A as me,H as M,B as De,d as Ee,f as Fe,E as Pe,F as Re,i as D,I as ee,J as te,K as S,M as Ne,N as _,O as se,P as _e,S as oe,Q as le,R as Ue,U as ne,X as Me,Y as We}from"./index-BrmUJguV.js";import{u as $e}from"./useLocalStorage-WwZ4k9_O.js";import{g as Oe,H as ze}from"./index-dCfrxOmL.js";import{y as qe}from"./index-CVNQ07mK.js";import{W as Ve,B as E}from"./status-DWBbl5qZ.js";import{D as He,u as Qe,B as re}from"./actions-Di8ZxeUv.js";import{I as Ke,B as Xe}from"./install-from-url-pl2ifjP1.js";import{u as de}from"./url-evaluation-DhmHBren.js";import{L as Je}from"./Launch-CL_DBWI6.js";import{A as Ye}from"./Add-L4d2JZXR.js";import{v as F}from"./index-DL4v1WVV.js";import{s as ae}from"./schema-sOSNlloQ.js";import{P as Ge}from"./permission-bCEiJP2a.js";import"./FilterList-D2W01s0y.js";import"./CSSTransition-BqlR62pg.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./index-CbAJUnfn.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BuPlTjct.js";import"./TableSearch-DOitWCIk.js";import"./Search--1V2WQVn.js";import"./Clear-CPlMJ3VR.js";import"./MoreVert-DVzkIKa5.js";import"./get-safe-url-Dq2_VEWx.js";import"./ButtonGroup-B_P6ZZZ4.js";import"./getValidReactChildren-B9Wc-4VY.js";import"./without-wallet-C3Yj9Mru.js";import"./index-Csg14teI.js";import"./cloneDeep-CLl3dXVV.js";import"./index-CEDIdKXe.js";import"./Autocomplete-DaPuGlnI.js";import"./ListSubheader-Dt6wbgew.js";import"./ListItemButton-fh4fKwhr.js";import"./Stepper-BEW_7ZGp.js";function V({blocklet:j,skipAccessibilityCheck:f=!1,...c}){const{t:r}=p.useContext(ye),{urls:C,loading:n,recommendedUrl:h}=de(j);if(n&&!f)return e.jsx(H,{size:12,...c});const k=f?C[0]:h;return k?e.jsx(et,{...c,children:e.jsx(Ze,{children:e.jsxs(Ce,{href:k,target:"_blank",className:"blocklet-interface",underline:"hover",children:[r("common.visit"),e.jsx(Je,{fontSize:"12",sx:{marginLeft:.5}})]})})}):r("blocklet.router.noAccessibleUrl")}const Ze=W.div`
2
2
  display: flex;
3
3
  margin: 4px 0;
4
4
  `,et=W.div`
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DnM_VmsZ.js","./index-DsEBS9e4.js","./index-DGkT7afN.css"])))=>i.map(i=>d[i]);
2
- import{r as d,cw as z,c4 as U,cx as F,cy as X,aF as B,j as t,s as E,o as j,E as H,aP as V,p as G,cz as O,w as D,K as p,cA as q,W as J,v as I,b7 as K,T as L,cB as M,L as Q,cC as Y,bI as Z,cD as ee,cE as te,u as se,x as ae,bA as oe,aq as ne,ae as re}from"./index-DsEBS9e4.js";import{V as ie}from"./ViewList-D7yxj6An.js";import{D as ce}from"./Done-CLU5BqYw.js";import{N as le}from"./index-C9qZuSIK.js";import{w as pe}from"./wrap-locale-9aJSq-p0.js";import{g as de}from"./get-safe-url-BjGmijAx.js";import{S as ue,a as me,b as he}from"./Stepper-Tm_IonK9.js";import"./emotion-cache.browser.esm-CHmknBa-.js";import"./index-CVfrZI-X.js";var P=function(e){if(!e)return 0;var r=X(e).valueOf()-Date.now();return r<0?0:r},fe=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},xe=function(e){e===void 0&&(e={});var r=e||{},l=r.leftTime,i=r.targetDate,u=r.interval,b=u===void 0?1e3:u,x=r.onEnd,g=d.useMemo(function(){return z(l)&&l>0?Date.now()+l:void 0},[l]),a="leftTime"in e?g:i,h=U(d.useState(function(){return P(a)}),2),f=h[0],m=h[1],o=F(x);d.useEffect(function(){if(!a){m(0);return}m(P(a));var v=setInterval(function(){var n,c=P(a);m(c),c===0&&(clearInterval(v),(n=o.current)===null||n===void 0||n.call(o))},b);return function(){return clearInterval(v)}},[a,b]);var w=d.useMemo(function(){return fe(f)},[f]);return[f,w]};const ge=B(t.jsx("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}));function _({list:e=[],width:r=300,height:l=400,cardSpace:i=40,onSelect:u=()=>{},defaultIndex:b=0}){const[x,g]=d.useState(0),[a,h]=d.useState(0),f=d.useRef(null),m=n=>{if(n<0||n>e.length-1)return;g(n);const c=f.current.clientWidth;h(n*(r+i)-(c-r)/2+i*.5),u(n)};d.useEffect(()=>{m(b);const n=c=>c.preventDefault();f.current.addEventListener("touchmove",n,{passive:!1})},[]);let o;const w=n=>{o=n.touches[0].clientX},v=n=>{const c=n.changedTouches[0],k=o-c.clientX;Math.abs(k)>60&&(k>0?m(x+1):m(x-1))};return t.jsx(ve,{ref:f,onTouchStart:w,onTouchEnd:v,children:t.jsx("div",{className:"card-container",style:{transform:`translate(${-a}px, 0)`},children:e.map((n,c)=>t.jsx("div",{className:`card-item ${c===x?"selected":""}`,style:{width:r,height:l,margin:i/2},onClick:()=>m(c),children:n.display?t.jsx("div",{className:"card-content",children:t.jsx(le,{data:n.display,style:{width:"100%",height:"100%"}})}):t.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const ve=E.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-3tnyKwBY.js","./index-BrmUJguV.js","./index-DGkT7afN.css"])))=>i.map(i=>d[i]);
2
+ import{r as d,cw as z,c4 as U,cx as F,cy as X,aF as B,j as t,s as E,o as j,E as H,aP as V,p as G,cz as O,w as D,K as p,cA as q,W as J,v as I,b7 as K,T as L,cB as M,L as Q,cC as Y,bI as Z,cD as ee,cE as te,u as se,x as ae,bA as oe,aq as ne,ae as re}from"./index-BrmUJguV.js";import{V as ie}from"./ViewList-3zzlu_wY.js";import{D as ce}from"./Done-Cf4FmWLE.js";import{N as le}from"./index-BcbepXI-.js";import{w as pe}from"./wrap-locale-CHT3wx1u.js";import{g as de}from"./get-safe-url-Dq2_VEWx.js";import{S as ue,a as me,b as he}from"./Stepper-BEW_7ZGp.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./index-UcPEVOQN.js";var P=function(e){if(!e)return 0;var r=X(e).valueOf()-Date.now();return r<0?0:r},fe=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},xe=function(e){e===void 0&&(e={});var r=e||{},l=r.leftTime,i=r.targetDate,u=r.interval,b=u===void 0?1e3:u,x=r.onEnd,g=d.useMemo(function(){return z(l)&&l>0?Date.now()+l:void 0},[l]),a="leftTime"in e?g:i,h=U(d.useState(function(){return P(a)}),2),f=h[0],m=h[1],o=F(x);d.useEffect(function(){if(!a){m(0);return}m(P(a));var v=setInterval(function(){var n,c=P(a);m(c),c===0&&(clearInterval(v),(n=o.current)===null||n===void 0||n.call(o))},b);return function(){return clearInterval(v)}},[a,b]);var w=d.useMemo(function(){return fe(f)},[f]);return[f,w]};const ge=B(t.jsx("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}));function _({list:e=[],width:r=300,height:l=400,cardSpace:i=40,onSelect:u=()=>{},defaultIndex:b=0}){const[x,g]=d.useState(0),[a,h]=d.useState(0),f=d.useRef(null),m=n=>{if(n<0||n>e.length-1)return;g(n);const c=f.current.clientWidth;h(n*(r+i)-(c-r)/2+i*.5),u(n)};d.useEffect(()=>{m(b);const n=c=>c.preventDefault();f.current.addEventListener("touchmove",n,{passive:!1})},[]);let o;const w=n=>{o=n.touches[0].clientX},v=n=>{const c=n.changedTouches[0],k=o-c.clientX;Math.abs(k)>60&&(k>0?m(x+1):m(x-1))};return t.jsx(ve,{ref:f,onTouchStart:w,onTouchEnd:v,children:t.jsx("div",{className:"card-container",style:{transform:`translate(${-a}px, 0)`},children:e.map((n,c)=>t.jsx("div",{className:`card-item ${c===x?"selected":""}`,style:{width:r,height:l,margin:i/2},onClick:()=>m(c),children:n.display?t.jsx("div",{className:"card-content",children:t.jsx(le,{data:n.display,style:{width:"100%",height:"100%"}})}):t.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const ve=E.div`
3
3
  overflow: hidden;
4
4
  mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
5
5
  overflow: hidden;
@@ -33,7 +33,7 @@ import{r as d,cw as z,c4 as U,cx as F,cy as X,aF as B,j as t,s as E,o as j,E as
33
33
  }
34
34
  }
35
35
  }
36
- `;_.propTypes={list:j.array,width:j.number,height:j.number,cardSpace:j.number,onSelect:j.func,defaultIndex:j.number};function be({icon:e,active:r,completed:l}){const i={1:t.jsx(ie,{className:"step-icon"}),2:t.jsx(ge,{className:"step-icon"}),3:t.jsx(ce,{className:"step-icon"})},u=["step-icon-w"];return r&&u.push("step-icon-w--active"),l&&u.push("step-icon-w--completed"),t.jsx("div",{className:u.join(" "),children:i[String(e)]})}function we({SessionContext:e,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:u,teamDid:b}){const{api:x}=d.useContext(e),g=H(s=>s.breakpoints.down("sm")),a=V({user:null,passport:null,success:!1,activeStep:0}),h=d.useRef({sessionToken:"",refreshToken:""}),{setPassportId:f,clearPassportId:m}=Y(),{t:o,locale:w}=d.useContext(G),{wallet:v}=O(),[n,c]=d.useState(0),{searchParams:k}=new URL(window.location.href),S=()=>{a.activeStep++},$=s=>{a.user=s.user},W=()=>{S()},A=(s,y)=>{s?.passportId&&f(s.passportId),s?.sessionToken&&(h.current.sessionToken=y(s.sessionToken)),s?.refreshToken&&(h.current.refreshToken=y(s.refreshToken)),a.success=!0,S()},T=async()=>{if(v&&M()){Z(()=>import("./index-DnM_VmsZ.js").then(y=>y.i),__vite__mapDeps([0,1,2]),import.meta.url).then(y=>{y.call("arcClosePage")});return}ee(u)&&u({sessionToken:h.current.sessionToken,refreshToken:h.current.refreshToken});const s=k.get("redirect");if(s){window.location.replace(de(s));return}m(),window.location.replace("/")},R=s=>{a.passport=s.target.value},[C]=xe({leftTime:n,onEnd:()=>{T()}}),N=[{label:o("lostPassport.recoverPassport"),content:()=>{if(!a.user){const s=k.get("scope")||"passport";return t.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:$,locale:w,messages:{title:o("lostPassport.recoverDialog.title"),scan:o("lostPassport.recoverDialog.scan"),confirm:o("lostPassport.recoverDialog.confirm"),success:o("lostPassport.recoverDialog.success")},extraParams:{scope:s}})}return t.jsxs(p,{className:"select-passport",children:[t.jsxs(p,{className:"user-info",sx:{my:1,display:"flex",alignItems:"center"},children:[t.jsx(q,{src:a.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),t.jsxs(p,{children:[t.jsx(p,{className:"name",children:a.user.fullName}),t.jsx(p,{className:"did",sx:{mt:1},children:t.jsx(J,{responsive:!g,compact:g,did:a.user.did})})]})]}),t.jsx(p,{children:t.jsx(_,{width:g?180:230,height:g?240:306,cardSpace:24,list:a.user.passportTypes.map(s=>({src:l({scope:s.scope,role:s.role,title:s.scope==="kyc"?s.name:s.title,issuer:s.issuer.name,issuerDid:s.issuer.id,ownerDid:a.user.did,ownerName:a.user.fullName,ownerAvatarUrl:a.user.avatar,preferredColor:i||"auto",extra:s.scope==="kyc"?{key:"Email",value:s.name}:void 0}),name:s.title,id:s.id,display:s.display})),onSelect:s=>R({target:{value:a.user.passportTypes[s].id}}),defaultIndex:0})}),t.jsx(p,{sx:{textAlign:"center"},children:t.jsx(I,{variant:"contained",color:"primary",onClick:()=>W(),disabled:!a.passport,children:o("common.next")})})]})}},{label:o("lostPassport.receivePassport"),content:()=>{const s={receiverDid:a.user.did,passportId:a.passport,teamDid:b||window?.blocklet?.did};return t.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:A,forceConnected:!1,locale:w,messages:{title:`${o("lostPassport.receiveDialog.title")}`,scan:o("lostPassport.receiveDialog.scan"),confirm:o("lostPassport.receiveDialog.confirm"),success:o("lostPassport.receiveDialog.success")},extraParams:s})}},{label:o("common.complete"),content:()=>(n===0&&c(3e3),t.jsxs(p,{sx:{textAlign:"center"},children:[t.jsx(p,{sx:{mb:3,color:"success.main"},children:t.jsx(K,{style:{fontSize:60}})}),t.jsx(L,{component:"p",variant:"body1",className:"subheader",children:o("issuePassport.dialog.success")}),t.jsx(L,{component:"p",variant:"body2",color:"gray",children:v&&M()?o("issuePassport.dialog.autoClose",{seconds:Math.round(C/1e3)}):o("issuePassport.dialog.autoJump",{seconds:Math.round(C/1e3)})}),t.jsx(I,{style:{marginTop:40},variant:"contained",color:"primary",onClick:T,children:o("issuePassport.dialog.loginWithPassport")})]}))}];return t.jsx(ye,{children:t.jsxs(p,{className:"stepper",children:[t.jsx(ue,{className:"stepper-progress",alternativeLabel:!0,activeStep:a.activeStep,children:N.map(({label:s})=>t.jsx(me,{children:t.jsx(he,{slots:{stepIcon:be},children:s})},s))}),t.jsx(p,{className:"stepper-content",children:N[a.activeStep].content()}),!a.success&&t.jsx(p,{sx:{textAlign:"center",fontSize:12},children:t.jsx(Q,{href:"/",sx:{color:"#4598FA",textDecoration:"none"},children:o("lostPassport.return")})})]})})}const ye=E(te)`
36
+ `;_.propTypes={list:j.array,width:j.number,height:j.number,cardSpace:j.number,onSelect:j.func,defaultIndex:j.number};function be({icon:e,active:r,completed:l}){const i={1:t.jsx(ie,{className:"step-icon"}),2:t.jsx(ge,{className:"step-icon"}),3:t.jsx(ce,{className:"step-icon"})},u=["step-icon-w"];return r&&u.push("step-icon-w--active"),l&&u.push("step-icon-w--completed"),t.jsx("div",{className:u.join(" "),children:i[String(e)]})}function we({SessionContext:e,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:u,teamDid:b}){const{api:x}=d.useContext(e),g=H(s=>s.breakpoints.down("sm")),a=V({user:null,passport:null,success:!1,activeStep:0}),h=d.useRef({sessionToken:"",refreshToken:""}),{setPassportId:f,clearPassportId:m}=Y(),{t:o,locale:w}=d.useContext(G),{wallet:v}=O(),[n,c]=d.useState(0),{searchParams:k}=new URL(window.location.href),S=()=>{a.activeStep++},$=s=>{a.user=s.user},W=()=>{S()},A=(s,y)=>{s?.passportId&&f(s.passportId),s?.sessionToken&&(h.current.sessionToken=y(s.sessionToken)),s?.refreshToken&&(h.current.refreshToken=y(s.refreshToken)),a.success=!0,S()},T=async()=>{if(v&&M()){Z(()=>import("./index-3tnyKwBY.js").then(y=>y.i),__vite__mapDeps([0,1,2]),import.meta.url).then(y=>{y.call("arcClosePage")});return}ee(u)&&u({sessionToken:h.current.sessionToken,refreshToken:h.current.refreshToken});const s=k.get("redirect");if(s){window.location.replace(de(s));return}m(),window.location.replace("/")},R=s=>{a.passport=s.target.value},[C]=xe({leftTime:n,onEnd:()=>{T()}}),N=[{label:o("lostPassport.recoverPassport"),content:()=>{if(!a.user){const s=k.get("scope")||"passport";return t.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:$,locale:w,messages:{title:o("lostPassport.recoverDialog.title"),scan:o("lostPassport.recoverDialog.scan"),confirm:o("lostPassport.recoverDialog.confirm"),success:o("lostPassport.recoverDialog.success")},extraParams:{scope:s}})}return t.jsxs(p,{className:"select-passport",children:[t.jsxs(p,{className:"user-info",sx:{my:1,display:"flex",alignItems:"center"},children:[t.jsx(q,{src:a.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),t.jsxs(p,{children:[t.jsx(p,{className:"name",children:a.user.fullName}),t.jsx(p,{className:"did",sx:{mt:1},children:t.jsx(J,{responsive:!g,compact:g,did:a.user.did})})]})]}),t.jsx(p,{children:t.jsx(_,{width:g?180:230,height:g?240:306,cardSpace:24,list:a.user.passportTypes.map(s=>({src:l({scope:s.scope,role:s.role,title:s.scope==="kyc"?s.name:s.title,issuer:s.issuer.name,issuerDid:s.issuer.id,ownerDid:a.user.did,ownerName:a.user.fullName,ownerAvatarUrl:a.user.avatar,preferredColor:i||"auto",extra:s.scope==="kyc"?{key:"Email",value:s.name}:void 0}),name:s.title,id:s.id,display:s.display})),onSelect:s=>R({target:{value:a.user.passportTypes[s].id}}),defaultIndex:0})}),t.jsx(p,{sx:{textAlign:"center"},children:t.jsx(I,{variant:"contained",color:"primary",onClick:()=>W(),disabled:!a.passport,children:o("common.next")})})]})}},{label:o("lostPassport.receivePassport"),content:()=>{const s={receiverDid:a.user.did,passportId:a.passport,teamDid:b||window?.blocklet?.did};return t.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:A,forceConnected:!1,locale:w,messages:{title:`${o("lostPassport.receiveDialog.title")}`,scan:o("lostPassport.receiveDialog.scan"),confirm:o("lostPassport.receiveDialog.confirm"),success:o("lostPassport.receiveDialog.success")},extraParams:s})}},{label:o("common.complete"),content:()=>(n===0&&c(3e3),t.jsxs(p,{sx:{textAlign:"center"},children:[t.jsx(p,{sx:{mb:3,color:"success.main"},children:t.jsx(K,{style:{fontSize:60}})}),t.jsx(L,{component:"p",variant:"body1",className:"subheader",children:o("issuePassport.dialog.success")}),t.jsx(L,{component:"p",variant:"body2",color:"gray",children:v&&M()?o("issuePassport.dialog.autoClose",{seconds:Math.round(C/1e3)}):o("issuePassport.dialog.autoJump",{seconds:Math.round(C/1e3)})}),t.jsx(I,{style:{marginTop:40},variant:"contained",color:"primary",onClick:T,children:o("issuePassport.dialog.loginWithPassport")})]}))}];return t.jsx(ye,{children:t.jsxs(p,{className:"stepper",children:[t.jsx(ue,{className:"stepper-progress",alternativeLabel:!0,activeStep:a.activeStep,children:N.map(({label:s})=>t.jsx(me,{children:t.jsx(he,{slots:{stepIcon:be},children:s})},s))}),t.jsx(p,{className:"stepper-content",children:N[a.activeStep].content()}),!a.success&&t.jsx(p,{sx:{textAlign:"center",fontSize:12},children:t.jsx(Q,{href:"/",sx:{color:"#4598FA",textDecoration:"none"},children:o("lostPassport.return")})})]})})}const ye=E(te)`
37
37
  padding-top: 46px;
38
38
  padding-bottom: 46px;
39
39
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{aF as createSvgIcon,j as jsxRuntimeExports,r as reactExports$1,o,bd as getDefaultExportFromCjs,E as useMediaQuery,s as styled,dp as Skeleton,cT as M$1,Z as CheckIcon,ay as Tooltip,dI as Button,T as Typography,K as Box,C as CircularProgress,f as useTheme,dC as isObject,f0 as mergeThemeOptions,f1 as StyledEngineProvider,f2 as ThemeProvider,f3 as ThemeProvider$1,f4 as s,Y as o$1,b8 as styled$1,f5 as CloseIcon,cI as Buffer,be as U,bI as __vitePreload,dH as noop,br as l$2}from"./index-DsEBS9e4.js";import{j as joinUrl}from"./url-join-jtosGTU1.js";const l$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"})),d$2=createSvgIcon([jsxRuntimeExports.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),jsxRuntimeExports.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),k$2=reactExports$1.createContext(),{Provider:w$3}=k$2,d$1=(C,F,V=window.location.pathname.replace(/\/$/,"/"))=>C?F?C===V:new RegExp(C).test(V):!1;function P({children:C,steps:F,mode:V="history"}){const[D,B]=reactExports$1.useState("");!D&&F.length&&B(F[0].key);const O=F.map(X=>X.children?[{key:X.key,hasChild:!0},X.children.map(at=>({parentKey:X.key,key:at.key}))]:{key:X.key}).flat(1/0),j=O.filter(X=>!X.hasChild),H=X=>{let at;const rt=O.findIndex(ft=>ft.key===D?(at=ft.parentKey,!0):!1);if(at===X)return"current";const tt=O.findIndex(ft=>ft.key===X);if(tt!==-1){if(tt===rt)return"current";if(tt<rt)return"before"}return"after"};function G(X){B(X)}function K(X){if(typeof X=="function"){const at=X(j.findIndex(rt=>rt.key===D));B(j[at].key)}else B(j[X].key)}const it=j.findIndex(X=>X.key===D);reactExports$1.useEffect(()=>{if(V==="history"){let X="";F.some(at=>at.children&&at.children.length?at.children.some(rt=>d$1(rt.path,rt.exact)?(X=rt.key,!0):!1):d$1(at.path,at.exact)?(X=at.key,!0):!1),X&&B(X)}return()=>{}},[F,V]);const ot={steps:F,totalStepsCount:j.length,getStepStatus:H,setActiveStepByKey:G,setActiveStepByIndex:K,activeStep:it,canBackToStep:X=>V==="memory"&&it!==0&&X<it};return jsxRuntimeExports.jsx(w$3,{value:ot,children:C})}function T$1(){return reactExports$1.use(k$2)}P.propTypes={children:o.any.isRequired,steps:o.array.isRequired,mode:o.string};var lib,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var C=Object.prototype.hasOwnProperty,F=Object.prototype.toString;function V(D){if(D==null)return!0;if(typeof D=="boolean")return!1;if(typeof D=="number")return D===0;if(typeof D=="string"||typeof D=="function"||Array.isArray(D))return D.length===0;if(D instanceof Error)return D.message==="";if(D.toString==F)switch(D.toString()){case"[object File]":case"[object Map]":case"[object Set]":return D.size===0;case"[object Object]":{for(var B in D)if(C.call(D,B))return!1;return!0}}return!1}return lib=V,lib}var libExports=requireLib();const k$1=getDefaultExportFromCjs(libExports),S=""+new URL("blocklet-default-logo-Bspnu_ws.png",import.meta.url).href,t$1={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},a$1=C=>t$1[C]?t$1[C]:t$1.en,i=C=>C==="zh"?"启动":"Launching",g$2=C=>C?.title||C?.name||"";function T({blockletMeta:C={},subTitle:F="",logoUrl:V="",locale:D="",navLogo:B="",loading:O=!1}){const j=useMediaQuery(ot=>ot.breakpoints.down("md")),H=j?18:48,G=reactExports$1.useRef(null),[K,it]=reactExports$1.useState("");return reactExports$1.useEffect(()=>{G.current&&G.current.offsetHeight>34&&(K===""?it("middle"):K==="middle"&&it("small"))},[K]),jsxRuntimeExports.jsxs(R,{className:K==="small"?"center-mode":"",children:[j?jsxRuntimeExports.jsx("div",{className:"app-icon",children:B}):jsxRuntimeExports.jsxs("div",{className:"app-icon",children:[O&&jsxRuntimeExports.jsx(I,{blockletSize:H,isMobile:j}),!O&&jsxRuntimeExports.jsx(u$1,{blockletSize:H,logoUrl:V})]}),jsxRuntimeExports.jsxs("div",{className:"header-title",children:[j&&F&&jsxRuntimeExports.jsx("div",{className:"header-title-sub",children:F}),jsxRuntimeExports.jsxs("div",{className:"app-name-content",children:[!j&&jsxRuntimeExports.jsx("div",{className:"launching-context",children:F||i(D)}),jsxRuntimeExports.jsx("div",{className:`header-title-name ${K==="middle"||K==="small"?"middle-size":""}`,ref:G,children:jsxRuntimeExports.jsx(w$2,{logoUrl:V,isMobile:j,blockletMeta:C,blockletSize:H,loading:O})})]})]})]})}T.propTypes={blockletMeta:o.object,subTitle:o.any,logoUrl:o.string,locale:o.string,navLogo:o.any,loading:o.bool};function I({blockletSize:C,isMobile:F}){return F?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:C,height:C})}function u$1({logoUrl:C,blockletSize:F}){return jsxRuntimeExports.jsx(M$1,{width:F,height:F,src:C,alt:"blocklet icon",fallback:S,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${C}`)}function w$2({isMobile:C,logoUrl:F,blockletMeta:V={},blockletSize:D,loading:B}){const O=g$2(V);return B?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):k$1(V)?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):C?jsxRuntimeExports.jsxs(L$1,{children:[jsxRuntimeExports.jsx(u$1,{blockletSize:D,logoUrl:F}),jsxRuntimeExports.jsx("span",{className:"ellipsis-title",children:g$2(V)})]}):jsxRuntimeExports.jsx(E,{className:"app-link",target:"_blank",href:joinUrl(V?.registryUrl||"",`/blocklets/${V?.did}`),title:O,children:O})}const L$1=styled.div`
1
+ import{aF as createSvgIcon,j as jsxRuntimeExports,r as reactExports$1,o,bd as getDefaultExportFromCjs,E as useMediaQuery,s as styled,dp as Skeleton,cT as M$1,Z as CheckIcon,ay as Tooltip,dI as Button,T as Typography,K as Box,C as CircularProgress,f as useTheme,dC as isObject,f0 as mergeThemeOptions,f1 as StyledEngineProvider,f2 as ThemeProvider,f3 as ThemeProvider$1,f4 as s,Y as o$1,b8 as styled$1,f5 as CloseIcon,cI as Buffer,be as U,bI as __vitePreload,dH as noop,br as l$2}from"./index-BrmUJguV.js";import{j as joinUrl}from"./url-join-hpgPax_3.js";const l$1=createSvgIcon(jsxRuntimeExports.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"})),d$2=createSvgIcon([jsxRuntimeExports.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),jsxRuntimeExports.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),k$2=reactExports$1.createContext(),{Provider:w$3}=k$2,d$1=(C,F,V=window.location.pathname.replace(/\/$/,"/"))=>C?F?C===V:new RegExp(C).test(V):!1;function P({children:C,steps:F,mode:V="history"}){const[D,B]=reactExports$1.useState("");!D&&F.length&&B(F[0].key);const O=F.map(X=>X.children?[{key:X.key,hasChild:!0},X.children.map(at=>({parentKey:X.key,key:at.key}))]:{key:X.key}).flat(1/0),j=O.filter(X=>!X.hasChild),H=X=>{let at;const rt=O.findIndex(ft=>ft.key===D?(at=ft.parentKey,!0):!1);if(at===X)return"current";const tt=O.findIndex(ft=>ft.key===X);if(tt!==-1){if(tt===rt)return"current";if(tt<rt)return"before"}return"after"};function G(X){B(X)}function K(X){if(typeof X=="function"){const at=X(j.findIndex(rt=>rt.key===D));B(j[at].key)}else B(j[X].key)}const it=j.findIndex(X=>X.key===D);reactExports$1.useEffect(()=>{if(V==="history"){let X="";F.some(at=>at.children&&at.children.length?at.children.some(rt=>d$1(rt.path,rt.exact)?(X=rt.key,!0):!1):d$1(at.path,at.exact)?(X=at.key,!0):!1),X&&B(X)}return()=>{}},[F,V]);const ot={steps:F,totalStepsCount:j.length,getStepStatus:H,setActiveStepByKey:G,setActiveStepByIndex:K,activeStep:it,canBackToStep:X=>V==="memory"&&it!==0&&X<it};return jsxRuntimeExports.jsx(w$3,{value:ot,children:C})}function T$1(){return reactExports$1.use(k$2)}P.propTypes={children:o.any.isRequired,steps:o.array.isRequired,mode:o.string};var lib,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var C=Object.prototype.hasOwnProperty,F=Object.prototype.toString;function V(D){if(D==null)return!0;if(typeof D=="boolean")return!1;if(typeof D=="number")return D===0;if(typeof D=="string"||typeof D=="function"||Array.isArray(D))return D.length===0;if(D instanceof Error)return D.message==="";if(D.toString==F)switch(D.toString()){case"[object File]":case"[object Map]":case"[object Set]":return D.size===0;case"[object Object]":{for(var B in D)if(C.call(D,B))return!1;return!0}}return!1}return lib=V,lib}var libExports=requireLib();const k$1=getDefaultExportFromCjs(libExports),S=""+new URL("blocklet-default-logo-Bspnu_ws.png",import.meta.url).href,t$1={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},a$1=C=>t$1[C]?t$1[C]:t$1.en,i=C=>C==="zh"?"启动":"Launching",g$2=C=>C?.title||C?.name||"";function T({blockletMeta:C={},subTitle:F="",logoUrl:V="",locale:D="",navLogo:B="",loading:O=!1}){const j=useMediaQuery(ot=>ot.breakpoints.down("md")),H=j?18:48,G=reactExports$1.useRef(null),[K,it]=reactExports$1.useState("");return reactExports$1.useEffect(()=>{G.current&&G.current.offsetHeight>34&&(K===""?it("middle"):K==="middle"&&it("small"))},[K]),jsxRuntimeExports.jsxs(R,{className:K==="small"?"center-mode":"",children:[j?jsxRuntimeExports.jsx("div",{className:"app-icon",children:B}):jsxRuntimeExports.jsxs("div",{className:"app-icon",children:[O&&jsxRuntimeExports.jsx(I,{blockletSize:H,isMobile:j}),!O&&jsxRuntimeExports.jsx(u$1,{blockletSize:H,logoUrl:V})]}),jsxRuntimeExports.jsxs("div",{className:"header-title",children:[j&&F&&jsxRuntimeExports.jsx("div",{className:"header-title-sub",children:F}),jsxRuntimeExports.jsxs("div",{className:"app-name-content",children:[!j&&jsxRuntimeExports.jsx("div",{className:"launching-context",children:F||i(D)}),jsxRuntimeExports.jsx("div",{className:`header-title-name ${K==="middle"||K==="small"?"middle-size":""}`,ref:G,children:jsxRuntimeExports.jsx(w$2,{logoUrl:V,isMobile:j,blockletMeta:C,blockletSize:H,loading:O})})]})]})]})}T.propTypes={blockletMeta:o.object,subTitle:o.any,logoUrl:o.string,locale:o.string,navLogo:o.any,loading:o.bool};function I({blockletSize:C,isMobile:F}){return F?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:C,height:C})}function u$1({logoUrl:C,blockletSize:F}){return jsxRuntimeExports.jsx(M$1,{width:F,height:F,src:C,alt:"blocklet icon",fallback:S,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${C}`)}function w$2({isMobile:C,logoUrl:F,blockletMeta:V={},blockletSize:D,loading:B}){const O=g$2(V);return B?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):k$1(V)?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):C?jsxRuntimeExports.jsxs(L$1,{children:[jsxRuntimeExports.jsx(u$1,{blockletSize:D,logoUrl:F}),jsxRuntimeExports.jsx("span",{className:"ellipsis-title",children:g$2(V)})]}):jsxRuntimeExports.jsx(E,{className:"app-link",target:"_blank",href:joinUrl(V?.registryUrl||"",`/blocklets/${V?.did}`),title:O,children:O})}const L$1=styled.div`
2
2
  .ellipsis-title {
3
3
  flex: 1;
4
4
  position: absolute;
@@ -1,4 +1,4 @@
1
- import{r as a,u as D,j as e,T as k,be as Y,K as i,s as U,b2 as Q,o as l,p as P,k as M,d4 as X,bk as ee,d as te,Y as re,C as ne,V as se,i as v,a as h,aH as T,b,d5 as oe,J as ie,bx as ae,aD as le,d6 as me,G as C,H as R,l as ce,m as ue,A as de,bm as pe}from"./index-DsEBS9e4.js";import{u as fe,T as xe}from"./html-title-Ca-JgCsh.js";import{T as ge}from"./traffic-8l-nBZJu.js";import{H as he}from"./index-29YXcG1w.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as L}from"./memory-CWPB8_i3.js";import{C as ve}from"./CardContent-ByDsC3UC.js";import{u as Ce}from"./useLocalStorage-g990sECo.js";import{T as je,a as Ie}from"./ToggleButtonGroup-XnP8cE92.js";import"./iframe-2aVrQOtY.js";import"./ChevronLeft-gcWuOwnw.js";import"./ChevronRight-Czhq6YeB.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-7GQt2N1M.js";import"./index-hA-y-TpL.js";import"./AdapterDayjs-DalMJwhD.js";import"./useThemeProps-CWahcrog.js";import"./CSSTransition-Bw2ddZTQ.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-BJOykCHp.js";import"./emotion-cache.browser.esm-CHmknBa-.js";import"./index-BtreM3NC.js";import"./redux-DfszZyTl.js";import"./depsEqual-UJplX9mU.js";import"./index-Bl14cNgY.js";import"./TableSearch-ChIn3Aak.js";import"./Search-DhSwmkQ1.js";import"./Clear-CKva4eBi.js";import"./MoreVert-DDyUOkUj.js";import"./getValidReactChildren-DJbrx6gC.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function $({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&Y.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}$.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(Q)`
1
+ import{r as a,u as D,j as e,T as k,be as Y,K as i,s as U,b2 as Q,o as l,p as P,k as M,d4 as X,bk as ee,d as te,Y as re,C as ne,V as se,i as v,a as h,aH as T,b,d5 as oe,J as ie,bx as ae,aD as le,d6 as me,G as C,H as R,l as ce,m as ue,A as de,bm as pe}from"./index-BrmUJguV.js";import{u as fe,T as xe}from"./html-title-BlprY12T.js";import{T as ge}from"./traffic-h7HyzROl.js";import{H as he}from"./index-dCfrxOmL.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as L}from"./memory-DJvhnk1Q.js";import{C as ve}from"./CardContent-D6T4mb6B.js";import{u as Ce}from"./useLocalStorage-WwZ4k9_O.js";import{T as je,a as Ie}from"./ToggleButtonGroup-Z7ULO3Ae.js";import"./iframe-mlrH5a9B.js";import"./ChevronLeft-Czwf-z4J.js";import"./ChevronRight-Cx4VKEff.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-1KMt61fm.js";import"./index-CFoc8aiV.js";import"./AdapterDayjs-CIesv5zf.js";import"./useThemeProps-nx2SX4I_.js";import"./CSSTransition-BqlR62pg.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-D2W01s0y.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./index-CbAJUnfn.js";import"./redux-DfszZyTl.js";import"./depsEqual-BuPlTjct.js";import"./index-CVNQ07mK.js";import"./TableSearch-DOitWCIk.js";import"./Search--1V2WQVn.js";import"./Clear-CPlMJ3VR.js";import"./MoreVert-DVzkIKa5.js";import"./getValidReactChildren-B9Wc-4VY.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function $({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&Y.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}$.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(Q)`
2
2
  .card-content {
3
3
  height: 150px;
4
4
  }
@@ -1 +1 @@
1
- import{bI as r,fb as _,gW as e}from"./index-DsEBS9e4.js";const i={en:_(e),ar:()=>r(()=>import("./ar-CCM7LUa7.js"),[],import.meta.url).then(t=>_(t.default)),de:()=>r(()=>import("./de-STCToRpb.js"),[],import.meta.url).then(t=>_(t.default)),es:()=>r(()=>import("./es-CrUw-8oc.js"),[],import.meta.url).then(t=>_(t.default)),fr:()=>r(()=>import("./fr-B6GuZu9m.js"),[],import.meta.url).then(t=>_(t.default)),hi:()=>r(()=>import("./hi-Cw_VH7M3.js"),[],import.meta.url).then(t=>_(t.default)),id:()=>r(()=>import("./id-ErxRX4DU.js"),[],import.meta.url).then(t=>_(t.default)),ja:()=>r(()=>import("./ja-CvssCilG.js"),[],import.meta.url).then(t=>_(t.default)),ko:()=>r(()=>import("./ko-CwfYSSYs.js"),[],import.meta.url).then(t=>_(t.default)),pt:()=>r(()=>import("./pt-DiKRyIZy.js"),[],import.meta.url).then(t=>_(t.default)),ru:()=>r(()=>import("./ru-5wNmeEUO.js"),[],import.meta.url).then(t=>_(t.default)),th:()=>r(()=>import("./th-B6ebKspD.js"),[],import.meta.url).then(t=>_(t.default)),vi:()=>r(()=>import("./vi-PpVWvm1I.js"),[],import.meta.url).then(t=>_(t.default)),"zh-TW":()=>r(()=>import("./zh-tw-C3Px30Ps.js"),[],import.meta.url).then(t=>_(t.default)),zh:()=>r(()=>import("./zh-Daif36Hm.js"),[],import.meta.url).then(t=>_(t.default))};export{i as t};
1
+ import{bI as r,fb as _,gW as e}from"./index-BrmUJguV.js";const i={en:_(e),ar:()=>r(()=>import("./ar-CCM7LUa7.js"),[],import.meta.url).then(t=>_(t.default)),de:()=>r(()=>import("./de-STCToRpb.js"),[],import.meta.url).then(t=>_(t.default)),es:()=>r(()=>import("./es-CrUw-8oc.js"),[],import.meta.url).then(t=>_(t.default)),fr:()=>r(()=>import("./fr-B6GuZu9m.js"),[],import.meta.url).then(t=>_(t.default)),hi:()=>r(()=>import("./hi-Cw_VH7M3.js"),[],import.meta.url).then(t=>_(t.default)),id:()=>r(()=>import("./id-ErxRX4DU.js"),[],import.meta.url).then(t=>_(t.default)),ja:()=>r(()=>import("./ja-CvssCilG.js"),[],import.meta.url).then(t=>_(t.default)),ko:()=>r(()=>import("./ko-CwfYSSYs.js"),[],import.meta.url).then(t=>_(t.default)),pt:()=>r(()=>import("./pt-DiKRyIZy.js"),[],import.meta.url).then(t=>_(t.default)),ru:()=>r(()=>import("./ru-5wNmeEUO.js"),[],import.meta.url).then(t=>_(t.default)),th:()=>r(()=>import("./th-B6ebKspD.js"),[],import.meta.url).then(t=>_(t.default)),vi:()=>r(()=>import("./vi-PpVWvm1I.js"),[],import.meta.url).then(t=>_(t.default)),"zh-TW":()=>r(()=>import("./zh-tw-C3Px30Ps.js"),[],import.meta.url).then(t=>_(t.default)),zh:()=>r(()=>import("./zh-Daif36Hm.js"),[],import.meta.url).then(t=>_(t.default))};export{i as t};
@@ -0,0 +1 @@
1
+ import{c4 as c,r as _,cv as f,h1 as S,cV as r}from"./index-BrmUJguV.js";var v=function(n){var a=c(_.useState(n),2),u=a[0],o=a[1],i=f(function(t){o(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,i]};export{v as u};
@@ -1,4 +1,4 @@
1
- import{aj as ee,A as T,r as f,a as te,b as se,V as j,u as S,x as re,av as A,i as F,j as t,w as q,aw as oe,T as C,y as k,$,o as m,ax as ne,ay as ae,v as _,C as N,az as ie,H as W,X as M,aA as le,aB as ce,K as E,aC as ue,L as de,aD as pe,a9 as he,s as O,a6 as fe,a7 as me,aE as ge,a8 as xe}from"./index-DsEBS9e4.js";import{u as L}from"./useLocalStorage-g990sECo.js";import{C as be,c as ke,e as ye,_ as je,a as Se,d as we,s as ve,S as V,b as Pe,A as Ce}from"./item-h3ruRo-H.js";import{e as D}from"./engine-CIf2Bmdn.js";import{g as U}from"./get-safe-url-BjGmijAx.js";import{P as z}from"./permission-CW0DzNy6.js";import{A as Re}from"./ArrowDropDown-BvfsnZmc.js";import{B as Le}from"./Breadcrumbs-CtDi2J-M.js";import"./index-CTRqTltQ.js";import"./KeyboardArrowDown-BpcBmZwq.js";import"./ChevronLeft-gcWuOwnw.js";import"./ChevronRight-Czhq6YeB.js";import"./Search-DhSwmkQ1.js";import"./index-Bl14cNgY.js";import"./blocklet-CPwKiPX6.js";import"./Autocomplete-BtpXOuNf.js";import"./ListSubheader-Dv-UJcm5.js";import"./Verified-CHOSEVtj.js";import"./VerifiedUser-Dixnu8-0.js";import"./Add-BJaOHr9s.js";import"./Launch-DjhPb7Xi.js";import"./Done-CLU5BqYw.js";import"./DeleteOutline-CpaciU3x.js";import"./delete-confirm-DSvSyiD8.js";import"./click-to-copy-DLb2iRRo.js";import"./MoreVert-DDyUOkUj.js";import"./ButtonGroup-DPiY53vd.js";import"./getValidReactChildren-DJbrx6gC.js";function Be(e){const r=ee(),c=T(),[s,o]=L(`sid:blocklet:purchase:${e}`),[l,u]=f.useState(!1),[d,a]=f.useState(null),p=()=>{const{pathname:n,searchParams:b}=new URL(window.location.href),g=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";b.get("sid")&&(o(""),c(n.replace(g,"/"),{replace:!0}))},i=!!(r.get("assetDid")&&s&&r.get("sid")===s);return te(se.BlockletEvents.purchaseChange,n=>{n.did===e&&(a(n.session),["declined","confirmed","error"].includes(n.session.status)&&(u(!0),setTimeout(p,2e3)))}),f.useEffect(()=>{d&&d.id!==s&&o(d.id)},[d]),{hasCompleted:l,hasPurchased:i,session:d,setSession:a,doRedirect:p}}function De(e){setTimeout(()=>{window.location.href=U(e,{allowDomains:null})},1e3)}function K({meta:e,onCancel:r,handlePaySuccess:c=De,storeUrl:s}){const{t:o}=j(),{info:l}=S(),[u,d]=f.useState("both"),[a,p]=f.useState(1),i=re(l),n=A(e,l,s),b=P=>{P!==u&&d(P)},g=()=>{u&&(p(2),u==="verify"&&(window.location.href=U(n)))},w=(P,B)=>{B!=="backdropClick"&&r()},x=()=>{c(n)},h=F.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:oe.create({baseURL:k(s,"/store")}).get,onSuccess:x,onClose:r,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:h}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(C,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(C,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:h})]})]})}});const v=$;return t.jsx(v,{title:o("store.purchase.title",{name:h}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:w,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(be,{action:u,onNext:g,onSelect:b})})})}K.propTypes={...ke,storeUrl:m.string.isRequired,handlePaySuccess:m.func};function H({meta:e,buttonText:r,storeUrl:c,isResource:s=!1}){const{t:o}=j(),l=T(),{info:u}=S(),{api:d}=ne(),a=F.isFreeBlocklet(e)===!1,[p,i]=f.useState(!1),{hasPurchased:n}=Be(e.did),[b,g]=f.useState(!1),[w]=L("instant-blocklet-install",!1),[x,h]=f.useState(!1),v=f.useMemo(()=>p?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[p,o,a]),P=f.useMemo(()=>s?o("blocklet.status.resource"):a?r.purchase:r.launch,[a,r,s]),B=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){g(!0);return}if(w){h(!0);return}if(!a){const R=A(e,u,c);window.location.href=U(R)}}catch(R){W.error(M(R),{autoHideDuration:5e3}),console.error("Blocklet installed failed",R)}finally{i(!1)}},Y=()=>{i(!1),g(!1)},J=y=>{i(!1),h(!1),l(`/blocklets/${y.appDid}/components`)},Z=()=>{i(!1),h(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(z,{permission:"mutate_blocklets",children:y=>t.jsx(ae,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(_,{onClick:B,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(v||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:v?t.jsxs(t.Fragment,{children:[t.jsx(N,{size:16,style:{marginRight:3}}),v]}):P},e.did)})})}),(n||b)&&t.jsx(K,{method:"launch",meta:e,mode:"both",onCancel:Y,storeUrl:c}),x&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:d.get,checkTimeout:5*60*1e3,onSuccess:J,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ie(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:Z})]})}H.propTypes={isResource:m.bool,meta:m.object.isRequired,buttonText:m.shape({purchase:m.string.isRequired,launch:m.string.isRequired}).isRequired,storeUrl:m.string.isRequired};const Ee=(e,r,c)=>{const s=he(r);return k(c,`/blocklets/${e.did}/?server-url=${s}`)},I=({meta:e,attribute:r,value:c})=>e._formatted?e._formatted[r]:c,Ue=(e,r)=>{if(!e||!r)return"";try{return k(r,e)}catch(c){return console.warn("Failed to construct avatar URL:",c),""}};function G({blocklet:e,endpoint:r="",serverVersion:c=""}){const{t:s}=j(),o=S();let l=k(o.imgPrefix,"blocklet.png");const u=r;if(u.startsWith("http")&&e.logo)l=k(u,ue(e.did,e.logo,e.version));else{let n=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");n&&(n=`/${n}`),l=k(n,`/blocklet/logo/${e.did}`)}try{const i=new URL(l);i.searchParams.set("v",e.version||+new Date),l=i.href}catch{}const d=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:u},p=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(Se,{serverVersion:c,requirementVersion:e.requirements?.server,size:"small",children:t.jsx(H,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...a})})});return t.jsx(de,{href:Ee(e,o.info,r),style:{color:"initial",textDecoration:"none"},onClick:d,target:"_blank",children:t.jsx(Ie,{title:I({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:I({meta:e,attribute:"description",value:e.description}),cover:e.logo?l:"",version:e.version,onButtonClick:null,icons:e.docker?.image?[{key:"docker",icon:t.jsx(E,{sx:{display:"flex",color:"primary.main"},children:t.jsx(pe,{icon:we})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ue(e.owner.avatar,r),download:e.stats.downloads,button:p})})}G.propTypes={blocklet:m.object.isRequired,serverVersion:m.string,endpoint:m.string};function Q({storeUrl:e,handleSearchSelect:r=null,extraFilter:c=void 0,...s}){const{locale:o}=j(),l=S(),[u,d]=f.useState({}),a=n=>{d(n)},p=e,i=l?.info?.version;return f.useEffect(()=>{d({})},[p]),t.jsx(le,{FallbackComponent:ce,resetKeys:[p],children:t.jsx(E,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(je,{layout:{showExplore:!1,showTitle:!0},blockletRender:n=>t.jsx(G,{...n,endpoint:p}),baseSearch:!0,endpoint:p,locale:o,onFilterChange:a,onSearchSelect:r,filters:u,extraFilter:c,serverVersion:i})})})}Q.propTypes={storeUrl:m.string.isRequired,handleSearchSelect:m.func,extraFilter:m.func};const Ie=O(ve)`
1
+ import{aj as ee,A as T,r as f,a as te,b as se,V as j,u as S,x as re,av as A,i as F,j as t,w as q,aw as oe,T as C,y as k,$,o as m,ax as ne,ay as ae,v as _,C as N,az as ie,H as W,X as M,aA as le,aB as ce,K as E,aC as ue,L as de,aD as pe,a9 as he,s as O,a6 as fe,a7 as me,aE as ge,a8 as xe}from"./index-BrmUJguV.js";import{u as L}from"./useLocalStorage-WwZ4k9_O.js";import{C as be,c as ke,e as ye,_ as je,a as Se,d as we,s as ve,S as V,b as Pe,A as Ce}from"./item-O__B-QK7.js";import{e as D}from"./engine-D0Jqm-AD.js";import{g as U}from"./get-safe-url-Dq2_VEWx.js";import{P as z}from"./permission-bCEiJP2a.js";import{A as Re}from"./ArrowDropDown-BEtLpAqy.js";import{B as Le}from"./Breadcrumbs-XhgCVD7u.js";import"./index-C0WIM-Vz.js";import"./KeyboardArrowDown-CYLIdlXV.js";import"./ChevronLeft-Czwf-z4J.js";import"./ChevronRight-Cx4VKEff.js";import"./Search--1V2WQVn.js";import"./index-CVNQ07mK.js";import"./blocklet-BgOSOFk8.js";import"./Autocomplete-DaPuGlnI.js";import"./ListSubheader-Dt6wbgew.js";import"./Verified-BoILBhWS.js";import"./VerifiedUser-DpVMiyJe.js";import"./Add-L4d2JZXR.js";import"./Launch-CL_DBWI6.js";import"./Done-Cf4FmWLE.js";import"./DeleteOutline-CDNvFcfW.js";import"./delete-confirm-DVcd_1B0.js";import"./click-to-copy-Mww6U2O2.js";import"./MoreVert-DVzkIKa5.js";import"./ButtonGroup-B_P6ZZZ4.js";import"./getValidReactChildren-B9Wc-4VY.js";function Be(e){const r=ee(),c=T(),[s,o]=L(`sid:blocklet:purchase:${e}`),[l,u]=f.useState(!1),[d,a]=f.useState(null),p=()=>{const{pathname:n,searchParams:b}=new URL(window.location.href),g=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";b.get("sid")&&(o(""),c(n.replace(g,"/"),{replace:!0}))},i=!!(r.get("assetDid")&&s&&r.get("sid")===s);return te(se.BlockletEvents.purchaseChange,n=>{n.did===e&&(a(n.session),["declined","confirmed","error"].includes(n.session.status)&&(u(!0),setTimeout(p,2e3)))}),f.useEffect(()=>{d&&d.id!==s&&o(d.id)},[d]),{hasCompleted:l,hasPurchased:i,session:d,setSession:a,doRedirect:p}}function De(e){setTimeout(()=>{window.location.href=U(e,{allowDomains:null})},1e3)}function K({meta:e,onCancel:r,handlePaySuccess:c=De,storeUrl:s}){const{t:o}=j(),{info:l}=S(),[u,d]=f.useState("both"),[a,p]=f.useState(1),i=re(l),n=A(e,l,s),b=P=>{P!==u&&d(P)},g=()=>{u&&(p(2),u==="verify"&&(window.location.href=U(n)))},w=(P,B)=>{B!=="backdropClick"&&r()},x=()=>{c(n)},h=F.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:oe.create({baseURL:k(s,"/store")}).get,onSuccess:x,onClose:r,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:h}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(C,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(C,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:h})]})]})}});const v=$;return t.jsx(v,{title:o("store.purchase.title",{name:h}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:w,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(be,{action:u,onNext:g,onSelect:b})})})}K.propTypes={...ke,storeUrl:m.string.isRequired,handlePaySuccess:m.func};function H({meta:e,buttonText:r,storeUrl:c,isResource:s=!1}){const{t:o}=j(),l=T(),{info:u}=S(),{api:d}=ne(),a=F.isFreeBlocklet(e)===!1,[p,i]=f.useState(!1),{hasPurchased:n}=Be(e.did),[b,g]=f.useState(!1),[w]=L("instant-blocklet-install",!1),[x,h]=f.useState(!1),v=f.useMemo(()=>p?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[p,o,a]),P=f.useMemo(()=>s?o("blocklet.status.resource"):a?r.purchase:r.launch,[a,r,s]),B=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){g(!0);return}if(w){h(!0);return}if(!a){const R=A(e,u,c);window.location.href=U(R)}}catch(R){W.error(M(R),{autoHideDuration:5e3}),console.error("Blocklet installed failed",R)}finally{i(!1)}},Y=()=>{i(!1),g(!1)},J=y=>{i(!1),h(!1),l(`/blocklets/${y.appDid}/components`)},Z=()=>{i(!1),h(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(z,{permission:"mutate_blocklets",children:y=>t.jsx(ae,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(_,{onClick:B,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(v||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:v?t.jsxs(t.Fragment,{children:[t.jsx(N,{size:16,style:{marginRight:3}}),v]}):P},e.did)})})}),(n||b)&&t.jsx(K,{method:"launch",meta:e,mode:"both",onCancel:Y,storeUrl:c}),x&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:d.get,checkTimeout:5*60*1e3,onSuccess:J,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ie(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:Z})]})}H.propTypes={isResource:m.bool,meta:m.object.isRequired,buttonText:m.shape({purchase:m.string.isRequired,launch:m.string.isRequired}).isRequired,storeUrl:m.string.isRequired};const Ee=(e,r,c)=>{const s=he(r);return k(c,`/blocklets/${e.did}/?server-url=${s}`)},I=({meta:e,attribute:r,value:c})=>e._formatted?e._formatted[r]:c,Ue=(e,r)=>{if(!e||!r)return"";try{return k(r,e)}catch(c){return console.warn("Failed to construct avatar URL:",c),""}};function G({blocklet:e,endpoint:r="",serverVersion:c=""}){const{t:s}=j(),o=S();let l=k(o.imgPrefix,"blocklet.png");const u=r;if(u.startsWith("http")&&e.logo)l=k(u,ue(e.did,e.logo,e.version));else{let n=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");n&&(n=`/${n}`),l=k(n,`/blocklet/logo/${e.did}`)}try{const i=new URL(l);i.searchParams.set("v",e.version||+new Date),l=i.href}catch{}const d=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:u},p=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(Se,{serverVersion:c,requirementVersion:e.requirements?.server,size:"small",children:t.jsx(H,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...a})})});return t.jsx(de,{href:Ee(e,o.info,r),style:{color:"initial",textDecoration:"none"},onClick:d,target:"_blank",children:t.jsx(Ie,{title:I({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:I({meta:e,attribute:"description",value:e.description}),cover:e.logo?l:"",version:e.version,onButtonClick:null,icons:e.docker?.image?[{key:"docker",icon:t.jsx(E,{sx:{display:"flex",color:"primary.main"},children:t.jsx(pe,{icon:we})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ue(e.owner.avatar,r),download:e.stats.downloads,button:p})})}G.propTypes={blocklet:m.object.isRequired,serverVersion:m.string,endpoint:m.string};function Q({storeUrl:e,handleSearchSelect:r=null,extraFilter:c=void 0,...s}){const{locale:o}=j(),l=S(),[u,d]=f.useState({}),a=n=>{d(n)},p=e,i=l?.info?.version;return f.useEffect(()=>{d({})},[p]),t.jsx(le,{FallbackComponent:ce,resetKeys:[p],children:t.jsx(E,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(je,{layout:{showExplore:!1,showTitle:!0},blockletRender:n=>t.jsx(G,{...n,endpoint:p}),baseSearch:!0,endpoint:p,locale:o,onFilterChange:a,onSearchSelect:r,filters:u,extraFilter:c,serverVersion:i})})})}Q.propTypes={storeUrl:m.string.isRequired,handleSearchSelect:m.func,extraFilter:m.func};const Ie=O(ve)`
2
2
  .ms-highlight {
3
3
  color: ${e=>e.theme.palette.primary.main};
4
4
  }
@@ -1 +1 @@
1
- import{aF as le,j as e,hw as ce,bd as ue,bn as Z,V as G,gj as ee,f9 as te,aP as re,cv as u,H as S,hx as M,K as R,t as x,hy as V,aU as H,O as p,ay as de,v as N,s as ie,aV as ne,z as me,y as fe,aH as he,r as U,p as xe,bC as pe}from"./index-DsEBS9e4.js";import{T as ve}from"./html-title-Ca-JgCsh.js";import{u as se,C as m}from"./index.esm-BANIJT6f.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-CC77PAqz.js";import{u as ae}from"./blocklet-CPwKiPX6.js";import{S as $}from"./Switch-C5R2keD_.js";const Re=le(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function ke(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function we(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var t=b(ce()),d=b(ke());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function E(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function Te(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(we());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Se=Te();const Ee=ue(Se),B={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...B},s?.settings?.notification?.email||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(B))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,T=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...B},y?.settings?.notification?.email||{});q(oe),T&&S.success(t("oauth.saveSuccess"))}catch(y){if(T)S.error(y.message||t("oauth.saveFailed"));else throw y}}),W=u(async(r,g,T)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:T,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),S.success(t("notification.email.testSuccess"))}catch(y){S.error(y.message||t("notification.email.testfailed"))}}),A=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:T=>{l.testReceiver=T.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(T){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await W(r,g,y),T()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?V(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Ee(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),k=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),w=u(r=>r?.trim()&&!V(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(H,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(H,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?w:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:E(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,k,v=!0)=>{try{const{blocklet:w}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},w?.settings?.notification?.pushKit||{});q(I),v&&S.success(t("oauth.saveSuccess"))}catch(w){if(v)S.error(w.message||t("oauth.saveFailed"));else throw w}}),W=u(async(o,k)=>{try{i.isDirty&&await C(o,k,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,w=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:w}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),S.success(t("notification.pushKit.testSuccess"))}catch(v){S.error(v.message||t("notification.pushKit.testfailed"))}}),A=u((o,k)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await W(o,k),v()}})}),F=u(o=>{const k=o?.trim();return k?V(k)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(H,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:E(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function Ae(){const[c,s]=U.useState(Y[0].value),{locale:t}=U.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=U.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{Ae as B};
1
+ import{aF as le,j as e,hw as ce,bd as ue,bn as Z,V as G,gj as ee,f9 as te,aP as re,cv as u,H as S,hx as M,K as R,t as x,hy as V,aU as H,O as p,ay as de,v as N,s as ie,aV as ne,z as me,y as fe,aH as he,r as U,p as xe,bC as pe}from"./index-BrmUJguV.js";import{T as ve}from"./html-title-BlprY12T.js";import{u as se,C as m}from"./index.esm-Dhbg504r.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-Dkho70aO.js";import{u as ae}from"./blocklet-BgOSOFk8.js";import{S as $}from"./Switch-BYpwkINu.js";const Re=le(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function ke(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function we(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var t=b(ce()),d=b(ke());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function E(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function Te(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(we());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Se=Te();const Ee=ue(Se),B={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...B},s?.settings?.notification?.email||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(B))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,T=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...B},y?.settings?.notification?.email||{});q(oe),T&&S.success(t("oauth.saveSuccess"))}catch(y){if(T)S.error(y.message||t("oauth.saveFailed"));else throw y}}),W=u(async(r,g,T)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:T,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),S.success(t("notification.email.testSuccess"))}catch(y){S.error(y.message||t("notification.email.testfailed"))}}),A=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:T=>{l.testReceiver=T.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(T){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await W(r,g,y),T()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?V(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Ee(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),k=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),w=u(r=>r?.trim()&&!V(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(H,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(H,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?w:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:E(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,k,v=!0)=>{try{const{blocklet:w}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},w?.settings?.notification?.pushKit||{});q(I),v&&S.success(t("oauth.saveSuccess"))}catch(w){if(v)S.error(w.message||t("oauth.saveFailed"));else throw w}}),W=u(async(o,k)=>{try{i.isDirty&&await C(o,k,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,w=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:w}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),S.success(t("notification.pushKit.testSuccess"))}catch(v){S.error(v.message||t("notification.pushKit.testfailed"))}}),A=u((o,k)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await W(o,k),v()}})}),F=u(o=>{const k=o?.trim();return k?V(k)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(H,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(N,{variant:"outlined",color:"warning",onClick:E(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(N,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function Ae(){const[c,s]=U.useState(Y[0].value),{locale:t}=U.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=U.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{Ae as B};
@@ -1,4 +1,4 @@
1
- import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-DsEBS9e4.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-CiCnkusy.js";import{M as V}from"./metric-DWK7z3FN.js";import{C as M}from"./click-to-copy-DLb2iRRo.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({children:a}){const{api:d,info:r}=W(),[u,l]=i.useState(null),[c,t]=i.useState(!1),[s,p]=i.useState([]),_=4,f=async({silent:o=!0,retries:m=_}={})=>{o||t(!0);try{l(null);const{users:x}=await d.getUsers({input:{teamDid:r.did,paging:{pageSize:100}}});t(!1),p(x)}catch(x){m>0?setTimeout(()=>f({silent:o,retries:m-1}),1e3):(t(!1),l(x))}};i.useEffect(()=>{f({silent:!1})},[]),R($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(a,d)=>{const[r,u]=i.useState(0),l=s=>s>=g.oneDay?g.oneDay:s>=g.oneHour?g.oneHour:s>=g.oneMin?g.oneMin:g.oneSecond,[c,t]=i.useState(l(a/1e3));return i.useEffect(()=>{const s=setInterval(()=>{u(r+c);const p=l(a/1e3+r+c);c!==p&&t(p)},c*1e3);return()=>clearInterval(s)},[c,r]),i.useEffect(()=>{u(0),t(l(a/1e3))},[a]),d(a+r*1e3)};y.number.isRequired,y.func;const ie=async a=>{const d=await a.getNodeEnv();return Object.assign({},d.info||{})};y.number.isRequired;y.string.isRequired,y.string.isRequired,y.string.isRequired;function le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{did:a.launcher.did,showQrcode:!0})},{name:s("common.type"),value:a.launcher.type},{name:s("launcher.provider"),value:a.launcher.provider},{name:s("launcher.adminUrl"),value:e.jsx(J,{target:"_blank",href:a.launcher.url,underline:"hover",children:a.launcher.url})}]);const x=(n,w)=>!n&&!w?"-":n==="-"?n:!w||w==="-"?e.jsxs(h,{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}):e.jsxs(h,{component:"ul",children:[e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}),e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV6"}),e.jsx(M,{children:w})]})]}),N=()=>{const n=[{name:`${s("common.internalIp")}`,value:x(t.value.ip.internalV4,t.value.ip.internalV6)},{name:`${s("common.externalIp")}`,value:x(t.value.ip.externalV4,t.value.ip.externalV6)}];return t.value.docker?[]:n},T=t.value?[{name:`${s("common.version")}`,value:a.version},...N(),{name:`${s("common.os")}`,value:t.value.os},t.value.docker?{name:`${s("common.docker")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null,t.value.gitpod?{name:`${s("common.gitpod")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null].filter(Boolean):[];Array.isArray(K(t,"value.blockletEngines",null))&&t.value.blockletEngines.filter(n=>n.visible&&n.available).forEach(n=>{T.push({name:n.displayName,value:e.jsx(j,{type:"success",children:`${n.version}`||"N/A"})})});const G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(p))}];let E=[];t.value&&t.value.disk&&Object.values(t.value.disk).some(n=>n>0)&&(E=[{name:s("common.blockletsStorage"),value:k(t.value.disk.blocklets||0).toUpperCase()},{name:s("common.dataStorage"),value:k(t.value.disk.data||0).toUpperCase()},{name:s("common.logStorage"),value:k(t.value.disk.log||0).toUpperCase()},{name:s("common.cacheStorage"),value:k(t.value.disk.cache||0).toUpperCase()},{name:s("common.coreStorage"),value:k(t.value.disk.app||0).toUpperCase()}]),b=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.overview")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:O.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),E.length>0&&e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.storage")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:E.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.meta")}),e.jsxs(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:[e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.dAddress")}),o.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name)),m.length>0&&e.jsxs("div",{style:{marginTop:_.spacing(8)},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.launcher")}),m.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name))]})]},"address"),e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.env")}),T.map(n=>e.jsx(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
1
+ import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-BrmUJguV.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-CEDIdKXe.js";import{M as V}from"./metric-D7sR5FhW.js";import{C as M}from"./click-to-copy-Mww6U2O2.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({children:a}){const{api:d,info:r}=W(),[u,l]=i.useState(null),[c,t]=i.useState(!1),[s,p]=i.useState([]),_=4,f=async({silent:o=!0,retries:m=_}={})=>{o||t(!0);try{l(null);const{users:x}=await d.getUsers({input:{teamDid:r.did,paging:{pageSize:100}}});t(!1),p(x)}catch(x){m>0?setTimeout(()=>f({silent:o,retries:m-1}),1e3):(t(!1),l(x))}};i.useEffect(()=>{f({silent:!1})},[]),R($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(a,d)=>{const[r,u]=i.useState(0),l=s=>s>=g.oneDay?g.oneDay:s>=g.oneHour?g.oneHour:s>=g.oneMin?g.oneMin:g.oneSecond,[c,t]=i.useState(l(a/1e3));return i.useEffect(()=>{const s=setInterval(()=>{u(r+c);const p=l(a/1e3+r+c);c!==p&&t(p)},c*1e3);return()=>clearInterval(s)},[c,r]),i.useEffect(()=>{u(0),t(l(a/1e3))},[a]),d(a+r*1e3)};y.number.isRequired,y.func;const ie=async a=>{const d=await a.getNodeEnv();return Object.assign({},d.info||{})};y.number.isRequired;y.string.isRequired,y.string.isRequired,y.string.isRequired;function le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{did:a.launcher.did,showQrcode:!0})},{name:s("common.type"),value:a.launcher.type},{name:s("launcher.provider"),value:a.launcher.provider},{name:s("launcher.adminUrl"),value:e.jsx(J,{target:"_blank",href:a.launcher.url,underline:"hover",children:a.launcher.url})}]);const x=(n,w)=>!n&&!w?"-":n==="-"?n:!w||w==="-"?e.jsxs(h,{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}):e.jsxs(h,{component:"ul",children:[e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}),e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV6"}),e.jsx(M,{children:w})]})]}),N=()=>{const n=[{name:`${s("common.internalIp")}`,value:x(t.value.ip.internalV4,t.value.ip.internalV6)},{name:`${s("common.externalIp")}`,value:x(t.value.ip.externalV4,t.value.ip.externalV6)}];return t.value.docker?[]:n},T=t.value?[{name:`${s("common.version")}`,value:a.version},...N(),{name:`${s("common.os")}`,value:t.value.os},t.value.docker?{name:`${s("common.docker")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null,t.value.gitpod?{name:`${s("common.gitpod")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null].filter(Boolean):[];Array.isArray(K(t,"value.blockletEngines",null))&&t.value.blockletEngines.filter(n=>n.visible&&n.available).forEach(n=>{T.push({name:n.displayName,value:e.jsx(j,{type:"success",children:`${n.version}`||"N/A"})})});const G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(p))}];let E=[];t.value&&t.value.disk&&Object.values(t.value.disk).some(n=>n>0)&&(E=[{name:s("common.blockletsStorage"),value:k(t.value.disk.blocklets||0).toUpperCase()},{name:s("common.dataStorage"),value:k(t.value.disk.data||0).toUpperCase()},{name:s("common.logStorage"),value:k(t.value.disk.log||0).toUpperCase()},{name:s("common.cacheStorage"),value:k(t.value.disk.cache||0).toUpperCase()},{name:s("common.coreStorage"),value:k(t.value.disk.app||0).toUpperCase()}]),b=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.overview")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:O.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),E.length>0&&e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.storage")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:E.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.meta")}),e.jsxs(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:[e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.dAddress")}),o.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name)),m.length>0&&e.jsxs("div",{style:{marginTop:_.spacing(8)},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.launcher")}),m.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name))]})]},"address"),e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.env")}),T.map(n=>e.jsx(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;