import{r as e,c as t,h as r,H as i,g as o}from"./p-9f21f85f.js";import{a}from"./p-2c9430cc.js";import{g as s}from"./p-c26b0b5f.js";import"./p-e78d5616.js";import"./p-3968aca6.js";import"./p-105f7627.js";import"./p-d343a062.js";import"./p-62d6b6a7.js";import"./p-0563ceba.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-5209de98.js";import"./p-19efc983.js";import"./p-7737f905.js";import"./p-3c7a3a90.js";import"./p-0ff0ee91.js";import"./p-d27cb594.js";import"./p-902ec37a.js";import"./p-e7d62c6a.js";import"./p-0c34d1b7.js";import"./p-6af4d5e0.js";import"./p-efd6f539.js";import"./p-12a14b28.js";import"./p-26046226.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,o=(null===(e=this.meta)||void 0===e?void 0:e.language)||"en",{mentornityBridgeApi:n,apiSozluk:c,guestToPassToAvailableTimePickerAsCurrentUser:p,userSettings:m,membership:d}=this.meta||{};return r(i,{class:"d-flex flex-column flex-grow-1"},r("div",{class:"title"},a(o,"getMeeting").toLocaleUpperCase()),r("dvn-app-view-takvim-available-time-picker-view",{apiData:n,apiSozluk:c,apiTakvim:n,apiUye:n,user:p,userSettings:m,membership:d,params:{viewedUserMembership:t},view:s(n.organisationConfig)}))}get el(){return o(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}