import{r as e,c as t,h as r,H as i,g as a}from"./p-9f21f85f.js";import{a as o}from"./p-905285ef.js";import{g as s}from"./p-d610a564.js";import"./p-25d382ec.js";import"./p-3968aca6.js";import"./p-105f7627.js";import"./p-d343a062.js";import"./p-f2965a61.js";import"./p-0563ceba.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-a86d8cf2.js";import"./p-3ccedaa0.js";import"./p-aa5ffe14.js";import"./p-6a6f355f.js";import"./p-293acc32.js";import"./p-d27cb594.js";import"./p-9c82afa0.js";import"./p-9aa2fafd.js";import"./p-04951203.js";import"./p-5d192a8d.js";import"./p-9258e9db.js";import"./p-6debf4b5.js";import"./p-33c4053b.js";import"./p-bea38b23.js";const n=class{constructor(r){e(this,r),this.action=t(this,"action",7),this.shouldShow=!1}componentWillLoad(){this.shouldShow=c(this.el),this.currentTimePositionUpdater=setInterval((()=>{this.shouldShow||(this.shouldShow=c(this.el))}),1e3)}disconnectedCallback(){clearInterval(this.currentTimePositionUpdater)}render(){var e;if(!this.shouldShow)return r(i,{class:"d-flex flex-grow-1 align-items-center justify-content-center"},r("dvn-progress",{indefinite:!0,tint:"primary"}));const{item:t}=this,a=(null===(e=this.meta)||void 0===e?void 0:e.language)||"en",{mentornityBridgeApi:n,apiSozluk:c,guestToPassToAvailableTimePickerAsCurrentUser:p,userSettings:d,membership:m}=this.meta||{};return r(i,{class:"d-flex flex-column flex-grow-1"},r("div",{class:"title"},o(a,"getMeeting").toLocaleUpperCase()),r("dvn-app-view-takvim-available-time-picker-view",{apiData:n,apiSozluk:c,apiTakvim:n,apiUye:n,user:p,userSettings:d,membership:m,params:{viewedUserMembership:t},view:s(n.organisationConfig)}))}get el(){return a(this)}};function c(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}n.style="mentornity-schedule-meeting-button-on-card{height:326px;background:var(--color-background-secondary);padding:calc(2 * var(--spacing-unit)) 0 0 calc(3 * var(--spacing-unit));border-bottom-left-radius:var(--card-corner-radius);border-bottom-right-radius:var(--card-corner-radius)}mentornity-schedule-meeting-button-on-card .title{font-size:var(--font-size-small);margin-left:calc(1 * var(--spacing-unit));color:var(--color-text-secondary)}mentornity-schedule-meeting-button-on-card takvim-available-time-picker>dvn-card{--color-elevated-item-background:var(--color-background-secondary)}mentornity-schedule-meeting-button-on-card takvim-available-time-picker>dvn-date-picker>.calendar-container{--color-elevated-item-background:var(--color-background-secondary)}mentornity-schedule-meeting-button-on-card takvim-available-time-picker-selected-day>dvn-card{--color-elevated-item-background:var(--color-background-secondary)}";export{n as mentornity_schedule_meeting_button_on_card}