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tE,gBAAK5I,wBAAyB,CAAEC,OAAyB,QAAnB,EAAEf,EAAe,UAAE,OAAW,QAAX,EAAjB,EAAmBY,OAAO,UAAE,WAAX,EAAjB,EAA8B+I,uBAXnD,SAAC,IAAW,GAahC,C","sources":["pages/errors/component/404-header.component.tsx","pages/errors/component/404-login-help-modal.component.tsx","pages/errors/component/404-login.component.tsx","pages/errors/component/404-simple-callout.component.tsx","pages/errors/component/404-smart-search.component.tsx","pages/errors/page-not-found.tsx","pages/resources/topics/topic-items.tsx"],"sourcesContent":["import { useState, useEffect } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { retrievePageMenu } from \"../../../redux/slice/page-menu.slice\";\r\nimport { RootState, useAppDispatch } from \"../../../redux/store\";\r\n\r\ninterface Props {\r\n isProhibited: boolean;\r\n}\r\n\r\nconst Header404Component = (props: Props) => {\r\n const { isProhibited } = props;\r\n\r\n const path = isProhibited ? \"%2FLogin%2FProhibited\" : \"%2F404\";\r\n\r\n const { RapsEuropeData } = useSelector((state: RootState) => state.rapsEurope);\r\n const [description, setDescription] = useState(\"\");\r\n\r\n const dispatch = useAppDispatch();\r\n\r\n useEffect(() => {\r\n dispatch(retrievePageMenu(path));\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (RapsEuropeData[0]) {\r\n let rapsResult = RapsEuropeData[0].result && RapsEuropeData[0].result[0];\r\n if (rapsResult) {\r\n setDescription(rapsResult.description);\r\n }\r\n }\r\n }, [RapsEuropeData]);\r\n\r\n return <>{description !== \"\" && <div className=\"container-fluid\" dangerouslySetInnerHTML={{ __html: description }}></div>}</>;\r\n};\r\n\r\nexport default Header404Component;\r\n","interface Prop {\r\n setShowModal: () => void;\r\n}\r\n\r\nconst LoginHelpModal404 = ({ setShowModal }: Prop) => {\r\n const handleClick = () => {\r\n setShowModal();\r\n };\r\n\r\n return (\r\n <div className=\"lity lity-opened lity-inline\" role=\"dialog\" aria-label=\"Dialog Window (Press escape to close)\" tabIndex={-1} aria-hidden=\"false\" onClick={setShowModal}>\r\n <div className=\"lity-wrap\" data-lity-close=\"\" role=\"document\">\r\n <div className=\"lity-container\" onClick={(e) => e.stopPropagation()}>\r\n <div className=\"lity-content\">\r\n <div id=\"login_help\" style={{ padding: 10, background: \"rgb(255, 255, 255)\", maxHeight: 711 }}>\r\n <h2>Log in</h2>\r\n\r\n <p>Please enter your username and password to login.</p>\r\n </div>\r\n </div>\r\n <button className=\"lity-close\" type=\"button\" aria-label=\"Close (Press escape to close)\" data-lity-close=\"\" onClick={handleClick}>\r\n ×\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default LoginHelpModal404","import React, { useState, useEffect } from \"react\";\r\nimport { useNavigate, useLocation } from \"react-router-dom\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { login } from \"../../../redux/slice/sso/authentication-slice\";\r\nimport { RootState, useAppDispatch } from \"../../../redux/store\";\r\n\r\nimport useAuth from \"../../../hooks/useAuth\";\r\n\r\nimport LoginHelpModal from \"./404-login-help-modal.component\";\r\nimport { retrieveUserInfo } from \"../../../redux/slice/sso/userinfo.slice\";\r\n//import LoadingComp from \"../../../components/re-usable/loading/loading\";\r\n\r\ninterface FormElements extends HTMLFormControlsCollection {\r\n txtText: HTMLInputElement,\r\n txtPassword: HTMLInputElement\r\n}\r\n\r\ninterface LoginFormElement extends HTMLFormElement {\r\n readonly elements: FormElements\r\n}\r\n\r\ninterface LoginRequest {\r\n username: string,\r\n password: string,\r\n staySignedIn: boolean\r\n}\r\n\r\nconst ErrorLoginComponent = (props: {isLoginPage: boolean}) => {\r\n const { isLoginPage } = props;\r\n const { loginUser } = useAuth();\r\n const [username, setUsername] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [attemptedLoggedIn, setAttemptedLoggedIn] = useState(false);\r\n const [showErrorMessage, setShowErrorMessage] = useState(false);\r\n const [showModal, setShowModal] = useState(false);\r\n \r\n const { checkLogin } = useSelector(\r\n (state: RootState) => state.loggedIn\r\n );\r\n const loginData = useSelector((state: RootState) => state.login.data);\r\n const userInfo = useSelector((state: RootState) => state.userInfo);\r\n\r\n const location = useLocation();\r\n const navigate = useNavigate();\r\n const { from } = location.state || { from: { pathname: \"/member-dashboard\" } };\r\n\r\n const dispatch = useAppDispatch();\r\n\r\n const { search } = location;\r\n const query = React.useMemo(() => new URLSearchParams(search.toLowerCase()), [search]);\r\n\r\n useEffect(() => {\r\n if (!checkLogin.isLoggedIn && attemptedLoggedIn) {\r\n let request: LoginRequest = {\r\n username: username,\r\n password: password,\r\n staySignedIn: false\r\n }\r\n dispatch(login(request));\r\n setShowErrorMessage(false);\r\n }\r\n }, [attemptedLoggedIn]);\r\n\r\n useEffect(() => {\r\n if (attemptedLoggedIn && loginData.length > 0) {\r\n loginUser(loginData[0]);\r\n\r\n if (window.runGlobalScripts) {\r\n window.runGlobalScripts();\r\n }\r\n }\r\n \r\n else if (attemptedLoggedIn) {\r\n setAttemptedLoggedIn(false);\r\n setShowErrorMessage(true);\r\n }\r\n }, [loginData]);\r\n\r\n useEffect(() => {\r\n if (checkLogin.isLoggedIn) {\r\n if (!userInfo.loading && userInfo.data?.result === undefined) {\r\n dispatch(retrieveUserInfo());\r\n }\r\n\r\n if (attemptedLoggedIn || isLoginPage) {\r\n setAttemptedLoggedIn(false);\r\n let returnUrl = query.get(\"returnurl\") || null;\r\n if (returnUrl !== null) {\r\n window.location.replace(returnUrl);\r\n } else {\r\n navigate(from);\r\n }\r\n }\r\n }\r\n }, [checkLogin]);\r\n\r\n const handleSubmit = (event: React.FormEvent<LoginFormElement>) => {\r\n event.preventDefault()\r\n setUsername(event.currentTarget.elements.txtText.value);\r\n setPassword(event.currentTarget.elements.txtPassword.value);\r\n setAttemptedLoggedIn(true);\r\n }\r\n\r\n if (checkLogin.isLoggedIn && !isLoginPage) {\r\n return (<></>)\r\n }\r\n\r\n const onClick = (event: React.MouseEvent<HTMLAnchorElement>) => {\r\n event.preventDefault();\r\n setShowModal(true);\r\n }\r\n\r\n const handleModalEvent = () => {\r\n setShowModal(false);\r\n }\r\n\r\n return (\r\n <>\r\n <div className=\"FormPanel\">\r\n <p className=\"pull-right\">\r\n <a data-lity=\"\" href=\"#login_help\" onClick={onClick}>\r\n <i className=\"fa-regular fa-square-question hide\"></i>\r\n <span className=\"sr-only\">help</span>\r\n </a>\r\n </p>\r\n\r\n <h2>Log in</h2>\r\n\r\n <div className=\"form-login\">\r\n <form onSubmit={handleSubmit}>\r\n <div className=\"form-group\">\r\n <label className=\"EditingFormLabel\" htmlFor=\"txtText\" id=\"lUsername\">\r\n E-mail address\r\n </label>{\" \"}\r\n {/*<i className=\"fa-regular fa-user\"></i>*/}\r\n\r\n <div id=\"iUsername\">\r\n <input className=\"form-control\" id=\"txtText\" maxLength={500} name=\"txtText\" type=\"text\" placeholder=\"E-mail address\" />\r\n </div>\r\n </div>\r\n\r\n <div className=\"form-group\">\r\n <label className=\"EditingFormLabel\" htmlFor=\"txtPassword\" id=\"lPassword\">\r\n Password\r\n </label>{\" \"}\r\n {/*<i className=\"fa-regular fa-lock\"></i>*/}\r\n\r\n <div id=\"iPassword\">\r\n <div>\r\n <input\r\n className=\"form-control\"\r\n id=\"txtPassword\"\r\n maxLength={100}\r\n name=\"txtPassword\"\r\n type=\"password\"\r\n placeholder=\"Password\"\r\n />\r\n </div>\r\n </div>\r\n {showErrorMessage && (\r\n <span className=\"error\" id=\"spanLoginSnipperError\">\r\n E-mail address & Password Combo is invalid\r\n </span>)}\r\n </div>\r\n\r\n <div className=\"form-group\">\r\n <div className=\"forgot-password\">\r\n <a className=\"more\" href=\" https://my.raps.org/account/login.aspx?forgot=yes&RedirectUrl=https%3a%2f%2fraps.org&reload=timezone\">\r\n forgot your password?\r\n </a>\r\n </div>\r\n\r\n <div style={{ clear: \"both\" }}> </div>\r\n\r\n <hr />\r\n </div>\r\n\r\n <div className=\"hide\">\r\n <table className=\"EditingFormTable\">\r\n <tbody>\r\n <tr>\r\n <td className=\"FieldLabel\"> </td>\r\n <td className=\"EditingFormValueCell\">\r\n <input\r\n className=\"FormButton hide btn btn-primary\"\r\n id=\"btnOK\"\r\n name=\"btnOK\"\r\n type=\"submit\"\r\n value=\"Login\"\r\n />\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n <input type=\"submit\" value=\"Login\" className=\"btn btn-default btn-responsive\" id=\"btnSnippetLogin\" />\r\n </form>\r\n </div>\r\n {showModal && <LoginHelpModal setShowModal={handleModalEvent} />}\r\n </div>\r\n <script>\r\n </script>\r\n </>\r\n );\r\n};\r\n\r\nexport default ErrorLoginComponent;\r\n","import Slider from \"react-slick\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { CalloutsType } from \"../../../models/home/callouts.model\";\r\nimport { RootState, useAppDispatch } from \"../../../redux/store\";\r\nimport { retrieveCallouts } from \"../../../redux/slice/home/callouts.slice\";\r\n\r\nconst CalloutComponent =() => {\r\n const { data: calloutsData } = useSelector((state: RootState) => state.callouts);\r\n const [calloutItems, setCalloutItems] = useState([] as CalloutsType[]);\r\n const [width, setWidth] = useState(window.innerWidth) \r\n\r\n const xlarge = width > 1310\r\n const large = width > 1024 && width < 1309\r\n const medium = width > 641 && width < 1023\r\n //const small = width <= 640\r\n\r\n let settings = {\r\n dots: true,\r\n infinite: false,\r\n speed: 500,\r\n arrows: false,\r\n slidesToShow: xlarge ? 5 : large ? 3 : medium ? 2 : 1,\r\n slidesToScroll: xlarge ? 5 : large ? 3 : medium ? 2 : 1,\r\n autoplay: false,\r\n autoplaySpeed: 3000,\r\n centerMode: false,\r\n initialSlide: 0\r\n }\r\n\r\n const dispatch = useAppDispatch();\r\n\r\n useEffect(() => {\r\n dispatch(retrieveCallouts());\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (calloutsData.callOutItems) {\r\n setCalloutItems(calloutsData.callOutItems);\r\n }\r\n }, [calloutsData]);\r\n\r\n useEffect(() => {\r\n const handleResize = () => {\r\n setWidth(window.innerWidth);\r\n };\r\n\r\n window.addEventListener('resize', handleResize);\r\n\r\n return () => {\r\n window.removeEventListener('resize', handleResize);\r\n };\r\n }, [ ])\r\n\r\n\r\n if (calloutItems === undefined) return <></>;\r\n\r\n return (\r\n <>\r\n\r\n <div className=\"page-section brand-texture\" id=\"\">\r\n <div className=\"container\">\r\n <div className=\"card-callouts\">\r\n <ul className=\"blue-circle-dots callouts-slick\">\r\n {\r\n calloutItems && <Slider {...settings}>\r\n {calloutItems.map((item, index) => {\r\n return <SimpleCallout key={index} data={item} />;\r\n })}\r\n </Slider>\r\n }\r\n </ul>\r\n <p> </p>\r\n <div className=\"container\" style={{ textAlign: \"center\", marginTop: 15 }}>\r\n <Link to=\"/\" style={{ fontWeight: \"bold\", fontSize: 18 }}>\r\n Visit the RAPS Homepage{\" \"}<i className=\"fa-solid fa-arrow-right\"></i>\r\n </Link>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </>\r\n );\r\n};\r\n\r\nexport default CalloutComponent;\r\n\r\nconst SimpleCallout = (props: { data: CalloutsType }) => {\r\n const { data } = props;\r\n return (<li>\r\n <div className=\"card card-icon\" style={{ height: 228.688 }}>\r\n <a href={data.calloutLink}>\r\n <img alt={data.calloutTitle} src={data.calloutImage} />\r\n </a>\r\n <div className=\"caption\">\r\n <h3>\r\n <a href={data.calloutLink}>{data.calloutTitle} </a>\r\n </h3>\r\n <p>{data.calloutText}</p>\r\n <a className=\"btn btn-default\" href={data.calloutLink} role=\"button\">\r\n {data.calloutButtonText}\r\n </a>\r\n </div>\r\n </div>\r\n </li>\r\n );\r\n};\r\n","import { useRef } from \"react\";\r\nimport { useNavigate } from \"react-router-dom\";\r\n\r\nconst SearchComponent = () => {\r\n const navigate = useNavigate();\r\n const headerSearch = useRef<HTMLInputElement>(null);\r\n const searchButtonHandler = () => {\r\n navigate(`/search?searchtext=${headerSearch.current?.value}`);\r\n }\r\n\r\n const searchKeyDownButtonHandler = (\r\n event: React.KeyboardEvent<HTMLInputElement>\r\n ) => {\r\n if (event.key === \"Enter\") {\r\n navigate(`/search?searchtext=${headerSearch.current?.value}`);\r\n }\r\n };\r\n return (\r\n <>\r\n <div className=\"container\">\r\n <div id=\"pnlSearch\">\r\n <div className=\"search-box\">\r\n <label htmlFor=\"txtKeyword\" id=\"lblSearch\" style={{ display: \"none\" }}>Search for:</label>\r\n <input type=\"hidden\" name=\"txtKeyword_exWatermark_ClientState\" id=\"txtKeyword_exWatermark_ClientState\" />\r\n <input name=\"txtKeyword\" type=\"text\" placeholder=\"Search...\" maxLength={1000} id=\"txtKeyword\" className=\"search-box-input form-control\" ref={headerSearch} onKeyDown={searchKeyDownButtonHandler} />\r\n <button className=\"search-box-submit\" onClick={searchButtonHandler} >\r\n <i className=\"fa-solid fa-magnifying-glass\"></i>\r\n </button>\r\n <input type=\"submit\" name=\"btnSearch\" id=\"btnSearch\" className=\"visually-hidden btn\" />\r\n <div className=\"col-xs-12 text-right\">\r\n <div id=\"pnlPredictiveResultsHolder\" className=\"predictiveSearchHolder\">\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </>);\r\n};\r\n\r\n\r\nexport default SearchComponent;","import { useEffect, useMemo } from \"react\";\r\nimport HomeGoogleAds from \"../../components/advertisement/home-google-ads\";\r\nimport LoadHomeGoogleAds from \"../../components/advertisement/load-home-google-ads\";\r\nimport Header404Component from \"./component/404-header.component\";\r\nimport NotFoundLogin from \"./component/404-login.component\";\r\nimport NotFoundSimpleCallout from \"./component/404-simple-callout.component\";\r\nimport NotFoundSmartSearchBox from \"./component/404-smart-search.component\";\r\nimport { Helmet } from \"react-helmet-async\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { retrievePageMenu } from \"../../redux/slice/page-menu.slice\";\r\nimport { RootState, useAppDispatch } from \"../../redux/store\";\r\n\r\nconst ErrorBoundary = () => {\r\n const cachedGoogleAds = useMemo(() => <HomeGoogleAds />, []);\r\n const cachedUseDfpSlot = useMemo(() => <LoadHomeGoogleAds />, []);\r\n const { RapsEuropeData } = useSelector((state: RootState) => state.rapsEurope);\r\n const path = \"%2F404\";\r\n\r\n const dispatch = useAppDispatch();\r\n \r\n useEffect(() => {\r\n dispatch(retrievePageMenu(path));\r\n }, [dispatch]);\r\n\r\n return (\r\n <>\r\n <Helmet>\r\n <title>{RapsEuropeData[0]?.result[0].menuItemName}</title>\r\n </Helmet>\r\n <div className=\"brand-texture\">\r\n <Header404Component isProhibited={false} />\r\n <div className=\"container\">\r\n <div className=\"row\">\r\n <div className=\"col-md-6 offset-md-3\">\r\n <NotFoundLogin isLoginPage={false} />\r\n </div>\r\n </div>\r\n </div>\r\n <NotFoundSmartSearchBox />\r\n <NotFoundSimpleCallout />\r\n </div>\r\n <p> </p>\r\n {cachedGoogleAds}\r\n {cachedUseDfpSlot}\r\n <p> </p>\r\n </>\r\n );\r\n};\r\n\r\nexport default ErrorBoundary;\r\n","import { useEffect, useState } from \"react\";\r\nimport { Helmet } from \"react-helmet-async\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport { retrievePageMenu } from \"../../../redux/slice/page-menu.slice\";\r\nimport { useAppDispatch, RootState } from \"../../../redux/store\";\r\nimport { useDynamicScripts } from \"../../../hooks/useDynamicScript\";\r\nimport LoadingComp from \"../../../components/re-usable/loading/loading\";\r\nimport PageNotFound from \"../../errors/page-not-found\";\r\nimport ContainerLayout from \"../../../layouts/two-columns/container-layout\";\r\n\r\nconst TopicalPages = () => {\r\n const param = useParams();\r\n const path = `%2Fresources%2Ftopic%2F${param.pageName}`;\r\n\r\n const dispatch = useAppDispatch();\r\n const { RapsEuropeData, RapsEuropeLoading: pageMenuLoading, pageNotFound } = useSelector((state: RootState) => state.rapsEurope);\r\n\r\n const [isPublished, setIsPublished] = useState(false);\r\n const [isPageNotFound, setIsPageNotFound] = useState(!pageMenuLoading && pageNotFound);\r\n\r\n const [scriptHtmlString, setScriptHtmlString] = useState(\"\");\r\n\r\n useEffect(() => {\r\n dispatch(retrievePageMenu(path));\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (!pageMenuLoading && pageNotFound) {\r\n setIsPageNotFound(true);\r\n }\r\n else if (RapsEuropeData[0]) {\r\n setIsPublished(true);\r\n }\r\n }, [RapsEuropeData]);\r\n\r\n useEffect(() => {\r\n if (isPublished) {\r\n if (RapsEuropeData[0].result[0]?.javaScriptField)\r\n setScriptHtmlString(RapsEuropeData[0].result[0]?.javaScriptField);\r\n }\r\n if (typeof window !== \"undefined\" && window.runGlobalScripts) {\r\n window.runGlobalScripts();\r\n }\r\n }, [isPublished])\r\n\r\n useDynamicScripts({ htmlScriptString: scriptHtmlString });\r\n\r\n if (isPageNotFound) return <PageNotFound />;\r\n if (!isPublished) return <LoadingComp />;\r\n\r\n return (\r\n <>\r\n <Helmet>\r\n <title>{RapsEuropeData[0]?.result[0]?.menuItemName}</title>\r\n </Helmet>\r\n <ContainerLayout breadcrumbPath={path} isBreadcrumbPath={false} showAds={true}>\r\n <div dangerouslySetInnerHTML={{ __html: RapsEuropeData[0]?.result[0]?.description }}></div>\r\n {/*<ContentListingComponent path={path} />*/}\r\n <div dangerouslySetInnerHTML={{ __html: RapsEuropeData[0]?.result[0]?.councilDescription }}></div>\r\n <div dangerouslySetInnerHTML={{ __html: RapsEuropeData[0]?.result[0]?.popupContent }}></div>\r\n </ContainerLayout>\r\n </>\r\n );\r\n};\r\n\r\nexport default TopicalPages;\r\n"],"names":["props","isProhibited","path","RapsEuropeData","useSelector","state","rapsEurope","description","setDescription","useState","dispatch","useAppDispatch","useEffect","retrievePageMenu","rapsResult","result","className","dangerouslySetInnerHTML","__html","setShowModal","role","tabIndex","onClick","e","stopPropagation","id","style","padding","background","maxHeight","type","isLoginPage","loginUser","useAuth","username","setUsername","password","setPassword","attemptedLoggedIn","setAttemptedLoggedIn","showErrorMessage","setShowErrorMessage","showModal","checkLogin","loggedIn","loginData","login","data","userInfo","location","useLocation","navigate","useNavigate","from","pathname","search","query","React","URLSearchParams","toLowerCase","isLoggedIn","request","staySignedIn","length","window","runGlobalScripts","loading","undefined","retrieveUserInfo","returnUrl","get","replace","href","event","preventDefault","onSubmit","currentTarget","elements","txtText","value","txtPassword","htmlFor","maxLength","name","placeholder","clear","calloutsData","callouts","calloutItems","setCalloutItems","width","setWidth","innerWidth","xlarge","large","medium","settings","dots","infinite","speed","arrows","slidesToShow","slidesToScroll","autoplay","autoplaySpeed","centerMode","initialSlide","retrieveCallouts","callOutItems","handleResize","addEventListener","removeEventListener","map","item","index","SimpleCallout","textAlign","marginTop","to","fontWeight","fontSize","height","calloutLink","alt","calloutTitle","src","calloutImage","calloutText","calloutButtonText","headerSearch","useRef","display","ref","onKeyDown","key","current","cachedGoogleAds","useMemo","cachedUseDfpSlot","menuItemName","useParams","pageName","RapsEuropeLoading","pageMenuLoading","pageNotFound","isPublished","setIsPublished","isPageNotFound","setIsPageNotFound","scriptHtmlString","setScriptHtmlString","javaScriptField","useDynamicScripts","htmlScriptString","breadcrumbPath","isBreadcrumbPath","showAds","councilDescription","popupContent"],"sourceRoot":""}