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AgBpB,QAIrBW,EAAAA,EAAAA,MAAA,OAAKC,UAAU,wBAAuBG,SAAA,CAClCN,OASEU,GARFH,EAAAA,EAAAA,KAAA,UAEE,oBAAkB,qBAClBJ,UAAU,WACVS,QAAS,kBAAMX,GAAeD,EAAW,EAACM,SAEzCd,IAGJQ,GACCE,EAAAA,EAAAA,MAAA,OAAKC,UAAU,iCAAgCG,SAAA,EAC7CC,EAAAA,EAAAA,KAAA,OAAKJ,UAAU,YAAWG,UAAEK,EAAAA,EAAAA,IAAgBpB,KAC3CS,GACCO,EAAAA,EAAAA,KAAA,UAEE,oBAAkB,qBAClBJ,UAAU,WACVS,QAAS,kBAAMX,GAAeD,EAAW,EAACM,SAEzCb,SAEDiB,UAEJA,UAGNA,IAGV,C","sources":["shared/corporate/components/employee-profile/employee-profile-component.jsx"],"sourcesContent":["import React, { useState } from \"react\"\nimport ReactHtmlParser from \"react-html-parser\"\nimport * as SelectionFactoryHelper from \"../../../helpers/SelectionFactoryHelper\"\nimport useWindowWidth from \"../../../../hooks/useWindowWidth\"\n\nfunction EmployeeProfileComponent({\n employeePortrait,\n employeePortraitAltText,\n employeePortraitPosition,\n employeeName,\n employeeTitles,\n employeeStory,\n employeeStoryCutoff,\n readMoreButtonText,\n readLessButtonText,\n}) {\n const windowWidth = useWindowWidth()\n const [showCutoff, setShowCutoff] = useState(false)\n\n return (\n //wrapper around this component is called .js--employee-profile-module\n
\n {employeePortrait ? (\n \n ) : undefined}\n \n {employeeName || \"\"}\n \n {employeeTitles ? (\n
\n \n {ReactHtmlParser(employeeTitles)}\n
\n \n ) : undefined}\n {employeeStory ? (\n
\n \n {ReactHtmlParser(employeeStory)}\n
\n \n ) : undefined}\n {employeeStoryCutoff ? (\n windowWidth >= 768 ? (\n
\n \n {ReactHtmlParser(employeeStoryCutoff)}\n
\n \n ) : (\n
\n {!showCutoff ? (\n setShowCutoff(!showCutoff)}\n >\n {readMoreButtonText}\n \n ) : undefined}\n {showCutoff ? (\n
\n
{ReactHtmlParser(employeeStoryCutoff)}
\n {showCutoff ? (\n setShowCutoff(!showCutoff)}\n >\n {readLessButtonText}\n \n ) : undefined}\n
\n ) : undefined}\n
\n )\n ) : undefined}\n
\n )\n}\n\nexport default EmployeeProfileComponent\n"],"names":["_ref","employeePortrait","employeePortraitAltText","employeePortraitPosition","employeeName","employeeTitles","employeeStory","employeeStoryCutoff","readMoreButtonText","readLessButtonText","windowWidth","useWindowWidth","_useState","useState","_useState2","_slicedToArray","showCutoff","setShowCutoff","_jsxs","className","concat","SelectionFactoryHelper","children","_jsx","src","alt","undefined","ReactHtmlParser","onClick"],"sourceRoot":""}