var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/saasLogin/utils.ts
var utils_exports = {};
__export(utils_exports, {
  mergeData: () => mergeData
});
module.exports = __toCommonJS(utils_exports);
var mergeData = (locales, props) => {
  return {
    ...props,
    logo: props.logo || "",
    logoSize: props.logoSize || { width: 48, height: 48 },
    logoPosition: props.logoPosition ?? "center",
    welcomeMessage: props.welcomeMessage ?? locales.getText("pisell-saas-login-welcome-message"),
    welcomeMessageAlign: props.welcomeMessageAlign ?? "center",
    title: props.title ?? locales.getText("pisell-saas-login-title"),
    titleAlign: props.titleAlign ?? "center",
    subtitle: props.subtitle ?? locales.getText("pisell-saas-login-subtitle"),
    subtitleAlign: props.subtitleAlign ?? "center",
    emailLabel: props.emailLabel ?? locales.getText("pisell-saas-login-email-label"),
    emailPlaceholder: props.emailPlaceholder ?? locales.getText("pisell-saas-login-email-placeholder"),
    passwordLabel: props.passwordLabel ?? locales.getText("pisell-saas-login-password-label"),
    passwordPlaceholder: props.passwordPlaceholder ?? locales.getText("pisell-saas-login-password-placeholder"),
    buttonText: props.buttonText ?? locales.getText("pisell-saas-login-button"),
    registerText: props.registerText ?? locales.getText("pisell-saas-login-register-text"),
    registerLinkText: props.registerLinkText ?? locales.getText("pisell-saas-login-register-link"),
    registerAlign: props.registerAlign ?? "center"
  };
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  mergeData
});
