@abtnode/webapp 1.16.30-beta-958ae719 → 1.16.30-beta-b7f31b10

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 (174) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-CdB1GTw1.js → Add-DScOIl2y.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-cQI9feYM.js → ArrowDropDown-DcHWyX_B.js} +1 -1
  5. package/dist/assets/{Autocomplete-Bhg6P1T-.js → Autocomplete-CQGvBfyK.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-zBxzGTSz.js → Breadcrumbs-9jNy6OW-.js} +1 -1
  7. package/dist/assets/{ButtonGroup-CEodIFRb.js → ButtonGroup-Cc4ZN23C.js} +1 -1
  8. package/dist/assets/{CheckCircle-D2TmcEFh.js → CheckCircle-M4w2Jw1V.js} +1 -1
  9. package/dist/assets/{ChevronLeft-Eu14H7S5.js → ChevronLeft-BTxZ-5kF.js} +1 -1
  10. package/dist/assets/{ChevronRight-Ba-Rcz-i.js → ChevronRight-DDxlbDok.js} +1 -1
  11. package/dist/assets/{Close-Dq2gRzdt.js → Close-D24OPEsw.js} +1 -1
  12. package/dist/assets/{Delete-Di-3Vxhz.js → Delete-BYMXUEW-.js} +1 -1
  13. package/dist/assets/{DeleteOutline-BQeXrAk8.js → DeleteOutline-1j0uX4zC.js} +1 -1
  14. package/dist/assets/DeleteOutline-CJf1JPjn.js +1 -0
  15. package/dist/assets/{Done-BiwCZjD9.js → Done-C75-esIR.js} +1 -1
  16. package/dist/assets/{Edit-CeoVDX9P.js → Edit-DbqBgkwQ.js} +1 -1
  17. package/dist/assets/{EditIcon-CIZQcG-N.js → EditIcon-BB_WHtDy.js} +1 -1
  18. package/dist/assets/{ExpandMore-Co2TCgMe.js → ExpandMore-DJPmctU2.js} +1 -1
  19. package/dist/assets/{FilterList-CtKjjq1V.js → FilterList-BSeq1JN5.js} +1 -1
  20. package/dist/assets/{Google-CB64yAYZ.js → Google-JXxiFLr6.js} +1 -1
  21. package/dist/assets/{Https-CZ8ckEIE.js → Https-Pe0n3_C2.js} +1 -1
  22. package/dist/assets/{InputAdornment-DAdjrwZB.js → InputAdornment-jV1oGaiq.js} +1 -1
  23. package/dist/assets/{InputLabel-E2n2XENL.js → InputLabel-jiyrQePY.js} +1 -1
  24. package/dist/assets/{LastPage-Dk3Ng8r_.js → LastPage-DreQg_mv.js} +1 -1
  25. package/dist/assets/{Launch-DCauoB9i.js → Launch-Bp_XfXDM.js} +1 -1
  26. package/dist/assets/{Link-B5_3_F5M.js → Link-ISWp7-NE.js} +1 -1
  27. package/dist/assets/{LoadingButton-CmY35jLm.js → LoadingButton-C_-Tq7-a.js} +1 -1
  28. package/dist/assets/{LockIcon-DLnWJnFU.js → LockIcon-Ctp1c_aa.js} +1 -1
  29. package/dist/assets/{Loop-BK2g7AZi.js → Loop-CbarjQQA.js} +1 -1
  30. package/dist/assets/{MoreVert-CGx6Mqxv.js → MoreVert-DxCDVcE0.js} +1 -1
  31. package/dist/assets/{Pagination-B4jmH7k6.js → Pagination-C0wZBxtP.js} +1 -1
  32. package/dist/assets/{Public-C0O-VR0x.js → Public-DTT8m-Dh.js} +1 -1
  33. package/dist/assets/{SchemaReference.es-CwVyx9KR.js → SchemaReference.es-D1I4jeUl.js} +1 -1
  34. package/dist/assets/{Search-Drx5S2Fc.js → Search-DKFOsHOn.js} +1 -1
  35. package/dist/assets/{Select-BAE2ztrO.js → Select-BlKQA6P8.js} +1 -1
  36. package/dist/assets/{Skeleton-Dg829dzN.js → Skeleton-Df7h_YJK.js} +1 -1
  37. package/dist/assets/{Slider-DalB8Bfa.js → Slider-CI8ItMMl.js} +1 -1
  38. package/dist/assets/{Stepper-CyP9t2tf.js → Stepper-C05cktk-.js} +1 -1
  39. package/dist/assets/{TextField-UIj7bh4L.js → TextField-0SCRdagF.js} +1 -1
  40. package/dist/assets/{ToggleButtonGroup-BezYeHSt.js → ToggleButtonGroup-1kNQ6bLl.js} +1 -1
  41. package/dist/assets/{ViewList-BdFK3ZRI.js → ViewList-DEi1PLTg.js} +1 -1
  42. package/dist/assets/actions-CCipVjCq.js +11 -0
  43. package/dist/assets/{actions-DvMK194y.js → actions-DiDkx9ca.js} +1 -1
  44. package/dist/assets/{agreement-CaStPJUg.js → agreement-C0yXpzdq.js} +1 -1
  45. package/dist/assets/api-VKuyBqG_.js +1 -0
  46. package/dist/assets/{app-avatar-DMwKWgcU.js → app-avatar-C9a1HTsp.js} +1 -1
  47. package/dist/assets/{audit-logs-t-VHu0Dr.js → audit-logs-BdnLeEXF.js} +1 -1
  48. package/dist/assets/blocklet-D4MK-c5F.js +1 -0
  49. package/dist/assets/{brace-fold.es-CTXnLvpw.js → brace-fold.es-CeHN5ory.js} +1 -1
  50. package/dist/assets/{bundle-avatar-FKqqno38.js → bundle-avatar-Cg7zVRxA.js} +1 -1
  51. package/dist/assets/{chart-CRT8ZY2D.js → chart-CP1zmvYY.js} +1 -1
  52. package/dist/assets/{click-to-copy-D6fJs3Fy.js → click-to-copy-W2c5LcAJ.js} +1 -1
  53. package/dist/assets/{closebrackets.es-CeqttfBg.js → closebrackets.es-CibTDcUo.js} +1 -1
  54. package/dist/assets/{codemirror.es-DLcwUx7p.js → codemirror.es-8nYzPokV.js} +1 -1
  55. package/dist/assets/{comment.es-Dwlg7zZ0.js → comment.es-CNYSCodR.js} +1 -1
  56. package/dist/assets/{config-navigation-iOt18Gkq.js → config-navigation-DoqQAQ4r.js} +1 -1
  57. package/dist/assets/{delete-confirm-SB_AYHUI.js → delete-confirm-DnSskM7l.js} +1 -1
  58. package/dist/assets/{detail-aujfRVSm.js → detail-Ci8NiSCn.js} +3 -3
  59. package/dist/assets/{dialog.es-BoZ8Hndg.js → dialog.es-BMiZ64Na.js} +1 -1
  60. package/dist/assets/{download-DQwdlhb7.js → download-CQnrIyxI.js} +1 -1
  61. package/dist/assets/{foldgutter.es-C0B3TZBw.js → foldgutter.es-CwNI-HCe.js} +1 -1
  62. package/dist/assets/getValidReactChildren-B0k_5T4l.js +1 -0
  63. package/dist/assets/{hint.es-8QwfI9G8.js → hint.es-00ixgdAk.js} +1 -1
  64. package/dist/assets/{hint.es2-CSc3mT9h.js → hint.es2-C3-rcHrt.js} +1 -1
  65. package/dist/assets/{iframe-BsBQ7ohV.js → iframe-DeabHXSE.js} +1 -1
  66. package/dist/assets/{index-lU5qXZaf.js → index---3vtH2U.js} +1 -1
  67. package/dist/assets/{index-DpsnjJXZ.js → index-8NMCrB3j.js} +1 -1
  68. package/dist/assets/{index-B4C9ArGO.js → index-B64gaQjP.js} +1 -1
  69. package/dist/assets/{index-hQaQ5PJ4.js → index-B6fcUPJ3.js} +1 -1
  70. package/dist/assets/{index-CpTpPC7E.js → index-B7hUdMZ8.js} +1 -1
  71. package/dist/assets/{index-BZBRVOaw.js → index-BBP_bcfC.js} +1 -1
  72. package/dist/assets/{index-uXUXUKt1.js → index-BCxgtIqq.js} +1 -1
  73. package/dist/assets/{index-DhKEzK4G.js → index-BDrD_fHI.js} +101 -101
  74. package/dist/assets/{index-_7deM5fB.js → index-BFijG_KW.js} +1 -1
  75. package/dist/assets/{index-CEXcSiNy.js → index-BHC2lQbz.js} +1 -1
  76. package/dist/assets/{index-DWzRY4Xk.js → index-BIHZHqAA.js} +1 -1
  77. package/dist/assets/{index-B4uBhVoZ.js → index-BKiZP-oY.js} +1 -1
  78. package/dist/assets/{index-FEwB9kgu.js → index-BM47dpzk.js} +1 -1
  79. package/dist/assets/{index-lfnvzeT0.js → index-BP6HGks6.js} +1 -1
  80. package/dist/assets/{index-xq7hcpVR.js → index-Bd9XKKXO.js} +1 -1
  81. package/dist/assets/{index-B-ybRhYS.js → index-Bg-k71dl.js} +3 -3
  82. package/dist/assets/{index-Cp7_fpD3.js → index-BjYxa_FW.js} +1 -1
  83. package/dist/assets/{index-DzY48FPR.js → index-BlKmxUs2.js} +1 -1
  84. package/dist/assets/{index-DiVGhjwz.js → index-BvpJfkfl.js} +1 -1
  85. package/dist/assets/{index-vVyFVEQx.js → index-BxPq_I_q.js} +1 -1
  86. package/dist/assets/{index-DBmLMLK2.js → index-BxsmNFYE.js} +1 -1
  87. package/dist/assets/{index-Dr-mhUSe.js → index-C3qp0XVq.js} +3 -3
  88. package/dist/assets/{index-BTF_a0ok.js → index-CRdLjNnY.js} +1 -1
  89. package/dist/assets/{index-W1Roe0KR.js → index-CxnHtNtW.js} +1 -1
  90. package/dist/assets/{index-7Qh6jCeM.js → index-D411TEsZ.js} +1 -1
  91. package/dist/assets/{index-CBMSKoCT.js → index-DGmY_-cU.js} +1 -1
  92. package/dist/assets/{index-DBXP37Lb.js → index-DHzzHO4l.js} +1 -1
  93. package/dist/assets/{index-PM4c29FK.js → index-DX1h0jld.js} +1 -1
  94. package/dist/assets/{index-UcfhuBCV.js → index-DZYluxeV.js} +1 -1
  95. package/dist/assets/{index-BHylZj48.js → index-DaDSaTOb.js} +1 -1
  96. package/dist/assets/{index-B6-dKqLH.js → index-DaWidKpO.js} +1 -1
  97. package/dist/assets/{index-By1cj6yo.js → index-DaaXCB2j.js} +1 -1
  98. package/dist/assets/{index-C69Wt2SK.js → index-DcjlzmZZ.js} +1 -1
  99. package/dist/assets/{index-BaJfxzLi.js → index-DettcyNk.js} +1 -1
  100. package/dist/assets/{index-AmOaldrX.js → index-DgPr-SEE.js} +1 -1
  101. package/dist/assets/{index-GRZ7T-Vj.js → index-DwIln40v.js} +1 -1
  102. package/dist/assets/{index-CvB9dSIF.js → index-OU6WftK9.js} +1 -1
  103. package/dist/assets/{index-B_W7z3II.js → index-X1NIUYGa.js} +1 -1
  104. package/dist/assets/{index-BaSZHjNU.js → index-XUnPo6Zv.js} +1 -1
  105. package/dist/assets/{index-CKyWFL_5.js → index-fjKu7md4.js} +1 -1
  106. package/dist/assets/{index-Q7qqT9VL.js → index-gA4Fo01C.js} +1 -1
  107. package/dist/assets/{index-aGlAj0Zr.js → index-l7_dfgp9.js} +1 -1
  108. package/dist/assets/{index-Z-ABz1jd.js → index-loqA2a4e.js} +5 -5
  109. package/dist/assets/{index-BNTzqgfC.js → index-vHV5CSQZ.js} +1 -1
  110. package/dist/assets/{index.es-BN3JAuK7.js → index.es-CZVlvuB_.js} +1 -1
  111. package/dist/assets/{index.esm--UowQ839.js → index.esm-Cce9Swgy.js} +1 -1
  112. package/dist/assets/{info-addon.es-CTOMNSVc.js → info-addon.es-DkaaQGew.js} +1 -1
  113. package/dist/assets/{info.es-BrcMiDXg.js → info.es-ema0ZL-Q.js} +1 -1
  114. package/dist/assets/{install-from-url-CWSHHc8X.js → install-from-url-4Qs31wHB.js} +1 -1
  115. package/dist/assets/{invitation-VBkiv8Lw.js → invitation-C5NSy9hR.js} +1 -1
  116. package/dist/assets/{is-path-prefix-equal-BRfJaTzW.js → is-path-prefix-equal-BDCXHSjQ.js} +1 -1
  117. package/dist/assets/{isEqual-RXiETUsF.js → isEqual-CVa3aWV3.js} +1 -1
  118. package/dist/assets/{item-BE4r4zK9.js → item-C97A6lh3.js} +1 -1
  119. package/dist/assets/{javascript.es-oUt02u-R.js → javascript.es-BhhkHlA-.js} +1 -1
  120. package/dist/assets/{jump-to-line.es-xeQdXXR7.js → jump-to-line.es-B9AQoVv5.js} +1 -1
  121. package/dist/assets/{jump.es-DoHQC_ja.js → jump.es-Bl3HHTMf.js} +1 -1
  122. package/dist/assets/{line-DmTazELP.js → line-Cu36WRGu.js} +3 -3
  123. package/dist/assets/{lint.es-CPYwltP7.js → lint.es-DAt4ltrq.js} +1 -1
  124. package/dist/assets/{lint.es2-6T7H8Exj.js → lint.es2-CK4KvWYS.js} +1 -1
  125. package/dist/assets/{lint.es3-Cz2FVjJI.js → lint.es3-CSS8OhqH.js} +1 -1
  126. package/dist/assets/{list-header-B6f1dZ3Q.js → list-header-BnWyPzXN.js} +1 -1
  127. package/dist/assets/{log-DfA15qoc.js → log-Bxt8skIs.js} +1 -1
  128. package/dist/assets/{lottie-C-f15GXo.js → lottie-B9uVkdkA.js} +1 -1
  129. package/dist/assets/{matchbrackets.es-BOyxvkba.js → matchbrackets.es-rBX3Rpp6.js} +1 -1
  130. package/dist/assets/{memory-BCv7wlIh.js → memory-MAYTBbXe.js} +1 -1
  131. package/dist/assets/{mode.es-DwFnPhPx.js → mode.es-DYwm_ZvI.js} +1 -1
  132. package/dist/assets/{mode.es2-BWVwRWIf.js → mode.es2-DVQIg5jy.js} +1 -1
  133. package/dist/assets/{mode.es3-BQDrBmo8.js → mode.es3-C77qHtQY.js} +1 -1
  134. package/dist/assets/{onlineParser.es-B9niO3Rc.js → onlineParser.es-Cp8jHUaE.js} +1 -1
  135. package/dist/assets/{overview-Cx_VZc65.js → overview-Dm_54e-_.js} +1 -1
  136. package/dist/assets/{react-DSqvcQYy.js → react-KceqVQPw.js} +3 -3
  137. package/dist/assets/{redux-BsHcI3_9.js → redux-CiBDQx-j.js} +1 -1
  138. package/dist/assets/{resource-dialog-DLQewgrN.js → resource-dialog-DKfH7gNO.js} +1 -1
  139. package/dist/assets/{runtime-851oSSvI.js → runtime-DRWcvnb9.js} +1 -1
  140. package/dist/assets/{schema-CHbqUY8n.js → schema-8jXZYKt1.js} +1 -1
  141. package/dist/assets/sdk-Czu0utu6.js +1 -0
  142. package/dist/assets/{search.es-BwvbmPsk.js → search.es-B3C3VlXy.js} +1 -1
  143. package/dist/assets/{searchcursor.es-mmx6SXwj.js → searchcursor.es-DHswSC6o.js} +1 -1
  144. package/dist/assets/service-B2aLyew7.js +1 -0
  145. package/dist/assets/{shorten-label-Zm18p2j_.js → shorten-label-DXi72gK_.js} +1 -1
  146. package/dist/assets/{show-hint.es-BWO21koW.js → show-hint.es-CHMuXhEP.js} +1 -1
  147. package/dist/assets/{slicedToArray-CSiWJNnp.js → slicedToArray-BH180jt0.js} +1 -1
  148. package/dist/assets/{spaces-B_PEyuiK.js → spaces-DPmn7Ixz.js} +1 -1
  149. package/dist/assets/{sublime.es-DbB59fDR.js → sublime.es-DPeDRZAK.js} +1 -1
  150. package/dist/assets/{switch-control-CVljCfLQ.js → switch-control-DgudQ7xJ.js} +1 -1
  151. package/dist/assets/{table-icons-DRSK9N17.js → table-icons-D2lIfhZB.js} +2 -2
  152. package/dist/assets/{tag-s8n8kLNC.js → tag-YDLGqrKL.js} +1 -1
  153. package/dist/assets/{team-DcawcK1N.js → team-B_2aJZYH.js} +1 -1
  154. package/dist/assets/{toUpper-Caw7x1nX.js → toUpper-BcdXOnTm.js} +1 -1
  155. package/dist/assets/{traffic-Cp_OUEwu.js → traffic-U-8839pE.js} +1 -1
  156. package/dist/assets/{url-evaluation-85NTzVAr.js → url-evaluation-CRswLKtR.js} +1 -1
  157. package/dist/assets/{url-join-BTiLIGs1.js → url-join-CRBY0NF3.js} +1 -1
  158. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-B_L8zOwH.js → use-blocklet-info-for-connect-did-spaces-4EmGfNXu.js} +1 -1
  159. package/dist/assets/{useLocalStorage-Dkuy7Y9c.js → useLocalStorage-VWzx8b6q.js} +1 -1
  160. package/dist/assets/{useThemeProps-DY6u-Sl5.js → useThemeProps-Cl9QuE5d.js} +1 -1
  161. package/dist/assets/{util-CR7yn4Rx.js → util-HRQZ4TOP.js} +1 -1
  162. package/dist/assets/{wait-container-D6A_wUSz.js → wait-container-UBvRSFVU.js} +1 -1
  163. package/dist/assets/{withStyles-B8wbvHA2.js → withStyles-Bapg8CLX.js} +1 -1
  164. package/dist/assets/{wrap-locale-B0GJBc6u.js → wrap-locale-BQ1h9Vt5.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-CaAz8YM2.js +0 -1
  169. package/dist/assets/actions-ByIKLhO5.js +0 -11
  170. package/dist/assets/api-px2wpsj4.js +0 -1
  171. package/dist/assets/blocklet-BkUmmvf6.js +0 -1
  172. package/dist/assets/getValidReactChildren-COQgThjG.js +0 -1
  173. package/dist/assets/sdk-BNPz4UBQ.js +0 -1
  174. package/dist/assets/service-CeSZ159H.js +0 -1
@@ -1 +1 @@
1
- import{dV as S}from"./index-DhKEzK4G.js";function I(r,t,n){return t=S(t),t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function h(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),n.push.apply(n,e)}return n}function m(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(e){I(r,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function i(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var E=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),v=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+v(),REPLACE:"@@redux/REPLACE"+v(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+v()}};function R(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function T(r,t,n){var e;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(i(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(i(1));return n(T)(r,t)}if(typeof r!="function")throw new Error(i(2));var u=r,a=t,p=[],c=p,f=!1;function w(){c===p&&(c=p.slice())}function g(){if(f)throw new Error(i(3));return a}function O(o){if(typeof o!="function")throw new Error(i(4));if(f)throw new Error(i(5));var l=!0;return w(),c.push(o),function(){if(l){if(f)throw new Error(i(6));l=!1,w();var s=c.indexOf(o);c.splice(s,1),p=null}}}function y(o){if(!R(o))throw new Error(i(7));if(typeof o.type>"u")throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,a=u(a,o)}finally{f=!1}for(var l=p=c,b=0;b<l.length;b++){var s=l[b];s()}return o}function N(o){if(typeof o!="function")throw new Error(i(10));u=o,y({type:P.REPLACE})}function A(){var o,l=O;return o={subscribe:function(s){if(typeof s!="object"||s===null)throw new Error(i(11));function d(){s.next&&s.next(g())}d();var x=l(d);return{unsubscribe:x}}},o[E]=function(){return this},o}return y({type:P.INIT}),e={dispatch:y,subscribe:O,getState:g,replaceReducer:N},e[E]=A,e}function j(r,t){return function(){return t(r.apply(this,arguments))}}function K(r,t){if(typeof r=="function")return j(r,t);if(typeof r!="object"||r===null)throw new Error(i(16));var n={};for(var e in r){var u=r[e];typeof u=="function"&&(n[e]=j(u,t))}return n}function L(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,u){return function(){return e(u.apply(void 0,arguments))}})}function M(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return function(e){return function(){var u=e.apply(void 0,arguments),a=function(){throw new Error(i(15))},p={getState:u.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(f){return f(p)});return a=L.apply(void 0,c)(u.dispatch),m(m({},u),{},{dispatch:a})}}}export{I as _,M as a,K as b,T as c,L as d};
1
+ import{dV as S}from"./index-BDrD_fHI.js";function I(r,t,n){return t=S(t),t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function h(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),n.push.apply(n,e)}return n}function m(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(e){I(r,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function i(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var E=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),v=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+v(),REPLACE:"@@redux/REPLACE"+v(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+v()}};function R(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function T(r,t,n){var e;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(i(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(i(1));return n(T)(r,t)}if(typeof r!="function")throw new Error(i(2));var u=r,a=t,p=[],c=p,f=!1;function w(){c===p&&(c=p.slice())}function g(){if(f)throw new Error(i(3));return a}function O(o){if(typeof o!="function")throw new Error(i(4));if(f)throw new Error(i(5));var l=!0;return w(),c.push(o),function(){if(l){if(f)throw new Error(i(6));l=!1,w();var s=c.indexOf(o);c.splice(s,1),p=null}}}function y(o){if(!R(o))throw new Error(i(7));if(typeof o.type>"u")throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,a=u(a,o)}finally{f=!1}for(var l=p=c,b=0;b<l.length;b++){var s=l[b];s()}return o}function N(o){if(typeof o!="function")throw new Error(i(10));u=o,y({type:P.REPLACE})}function A(){var o,l=O;return o={subscribe:function(s){if(typeof s!="object"||s===null)throw new Error(i(11));function d(){s.next&&s.next(g())}d();var x=l(d);return{unsubscribe:x}}},o[E]=function(){return this},o}return y({type:P.INIT}),e={dispatch:y,subscribe:O,getState:g,replaceReducer:N},e[E]=A,e}function j(r,t){return function(){return t(r.apply(this,arguments))}}function K(r,t){if(typeof r=="function")return j(r,t);if(typeof r!="object"||r===null)throw new Error(i(16));var n={};for(var e in r){var u=r[e];typeof u=="function"&&(n[e]=j(u,t))}return n}function L(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,u){return function(){return e(u.apply(void 0,arguments))}})}function M(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return function(e){return function(){var u=e.apply(void 0,arguments),a=function(){throw new Error(i(15))},p={getState:u.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(f){return f(p)});return a=L.apply(void 0,c)(u.dispatch),m(m({},u),{},{dispatch:a})}}}export{I as _,M as a,K as b,T as c,L as d};
@@ -1,4 +1,4 @@
1
- import{P as g,j as a,O as x,d0 as q,fL as ee,dN as ce,r as A,a1 as Oe,cB as Le,q as Fe,ch as Ae,fz as We,fJ as Ve,g2 as He,dP as Ye,f_ as Ge,dO as Ke,a2 as _e,fc as Re,gb as Xe,av as ze,n as Ne,cN as Ze,g as Je,cz as Qe,gc as $e}from"./index-DhKEzK4G.js";import"./index-BaJfxzLi.js";function be({optionalComponent:n,index:b,installStatus:w,hasPermission:l,t:_}){const E=()=>{window.open(n==null?void 0:n.installUrl,"_blank")},R=()=>{window.open(n==null?void 0:n.storeUrl,"_blank")},S=()=>{window.location.reload()},O=w==="stopped"||w==="running",y=60;return a.jsxs(x,{children:[b===0?null:a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsxs(x,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[a.jsx("img",{style:{width:y,height:y,minWidth:y,minHeight:y},src:n.logoUrl,alt:n.meta.title}),a.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[a.jsxs(x,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var j;return R((j=n.meta)==null?void 0:j.did)},children:[n.meta.title,a.jsxs(x,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[n.meta.version,a.jsx(ee,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:q.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),a.jsx(x,{sx:{marginTop:0,opacity:.7},children:n.meta.description}),a.jsx(x,{sx:{display:l?"flex":"none",flexDirection:"row",gap:1},children:w?a.jsx(x,{sx:{marginTop:2,opacity:.7},children:O?a.jsx(ce,{variant:"contained",onClick:S,children:_("componentInstallerRefresh")},"refresh"):a.jsx(ce,{disabled:!0,sx:{color:"#333"},startIcon:a.jsx(ee,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:w},"status")}):a.jsx(ce,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var j;return E((j=n.meta)==null?void 0:j.did)},children:_("componentInstallerInstall")},"install")}),O?a.jsx(x,{sx:{marginTop:2,opacity:.7},children:_("componentInstallerSuccessInstalled")}):null]})]})]})}be.propTypes={t:g.func.isRequired,optionalComponent:g.object.isRequired,index:g.number.isRequired,installStatus:g.string,hasPermission:g.bool.isRequired};be.defaultProps={installStatus:""};const ei={zh:{componentInstallerTitle:"缺少组件",componentInstallerInstall:"安装",componentInstallerClose:"关闭",componentInstallerRefresh:"重载页面",componentInstallerSuccessInstalled:"安装成功,请重载页面查看变化。",componentInstallerSuggestions:"请联系系统管理员安装该组件。",componentInstallerNoDefinedInBlockletYML:"组件未在 blocklet.yml 中定义"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}},de=n=>typeof n=="string"?new Set(n.split(";;")):new Set(n);function ii({did:n,onInstalled:b,onError:w}){const l=Array.isArray(n)?n.join(";;"):n,[_,E]=A.useState({}),R=A.useRef({onInstalled:b,onError:w});R.current={onInstalled:b,onError:w};const{optionalComponents:S,componentMountPoints:O}=window.blocklet,y=A.useMemo(()=>{var o;if(!S||!S.length)return[];const m=de(l),e=S.filter(i=>m.has(i.meta.did));return(o=e?R.current.onError:R.current.onInstalled)==null||o(e),e},[l,S]),j=A.useMemo(()=>{if(y.length)return!0;const m=de(l);return(O||[]).find(e=>m.has(e.did))},[y,O,l]);return y.forEach(m=>{m.storeUrl=Oe(m.meta.homepage,"blocklets",m.meta.did),m.installUrl=Oe(window.blocklet.appUrl,Le,`/admin/components?install-component=${m.meta.did}`)}),A.useEffect(()=>{const m=e=>{var o,i,t,r,I;if(e.origin===window.blocklet.appUrl&&((o=e.data)==null?void 0:o.kind)==="component-installer"&&(t=(i=e.data)==null?void 0:i.blocklet)!=null&&t.children){let T=!1;const c=de(l);(I=(r=e.data)==null?void 0:r.blocklet)==null||I.children.forEach(s=>{var k;c.has((k=s.meta)==null?void 0:k.did)&&(T=!0,E(P=>{var D;return{...P,[(D=s.meta)==null?void 0:D.did]:s.status||"waiting"}}))}),T||E({})}};return window.addEventListener("message",m),()=>{window.removeEventListener("message",m)}},[l]),{optComponents:y,installed:!y.length&&j,installStatus:_,setInstallStatus:E,definedInBlockletYML:j}}function V({warnIcon:n,did:b,noPermissionMute:w,onInstalled:l,onError:_,children:E,closeByOutSize:R,onClose:S,fallback:O,disabled:y,roles:j=["owner","admin"]}){const{locale:m}=Fe(),e=Ae((c,s={})=>We(ei,c,m,"en",s)),{installed:o,optComponents:i,installStatus:t,definedInBlockletYML:r}=ii({did:b,onInstalled:l,onError:_}),I=A.useContext(Ve),T=()=>{S==null||S(!1)};return y?E:a.jsx(He,{session:I==null?void 0:I.session,roles:j,children:({hasPermission:c})=>o?E:w&&!c?O||null:typeof E=="function"?a.jsxs(a.Fragment,{children:[O,E({hasPermission:c,optComponents:i,installStatus:t})]}):a.jsxs(a.Fragment,{children:[O,a.jsx(Ye,{onClickAway:s=>{s.preventDefault(),s.stopPropagation(),R&&T()},children:a.jsx(Ge,{in:!0,timeout:350,children:a.jsx(Ke,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:q.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:`0px 8px 16px 0px ${q.gray6}, 0px 0px 0px 1px ${q.gray6}`},children:r?a.jsxs(x,{sx:{display:"flex",flexDirection:"column"},children:[a.jsxs(x,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[n||a.jsx(ee,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),a.jsx(x,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),a.jsx(x,{sx:{flex:1}}),S?a.jsx(_e,{variant:"outlined",className:"button",onClick:T,children:a.jsx(Re,{})}):null]}),a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsx(x,{sx:{maxHeight:"70vh",overflowY:"auto"},children:i.map((s,k)=>{var P,D;return a.jsx(be,{t:e,hasPermission:c,index:k,optionalComponent:s,installStatus:t[(P=s.meta)==null?void 0:P.did]},((D=s.meta)==null?void 0:D.did)||k)})}),c?null:a.jsxs(a.Fragment,{children:[a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsx(x,{sx:{padding:"20px 24px"},children:a.jsx(x,{sx:{opacity:1},children:e("componentInstallerSuggestions")})})]})]}):a.jsxs(x,{sx:{display:"flex",flexDirection:"column"},children:[a.jsxs(x,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[n||a.jsx(ee,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),a.jsx(x,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),a.jsx(x,{sx:{flex:1}}),S?a.jsx(_e,{variant:"outlined",className:"button",onClick:T,children:a.jsx(Re,{})}):null]}),a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsxs(x,{sx:{padding:"20px 24px",marginTop:0},children:[e("componentInstallerNoDefinedInBlockletYML"),": ",b]})]})})})})]})})}V.propTypes={disabled:g.bool,warnIcon:g.node,did:g.oneOfType([g.string,g.arrayOf(g.string)]).isRequired,noPermissionMute:g.bool,onInstalled:g.func,onError:g.func,children:g.any.isRequired,closeByOutSize:g.bool,onClose:g.func,fallback:g.node,roles:g.array};V.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]};function De(n){return window.blocklet?a.jsx(V,{...n}):n.children}De.propTypes={...V.propTypes,children:g.any.isRequired};De.defaultProps={...V.defaultProps};var pe={};Object.defineProperty(pe,"__esModule",{value:!0});var ti=pe.default=void 0;oi(A);var Te=a;function oi(n){return n&&n.__esModule?n:{default:n}}function Pe(n,b){var w=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);b&&(l=l.filter(function(_){return Object.getOwnPropertyDescriptor(n,_).enumerable})),w.push.apply(w,l)}return w}function Me(n){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?Pe(Object(w),!0).forEach(function(l){ri(n,l,w[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(w)):Pe(Object(w)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(w,l))})}return n}function ri(n,b,w){return b=ni(b),b in n?Object.defineProperty(n,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):n[b]=w,n}function ni(n){var b=ai(n,"string");return typeof b=="symbol"?b:String(b)}function ai(n,b){if(typeof n!="object"||!n)return n;var w=n[Symbol.toPrimitive];if(w!==void 0){var l=w.call(n,b||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(n)}var we=function(b){return(0,Te.jsx)("svg",Me(Me({},b),{},{children:(0,Te.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};we.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};we.displayName="revoke";ti=pe.default=we;g.any.isRequired,g.any.isRequired,g.string.isRequired,g.func.isRequired,g.any,g.any,g.number;A.createContext({});const ui=new Xe;ze.defaults.timeout=10*1e3;ze.create();Ne(x)`
1
+ import{P as g,j as a,O as x,d0 as q,fL as ee,dN as ce,r as A,a1 as Oe,cB as Le,q as Fe,ch as Ae,fz as We,fJ as Ve,g2 as He,dP as Ye,f_ as Ge,dO as Ke,a2 as _e,fc as Re,gb as Xe,av as ze,n as Ne,cN as Ze,g as Je,cz as Qe,gc as $e}from"./index-BDrD_fHI.js";import"./index-DettcyNk.js";function be({optionalComponent:n,index:b,installStatus:w,hasPermission:l,t:_}){const E=()=>{window.open(n==null?void 0:n.installUrl,"_blank")},R=()=>{window.open(n==null?void 0:n.storeUrl,"_blank")},S=()=>{window.location.reload()},O=w==="stopped"||w==="running",y=60;return a.jsxs(x,{children:[b===0?null:a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsxs(x,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[a.jsx("img",{style:{width:y,height:y,minWidth:y,minHeight:y},src:n.logoUrl,alt:n.meta.title}),a.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[a.jsxs(x,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var j;return R((j=n.meta)==null?void 0:j.did)},children:[n.meta.title,a.jsxs(x,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[n.meta.version,a.jsx(ee,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:q.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),a.jsx(x,{sx:{marginTop:0,opacity:.7},children:n.meta.description}),a.jsx(x,{sx:{display:l?"flex":"none",flexDirection:"row",gap:1},children:w?a.jsx(x,{sx:{marginTop:2,opacity:.7},children:O?a.jsx(ce,{variant:"contained",onClick:S,children:_("componentInstallerRefresh")},"refresh"):a.jsx(ce,{disabled:!0,sx:{color:"#333"},startIcon:a.jsx(ee,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:w},"status")}):a.jsx(ce,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var j;return E((j=n.meta)==null?void 0:j.did)},children:_("componentInstallerInstall")},"install")}),O?a.jsx(x,{sx:{marginTop:2,opacity:.7},children:_("componentInstallerSuccessInstalled")}):null]})]})]})}be.propTypes={t:g.func.isRequired,optionalComponent:g.object.isRequired,index:g.number.isRequired,installStatus:g.string,hasPermission:g.bool.isRequired};be.defaultProps={installStatus:""};const ei={zh:{componentInstallerTitle:"缺少组件",componentInstallerInstall:"安装",componentInstallerClose:"关闭",componentInstallerRefresh:"重载页面",componentInstallerSuccessInstalled:"安装成功,请重载页面查看变化。",componentInstallerSuggestions:"请联系系统管理员安装该组件。",componentInstallerNoDefinedInBlockletYML:"组件未在 blocklet.yml 中定义"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}},de=n=>typeof n=="string"?new Set(n.split(";;")):new Set(n);function ii({did:n,onInstalled:b,onError:w}){const l=Array.isArray(n)?n.join(";;"):n,[_,E]=A.useState({}),R=A.useRef({onInstalled:b,onError:w});R.current={onInstalled:b,onError:w};const{optionalComponents:S,componentMountPoints:O}=window.blocklet,y=A.useMemo(()=>{var o;if(!S||!S.length)return[];const m=de(l),e=S.filter(i=>m.has(i.meta.did));return(o=e?R.current.onError:R.current.onInstalled)==null||o(e),e},[l,S]),j=A.useMemo(()=>{if(y.length)return!0;const m=de(l);return(O||[]).find(e=>m.has(e.did))},[y,O,l]);return y.forEach(m=>{m.storeUrl=Oe(m.meta.homepage,"blocklets",m.meta.did),m.installUrl=Oe(window.blocklet.appUrl,Le,`/admin/components?install-component=${m.meta.did}`)}),A.useEffect(()=>{const m=e=>{var o,i,t,r,I;if(e.origin===window.blocklet.appUrl&&((o=e.data)==null?void 0:o.kind)==="component-installer"&&(t=(i=e.data)==null?void 0:i.blocklet)!=null&&t.children){let T=!1;const c=de(l);(I=(r=e.data)==null?void 0:r.blocklet)==null||I.children.forEach(s=>{var k;c.has((k=s.meta)==null?void 0:k.did)&&(T=!0,E(P=>{var D;return{...P,[(D=s.meta)==null?void 0:D.did]:s.status||"waiting"}}))}),T||E({})}};return window.addEventListener("message",m),()=>{window.removeEventListener("message",m)}},[l]),{optComponents:y,installed:!y.length&&j,installStatus:_,setInstallStatus:E,definedInBlockletYML:j}}function V({warnIcon:n,did:b,noPermissionMute:w,onInstalled:l,onError:_,children:E,closeByOutSize:R,onClose:S,fallback:O,disabled:y,roles:j=["owner","admin"]}){const{locale:m}=Fe(),e=Ae((c,s={})=>We(ei,c,m,"en",s)),{installed:o,optComponents:i,installStatus:t,definedInBlockletYML:r}=ii({did:b,onInstalled:l,onError:_}),I=A.useContext(Ve),T=()=>{S==null||S(!1)};return y?E:a.jsx(He,{session:I==null?void 0:I.session,roles:j,children:({hasPermission:c})=>o?E:w&&!c?O||null:typeof E=="function"?a.jsxs(a.Fragment,{children:[O,E({hasPermission:c,optComponents:i,installStatus:t})]}):a.jsxs(a.Fragment,{children:[O,a.jsx(Ye,{onClickAway:s=>{s.preventDefault(),s.stopPropagation(),R&&T()},children:a.jsx(Ge,{in:!0,timeout:350,children:a.jsx(Ke,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:q.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:`0px 8px 16px 0px ${q.gray6}, 0px 0px 0px 1px ${q.gray6}`},children:r?a.jsxs(x,{sx:{display:"flex",flexDirection:"column"},children:[a.jsxs(x,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[n||a.jsx(ee,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),a.jsx(x,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),a.jsx(x,{sx:{flex:1}}),S?a.jsx(_e,{variant:"outlined",className:"button",onClick:T,children:a.jsx(Re,{})}):null]}),a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsx(x,{sx:{maxHeight:"70vh",overflowY:"auto"},children:i.map((s,k)=>{var P,D;return a.jsx(be,{t:e,hasPermission:c,index:k,optionalComponent:s,installStatus:t[(P=s.meta)==null?void 0:P.did]},((D=s.meta)==null?void 0:D.did)||k)})}),c?null:a.jsxs(a.Fragment,{children:[a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsx(x,{sx:{padding:"20px 24px"},children:a.jsx(x,{sx:{opacity:1},children:e("componentInstallerSuggestions")})})]})]}):a.jsxs(x,{sx:{display:"flex",flexDirection:"column"},children:[a.jsxs(x,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[n||a.jsx(ee,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),a.jsx(x,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),a.jsx(x,{sx:{flex:1}}),S?a.jsx(_e,{variant:"outlined",className:"button",onClick:T,children:a.jsx(Re,{})}):null]}),a.jsx(x,{sx:{width:"100%",height:"1px",backgroundColor:q.gray6}}),a.jsxs(x,{sx:{padding:"20px 24px",marginTop:0},children:[e("componentInstallerNoDefinedInBlockletYML"),": ",b]})]})})})})]})})}V.propTypes={disabled:g.bool,warnIcon:g.node,did:g.oneOfType([g.string,g.arrayOf(g.string)]).isRequired,noPermissionMute:g.bool,onInstalled:g.func,onError:g.func,children:g.any.isRequired,closeByOutSize:g.bool,onClose:g.func,fallback:g.node,roles:g.array};V.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]};function De(n){return window.blocklet?a.jsx(V,{...n}):n.children}De.propTypes={...V.propTypes,children:g.any.isRequired};De.defaultProps={...V.defaultProps};var pe={};Object.defineProperty(pe,"__esModule",{value:!0});var ti=pe.default=void 0;oi(A);var Te=a;function oi(n){return n&&n.__esModule?n:{default:n}}function Pe(n,b){var w=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);b&&(l=l.filter(function(_){return Object.getOwnPropertyDescriptor(n,_).enumerable})),w.push.apply(w,l)}return w}function Me(n){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?Pe(Object(w),!0).forEach(function(l){ri(n,l,w[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(w)):Pe(Object(w)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(w,l))})}return n}function ri(n,b,w){return b=ni(b),b in n?Object.defineProperty(n,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):n[b]=w,n}function ni(n){var b=ai(n,"string");return typeof b=="symbol"?b:String(b)}function ai(n,b){if(typeof n!="object"||!n)return n;var w=n[Symbol.toPrimitive];if(w!==void 0){var l=w.call(n,b||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(n)}var we=function(b){return(0,Te.jsx)("svg",Me(Me({},b),{},{children:(0,Te.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};we.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};we.displayName="revoke";ti=pe.default=we;g.any.isRequired,g.any.isRequired,g.string.isRequired,g.func.isRequired,g.any,g.any,g.number;A.createContext({});const ui=new Xe;ze.defaults.timeout=10*1e3;ze.create();Ne(x)`
2
2
  .selected-container {
3
3
  position: absolute;
4
4
  right: 0px;
@@ -1 +1 @@
1
- import{j as e,G as y,P as s,n as b,m as p,q as k,r as x,M as h,O as u,l as v,p as B,o as R}from"./index-DhKEzK4G.js";import{D as U}from"./index-BZBRVOaw.js";import{u as L}from"./blocklet-BkUmmvf6.js";import{C as M,M as C}from"./memory-BCv7wlIh.js";import{B as D}from"./bundle-avatar-FKqqno38.js";import"./FilterList-CtKjjq1V.js";import"./useThemeProps-DY6u-Sl5.js";import"./Select-BAE2ztrO.js";import"./Delete-Di-3Vxhz.js";import"./InputLabel-E2n2XENL.js";import"./TextField-UIj7bh4L.js";import"./LastPage-Dk3Ng8r_.js";import"./index-DzY48FPR.js";import"./redux-BsHcI3_9.js";import"./Search-Drx5S2Fc.js";import"./index-PM4c29FK.js";import"./MoreVert-CGx6Mqxv.js";import"./chart-CRT8ZY2D.js";function g({blocklet:r,cpuHistory:i,memoryHistory:n,...m}){const l=r.appRuntimeInfo||{};return e.jsx(N,{component:"div",...m,children:e.jsxs(y,{className:"page-metrics",container:!0,spacing:5,children:[e.jsx(y,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!i.length&&e.jsx(M,{currentLoad:l.cpuUsage||0,history:i,style:{height:150}})},"cpu"),e.jsx(y,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!n.length&&e.jsx(C,{used:l.memoryUsage||0,history:n,style:{height:150}})},"memory")]})})}g.propTypes={blocklet:s.object.isRequired,cpuHistory:s.arrayOf(s.shape({date:s.number,value:s.number})),memoryHistory:s.arrayOf(s.shape({date:s.number,value:s.number}))};g.defaultProps={cpuHistory:[],memoryHistory:[]};const N=b(p)``;function P(){const{t:r,locale:i}=k(),{blocklet:n,runtimeHistory:m,actions:{refreshBlocklet:l}}=L(),a=x.useMemo(()=>{const t=[];return h.forEachBlockletSync(n,(o,{ancestors:f,id:d,level:c})=>{o.runtimeInfo&&t.push({type:"blocklet",groupId:n.meta.did,groupName:h.getDisplayName(n),id:d,name:h.getDisplayName(o,!0),blocklet:n,component:o,level:c-1>=0?c-1:0,runtimeInfo:o.runtimeInfo,ancestors:f})}),t},[n]);x.useEffect(()=>{const t=setInterval(()=>{l()},1e4);return()=>{clearInterval(t)}},[]);const I=t=>B(Number(t||0),{locale:R(i)}),j=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(t){const{name:o,component:f,level:d,ancestors:c}=a[t];return e.jsxs(u,{display:"flex",alignItems:"center",pl:d*2,children:[e.jsx(D,{size:14,blocklet:f,ancestors:c}),e.jsx(u,{ml:1,children:o})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(t){const{runtimeInfo:o}=a[t];return I(o.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=a[t];return v((o==null?void 0:o.memoryUsage)||0)}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=a[t];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return e.jsxs(H,{component:"div",children:[e.jsx(p,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:r("analytics.trend")}),n.status==="running"?[e.jsx(u,{children:e.jsx(g,{blocklet:n,cpuHistory:m.cpu,memoryHistory:m.memory})}),e.jsx(u,{mt:3,children:e.jsx(U,{title:r("analytics.detail"),className:"monitor-table",locale:i,data:a,columns:j,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]:e.jsx(p,{children:r("blocklet.runtimeInfo.noRunning")})]})}P.propTypes={};const H=b(p)``;export{P as default};
1
+ import{j as e,G as y,P as s,n as b,m as p,q as k,r as x,M as h,O as u,l as v,p as B,o as R}from"./index-BDrD_fHI.js";import{D as U}from"./index-BBP_bcfC.js";import{u as L}from"./blocklet-D4MK-c5F.js";import{C as M,M as C}from"./memory-MAYTBbXe.js";import{B as D}from"./bundle-avatar-Cg7zVRxA.js";import"./FilterList-BSeq1JN5.js";import"./useThemeProps-Cl9QuE5d.js";import"./Select-BlKQA6P8.js";import"./Delete-BYMXUEW-.js";import"./InputLabel-jiyrQePY.js";import"./TextField-0SCRdagF.js";import"./LastPage-DreQg_mv.js";import"./index-BlKmxUs2.js";import"./redux-CiBDQx-j.js";import"./Search-DKFOsHOn.js";import"./index-DX1h0jld.js";import"./MoreVert-DxCDVcE0.js";import"./chart-CP1zmvYY.js";function g({blocklet:r,cpuHistory:i,memoryHistory:n,...m}){const l=r.appRuntimeInfo||{};return e.jsx(N,{component:"div",...m,children:e.jsxs(y,{className:"page-metrics",container:!0,spacing:5,children:[e.jsx(y,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!i.length&&e.jsx(M,{currentLoad:l.cpuUsage||0,history:i,style:{height:150}})},"cpu"),e.jsx(y,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!n.length&&e.jsx(C,{used:l.memoryUsage||0,history:n,style:{height:150}})},"memory")]})})}g.propTypes={blocklet:s.object.isRequired,cpuHistory:s.arrayOf(s.shape({date:s.number,value:s.number})),memoryHistory:s.arrayOf(s.shape({date:s.number,value:s.number}))};g.defaultProps={cpuHistory:[],memoryHistory:[]};const N=b(p)``;function P(){const{t:r,locale:i}=k(),{blocklet:n,runtimeHistory:m,actions:{refreshBlocklet:l}}=L(),a=x.useMemo(()=>{const t=[];return h.forEachBlockletSync(n,(o,{ancestors:f,id:d,level:c})=>{o.runtimeInfo&&t.push({type:"blocklet",groupId:n.meta.did,groupName:h.getDisplayName(n),id:d,name:h.getDisplayName(o,!0),blocklet:n,component:o,level:c-1>=0?c-1:0,runtimeInfo:o.runtimeInfo,ancestors:f})}),t},[n]);x.useEffect(()=>{const t=setInterval(()=>{l()},1e4);return()=>{clearInterval(t)}},[]);const I=t=>B(Number(t||0),{locale:R(i)}),j=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(t){const{name:o,component:f,level:d,ancestors:c}=a[t];return e.jsxs(u,{display:"flex",alignItems:"center",pl:d*2,children:[e.jsx(D,{size:14,blocklet:f,ancestors:c}),e.jsx(u,{ml:1,children:o})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(t){const{runtimeInfo:o}=a[t];return I(o.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=a[t];return v((o==null?void 0:o.memoryUsage)||0)}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=a[t];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return e.jsxs(H,{component:"div",children:[e.jsx(p,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:r("analytics.trend")}),n.status==="running"?[e.jsx(u,{children:e.jsx(g,{blocklet:n,cpuHistory:m.cpu,memoryHistory:m.memory})}),e.jsx(u,{mt:3,children:e.jsx(U,{title:r("analytics.detail"),className:"monitor-table",locale:i,data:a,columns:j,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]:e.jsx(p,{children:r("blocklet.runtimeInfo.noRunning")})]})}P.propTypes={};const H=b(p)``;export{P as default};