@abtnode/blocklet-services 1.16.20-beta-9c254d14 → 1.16.20-beta-e6e3b017

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 (148) hide show
  1. package/api/index.js +1 -0
  2. package/api/services/notification/index.js +21 -4
  3. package/api/services/static.js +1 -1
  4. package/api/socket/channel/did.js +42 -1
  5. package/package.json +36 -39
  6. package/build/asset-manifest.json +0 -225
  7. package/build/favicon.ico +0 -0
  8. package/build/images/blocklet.png +0 -0
  9. package/build/images/https-certificate-icon.png +0 -0
  10. package/build/images/logo.png +0 -0
  11. package/build/index.html +0 -1
  12. package/build/router-template-styles/fonts/lato-latin-400-normal.woff +0 -0
  13. package/build/router-template-styles/fonts/lato-latin-400-normal.woff2 +0 -0
  14. package/build/router-template-styles/fonts/lato-latin-ext-400-normal.woff +0 -0
  15. package/build/router-template-styles/fonts/lato-latin-ext-400-normal.woff2 +0 -0
  16. package/build/router-template-styles/styles.css +0 -1
  17. package/build/service-worker.js +0 -3
  18. package/build/service-worker.js.LICENSE.txt +0 -1
  19. package/build/service-worker.js.map +0 -1
  20. package/build/static/css/3154.e954fcda.chunk.css +0 -2
  21. package/build/static/css/424.13cf051c.chunk.css +0 -2
  22. package/build/static/css/4802.bf353f58.chunk.css +0 -2
  23. package/build/static/css/5547.75913953.chunk.css +0 -12
  24. package/build/static/css/5982.ac464505.chunk.css +0 -2
  25. package/build/static/css/main.7ea79dc8.css +0 -2
  26. package/build/static/js/1.138935fc.chunk.js +0 -2
  27. package/build/static/js/1035.ceeeaa2a.chunk.js +0 -2
  28. package/build/static/js/1148.d3c53aea.chunk.js +0 -2
  29. package/build/static/js/1249.ce085f29.chunk.js +0 -3
  30. package/build/static/js/1249.ce085f29.chunk.js.LICENSE.txt +0 -5
  31. package/build/static/js/1275.34d2fab6.chunk.js +0 -2
  32. package/build/static/js/1318.11dffa16.chunk.js +0 -2
  33. package/build/static/js/1343.69031e0b.chunk.js +0 -2
  34. package/build/static/js/1359.add26d23.chunk.js +0 -2
  35. package/build/static/js/1809.df394bcb.chunk.js +0 -2
  36. package/build/static/js/1946.b8762af5.chunk.js +0 -2
  37. package/build/static/js/2291.7ffdc7df.chunk.js +0 -2
  38. package/build/static/js/2362.ab5308a8.chunk.js +0 -2
  39. package/build/static/js/2631.54f86f84.chunk.js +0 -2
  40. package/build/static/js/2653.980158ea.chunk.js +0 -2
  41. package/build/static/js/2664.da443f31.chunk.js +0 -2
  42. package/build/static/js/2940.5fc76234.chunk.js +0 -2
  43. package/build/static/js/2988.62cc135c.chunk.js +0 -2
  44. package/build/static/js/3025.76882d0f.chunk.js +0 -2
  45. package/build/static/js/3033.f950a32b.chunk.js +0 -2
  46. package/build/static/js/3131.ccb42c1c.chunk.js +0 -2
  47. package/build/static/js/3430.28c5bd04.chunk.js +0 -2
  48. package/build/static/js/356.0210d3f8.chunk.js +0 -2
  49. package/build/static/js/3593.b9a1a7f5.chunk.js +0 -2
  50. package/build/static/js/3842.22c00915.chunk.js +0 -3
  51. package/build/static/js/3842.22c00915.chunk.js.LICENSE.txt +0 -5
  52. package/build/static/js/3925.948d992d.chunk.js +0 -2
  53. package/build/static/js/3953.ddf8be86.chunk.js +0 -2
  54. package/build/static/js/3979.2e0c92ff.chunk.js +0 -3
  55. package/build/static/js/3979.2e0c92ff.chunk.js.LICENSE.txt +0 -155
  56. package/build/static/js/3994.e53e7ce2.chunk.js +0 -2
  57. package/build/static/js/4009.65d1c083.chunk.js +0 -2
  58. package/build/static/js/4023.8c5c7db4.chunk.js +0 -2
  59. package/build/static/js/4076.8055ce74.chunk.js +0 -2
  60. package/build/static/js/424.d91b48b7.chunk.js +0 -3
  61. package/build/static/js/424.d91b48b7.chunk.js.LICENSE.txt +0 -23
  62. package/build/static/js/4319.8d9e189e.chunk.js +0 -2
  63. package/build/static/js/4461.a64e7486.chunk.js +0 -2
  64. package/build/static/js/4587.0d0fd3ae.chunk.js +0 -2
  65. package/build/static/js/476.f196e88a.chunk.js +0 -2
  66. package/build/static/js/4802.217e3956.chunk.js +0 -2
  67. package/build/static/js/4881.1de6ed4a.chunk.js +0 -2
  68. package/build/static/js/4882.0435e418.chunk.js +0 -2
  69. package/build/static/js/4917.6e72ef28.chunk.js +0 -2
  70. package/build/static/js/4961.89add60c.chunk.js +0 -3
  71. package/build/static/js/4961.89add60c.chunk.js.LICENSE.txt +0 -5
  72. package/build/static/js/5070.be5019aa.chunk.js +0 -2
  73. package/build/static/js/5403.56417480.chunk.js +0 -3
  74. package/build/static/js/5403.56417480.chunk.js.LICENSE.txt +0 -26
  75. package/build/static/js/5434.523d071d.chunk.js +0 -2
  76. package/build/static/js/5468.21a861b9.chunk.js +0 -2
  77. package/build/static/js/5509.a196d497.chunk.js +0 -3
  78. package/build/static/js/5509.a196d497.chunk.js.LICENSE.txt +0 -1
  79. package/build/static/js/5547.7468ef6a.chunk.js +0 -3
  80. package/build/static/js/5547.7468ef6a.chunk.js.LICENSE.txt +0 -62
  81. package/build/static/js/556.e1875260.chunk.js +0 -3
  82. package/build/static/js/556.e1875260.chunk.js.LICENSE.txt +0 -5
  83. package/build/static/js/5569.e4bfe697.chunk.js +0 -2
  84. package/build/static/js/5645.3c5c0f93.chunk.js +0 -2
  85. package/build/static/js/5683.cb2ab151.chunk.js +0 -2
  86. package/build/static/js/5725.c401d636.chunk.js +0 -3
  87. package/build/static/js/5725.c401d636.chunk.js.LICENSE.txt +0 -7
  88. package/build/static/js/5785.235dfc72.chunk.js +0 -2
  89. package/build/static/js/5820.c40d570f.chunk.js +0 -2
  90. package/build/static/js/5982.7fb6982b.chunk.js +0 -2
  91. package/build/static/js/6218.4f3036a7.chunk.js +0 -2
  92. package/build/static/js/6326.2816fb2f.chunk.js +0 -2
  93. package/build/static/js/6400.0d9d1b25.chunk.js +0 -2
  94. package/build/static/js/655.cdee65b4.chunk.js +0 -2
  95. package/build/static/js/6629.fd9d74f5.chunk.js +0 -3
  96. package/build/static/js/6629.fd9d74f5.chunk.js.LICENSE.txt +0 -13
  97. package/build/static/js/6637.b2e35031.chunk.js +0 -2
  98. package/build/static/js/6658.98f9956d.chunk.js +0 -2
  99. package/build/static/js/6733.80a6ecbd.chunk.js +0 -2
  100. package/build/static/js/6771.c9706b0b.chunk.js +0 -3
  101. package/build/static/js/6771.c9706b0b.chunk.js.LICENSE.txt +0 -18
  102. package/build/static/js/7006.9a659b1f.chunk.js +0 -2
  103. package/build/static/js/716.8cd88d8c.chunk.js +0 -3
  104. package/build/static/js/716.8cd88d8c.chunk.js.LICENSE.txt +0 -5
  105. package/build/static/js/717.ec2ba6d0.chunk.js +0 -2
  106. package/build/static/js/7313.b53b59d8.chunk.js +0 -2
  107. package/build/static/js/7556.218caceb.chunk.js +0 -2
  108. package/build/static/js/7606.25231f8c.chunk.js +0 -2
  109. package/build/static/js/779.cbad02fa.chunk.js +0 -2
  110. package/build/static/js/7832.81aaf011.chunk.js +0 -2
  111. package/build/static/js/7858.dda2dc10.chunk.js +0 -2
  112. package/build/static/js/7973.7d559f93.chunk.js +0 -3
  113. package/build/static/js/7973.7d559f93.chunk.js.LICENSE.txt +0 -13
  114. package/build/static/js/8283.fe1c7069.chunk.js +0 -2
  115. package/build/static/js/8393.c6c4c762.chunk.js +0 -2
  116. package/build/static/js/8604.ece06cf7.chunk.js +0 -3
  117. package/build/static/js/8604.ece06cf7.chunk.js.LICENSE.txt +0 -6
  118. package/build/static/js/8622.03f917b3.chunk.js +0 -2
  119. package/build/static/js/8792.13a6919f.chunk.js +0 -2
  120. package/build/static/js/8944.6d336f28.chunk.js +0 -2
  121. package/build/static/js/8983.4443c4ea.chunk.js +0 -2
  122. package/build/static/js/9017.369db632.chunk.js +0 -2
  123. package/build/static/js/9194.6800abab.chunk.js +0 -2
  124. package/build/static/js/9529.c7112fae.chunk.js +0 -2
  125. package/build/static/js/9582.2c539fcf.chunk.js +0 -2
  126. package/build/static/js/9657.b03b88e5.chunk.js +0 -2
  127. package/build/static/js/9900.55cbc589.chunk.js +0 -2
  128. package/build/static/js/9982.4f1ebb7f.chunk.js +0 -2
  129. package/build/static/js/9996.5545ea26.chunk.js +0 -2
  130. package/build/static/js/9997.540afd6e.chunk.js +0 -2
  131. package/build/static/js/main.897918c4.js +0 -3
  132. package/build/static/js/main.897918c4.js.LICENSE.txt +0 -152
  133. package/build/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg +0 -59
  134. package/build/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff +0 -0
  135. package/build/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff +0 -0
  136. package/build/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2 +0 -0
  137. package/build/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2 +0 -0
  138. package/build/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2 +0 -0
  139. package/build/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2 +0 -0
  140. package/build/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg +0 -3
  141. package/build/static/media/studio.f849ff5763d19a78ada7fdeea249f819.svg +0 -23
  142. package/build/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff +0 -0
  143. package/build/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2 +0 -0
  144. package/build/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2 +0 -0
  145. package/build/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2 +0 -0
  146. package/build/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2 +0 -0
  147. package/build/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2 +0 -0
  148. package/build/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2 +0 -0
