!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"b822131a7726f932fb1cd592a409834835333014"};var r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="38bcc8a6-6fd8-4f30-852b-8597514305ec",e._sentryDebugIdIdentifier="sentry-dbid-38bcc8a6-6fd8-4f30-852b-8597514305ec")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[6026],{96026(e,r,a){a.d(r,{l:()=>b,q:()=>u});a(25509),a(65223),a(60321),a(41927),a(11632),a(64377),a(66771),a(12516),a(68931),a(52514),a(35694),a(52774),a(49536),a(21926),a(94483),a(16215);var t=a(96540),n=a(5981),d=a(42790),o=a(61841),s=a(24609),l=a(24013),c=a(19075),f=a(91421),i=a(15750);const u=e=>{let{alertId:r,alertName:a,nodeIds:d=[]}=e;const s=(0,n.Zp)(),{setState:i}=(0,f.$h)(),[u]=(0,o.Ay)(),{name:b}=(0,c.JL)(r),h=a||b,{isParent:p}=(0,l.xY)(d[0]),{loaded:g,value:y,hasError:w,error:I}=(0,f.wd)({node:{value:d[0],isParent:p},path:"/health"}),E=!!y?.tree?.["/health/alerts/prototypes"]?.[`health:alert:prototype:${h}`],[,k]=(0,f.PJ)();return{canEdit:g&&!w&&E,goToEdit:(0,t.useCallback)(e=>{d=e?Array.from(new Set([e,...d])):d,i({alertName:h,isAlert:!0}),k(!0,{nodeId:d[0]})},[h,d,u,i,s]),error:I?.errorMessage||I}},b=()=>{const e=(0,n.Zp)(),{slug:r}=(0,s.ap)(),a=(0,d.rI)(),o=(0,i.A)();return(0,t.useCallback)(t=>{t&&(a(e=>({...e,dyncfgSearchTerm:t})),e(o(`/spaces/${r}/settings/configurations`),{replace:!0}))},[e,a,r,o])}}}]);