"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.AdvisorCard = void 0;

var _react = _interopRequireDefault(require("react"));

var _jsxRuntime = require("@emotion/react/jsx-runtime");

var _excluded = ["imageSrc", "fullName", "designatory", "credentials", "className"];

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var _ref2 = process.env.NODE_ENV === "production" ? {
  name: "1rsa1in",
  styles: "display:flex;flex-direction:column;align-items:center;--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity));border-radius:0.375rem;--tw-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);width:175px;padding-top:1.5rem;padding-bottom:1.5rem;padding-left:12.5px;padding-right:12.5px;@media (min-width: 768px){width:340px;padding-top:2.25rem;padding-bottom:2.25rem;padding-left:3rem;padding-right:3rem;}"
} : {
  name: "1ny1eyx-AdvisorCard",
  styles: "display:flex;flex-direction:column;align-items:center;--tw-bg-opacity:1;background-color:rgba(255, 255, 255, var(--tw-bg-opacity));border-radius:0.375rem;--tw-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);width:175px;padding-top:1.5rem;padding-bottom:1.5rem;padding-left:12.5px;padding-right:12.5px;@media (min-width: 768px){width:340px;padding-top:2.25rem;padding-bottom:2.25rem;padding-left:3rem;padding-right:3rem;};label:AdvisorCard;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref3 = process.env.NODE_ENV === "production" ? {
  name: "hcx38s",
  styles: "width:120px;height:120px;@media (min-width: 768px){width:184px;height:184px;}"
} : {
  name: "1t57la-AdvisorCard",
  styles: "width:120px;height:120px;@media (min-width: 768px){width:184px;height:184px;};label:AdvisorCard;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref4 = process.env.NODE_ENV === "production" ? {
  name: "1tfetyr",
  styles: "--tw-bg-opacity:1;background-color:rgba(181, 194, 225, var(--tw-bg-opacity));object-fit:contain;border-radius:9999px;width:100%;height:100%"
} : {
  name: "gofudd-AdvisorCard",
  styles: "--tw-bg-opacity:1;background-color:rgba(181, 194, 225, var(--tw-bg-opacity));object-fit:contain;border-radius:9999px;width:100%;height:100%;label:AdvisorCard;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref5 = process.env.NODE_ENV === "production" ? {
  name: "1ekrz1h",
  styles: "font-weight:700;line-height:1.5rem;margin-top:0.375rem;@media (min-width: 768px){font-size:22px;line-height:2.25rem;margin-top:0.75rem;}"
} : {
  name: "f8keu4-AdvisorCard",
  styles: "font-weight:700;line-height:1.5rem;margin-top:0.375rem;@media (min-width: 768px){font-size:22px;line-height:2.25rem;margin-top:0.75rem;};label:AdvisorCard;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref6 = process.env.NODE_ENV === "production" ? {
  name: "d9gmm3",
  styles: "line-height:1.5rem;margin-bottom:0.375rem;@media (min-width: 768px){font-size:22px;line-height:2.25rem;margin-bottom:0.75rem;}"
} : {
  name: "dpgpe8-AdvisorCard",
  styles: "line-height:1.5rem;margin-bottom:0.375rem;@media (min-width: 768px){font-size:22px;line-height:2.25rem;margin-bottom:0.75rem;};label:AdvisorCard;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var _ref7 = process.env.NODE_ENV === "production" ? {
  name: "s3fwv",
  styles: "--tw-text-opacity:1;color:rgba(58, 93, 174, var(--tw-text-opacity));text-align:center;@media (min-width: 768px){font-size:22px;line-height:2.25rem;margin-bottom:0.75rem;}"
} : {
  name: "17w35l6-AdvisorCard",
  styles: "--tw-text-opacity:1;color:rgba(58, 93, 174, var(--tw-text-opacity));text-align:center;@media (min-width: 768px){font-size:22px;line-height:2.25rem;margin-bottom:0.75rem;};label:AdvisorCard;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};

var AdvisorCard = function AdvisorCard(_ref) {
  var imageSrc = _ref.imageSrc,
      fullName = _ref.fullName,
      designatory = _ref.designatory,
      credentials = _ref.credentials,
      className = _ref.className,
      restProps = _objectWithoutProperties(_ref, _excluded);

  return (0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
    title: "AdvisorCard",
    className: className,
    css: _ref2
  }, restProps), {}, {
    children: [(0, _jsxRuntime.jsx)("div", {
      css: _ref3,
      children: (0, _jsxRuntime.jsx)("img", {
        css: _ref4,
        src: imageSrc,
        alt: "photo"
      })
    }), (0, _jsxRuntime.jsx)("h5", {
      css: _ref5,
      children: fullName
    }), (0, _jsxRuntime.jsx)("h5", {
      css: _ref6,
      children: designatory
    }), (0, _jsxRuntime.jsx)("div", {
      css: _ref7,
      children: credentials
    })]
  }));
};

exports.AdvisorCard = AdvisorCard;