import{r as registerInstance,h}from"./index-ecdfb761.js";import{b as generateMentornitySessionContext}from"./session-a602596d.js";import{T as TakvimMeetingListViewConfig}from"./takvim-meeting-list-view-config-c1d0c9aa.js";import{g as generateCalendarConfig}from"./mentorinty-bridge-api-f70621dd.js";import"./membership-24db029a.js";import"./data-model-f7ccf826.js";import"./table-config-3820fb34.js";import"./FieldModelGenerator-03c7516c.js";import"./reference-field-a5b414d1.js";import"./BaseField-0b01dc2c.js";import"./index-61dcd269.js";import"./FieldGenerator-3ae403b2.js";import"./date-1bc489bd.js";import"./index-4e451db4.js";import"./index-32d8b974.js";import"./index-23baeeef.js";import"./index-09efdc01.js";import"./index-150b6a59.js";import"./string-3065a411.js";import"./User-9f1f4513.js";import"./UserSettings-27df01e6.js";import"./cookie-9f22e0fb.js";import"./kimlik-api-66e341bd.js";import"./apiBase-648a161d.js";import"./data-transfer-field-2f305919.js";import"./filter-cbaa3d7d.js";import"./_commonjsHelpers-27f122dd.js";import"./index-d3bd30bd.js";import"./instance-db63ecb7.js";import"./index-3bf9b308.js";import"./i18n-4dcb85fe.js";import"./i18n-73c2e20d.js";import"./calendar-470c802a.js";import"./index-a3ca021c.js";import"./moment-65eca6b3.js";import"./view-config-2fc2ba10.js";import"./index-5f14b4fc.js";import"./attachment-d13ad547.js";import"./CalendarConfig-f8d4a70d.js";var mentornityMyMeetingsWrapperCss="mentornity-my-meetings-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;overflow:hidden}";var MentornityMyMeetingsWrapper=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){var e=this;generateMentornitySessionContext(this.contextParams,{fetchConfig:true}).then((function(t){e.mentornitySessionContext=t;e.view=TakvimMeetingListViewConfig.decode({_id:"my-meetings-page-meeting-list-view",i18nEntryId:"my-meetings-page-meeting-list-view",table:generateCalendarConfig(e.mentornitySessionContext.organisationConfig)})})).catch((function(t){console.log(t);e.error=t}))};e.prototype.onAction=function(e){var t=e.detail;switch(t.name){case"open-meeting-detail-from-meeting-list":window.dispatchEvent(new CustomEvent("dvn.mentornity-my-meetings-wrapper.open-meeting-detail",{detail:{meetingId:t.params.meetingId}}));break}};e.prototype.render=function(){var e=this,t=e.error,i=e.mentornitySessionContext,n=e.view;if(!!t){return h("dvn-card",{leanedSides:true,tint:"danger"},"Failed to get data.")}if(!i){return h("div",{class:"d-flex flex-grow-1 justify-content-center pt-3"},h("dvn-progress",{indefinite:true}))}var r=i.apiSozluk,o=i.mentornityBridgeApi,s=i.user,a=i.userSettings;return h("dvn-app-view-takvim-meeting-list-view-table",{apiSozluk:r,apiTakvim:o,userSettings:a,view:n,params:{guest1Id:s._id},scrollToFitHeight:true})};return e}();MentornityMyMeetingsWrapper.style=mentornityMyMeetingsWrapperCss;export{MentornityMyMeetingsWrapper as mentornity_my_meetings_wrapper};