import{r as e,h as i,H as t}from"./p-9f21f85f.js";import{T as r}from"./p-12a14b28.js";import{T as p}from"./p-0ff0ee91.js";import{D as o}from"./p-6af4d5e0.js";import{g as a}from"./p-2c9430cc.js";import{b as s,c as n}from"./p-f88474bf.js";import"./p-62d6b6a7.js";import"./p-0563ceba.js";import"./p-105f7627.js";import"./p-1e47e7bd.js";import"./p-31e77e7b.js";import"./p-825ab276.js";import"./p-6c8be41c.js";import"./p-9f31253b.js";import"./p-1187cc7c.js";import"./p-881a2bb8.js";import"./p-968ee2ec.js";import"./p-7737f905.js";import"./p-e78d5616.js";import"./p-3968aca6.js";import"./p-d343a062.js";import"./p-5209de98.js";import"./p-19efc983.js";import"./p-3c7a3a90.js";import"./p-d27cb594.js";import"./p-902ec37a.js";import"./p-e7d62c6a.js";import"./p-74e6e642.js";import"./p-84876749.js";import"./p-03b520ca.js";import"./p-814af281.js";import"./p-e929429b.js";import"./p-a3d5ad34.js";import"./p-c2c9e896.js";import"./p-67d3bdb0.js";import"./p-1ba76ce7.js";import"./p-0988b316.js";import"./p-65eb3f89.js";import"./p-42939000.js";class m extends o{static decode(e){const i=Object.assign(Object.create(m.prototype),e);return i.table=p.decode(i.table),i}}const d=class{constructor(i){e(this,i)}componentWillLoad(){s(this.contextParams,{fetchConfig:!0}).then((e=>{this.mentornitySessionContext=e,this.view=function(e){let i="mentees";return"group"===e.organisationConfig.menteeType&&(i="groups"),m.decode({i18nEntryId:"dailyCalendarView",table:a(e.organisationConfig),membershipConfigIdToGroupMeetings:"mentors",membershipConfigIdToViewOnMeetings:i,availableTimePickerConfig:r.decode({_id:"admin-calendar-page-available-time-picker-view-wrapper",i18nEntryId:"user-card-list-page-available-time-picker-view",table:a(e.organisationConfig),successNavigationAction:{type:"navigation",direction:"forward",name:"open-meeting-detail-after-creation",params:{conversionConfig:{"item._id":"meetingId"}}}})})}(e),this.membership=n("admin")})).catch((e=>this.error=e))}onViewMeeting(e){window.dispatchEvent(new CustomEvent("dvn.mentornity-admin-calendar-view.open-meeting-page",{detail:{meetingId:e.detail._id}}))}onAction(e){const i=e.detail;switch(i.name){case"open-meeting-detail-after-creation":window.dispatchEvent(new CustomEvent("dvn.mentornity-admin-calendar-view.open-meeting-page",{detail:{meetingId:i.params.meetingId}}))}}render(){const{error:e,mentornitySessionContext:r,view:p}=this;return e?i("dvn-card",{leanedSides:!0,tint:"danger"},"Failed to get data."):r?i(t,{class:"d-flex flex-grow-1",style:{overflow:"hidden",background:"var(--color-background-primary)"}},i("mentornity-root-wrapper",null,i("dvn-app-view-takvim-daily-calendar-view",{apiData:this.mentornitySessionContext.mentornityBridgeApi,apiSozluk:this.mentornitySessionContext.apiSozluk,apiTakvim:this.mentornitySessionContext.mentornityBridgeApi,user:this.mentornitySessionContext.user,userSettings:this.mentornitySessionContext.userSettings,membership:this.membership,view:p}))):i("div",{class:"d-flex justify-content-center pt-3"},i("dvn-progress",{indefinite:!0}))}};export{d as mentornity_admin_calendar_view}