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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,sJCrGqBG,EAAqB,WASvC,OAAAC,EAAAA,EAAAA,IARD,SAAAD,EAAYE,IAAMC,EAAAA,EAAAA,GAAA,KAAAH,GAChB,IAAMI,EAAOC,KAMb,OALAD,EAAKF,KAAOA,EACZE,EAAKE,UAAYJ,EAAKK,QAAQD,WAAaE,KAAKC,MAAMP,EAAKK,QAAQD,WACnEF,EAAKM,OAAUC,SAASC,MAAQD,SAASC,KAAKL,QAAQM,UAAa,KACnET,EAAKU,SAAWZ,EAAKK,QAAQO,UAAYN,KAAKC,MAAMP,EAAKK,QAAQO,UACjEV,EAAKW,OACEX,CACT,GAAC,EAAAY,IAAA,OAAAC,MAED,WACE,IAAMb,EAAOC,KACba,EAAAA,uBAAgCd,EAAKF,MACrCgB,EAAAA,QAAgBxB,EAAAA,EAAAA,KAACyB,EAAAA,SAAwBC,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKhB,EAAKE,WAAS,IAAEI,OAAQN,EAAKM,UAAYN,EAAKF,KAC9F,IAAC,CAfuC,E","sources":["shared/corporate/components/employee-profile/employee-profile-component.jsx","shared/corporate/components/employee-profile/employee-profile-module.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    <section className={`employee-profile-content ${SelectionFactoryHelper.getFromSelectionFactory(employeePortraitPosition)} w--wider`}>\n      {employeePortrait ? (\n        <img\n          // eslint-disable-next-line\n          epi-property-name=\"EmployeePortrait\"\n          className=\"employee-image\"\n          src={employeePortrait}\n          alt={employeePortraitAltText || employeeName}\n        ></img>\n      ) : undefined}\n      <h2\n        // eslint-disable-next-line\n        epi-property-name=\"EmployeeName\"\n        className=\"employee-name\"\n      >\n        {employeeName || \"\"}\n      </h2>\n      {employeeTitles ? (\n        <div className=\"titles-rich-text-wrapper\">\n          <div\n            // eslint-disable-next-line\n            epi-property-name=\"EmployeeTitles\"\n            className=\"rich-text\"\n            // eslint-disable-next-line\n            epi-data-property-name=\"\"\n          >\n            {ReactHtmlParser(employeeTitles)}\n          </div>\n        </div>\n      ) : undefined}\n      {employeeStory ? (\n        <div className=\"story-rich-text-wrapper\">\n          <div\n            // eslint-disable-next-line\n            epi-property-name=\"EmployeeStory\"\n            className=\"rich-text\"\n          >\n            {ReactHtmlParser(employeeStory)}\n          </div>\n        </div>\n      ) : undefined}\n      {employeeStoryCutoff ? (\n        windowWidth >= 768 ? (\n          <div className=\"story-cutoff-rich-text-wrapper\">\n            <div\n              // eslint-disable-next-line\n              epi-property-name=\"EmployeeStoryCutoff\"\n              className=\"rich-text\"\n            >\n              {ReactHtmlParser(employeeStoryCutoff)}\n            </div>\n          </div>\n        ) : (\n          <div className=\"mobile-cutoff-section\">\n            {!showCutoff ? (\n              <button\n                // eslint-disable-next-line\n                epi-property-name=\"ReadMoreButtonText\"\n                className=\"readmore\"\n                onClick={() => setShowCutoff(!showCutoff)}\n              >\n                {readMoreButtonText}\n              </button>\n            ) : undefined}\n            {showCutoff ? (\n              <div className=\"story-cutoff-rich-text-wrapper\">\n                <div className=\"rich-text\">{ReactHtmlParser(employeeStoryCutoff)}</div>\n                {showCutoff ? (\n                  <button\n                    // eslint-disable-next-line\n                    epi-property-name=\"ReadLessButtonText\"\n                    className=\"readless\"\n                    onClick={() => setShowCutoff(!showCutoff)}\n                  >\n                    {readLessButtonText}\n                  </button>\n                ) : undefined}\n              </div>\n            ) : undefined}\n          </div>\n        )\n      ) : undefined}\n    </section>\n  )\n}\n\nexport default EmployeeProfileComponent\n","import React from \"react\"\nimport ReactDOM from \"react-dom\"\nimport EmployeeProfileComponent from \"./employee-profile-component\"\n\nexport default class EmployeeProfileModule {\n  constructor(elem) {\n    const self = this\n    self.elem = elem\n    self.modelJson = elem.dataset.modelJson && JSON.parse(elem.dataset.modelJson)\n    self.locale = (document.body && document.body.dataset.language) || \"da\"\n    self.tabIcons = elem.dataset.tabIcons && JSON.parse(elem.dataset.tabIcons)\n    self.init()\n    return self\n  }\n\n  init() {\n    const self = this\n    ReactDOM.unmountComponentAtNode(self.elem)\n    ReactDOM.render(<EmployeeProfileComponent {...self.modelJson} locale={self.locale} />, self.elem)\n  }\n}\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","EmployeeProfileModule","_createClass","elem","_classCallCheck","self","this","modelJson","dataset","JSON","parse","locale","document","body","language","tabIcons","init","key","value","ReactDOM","EmployeeProfileComponent","_objectSpread"],"sourceRoot":""}