import{r as t,h as p,H as i}from"./p-9f21f85f.js";import{T as s}from"./p-1a996fcd.js";import{b as r}from"./p-c44f96b9.js";import"./p-99829ff4.js";import"./p-293acc32.js";import"./p-f2965a61.js";import"./p-0563ceba.js";import"./p-105f7627.js";import"./p-1e47e7bd.js";import"./p-31e77e7b.js";import"./p-825ab276.js";import"./p-6c8be41c.js";import"./p-1187cc7c.js";import"./p-881a2bb8.js";import"./p-968ee2ec.js";import"./p-aa5ffe14.js";import"./p-5d192a8d.js";import"./p-6a6f355f.js";import"./p-d27cb594.js";import"./p-9c82afa0.js";import"./p-d6c479ab.js";import"./p-10cfccbb.js";import"./p-8d2ddf16.js";import"./p-25d382ec.js";import"./p-3968aca6.js";import"./p-d343a062.js";import"./p-814af281.js";import"./p-e929429b.js";import"./p-905285ef.js";import"./p-a86d8cf2.js";import"./p-3ccedaa0.js";import"./p-9aa2fafd.js";import"./p-c2c9e896.js";import"./p-cb585cde.js";import"./p-3d141e05.js";import"./p-d59ffc5b.js";import"./p-0988b316.js";import"./p-65eb3f89.js";import"./p-42939000.js";const e=class{constructor(p){t(this,p)}componentWillLoad(){const{contextParams:t,extraProps:p}=this,i=Object.assign({},t);(null==p?void 0:p.userIdToManageAvailabilitiesOf)&&(i.userId=p.userIdToManageAvailabilitiesOf),r(i,{fetchMentorship:!0}).then((t=>{this.mentornitySessionContext=t,this.view=s.decode({i18nEntryId:"availability-settings-view"})})).catch((t=>this.error=t))}render(){const{error:t,mentornitySessionContext:s,view:r}=this;if(t)return p("dvn-card",{leanedSides:!0,tint:"danger"},"Failed to get data.");if(!s)return p("div",{class:"d-flex justify-content-center pt-3"},p("dvn-progress",{indefinite:!0}));const{apiSozluk:e,mentornityBridgeApi:o,user:a,userSettings:m}=s;return p(i,{class:"d-flex flex-column flex-grow-1",style:{overflow:"hidden",width:"100%"}},p("dvn-app-view-takvim-availability-settings-view",{apiSozluk:e,apiTakvim:o,view:r,user:a,userSettings:m}))}};export{e as mentornity_availability_settings_wrapper}