!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]="7c78a004-f8a5-4f81-bbbe-87a5249f5f86",e._sentryDebugIdIdentifier="sentry-dbid-7c78a004-f8a5-4f81-bbbe-87a5249f5f86")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8a739758aeaa9703d317afd549bb0f90035c314e"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8853],{14125:(e,t,n)=>{n.d(t,{l:()=>u,q:()=>c});var o=n(96540),r=n(47767),a=n(27467),s=n(97054),d=n(3914),l=n(47762),f=n(64118),i=n(8239);const c=e=>{let{alertId:t,alertName:n,nodeId:a,nodes:d}=e;const c=(0,r.Zp)(),{setState:u}=(0,i.L5)(),[b]=(0,s.Ay)(),{name:g}=(0,f.JL)(t),h=n||g,{isParent:p}=(0,l.xY)(a),{loaded:y,value:w,hasError:E,error:I}=(0,i.wd)({node:{value:a,isParent:p},path:"/health"});return{canEdit:y&&!E&&!!w?.tree?.["/health/alerts/prototypes"]?.[`health:alert:prototype:${h}`],goToEdit:(0,o.useCallback)((()=>{u({nodeId:a,alertName:h,nodeIds:d,isAlert:!0}),c(`/spaces/${b}/settings/configurations`,{replace:!0})}),[u,c,b,a,h]),error:I?.errorMessage||I}},u=()=>{const e=(0,r.Zp)(),{slug:t}=(0,d.ap)(),[,n]=(0,a.N9)();return(0,o.useCallback)((o=>{o&&(n({dyncfgSearchTerm:o}),e(`/spaces/${t}/settings/configurations`,{replace:!0}))}),[e,n,t])}},3705:(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),s=(0,o.useMemo)((()=>new window.ResizeObserver((e=>{if(e[0]){const{x:t,y:n,width:o,height:r,top:s,left:d,bottom:l,right:f}=e[0].contentRect;a({x:t,y:n,width:o,height:r,top:s,left:d,bottom:l,right:f})}}))),[]);return(0,o.useLayoutEffect)((()=>{if(e)return s.observe(e),()=>{s.disconnect()}}),[e]),[t,n]}},97054:(e,t,n)=>{n.d(t,{Ay:()=>i,KI:()=>f,TP:()=>l});var o=n(96540),r=n(47767),a=n(69765),s=n(3914);const d=(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 d(e,a.QW,t),e},f=()=>{const{spaceSlug:e}=(0,r.g)(),t=(0,s.hX)();return d(e,s.bq,t),e},i=()=>[f(),l()]}}]);