'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-1141a245.js');
const i18n = require('./i18n-9a433e64.js');

const dvnAppViewTakvimMeetingListViewTableCss = "dvn-app-view-takvim-meeting-list-view-table{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;overflow:hidden}";

const DvnAppViewTakvimMeetingListViewTable = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  async invalidate(_event) {
    var _a, _b;
    (_b = (_a = this.el.querySelector(`takvim-meeting-list`)) === null || _a === void 0 ? void 0 : _a.invalidate) === null || _b === void 0 ? void 0 : _b.call(_a);
  }
  ;
  async componentWillLoad() {
    this.strings = await this.apiSozluk.getContent(this.view.i18nEntryId, i18n.takvimMeetingListI18nDefault);
  }
  render() {
    const { scrollToFitHeight, userSettings, params: { guest1Id, guest2Id }, view, } = this;
    const guestIDs = [guest1Id, guest2Id].filter(id => !!id);
    return (index.h(index.Host, null, index.h("takvim-meeting-list", { apiTakvim: this.apiTakvim, calendarConfigId: view.table._id, guestIDs: guestIDs, userSettings: userSettings, strings: this.strings, scrollToFit: scrollToFitHeight })));
  }
  get el() { return index.getElement(this); }
};
DvnAppViewTakvimMeetingListViewTable.style = dvnAppViewTakvimMeetingListViewTableCss;

exports.dvn_app_view_takvim_meeting_list_view_table = DvnAppViewTakvimMeetingListViewTable;
