"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.investigationGuideUpselling = exports.UPGRADE_INVESTIGATION_GUIDE = void 0; var _i18n = require("@kbn/i18n"); var _use_product_type_by_pli = require("../hooks/use_product_type_by_pli"); /* * 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. */ const UPGRADE_INVESTIGATION_GUIDE = productTypeRequired => _i18n.i18n.translate('xpack.securitySolutionServerless.markdown.insight.upsell', { defaultMessage: 'Upgrade to {productTypeRequired} to make use of insights in investigation guides', values: { productTypeRequired } }); exports.UPGRADE_INVESTIGATION_GUIDE = UPGRADE_INVESTIGATION_GUIDE; const investigationGuideUpselling = requiredPLI => { const productTypeRequired = (0, _use_product_type_by_pli.getProductTypeByPLI)(requiredPLI); return productTypeRequired ? UPGRADE_INVESTIGATION_GUIDE(productTypeRequired) : ''; }; exports.investigationGuideUpselling = investigationGuideUpselling;