var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/pro/Login2.0/shared/Header.tsx
var Header_exports = {};
__export(Header_exports, {
  default: () => Header_default
});
module.exports = __toCommonJS(Header_exports);
var import_react = __toESM(require("react"));
var import_classnames = __toESM(require("classnames"));
var Header = ({ ui }) => {
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-header" }, ((_a = ui == null ? void 0 : ui.logo) == null ? void 0 : _a.show) && ((_b = ui == null ? void 0 : ui.logo) == null ? void 0 : _b.url) || ((_c = ui == null ? void 0 : ui.title) == null ? void 0 : _c.show) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-header-top" }, ((_d = ui == null ? void 0 : ui.logo) == null ? void 0 : _d.show) && ((_e = ui == null ? void 0 : ui.logo) == null ? void 0 : _e.url) && /* @__PURE__ */ import_react.default.createElement(
    "div",
    {
      className: (0, import_classnames.default)(
        "login2-logo",
        ui.logo.position || "center"
      )
    },
    /* @__PURE__ */ import_react.default.createElement(
      "img",
      {
        src: ui.logo.url,
        alt: "logo",
        style: {
          width: ((_f = ui.logo.size) == null ? void 0 : _f.width) || 48,
          height: ((_g = ui.logo.size) == null ? void 0 : _g.height) || 48
        }
      }
    )
  ), ((_h = ui == null ? void 0 : ui.title) == null ? void 0 : _h.show) && /* @__PURE__ */ import_react.default.createElement(
    "div",
    {
      className: "login2-title",
      style: { textAlign: ui.title.align || "center" }
    },
    ui.title.text || "Welcome"
  )) : null, ((_i = ui == null ? void 0 : ui.subtitle) == null ? void 0 : _i.show) || ((_j = ui == null ? void 0 : ui.desc) == null ? void 0 : _j.show) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "login2-header-bottom" }, ((_k = ui == null ? void 0 : ui.subtitle) == null ? void 0 : _k.show) && /* @__PURE__ */ import_react.default.createElement(
    "p",
    {
      className: "login2-subtitle",
      style: { textAlign: ui.subtitle.align || "center" }
    },
    ui.subtitle.text || "Please login to continue"
  ), ((_l = ui == null ? void 0 : ui.desc) == null ? void 0 : _l.show) && /* @__PURE__ */ import_react.default.createElement(
    "p",
    {
      className: "login2-desc",
      style: { textAlign: ui.desc.align || "center" }
    },
    ui.desc.text || "Welcome back! Please enter your details."
  )) : null);
};
var Header_default = Header;
