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AAA,GAAAA,aAClDxB,WAAY,CACXS,SAAUG,EAAOa,OAAS,IAAKjB,QAAS,EAAGH,MAAOK,SAAF,UAAEA,EAAMX,aAAR,aAAE,EAAa0B,OAEhEC,eAAa,GAEb,uBAAKjC,UAAU,aACd,gBAAC,IAAD,CACCkC,MAAM,cAEP,uBAAKlC,UAAU,oDACd,sBAAIA,UAAU,aAAd,cAED,gBAACG,EAAD,OAlBI,IAwBT,C","sources":["webpack://northern-tuna-portal/./ClientApp/components/Pages/Region/RegionTag.tsx","webpack://northern-tuna-portal/./ClientApp/components/Pages/Region/Regions.tsx"],"sourcesContent":["import * as React from 'react';\nimport { NavLink } from 'react-router-dom';\n\nimport Tag from 'antd/lib/tag';\n\nimport { Region } from '@commonTuna/react/objects/Region';\n\ninterface Props {\n\tlocation: Region;\n\ttagClassName?: string;\n\tstyle?: any;\n}\n\nconst RegionTag: React.FC = (props) => {\n\tconst location = props.location;\n\n\treturn (<>\n\t\t{location.path\n\t\t\t? \n\t\t\t\t\n\t\t\t\t\t{location.name}\n\t\t\t\t\n\t\t\t\n\t\t\t: \n\t\t\t\t{location.name}\n\t\t\t\n\t\t}\n\t);\n};\n\nexport default RegionTag;\n","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 { LogoLoaderPage } from '@commonTuna/react/components/UI/LogoLoader/LogoLoader';\nimport { Region } from '@commonTuna/react/objects/Region';\n\nimport '@app/scss/pages/catalog.scss';\nimport RegionTag from '@app/components/Pages/Region/RegionTag';\n\nconst RegionList: 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\t{items.map((item) =>
  • \n\t\t\t\t\n\t\t\t
  • )}\n\t\t
\n\t\t{pagination?.total > items.length &&
\n\t\t\t\n\t\t
}\n\t
);\n};\n\nconst Regions: 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=\"region\"\n\t\t\t\t\titems={page?.items?.list}\n\t\t\t\t\tloadRequest=\"regionList\"\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

Locations

\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 Regions;\n"],"names":["props","location","path","NavLink","to","color","key","id","style","className","tagClassName","name","RegionList","useItemsProviderContext","state","items","pagination","handleChange","actions","map","item","total","length","onChange","current","pageSize","page","useLocation","params","getSearchParamsFromUrl","defaultTitle","loader","inner","type","list","loadRequest","filters","column","caption","direction","SortingDirection","count","withHandleUrl","title"],"sourceRoot":""}