!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5f411ae0-8a01-4012-8f19-985b4c45dfd4",e._sentryDebugIdIdentifier="sentry-dbid-5f411ae0-8a01-4012-8f19-985b4c45dfd4")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"9332d759e18bd663bd9f8bd6b7633616d12f17f2"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8853],{14125:(e,t,o)=>{o.d(t,{l:()=>u,q:()=>c});o(25509),o(65223),o(60321),o(41927),o(11632),o(64377),o(66771),o(12516),o(68931),o(52514),o(35694),o(52774),o(49536),o(21926),o(94483),o(16215);var n=o(96540),r=o(47767),s=o(27467),d=o(97054),a=o(3914),l=o(47762),f=o(64118),i=o(8239);const c=e=>{let{alertId:t,alertName:o,nodeIds:s=[]}=e;const a=(0,r.Zp)(),{setState:c}=(0,i.L5)(),[u]=(0,d.Ay)(),{name:g}=(0,f.JL)(t),b=o||g,{isParent:h}=(0,l.xY)(s[0]),{loaded:p,value:y,hasError:w,error:I}=(0,i.wd)({node:{value:s[0],isParent:h},path:"/health"});return{canEdit:p&&!w&&!!y?.tree?.["/health/alerts/prototypes"]?.[`health:alert:prototype:${b}`],goToEdit:(0,n.useCallback)((e=>{s=e?Array.from(new Set([e,...s])):s,console.log({firstNodeId:e,nodeIds:s}),c({alertName:b,nodeIds:s,isAlert:!0}),a(`/spaces/${u}/settings/configurations`,{replace:!0})}),[b,s,u,c,a]),error:I?.errorMessage||I}},u=()=>{const e=(0,r.Zp)(),{slug:t}=(0,a.ap)(),o=(0,s.rI)();return(0,n.useCallback)((n=>{n&&(o((e=>({...e,dyncfgSearchTerm:n}))),e(`/spaces/${t}/settings/configurations`,{replace:!0}))}),[e,o,t])}},3705:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(96540);const r={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},s=()=>{const[e,t]=(0,n.useState)(null),[o,s]=(0,n.useState)(r),d=(0,n.useMemo)((()=>new window.ResizeObserver((e=>{if(e[0]){const{x:t,y:o,width:n,height:r,top:d,left:a,bottom:l,right:f}=e[0].contentRect;s({x:t,y:o,width:n,height:r,top:d,left:a,bottom:l,right:f})}}))),[]);return(0,n.useLayoutEffect)((()=>{if(e)return d.observe(e),()=>{d.disconnect()}}),[e]),[t,o]}},97054:(e,t,o)=>{o.d(t,{Ay:()=>i,KI:()=>f,TP:()=>l});var n=o(96540),r=o(47767),s=o(69765),d=o(3914);const a=(e,t,o)=>{const r=t();(0,n.useLayoutEffect)((()=>{r!==e&&o(e)}),[r,e])},l=()=>{const{roomSlug:e}=(0,r.g)(),t=(0,s.A2)();return a(e,s.QW,t),e},f=()=>{const{spaceSlug:e}=(0,r.g)(),t=(0,d.hX)();return a(e,d.bq,t),e},i=()=>[f(),l()]}}]);