"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["3859"],{25307:function(e,t,n){n.r(t);var r=n(1975),o=n(83004),l=n(82014),a=n(72663),i=n(1975),u=(0,r.lazy)(function(){return Promise.all([n.e("3897"),n.e("6556"),n.e("437"),n.e("8725"),n.e("1812"),n.e("1805"),n.e("9617"),n.e("2973"),n.e("7954"),n.e("6790"),n.e("5157"),n.e("8830"),n.e("5446"),n.e("7651"),n.e("1478"),n.e("6439"),n.e("9129"),n.e("5816"),n.e("952"),n.e("5025"),n.e("8201"),n.e("7840"),n.e("1360"),n.e("6863"),n.e("1984"),n.e("5894"),n.e("4750"),n.e("427"),n.e("4251"),n.e("1785"),n.e("1065"),n.e("9421"),n.e("9016"),n.e("1018"),n.e("9916"),n.e("948"),n.e("2681"),n.e("2720"),n.e("1357"),n.e("8208"),n.e("2322"),n.e("3448"),n.e("6680"),n.e("2822"),n.e("1906"),n.e("2608"),n.e("4268"),n.e("7576"),n.e("7661"),n.e("6957"),n.e("1399"),n.e("5159"),n.e("7398"),n.e("3385"),n.e("2312"),n.e("1627"),n.e("7104"),n.e("637"),n.e("5009"),n.e("6075"),n.e("6574"),n.e("2793"),n.e("1534"),n.e("9481"),n.e("6918"),n.e("3054"),n.e("9321"),n.e("9175"),n.e("2763"),n.e("827"),n.e("4143"),n.e("3973"),n.e("5074"),n.e("7883"),n.e("5826"),n.e("5461"),n.e("1925"),n.e("5200"),n.e("2594"),n.e("2430"),n.e("2547"),n.e("8521"),n.e("799"),n.e("6882"),n.e("7847"),n.e("8555"),n.e("9186"),n.e("4166"),n.e("8961"),n.e("8975"),n.e("2989"),n.e("3702"),n.e("1781"),n.e("5480"),n.e("9071")]).then(n.bind(n,57862))});t.default=function(){return i.createElement(r.Suspense,{fallback:i.createElement(l.Z,null)},i.createElement(o.Routes,null,i.createElement(o.Route,{element:i.createElement(a.Z,null),path:"/main.php/*"}),i.createElement(o.Route,{element:i.createElement(u,null),path:"/*"})))}},72663:function(e,t,n){var r=n(1975),o=n(16451),l=n(48065),a=n(87607),i=n(41677),u=n(83004),c=n(35997),d=n(82014),m=n(1975);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t.Z=function(){var e,t,n=(e=(0,r.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var l=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(l.push(n.value),!t||l.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(i)throw r}}return l}}(e,2)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=n[0],s=n[1],h=(0,u.useLocation)(),y=(0,u.useNavigate)(),p=(0,c.O)().toggleFullscreen,E=function(e){var t=e.detail.href;window.history.pushState(null,t,t)},g=function(e){var t,n,r,l,a,u;if(!((0,i.Z)(null===(r=document.getElementById("main-content"))||void 0===r?void 0:null===(n=r.contentWindow)||void 0===n?void 0:null===(t=n.document.activeElement)||void 0===t?void 0:t.tagName,["INPUT","TEXTAREA"])||(0,o.Z)(null===(u=document.getElementById("main-content"))||void 0===u?void 0:null===(a=u.contentWindow)||void 0===a?void 0:null===(l=a.document.activeElement)||void 0===l?void 0:l.getAttribute("contenteditable"),"true"))&&!!(0,o.Z)(e.code,"KeyF"))p(document.querySelector("body"))};(0,r.useEffect)(function(){var e,t;return window.addEventListener("react.href.update",E,!1),null===(t=document.getElementById("main-content"))||void 0===t||null===(e=t.contentWindow)||void 0===e||e.addEventListener("keypress",g,!1),function(){var e,t;window.removeEventListener("react.href.update",E),null===(t=document.getElementById("main-content"))||void 0===t||null===(e=t.contentWindow)||void 0===e||e.removeEventListener("keypress",g)}},[]);var b=h.search,w=h.hash;return m.createElement(m.Fragment,null,v&&m.createElement(d.Z,null),m.createElement("iframe",{frameBorder:"0",id:"main-content",name:"main-content",scrolling:"yes",src:"./main.get.php".concat((b||"")+(w||"")),style:{height:"100%",width:"100%"},title:"Main Content",onLoad:function(){var e,t;s(!1),null===(t=document.getElementById("main-content"))||void 0===t||null===(e=t.contentWindow)||void 0===e||e.document.querySelectorAll("a").forEach(function(e){e.addEventListener("click",function(e){var t=e.target.getAttribute("href"),n=e.target.getAttribute("target");if((0,o.Z)(n,"_blank"))return;if(e.preventDefault(),(0,l.Z)(t))return;var r=(0,a.Z)("./","",t);if(!(0,o.Z)(r,"#")&&!!r.match(/^main.php/))y("/".concat(r),{replace:!0})},{once:!0})})}}))}},87607:function(e,t,n){var r=(0,n(99443).Z)(function(e,t,n){return n.replace(e,t)});t.Z=r}}]);
//# sourceMappingURL=3859.789deea749d8e455c286.2409993614ec82548afb.1956bc7e7bc1c00175ba.js.map