/*! 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.cloudSecurityPosture_bundle_jsonpfunction=window.cloudSecurityPosture_bundle_jsonpfunction||[]).push([[3],{115:function(e,s,t){"use strict";t.r(s),t.d(s,"CspCustomAssetsExtension",(function(){return g})),t.d(s,"default",(function(){return g}));var a=t(1),i=t.n(a),n=t(23),c=t(4),r=t(21),l=t(2),o=t(3),u=t(39),d=t(5),p=t(0);const b="securitySolutionUI",g=()=>{const{application:e}=Object(u.a)().services,s=Object(r.useParams)().integration,t=[{name:d.c.findings.name,url:e.getUrlForApp(b,{path:d.c.findings.path+"/vulnerabilities"}),description:c.i18n.translate("xpack.csp.createPackagePolicy.customAssetsTab.vulnerabilityFindingsViewLabel",{defaultMessage:"View Vulnerability Findings "})}],a=[{name:d.c.dashboard.name,url:e.getUrlForApp(b,{path:d.c.dashboard.path}),description:c.i18n.translate("xpack.csp.createPackagePolicy.customAssetsTab.dashboardViewLabel",{defaultMessage:"View CSP Dashboard"})},{name:d.c.findings.name,url:e.getUrlForApp(b,{path:d.c.findings.path}),description:c.i18n.translate("xpack.csp.createPackagePolicy.customAssetsTab.findingsViewLabel",{defaultMessage:"View CSP Findings "})},{name:d.b.rules.name,url:e.getUrlForApp(b,{path:d.c.benchmarks.path}),description:c.i18n.translate("xpack.csp.createPackagePolicy.customAssetsTab.rulesViewLabel",{defaultMessage:"View CSP Rules "})}];return s?s===o.W?Object(p.jsx)(n.CustomAssetsAccordion,{views:t,initialIsOpen:!0}):Object(p.jsx)(n.CustomAssetsAccordion,{views:a,initialIsOpen:!0}):Object(p.jsx)(i.a.Fragment,null,Object(p.jsx)(n.CustomAssetsAccordion,{views:a,initialIsOpen:!0,title:c.i18n.translate("xpack.csp.createPackagePolicy.customAssetsTab.cloudPostureTitleLabel",{defaultMessage:"Cloud Posture "})}),Object(p.jsx)(l.EuiSpacer,{size:"m"}),Object(p.jsx)(n.CustomAssetsAccordion,{views:t,initialIsOpen:!0,title:c.i18n.translate("xpack.csp.createPackagePolicy.customAssetsTab.cloudNativeVulnerabilityManagementTitleLabel",{defaultMessage:"Cloud Native Vulnerability Management "})}))}},39:function(e,s,t){"use strict";t.d(s,"a",(function(){return i}));var a=t(8);const i=()=>Object(a.useKibana)()}}]);