var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function o(t){try{c(n.next(t))}catch(t){a(t)}}function s(t){try{c(n["throw"](t))}catch(t){a(t)}}function c(t){t.done?i(t.value):r(t.value).then(o,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];r=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-343b3b10.system.js","./p-dcdd1d40.system.js","./p-a0c1f16a.system.js","./p-c255e214.system.js","./p-546dee30.system.js","./p-f49b7c05.system.js"],(function(t){"use strict";var e,i,n,r,a,o,s,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H},function(t){a=t.g},function(t){o=t.I;s=t.N},function(t){c=t.t},function(){},function(){}],execute:function(){var u=t("dvn_app_view_takvim_available_time_picker_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,c)];case 1:t.strings=e.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var e=this,i=e.createdMeeting,c=e.membership,u=e.user,f=e.userSettings,l=e.params.viewedUserMembership,d=e.strings,v=e.view;return n(r,{class:"d-block"},n("takvim-available-time-picker",{apiData:this.apiData,apiTakvim:this.apiTakvim,userId:u._id,membershipConfigId:c.config._id,userSettings:f,guests:[u,l.user],guestMetadata:[{membershipConfigId:c.config._id},{membershipConfigId:l.config._id}],viewedUserId:l.user._id,viewedUserMembershipConfigId:l.config._id,calendarConfigId:v.table._id,onCreateMeeting:function(e){var i,n;if(v.successNavigationAction){t.createdMeeting=e.detail}(n=(i=v.events)===null||i===void 0?void 0:i.success)===null||n===void 0?void 0:n.forEach((function(e){if(e instanceof o){t.invalidation.emit(e)}if(e instanceof s){t.notification.emit(e)}}))},strings:d,weekStartDay:f.weekStartDay}),n("dvn-dialog",{title:d.meetingIsScheduled,shown:!!i,onDismiss:function(){return t.createdMeeting=undefined}},n("div",{slot:"actions"},n("dvn-button",{view:"flat",onClick:function(){return t.createdMeeting=undefined}},d.stayOnPage),n("dvn-button",{tint:"primary",view:"flat",onClick:function(){return t.action.emit(a({},t.createdMeeting,t.view.successNavigationAction))}},d.goToMeetingPage))))};return t}())}}}));