"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["4848"],{76451:function(e,t,r){r.r(t),r.d(t,{default:()=>A});var n=r(31378),l=r(18512),a=r(98896),i=r(74132);let o=(0,a.Z)((0,i.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),s=(0,a.Z)((0,i.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var c=r(33242),u=r(5274),d=r(26959),f=r(20145),m=r(8475),h=r(3997),b=(0,r(59770).ZL)()({container:{flexWrap:"nowrap"}}),p=r(69971);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var v=function(e){var t=e.enabledAutorefresh,r=e.toggleAutorefresh,n=(0,l.useTranslation)().t,a=t?m.B21:m.mhU;return p.createElement(d.Z,{ariaLabel:n(a),"data-testid":"Disable autorefresh",size:"small",title:n(a),onClick:r},t?p.createElement(o,null):p.createElement(s,null))};let A=function(e){var t,r=e.onRefresh,a=e.displayAsIcons,i=e.displayAsList,o=b().classes,s=(0,l.useTranslation)().t,A=(t=(0,n.useAtom)(f.Op),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r,n,l=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){var a=[],i=!0,o=!1;try{for(l=l.call(e);!(i=(r=l.next()).done)&&(a.push(r.value),a.length!==t);i=!0);}catch(e){o=!0,n=e}finally{try{i||null==l.return||l.return()}finally{if(o)throw n}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return y(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=A[0],Z=A[1],g=(0,n.useAtomValue)(f.zz),k=function(){Z(!E)};return p.createElement(p.Fragment,null,(void 0===a||a)&&p.createElement(u.Z,{container:!0,className:o.container},p.createElement(u.Z,{item:!0},p.createElement(d.Z,{ariaLabel:s(m.nj5),"data-testid":"Refresh",disabled:g,size:"small",title:s(m.nj5),onClick:r},p.createElement(c.Z,null))),p.createElement(u.Z,{item:!0},p.createElement(v,{enabledAutorefresh:E,toggleAutorefresh:k}))),(null==i?void 0:i.display)&&p.createElement(p.Fragment,null,p.createElement(h.Z,{permitted:!0,disabled:!1,label:m.nj5,testId:"RefreshInMoreActions",onClick:function(){r(),i.close()}}),p.createElement(h.Z,{permitted:!0,disabled:!1,label:E?m.B21:m.mhU,testId:"AutorefreshInMoreActions",onClick:function(){k(),i.close()}})))}},3997:function(e,t,r){r.d(t,{Z:()=>s});var n=r(18512),l=r(57633),a=r(21580),i=r(8475),o=r(69971);let s=function(e){var t=e.permitted,r=e.label,s=e.testId,c=e.onClick,u=e.disabled,d=(0,n.useTranslation)().t,f=t?"":d(i.x6i);return o.createElement(l.Z,{title:f},o.createElement("div",null,o.createElement(a.Z,{"data-testid":s,disabled:u,onClick:c},d(r))))}},33242:function(e,t,r){r.d(t,{Z:()=>a});var n=r(98896),l=r(74132);let a=(0,n.Z)((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 11h7V4z"}),"Refresh")}}]);
//# sourceMappingURL=4848.347d3de92149a114.631a888f50e593b0.2e0808560de9b2c0.js.map