| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; |
| 3 |
import { Fragment } from 'react'; |
| 4 |
import { css } from '@patternfly/react-styles'; |
| 5 |
import { BackgroundImage } from '../BackgroundImage'; |
| 6 |
import { Brand } from '../Brand'; |
| 7 |
import { List } from '../List'; |
| 8 |
import { Login } from './Login'; |
| 9 |
import { LoginHeader } from './LoginHeader'; |
| 10 |
import { LoginFooter } from './LoginFooter'; |
| 11 |
import { LoginMainHeader } from './LoginMainHeader'; |
| 12 |
import { LoginMainBody } from './LoginMainBody'; |
| 13 |
import { LoginMainFooter } from './LoginMainFooter'; |
| 14 |
export const LoginPage = (_a) => { |
| 15 |
var { children = null, className = '', brandImgSrc = '', brandImgAlt = '', brandImgProps, backgroundImgSrc = '', footerListItems = null, textContent = '', footerListVariants, loginTitle, loginSubtitle, headerUtilities, signUpForAccountMessage = null, forgotCredentials = null, socialMediaLoginContent = null, socialMediaLoginAriaLabel } = _a, props = __rest(_a, ["children", "className", "brandImgSrc", "brandImgAlt", "brandImgProps", "backgroundImgSrc", "footerListItems", "textContent", "footerListVariants", "loginTitle", "loginSubtitle", "headerUtilities", "signUpForAccountMessage", "forgotCredentials", "socialMediaLoginContent", "socialMediaLoginAriaLabel"]); |
| 16 |
const HeaderBrand = (_jsx(Fragment, { children: (brandImgSrc || (brandImgProps === null || brandImgProps === void 0 ? void 0 : brandImgProps.src)) && _jsx(Brand, Object.assign({ src: brandImgSrc, alt: brandImgAlt }, brandImgProps)) })); |
| 17 |
const Header = _jsx(LoginHeader, { headerBrand: HeaderBrand }); |
| 18 |
const Footer = (_jsxs(LoginFooter, { children: [_jsx("p", { children: textContent }), _jsx(List, { variant: footerListVariants, children: footerListItems })] })); |
| 19 |
return (_jsxs(Fragment, { children: [backgroundImgSrc && _jsx(BackgroundImage, { src: backgroundImgSrc }), _jsxs(Login, Object.assign({ header: Header, footer: Footer, className: css(className) }, props, { children: [_jsx(LoginMainHeader, { title: loginTitle, subtitle: loginSubtitle, headerUtilities: headerUtilities }), _jsx(LoginMainBody, { children: children }), (socialMediaLoginContent || forgotCredentials || signUpForAccountMessage) && (_jsx(LoginMainFooter, { socialMediaLoginContent: socialMediaLoginContent, socialMediaLoginAriaLabel: socialMediaLoginAriaLabel, forgotCredentials: forgotCredentials, signUpForAccountMessage: signUpForAccountMessage }))] }))] })); |
| 20 |
}; |
| 21 |
LoginPage.displayName = 'LoginPage'; |
| 22 |
//# sourceMappingURL=LoginPage.js.map |