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C,EAAAA,cAAA,QAAMI,UAAU,aAAaW,IAAKsB,EAASrB,IAC1ChB,EAAAA,cAACsC,EAAAA,EAAY,CAACZ,KAAM5B,EAAQyC,MAAK,SAACC,GAAM,OAAKA,EAAOxB,KAAOqB,EAASA,SAASrB,EAAE,KAAKqB,EAASA,WACvF,KAETrC,EAAAA,cAAA,OAAKI,UAAU,sDACbO,EAAOsB,aAAetB,EAAOsB,YAAYvB,KAAI,SAACwB,EAA8BC,GAAa,OACzFnC,EAAAA,cAAA,OAAKI,UAAU,2BAA2BW,IAAKmB,EAAWlB,IACxDkB,EAAWA,WAAW,OAADpB,OAAQpB,KAAiByC,IAAUxB,EAAOsB,YAAYT,OAAS,EAAI,KAAO,IAC3F,IACNb,EAAOyB,WAAazB,EAAOyB,UAAU1B,KAAI,SAAC2B,EAA0BF,GAAa,OACjFnC,EAAAA,cAAA,QAAMI,UAAU,aAAaW,IAAKsB,EAASrB,IAC1ChB,EAAAA,cAACsC,EAAAA,EAAY,CAACZ,KAAM5B,EAAQyC,MAAK,SAACC,GAAM,OAAKA,EAAOxB,KAAOqB,EAASA,SAASrB,EAAE,KAAKqB,EAASA,WACvF,KAER1B,EAAO,cAADG,OAAepB,KACnBM,EAAAA,cAAA,OACFI,UAAU,yCACVqC,wBAAyB,CAAEC,OAAQ/B,EAAO,cAADG,OAAepB,QAK5D,IACK,GAET,C","sources":["webpack://BeautyBecomes/./ClientApp/components/Pages/DoctorList/DoctorList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { imageSize } from '@common/react/utils/utils';\nimport { BreadCrumbs } from '@common/react/components/UI/BreadCrumbs/BreadCrumbs';\nimport LinkWithLang from '@common/react/components/UI/lang/LinkWithLang/LinkWithLang';\nimport ServerPageProvider from '@common/react/components/UI/lang/SeverPageProviderWithLang/ServerpageProviderWithLang';\n\nimport { Doctor } from '@commonTuna/react/objects/BaseDoctor';\nimport { DoctorProfession } from '@commonTuna/react/objects/DoctorProfession';\nimport { DoctorLocation } from '@commonTuna/react/objects/DoctorLocation';\n\nimport { capitalizeFirstLetter } from '@app/components/Utils';\nimport ImageWithSkeleton from '@app/components/UI/ImageWithSkeleton/ImageWithSkeleton';\nimport LocationName from '@app/components/UI/LocationName/LocationName';\nimport { useReduxContext } from '@app/hooks/useReduxContext';\n\nimport '@app/scss/pages/doctorList.scss';\n\nconst Doctors: React.FC = () => {\n\tconst { t, i18n } = useTranslation();\n\n\tconst langString = capitalizeFirstLetter(i18n.language);\n\n\tconst title = t('seo.doctorsPage.title');\n\n\tconst { offices } = useReduxContext();\n\n\treturn \n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t

{title}

\n\t\t\t\t
\n\t\t\t\t{serverPage.items && serverPage.items.list.map((doctor: Doctor) => {\n\t\t\t\t\tif (!doctor[`name${langString}`] || doctor[`name${langString}`] === ' ') {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst path = doctor[`path${langString}`];\n\n\t\t\t\t\treturn
\n\t\t\t\t\t\t{path\n\t\t\t\t\t\t\t? \n\t\t\t\t\t\t\t\t\"Doctor\n\t\t\t\t\t\t\t\t{doctor.certificates?.length > 0\n\t\t\t\t\t\t\t\t&&
\n\t\t\t\t\t\t\t\t\t{doctor.certificates\n\t\t\t\t\t\t\t\t\t\t.filter((item) => item.certificate.image)\n\t\t\t\t\t\t\t\t\t\t.map((item, i) =>\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t:
\n\t\t\t\t\t\t\t\t\"Doctor\n\t\t\t\t\t\t\t\t{doctor.certificates?.length > 0\n\t\t\t\t\t\t\t\t&&
\n\t\t\t\t\t\t\t\t\t{doctor.certificates\n\t\t\t\t\t\t\t\t\t\t.filter((item) => item.certificate.image)\n\t\t\t\t\t\t\t\t\t\t.map((item, i) =>\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t
)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{path\n\t\t\t\t\t\t\t\t? \n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t{doctor[`name${langString}`]}\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t:

\n\t\t\t\t\t\t\t\t\t{doctor[`name${langString}`]}\n\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{doctor.professions && doctor.professions.map((profession: DoctorProfession, index: number) => (\n\t\t\t\t\t\t\t\t\tprofession.profession[`name${langString}`] + (index !== doctor.professions.length - 1 ? ', ' : '')\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{doctor.locations && doctor.locations.map((location: DoctorLocation, index: number) =>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t office.id === location.location.id) || location.location} />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{doctor.professions && doctor.professions.map((profession: DoctorProfession, index: number) =>\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{profession.profession[`name${langString}`] + (index !== doctor.professions.length - 1 ? ', ' : '')}\n\t\t\t\t\t\t\t\t\t
)}\n\t\t\t\t\t\t\t\t{doctor.locations && doctor.locations.map((location: DoctorLocation, index: number) =>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t office.id === location.location.id) || location.location} />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{doctor[`description${langString}`]\n\t\t\t\t\t\t\t&& \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t
\n\t\t\t\t\t
;\n\t\t\t\t})}\n\t\t\t
}\n\t/>;\n};\n\nexport default Doctors;\n"],"names":["_useTranslation","useTranslation","t","i18n","langString","capitalizeFirstLetter","language","title","offices","useReduxContext","React","ServerPageProvider","inner","serverPage","className","BreadCrumbs","links","path","items","list","map","doctor","_doctor$certificates","_doctor$certificates2","concat","key","id","LinkWithLang","to","src","originalAvatar","avatar","alt","certificates","length","filter","item","certificate","image","i","ImageWithSkeleton","name","imageSize","professions","profession","index","locations","location","LocationName","find","office","dangerouslySetInnerHTML","__html"],"sourceRoot":""}