import{r as i,c as t,h as s,H as e}from"./p-9f21f85f.js";import{g as a}from"./p-04f5d146.js";import{I as o,N as n}from"./p-6cf8ecf7.js";import{t as r}from"./p-e792eff5.js";import"./p-736ddb06.js";import"./p-5c1e250c.js";const d=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,r)}render(){const{createdMeeting:i,membership:t,user:r,userSettings:d,params:{viewedUserMembership:m},strings:h,view:p}=this;return s(e,{class:"d-block"},s("takvim-available-time-picker",{apiData:this.apiData,apiTakvim:this.apiTakvim,userId:r._id,membershipConfigId:t.config._id,userSettings:d,guests:[r,m.user],guestMetadata:[{membershipConfigId:t.config._id},{membershipConfigId:m.config._id}],viewedUserId:m.user._id,viewedUserMembershipConfigId:m.config._id,calendarConfigId:p.table._id,onCreateMeeting:i=>{var t,s;p.successNavigationAction&&(this.createdMeeting=i.detail),null===(s=null===(t=p.events)||void 0===t?void 0:t.success)||void 0===s||s.forEach((i=>{i instanceof o&&this.invalidation.emit(i),i instanceof n&&this.notification.emit(i)}))},strings:h,weekStartDay:d.weekStartDay}),s("dvn-dialog",{title:h.meetingIsScheduled,shown:!!i,onDismiss:()=>this.createdMeeting=void 0},s("div",{slot:"actions"},s("dvn-button",{view:"flat",onClick:()=>this.createdMeeting=void 0},h.stayOnPage),s("dvn-button",{tint:"primary",view:"flat",onClick:()=>this.action.emit(a({},this.createdMeeting,this.view.successNavigationAction))},h.goToMeetingPage))))}};export{d as dvn_app_view_takvim_available_time_picker_view}