var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();System.register(["./p-343b3b10.system.js","./p-8d8b20dc.system.js","./p-9817db3f.system.js","./p-d6a7761b.system.js","./p-4ec8ba7a.system.js","./p-5ba1db18.system.js","./p-b3db1eb6.system.js","./p-6e679e9d.system.js","./p-a56cdd14.system.js","./p-abcb59d4.system.js","./p-ebdd1444.system.js","./p-6c3e6bdc.system.js","./p-356c131c.system.js","./p-0aeb0fcc.system.js","./p-dd468f04.system.js","./p-97c19fd0.system.js","./p-86f17250.system.js","./p-ece63a69.system.js","./p-5f7bc72e.system.js","./p-da593370.system.js","./p-a6ad0410.system.js","./p-d254e73a.system.js","./p-fa86b497.system.js","./p-90b7d919.system.js","./p-7e6f8eaa.system.js","./p-27f59a1b.system.js","./p-da38856a.system.js","./p-dd9cd9b3.system.js","./p-d33249d4.system.js","./p-fe1f76a3.system.js","./p-66d9c61b.system.js","./p-83b75450.system.js","./p-577b99c3.system.js","./p-451fa62c.system.js","./p-520803d3.system.js","./p-48ea6857.system.js","./p-b0e93f3a.system.js","./p-b3cf23d4.system.js"],(function(t){"use strict";var e,n,i,s,o,r,a,c,p;return{setters:[function(t){e=t.r;n=t.h;i=t.H},function(t){s=t.T},function(t){o=t.T},function(t){r=t.D},function(t){a=t.g},function(t){c=t.b;p=t.d},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var d=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.decode=function(t){var n=Object.assign(Object.create(e.prototype),t);n.table=o.decode(n.table);return n};return e}(r);var f=t("mentornity_admin_calendar_view",function(){function t(t){e(this,t)}t.prototype.componentWillLoad=function(){var t=this;c(this.contextParams,{fetchConfig:true}).then((function(e){t.mentornitySessionContext=e;t.view=u(e);t.membership=p("admin")})).catch((function(e){return t.error=e}))};t.prototype.onViewMeeting=function(t){window.dispatchEvent(new CustomEvent("dvn.mentornity-admin-calendar-view.open-meeting-page",{detail:{meetingId:t.detail._id}}))};t.prototype.onAction=function(t){var e=t.detail;switch(e.name){case"open-meeting-detail-after-creation":window.dispatchEvent(new CustomEvent("dvn.mentornity-admin-calendar-view.open-meeting-page",{detail:{meetingId:e.params.meetingId}}));break}};t.prototype.render=function(){var t=this,e=t.error,s=t.mentornitySessionContext,o=t.view;if(!!e){return n("dvn-card",{leanedSides:true,tint:"danger"},"Failed to get data.")}if(!s){return n("div",{class:"d-flex justify-content-center pt-3"},n("dvn-progress",{indefinite:true}))}return n(i,{class:"d-flex flex-grow-1",style:{overflow:"hidden",background:"var(--color-background-primary)"}},n("mentornity-root-wrapper",null,n("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:o})))};return t}());function u(t){var e="mentors";var n="mentees";if(t.organisationConfig.menteeType==="group"){n="groups"}return d.decode({i18nEntryId:"dailyCalendarView",table:a(t.organisationConfig),membershipConfigIdToGroupMeetings:e,membershipConfigIdToViewOnMeetings:n,availableTimePickerConfig:s.decode({_id:"admin-calendar-page-available-time-picker-view-wrapper",i18nEntryId:"user-card-list-page-available-time-picker-view",table:a(t.organisationConfig),successNavigationAction:{type:"navigation",direction:"forward",name:"open-meeting-detail-after-creation",params:{conversionConfig:{"item._id":"meetingId"}}}})})}}}}));