import{r as e,h as i,H as t}from"./p-9f21f85f.js";import{T as r}from"./p-6debf4b5.js";import{T as a}from"./p-293acc32.js";import{D as o}from"./p-5d192a8d.js";import{g as p}from"./p-905285ef.js";import{b as s,d as n}from"./p-c44f96b9.js";import"./p-f2965a61.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-1187cc7c.js";import"./p-881a2bb8.js";import"./p-968ee2ec.js";import"./p-aa5ffe14.js";import"./p-25d382ec.js";import"./p-3968aca6.js";import"./p-d343a062.js";import"./p-a86d8cf2.js";import"./p-3ccedaa0.js";import"./p-6a6f355f.js";import"./p-d27cb594.js";import"./p-9c82afa0.js";import"./p-9aa2fafd.js";import"./p-d6c479ab.js";import"./p-10cfccbb.js";import"./p-8d2ddf16.js";import"./p-814af281.js";import"./p-e929429b.js";import"./p-c2c9e896.js";import"./p-cb585cde.js";import"./p-3d141e05.js";import"./p-d59ffc5b.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=a.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:p(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:p(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:a}=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:a}))):i("div",{class:"d-flex justify-content-center pt-3"},i("dvn-progress",{indefinite:!0}))}};export{d as mentornity_admin_calendar_view}