const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
//#region src/plus/saasLogin/utils.ts
const mergeData = (locales, props) => {
	var _props$logoPosition, _props$welcomeMessage, _props$welcomeMessage2, _props$title, _props$titleAlign, _props$subtitle, _props$subtitleAlign, _props$emailLabel, _props$emailPlacehold, _props$passwordLabel, _props$passwordPlaceh, _props$buttonText, _props$registerText, _props$registerLinkTe, _props$registerAlign;
	return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, {
		logo: props.logo || "",
		logoSize: props.logoSize || {
			width: 48,
			height: 48
		},
		logoPosition: (_props$logoPosition = props.logoPosition) !== null && _props$logoPosition !== void 0 ? _props$logoPosition : "center",
		welcomeMessage: (_props$welcomeMessage = props.welcomeMessage) !== null && _props$welcomeMessage !== void 0 ? _props$welcomeMessage : locales.getText("pisell-saas-login-welcome-message"),
		welcomeMessageAlign: (_props$welcomeMessage2 = props.welcomeMessageAlign) !== null && _props$welcomeMessage2 !== void 0 ? _props$welcomeMessage2 : "center",
		title: (_props$title = props.title) !== null && _props$title !== void 0 ? _props$title : locales.getText("pisell-saas-login-title"),
		titleAlign: (_props$titleAlign = props.titleAlign) !== null && _props$titleAlign !== void 0 ? _props$titleAlign : "center",
		subtitle: (_props$subtitle = props.subtitle) !== null && _props$subtitle !== void 0 ? _props$subtitle : locales.getText("pisell-saas-login-subtitle"),
		subtitleAlign: (_props$subtitleAlign = props.subtitleAlign) !== null && _props$subtitleAlign !== void 0 ? _props$subtitleAlign : "center",
		emailLabel: (_props$emailLabel = props.emailLabel) !== null && _props$emailLabel !== void 0 ? _props$emailLabel : locales.getText("pisell-saas-login-email-label"),
		emailPlaceholder: (_props$emailPlacehold = props.emailPlaceholder) !== null && _props$emailPlacehold !== void 0 ? _props$emailPlacehold : locales.getText("pisell-saas-login-email-placeholder"),
		passwordLabel: (_props$passwordLabel = props.passwordLabel) !== null && _props$passwordLabel !== void 0 ? _props$passwordLabel : locales.getText("pisell-saas-login-password-label"),
		passwordPlaceholder: (_props$passwordPlaceh = props.passwordPlaceholder) !== null && _props$passwordPlaceh !== void 0 ? _props$passwordPlaceh : locales.getText("pisell-saas-login-password-placeholder"),
		buttonText: (_props$buttonText = props.buttonText) !== null && _props$buttonText !== void 0 ? _props$buttonText : locales.getText("pisell-saas-login-button"),
		registerText: (_props$registerText = props.registerText) !== null && _props$registerText !== void 0 ? _props$registerText : locales.getText("pisell-saas-login-register-text"),
		registerLinkText: (_props$registerLinkTe = props.registerLinkText) !== null && _props$registerLinkTe !== void 0 ? _props$registerLinkTe : locales.getText("pisell-saas-login-register-link"),
		registerAlign: (_props$registerAlign = props.registerAlign) !== null && _props$registerAlign !== void 0 ? _props$registerAlign : "center"
	});
};
//#endregion
exports.mergeData = mergeData;
