{"version":3,"file":"static/js/3714.872705ee.chunk.js","mappings":"yNAQA,MA2CA,EA3C8B,KAAO,IAAD,EAClC,MAAMA,EAAO,uCAEPC,GAAWC,EAAAA,EAAAA,OACX,eAAEC,IAAmBC,EAAAA,EAAAA,KAAaC,GAAqBA,EAAMC,cAC5DC,EAAYC,IAAiBC,EAAAA,EAAAA,UAAS,eAE7CC,EAAAA,EAAAA,YAAU,KACRT,GAASU,EAAAA,EAAAA,IAAkB,MAAKX,KAAQ,GACvC,CAACC,KAEJS,EAAAA,EAAAA,YAAU,KACJP,EAAe,IACbA,EAAe,GAAGS,OAAO,IAAMT,EAAe,GAAGS,OAAO,GAAGC,aAC7DL,EAAcL,EAAe,GAAGS,OAAO,GAAGC,YAE9C,GACC,CAACV,IAGJ,MAAOW,EAAaC,IAAkBN,EAAAA,EAAAA,WAAS,GAQ/C,OANAC,EAAAA,EAAAA,YAAU,KAAO,IAAD,OACoBM,KAAb,QAAjB,EAAAb,EAAe,UAAE,aAAjB,EAAmBS,SACrBG,GAAe,EACjB,GACC,CAACZ,IAECW,GAIH,iCACE,SAAC,KAAM,WACL,2BAAyB,QAAzB,EAAQX,EAAe,UAAE,aAAjB,EAAmBS,OAAO,GAAGK,kBAEvC,SAAC,IAAe,CAACC,eAAgBlB,EAAMmB,kBAAkB,EAAMC,SAAS,EAAK,UAC3E,gBAAKC,wBAAyB,CAAEC,OAAQf,WATrB,SAAC,IAAW,GAWhC,C","sources":["pages/resources/scope-of-practice-survey.tsx"],"sourcesContent":["import { useSelector } from \"react-redux\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { Helmet } from \"react-helmet-async\";\r\nimport { RootState, useAppDispatch } from \"../../redux/store\";\r\nimport { retrievePageMenu } from \"../../redux/slice/page-menu.slice\";\r\nimport TwoColumnLayOut from \"../../layouts/two-columns/two-column-layout\";\r\nimport LoadingComp from \"../../components/re-usable/loading/loading\";\r\n\r\nconst ScopeOfPracticeSurvey = () => {\r\n const path = \"Resources%2FScope-of-Practice-Survey\";\r\n\r\n const dispatch = useAppDispatch();\r\n const { RapsEuropeData } = useSelector((state: RootState) => state.rapsEurope);\r\n const [htmlString, setHtmlString] = useState(\"Loading...\");\r\n\r\n useEffect(() => {\r\n dispatch(retrievePageMenu(`%2F${path}`));\r\n }, [dispatch]);\r\n\r\n useEffect(() => {\r\n if (RapsEuropeData[0]) {\r\n if (RapsEuropeData[0].result[0] && RapsEuropeData[0].result[0].description) {\r\n setHtmlString(RapsEuropeData[0].result[0].description);\r\n }\r\n }\r\n }, [RapsEuropeData]);\r\n\r\n // Page published check\r\n const [isPublished, setIsPublished] = useState(false);\r\n\r\n useEffect(() => {\r\n if (RapsEuropeData[0]?.result !== undefined) {\r\n setIsPublished(true);\r\n }\r\n }, [RapsEuropeData]);\r\n\r\n if (!isPublished) return <LoadingComp />;\r\n // End Page published check\r\n\r\n return (\r\n <>\r\n <Helmet>\r\n <title>{RapsEuropeData[0]?.result[0].menuItemName}</title>\r\n </Helmet>\r\n <TwoColumnLayOut breadcrumbPath={path} isBreadcrumbpath={true} showAds={true}>\r\n <div dangerouslySetInnerHTML={{ __html: htmlString }}></div>\r\n </TwoColumnLayOut>\r\n </>\r\n );\r\n};\r\n\r\nexport default ScopeOfPracticeSurvey;\r\n"],"names":["path","dispatch","useAppDispatch","RapsEuropeData","useSelector","state","rapsEurope","htmlString","setHtmlString","useState","useEffect","retrievePageMenu","result","description","isPublished","setIsPublished","undefined","menuItemName","breadcrumbPath","isBreadcrumbpath","showAds","dangerouslySetInnerHTML","__html"],"sourceRoot":""}