'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-36b3af04.js');

const MentornityScheduleMeetingButtonOnCard = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.action = index.createEvent(this, "action", 7);
  }
  render() {
    var _a;
    const { item } = this;
    return (index.h(index.Host, { class: "d-flex flex-column" }, ((_a = item.availabilities) === null || _a === void 0 ? void 0 : _a.length) > 0
      ? index.h("dvn-card", { leaned: true, selectable: true, selected: true, overrideStyle: { flex: 1 }, tint: "primary", elevation: 0, cornerRadius: 10, onClick: () => {
          this.action.emit({
            type: 'navigation',
            direction: 'forward',
            name: 'schedule-meeting',
            params: { item },
          });
        } }, index.h("div", { class: "d-flex justify-content-between align-items-center text-primary" }, index.h("span", null, "Get Meeting"), index.h("dvn-icon", { iconName: "uil uil-calendar-alt", scale: "large" })))
      : index.h("dvn-card", { leaned: true, overrideStyle: { flex: 1 }, elevation: 0, cornerRadius: 10, outlined: true }, index.h("div", { style: { lineHeight: '27px' } }, "User has no availability")), index.h("div", { class: "d-flex justify-content-center pt-2" }, index.h("dvn-button", { onClick: () => {
        this.action.emit({
          type: 'navigation',
          direction: 'forward',
          name: 'view-details',
          params: { item },
        });
      }, leaned: true, view: "flat" }, "View Details"))));
  }
};

exports.mentornity_schedule_meeting_button_on_card = MentornityScheduleMeetingButtonOnCard;
