var __decorate = (this && this.__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;
};
import { Component, Host, h, Element } from '@stencil/core';
import { sanitizeVegaComponent } from '../../../utils/component';
import { InjectVegaGlobalSlimmer, InjectVegaSlimmer } from 'vega-slimmer/core';
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
import { ChildNodesEventPreventSlimmer } from '../../../helpers/event-manager/slimmers/child-nodes-event-prevent-slimmer';
import { VegaClick } from '../../../helpers/event-manager/event-id/vega-event-id';
import { ComponentGlobalStyleSlimmer } from '../../../helpers/slimmers/component-global-style-slimmer';
import nestDropdownStyle from './nest-vega-dropdown.css';
/**
 * @vegaVersion 2.0.0
 */
export class VegaDropdownContentBox {
  constructor() {
    this.globalSlimmers = {};
    this.componentGlobalStyleSlimmer = new ComponentGlobalStyleSlimmer(nestDropdownStyle);
    this.eventPrevent = new ChildNodesEventPreventSlimmer([VegaClick], () => this.host, undefined, true);
    this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
  }
  render() {
    return sanitizeVegaComponent(h(Host, null,
      h("slot", null)), this.host);
  }
  static get is() { return "vega-dropdown-content-box"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["vega-dropdown-content-box.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["vega-dropdown-content-box.css"]
  }; }
  static get elementRef() { return "host"; }
}
__decorate([
  InjectVegaGlobalSlimmer()
], VegaDropdownContentBox.prototype, "globalSlimmers", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaDropdownContentBox.prototype, "componentGlobalStyleSlimmer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaDropdownContentBox.prototype, "eventPrevent", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaDropdownContentBox.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
