@abtnode/webapp 1.16.31-beta-52250475 → 1.16.31-beta-4246ab25

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 (179) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-Dx41uXc7.js → Add-DL37aees.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-CHmbPQ3o.js → ArrowDropDown-dhBf3UQN.js} +1 -1
  5. package/dist/assets/{Autocomplete-QWnPmrKF.js → Autocomplete-B1K-z6j7.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-i5iYBZLc.js → Breadcrumbs-CPq3Co_Q.js} +1 -1
  7. package/dist/assets/{ButtonGroup-BWDuMnAm.js → ButtonGroup-B8amf32z.js} +1 -1
  8. package/dist/assets/{CheckCircle-C9t_EXNl.js → CheckCircle-KqDiWfg9.js} +1 -1
  9. package/dist/assets/{ChevronLeft-BthP0ZVJ.js → ChevronLeft-CHS38-Lf.js} +1 -1
  10. package/dist/assets/{ChevronRight-D76LstrI.js → ChevronRight-DfWcXs0k.js} +1 -1
  11. package/dist/assets/{Close-gnJLfEoW.js → Close-c20DJvRG.js} +1 -1
  12. package/dist/assets/{Delete-Q_lBYL8p.js → Delete-CIF3-2at.js} +1 -1
  13. package/dist/assets/{DeleteOutline-BmtpoFsd.js → DeleteOutline-56evEBiz.js} +1 -1
  14. package/dist/assets/DeleteOutline-DbOwkOVw.js +1 -0
  15. package/dist/assets/{Done-yxZ6drK8.js → Done-BYn5tion.js} +1 -1
  16. package/dist/assets/{Edit-B5fFLPUZ.js → Edit-Dsu22ySn.js} +1 -1
  17. package/dist/assets/{EditIcon-CJf2CNWb.js → EditIcon-CYYg8zYs.js} +1 -1
  18. package/dist/assets/{ExpandMore-BrYueI4e.js → ExpandMore-C21iA0xJ.js} +1 -1
  19. package/dist/assets/{FilterList-Da7wY72-.js → FilterList-BFL6oxUg.js} +1 -1
  20. package/dist/assets/{Google-B5jsZ8GP.js → Google-CZd5WdNY.js} +1 -1
  21. package/dist/assets/{Https-CH5vP8Ms.js → Https-CvxDQ1y6.js} +1 -1
  22. package/dist/assets/{InputAdornment-BFIXe4KP.js → InputAdornment-BZ_RPHtc.js} +1 -1
  23. package/dist/assets/{InputLabel-Ud1zJ885.js → InputLabel-ZaMTuamD.js} +1 -1
  24. package/dist/assets/{LastPage-8G18Sdzg.js → LastPage-Bmj6_zXy.js} +1 -1
  25. package/dist/assets/{Launch-Cbee3j-v.js → Launch-DyPv-wpY.js} +1 -1
  26. package/dist/assets/{Link-BdXU_305.js → Link-Cn96OUM-.js} +1 -1
  27. package/dist/assets/{LoadingButton-kJFbiaal.js → LoadingButton-B7ngIBYG.js} +1 -1
  28. package/dist/assets/{LockIcon-D2ZqGlg7.js → LockIcon-C2_I6NRC.js} +1 -1
  29. package/dist/assets/{Loop-nxYu70hW.js → Loop-CXxNVtqo.js} +1 -1
  30. package/dist/assets/{MoreHoriz-WvG-bfc8.js → MoreHoriz-C-thER3e.js} +1 -1
  31. package/dist/assets/{MoreVert-C7RlaUD4.js → MoreVert-BbRpNG54.js} +1 -1
  32. package/dist/assets/{Pagination-BHXa0neY.js → Pagination-YsqG8BmD.js} +1 -1
  33. package/dist/assets/{Public-DziZgxiC.js → Public-D40ngsv3.js} +1 -1
  34. package/dist/assets/{SchemaReference.es-Bm8rL0jm.js → SchemaReference.es-4ilmwa0a.js} +1 -1
  35. package/dist/assets/{Search-I8k4g8P2.js → Search-BjqcNmUl.js} +1 -1
  36. package/dist/assets/{Select-D98QgvpM.js → Select-CTPbRXl_.js} +1 -1
  37. package/dist/assets/{Skeleton-DfnPn9ff.js → Skeleton-9aiTk_xE.js} +1 -1
  38. package/dist/assets/{Slider-DDl7Mb8P.js → Slider-Dy4m2qCN.js} +1 -1
  39. package/dist/assets/{Stepper-DQMzJDAA.js → Stepper-Bp8fNaBj.js} +1 -1
  40. package/dist/assets/{TextField-DkBSv90O.js → TextField--mkozHu1.js} +1 -1
  41. package/dist/assets/{ToggleButtonGroup-6eOy0wFh.js → ToggleButtonGroup-CljyOBsZ.js} +1 -1
  42. package/dist/assets/{ViewList-BCMxF-F_.js → ViewList-1TToQDPQ.js} +1 -1
  43. package/dist/assets/{actions-YUoZ1OKA.js → actions-CKEDmJsZ.js} +1 -1
  44. package/dist/assets/{actions-Cl7JoyGe.js → actions-CVYlEm9g.js} +1 -1
  45. package/dist/assets/{agreement-CW24iPxn.js → agreement-BELKcZFJ.js} +1 -1
  46. package/dist/assets/api-DQmH1_5T.js +1 -0
  47. package/dist/assets/{app-avatar-Dv0oWpzL.js → app-avatar-DmA8thcQ.js} +1 -1
  48. package/dist/assets/{audit-logs-Ch3UhIVO.js → audit-logs-BmbmEurZ.js} +1 -1
  49. package/dist/assets/blocklet-ORJg4gol.js +1 -0
  50. package/dist/assets/{brace-fold.es-KKHMHlbv.js → brace-fold.es-DM6M5C2I.js} +1 -1
  51. package/dist/assets/{bundle-avatar-BrD4GIgg.js → bundle-avatar-BgWpyLQN.js} +1 -1
  52. package/dist/assets/{chart-D2ORzEIY.js → chart-CPaIqFF4.js} +1 -1
  53. package/dist/assets/{click-to-copy-CXD4jLj1.js → click-to-copy-B8WKUmW2.js} +1 -1
  54. package/dist/assets/{closebrackets.es-ChsPidBB.js → closebrackets.es-Cfx18euz.js} +1 -1
  55. package/dist/assets/{codemirror.es-Cb626SAI.js → codemirror.es-DGWmyCdP.js} +1 -1
  56. package/dist/assets/{comment.es-sjUpRW9M.js → comment.es-DRCrPFfC.js} +1 -1
  57. package/dist/assets/{config-navigation-CokXVW3D.js → config-navigation-MxvX_AXR.js} +1 -1
  58. package/dist/assets/{delete-confirm-CiMgbU7k.js → delete-confirm-DRGukBtY.js} +1 -1
  59. package/dist/assets/{detail-p_Nl7bdC.js → detail-Bhy-IRuk.js} +3 -3
  60. package/dist/assets/{dialog.es-wmLg6qxm.js → dialog.es-D--XLIrn.js} +1 -1
  61. package/dist/assets/{download-BHDTfKzh.js → download-BQnLF2v1.js} +1 -1
  62. package/dist/assets/{foldgutter.es-DPGya3Mp.js → foldgutter.es-C0qtKtAX.js} +1 -1
  63. package/dist/assets/getValidReactChildren-ljwZENsP.js +1 -0
  64. package/dist/assets/{hint.es-eQPhClTQ.js → hint.es-BmhQ25XR.js} +1 -1
  65. package/dist/assets/{hint.es2-CFZD7dqb.js → hint.es2-BX3GRjfO.js} +1 -1
  66. package/dist/assets/{iframe-CIr6HU9C.js → iframe-BFCDhgOr.js} +1 -1
  67. package/dist/assets/{index-BMMGTd6o.js → index-5SNrEmrV.js} +1 -1
  68. package/dist/assets/{index-7Wh9rU5p.js → index-5nCkYSvj.js} +1 -1
  69. package/dist/assets/index-B3q00Emv.js +262 -0
  70. package/dist/assets/{index-C84GIEHf.js → index-B5uOXUkd.js} +1 -1
  71. package/dist/assets/{index-Hjj5fMor.js → index-B6u-tjKR.js} +1 -1
  72. package/dist/assets/{index-ILkfeIat.js → index-B7E0Awcq.js} +5 -5
  73. package/dist/assets/{index-BrzgJr2o.js → index-BGE0jyVo.js} +1 -1
  74. package/dist/assets/{index-D2RnHPWg.js → index-BNm8r4bF.js} +1 -1
  75. package/dist/assets/{index-D22PrCcA.js → index-BQelzM1K.js} +1 -1
  76. package/dist/assets/{index-DwYv-TNB.js → index-Ba-ukhc4.js} +4 -4
  77. package/dist/assets/{index-C8AdBpPQ.js → index-BlPCM5LR.js} +1 -1
  78. package/dist/assets/{index-DZc83DAV.js → index-BpwaCLmN.js} +1 -1
  79. package/dist/assets/index-Br78006l.js +16 -0
  80. package/dist/assets/{index-BYcSAb31.js → index-BvJ8mTCj.js} +1 -1
  81. package/dist/assets/{index-Do9pKVRf.js → index-C-Ia-HAG.js} +1 -1
  82. package/dist/assets/{index-Bxpf2WHN.js → index-CALkY1DF.js} +1 -1
  83. package/dist/assets/{index-BEYWRX8G.js → index-CBzqRiyi.js} +1 -1
  84. package/dist/assets/{index-CydxxHXg.js → index-CDOPpBF8.js} +1 -1
  85. package/dist/assets/{index-CyFVybqs.js → index-CIrcsI7B.js} +1 -1
  86. package/dist/assets/{index-BDXEi0PV.js → index-CXjif8dM.js} +1 -1
  87. package/dist/assets/{index-Cxja-jQR.js → index-C_hgTU8a.js} +134 -140
  88. package/dist/assets/{index-BOmYzEn9.js → index-CiG2dcjc.js} +1 -1
  89. package/dist/assets/{index-BDfWGXfP.js → index-CmmvTPoy.js} +1 -1
  90. package/dist/assets/{index-GC7UhLQd.js → index-CogXVUQY.js} +3 -3
  91. package/dist/assets/{index-C9ksm79W.js → index-Cq3aT1Wc.js} +1 -1
  92. package/dist/assets/{index-CoRV2otJ.js → index-D1klsajH.js} +1 -1
  93. package/dist/assets/{index-BmnmnlQt.js → index-D9wmIisB.js} +1 -1
  94. package/dist/assets/{index-QRd-ssZL.js → index-DPSBf70U.js} +1 -1
  95. package/dist/assets/{index-CicB1GoH.js → index-DRrUQA71.js} +1 -1
  96. package/dist/assets/{index-DYWaZ7UF.js → index-DVsz8ohf.js} +1 -1
  97. package/dist/assets/{index-CWR9pRio.js → index-DWpyvk3k.js} +1 -1
  98. package/dist/assets/{index-Be2YKQhI.js → index-DYXXHiAp.js} +1 -1
  99. package/dist/assets/{index-CQku-Al5.js → index-Dtikx7Eg.js} +1 -1
  100. package/dist/assets/{index-Dvz5tknR.js → index-DxhUoMTb.js} +1 -1
  101. package/dist/assets/{index-D1s3KM4x.js → index-IQotLDn2.js} +3 -3
  102. package/dist/assets/{index-BLn6OEBv.js → index-N_ezqcL0.js} +1 -1
  103. package/dist/assets/{index-ChESAbYM.js → index-Pzow3iAK.js} +36 -36
  104. package/dist/assets/{index-H4feHsjF.js → index-RNKTxkl-.js} +1 -1
  105. package/dist/assets/{index-yOX1jBNa.js → index-RrJkcdxY.js} +3 -3
  106. package/dist/assets/{index-Cbw6H4_K.js → index-YQ0W9Dn_.js} +1 -1
  107. package/dist/assets/{index-CrFJBCIl.js → index-_Ee7BreY.js} +1 -1
  108. package/dist/assets/index-lIhJ9hU9.js +68 -0
  109. package/dist/assets/{index-CEyFsRqZ.js → index-oTFnJoAS.js} +1 -1
  110. package/dist/assets/{index.es-D8dD6rY7.js → index.es-ySO_wrVY.js} +1 -1
  111. package/dist/assets/{index.esm-cyvka6L1.js → index.esm-Dt9b-oQQ.js} +1 -1
  112. package/dist/assets/{info-addon.es-BNAXvE0I.js → info-addon.es-Cti7SUf3.js} +1 -1
  113. package/dist/assets/{info.es-D314Ux3g.js → info.es-Cjq7uYw1.js} +1 -1
  114. package/dist/assets/{install-from-url-Bv4E8chf.js → install-from-url-CnbA65na.js} +1 -1
  115. package/dist/assets/{invitation-9vXxIvkn.js → invitation-CnkWqlnk.js} +1 -1
  116. package/dist/assets/{is-path-prefix-equal-B4yXGvsc.js → is-path-prefix-equal-VZvrfn15.js} +1 -1
  117. package/dist/assets/{isEqual-pYzt7u6D.js → isEqual-DbaWgzI7.js} +1 -1
  118. package/dist/assets/{item-BurZPJnk.js → item-9QHCFNCg.js} +1 -1
  119. package/dist/assets/{javascript.es-7aylcXRc.js → javascript.es-CgU_y5qk.js} +1 -1
  120. package/dist/assets/{jump-to-line.es-sYEcdljK.js → jump-to-line.es-CkyEHJGg.js} +1 -1
  121. package/dist/assets/{jump.es-D8qGmk1l.js → jump.es-COrGNxUe.js} +1 -1
  122. package/dist/assets/{line-DklrlVyx.js → line-lhxzoPMu.js} +3 -3
  123. package/dist/assets/{lint.es-DbE41wqv.js → lint.es-CkHP4nYe.js} +1 -1
  124. package/dist/assets/{lint.es2-loJELK4V.js → lint.es2-Bw_rT_LD.js} +1 -1
  125. package/dist/assets/{lint.es3-DiiWSQY4.js → lint.es3-B0ohsdqX.js} +1 -1
  126. package/dist/assets/{list-header-Chd6NJjo.js → list-header-u47Vy7cK.js} +1 -1
  127. package/dist/assets/{log--7E4HKGD.js → log-DAb66FWZ.js} +1 -1
  128. package/dist/assets/{lottie-DgsOElJS.js → lottie-D3pWzJE5.js} +1 -1
  129. package/dist/assets/{matchbrackets.es-DtKVGAzB.js → matchbrackets.es-D0dI78Ov.js} +1 -1
  130. package/dist/assets/{memory-CwJsFsgf.js → memory-DCJHOzSN.js} +1 -1
  131. package/dist/assets/{mode.es-_6Cg0nUD.js → mode.es-DIFYwRGJ.js} +1 -1
  132. package/dist/assets/{mode.es2-JuO--Zci.js → mode.es2-UFFtoNko.js} +1 -1
  133. package/dist/assets/{mode.es3-BQJMoqYM.js → mode.es3-Czs05A2c.js} +1 -1
  134. package/dist/assets/{onlineParser.es-f5GbBm53.js → onlineParser.es-Cve5jod2.js} +1 -1
  135. package/dist/assets/{overview-BDv4Lqsl.js → overview-CwgWiiQU.js} +1 -1
  136. package/dist/assets/{react-BDpXmEah.js → react-QTh71lk0.js} +3 -3
  137. package/dist/assets/{redux-D6wNlE-q.js → redux-DuVPlCbI.js} +1 -1
  138. package/dist/assets/resource-dialog-qQmBsEn9.js +57 -0
  139. package/dist/assets/{runtime-hdEaS_Yq.js → runtime-mWgKIuny.js} +1 -1
  140. package/dist/assets/{schema-D8-AKvNo.js → schema-DzJK4Qpe.js} +1 -1
  141. package/dist/assets/sdk-CuTlhAhm.js +1 -0
  142. package/dist/assets/{search.es-DeM3NHZp.js → search.es-DiJHc_2I.js} +1 -1
  143. package/dist/assets/{searchcursor.es-DxOzWcrC.js → searchcursor.es-BYY4_s1M.js} +1 -1
  144. package/dist/assets/service-CMRv4JDv.js +1 -0
  145. package/dist/assets/{shorten-label-JkS-5j4W.js → shorten-label-BEC5vkYE.js} +1 -1
  146. package/dist/assets/{show-hint.es-Ds4kyfHO.js → show-hint.es-BpFxoO3A.js} +1 -1
  147. package/dist/assets/{slicedToArray-CIPQ8aQi.js → slicedToArray-B2K3KAC3.js} +1 -1
  148. package/dist/assets/{spaces-CSlw4hL4.js → spaces-CDn9UU1P.js} +1 -1
  149. package/dist/assets/{status-i1208Qdv.js → status-Cd5tThoM.js} +1 -1
  150. package/dist/assets/{sublime.es-CadI2OED.js → sublime.es-kDncqIBh.js} +1 -1
  151. package/dist/assets/{switch-control-uxUEkF-I.js → switch-control-ocoukMWO.js} +1 -1
  152. package/dist/assets/{table-icons-BtvACBk9.js → table-icons-Dmg06KMa.js} +1 -1
  153. package/dist/assets/{team-DIUnl1cO.js → team-DMKqiFvO.js} +1 -1
  154. package/dist/assets/{toUpper-B0LaGIyE.js → toUpper-Bcve63Ex.js} +1 -1
  155. package/dist/assets/{traffic-JQOlVS9g.js → traffic-Wxp8Ltv5.js} +1 -1
  156. package/dist/assets/{url-evaluation-BVpWdXMc.js → url-evaluation-nvX3IIaY.js} +1 -1
  157. package/dist/assets/{url-join-DIoC2Nm5.js → url-join-BCJqa7hr.js} +1 -1
  158. package/dist/assets/use-blocklet-info-for-connect-did-spaces-BtE34caf.js +1 -0
  159. package/dist/assets/{useLocalStorage-BbecUvVn.js → useLocalStorage-BD5WLoZI.js} +1 -1
  160. package/dist/assets/{useThemeProps-B0v-vJEI.js → useThemeProps-4gHuFupb.js} +1 -1
  161. package/dist/assets/{util-DC7AM1L1.js → util-C4ms7HGA.js} +1 -1
  162. package/dist/assets/{wait-container-BQmXVBrt.js → wait-container-LHLomXQI.js} +1 -1
  163. package/dist/assets/{withStyles-CD_eCM9Y.js → withStyles-DsOD3JMa.js} +1 -1
  164. package/dist/assets/{wrap-locale-Bn89158o.js → wrap-locale-DhsSCfjT.js} +1 -1
  165. package/dist/index.html +1 -1
  166. package/dist/service-worker.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/assets/DeleteOutline-6fdzqmTw.js +0 -1
  169. package/dist/assets/api-BKzJ8L7l.js +0 -1
  170. package/dist/assets/blocklet-BOpJXsdG.js +0 -1
  171. package/dist/assets/getValidReactChildren-CxoYpb_2.js +0 -1
  172. package/dist/assets/index-BWoi0Lwr.js +0 -68
  173. package/dist/assets/index-BeTPjSrt.js +0 -16
  174. package/dist/assets/index-BmxvkwH8.js +0 -1
  175. package/dist/assets/index-DBWcuZXX.js +0 -262
  176. package/dist/assets/resource-dialog-DPcSY18L.js +0 -57
  177. package/dist/assets/sdk-B2SlCa-Q.js +0 -1
  178. package/dist/assets/service-DYe1lBnJ.js +0 -1
  179. package/dist/assets/use-blocklet-info-for-connect-did-spaces-CcQCyh7V.js +0 -1
