var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function a(t){try{c(n.next(t))}catch(t){r(t)}}function s(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?i(t.value):o(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];o=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-343b3b10.system.js","./p-c7bbdc82.system.js","./p-a0c1f16a.system.js","./p-dcdd1d40.system.js","./p-c255e214.system.js","./p-546dee30.system.js","./p-f49b7c05.system.js"],(function(t){"use strict";var e,i,n,o,r,a,s,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;o=t.H},function(t){r=t.t},function(t){a=t.I;s=t.N},function(t){c=t.g},function(){},function(){},function(){}],execute:function(){var u=t("dvn_app_view_takvim_daily_calendar_view",function(){function t(t){e(this,t);this.invalidation=i(this,"invalidation",7);this.notification=i(this,"notification",7);this.action=i(this,"action",7)}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,this.apiSozluk.getContent(this.view.i18nEntryId,r)];case 1:t.strings=e.sent();return[2]}}))}))};t.prototype.onAction=function(t){var e=this;var i,n;var o=this.view;if(o.availableTimePickerConfig.successNavigationAction){this.createdMeeting=t.detail}(n=(i=o.availableTimePickerConfig.events)===null||i===void 0?void 0:i.success)===null||n===void 0?void 0:n.forEach((function(t){if(t instanceof a){e.invalidation.emit(t)}if(t instanceof s){e.notification.emit(t)}}))};t.prototype.render=function(){var t=this;var e=this.strings;return n(o,{class:"d-flex flex-grow-1",style:{overflow:"hidden"}},n("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}),n("dvn-dialog",{title:e.meetingIsScheduled,shown:!!this.createdMeeting,onDismiss:function(){return t.createdMeeting=undefined}},n("div",{slot:"actions"},n("dvn-button",{view:"flat",onClick:function(){return t.createdMeeting=undefined}},e.stayOnPage),n("dvn-button",{tint:"primary",view:"flat",onClick:function(){t.action.emit(c({},t.createdMeeting,t.view.availableTimePickerConfig.successNavigationAction));t.createdMeeting=undefined}},e.goToMeetingPage))))};return t}())}}}));