import{r as i,c as t,h as s,H as o}from"./p-9f21f85f.js";import{t as n}from"./p-bfc797d2.js";import{I as a,N as e}from"./p-6cf8ecf7.js";import{g as h}from"./p-04f5d146.js";import"./p-e792eff5.js";import"./p-736ddb06.js";import"./p-5c1e250c.js";const r=class{constructor(s){i(this,s),this.invalidation=t(this,"invalidation",7),this.notification=t(this,"notification",7),this.action=t(this,"action",7)}async componentWillLoad(){this.strings=await this.apiSozluk.getContent(this.view.i18nEntryId,n)}onAction(i){var t,s;const{view:o}=this;o.availableTimePickerConfig.successNavigationAction&&(this.createdMeeting=i.detail),null===(s=null===(t=o.availableTimePickerConfig.events)||void 0===t?void 0:t.success)||void 0===s||s.forEach((i=>{i instanceof a&&this.invalidation.emit(i),i instanceof e&&this.notification.emit(i)}))}render(){const{strings:i}=this;return s(o,{class:"d-flex flex-grow-1",style:{overflow:"hidden"}},s("takvim-daily-calendar",{apiData:this.apiData,apiTakvim:this.apiTakvim,strings:this.strings,user:this.user,userSettings:this.userSettings,membershipConfigId:this.membership.config._id,calendarConfigId:this.view.table._id,membershipConfigIdToGroupMeetings:this.view.membershipConfigIdToGroupMeetings,membershipConfigIdToViewOnMeetings:this.view.membershipConfigIdToViewOnMeetings}),s("dvn-dialog",{title:i.meetingIsScheduled,shown:!!this.createdMeeting,onDismiss:()=>this.createdMeeting=void 0},s("div",{slot:"actions"},s("dvn-button",{view:"flat",onClick:()=>this.createdMeeting=void 0},i.stayOnPage),s("dvn-button",{tint:"primary",view:"flat",onClick:()=>{this.action.emit(h({},this.createdMeeting,this.view.availableTimePickerConfig.successNavigationAction)),this.createdMeeting=void 0}},i.goToMeetingPage))))}};export{r as dvn_app_view_takvim_daily_calendar_view}