@@ -1 +1 @@
1
- import{A as l,bg as m,u as p,j as s,U as u}from"./index-Cxja-jQR.js";import{L as g,D as v}from"./download-BHDTfKzh.js";import{F as f,S as x}from"./Select-D98QgvpM.js";import"./ButtonGroup-BWDuMnAm.js";import"./getValidReactChildren-CxoYpb_2.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
1
+ import{A as l,bg as m,u as p,j as s,U as u}from"./index-C_hgTU8a.js";import{L as g,D as v}from"./download-BQnLF2v1.js";import{F as f,S as x}from"./Select-CTPbRXl_.js";import"./ButtonGroup-B8amf32z.js";import"./getValidReactChildren-ljwZENsP.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
@@ -1 +1 @@
1
- import{g as y}from"./index-Cxja-jQR.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{g as y}from"./index-C_hgTU8a.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1,4 +1,4 @@
1
- import{aj as X,A as N,r as p,a as Z,b as ee,P as x,t as j,u as P,z as te,au as $,N as _,j as t,y as q,av as se,q as S,m as v,D as M,aw as oe,V as O,ax as re,B as W,C as z,ay as ne,E as K,M as V,az as ae,aA as ie,aB as le,H as ce,aC as B,i as ue,n as H,a9 as de,a4 as pe,a6 as he,a7 as fe,aD as me,a8 as ge,Q as xe}from"./index-Cxja-jQR.js";import{_ as D}from"./useLocalStorage-BbecUvVn.js";import{c as be,C as ke,A as ye,D as Se,B as je,S as G,a as Pe,b as we}from"./item-BurZPJnk.js";import{d as Re}from"./ArrowDropDown-CHmbPQ3o.js";import{B as ve}from"./Breadcrumbs-i5iYBZLc.js";import"./index-DYWaZ7UF.js";import"./index-ZG7jWpak.js";import"./index-BOmYzEn9.js";import"./Search-I8k4g8P2.js";import"./index-DZc83DAV.js";import"./Select-D98QgvpM.js";import"./InputAdornment-BFIXe4KP.js";import"./preact.module-DJUF--8d.js";import"./Add-Dx41uXc7.js";import"./TextField-DkBSv90O.js";import"./InputLabel-Ud1zJ885.js";import"./Launch-Cbee3j-v.js";import"./Done-yxZ6drK8.js";import"./DeleteOutline-6fdzqmTw.js";import"./DeleteOutline-BmtpoFsd.js";import"./delete-confirm-CiMgbU7k.js";import"./click-to-copy-CXD4jLj1.js";import"./shorten-label-JkS-5j4W.js";import"./blocklet-BOpJXsdG.js";import"./MoreVert-C7RlaUD4.js";import"./ButtonGroup-BWDuMnAm.js";import"./getValidReactChildren-CxoYpb_2.js";function Ce(e){const n=X(),c=N(),[s,o]=D(`sid:blocklet:purchase:${e}`),[l,u]=p.useState(!1),[h,a]=p.useState(null),d=()=>{const{pathname:r,searchParams:m}=new URL(window.location.href),b=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";m.get("sid")&&(o(""),c(r.replace(b,"/"),{replace:!0}))},i=!!(n.get("assetDid")&&s&&n.get("sid")===s);return Z(ee.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(u(!0),setTimeout(d,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:l,hasPurchased:i,session:h,setSession:a,doRedirect:d}}function E({meta:e,onCancel:n,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:l}=P(),[u,h]=p.useState("both"),[a,d]=p.useState(1),i=te(l),r=$(e,l,s),m=R=>{R!==u&&h(R)},b=()=>{u&&(d(2),u==="verify"&&(window.location.href=r))},k=(R,L)=>{L!=="backdropClick"&&n()},w=()=>{c(r)},f=_.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:se.create({baseURL:S(s,"/store")}).get,onSuccess:w,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:f}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(v,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(v,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:f})]})]})}});const g=M;return t.jsx(g,{title:o("store.purchase.title",{name:f}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:u,onNext:b,onSelect:m})})})}E.propTypes={...be,storeUrl:x.string.isRequired,handlePaySuccess:x.func};E.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function U({meta:e,buttonText:n,storeUrl:c,isResource:s}){const{t:o}=j(),l=N(),{info:u}=P(),{api:h}=oe(),a=_.isFreeBlocklet(e)===!1,[d,i]=p.useState(!1),{hasPurchased:r}=Ce(e.did),[m,b]=p.useState(!1),[k]=D("instant-blocklet-install",!1),[w,f]=p.useState(!1),g=p.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),R=p.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),L=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){b(!0);return}if(k){f(!0);return}if(!a){const C=$(e,u,c);window.location.href=C}}catch(C){K.error(V(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{i(!1)}},Q=()=>{i(!1),b(!1)},Y=y=>{i(!1),f(!1),l(`/blocklets/${y.appDid}/components`)},J=()=>{i(!1),f(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(O,{permission:"mutate_blocklets",children:y=>t.jsx(re,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(W,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer"},disabled:!!(g||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:g?t.jsxs(t.Fragment,{children:[t.jsx(z,{size:16,style:{marginRight:3}}),g]}):R},e.did)})})}),(r||m)&&t.jsx(E,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:c}),w&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Y,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ne(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:J})]})}U.propTypes={isResource:x.bool,meta:x.object.isRequired,buttonText:x.shape({purchase:x.string.isRequired,launch:x.string.isRequired}).isRequired,storeUrl:x.string.isRequired};U.defaultProps={isResource:!1};const De=(e,n,c)=>{const s=de(n);return S(c,`/blocklets/${e.did}/?server-url=${s}`)},F=({meta:e,attribute:n,value:c})=>e._formatted?e._formatted[n]:c;function T({blocklet:e,endpoint:n}){const{t:c}=j(),s=P();let o=S(s.imgPrefix,"blocklet.png");const l=n;if(l.startsWith("http")&&e.logo)o=S(l,le(e.did,e.logo,e.version));else{let r=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");r&&(r=`/${r}`),o=S(r,`/blocklet/logo/${e.did}`)}try{const i=new URL(o);i.searchParams.set("v",e.version||+new Date),o=i.href}catch{}const u=(s==null?void 0:s.info.mode)!==ce.NODE_MODES.SERVERLESS,h=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:c("common.purchase"),launch:c("common.launch")},storeUrl:l};let d=null;return u&&(d=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(U,{isResource:!(B.hasStartEngine(e)||B.isGatewayBlocklet(e)||B.isPackBlocklet(e)),...a})})),t.jsx(ue,{href:De(e,s.info,n),style:{color:"initial",textDecoration:"none"},onClick:h,target:"_blank",children:t.jsx(Le,{title:F({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:F({meta:e,attribute:"description",value:e.description}),cover:e.logo?o:"",version:e.version,button:d})})}T.propTypes={blocklet:x.object.isRequired,endpoint:x.string};T.defaultProps={endpoint:""};function I({storeUrl:e,handleSearchSelect:n,extraFilter:c,...s}){var r;const{locale:o}=j(),l=P(),[u,h]=p.useState({}),a=m=>{h(m)},d=e,i=(r=l==null?void 0:l.info)==null?void 0:r.version;return p.useEffect(()=>{h({})},[d]),t.jsx(ae,{FallbackComponent:ie,resetKeys:[d],children:t.jsx("div",{...s,children:t.jsx(Se,{blockletRender:m=>{const b={...m,endpoint:d};return t.jsx(T,{...b})},baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:u,extraFilter:c,serverVersion:i})})})}I.propTypes={storeUrl:x.string.isRequired,handleSearchSelect:x.func,extraFilter:x.func};I.defaultProps={handleSearchSelect:null,extraFilter:void 0};const Le=H(je)`
1
+ import{aj as X,A as N,r as p,a as Z,b as ee,P as x,t as j,u as P,z as te,au as $,N as _,j as t,y as q,av as se,q as S,m as v,D as M,aw as oe,V as O,ax as re,B as W,C as z,ay as ne,E as K,M as V,az as ae,aA as ie,aB as le,H as ce,aC as B,i as ue,n as H,a9 as de,a4 as pe,a6 as he,a7 as fe,aD as me,a8 as ge,Q as xe}from"./index-C_hgTU8a.js";import{_ as D}from"./useLocalStorage-BD5WLoZI.js";import{c as be,C as ke,A as ye,D as Se,B as je,S as G,a as Pe,b as we}from"./item-9QHCFNCg.js";import{d as Re}from"./ArrowDropDown-dhBf3UQN.js";import{B as ve}from"./Breadcrumbs-CPq3Co_Q.js";import"./index-DVsz8ohf.js";import"./index-ZG7jWpak.js";import"./index-CiG2dcjc.js";import"./Search-BjqcNmUl.js";import"./index-BpwaCLmN.js";import"./Select-CTPbRXl_.js";import"./InputAdornment-BZ_RPHtc.js";import"./preact.module-DJUF--8d.js";import"./Add-DL37aees.js";import"./TextField--mkozHu1.js";import"./InputLabel-ZaMTuamD.js";import"./Launch-DyPv-wpY.js";import"./Done-BYn5tion.js";import"./DeleteOutline-DbOwkOVw.js";import"./DeleteOutline-56evEBiz.js";import"./delete-confirm-DRGukBtY.js";import"./click-to-copy-B8WKUmW2.js";import"./shorten-label-BEC5vkYE.js";import"./blocklet-ORJg4gol.js";import"./MoreVert-BbRpNG54.js";import"./ButtonGroup-B8amf32z.js";import"./getValidReactChildren-ljwZENsP.js";function Ce(e){const n=X(),c=N(),[s,o]=D(`sid:blocklet:purchase:${e}`),[l,u]=p.useState(!1),[h,a]=p.useState(null),d=()=>{const{pathname:r,searchParams:m}=new URL(window.location.href),b=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";m.get("sid")&&(o(""),c(r.replace(b,"/"),{replace:!0}))},i=!!(n.get("assetDid")&&s&&n.get("sid")===s);return Z(ee.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(u(!0),setTimeout(d,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:l,hasPurchased:i,session:h,setSession:a,doRedirect:d}}function E({meta:e,onCancel:n,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:l}=P(),[u,h]=p.useState("both"),[a,d]=p.useState(1),i=te(l),r=$(e,l,s),m=R=>{R!==u&&h(R)},b=()=>{u&&(d(2),u==="verify"&&(window.location.href=r))},k=(R,L)=>{L!=="backdropClick"&&n()},w=()=>{c(r)},f=_.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:se.create({baseURL:S(s,"/store")}).get,onSuccess:w,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:f}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(v,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(v,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:f})]})]})}});const g=M;return t.jsx(g,{title:o("store.purchase.title",{name:f}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:u,onNext:b,onSelect:m})})})}E.propTypes={...be,storeUrl:x.string.isRequired,handlePaySuccess:x.func};E.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function U({meta:e,buttonText:n,storeUrl:c,isResource:s}){const{t:o}=j(),l=N(),{info:u}=P(),{api:h}=oe(),a=_.isFreeBlocklet(e)===!1,[d,i]=p.useState(!1),{hasPurchased:r}=Ce(e.did),[m,b]=p.useState(!1),[k]=D("instant-blocklet-install",!1),[w,f]=p.useState(!1),g=p.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),R=p.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),L=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){b(!0);return}if(k){f(!0);return}if(!a){const C=$(e,u,c);window.location.href=C}}catch(C){K.error(V(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{i(!1)}},Q=()=>{i(!1),b(!1)},Y=y=>{i(!1),f(!1),l(`/blocklets/${y.appDid}/components`)},J=()=>{i(!1),f(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(O,{permission:"mutate_blocklets",children:y=>t.jsx(re,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(W,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer"},disabled:!!(g||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:g?t.jsxs(t.Fragment,{children:[t.jsx(z,{size:16,style:{marginRight:3}}),g]}):R},e.did)})})}),(r||m)&&t.jsx(E,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:c}),w&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Y,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ne(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:J})]})}U.propTypes={isResource:x.bool,meta:x.object.isRequired,buttonText:x.shape({purchase:x.string.isRequired,launch:x.string.isRequired}).isRequired,storeUrl:x.string.isRequired};U.defaultProps={isResource:!1};const De=(e,n,c)=>{const s=de(n);return S(c,`/blocklets/${e.did}/?server-url=${s}`)},F=({meta:e,attribute:n,value:c})=>e._formatted?e._formatted[n]:c;function T({blocklet:e,endpoint:n}){const{t:c}=j(),s=P();let o=S(s.imgPrefix,"blocklet.png");const l=n;if(l.startsWith("http")&&e.logo)o=S(l,le(e.did,e.logo,e.version));else{let r=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");r&&(r=`/${r}`),o=S(r,`/blocklet/logo/${e.did}`)}try{const i=new URL(o);i.searchParams.set("v",e.version||+new Date),o=i.href}catch{}const u=(s==null?void 0:s.info.mode)!==ce.NODE_MODES.SERVERLESS,h=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:c("common.purchase"),launch:c("common.launch")},storeUrl:l};let d=null;return u&&(d=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(U,{isResource:!(B.hasStartEngine(e)||B.isGatewayBlocklet(e)||B.isPackBlocklet(e)),...a})})),t.jsx(ue,{href:De(e,s.info,n),style:{color:"initial",textDecoration:"none"},onClick:h,target:"_blank",children:t.jsx(Le,{title:F({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:F({meta:e,attribute:"description",value:e.description}),cover:e.logo?o:"",version:e.version,button:d})})}T.propTypes={blocklet:x.object.isRequired,endpoint:x.string};T.defaultProps={endpoint:""};function I({storeUrl:e,handleSearchSelect:n,extraFilter:c,...s}){var r;const{locale:o}=j(),l=P(),[u,h]=p.useState({}),a=m=>{h(m)},d=e,i=(r=l==null?void 0:l.info)==null?void 0:r.version;return p.useEffect(()=>{h({})},[d]),t.jsx(ae,{FallbackComponent:ie,resetKeys:[d],children:t.jsx("div",{...s,children:t.jsx(Se,{blockletRender:m=>{const b={...m,endpoint:d};return t.jsx(T,{...b})},baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:u,extraFilter:c,serverVersion:i})})})}I.propTypes={storeUrl:x.string.isRequired,handleSearchSelect:x.func,extraFilter:x.func};I.defaultProps={handleSearchSelect:null,extraFilter:void 0};const Le=H(je)`
2
2
  .ms-highlight {
3
3
  color: ${e=>e.theme.palette.primary.main};
4
4
  }