| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.LoginPage = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const react_1 = require("react"); |
| 7 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 8 |
const BackgroundImage_1 = require("../BackgroundImage"); |
| 9 |
const Brand_1 = require("../Brand"); |
| 10 |
const List_1 = require("../List"); |
| 11 |
const Login_1 = require("./Login"); |
| 12 |
const LoginHeader_1 = require("./LoginHeader"); |
| 13 |
const LoginFooter_1 = require("./LoginFooter"); |
| 14 |
const LoginMainHeader_1 = require("./LoginMainHeader"); |
| 15 |
const LoginMainBody_1 = require("./LoginMainBody"); |
| 16 |
const LoginMainFooter_1 = require("./LoginMainFooter"); |
| 17 |
const LoginPage = (_a) => { |
| 18 |
var { children = null, className = '', brandImgSrc = '', brandImgAlt = '', brandImgProps, backgroundImgSrc = '', footerListItems = null, textContent = '', footerListVariants, loginTitle, loginSubtitle, headerUtilities, signUpForAccountMessage = null, forgotCredentials = null, socialMediaLoginContent = null, socialMediaLoginAriaLabel } = _a, props = tslib_1.__rest(_a, ["children", "className", "brandImgSrc", "brandImgAlt", "brandImgProps", "backgroundImgSrc", "footerListItems", "textContent", "footerListVariants", "loginTitle", "loginSubtitle", "headerUtilities", "signUpForAccountMessage", "forgotCredentials", "socialMediaLoginContent", "socialMediaLoginAriaLabel"]); |
| 19 |
const HeaderBrand = ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (brandImgSrc || (brandImgProps === null || brandImgProps === void 0 ? void 0 : brandImgProps.src)) && (0, jsx_runtime_1.jsx)(Brand_1.Brand, Object.assign({ src: brandImgSrc, alt: brandImgAlt }, brandImgProps)) })); |
| 20 |
const Header = (0, jsx_runtime_1.jsx)(LoginHeader_1.LoginHeader, { headerBrand: HeaderBrand }); |
| 21 |
const Footer = ((0, jsx_runtime_1.jsxs)(LoginFooter_1.LoginFooter, { children: [(0, jsx_runtime_1.jsx)("p", { children: textContent }), (0, jsx_runtime_1.jsx)(List_1.List, { variant: footerListVariants, children: footerListItems })] })); |
| 22 |
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [backgroundImgSrc && (0, jsx_runtime_1.jsx)(BackgroundImage_1.BackgroundImage, { src: backgroundImgSrc }), (0, jsx_runtime_1.jsxs)(Login_1.Login, Object.assign({ header: Header, footer: Footer, className: (0, react_styles_1.css)(className) }, props, { children: [(0, jsx_runtime_1.jsx)(LoginMainHeader_1.LoginMainHeader, { title: loginTitle, subtitle: loginSubtitle, headerUtilities: headerUtilities }), (0, jsx_runtime_1.jsx)(LoginMainBody_1.LoginMainBody, { children: children }), (socialMediaLoginContent || forgotCredentials || signUpForAccountMessage) && ((0, jsx_runtime_1.jsx)(LoginMainFooter_1.LoginMainFooter, { socialMediaLoginContent: socialMediaLoginContent, socialMediaLoginAriaLabel: socialMediaLoginAriaLabel, forgotCredentials: forgotCredentials, signUpForAccountMessage: signUpForAccountMessage }))] }))] })); |
| 23 |
}; |
| 24 |
exports.LoginPage = LoginPage; |
| 25 |
exports.LoginPage.displayName = 'LoginPage'; |
| 26 |
//# sourceMappingURL=LoginPage.js.map |