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A,EAAUW,KACR,gBAAC,EAAAgB,QAAD,CAASC,GAAE,uBAAkB5B,EAAUW,OACxC,gBAAC,IAAD,CAAKkB,MAAM,OAAO/B,IAAKE,EAAUD,GAAIJ,UAAW+B,EAAMI,cACpD9B,EAAU+B,OAGX,gBAAC,IAAD,CAAKF,MAAM,OAAO/B,IAAKE,EAAUD,GAAIJ,UAAW+B,EAAMI,cACtD9B,EAAU+B,MAId,C","sources":["webpack://northern-tuna-portal/./ClientApp/components/Pages/Specialties/Specialties.tsx","webpack://northern-tuna-portal/./ClientApp/components/Pages/Specialties/SpecialtyTag.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport Pagination from 'antd/lib/pagination';\n\nimport { ItemsProvider, useItemsProviderContext, SortingDirection } from '@common/react/components/Core/ItemsProvider/ItemsProvider';\nimport ServerPageProvider from '@common/react/components/Core/ServerPageProvider/ServerPageProvider';\nimport { getSearchParamsFromUrl } from '@common/react/utils/FIltersParamsFromUrl/FiltersParamsFromUrl';\nimport { BreadCrumbs } from '@common/react/components/UI/BreadCrumbs/BreadCrumbs';\n\nimport { Specialty } from '@commonTuna/react/objects/Specialty';\nimport { LogoLoaderPage } from '@commonTuna/react/components/UI/LogoLoader/LogoLoader';\n\nimport '@app/scss/pages/catalog.scss';\nimport SpecialtyTag from '@app/components/Pages/Specialties/SpecialtyTag';\n\nconst SpecialtyList: React.FC = () => {\n\tconst { state: { items, pagination }, actions: { handleChange } } = useItemsProviderContext();\n\n\tconst onPaginationChange = (current, pageSize) => {\n\t\thandleChange({ page: current, pageSize });\n\t};\n\n\treturn (
\n\t\t\n\t\t{pagination?.total > items.length &&
\n\t\t\t\n\t\t
}\n\t
);\n};\n\nconst Specialties: React.FC = () => {\n\tconst location = useLocation();\n\n\tconst params = getSearchParamsFromUrl(location);\n\n\treturn <>\n\t\t}\n\t\t\tinner={(page) => (\n\t\t\t\t\n\t\t\t\t\ttype=\"specialty\"\n\t\t\t\t\titems={page?.items?.list}\n\t\t\t\t\tloadRequest=\"specialtyPortalPageViewListRemote\"\n\t\t\t\t\tfilters={{ column: [{ caption: 'name', direction: SortingDirection.Ascending }] }}\n\t\t\t\t\tpagination={{\n\t\t\t\t\t\tpageSize: params.count || 200, current: 1, total: page?.items?.count,\n\t\t\t\t\t}}\n\t\t\t\t\twithHandleUrl\n\t\t\t\t>\n\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

Specialties

\n\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\t/>\n\t;\n};\n\nexport default Specialties;\n","import * as React from 'react';\nimport { NavLink } from 'react-router-dom';\n\nimport Tag from 'antd/lib/tag';\n\nimport { Specialty } from '@commonTuna/react/objects/Specialty';\n\ninterface Props {\n\tspecialty: Specialty;\n\ttagClassName?: string;\n}\n\nconst SpecialtyTag: React.FC = (props) => {\n\tconst specialty = props.specialty;\n\n\treturn (<>\n\t\t{specialty.path\n\t\t\t? \n\t\t\t\t\n\t\t\t\t\t{specialty.name}\n\t\t\t\t\n\t\t\t\n\t\t\t: \n\t\t\t\t{specialty.name}\n\t\t\t\n\t\t}\n\t);\n};\n\nexport default SpecialtyTag;\n"],"names":["SpecialtyList","useItemsProviderContext","state","items","pagination","handleChange","actions","className","map","item","key","id","specialty","total","length","onChange","current","pageSize","page","location","useLocation","params","getSearchParamsFromUrl","path","defaultTitle","loader","inner","type","list","loadRequest","filters","column","caption","direction","SortingDirection","count","withHandleUrl","title","props","NavLink","to","color","tagClassName","name"],"sourceRoot":""}