"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isLensSupportedType = void 0; var _fieldTypes = require("@kbn/field-types"); /* * 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 SUPPORTED_LENS_TYPES = new Set([_fieldTypes.KBN_FIELD_TYPES.STRING, _fieldTypes.KBN_FIELD_TYPES.BOOLEAN, _fieldTypes.KBN_FIELD_TYPES.NUMBER, _fieldTypes.KBN_FIELD_TYPES.IP]); const isLensSupportedType = fieldType => fieldType ? SUPPORTED_LENS_TYPES.has(fieldType) : false; exports.isLensSupportedType = isLensSupportedType;