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, h, Element, Host, State } from '@stencil/core';
import { InjectVegaGlobalSlimmer, InjectVegaSlimmer } from 'vega-slimmer/core';
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
import { TranslationSlimmer } from '../../../helpers/slimmers/translation';
import { sanitizeVegaComponent } from '../../../utils/component';
import { VegaCalendarEventPreviewStateController } from './slimmers/controllers/vega-calendar-event-preview-state-controller';
import { VegaCalendarEventPreviewDetailRenderer } from './slimmers/renderers/vega-calendar-event-preview-detail-renderer';
/**
 * @vegaVersion 2.59.0
 */
export class VegaCalendarEventPreview {
  constructor() {
    this.detailRenderer = new VegaCalendarEventPreviewDetailRenderer();
    this.stateController = new VegaCalendarEventPreviewStateController();
    this.translationSlimmer = new TranslationSlimmer();
    this.globalSlimmer = {};
    this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
    this.eventActions = {};
  }
  render() {
    return sanitizeVegaComponent(h(Host, null, this.previewPayload && this.detailRenderer.render()), this.host);
  }
  static get is() { return "vega-calendar-event-preview"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["vega-calendar-event-preview.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["vega-calendar-event-preview.css"]
  }; }
  static get states() { return {
    "previewPayload": {},
    "currentEvent": {},
    "eventActions": {}
  }; }
  static get elementRef() { return "host"; }
}
__decorate([
  InjectVegaSlimmer()
], VegaCalendarEventPreview.prototype, "detailRenderer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaCalendarEventPreview.prototype, "stateController", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaCalendarEventPreview.prototype, "translationSlimmer", void 0);
__decorate([
  InjectVegaGlobalSlimmer()
], VegaCalendarEventPreview.prototype, "globalSlimmer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaCalendarEventPreview.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
