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