"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["4903"],{29114:function(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(30545),l=r(69873),a=r(81297),o=r(23420);let i=(0,a.A)((0,o.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),s=(0,a.A)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var c=r(50743),u=r(52668),d=r(44780),f=r(79756),m=r(69618),A=r(14240),h=(0,r(29934).n9)()({container:{flexWrap:"nowrap"}}),b=r(9697);function p(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 y=function(e){var t=e.enabledAutorefresh,r=e.toggleAutorefresh,n=(0,l.useTranslation)().t,a=t?m.LcE:m.oNs;return b.createElement(d.A,{ariaLabel:n(a),"data-testid":"Disable autorefresh",size:"small",title:n(a),onClick:r},t?b.createElement(i,null):b.createElement(s,null))};let v=function(e){var t,r=e.onRefresh,a=e.displayAsIcons,o=e.displayAsList,i=h().classes,s=(0,l.useTranslation)().t,v=(t=(0,n.useAtom)(f.H$),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=[],o=!0,i=!1;try{for(l=l.call(e);!(o=(r=l.next()).done)&&(a.push(r.value),2!==a.length);o=!0);}catch(e){i=!0,n=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw n}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return p(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 p(e,2)}}(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=v[0],g=v[1],k=(0,n.useAtomValue)(f.uK),C=function(){g(!E)};return b.createElement(b.Fragment,null,(void 0===a||a)&&b.createElement(u.A,{container:!0,className:i.container},b.createElement(u.A,{item:!0},b.createElement(d.A,{ariaLabel:s(m.aoD),"data-testid":"Refresh",disabled:k,size:"small",title:s(m.aoD),onClick:r},b.createElement(c.A,null))),b.createElement(u.A,{item:!0},b.createElement(y,{enabledAutorefresh:E,toggleAutorefresh:C}))),(null==o?void 0:o.display)&&b.createElement(b.Fragment,null,b.createElement(A.A,{permitted:!0,disabled:!1,label:m.aoD,testId:"RefreshInMoreActions",onClick:function(){r(),o.close()}}),b.createElement(A.A,{permitted:!0,disabled:!1,label:E?m.LcE:m.oNs,testId:"AutorefreshInMoreActions",onClick:function(){C(),o.close()}})))}},14240:function(e,t,r){r.d(t,{A:()=>s});var n=r(69873),l=r(32558),a=r(62672),o=r(69618),i=r(9697);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(o.AZI);return i.createElement(l.A,{title:f},i.createElement("div",null,i.createElement(a.A,{"data-testid":s,disabled:u,onClick:c},d(r))))}},50743:function(e,t,r){r.d(t,{A:()=>a});var n=r(81297),l=r(23420);let a=(0,n.A)((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=4903.d3f89e5c26708330.3025d0986107527a.d9c6ad45f12e48bd.js.map