"use strict";(self.webpackChunkname=self.webpackChunkname||[]).push([[1862],{53247:(e,t,r)=>{var a=r(64836);t.Z=void 0;var n=a(r(64938)),l=r(85893),o=(0,n.default)((0,l.jsx)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"Pause");t.Z=o},58989:(e,t,r)=>{var a=r(64836);t.Z=void 0;var n=a(r(64938)),l=r(85893),o=(0,n.default)((0,l.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");t.Z=o},1849:(e,t,r)=>{var a=r(64836);t.Z=void 0;var n=a(r(64938)),l=r(85893),o=(0,n.default)((0,l.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh");t.Z=o},31862:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var a=r(63397),n=r(80620),l=r(16651),o=r(1849),u=r(58989),c=r(53247),i=r(21669),s=r(43412),f=r(93188);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var m=function(e){var t=e.enabledAutorefresh,r=e.toggleAutorefresh,n=(0,a.useTranslation)().t,l=t?s.B21:s.mhU;return React.createElement(i.Z,{ariaLabel:n(l),"data-testid":"Disable autorefresh",size:"small",title:n(l),onClick:r},t?React.createElement(c.Z,null):React.createElement(u.Z,null))};const d=function(e){var t,r,u=e.onRefresh,c=(0,a.useTranslation)().t,d=(t=(0,n.useAtom)(f.Op),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,l=[],o=!0,u=!1;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(l.push(a.value),!t||l.length!==t);o=!0);}catch(e){u=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(u)throw n}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=d[0],y=d[1],b=(0,n.useAtomValue)(f.zz);return React.createElement(l.ZP,{container:!0,spacing:1},React.createElement(l.ZP,{item:!0},React.createElement(i.Z,{ariaLabel:c(s.nj5),"data-testid":"Refresh",disabled:b,size:"small",title:c(s.nj5),onClick:u},React.createElement(o.Z,null))),React.createElement(l.ZP,{item:!0},React.createElement(m,{enabledAutorefresh:v,toggleAutorefresh:function(){y(!v)}})))}}}]);