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