import{r as t,h as p,H as i}from"./p-9f21f85f.js";import{T as s}from"./p-72df666b.js";import{b as r}from"./p-f88474bf.js";import"./p-ca5153f1.js";import"./p-0ff0ee91.js";import"./p-62d6b6a7.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-9f31253b.js";import"./p-1187cc7c.js";import"./p-881a2bb8.js";import"./p-968ee2ec.js";import"./p-7737f905.js";import"./p-6af4d5e0.js";import"./p-3c7a3a90.js";import"./p-d27cb594.js";import"./p-902ec37a.js";import"./p-74e6e642.js";import"./p-84876749.js";import"./p-03b520ca.js";import"./p-e78d5616.js";import"./p-3968aca6.js";import"./p-d343a062.js";import"./p-814af281.js";import"./p-e929429b.js";import"./p-a3d5ad34.js";import"./p-2c9430cc.js";import"./p-5209de98.js";import"./p-19efc983.js";import"./p-e7d62c6a.js";import"./p-c2c9e896.js";import"./p-67d3bdb0.js";import"./p-1ba76ce7.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}