MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/netdata/usr/share/netdata/web/v3/1861.9081faae8dc2e5f42880.chunk.js
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cfc00e38-e914-4264-9d5d-41059b2caf6d",e._sentryDebugIdIdentifier="sentry-dbid-cfc00e38-e914-4264-9d5d-41059b2caf6d")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"90b87a93a48a089118916e8342e7b31e0e561cb5"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[1861],{61841:(e,t,n)=>{n.d(t,{Ay:()=>c,KI:()=>i,TP:()=>l});var o=n(96540),r=n(88934),a=n(19186),d=n(24609);const s=(e,t,n)=>{const r=t();(0,o.useLayoutEffect)((()=>{r!==e&&n(e)}),[r,e])},l=()=>{const{roomSlug:e}=(0,r.g)(),t=(0,a.A2)();return s(e,a.QW,t),e},i=()=>{const{spaceSlug:e}=(0,r.g)(),t=(0,d.hX)();return s(e,d.bq,t),e},c=()=>[i(),l()]},85660:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(96540);const r={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},a=()=>{const[e,t]=(0,o.useState)(null),[n,a]=(0,o.useState)(r),d=(0,o.useMemo)((()=>new window.ResizeObserver((e=>{if(e[0]){const{x:t,y:n,width:o,height:r,top:d,left:s,bottom:l,right:i}=e[0].contentRect;a({x:t,y:n,width:o,height:r,top:d,left:s,bottom:l,right:i})}}))),[]);return(0,o.useLayoutEffect)((()=>{if(e)return d.observe(e),()=>{d.disconnect()}}),[e]),[t,n]}},96026:(e,t,n)=>{n.d(t,{l:()=>u,q:()=>f});n(25509),n(65223),n(60321),n(41927),n(11632),n(64377),n(66771),n(12516),n(68931),n(52514),n(35694),n(52774),n(49536),n(21926),n(94483),n(16215);var o=n(96540),r=n(88934),a=n(42790),d=n(61841),s=n(24609),l=n(24013),i=n(19075),c=n(91421);const f=e=>{let{alertId:t,alertName:n,nodeIds:a=[]}=e;const s=(0,r.Zp)(),{setState:f}=(0,c.$h)(),[u]=(0,d.Ay)(),{name:h}=(0,i.JL)(t),b=n||h,{isParent:g}=(0,l.xY)(a[0]),{loaded:y,value:p,hasError:w,error:m}=(0,c.wd)({node:{value:a[0],isParent:g},path:"/health"}),E=!!p?.tree?.["/health/alerts/prototypes"]?.[`health:alert:prototype:${b}`],[,I]=(0,c.PJ)();return{canEdit:y&&!w&&E,goToEdit:(0,o.useCallback)((e=>{a=e?Array.from(new Set([e,...a])):a,f({alertName:b,isAlert:!0}),I(!0,{nodeId:a[0]})}),[b,a,u,f,s]),error:m?.errorMessage||m}},u=()=>{const e=(0,r.Zp)(),{slug:t}=(0,s.ap)(),n=(0,a.rI)();return(0,o.useCallback)((o=>{o&&(n((e=>({...e,dyncfgSearchTerm:o}))),e(`/spaces/${t}/settings/configurations`,{replace:!0}))}),[e,n,t])}}}]);