@@ -1,62 +0,0 @@
1
- /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
6
-
7
- /*!
8
- * Cropper.js v1.5.7
9
- * https://fengyuanchen.github.io/cropperjs
10
- *
11
- * Copyright 2015-present Chen Fengyuan
12
- * Released under the MIT license
13
- *
14
- * Date: 2020-05-23T05:23:00.081Z
15
- */
16
-
17
- /*!
18
- * mime-db
19
- * Copyright(c) 2014 Jonathan Ong
20
- * Copyright(c) 2015-2022 Douglas Christopher Wilson
21
- * MIT Licensed
22
- */
23
-
24
- /*!
25
- * mime-types
26
- * Copyright(c) 2014 Jonathan Ong
27
- * Copyright(c) 2015 Douglas Christopher Wilson
28
- * MIT Licensed
29
- */
30
-
31
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
32
-
33
- /**
34
- * @license React
35
- * react-dom.production.min.js
36
- *
37
- * Copyright (c) Facebook, Inc. and its affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */
42
-
43
- /**
44
- * @license React
45
- * scheduler.development.js
46
- *
47
- * Copyright (c) Facebook, Inc. and its affiliates.
48
- *
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */
52
-
53
- /**
54
- * Takes a string with placeholder variables like `%{smart_count} file selected`
55
- * and replaces it with values from options `{smart_count: 5}`
56
- *
57
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
58
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
59
- *
60
- * @param phrase that needs interpolation, with placeholders
61
- * @param options with values that will be used to replace placeholders
62
- */
@@ -1,3 +0,0 @@
1
- /*! For license information please see 556.e1875260.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[556],{63771:function(e,n,t){"use strict";t.d(n,{S1:function(){return f},gP:function(){return p}});var r=t(33028),o=t(96234),i=t(59740),a=t(30969),l=t(24974),s=t.n(l),c=t(37574),d=["children"],u=(0,a.createContext)(),p=function(e){var n=(0,a.useContext)(u);return(0,a.useLayoutEffect)((function(){e&&n.configure(e)}),[]),n};function f(e){var n=e.children,t=(0,i.Z)(e,d),l=(0,a.useState)({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=(0,o.Z)(l,2),p=s[0],f=s[1],h=function(){f((function(e){return(0,r.Z)((0,r.Z)({},e),{},{inFullPage:!e.inFullPage})}))},m=(0,a.useMemo)((function(){return(0,r.Z)((0,r.Z)({},p),{},{headerVisible:!p.inFullPage||p.headerVisibleInFullPage,footerVisible:!p.inFullPage||p.footerVisibleInFullPage,sidebarVisible:!p.inFullPage||p.sidebarVisibleInFullPage,toggleFullPage:h,configure:function(e){return f((function(n){return(0,r.Z)((0,r.Z)({},n),e)}))}})}),[p]);return(0,c.jsx)(u.Provider,(0,r.Z)((0,r.Z)({value:m},t),{},{children:n}))}f.propTypes={children:s().node.isRequired}},10556:function(e,n,t){"use strict";t.d(n,{Z:function(){return Xn}});var r=t(71171),o=t(33028),i=t(59740),a=t(30969),l=t(24974),s=t.n(l),c=t(30734),d=t(28493),u=t(62058),p=t.n(u),f=t(29389),h=t.n(f),m=t(93545),g=t.n(m),b="bodyAttributes",x="htmlAttributes",y="titleAttributes",v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(v).map((function(e){return v[e]})),"charset"),j="cssText",k="href",Z="http-equiv",T="innerHTML",A="itemprop",O="name",C="property",S="rel",P="src",N="target",z={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},L="defaultTitle",E="defer",M="encodeSpecialCharacters",R="onChangeClientState",D="titleTemplate",I=Object.keys(z).reduce((function(e,n){return e[z[n]]=n,e}),{}),B=[v.NOSCRIPT,v.SCRIPT,v.STYLE],U="data-react-helmet",_="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),q=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},H=function(e,n){var t={};for(var r in e)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},V=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},W=function(e){var n=$(e,v.TITLE),t=$(e,D);if(t&&n)return t.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n}));var r=$(e,L);return n||r||void 0},Y=function(e){return $(e,R)||function(){}},G=function(e,n){return n.filter((function(n){return"undefined"!==typeof n[e]})).map((function(n){return n[e]})).reduce((function(e,n){return q({},e,n)}),{})},K=function(e,n){return n.filter((function(e){return"undefined"!==typeof e[v.BASE]})).map((function(e){return e[v.BASE]})).reverse().reduce((function(n,t){if(!n.length)for(var r=Object.keys(t),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&t[i])return n.concat(t)}return n}),[])},X=function(e,n,t){var r={};return t.filter((function(n){return!!Array.isArray(n[e])||("undefined"!==typeof n[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+_(n[e])+'"'),!1)})).map((function(n){return n[e]})).reverse().reduce((function(e,t){var o={};t.filter((function(e){for(var t=void 0,i=Object.keys(e),a=0;a<i.length;a++){var l=i[a],s=l.toLowerCase();-1===n.indexOf(s)||t===S&&"canonical"===e[t].toLowerCase()||s===S&&"stylesheet"===e[s].toLowerCase()||(t=s),-1===n.indexOf(l)||l!==T&&l!==j&&l!==A||(t=l)}if(!t||!e[t])return!1;var c=e[t].toLowerCase();return r[t]||(r[t]={}),o[t]||(o[t]={}),!r[t][c]&&(o[t][c]=!0,!0)})).reverse().forEach((function(n){return e.push(n)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var l=i[a],s=g()({},r[l],o[l]);r[l]=s}return e}),[]).reverse()},$=function(e,n){for(var t=e.length-1;t>=0;t--){var r=e[t];if(r.hasOwnProperty(n))return r[n]}return null},J=function(){var e=Date.now();return function(n){var t=Date.now();t-e>16?(e=t,n(t)):setTimeout((function(){J(n)}),0)}}(),Q=function(e){return clearTimeout(e)},ee="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||J:t.g.requestAnimationFrame||J,ne="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:t.g.cancelAnimationFrame||Q,te=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},re=null,oe=function(e,n){var t=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,l=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,d=e.styleTags,u=e.title,p=e.titleAttributes;le(v.BODY,r),le(v.HTML,o),ae(u,p);var f={baseTag:se(v.BASE,t),linkTags:se(v.LINK,i),metaTags:se(v.META,a),noscriptTags:se(v.NOSCRIPT,l),scriptTags:se(v.SCRIPT,c),styleTags:se(v.STYLE,d)},h={},m={};Object.keys(f).forEach((function(e){var n=f[e],t=n.newTags,r=n.oldTags;t.length&&(h[e]=t),r.length&&(m[e]=f[e].oldTags)})),n&&n(),s(e,h,m)},ie=function(e){return Array.isArray(e)?e.join(""):e},ae=function(e,n){"undefined"!==typeof e&&document.title!==e&&(document.title=ie(e)),le(v.TITLE,n)},le=function(e,n){var t=document.getElementsByTagName(e)[0];if(t){for(var r=t.getAttribute(U),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(n),l=0;l<a.length;l++){var s=a[l],c=n[s]||"";t.getAttribute(s)!==c&&t.setAttribute(s,c),-1===o.indexOf(s)&&o.push(s);var d=i.indexOf(s);-1!==d&&i.splice(d,1)}for(var u=i.length-1;u>=0;u--)t.removeAttribute(i[u]);o.length===i.length?t.removeAttribute(U):t.getAttribute(U)!==a.join(",")&&t.setAttribute(U,a.join(","))}},se=function(e,n){var t=document.head||document.querySelector(v.HEAD),r=t.querySelectorAll(e+"["+U+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return n&&n.length&&n.forEach((function(n){var t=document.createElement(e);for(var r in n)if(n.hasOwnProperty(r))if(r===T)t.innerHTML=n.innerHTML;else if(r===j)t.styleSheet?t.styleSheet.cssText=n.cssText:t.appendChild(document.createTextNode(n.cssText));else{var l="undefined"===typeof n[r]?"":n[r];t.setAttribute(r,l)}t.setAttribute(U,"true"),o.some((function(e,n){return a=n,t.isEqualNode(e)}))?o.splice(a,1):i.push(t)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return t.appendChild(e)})),{oldTags:o,newTags:i}},ce=function(e){return Object.keys(e).reduce((function(n,t){var r="undefined"!==typeof e[t]?t+'="'+e[t]+'"':""+t;return n?n+" "+r:r}),"")},de=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(n,t){return n[z[t]||t]=e[t],n}),n)},ue=function(e,n,t){switch(e){case v.TITLE:return{toComponent:function(){return function(e,n,t){var r,o=((r={key:n})[U]=!0,r),i=de(t,o);return[a.createElement(v.TITLE,i,n)]}(0,n.title,n.titleAttributes)},toString:function(){return function(e,n,t,r){var o=ce(t),i=ie(n);return o?"<"+e+" "+U+'="true" '+o+">"+V(i,r)+"</"+e+">":"<"+e+" "+U+'="true">'+V(i,r)+"</"+e+">"}(e,n.title,n.titleAttributes,t)}};case b:case x:return{toComponent:function(){return de(n)},toString:function(){return ce(n)}};default:return{toComponent:function(){return function(e,n){return n.map((function(n,t){var r,o=((r={key:t})[U]=!0,r);return Object.keys(n).forEach((function(e){var t=z[e]||e;if(t===T||t===j){var r=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[t]=n[e]})),a.createElement(e,o)}))}(e,n)},toString:function(){return function(e,n,t){return n.reduce((function(n,r){var o=Object.keys(r).filter((function(e){return!(e===T||e===j)})).reduce((function(e,n){var o="undefined"===typeof r[n]?n:n+'="'+V(r[n],t)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===B.indexOf(e);return n+"<"+e+" "+U+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,n,t)}}}},pe=function(e){var n=e.baseTag,t=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,l=e.noscriptTags,s=e.scriptTags,c=e.styleTags,d=e.title,u=void 0===d?"":d,p=e.titleAttributes;return{base:ue(v.BASE,n,r),bodyAttributes:ue(b,t,r),htmlAttributes:ue(x,o,r),link:ue(v.LINK,i,r),meta:ue(v.META,a,r),noscript:ue(v.NOSCRIPT,l,r),script:ue(v.SCRIPT,s,r),style:ue(v.STYLE,c,r),title:ue(v.TITLE,{title:u,titleAttributes:p},r)}},fe=function(e){var n,t;return t=n=function(n){function t(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?e:n}(this,n.apply(this,arguments))}return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(t,n),t.prototype.shouldComponentUpdate=function(e){return!h()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,n){if(!n)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:n};case v.STYLE:return{cssText:n}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var n,t=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return q({},r,((n={})[t.type]=[].concat(r[t.type]||[],[q({},o,this.mapNestedChildrenToProps(t,i))]),n))},t.prototype.mapObjectTypeChildren=function(e){var n,t,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case v.TITLE:return q({},o,((n={})[r.type]=a,n.titleAttributes=q({},i),n));case v.BODY:return q({},o,{bodyAttributes:q({},i)});case v.HTML:return q({},o,{htmlAttributes:q({},i)})}return q({},o,((t={})[r.type]=q({},i),t))},t.prototype.mapArrayTypeChildrenToProps=function(e,n){var t=q({},n);return Object.keys(e).forEach((function(n){var r;t=q({},t,((r={})[n]=e[n],r))})),t},t.prototype.warnOnInvalidChildren=function(e,n){return!0},t.prototype.mapChildrenToProps=function(e,n){var t=this,r={};return a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(n,t){return n[I[t]||t]=e[t],n}),n)}(H(o,["children"]));switch(t.warnOnInvalidChildren(e,i),e.type){case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:r=t.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:n=t.mapObjectTypeChildren({child:e,newProps:n,newChildProps:a,nestedChildren:i})}}})),n=this.mapArrayTypeChildrenToProps(r,n)},t.prototype.render=function(){var n=this.props,t=n.children,r=H(n,["children"]),o=q({},r);return t&&(o=this.mapChildrenToProps(t,o)),a.createElement(e,o)},F(t,null,[{key:"canUseDOM",set:function(n){e.canUseDOM=n}}]),t}(a.Component),n.propTypes={base:s().object,bodyAttributes:s().object,children:s().oneOfType([s().arrayOf(s().node),s().node]),defaultTitle:s().string,defer:s().bool,encodeSpecialCharacters:s().bool,htmlAttributes:s().object,link:s().arrayOf(s().object),meta:s().arrayOf(s().object),noscript:s().arrayOf(s().object),onChangeClientState:s().func,script:s().arrayOf(s().object),style:s().arrayOf(s().object),title:s().string,titleAttributes:s().object,titleTemplate:s().string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var n=e.rewind();return n||(n=pe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n},t}(p()((function(e){return{baseTag:K([k,N],e),bodyAttributes:G(b,e),defer:$(e,E),encode:$(e,M),htmlAttributes:G(x,e),linkTags:X(v.LINK,[S,k],e),metaTags:X(v.META,[O,w,Z,C,A],e),noscriptTags:X(v.NOSCRIPT,[T],e),onChangeClientState:Y(e),scriptTags:X(v.SCRIPT,[P,T],e),styleTags:X(v.STYLE,[j],e),title:W(e),titleAttributes:G(y,e)}}),(function(e){re&&ne(re),e.defer?re=ee((function(){oe(e,(function(){re=null}))})):(oe(e),re=null)}),pe)((function(){return null})));fe.renderStatic=fe.rewind;var he,me=fe,ge=t(1059),be=t(20146),xe=t(38361),ye=t(87023),ve=t(39406),we=t(58546),je=t(96234),ke=t(4223),Ze=t(78879),Te=t(86822),Ae=t(72097),Oe=t(33359),Ce={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},Se=t(12268),Pe=t(55581),Ne=t(37574),ze=["name","size","alt","color","style","prefix","showBadge"];function Le(e){var n=e.name,t=e.size,r=e.alt,a=e.color,l=e.style,s=e.prefix,c=e.showBadge,d=(0,i.Z)(e,ze),u="".concat(s,"/").concat(n,"-").concat(a.replace(/^#/,""),".png");return(0,Ne.jsxs)(Me,{style:{width:t,height:t},children:[(0,Ne.jsx)(Se.Z,(0,o.Z)({width:t,height:t,alt:r||n,src:u,style:Object.assign({width:t},l)},d)),c&&(0,Ne.jsx)("i",{className:"badge-point"})]})}Le.propTypes={name:s().string.isRequired,size:s().number,color:s().string,alt:s().string,style:s().object,prefix:s().string,showBadge:s().bool},Le.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};var Ee,Me=(0,Pe.zo)("div")(he||(he=(0,r.Z)(["\n position: relative;\n .badge-point {\n position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 10px;\n background-color: #fe4e44;\n right: -2px;\n top: 0;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1);\n }\n"]))),Re=["showText","showLogo","mode","layout"],De=function(e){return(0,Ne.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,Ne.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[(0,Ne.jsx)("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),(0,Ne.jsx)("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})}))};De.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Ie=function(e){return(0,Ne.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,Ne.jsx)("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})}))};Ie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Be=function(e){return(0,Ne.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,Ne.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[(0,Ne.jsx)("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),(0,Ne.jsx)("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})}))};Be.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Ue=function(e){return(0,Ne.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,Ne.jsx)("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})}))};function _e(e){var n=e.showText,t=e.showLogo,r=e.mode,a=e.layout,l=(0,i.Z)(e,Re),s="light"===r?(0,Ne.jsx)(De,{}):(0,Ne.jsx)(Be,{}),c="light"===r?(0,Ne.jsx)(Ie,{className:"logo-text"}):(0,Ne.jsx)(Ue,{className:"logo-text"});return(0,Ne.jsxs)(He,(0,o.Z)((0,o.Z)({layout:a},l),{},{children:[t&&s,n&&c]}))}Ue.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"},_e.propTypes={mode:s().oneOf(["light","dark"]),layout:s().oneOf(["vertical","horizontal"]),showText:s().bool,showLogo:s().bool},_e.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};var Fe,qe,He=(0,Pe.zo)("span")(Ee||(Ee=(0,r.Z)(["\n display: inline-flex;\n flex-direction: ",";\n justify-content: center;\n align-items: center;\n\n .logo-text {\n ","\n ",";\n }\n"])),(function(e){return"horizontal"===e.layout?"row":"column"}),(function(e){return"vertical"===e.layout?"margin-top: 8px;":""}),(function(e){return"vertical"===e.layout?"":"margin-left: 8px;"})),Ve=["images","links","prefix","addons","logo"];function We(e){var n=e.images,t=e.links,r=e.prefix,a=e.addons,l=e.logo,s=(0,i.Z)(e,Ve),d=(0,Pe.Fg)(),u=(0,c.useLocation)();return(0,Ne.jsxs)(Ye,(0,o.Z)((0,o.Z)({},s),{},{children:[(0,Ne.jsx)(Te.rU,{to:"/",className:"sidebar-logo",children:l||(0,Ne.jsx)(_e,{showText:!1,size:20})}),t.map((function(e){var t=e.url,o=e.name,i=e.title,a=e.showBadge,l=function(e,n){return new RegExp("/".concat(n)).test(u.pathname)}(0,o);return(0,Ne.jsxs)(Ke,{component:Te.rU,selected:l,to:t,children:[(0,Ne.jsx)(Le,{name:n[o],size:36,color:l?"#00c2c4":d.typography.color.main,prefix:r,showBadge:a}),(0,Ne.jsx)(Oe.Z,{component:"span",className:"menu-title",children:i})]},t)})),(0,Ne.jsx)("div",{style:{flex:1}}),a]}))}We.propTypes={images:s().object.isRequired,links:s().array.isRequired,prefix:s().string,addons:s().any,logo:s().any},We.defaultProps={prefix:"/images",addons:null,logo:null};var Ye=(0,a.memo)((0,Pe.zo)("div")(Fe||(Fe=(0,r.Z)(["\n flex: 1;\n display: flex;\n flex-direction: column;\n\n && .sidebar-logo {\n display: none;\n border-bottom: 1px solid #eee;\n background: ",";\n position: sticky;\n top: 0;\n z-index: 1;\n padding: 10px 0;\n text-align: center;\n font-size: 0;\n }\n "," {\n && .sidebar-logo {\n display: block;\n }\n }\n"])),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.breakpoints.down("md")}))),Ge="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Ke=(0,Pe.zo)(Ae.Z)(qe||(qe=(0,r.Z)(["\n && {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n transition: all 200ms ease-in-out;\n background: ",";\n padding: 24px 0;\n border-left: 2px solid ",";\n border-radius: 0;\n\n &:hover {\n background: ",";\n border-left-color: ",";\n }\n\n .menu-title {\n margin-top: 8px;\n font-size: 12px;\n font-weight: 500;\n text-align: center;\n text-transform: capitalize;\n letter-spacing: normal;\n width: 80%;\n color: ",";\n }\n }\n"])),(function(e){return e.selected?Ge:""}),(function(e){return e.selected?Ce.A700:"transparent"}),Ge,Ce.A700,(function(e){return e.theme.palette.text.primary})),Xe=t(94551),$e=t(31461),Je=t(7896),Qe=t(26540),en=t(45971),nn=t(17363),tn=t(24099),rn=t(46672),on=t(62746),an=t(2975);function ln(e){return(0,an.Z)("MuiAppBar",e)}(0,on.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var sn,cn=["className","color","enableColorOnDark","position"],dn=function(e,n){return e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(n,")"):n},un=(0,en.ZP)(rn.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,n["position".concat((0,tn.Z)(t.position))],n["color".concat((0,tn.Z)(t.color))]]}})((function(e){var n=e.theme,t=e.ownerState,r="light"===n.palette.mode?n.palette.grey[100]:n.palette.grey[900];return(0,Je.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(n.vars||n).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!n.vars&&(0,Je.Z)({},"default"===t.color&&{backgroundColor:r,color:n.palette.getContrastText(r)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:n.palette[t.color].main,color:n.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===n.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,Je.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===n.palette.mode&&{backgroundImage:"none"})),n.vars&&(0,Je.Z)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?n.vars.palette.AppBar.defaultBg:dn(n.vars.palette.AppBar.darkBg,n.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?n.vars.palette.text.primary:dn(n.vars.palette.AppBar.darkColor,n.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?n.vars.palette[t.color].main:dn(n.vars.palette.AppBar.darkBg,n.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?n.vars.palette[t.color].contrastText:dn(n.vars.palette.AppBar.darkColor,n.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),pn=a.forwardRef((function(e,n){var t=(0,nn.Z)({props:e,name:"MuiAppBar"}),r=t.className,o=t.color,i=void 0===o?"primary":o,a=t.enableColorOnDark,l=void 0!==a&&a,s=t.position,c=void 0===s?"fixed":s,d=(0,$e.Z)(t,cn),u=(0,Je.Z)({},t,{color:i,position:c,enableColorOnDark:l}),p=function(e){var n=e.color,t=e.position,r=e.classes,o={root:["root","color".concat((0,tn.Z)(n)),"position".concat((0,tn.Z)(t))]};return(0,Qe.Z)(o,ln,r)}(u);return(0,Ne.jsx)(un,(0,Je.Z)({square:!0,component:"header",ownerState:u,elevation:4,className:(0,ye.Z)(p.root,r,"fixed"===c&&"mui-fixed"),ref:n},d))})),fn=t(56277),hn=t(4109),mn=["children","brand","brandAddon","description","addons","onToggleMenu","homeUrl","logo"],gn=(0,Pe.zo)(pn)(sn||(sn=(0,r.Z)(["\n && {\n z-index: ",";\n background: ",";\n box-shadow: none;\n top: 0;\n height: auto;\n }\n .header-toolbar {\n background: ",";\n color: ",";\n margin: ","px 0;\n }\n .header-link {\n display: flex;\n text-decoration: none;\n flex-shrink: 1;\n overflow: hidden;\n }\n .header-logo {\n margin-right: 20px;\n }\n .header-title {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n }\n .header-title__primary {\n font-size: 24px;\n font-weight: 800;\n color: ",";\n text-transform: uppercase;\n display: flex;\n align-items: center;\n }\n .header-title__secondary {\n font-size: 14px;\n line-height: 1.71;\n color: ",";\n }\n\n .header-addons {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 9999999;\n\n .user-addon {\n .header-avatar {\n width: 32px;\n border-radius: 16px;\n height: auto;\n }\n }\n }\n .header-menu {\n display: none;\n }\n "," {\n .header-title {\n display: none;\n }\n .header-title__primary {\n font-size: 20px;\n }\n .header-menu {\n display: block;\n }\n }\n"])),(function(e){return e.theme.zIndex.drawer}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.background.default}),(function(e){return e.theme.palette.text.primary}),(function(e){return e.theme.spacing(1)}),(function(e){return e.theme.typography.color.main}),(function(e){return e.theme.typography.color.gray}),(function(e){return e.theme.breakpoints.down("md")}));function bn(e){var n=e.children,t=e.brand,r=e.brandAddon,a=e.description,l=e.addons,s=e.onToggleMenu,c=e.homeUrl,d=e.logo,u=(0,i.Z)(e,mn);return(0,Ne.jsx)(gn,(0,o.Z)((0,o.Z)({position:"sticky",className:"header"},u),{},{children:(0,Ne.jsxs)(fn.Z,{disableGutters:!1,className:"header-toolbar",children:[(0,Ne.jsx)(Xe.Z,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:s,children:(0,Ne.jsx)(hn.Z,{})}),(0,Ne.jsxs)(Te.rU,{to:c,className:"header-link",children:[(0,Ne.jsx)(be.Z,{mdDown:!0,children:(0,Ne.jsx)("div",{className:"header-logo",children:d||(0,Ne.jsx)(_e,{showText:!1})})}),(0,Ne.jsxs)("div",{className:"header-title",children:[(0,Ne.jsxs)(Oe.Z,{component:"h2",noWrap:!0,className:"header-title__primary",children:[t,r]}),(0,Ne.jsx)(Oe.Z,{component:"p",noWrap:!0,className:"header-title__secondary",children:a})]})]}),(0,Ne.jsx)(xe.Z,{flexGrow:1}),!!n&&(0,Ne.jsx)("div",{className:"header-children",children:n}),(0,Ne.jsx)("div",{className:"header-addons",children:l})]})}))}bn.propTypes={onToggleMenu:s().func.isRequired,brand:s().string.isRequired,brandAddon:s().object,description:s().any.isRequired,children:s().any,addons:s().any,homeUrl:s().string,logo:s().any},bn.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};var xn,yn=t(79216);function vn(e){var n,t,r=(0,yn.dG)(e,vn,["dark","style"]),o=r.className,i=r.copyStart,a=r.style,l=r.brand,s=r.dark,c=r.addon,d="".concat((new Date).getFullYear()),u="".concat(i),p=d===u?d:"".concat(u,"-").concat(d);return(0,Ne.jsxs)(jn,{className:o,style:a,dark:s,children:[(0,Ne.jsx)(ge.Z,{maxWidth:!1,children:(0,Ne.jsxs)(Oe.Z,{component:"div",className:"footer",children:[(0,Ne.jsxs)(Oe.Z,{component:"p",className:"footer-item",children:[(0,Ne.jsxs)("span",{className:"footer-copy",children:["Copyright \xa9 ",p," "]}),(0,Ne.jsx)("span",{className:"footer-brand",children:l})]}),c&&(0,Ne.jsx)(Oe.Z,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:c}),(0,Ne.jsxs)(Oe.Z,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",(0,Ne.jsx)(_e,{mode:s?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),(0,Ne.jsx)(xe.Z,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:null===(n=window)||void 0===n||null===(t=n.blocklet)||void 0===t?void 0:t.version})]})}vn.propTypes={dark:s().bool,className:s().string,copyStart:s().oneOfType([s().string,s().number]),brand:s().string,style:s().object,addon:s().node},vn.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};var wn,jn=(0,Pe.zo)("div",{shouldForwardProp:function(e){return"dark"!==e}})(xn||(xn=(0,r.Z)(["\n position: relative;\n margin-top: 64px;\n padding: 24px 0 32px;\n border-top: 1px solid ",";\n box-sizing: border-box;\n width: 100%;\n\n @media (max-width: 540px) {\n padding: 8px 0;\n }\n\n .footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n\n .footer-item {\n color: ",";\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n font-size: 0.9rem;\n }\n\n .footer-brand {\n margin-left: 8px;\n margin-right: 8px;\n }\n\n .logo-container {\n margin-left: 24px;\n width: 90px;\n opacity: 0.5;\n }\n\n @media (max-width: 540px) {\n .footer-item {\n font-size: 0.7rem;\n }\n\n .logo-container {\n margin: 0 0 0 16px;\n width: 70px;\n height: 40px;\n }\n }\n\n @media (max-width: 380px) {\n .footer-item {\n font-size: 0.65rem;\n }\n\n .logo-container {\n margin: 0 0 0 8px;\n height: 24px;\n }\n }\n }\n"])),(function(e){return e.dark?e.theme.palette.grey[900]:"#dee2e7"}),(function(e){var n=e.theme;return e.dark?n.palette.grey[500]:n.palette.grey[900]})),kn=["children","title","brand","description","brandAddon","headerAddon","images","links","prefix","fullWidth","contentLayout","className","homeUrl","logo"],Zn=(0,Pe.zo)("div")(wn||(wn=(0,r.Z)(["\n &.dashboard {\n display: flex;\n flex-direction: column;\n height: 100vh;\n }\n .dashboard__body {\n overflow: hidden;\n flex: 1;\n }\n .dashboard__main {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex: 1;\n }\n .dashboard__content {\n flex: 1;\n }\n\n .drawerPaper {\n position: relative;\n white-space: nowrap;\n width: 120px;\n background: ",";\n box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ",");\n border: 0;\n }\n"])),(function(e){return e.theme.palette.background.default}),(function(e){return"light"===e.theme.mode?.05:.5}));function Tn(e){var n=e.children,t=e.title,r=e.brand,l=e.description,s=e.brandAddon,c=e.headerAddon,d=e.images,u=e.links,p=e.prefix,f=e.fullWidth,h=e.contentLayout,m=e.className,g=e.homeUrl,b=e.logo,x=(0,i.Z)(e,kn),y=(0,Ze.Z)(document.body),v=(null===y||void 0===y?void 0:y.width)||0,w=(0,a.useState)(v>=960?"permanent":"temporary"),j=(0,je.Z)(w,2),k=j[0],Z=j[1],T=(0,a.useState)("permanent"===k),A=(0,je.Z)(T,2),O=A[0],C=A[1];(0,a.useEffect)((function(){var e=v>=960?"permanent":"temporary";Z(e),C("temporary"!==e)}),[v]);var S=function(){C(!O)},P=f||"row"===h;return(0,Ne.jsxs)(Zn,(0,o.Z)((0,o.Z)({className:"dashboard ".concat(m)},x),{},{children:[(0,Ne.jsx)(me,{title:"".concat(t,"-").concat(r)}),(0,Ne.jsx)(bn,{className:"dashboard__header",onToggleMenu:S,brand:r,brandAddon:s,description:l,addons:c,homeUrl:g,logo:b}),(0,Ne.jsxs)(xe.Z,{display:"flex",className:"dashboard__body",children:[(0,Ne.jsx)(ke.ZP,{variant:k,className:"drawer",classes:{paper:"drawerPaper"},open:O,onClose:S,ModalProps:{disablePortal:!0,keepMounted:!0},children:(0,Ne.jsx)(We,{className:"dashboard__sidebar",images:d,links:u,prefix:p,logo:b})}),(0,Ne.jsxs)(xe.Z,{className:"dashboard__main",children:[(0,Ne.jsx)(ge.Z,{maxWidth:!P&&"lg",className:"dashboard__content",children:n}),(0,Ne.jsx)(vn,{})]})]})]}))}Tn.propTypes={children:s().any.isRequired,title:s().string,brand:s().string.isRequired,links:s().array.isRequired,images:s().object.isRequired,brandAddon:s().object,description:s().any.isRequired,headerAddon:s().any,prefix:s().string,contentLayout:s().oneOf(["row","column"]),fullWidth:s().bool,className:s().string,homeUrl:s().string,logo:s().any},Tn.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};var An,On=t(53736),Cn=t(1132),Sn=["children","routerLinkComponent","to","external"],Pn=["className"];function Nn(e){var n=e.children,t=e.routerLinkComponent,r=e.to,a=e.external,l=(0,i.Z)(e,Sn);return a?(0,Ne.jsx)("a",(0,o.Z)((0,o.Z)({href:r},l),{},{children:n})):(0,Ne.jsx)(t,(0,o.Z)((0,o.Z)({to:r},l),{},{children:n}))}function zn(e){return(0,Ne.jsx)(Nn,(0,o.Z)({routerLinkComponent:Te.rU},e))}function Ln(e){var n=e.className,t=(0,i.Z)(e,Pn),r=t.external&&"function"===typeof n?n({}):n;return(0,Ne.jsx)(Nn,(0,o.Z)({routerLinkComponent:Te.OL,className:r},t))}Nn.propTypes={children:s().any.isRequired,routerLinkComponent:s().elementType.isRequired,external:s().bool,to:s().oneOfType([s().string,s().object]).isRequired},Nn.defaultProps={external:!1},Ln.propTypes={className:s().oneOfType([s().string,s().func])},Ln.defaultProps={className:""};var En=["links","addons","dense"];function Mn(e){var n;if(null!==(n=e.children)&&void 0!==n&&n.length)return function(e){return(0,Ne.jsxs)("li",{className:"layout-sidebar-group",children:[(0,Ne.jsx)("span",{className:"layout-sidebar-group-title",children:e.title}),(0,Ne.jsx)("ul",{children:e.children.map(Mn)})]},"group-".concat(e.title))}(e);var t=e.url,r=e.icon,o=e.title,i=e.showBadge,a=e.external,l=e.active;return(0,Ne.jsx)("li",{className:"layout-sidebar-item",children:(0,Ne.jsxs)(Ln,{external:a,to:t,className:function(e){var n=e.isActive;return(0,ye.Z)("layout-sidebar-link",{"layout-sidebar-link--active":a?l:n})},children:[r&&(0,Ne.jsx)("span",{className:"layout-sidebar-icon ".concat(i?"layout-sidebar-badge":""),children:r}),(0,Ne.jsx)(Oe.Z,{component:"span",className:"layout-sidebar-link-text",children:o})]})},t)}function Rn(e){var n=e.links,t=e.addons,r=e.dense,a=(0,i.Z)(e,En);return(0,Ne.jsxs)(Bn,(0,o.Z)((0,o.Z)({},a),{},{className:(0,ye.Z)({"layout-sidebar-dense":r}),children:[(0,Ne.jsx)("ul",{children:n.map(Mn)}),(0,Ne.jsx)("div",{style:{flex:1}}),t]}))}Rn.propTypes={links:s().array.isRequired,addons:s().any,dense:s().bool},Rn.defaultProps={addons:null,dense:!1};var Dn,In,Bn=(0,Pe.zo)("div")(An||(An=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .layout-sidebar-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 22px 24px;\n color: ",";\n text-decoration: none;\n\n &:hover,\n &.layout-sidebar-link--active {\n color: ",";\n background: ",";\n border-left-color: ",";\n }\n }\n .layout-sidebar-icon {\n display: inline-block;\n width: 32px;\n height: 32px;\n > img,\n > svg {\n width: 32px;\n height: 32px;\n }\n }\n .layout-sidebar-badge {\n position: relative;\n &:after {\n content: '';\n position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 10px;\n background-color: #fe4e44;\n right: -2px;\n top: 0;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1);\n }\n }\n .layout-sidebar-link-text {\n margin-top: 8px;\n font-size: 12px;\n font-weight: 500;\n text-align: center;\n text-transform: capitalize;\n letter-spacing: normal;\n }\n /* dense=false \u65f6\u9690\u85cf group title */\n .layout-sidebar-group-title {\n display: none;\n }\n &.layout-sidebar-dense {\n box-sizing: border-box;\n padding: 20px 0;\n font-weight: bold;\n .layout-sidebar-item {\n padding: 0 16px;\n }\n .layout-sidebar-item + .layout-sidebar-item {\n margin-top: 1px;\n }\n .layout-sidebar-link {\n box-sizing: border-box;\n flex-direction: row;\n align-items: center;\n width: 100%;\n padding: 8px;\n &:hover,\n &.layout-sidebar-link--active {\n color: ",";\n background: ",";\n border: 0;\n border-radius: 4px;\n }\n }\n .layout-sidebar-icon {\n display: inline-block;\n width: 20px;\n height: 20px;\n margin-right: 8px;\n > img,\n > svg {\n width: 20px;\n height: 20px;\n }\n }\n .layout-sidebar-badge {\n &:after {\n width: 6px;\n height: 6px;\n border-radius: 6px;\n right: -2px;\n top: 0;\n }\n }\n .layout-sidebar-link-text {\n margin-top: 0;\n font-size: 14px;\n line-height: 1;\n }\n .layout-sidebar-group {\n color: ",";\n .layout-sidebar-group-title {\n display: inline-block;\n padding: 8px 0 8px 24px;\n font-size: 13px;\n text-transform: uppercase;\n }\n }\n .layout-sidebar-group + .layout-sidebar-group,\n .layout-sidebar-group + .layout-sidebar-item,\n .layout-sidebar-item + .layout-sidebar-group {\n margin-top: 16px;\n }\n }\n"])),(function(e){return e.theme.palette.text.secondary}),(function(e){return e.theme.palette.primary.main}),"linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",Ce.A700,(function(e){return e.theme.palette.grey[900]}),(function(e){return e.theme.palette.grey[100]}),(function(e){return e.theme.palette.text.hint})),Un=Rn,_n=t(63771),Fn=["closeMenu"],qn=["children","title","headerProps","links","fullWidth","dense","footerProps"],Hn=["legacy"];function Vn(e){var n=e.closeMenu,t=(0,i.Z)(e,Fn),r=(0,c.useLocation)();return(0,a.useEffect)((function(){n()}),[r]),(0,Ne.jsx)(Cn.Z,(0,o.Z)({},t))}function Wn(e,n){return e.map((function(e){var t;return null!==(t=e.children)&&void 0!==t&&t.length?(0,o.Z)((0,o.Z)({},e),{},{label:e.title,children:Wn(e.children,n)}):(0,o.Z)((0,o.Z)({},e),{},{label:(0,Ne.jsx)(zn,{to:e.url,external:e.external,children:e.title}),active:e.external?e.active:!!(0,d.LX)({path:e.url,end:!1},n.pathname)})}))}function Yn(e){var n=e.children,t=e.title,r=e.headerProps,l=e.links,s=void 0===l?[]:l,d=e.fullWidth,u=e.dense,p=e.footerProps,f=(0,i.Z)(e,qn),h=(0,Pe.Fg)(),m=(0,_n.gP)(),g=m.inFullPage,b=m.showToggleButton,x=m.headerVisible,y=m.footerVisible,v=m.sidebarVisible,w=m.toggleFullPage,j=(0,c.useLocation)(),k=(0,a.useMemo)((function(){return Wn(s,j)}),[j,s]),Z=k.some((function(e){var n;return!(null===(n=e.children)||void 0===n||!n.length)})),T="auto"===u?k.length>=8||Z:u,A=(0,ye.Z)("dashboard",{"dashboard-dense":T},f.className),O=(0,o.Z)({homeLink:function(e){var n;return(0,Ne.jsx)(zn,{to:(null===(n=window.blocklet)||void 0===n?void 0:n.prefix)||"/",children:e})}},r);return(0,Ne.jsxs)(Gn,(0,o.Z)((0,o.Z)({},f),{},{className:A,children:[(0,Ne.jsx)(me,{title:t},t),x&&(0,Ne.jsx)(Kn,(0,o.Z)((0,o.Z)({},O),{},{className:"dashboard-header",children:null!==s&&void 0!==s&&s.length?function(e){var n=e.isMobile,t=e.closeMenu;return n?(0,Ne.jsx)(Vn,{mode:"inline",items:k,closeMenu:t,bgColor:"transparent",activeTextColor:h.palette.primary.main}):null}:null})),(0,Ne.jsxs)(xe.Z,{display:"flex",className:"dashboard-body",children:[(0,Ne.jsx)(be.Z,{mdDown:!0,children:!(null===s||void 0===s||!s.length)&&v&&(0,Ne.jsx)(xe.Z,{className:"dashboard-sidebar",children:(0,Ne.jsx)(Un,{links:s,dense:T})})}),(0,Ne.jsxs)(xe.Z,{className:"dashboard-main",children:[b&&(0,Ne.jsx)(xe.Z,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:w,children:g?(0,Ne.jsx)(we.Z,{style:{fontSize:18}}):(0,Ne.jsx)(ve.Z,{style:{fontSize:18}})}),(0,Ne.jsx)(ge.Z,(0,o.Z)((0,o.Z)({className:"dashboard-content"},d&&{maxWidth:!1}),{},{children:n})),y&&(0,Ne.jsx)(vn,(0,o.Z)({},p))]})]})]}))}Yn.propTypes={children:s().any.isRequired,title:s().string,links:s().array.isRequired,headerProps:s().object,fullWidth:s().bool,sidebarWidth:s().number,dense:s().oneOf([!0,!1,"auto"])},Yn.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};var Gn=(0,Pe.zo)("div",{shouldForwardProp:function(e){return"sidebarWidth"!==e}})(Dn||(Dn=(0,r.Z)(["\n &.dashboard {\n display: flex;\n flex-direction: column;\n height: 100vh;\n }\n .dashboard-body {\n overflow: hidden;\n flex: 1;\n }\n .dashboard-sidebar {\n box-sizing: border-box;\n flex: 0 0 auto;\n width: ","px;\n overflow: hidden;\n &:hover {\n overflow-y: auto;\n }\n }\n .dashboard-main {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex: 1;\n position: relative;\n }\n .dashboard-content {\n flex: 1;\n }\n &.dashboard-dense {\n .dashboard-header {\n border-bottom: 1px solid #eee;\n }\n .dashboard-sidebar {\n width: 256px;\n border-right: 1px solid #eee;\n }\n }\n "," {\n .header-logo {\n display: flex;\n justify-content: center;\n /* logo \u4e0e sidebar \u4e2d\u7684 icon \u5782\u76f4\u5bf9\u9f50, sidebarWidth - 24 * 2 */\n width: ","px;\n }\n &.dashboard-dense {\n .header-logo {\n /* dense = true \u65f6 logo \u4e0e sidenav icons \u4e0d\u9700\u8981\u5bf9\u9f50 */\n width: auto;\n }\n }\n }\n"])),(function(e){return e.sidebarWidth}),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.sidebarWidth-48})),Kn=(0,Pe.zo)(On.z)(In||(In=(0,r.Z)(["\n .header-container {\n max-width: 100%;\n }\n"])));function Xn(e){var n=e.legacy,t=(0,i.Z)(e,Hn);return n?(0,Ne.jsx)(Tn,(0,o.Z)({},t)):(0,Ne.jsx)(_n.S1,{children:(0,Ne.jsx)(Yn,(0,o.Z)({},t))})}Xn.propTypes=(0,o.Z)((0,o.Z)({},Yn.propTypes),{},{legacy:s().bool,footerProps:s().shape(vn.propTypes)}),Xn.defaultProps=(0,o.Z)((0,o.Z)({},Yn.defaultProps),{},{legacy:!0})},58546:function(e,n,t){"use strict";var r=t(71600);n.Z=void 0;var o=r(t(48035)),i=t(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2 22 3.41zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59 3.41 22z"}),"CloseFullscreen");n.Z=a},39406:function(e,n,t){"use strict";var r=t(71600);n.Z=void 0;var o=r(t(48035)),i=t(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");n.Z=a},20146:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var r=t(7896),o=t(31461),i=t(30969),a=t(96234),l=t(86769),s=t(94702),c=t(32468),d=t(75255),u=t(37574),p=["initialWidth","width"],f=["xs","sm","md","lg","xl"],h=function(e,n){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?f.indexOf(e)<=f.indexOf(n):f.indexOf(e)<f.indexOf(n)},m=function(e,n){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?f.indexOf(n)<=f.indexOf(e):f.indexOf(n)<f.indexOf(e)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var t=e.withTheme,f=void 0!==t&&t,h=e.noSSR,m=void 0!==h&&h,g=e.initialWidth;return function(e){var t=(0,s.Z)(),h=e.theme||t,b=(0,l.Z)({theme:h,name:"MuiWithWidth",props:e}),x=b.initialWidth,y=b.width,v=(0,o.Z)(b,p),w=i.useState(!1),j=(0,a.Z)(w,2),k=j[0],Z=j[1];(0,c.Z)((function(){Z(!0)}),[]);var T=h.breakpoints.keys.slice().reverse().reduce((function(e,n){var t=(0,d.Z)(h.breakpoints.up(n));return!e&&t?n:e}),null),A=(0,r.Z)({width:y||(k||m?T:void 0)||x||g},f?{theme:h}:{},v);return void 0===A.width?null:(0,u.jsx)(n,(0,r.Z)({},A))}}};var b=g()((function(e){var n=e.children,t=e.only,r=e.width,o=(0,s.Z)(),a=!0;if(t)if(Array.isArray(t))for(var l=0;l<t.length;l+=1){if(r===t[l]){a=!1;break}}else t&&r===t&&(a=!1);if(a)for(var c=0;c<o.breakpoints.keys.length;c+=1){var d=o.breakpoints.keys[c],p=e["".concat(d,"Up")],f=e["".concat(d,"Down")];if(p&&h(d,r)||f&&m(d,r)){a=!1;break}}return a?(0,u.jsx)(i.Fragment,{children:n}):null})),x=t(56666),y=t(68079),v=t(87023),w=t(26540),j=t(24099),k=t(45971),Z=t(62746),T=t(2975);function A(e){return(0,T.Z)("PrivateHiddenCss",e)}(0,Z.Z)("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);var O=["children","className","only"],C=(0,k.ZP)("div",{name:"PrivateHiddenCss",slot:"Root"})((function(e){var n=e.theme,t=e.ownerState,o={display:"none"};return(0,r.Z)({},t.breakpoints.map((function(e){var t=e.breakpoint,r=e.dir;return"only"===r?(0,x.Z)({},n.breakpoints.only(t),o):"up"===r?(0,x.Z)({},n.breakpoints.up(t),o):(0,x.Z)({},n.breakpoints.down(t),o)})).reduce((function(e,n){return Object.keys(n).forEach((function(t){e[t]=n[t]})),e}),{}))}));var S=function(e){for(var n=e.children,t=e.className,i=e.only,a=(0,o.Z)(e,O),l=(0,s.Z)(),c=[],d=0;d<l.breakpoints.keys.length;d+=1){var p=l.breakpoints.keys[d],f=a["".concat(p,"Up")],h=a["".concat(p,"Down")];f&&c.push({breakpoint:p,dir:"up"}),h&&c.push({breakpoint:p,dir:"down"})}i&&(Array.isArray(i)?i:[i]).forEach((function(e){c.push({breakpoint:e,dir:"only"})}));var m=(0,r.Z)({},e,{breakpoints:c}),g=function(e){var n=e.classes,t=e.breakpoints,r={root:["root"].concat((0,y.Z)(t.map((function(e){var n=e.breakpoint,t=e.dir;return"only"===t?"".concat(t).concat((0,j.Z)(n)):"".concat(n).concat((0,j.Z)(t))}))))};return(0,w.Z)(r,A,n)}(m);return(0,u.jsx)(C,{className:(0,v.Z)(g.root,t),ownerState:m,children:n})},P=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var N=function(e){var n=e.implementation,t=void 0===n?"js":n,i=e.lgDown,a=void 0!==i&&i,l=e.lgUp,s=void 0!==l&&l,c=e.mdDown,d=void 0!==c&&c,p=e.mdUp,f=void 0!==p&&p,h=e.smDown,m=void 0!==h&&h,g=e.smUp,x=void 0!==g&&g,y=e.xlDown,v=void 0!==y&&y,w=e.xlUp,j=void 0!==w&&w,k=e.xsDown,Z=void 0!==k&&k,T=e.xsUp,A=void 0!==T&&T,O=(0,o.Z)(e,P);return"js"===t?(0,u.jsx)(b,(0,r.Z)({lgDown:a,lgUp:s,mdDown:d,mdUp:f,smDown:m,smUp:x,xlDown:v,xlUp:j,xsDown:Z,xsUp:A},O)):(0,u.jsx)(S,(0,r.Z)({lgDown:a,lgUp:s,mdDown:d,mdUp:f,smDown:m,smUp:x,xlDown:v,xlUp:j,xsDown:Z,xsUp:A},O))}},56277:function(e,n,t){"use strict";var r=t(56666),o=t(31461),i=t(7896),a=t(30969),l=t(87023),s=t(26540),c=t(17363),d=t(45971),u=t(6856),p=t(37574),f=["className","component","disableGutters","variant"],h=(0,d.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,!t.disableGutters&&n.gutters,n[t.variant]]}})((function(e){var n=e.theme,t=e.ownerState;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&(0,r.Z)({paddingLeft:n.spacing(2),paddingRight:n.spacing(2)},n.breakpoints.up("sm"),{paddingLeft:n.spacing(3),paddingRight:n.spacing(3)}),"dense"===t.variant&&{minHeight:48})}),(function(e){var n=e.theme;return"regular"===e.ownerState.variant&&n.mixins.toolbar})),m=a.forwardRef((function(e,n){var t=(0,c.Z)({props:e,name:"MuiToolbar"}),r=t.className,a=t.component,d=void 0===a?"div":a,m=t.disableGutters,g=void 0!==m&&m,b=t.variant,x=void 0===b?"regular":b,y=(0,o.Z)(t,f),v=(0,i.Z)({},t,{component:d,disableGutters:g,variant:x}),w=function(e){var n=e.classes,t={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,s.Z)(t,u.N,n)}(v);return(0,p.jsx)(h,(0,i.Z)({as:d,className:(0,l.Z)(w.root,r),ref:n,ownerState:v},y))}));n.Z=m},6856:function(e,n,t){"use strict";t.d(n,{N:function(){return i}});var r=t(62746),o=t(2975);function i(e){return(0,o.Z)("MuiToolbar",e)}var a=(0,r.Z)("MuiToolbar",["root","gutters","regular","dense"]);n.Z=a},93545:function(e){"use strict";var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))t.call(i,c)&&(l[c]=i[c]);if(n){a=n(i);for(var d=0;d<a.length;d++)r.call(i,a[d])&&(l[a[d]]=i[a[d]])}}return l}},29389:function(e){var n="undefined"!==typeof Element,t="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var l,s,c,d;if(Array.isArray(e)){if((l=e.length)!=a.length)return!1;for(s=l;0!==s--;)if(!i(e[s],a[s]))return!1;return!0}if(t&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(d=e.entries();!(s=d.next()).done;)if(!a.has(s.value[0]))return!1;for(d=e.entries();!(s=d.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(d=e.entries();!(s=d.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((l=e.length)!=a.length)return!1;for(s=l;0!==s--;)if(e[s]!==a[s])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(s=l;0!==s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(n&&e instanceof Element)return!1;for(s=l;0!==s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!i(e[c[s]],a[c[s]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,n){try{return i(e,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},62058:function(e,n,t){"use strict";var r,o=t(30969),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var l=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,n,t){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof n)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof t&&"function"!==typeof t)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var s,c=[];function d(){s=e(c.map((function(e){return e.props}))),u.canUseDOM?n(s):t&&(s=t(s))}var u=function(e){var n,t;function o(){return e.apply(this,arguments)||this}t=e,(n=o).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t,o.peek=function(){return s},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=s;return s=void 0,c=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),d()},a.componentDidUpdate=function(){d()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),d()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(u,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(u,"canUseDOM",l),u}}}}]);
3
- //# sourceMappingURL=556.e1875260.chunk.js.map
@@ -1,5 +0,0 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[5569],{65569:function(e,t,n){n.r(t),n.d(t,{default:function(){return Fe}});var r,a=n(71171),o=n(96234),i=n(30969),s=n(16380),l=n(86822),c=n(19865),u=n(26022),d=n(33028),m=n(32723),p=n(34795),f=n(19886),h=n.n(f),y=n(49725),v=n.n(y),g=n(19611),x=n.n(g),b=n(99237),Z=n.n(b),j=n(22073),k=n(95973),D=n(18877),P=n(94308),I=n(3994),R=n(33359),F=n(72097),w=n(94551),S=n(83176),C=n(70898),z=n(36390),E=n(58323),T=n(89629),H=n(61171),L=n(20244),N=n(41046),q=n(3691),Y=n(29162),_=n(25841),M=n(64828),U=n(27575),W=n(36319),B=n(97930),O=n(4881),A=n(24891),V=n(41395),X=n(24974),K=n.n(X),G=n(28595),J=n(78879),Q=n(35016),$=n(22994),ee=n(42846),te=n(38361),ne=n(37574);function re(e){var t=e.style,n=e.title,r=e.value,a=e.graph,o=e.description;return(0,ne.jsx)(ae,{children:(0,ne.jsxs)(ee.Z,{style:(0,d.Z)({},t),children:[(0,ne.jsx)(R.Z,{sx:{fontSize:14},color:"text.secondary",children:n}),(0,ne.jsx)(R.Z,{variant:"h5",component:"div",mt:1,children:r}),a,!!o&&(0,ne.jsx)(te.Z,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:o})]})})}re.propTypes={style:K().object,title:K().node,value:K().node,graph:K().node,description:K().any},re.defaultProps={style:{},title:null,value:null,graph:null,description:null};var ae=(0,s.Z)($.Z)(r||(r=(0,a.Z)(["\n .card-content {\n height: 150px;\n }\n\n .card-sparkline {\n flex: 2;\n display: flex;\n position: relative;\n *[hidden] {\n display: none;\n }\n }\n .sparkline {\n stroke: ",";\n fill: ","1A;\n }\n .tooltip {\n position: absolute;\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n padding: 2px 5px;\n font-size: 12px;\n white-space: nowrap;\n z-index: 9999;\n }\n .sparkline--cursor {\n stroke: orange;\n }\n\n .sparkline--spot {\n fill: red;\n stroke: red;\n }\n"])),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.palette.primary.main}));function oe(e){var t=e.id,n=e.title,r=e.current,a=e.description,s=e.data,l=e.dateFn,c=e.valueFn,u=(0,i.useRef)(null),m=(0,i.useRef)(null),p=(0,G.Z)({style:{top:0,left:0},hidden:!0,textContent:""}),f=(0,i.useState)(null),h=(0,o.Z)(f,2),y=h[0],v=h[1],g=(0,J.Z)(y),x={onmousemove:function(e,t){var n=t.date,r=t.value;p.textContent="".concat(l(n),": ").concat(c(r)),p.style.top=-30,p.style.left=80,p.hidden=!1},onmouseout:function(){p.hidden=!0}};return(0,i.useEffect)((function(){setTimeout((function(){v(document.querySelector(".".concat(t))),setTimeout((function(){u.current&&(0,Q.Z)(u.current,s||[],x)}),400)}))}),[s]),(0,ne.jsx)(re,{title:n,value:r,graph:(0,ne.jsxs)("div",{className:"card-sparkline ".concat(t),style:{marginTop:16},children:[(0,ne.jsx)("svg",{ref:u,className:"sparkline",width:(null===g||void 0===g?void 0:g.width)||100,height:30,strokeWidth:"2"}),(0,ne.jsx)("span",{className:"tooltip",ref:m,hidden:p.hidden,style:(0,d.Z)({},p.style),children:p.textContent})]}),description:a})}oe.propTypes={id:K().string.isRequired,title:K().string.isRequired,current:K().any.isRequired,description:K().any,data:K().array,dateFn:K().func,valueFn:K().func},oe.defaultProps={description:null,data:[],dateFn:function(e){return e},valueFn:function(e){return e}};var ie=v()(0),se=function(e,t){return[{label:"This Week",startDate:(0,N.Z)(e,{locale:t}),endDate:(0,q.Z)(e,{locale:t})},{label:"Last Week",startDate:(0,N.Z)((0,Y.Z)(e,-1),{locale:t}),endDate:(0,q.Z)((0,Y.Z)(e,-1),{locale:t})},{label:"Last 7 Days",startDate:(0,Y.Z)(e,-1),endDate:e},{label:"This Month",startDate:(0,_.Z)(e),endDate:(0,M.Z)(e)},{label:"Last Month",startDate:(0,_.Z)((0,U.Z)(e,-1)),endDate:(0,M.Z)((0,U.Z)(e,-1))},{label:"This Year",startDate:(0,W.Z)(e),endDate:(0,B.Z)(e)},{label:"Last Year",startDate:(0,W.Z)((0,O.Z)(e,-1)),endDate:(0,B.Z)((0,O.Z)(e,-1))}]};function le(e){var t=e.client,n=e.did,r=h()().subtract(1,"day").toDate(),a=(0,V.h6)(),s=a.info,l=a.inService,c=(0,u.PE)(),f=c.t,y=c.locale,v=(0,i.useState)(null),g=(0,o.Z)(v,2),b=g[0],N=g[1],q=(0,i.useState)(!1),Y=(0,o.Z)(q,2),_=Y[0],M=Y[1],U=(0,i.useState)(r),W=(0,o.Z)(U,2),B=W[0],O=W[1],X=(0,i.useState)({startDate:h()().subtract(30,"day").toDate(),endDate:r}),K=(0,o.Z)(X,2),G=K[0],J=K[1],Q=(0,j.Z)((0,p.Z)((0,m.Z)().mark((function e(){var r;return(0,m.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getTrafficInsights({input:{did:n,startDate:h()(G.startDate).format("YYYY-MM-DD"),endDate:h()(G.endDate).format("YYYY-MM-DD")}});case 2:return r=e.sent,e.abrupt("return",r.list);case 4:case"end":return e.stop()}}),e)}))));(0,i.useEffect)((function(){Q.loading||G.startDate&&G.endDate&&Q.retry()}),[G]);var $=function(e){N(b?null:e.currentTarget)},ee=Q.value||[],te=Q.loading,re=Q.error;if(!ee.length&&te)return(0,ne.jsx)(P.Z,{});if(re)return(0,ne.jsx)(D.Z,{severity:"error",children:(0,A.Z)(re)});var ae={totalRequests:ie,validRequests:ie,failedRequests:ie,uniqueVisitors:ie,uniqueFiles:ie,uniqueReferrers:ie,uniqueNotFound:ie,uniqueStaticFiles:ie,logSize:Z(),bandwidth:Z()},le=Object.keys(ae).map((function(e){return{id:"".concat(e,"_chart"),title:f("analytics.traffic.".concat(e)),current:ee.length?ae[e](ee[0][e]):0,data:ee.map((function(t){return{date:t.date,value:t[e]}})).reverse(),dateFn:ie,valueFn:ae[e]}})),ce=Boolean(b),ue=ce?"date-range-picker-popover":void 0,de=l?L.WELLKNOWN_SERVICE_PATH_PREFIX:s.routing.adminPath,me=x()(window.location.origin,de,"/api/analytics/traffic?date=".concat(h()(B).format("YYYY-MM-DD"),"&did=").concat(n));return(0,ne.jsxs)("div",{children:[(0,ne.jsxs)(R.Z,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:[f("analytics.trend"),(0,ne.jsxs)(F.Z,{onClick:$,variant:"outlined",size:"small",color:"secondary",children:[(0,A.pz)(G.startDate,y)," - ",(0,A.pz)(G.endDate,y)]})]}),(0,ne.jsx)(S.ZP,{id:ue,open:ce,anchorEl:b,onClose:function(){return N(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,ne.jsx)(z.D,{open:!0,toggle:$,maxDate:r,definedRanges:se(B),onChange:function(e){J(e),N(null)}})}),(0,ne.jsx)(I.ZP,{container:!0,spacing:4,children:le.map((function(e){return(0,ne.jsx)(I.ZP,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,ne.jsx)(oe,(0,d.Z)({},e))},e.id)}))}),(0,ne.jsxs)(R.Z,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mt:4,mb:1,children:[f("analytics.detail"),(0,ne.jsxs)("span",{children:[_&&(0,ne.jsx)(w.Z,{onClick:function(){window.open(me)},style:{marginRight:32},children:(0,ne.jsx)(C.Z,{})}),(0,ne.jsx)(H._,{dateAdapter:T.y,children:(0,ne.jsx)(E.M,{disableFuture:!0,format:"ll",value:h()(B),onChange:function(e){O(e.toDate()),M(!1)},slotProps:{textField:{size:"small"}}})})]})]}),(0,ne.jsx)(k.Z,{url:me,width:"100%",height:"100%",frameBorder:0,onLoad:function(){return M(!0)},styles:{border:0,minHeight:"400vh"}})]})}var ce,ue=n(93033),de=n.n(ue),me=n(2291),pe=n(7017),fe=n(45008),he=n(59740),ye=function(e){return"".concat(e,"%")};function ve(e){var t=e.cpus,n=e.currentLoad,r=e.history,a=(0,i.useContext)(u.RD),o=a.t,s=a.locale;return(0,ne.jsx)(oe,{id:"cpu-sparkline",title:o("common.cpu"),current:"".concat(Math.floor(n||0),"%"),data:r,description:"".concat(o("system.cores"),": ").concat((null===t||void 0===t?void 0:t.length)||0),dateFn:function(e){return(0,A.mr)(e,"HH:mm:ss",s)},valueFn:ye})}function ge(e){var t=e.instanceCount,n=e.title,r=e.total,a=e.used,o=e.history,i=(0,u.PE)(),s=i.t,l=i.locale,c=!!r,d=r-a,m=c?"(".concat(Math.floor(a/r*100),"%)"):"",p=[];return t&&p.push({title:s("system.instances"),metric:t}),p.push({title:s("system.used"),metric:Z()(a)}),c&&p.push({title:s("system.free"),metric:Z()(d)},{title:s("system.total"),metric:Z()(r)}),(0,ne.jsx)(oe,{id:"mem-sparkline",title:n||s("common.memory"),current:"".concat(Z()(Math.floor(a||0))," ").concat(m),data:o,description:p.map((function(e,t){return(0,ne.jsxs)(te.Z,{sx:{marginLeft:0===t?0:2},children:[e.title,": ",e.metric]},e.title)})),dateFn:function(e){return(0,A.mr)(e,"HH:mm:ss",l)},valueFn:Z()})}ve.propTypes={cpus:K().array,currentLoad:K().number,history:K().array},ve.defaultProps={cpus:[],currentLoad:0,history:[]},ge.propTypes={title:K().string,instanceCount:K().number,total:K().number,used:K().number,history:K().array},ge.defaultProps={title:"",instanceCount:null,total:null,used:null,history:[]};var xe=["blocklet","cpuHistory","memoryHistory"];function be(e){var t=e.blocklet,n=e.cpuHistory,r=e.memoryHistory,a=(0,he.Z)(e,xe),o=t.appRuntimeInfo||{};return(0,ne.jsx)(je,(0,d.Z)((0,d.Z)({component:"div"},a),{},{children:(0,ne.jsxs)(I.ZP,{className:"page-metrics",container:!0,spacing:5,children:[(0,ne.jsx)(I.ZP,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!n.length&&(0,ne.jsx)(ve,{currentLoad:o.cpuUsage||0,history:n,style:{height:150}})},"cpu"),(0,ne.jsx)(I.ZP,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!r.length&&(0,ne.jsx)(ge,{used:o.memoryUsage||0,history:r,style:{height:150}})},"memory")]})}))}be.propTypes={blocklet:K().object.isRequired,cpuHistory:K().arrayOf(K().shape({date:K().number,value:K().number})),memoryHistory:K().arrayOf(K().shape({date:K().number,value:K().number}))},be.defaultProps={cpuHistory:[],memoryHistory:[]};var Ze,je=(0,s.Z)(R.Z)(ce||(ce=(0,a.Z)([""]))),ke=n(70998);function De(){var e=(0,u.PE)(),t=e.t,n=e.locale,r=(0,fe.y0)(),a=r.blocklet,o=r.runtimeHistory,s=r.actions.refreshBlocklet,l=(0,i.useMemo)((function(){var e=[];return(0,pe.forEachBlockletSync)(a,(function(t,n){var r=n.ancestors,o=n.id,i=n.level;t.runtimeInfo&&e.push({type:"blocklet",groupId:a.meta.did,groupName:(0,pe.getDisplayName)(a),id:o,name:(0,pe.getDisplayName)(t,!0),blocklet:a,component:t,level:i-1>=0?i-1:0,runtimeInfo:t.runtimeInfo,ancestors:r})})),e}),[a]);(0,i.useEffect)((function(){var e=setInterval((function(){s()}),1e4);return function(){clearInterval(e)}}),[]);var c=[{label:t("common.name"),name:"name",options:{customBodyRenderLite:function(e){var t=l[e],n=t.name,r=t.component,a=t.level,o=t.ancestors;return(0,ne.jsxs)(te.Z,{display:"flex",alignItems:"center",pl:2*a,children:[(0,ne.jsx)(ke.Z,{size:14,blocklet:r,ancestors:o}),(0,ne.jsx)(te.Z,{ml:1,children:n})]})}}},{label:t("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite:function(e){var t,r=l[e].runtimeInfo;return t=r.uptime,de()(Number(t||0),{locale:(0,A.FF)(n)})}}},{label:t("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite:function(e){var t=l[e].runtimeInfo;return Z()((null===t||void 0===t?void 0:t.memoryUsage)||0)}}},{label:t("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite:function(e){var t=l[e].runtimeInfo;return"".concat((t.cpuUsage||0).toFixed(1),"%")}}},{label:t("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:t("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return(0,ne.jsxs)(Ie,{component:"div",children:[(0,ne.jsx)(R.Z,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:t("analytics.trend")}),"running"===a.status?[(0,ne.jsx)(te.Z,{children:(0,ne.jsx)(be,{blocklet:a,cpuHistory:o.cpu,memoryHistory:o.memory})}),(0,ne.jsx)(te.Z,{mt:3,children:(0,ne.jsx)(me.Z,{title:t("analytics.detail"),className:"monitor-table",locale:n,data:l,columns:c,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]:(0,ne.jsx)(R.Z,{children:t("blocklet.runtimeInfo.noRunning")})]})}De.propTypes={};var Pe,Ie=(0,s.Z)(R.Z)(Ze||(Ze=(0,a.Z)([""]))),Re=n(23938);function Fe(){var e=(0,i.useContext)(u.RD).t,t=(0,Re.y0)(),n=t.did,r=t.client,a=(0,l.lr)(),s=(0,o.Z)(a,2),d=s[0],m=s[1],p=(0,i.useState)(d.get("tab")||"traffic"),f=(0,o.Z)(p,2),h=f[0],y=f[1];(0,i.useEffect)((function(){d.set("tab",h),m(d,{replace:!0})}),[h]);var v=[{label:e("common.traffic"),value:"traffic"},{label:e("common.runtime"),value:"runtime"}],g={traffic:le,runtime:De},x=g[h]||g.traffic;return(0,ne.jsxs)(we,{children:[(0,ne.jsx)(c.Z,{tabs:v,current:h,onChange:function(e){y(e)}}),(0,ne.jsx)("div",{className:"page-content",children:(0,i.isValidElement)(x)?x:(0,ne.jsx)(x,{client:r,did:n})})]},h)}var we=s.Z.main(Pe||(Pe=(0,a.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-content {\n margin-top: 16px;\n }\n"])))},70998:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(33028),a=n(59740),o=n(24974),i=n.n(o),s=n(59467),l=n(62399),c=n(19611),u=n.n(c),d=n(20244),m=n(41395),p=n(24891);var f=n(37574),h=["blocklet","style","size","ancestors"];function y(e){var t=e.blocklet,n=e.style,o=e.size,i=e.ancestors,c=(0,a.Z)(e,h),y=(0,m.h6)(),v=function(e){var t,n=e.blocklet,r=e.ancestors,a=void 0===r?[]:r,o=(0,m.h6)(),i=o.inService,s="?v=".concat(null===n||void 0===n||null===(t=n.meta)||void 0===t?void 0:t.version).concat((0,p.XN)(null===n||void 0===n?void 0:n.status)?"~":""),l=i?u()(p.zn,d.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle",s):u()(o.imgPrefix,"blocklet.png");if("registry"===n.source&&n.deployedFrom&&n.meta.logo)l=u()(n.deployedFrom,(0,p.lk)(n.meta.bundleDid,n.meta.logo),s);else{var c=window.env.apiPrefix||"/",f=a.concat(n),h=i?f.slice(1):f;l=u()(c,"/blocklet/logo-bundle".concat(h.map((function(e){return"/".concat(e.meta.did)})).join("")),s)}return{logoUrl:l,inService:i}}({blocklet:t,ancestors:i}),g=v.logoUrl,x=v.inService,b=c.variant,Z=x?function(){}:function(e){e.target.src="".concat(y.imgPrefix,"/blocklet.png")},j=(0,f.jsx)("img",{src:g,onError:Z,alt:t.meta.name,style:{width:o}});return t.meta.logo||(j=(0,f.jsx)(l.Z,{did:t.meta.did||"",responsive:!0})),(0,f.jsx)(s.Z,(0,r.Z)((0,r.Z)({variant:b||"square",style:Object.assign({backgroundColor:"transparent",width:o,height:o,borderRadius:10},n)},c),{},{children:j}))}y.propTypes={blocklet:i().object.isRequired,style:i().object,size:i().oneOfType([i().number,i().string]),ancestors:i().array},y.defaultProps={style:{},size:40,ancestors:[]}}}]);
2
- //# sourceMappingURL=5569.e4bfe697.chunk.js.map