import './global-slimmer-registry-0a7aa308.js';
import { c as createPublicAPIRuntimeMetricsSlimmer, I as InjectVegaTelemetrySlimmer } from './create-public-api-runtime-metrics-slimmer-407de188.js';
import { I as InternalVegaZIndexManager } from './internal-vega-z-index-manager-b6b79599.js';
import './dynamic-slimmer-60d5da5a.js';
import './misc-9fdbcfbb.js';
import './number-4398f2e1.js';

const ZIndexManagerRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'IS_OVERRIDEZINDEXBASICVALUES_METHOD_CALLED',
    payloadDescription: 'Indicate if the method overrideZIndexBasicValues of public API ZIndexManager is called',
    /**
     * Indicate whether the method is collected when the method been called .
     *
     * @param {string} scope - The class name of public api
     * @param {string} methodName - The method name called by the public api
     * @returns {boolean} A boolean value
     */
    canAccept: (scope, methodName) => scope === 'VegaZIndexManager' && methodName === 'overrideZIndexBasicValues',
    /**
     * The function checks if the method name is load.
     *
     * @returns {boolean} A boolean value
     */
    payloadValue: () => {
      return true;
    },
  },
  {
    payloadKey: 'zIndexBasicValuesGreatThanTenThousand',
    payloadDescription: 'Indicate if the basic z-index value is great than ten thousand',
    /**
     * Indicate whether the method is collected when the method been called .
     *
     * @param {string} scope - The class name of public api
     * @param {string} methodName - The method name called by the public api
     * @returns {boolean} A boolean value
     */
    canAccept: (scope, methodName) => scope === 'VegaZIndexManager' && methodName === 'overrideZIndexBasicValues',
    /**
     * The function checks if the method name is load.
     *
     * @param {unknown[]} args - The parameter of slimmer method
     * @returns {boolean} A boolean value
     */
    payloadValue: (args) => {
      return args['base'] > 10000;
    },
  },
];

var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};
/**
 * The VegaZIndexManager class calls a method in the ZIndexManager class to
 * change z-index values based on the input.
 */
class VegaZIndexManager {
  constructor() {
    this.vegaPublicAPIRuntimeMetricsSlimmer = createPublicAPIRuntimeMetricsSlimmer(VegaZIndexManager, ['overrideZIndexBasicValues'], ZIndexManagerRuntimeMetricsPayloadDefinition);
  }
  /**
   * The function "overrideZIndexBasicValues" calls a method in the "ZIndexManager" class to change the
   * z-index values based on the input.
   *
   * @param {ZIndexBasicValues} input - The input parameter is of type ZIndexBasicValues.
   * @vegaVersion 2.3.0
   */
  overrideZIndexBasicValues(input) {
    InternalVegaZIndexManager.overrideZIndexBasicValues(input);
  }
}
__decorate([
  InjectVegaTelemetrySlimmer()
], VegaZIndexManager.prototype, "vegaPublicAPIRuntimeMetricsSlimmer", void 0);
const VegaZIndexManager$1 = new VegaZIndexManager();

export default VegaZIndexManager$1;
