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AC,MACA,OAAOH,CACR,E","sources":["webpack:///./Scripts/Actions/Overlay.action.js","webpack:///./Scripts/Components/Login/LoginModal.js","webpack:///./Scripts/Components/Login/ui/LoginHelper.js","webpack:///./Scripts/Components/Select.js","webpack:///./Scripts/Components/SideMenu.js","webpack:///./Scripts/Components/Login/ui/LoginChangePassword.js","webpack:///./Scripts/Components/Login/ui/LoginForgotPassword.js","webpack:///./Scripts/Components/Login/ui/LoginForm.js","webpack:///./Scripts/Components/Login/ui/LoginSelectOrganization.js","webpack:///./Scripts/Containers/Login.container.js","webpack:///./Scripts/Utils/utils.js"],"sourcesContent":["import {\n OVERLAY_ADD_OVERLAY,\n OVERLAY_CLOSE_OVERLAY,\n OVERLAY_REMOVE_OVERLAY,\n OVERLAY_UPDATE_OVERLAY,\n} from '../constants';\n\nexport const addOverlay = (\n componentName,\n onOverlayClick,\n zIndexClass = null\n) => ({\n type: OVERLAY_ADD_OVERLAY,\n payload: {\n componentName,\n onOverlayClick,\n zIndexClass,\n },\n});\n\nexport const updateOverlay = (componentName, onOverlayClick, zIndexClass) => ({\n type: OVERLAY_UPDATE_OVERLAY,\n payload: {\n componentName,\n onOverlayClick,\n zIndexClass,\n },\n});\n\nexport const removeOverlay = (componentName) => ({\n type: OVERLAY_REMOVE_OVERLAY,\n payload: {\n componentName,\n },\n});\n\nexport const closeOverlay = () => ({\n type: OVERLAY_CLOSE_OVERLAY,\n payload: {\n activeOverlays: [],\n },\n});\n","import React, { useMemo } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { setLoginModalOpen } from '../../Actions/Login.action';\nimport { useSelector } from 'react-redux';\nimport { LoginModes } from '../../constants';\nimport LoginContainer from '../../Containers/Login.container';\nimport SideMenu from '../SideMenu';\nimport { getTitle } from './ui/LoginHelper';\n\nconst LoginModal = () => {\n const { modalOpen, loginMode, isLoading } = useSelector(\n (state) => state.login\n );\n const dispatch = useDispatch();\n const disableClosing = useMemo(\n () =>\n loginMode == LoginModes.ChangePassword ||\n loginMode == LoginModes.SelectOrganization,\n [loginMode]\n );\n\n return (\n dispatch(setLoginModalOpen(false))}\n disableClosing={disableClosing || isLoading}\n from=\"right\"\n zIndex={60}\n >\n \n \n );\n};\n\nexport default LoginModal;\n","import { translate } from '../../../Services/translation';\nimport { LoginModes } from '../../../constants';\n\nexport const getTitle = (state) => {\n switch (state) {\n case LoginModes.ChangePassword:\n return translate('login.title.change-password');\n case LoginModes.ForgotPassword:\n return translate('login.title.forgot-password');\n case LoginModes.SelectOrganization:\n return translate('login.title.select-organization');\n default:\n return translate('login.title.login');\n }\n};\n","import clsx from 'clsx';\nimport React from 'react';\n\nconst Select = ({ label, wrapperClassName, ...props }) => {\n return (\n
\n {label && (\n \n )}\n \n
\n );\n};\n\nexport default Select;","import React, {\n cloneElement,\n forwardRef,\n useCallback,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from 'react';\nimport ReactDOM from 'react-dom';\nimport { useDispatch } from 'react-redux';\nimport {\n addOverlay,\n removeOverlay,\n updateOverlay,\n} from '../Actions/Overlay.action';\nimport Icon from './Icon';\nimport clsx from 'clsx';\nimport { translate } from '../Services/translation';\nimport { lockFocusToModal } from '../Utils/utils';\n\nconst SideMenu = forwardRef(\n (\n {\n id,\n duration = '0.2s',\n from = 'right',\n className,\n contentClassName,\n open = false,\n onClosed,\n showCloseButton = true,\n children,\n title,\n disableClosing = false,\n closeButton = null,\n components = {},\n zIndex,\n },\n ref\n ) => {\n const [ready, setReady] = useState(false);\n const [slideIn, setSlideIn] = useState(open);\n const [renderSideMenu, setRenderSideMenu] = useState(open);\n const [timeoutId, setTimeoutId] = useState();\n const dispatch = useDispatch();\n\n if (!id || id == '') {\n throw new Error(\n 'A unique side-menu \"id\" must be passed to side menu component'\n );\n }\n\n useEffect(() => {\n setReady(true);\n }, []);\n\n const close = useCallback(() => {\n if (!disableClosing) {\n // Just sets \"slideIn\" to false, which triggers the animation to close it\n setSlideIn(false);\n return true;\n }\n\n // False disables overlay click\n return false;\n }, [disableClosing]);\n\n useEffect(() => {\n dispatch(updateOverlay(id, close));\n }, [dispatch, close, id]);\n\n useEffect(() => {\n if (!ready) return;\n\n if (!slideIn && ready) {\n // If not slide in, slide out :^)\n if (timeoutId) {\n // Clear previous timeout to avoid animation delay bug\n clearTimeout(timeoutId);\n }\n\n var newTimeoutId = setTimeout(() => {\n setTimeoutId(undefined);\n onClosed && onClosed();\n setRenderSideMenu(false);\n }, parseFloat(duration) * 1000);\n\n setTimeoutId(newTimeoutId);\n dispatch(removeOverlay(id));\n }\n }, [slideIn]);\n\n useEffect(() => {\n if (!ready) return;\n\n // Triggered every time \"open\" is changed, initially as well\n // Timeout to not trigger on the same frame as the render, to enable the slide-in\n setTimeout(() => setSlideIn(open), 1);\n\n if (open) {\n setRenderSideMenu(true);\n dispatch(addOverlay(id, close));\n }\n }, [open, close]);\n\n useEffect(() => {\n if (renderSideMenu) {\n const modal = document.getElementById(id);\n lockFocusToModal(modal, close, true);\n };\n }, [renderSideMenu]);\n\n const CloseIcon = () => (\n \n );\n\n const slideInClasses = useMemo(() => {\n switch (from) {\n case 'bottom':\n return slideIn\n ? 'sidemenu--slide-bottom'\n : 'sidemenu--slide-bottom-full';\n case 'left':\n return slideIn ? 'sidemenu--slide-left' : 'sidemenu--slide-left-full';\n case 'right':\n default:\n return slideIn\n ? 'sidemenu--slide-right'\n : 'sidemenu--slide-right-full';\n }\n }, [slideIn, from]);\n\n return renderSideMenu\n ? ReactDOM.createPortal(\n \n
\n {title &&

{title}

}\n {components.Header && (\n <>\n {showCloseButton &&\n !disableClosing &&\n (!closeButton ? (\n \n ) : (\n cloneElement(closeButton, {\n onClick: close,\n })\n ))}\n \n \n )}\n {!components.Header &&\n showCloseButton &&\n !disableClosing &&\n (!closeButton ? (\n \n ) : (\n cloneElement(closeButton, {\n onClick: close,\n })\n ))}\n
\n {components?.Content && (\n {children}\n )}\n {!components?.Content && (\n
\n {children}\n
\n )}\n {components.Footer != null && (\n
\n \n
\n )}\n ,\n document.body\n )\n : null;\n }\n);\n\nSideMenu.displayName = 'SideMenu';\n\nexport default SideMenu;\n","import React, { useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { submitChangePassword } from '../../../Actions/Login.action';\nimport { translate } from '../../../Services/translation';\nimport Input from '../../Input';\nimport clsx from 'clsx';\n\nconst LoginChangePassword = () => {\n const { isLoading, username = '', password = '' } = useSelector(\n (state) => state.login\n );\n const [newPassword, setNewPassword] = useState('');\n const [passwordConfirmation, setPasswordConfirmation] = useState('');\n const dispatch = useDispatch();\n\n const onSubmit = (e) => {\n if (e) {\n e.preventDefault();\n }\n dispatch(\n submitChangePassword(\n username,\n password,\n newPassword,\n passwordConfirmation\n )\n );\n };\n\n return (\n <>\n
\n setNewPassword(e.target.value)}\n placeholder={translate('general.password')}\n type=\"password\"\n disabled={isLoading}\n />\n setPasswordConfirmation(e.target.value)}\n placeholder={translate('login.confirm-password')}\n type=\"password\"\n disabled={isLoading}\n />\n \n {translate(isLoading ? 'general.loading' : 'general.send')}\n \n \n \n );\n};\n\nexport default LoginChangePassword;\n","import React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport {\n submitForgotPassword,\n setUsername,\n setLoginMode,\n submitMagicLink,\n} from '../../../Actions/Login.action';\nimport { translate } from '../../../Services/translation';\nimport { LoginModes } from '../../../constants';\nimport Input from '../../Input';\n\nconst LoginForgotPassword = () => {\n const { username = '', isLoading, magicLinkModel } = useSelector(\n (state) => state.login\n );\n const [isSuccessful, setIsSuccessful] = useState(false);\n const dispatch = useDispatch();\n\n const onSubmit = (e) => {\n if (e) {\n e.preventDefault();\n }\n dispatch(submitForgotPassword(username)).then((success) =>\n setIsSuccessful(success)\n );\n };\n\n useEffect(() => {\n // Send magic link on first render only, if magic link model is in state\n if (!magicLinkModel?.link) return;\n dispatch(submitMagicLink(magicLinkModel));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <>\n {!isSuccessful && !magicLinkModel && (\n <>\n
\n {translate('login.text.forgot-password')}\n
\n
\n dispatch(setUsername(e.target.value))}\n disabled={isLoading}\n required\n id=\"username\"\n />\n \n {translate(isLoading ? 'login.loading' : 'login.send')}\n \n \n
\n dispatch(setLoginMode(LoginModes.Login))}\n >\n {translate(isLoading ? 'login.loading' : 'login.back')}\n \n
\n \n )}\n {isSuccessful && (\n <>\n

\n {translate('login.forgot-password.success')}\n

\n
\n dispatch(setLoginMode(LoginModes.Login))}\n >\n {translate('general.back')}\n \n
\n \n )}\n \n );\n};\n\nexport default LoginForgotPassword;\n","import React, { useRef, useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport {\n performLogin as performLoginAction,\n setLoginMode,\n setPassword,\n setUsername,\n submitMagicLink,\n} from '../../../Actions/Login.action';\nimport Input from '../../Input';\nimport { translate } from '../../../Services/translation';\nimport { LoginModes } from '../../../constants';\nimport ReCAPTCHA from 'react-google-recaptcha';\n\nconst RECAPTCHA_SITE_KEY = window.__litium.recaptchaSitekey;\n\nconst LoginForm = () => {\n const { isLoading, username = '', password = '', registerUrl, magicLinkModel } = useSelector(\n (state) => state.login\n );\n const dispatch = useDispatch();\n const recaptchaRef = useRef(null);\n\n const performLogin = async (e) => {\n if (e) {\n e.preventDefault();\n }\n\n const recaptchaValue = await recaptchaRef.current.executeAsync('login');\n try {\n dispatch(performLoginAction(username, password, recaptchaValue));\n }\n catch (err){\n recaptchaRef.current.reset();\n }\n };\n\n useEffect(() => {\n // Send magic link on first render only, if magic link model is in state\n if (!magicLinkModel?.link) return;\n dispatch(submitMagicLink(magicLinkModel));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <>\n
\n dispatch(setUsername(e.target.value))}\n required\n disabled={isLoading}\n type=\"text\"\n id=\"username\"\n autoComplete=\"username\"\n value={username}\n />\n dispatch(setPassword(e.target.value))}\n required\n disabled={isLoading}\n type=\"password\"\n id=\"password\"\n autoComplete=\"current-password\"\n value={password}\n />\n \n \n {translate(isLoading ? 'login.loading' : 'login.login')}\n \n \n
\n {registerUrl && (\n {\n window.location.href = registerUrl;\n }}\n >\n {translate('login.register')}\n \n )}\n dispatch(setLoginMode(LoginModes.ForgotPassword))}\n >\n {translate('login.forgot-password')}\n \n
\n \n );\n};\n\nexport default LoginForm;\n","import React, { useState, useEffect, useMemo } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { selectOrganization } from '../../../Actions/Login.action';\nimport { translate } from '../../../Services/translation';\nimport Select from '../../Select';\n\nconst LoginSelectOrganization = () => {\n const dispatch = useDispatch();\n const { organizations, isLoading } = useSelector((state) => state.login);\n\n // Sort once using useMemo\n const sortedOrganizations = useMemo(() => {\n return organizations?.slice().sort((a, b) => a.name.localeCompare(b.name)) || [];\n }, [organizations]);\n\n const [selectedOrganizationId, setSelectedOrganizationId] = useState(\"\");\n\n useEffect(() => {\n if (sortedOrganizations.length > 0) {\n setSelectedOrganizationId(sortedOrganizations[0].value || sortedOrganizations[0].systemId);\n }\n }, [sortedOrganizations]);\n\n const handleSelectChange = (event) => {\n setSelectedOrganizationId(event.target.value);\n };\n\n const handleButtonClick = () => {\n if (selectedOrganizationId) {\n dispatch(selectOrganization(selectedOrganizationId));\n } else if (sortedOrganizations.length > 0) {\n dispatch(selectOrganization(sortedOrganizations[0].systemId));\n }\n };\n\n return sortedOrganizations.length > 0 ? (\n <>\n \n {sortedOrganizations.map((option, index) => (\n \n ))}\n \n \n {!isLoading ? translate('general.select') : translate('general.loading')}\n \n \n ) : null;\n};\n\nexport default LoginSelectOrganization;\n","import React, { useEffect, useState } from 'react';\nimport LoginChangePassword from '../Components/Login/ui/LoginChangePassword';\nimport LoginForgotPassword from '../Components/Login/ui/LoginForgotPassword';\nimport LoginForm from '../Components/Login/ui/LoginForm';\nimport TermsAndConditions from '../Components/Login/ui/TermsAndConditions';\nimport LoginSelectOrganization from '../Components/Login/ui/LoginSelectOrganization';\nimport { useSelector } from 'react-redux';\nimport { LoginModes } from '../constants';\nimport { getTitle } from '../Components/Login/ui/LoginHelper';\n\nconst LoginContainer = ({ hideH1 }) => {\n const { loginMode, error, terms } = useSelector((state) => state.login);\n\n return (\n <>\n {!hideH1 &&

{getTitle(loginMode)}

}\n {error &&
{error}
}\n {loginMode == LoginModes.Login && }\n {loginMode == LoginModes.Terms && }\n {loginMode == LoginModes.SelectOrganization && (\n \n )}\n {loginMode == LoginModes.ChangePassword && }\n {loginMode == LoginModes.ForgotPassword && }\n \n );\n};\n\nexport default LoginContainer;\n","export const lockFocusToModal = (\n containerElement,\n onClose,\n focusFirstElement = false\n) => {\n if (!containerElement) return;\n const focusableElements = Array.from(\n containerElement?.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n )\n ).filter(\n (el) =>\n !el.hasAttribute('disabled') &&\n el.offsetParent !== null &&\n el.offsetParent !== undefined\n );\n if (!focusableElements) return; // To prevent error when focusableElements is null\n const firstElement = focusableElements[0];\n const lastElement = focusableElements[focusableElements.length - 1];\n const prevActiveElement = document.activeElement;\n\n if (focusFirstElement && firstElement) {\n firstElement.focus();\n }\n\n const handleTabKeyPress = (event) => {\n if (event.key === 'Tab') {\n if (event.shiftKey && document.activeElement === firstElement) {\n event.preventDefault();\n lastElement.focus();\n } else if (!event.shiftKey && document.activeElement === lastElement) {\n event.preventDefault();\n firstElement.focus();\n }\n }\n if (event.key === 'Escape' && onClose) {\n onClose();\n prevActiveElement.focus();\n }\n };\n\n containerElement?.addEventListener('keydown', handleTabKeyPress);\n return () => {\n containerElement?.removeEventListener('keydown', handleTabKeyPress);\n };\n};\n\nexport const GetSearchUrl = (q) => {\n const queryParams = q && q.length > 0 ? `?q=${q}` : '';\n return window.__litium.quickSearchUrl + queryParams;\n};\n\n//Colors used in js\nexport const colors = {\n apex: {\n infoBoxBorder: '#5F5F60',\n },\n bendix: {\n infoBoxBorder: '#6E7072',\n },\n};\n\nexport const formatDate = (date) => {\n try {\n const updatedDate = new Date(date);\n const [year, month, day] = updatedDate\n .toISOString()\n .split('T')[0]\n .split('-');\n return `${day}-${month}-${year}`;\n } catch {\n return date;\n }\n};\n"],"names":["addOverlay","componentName","onOverlayClick","zIndexClass","type","OVERLAY_ADD_OVERLAY","payload","updateOverlay","OVERLAY_UPDATE_OVERLAY","removeOverlay","OVERLAY_REMOVE_OVERLAY","modalOpen","loginMode","isLoading","useSelector","state","login","dispatch","useDispatch","disableClosing","useMemo","LoginModes","ChangePassword","SelectOrganization","id","open","title","getTitle","onClosed","setLoginModalOpen","from","zIndex","hideH1","translate","ForgotPassword","label","wrapperClassName","props","className","clsx","htmlFor","required","SideMenu","forwardRef","duration","contentClassName","showCloseButton","children","closeButton","components","ref","ready","setReady","useState","slideIn","setSlideIn","renderSideMenu","setRenderSideMenu","timeoutId","setTimeoutId","Error","useEffect","close","useCallback","clearTimeout","newTimeoutId","setTimeout","undefined","parseFloat","modal","document","getElementById","lockFocusToModal","CloseIcon","onClick","size","name","slideInClasses","ReactDOM","style","transitionDuration","Header","cloneElement","Content","Footer","body","displayName","username","password","newPassword","setNewPassword","passwordConfirmation","setPasswordConfirmation","onSubmit","e","preventDefault","submitChangePassword","Input","value","onChange","target","placeholder","disabled","magicLinkModel","isSuccessful","setIsSuccessful","link","submitMagicLink","submitForgotPassword","then","success","setUsername","setLoginMode","Login","RECAPTCHA_SITE_KEY","window","__litium","recaptchaSitekey","registerUrl","recaptchaRef","useRef","async","recaptchaValue","current","executeAsync","performLoginAction","err","reset","autoComplete","setPassword","sitekey","badge","action","location","href","organizations","sortedOrganizations","slice","sort","a","b","localeCompare","selectedOrganizationId","setSelectedOrganizationId","length","systemId","Select","event","map","option","index","key","selectOrganization","error","terms","Terms","TermsAndConditions","containerElement","onClose","focusFirstElement","focusableElements","Array","querySelectorAll","filter","el","hasAttribute","offsetParent","firstElement","lastElement","prevActiveElement","activeElement","focus","handleTabKeyPress","shiftKey","addEventListener","removeEventListener","GetSearchUrl","q","queryParams","quickSearchUrl","colors","apex","infoBoxBorder","bendix","formatDate","date","updatedDate","Date","year","month","day","toISOString","split"],"sourceRoot":""}