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 { userSettings, params: { guest1Id, guest2Id }, view, } = this;
    return (h(Host, { class: "d-block" },
      h("takvim-meeting-list", { apiTakvim: this.apiTakvim, calendarConfigId: view.table._id, guestIDs: [guest1Id, guest2Id], userSettings: userSettings, strings: this.strings })));
  }
  static get is() { return "dvn-app-view-takvim-meeting-list-view-table"; }
  static get properties() { return {
    "view": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "TakvimAvailableTimePickerViewConfig",
        "resolved": "TakvimAvailableTimePickerViewConfig",
        "references": {
          "TakvimAvailableTimePickerViewConfig": {
            "location": "import",
            "path": "@dvn/takvim/views/dvn-app-view-takvim-available-time-picker-view/takvim-available-time-picker-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": ""
      }
    },
    "membership": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Membership",
        "resolved": "Membership",
        "references": {
          "Membership": {
            "location": "import",
            "path": "@dvn/core/models/membership"
          }
        }
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "apiUye": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "UyeApi",
        "resolved": "UyeApi",
        "references": {
          "UyeApi": {
            "location": "import",
            "path": "@dvn/uye/api"
          }
        }
      },
      "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"; }
}
