\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tlet resultDate = date;\r\n\t\t\t\t\t\t\tif (date !== null) {\r\n\t\t\t\t\t\t\t\tresultDate = moment(date).utc().startOf('day').valueOf();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tonChange({ from: resultDate });\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\tminDateToday\r\n\t\t\t\t\t\tutc\r\n\t\t\t\t\t/>\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tonChange({ globalProcedureIds: !value?.length ? undefined : value });\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\tplaceholder=\"Procedures...\"\r\n\t\t\t\t\t\tloadOnFocus\r\n\t\t\t\t\t\tantdProps={{\r\n\t\t\t\t\t\t\tdefaultValue: (values?.globalProcedures || []) as any,\r\n\t\t\t\t\t\t\tclassName: '',\r\n\t\t\t\t\t\t\tmaxTagCount: 1,\r\n\t\t\t\t\t\t\tmaxTagTextLength: 15,\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\titems={values?.globalProcedures || [] as any}\r\n\t\t\t\t\t/>\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\ttype=\"locationList\"\r\n\t\t\t\t\t\tclassName=\"pull-left doctor-card-list-last-filter\"\r\n\t\t\t\t\t\trenderTitle={(item: Location) => getLocationName(item)}\r\n\t\t\t\t\t\tloadOnFocus\r\n\t\t\t\t\t\tonSelect={(value, option) => onChange({ locationId: +value })}\r\n\t\t\t\t\t\tonChange={(value = '') => {\r\n\t\t\t\t\t\t\t!value && onChange({ locationId: undefined });\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\trenderOption={(option) => {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tkey: option.id,\r\n\t\t\t\t\t\t\t\ttitle: `${option.company ? `${option.company.name} - ` : ''}${option.nameEn}`,\r\n\t\t\t\t\t\t\t\tvalue: `${option.company ? `${option.company.portalShortName || option.company.name} - ` : ''}${option.nameEn}`,\r\n\t\t\t\t\t\t\t\titem: option,\r\n\t\t\t\t\t\t\t\tlabel: <>\r\n\t\t\t\t\t\t\t\t\t{option.avatar\r\n\t\t\t\t\t\t\t\t\t\t&& \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t{getLocationName(option)}\r\n\t\t\t\t\t\t\t\t>,\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\tvalue={values.locationName || ''}\r\n\t\t\t\t\t\tantdProps={{ style: { width: '100%' }, placeholder: 'Clinic...' }}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\tconst params = {};\r\n\t\t\t\t\t\t\tObject.values(filtersForClear).forEach((key) => params[key] = undefined);\r\n\t\t\t\t\t\t\tonChange(params);\r\n\t\t\t\t\t\t\tsetValues({\r\n\t\t\t\t\t\t\t\t...values,\r\n\t\t\t\t\t\t\t\tspecialties: undefined,\r\n\t\t\t\t\t\t\t\tglobalPayerName: '',\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tsetKeys((prev) => ({\r\n\t\t\t\t\t\t\t\t...prev,\r\n\t\t\t\t\t\t\t\tspecialtyIds: Math.random(),\r\n\t\t\t\t\t\t\t\tglobalPayer: Math.random(),\r\n\t\t\t\t\t\t\t}));\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t\ttriggerNode={isMobile ? undefined : }\r\n\t\t\t\t\t\tgetChildrenList={(tooltipValues) => tooltipValues}\r\n\t\t\t\t\t\ttooltipValues={\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
}\r\n\t\t\t\t\t\tcustomNode={isMobile ? MobileFilters : undefined}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t{!loading && !items.length ?
No Doctors found
: <>\r\n\t\t\t\t{columns && !loading &&
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t{loadingTimes &&
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
}\r\n\t\t\t\t
}\r\n\t\t\t\t
\r\n\t\t\t\t\t{loading\r\n\t\t\t\t\t\t? \r\n\t\t\t\t\t\t: items.map((doctor: Doctor) => (\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t
\r\n\t\t\t\t{pagination?.total > items.length &&
\r\n\t\t\t\t\t
\r\n\t\t\t\t
}\r\n\t\t\t>}\r\n\t\t
\r\n\t);\r\n};\r\n\r\nconst Doctors: React.FC = () => {\r\n\tconst location = useLocation();\r\n\tconst params = getSearchParamsFromUrl(location);\r\n\tconst { user, searchState } = useSelector((state: ApplicationState) => ({ user: state.login.user, searchState: state.header }));\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t