import { takvimMeetingListI18nDefault } from '@dvn/takvim/components/takvim-meeting-list/i18n';
import { Component, Element, h, Host, Method, Prop, State } from '@stencil/core';
export class DvnAppViewTakvimMeetingListViewTable {
  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, takvimMeetingListI18nDefault);
  }
  render() {
    const { scrollToFitHeight, userSettings, params: { guest1Id, guest2Id }, view, } = this;
    const guestIDs = [guest1Id, guest2Id].filter(id => !!id);
    return (h(Host, null,
      h("takvim-meeting-list", { apiTakvim: this.apiTakvim, calendarConfigId: view.table._id, guestIDs: guestIDs, userSettings: userSettings, strings: this.strings, scrollToFit: scrollToFitHeight })));
  }
  static get is() { return "dvn-app-view-takvim-meeting-list-view-table"; }
  static get originalStyleUrls() { return {
    "$": ["dvn-app-view-takvim-meeting-list-view-table.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["dvn-app-view-takvim-meeting-list-view-table.css"]
  }; }
  static get properties() { return {
    "scrollToFitHeight": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "scroll-to-fit-height",
      "reflect": false
    },
    "view": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "TakvimMeetingListViewConfig",
        "resolved": "TakvimMeetingListViewConfig",
        "references": {
          "TakvimMeetingListViewConfig": {
            "location": "import",
            "path": "@dvn/takvim/views/dvn-app-view-takvim-meeting-list-view-table/takvim-meeting-list-view-config"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "params": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "TakvimMeetingListViewParams",
        "resolved": "TakvimMeetingListViewParams",
        "references": {
          "TakvimMeetingListViewParams": {
            "location": "import",
            "path": "@dvn/takvim/views/dvn-app-view-takvim-meeting-list-view-table/params"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "userSettings": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "UserSettings",
        "resolved": "UserSettings",
        "references": {
          "UserSettings": {
            "location": "import",
            "path": "@dvn/kimlik/api/models/UserSettings"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "apiTakvim": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "TakvimApi",
        "resolved": "TakvimApi",
        "references": {
          "TakvimApi": {
            "location": "import",
            "path": "@dvn/takvim/api/takvimApi"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "apiSozluk": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "SozlukApi",
        "resolved": "SozlukApi",
        "references": {
          "SozlukApi": {
            "location": "import",
            "path": "@dvn/sozluk/api"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    }
  }; }
  static get states() { return {
    "strings": {}
  }; }
  static get methods() { return {
    "invalidate": {
      "complexType": {
        "signature": "(_event: CustomEvent<InvalidationAction>) => Promise<void>",
        "parameters": [{
            "tags": [],
            "text": ""
          }],
        "references": {
          "Promise": {
            "location": "global"
          },
          "CustomEvent": {
            "location": "global"
          },
          "InvalidationAction": {
            "location": "import",
            "path": "@dvn/core/models/actions"
          }
        },
        "return": "Promise<void>"
      },
      "docs": {
        "text": "",
        "tags": []
      }
    }
  }; }
  static get elementRef() { return "el"; }
}
