/*! 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([[38],{1121:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i=n(2),c=n.n(i),o=n(40),s=n(21),r=n(189),u=n(864);const a=c.a.memo((function({item:e,urlState:t,onLinkClick:n,children:i,...c}){if(null!=e.externalUrl){const t={target:"_blank",external:!0,href:e.externalUrl,...n&&!e.disabled&&{onClick:()=>n(e.id)},...c};return Object(s.jsx)(o.EuiLink,t,i)}{const o={...Object(u.a)({item:e,urlState:t,onLinkClick:n}),...c};return Object(s.jsx)(r.a,o,i)}})),l=c.a.memo((function({items:e,urlState:t,onLinkClick:n}){const i=(()=>{const{euiTheme:e}=Object(o.useEuiTheme)();return{container:Object(s.css)("margin-top:",e.size.base,";","")}})();return Object(s.jsx)(o.EuiFlexGroup,{gutterSize:"none",direction:"column",alignItems:"flexStart"},e.map((e=>Object(s.jsx)(o.EuiFlexItem,{key:e.id,grow:!1,css:i.container,"data-test-subj":"LandingSubItem"},Object(s.jsx)(a,{item:e,urlState:t,onLinkClick:n},e.title)))))}))},1657:function(e,t,n){"use strict";n.r(t),n.d(t,"LandingLinksIconsCategoriesGroups",(function(){return a}));var i=n(2),c=n.n(i),o=n(21),s=n(40),r=n(1121);const u="stackManagementSection__button",a=c.a.memo((function({links:e,categories:t,urlState:n,onLinkClick:i}){const r=(()=>{const{euiTheme:e}=Object(s.useEuiTheme)(),t=Object(s.useEuiFontSize)("xs");return{accordionButton:Object(o.css)(".",u,"{font-weight:",e.font.weight.bold,";",t,";}","")}})();return Object(o.jsx)(c.a.Fragment,null,t.map((({label:t,categories:c},a)=>Object(o.jsx)(s.EuiAccordion,{initialIsOpen:!0,key:`${t}_${a}`,id:`landingLinksCategoryGroups_${t}_${a}`,buttonContent:t,buttonClassName:u,css:r.accordionButton},Object(o.jsx)(s.EuiSpacer,{size:"m"}),Object(o.jsx)(s.EuiPanel,{hasShadow:!1,hasBorder:!1,paddingSize:"s"},c&&Object(o.jsx)(j,{links:e,categories:c,urlState:n,onLinkClick:i}))))))}));var l={name:"1ybrhg5",styles:"min-width:22em"};const j=c.a.memo((function({links:e,categories:t,urlState:n,onLinkClick:c}){const u={container:l},a=Object(i.useMemo)((()=>{const n=Object.fromEntries(e.map((e=>[e.id,e])));return t.reduce(((e,{label:t,linkIds:i,type:c,iconType:o})=>{const s=i.reduce(((e,t)=>(n[t]&&e.push(n[t]),e)),[]);return s.length>0&&e.push({type:c,label:t,iconType:o,links:s}),e}),[])}),[e,t]);return Object(o.jsx)(s.EuiFlexGroup,{direction:"row",gutterSize:"xl",alignItems:"flexStart",wrap:!0},a.map((({label:e,links:t,iconType:i},a)=>Object(o.jsx)(s.EuiFlexItem,{key:`${a}_${e}`,css:u.container,grow:!1},Object(o.jsx)(b,{label:e,iconType:i}),Object(o.jsx)(r.a,{items:t,urlState:n,onLinkClick:c}),Object(o.jsx)(s.EuiSpacer,{size:"l"})))))})),b=c.a.memo((function({label:e,iconType:t}){return Object(o.jsx)(s.EuiFlexGroup,{direction:"row",alignItems:"center",gutterSize:"s"},t&&Object(o.jsx)(s.EuiFlexItem,{grow:!1},Object(o.jsx)(s.EuiIcon,{type:t})),Object(o.jsx)(s.EuiFlexItem,{grow:!1},Object(o.jsx)(s.EuiTitle,{size:"xxxs"},Object(o.jsx)("h2",null,e))))}));t.default=a},864:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(189);const c=({item:e,urlState:t,onLinkClick:n})=>({id:e.id,...Object(i.b)(e.id)&&!e.skipUrlState&&{urlState:t},...n&&{onClick:()=>n(e.id)}})}}]);