/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.securitySolution_bundle_jsonpfunction=window.securitySolution_bundle_jsonpfunction||[]).push([[11],{115:function(e,n,t){"use strict";t.r(n),t.d(n,"parseRoute",(function(){return g})),t.d(n,"manageOldSiemRoutes",(function(){return b})),t.d(n,"getInspectResponse",(function(){return h})),t.d(n,"isDetectionsPath",(function(){return v})),t.d(n,"isTourPath",(function(){return m})),t.d(n,"isThreatIntelligencePath",(function(){return k})),t.d(n,"getSubPluginRoutesByCapabilities",(function(){return _})),t.d(n,"isSubPluginAvailable",(function(){return w})),t.d(n,"getFieldKey",(function(){return y})),t.d(n,"getField",(function(){return j})),t.d(n,"isTimelineScope",(function(){return I})),t.d(n,"isInTableScope",(function(){return T})),t.d(n,"isAlertsPageScope",(function(){return A})),t.d(n,"getScopedActions",(function(){return P})),t.d(n,"getScopedSelectors",(function(){return L})),t.d(n,"isActiveTimeline",(function(){return N})),t.d(n,"getSourcererScopeId",(function(){return R}));var r=t(129),u=t(42),i=t(2),a=t.n(i),c=t(45),o=t(119),s=t(4),d=t(698),l=t(131),p=t(111),f=t(142),$=t(110);const g=e=>{if(!Object(u.isEmpty)(e.hash)){var n;const t=e.hash.split("?"),r=t.length>=1?`?${t[1]}`:"",u=t.length>0?t[0].split("/"):[];return{pageName:u.length>=1?u[1]:"",path:`/${null!==(n=u.slice(2).join("/"))&&void 0!==n?n:""}${r}`,search:r}}const t=e.search,r=e.pathname.split("/");return{pageName:r[3],path:`${r.length>4?`/${r.slice(4).join("/")}`:""}${t}`,search:t}},b=async e=>{const{application:n}=e,{pageName:t,path:r}=g(window.location);switch(t){case l.a.overview:n.navigateToApp(s.l,{deepLinkId:l.a.overview,replace:!0,path:r});break;case"ml-hosts":n.navigateToApp(s.l,{deepLinkId:l.a.hosts,replace:!0,path:`/ml-hosts${r}`});break;case l.a.hosts:n.navigateToApp(s.l,{deepLinkId:l.a.hosts,replace:!0,path:r});break;case"ml-network":n.navigateToApp(s.l,{deepLinkId:l.a.network,replace:!0,path:`/ml-network${r}`});break;case l.a.network:n.navigateToApp(s.l,{deepLinkId:l.a.network,replace:!0,path:r});break;case l.a.timelines:n.navigateToApp(s.l,{deepLinkId:l.a.timelines,replace:!0,path:r});break;case l.a.case:case"case":n.navigateToApp(s.l,{deepLinkId:l.a.case,replace:!0,path:r});break;case l.a.detections:case l.a.alerts:n.navigateToApp(s.l,{deepLinkId:l.a.alerts,replace:!0,path:r});break;case l.a.rules:n.navigateToApp(s.l,{deepLinkId:l.a.rules,replace:!0,path:r});break;case l.a.exceptions:n.navigateToApp(s.l,{deepLinkId:l.a.exceptions,replace:!0,path:r});break;default:n.navigateToApp(s.l,{deepLinkId:l.a.landing,replace:!0,path:r})}},h=(e,n)=>{var t,r,u;return{dsl:null!==(t=null!==(r=null==e||null===(u=e.inspect)||void 0===u?void 0:u.dsl)&&void 0!==r?r:null==n?void 0:n.dsl)&&void 0!==t?t:[],response:null!=e?[JSON.stringify(e.rawResponse,null,2)]:null==n?void 0:n.response}},v=e=>!!Object(c.matchPath)(e,{path:`(${s.d}|${s.mc}|${s.tb})`,strict:!1}),m=e=>(e=>!!Object(c.matchPath)(e,{path:`${s.d}`,strict:!1}))(e)||(e=>!!Object(c.matchPath)(e,{path:`${s.r}/:detailName`,strict:!1}))(e),k=e=>!!Object(c.matchPath)(e,{path:`(${s.xc})`,strict:!1}),_=(e,n,t)=>Object.entries(e).reduce(((e,[r,u])=>{if(w(r,n))e.push(...u.routes);else{const n=e=>e.siem.privileges;e.push(...u.routes.map((e=>({path:e.path,component:()=>{const e=t.upselling.getPageUpselling(r);return e?a.a.createElement(e,null):a.a.createElement(d.b,{pageName:r,docLinkSelector:n})}}))))}return e}),[]),w=(e,n)=>"cases"===e?!0===n[s.q].read_cases:!0===n[s.tc].show,S={[r.S]:"signal.rule.id",[r.D]:"signal.rule.name",[`${r.G}.filters`]:"signal.rule.filters",[`${r.G}.language`]:"signal.rule.language",[`${r.G}.query`]:"signal.rule.query"},O={"signal.rule.id":r.S,"signal.rule.name":r.D,"signal.rule.filters":`${r.G}.filters`,"signal.rule.language":`${r.G}.language`,"signal.rule.query":`${r.G}.query`},y=(e,n)=>{var t,r;const i=(null!==(t=O[n])&&void 0!==t?t:n).replace("signal","kibana.alert"),a=(null!==(r=S[n])&&void 0!==r?r:n).replace("kibana.alert","signal");return Object(u.has)(i,e)?i:a},j=(e,n)=>{var t,r,i;const a=(null!==(t=O[n])&&void 0!==t?t:n).replace("signal","kibana.alert"),c=(null!==(r=S[n])&&void 0!==r?r:n).replace("kibana.alert","signal"),o=a.split(".");if(o.includes("parameters")&&"parameters"!==o[o.length-1]){const n=o.slice(0,o.length-1).join("."),t=Object(u.get)(n,e);return Object(u.get)(o[o.length-1],t)}return null!==(i=Object(u.get)(a,e))&&void 0!==i?i:Object(u.get)(c,e)},I=e=>Object.values(f.f).includes(e),T=e=>Object.values(o.e).includes(e),A=e=>[o.e.alertsOnAlertsPage,o.e.alertsOnRuleDetailsPage,o.e.alertsOnCasePage].includes(e),P=e=>I(e)?p.a:T(e)?o.h:void 0,L=e=>I(e)?p.a:T(e)?o.h:void 0,N=e=>e===f.f.active,R=e=>I(e)?$.SourcererScopeName.timeline:A(e)?$.SourcererScopeName.detections:$.SourcererScopeName.default},129:function(e,n,t){"use strict";t.d(n,"o",(function(){return i})),t.d(n,"E",(function(){return a})),t.d(n,"a",(function(){return s})),t.d(n,"c",(function(){return d})),t.d(n,"e",(function(){return l})),t.d(n,"f",(function(){return p})),t.d(n,"j",(function(){return f})),t.d(n,"k",(function(){return $})),t.d(n,"n",(function(){return g})),t.d(n,"l",(function(){return b})),t.d(n,"m",(function(){return h})),t.d(n,"p",(function(){return v})),t.d(n,"s",(function(){return y})),t.d(n,"t",(function(){return j})),t.d(n,"z",(function(){return I})),t.d(n,"D",(function(){return T})),t.d(n,"G",(function(){return A})),t.d(n,"H",(function(){return P})),t.d(n,"J",(function(){return L})),t.d(n,"M",(function(){return N})),t.d(n,"P",(function(){return R})),t.d(n,"S",(function(){return G})),t.d(n,"V",(function(){return m})),t.d(n,"W",(function(){return k})),t.d(n,"fb",(function(){return _})),t.d(n,"gb",(function(){return E})),t.d(n,"hb",(function(){return w})),t.d(n,"jb",(function(){return S})),t.d(n,"kb",(function(){return O})),t.d(n,"qb",(function(){return c})),t.d(n,"sb",(function(){return r})),t.d(n,"tb",(function(){return o})),t.d(n,"q",(function(){return B})),t.d(n,"r",(function(){return C})),t.d(n,"u",(function(){return F})),t.d(n,"v",(function(){return M})),t.d(n,"w",(function(){return J})),t.d(n,"x",(function(){return K})),t.d(n,"A",(function(){return V})),t.d(n,"B",(function(){return Y})),t.d(n,"C",(function(){return z})),t.d(n,"F",(function(){return H})),t.d(n,"I",(function(){return Q})),t.d(n,"K",(function(){return W})),t.d(n,"L",(function(){return X})),t.d(n,"N",(function(){return Z})),t.d(n,"O",(function(){return ee})),t.d(n,"Q",(function(){return ne})),t.d(n,"R",(function(){return te})),t.d(n,"T",(function(){return re})),t.d(n,"U",(function(){return ue})),t.d(n,"Y",(function(){return le})),t.d(n,"Z",(function(){return de})),t.d(n,"ab",(function(){return ce})),t.d(n,"bb",(function(){return se})),t.d(n,"cb",(function(){return ae})),t.d(n,"db",(function(){return oe})),t.d(n,"eb",(function(){return pe})),t.d(n,"ib",(function(){return fe})),t.d(n,"lb",(function(){return $e})),t.d(n,"nb",(function(){return q})),t.d(n,"ob",(function(){return x})),t.d(n,"pb",(function(){return D})),t.d(n,"rb",(function(){return U})),t.d(n,"b",(function(){return ge})),t.d(n,"g",(function(){return be})),t.d(n,"h",(function(){return he})),t.d(n,"d",(function(){return ve})),t.d(n,"i",(function(){return me})),t.d(n,"y",(function(){return ke})),t.d(n,"mb",(function(){return _e})),t.d(n,"X",(function(){return we}));const r="@timestamp",u="kibana",i=`${u}.alert`,a=`${i}.rule`,c=`${u}.space_ids`,o=`${u}.version`,s=`${i}.action_group`,d=`${i}.case_ids`,l=`${i}.duration.us`,p=`${i}.end`,f=`${i}.flapping`,$=`${i}.flapping_history`,g=`${i}.maintenance_window_ids`,b=`${i}.instance.id`,h=`${i}.last_detected`,v=`${i}.reason`,m=`${i}.start`,k=`${i}.status`,_=`${i}.time_range`,w=`${i}.uuid`,S=`${i}.workflow_status`,O=`${i}.workflow_tags`,y=`${a}.category`,j=`${a}.consumer`,I=`${a}.execution.uuid`,T=`${a}.name`,A=`${a}.parameters`,P=`${a}.producer`,L=`${a}.revision`,N=`${a}.tags`,R=`${a}.rule_type_id`,E=`${i}.url`,G=`${a}.uuid`,q="ecs.version",x="event.action",D="event.kind",U="tags",B=`${i}.risk_score`,C=`${a}.author`,F=`${a}.created_at`,M=`${a}.created_by`,J=`${a}.description`,K=`${a}.enabled`,V=`${a}.from`,Y=`${a}.interval`,z=`${a}.license`,H=`${a}.note`,Q=`${a}.references`,W=`${a}.rule_id`,X=`${a}.rule_name_override`,Z=`${a}.to`,ee=`${a}.type`,ne=`${a}.updated_at`,te=`${a}.updated_by`,re=`${a}.version`,ue=`${i}.severity`,ie=`${i}.suppression`,ae=`${ie}.terms`,ce=`${ae}.field`,oe=`${ae}.value`,se=`${ie}.start`,de=`${ie}.end`,le=`${ie}.docs_count`,pe=`${i}.system_status`,fe=`${i}.workflow_reason`,$e=`${i}.workflow_user`,ge=`${i}.building_block_type`,be=`${i}.evaluation.threshold`,he=`${i}.evaluation.value`,ve=`${i}.context`,me=`${i}.evaluation.values`,ke=`${a}.exceptions_list`,_e={APM:"apm",LOGS:"logs",INFRASTRUCTURE:"infrastructure",OBSERVABILITY:"observability",SLO:"slo",SIEM:"siem",UPTIME:"uptime"},we=(Object.values(_e).map((e=>e)),"recovered")},131:function(e,n,t){"use strict";var r=t(4);t.d(n,"a",(function(){return r.wc}))},142:function(e,n,t){"use strict";t.d(n,"e",(function(){return r.b})),t.d(n,"a",(function(){return r.a})),t.d(n,"g",(function(){return r.d})),t.d(n,"f",(function(){return r.c})),t.d(n,"d",(function(){return u})),t.d(n,"c",(function(){return i})),t.d(n,"b",(function(){return a}));var r=t(118);const u="open",i="closed",a="acknowledged"}}]);