{"version":3,"sources":["webpack:///./ClientApp/components/Pages/Resources/FamilyResources/FamilyResources.tsx","webpack:///./ClientApp/components/UI/MustHead/MustheadBadge.tsx","webpack:///./ClientApp/content/bulldog.jpg","webpack:///./ClientApp/components/UI/MobileSlideInMenu/MobileSlideInMenu.tsx","webpack:///./ClientApp/content/Resource-Center.jpg"],"names":["CatsAnxiety","loadable","loadableDelay","params","FRBlog","FRVideos","ResourceCenter","FRFaq","ResourcesPage","FamilyResources","props","match","history","useHistory","React","currentTopic","setCurrentTopic","topics","setTopics","currentIndex","setCurrentIndex","navCollapse","setNavCollapse","currentCategoryBlog","setCurrentCategoryBlog","categoriesBlog","setCategoriesBlog","topicsResource","setTopicsResource","categoriesFAQ","setCategoriesFAQ","currentCategoryFAQ","setCurrentCategoryFAQ","setCurrentCategorySimple","searchQuery","setSearchQuery","searchFieldValue","setSearchFieldValue","articleCount","setArticleCount","totalArticleCount","isLoading","setIsLoading","onSetCategory","category","url","id","name","onSetCategoryFaq","questions","onSetCategorySimple","CategoryHandlers","HowIKnow","Calendar","Blog","FAQ","Videos","Common","Newsletter","rest","get","then","res","list","current","location","pathname","split","slice","join","position","findIndex","el","ind","arr","topic","mql","window","matchMedia","listenerFunc","matches","listenerForBrowser","length","scrollTo","document","querySelector","forEach","item","replace","onSearchSubmit","value","path","title","readMorePath","readMoreTitle","imageSrc","avatar","require","imageAlt","className","onSetIssue","topicsInner","typeTopicsInner","onSubmit","withSubmit","searchFieldName","searchFieldPlaceHolder","exact","MustheadBadge","currentPage","linkMoreCaption","linkMoreLink","src","alt","module","exports","MobileSlideInMenu","typePage","isOpen","setIsOpen","searchActive","setSearchActive","activeTopic","setActiveTopic","useParams","useLocation","callMenu","values","initialValues","render","formikBag","placeholder","onChange","option","onSearch","buttonType","searchButton","allowClear","label","onClick","splice","map","word","charAt","toUpperCase","search","type","width","indexInner","key","to","activeClassName","index","additionalResources","resource","eventToLink","target","toLowerCase"],"mappings":"i5CA0BMA,EAAcC,YAAS,CAA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GL,kB,EAzMXqE,E,8RAgBUQ,YACEC,kB,UAyMHT,EAAA,O,6FA1NTA,E,iZCbNF,EAAOC,QAAU,IAA0B","file":"chunks/FamilyResources.chunk.b896629aadea04a9eeff.js","sourcesContent":["import * as React from 'react';\r\n\r\nimport {Route, useHistory} from 'react-router-dom';\r\n\r\nimport loadable from '@loadable/component';\r\n\r\nimport {List} from '@common/typescript/objects/List';\r\n\r\nimport {loadableDelay, params} from '@common/react/loadable/loadableSettings';\r\nimport {Loading} from '@common/react/components/UI/Loading/Loading';\r\n\r\nimport '@app/scss/components/blog.scss';\r\n\r\nimport {rest} from '@app/components/Api';\r\nimport {ResourceTopic} from '@app/objects/ResourceTopic';\r\nimport MustheadBadge from '@app/components/UI/MustHead/MustheadBadge';\r\nimport MustheadNaked from '@app/components/UI/MustHead/MustheadNaked';\r\nimport SidebarWithCaptions from '@app/components/UI/SidebarWithCaptions/SidebarWithCaptions';\r\nimport {ContentCategory} from '@app/objects/ContentCategory';\r\nimport {ContentCategories} from '@app/objects/ContentCategories';\r\nimport {ContentEntity, ContentTopicList} from '@app/objects/ContentTopic';\r\nimport {Issues} from '@app/objects/Questions';\r\nimport MobileMenuSlideInMenu from '@app/components/UI/MobileSlideInMenu/MobileSlideInMenu';\r\nimport Musthead from '@app/components/UI/MustHead/Musthead';\r\nimport listenerForBrowser from '@app/components/Pages/listenerForBrowser';\r\n\r\nconst CatsAnxiety = loadable(() =>\r\n\tloadableDelay(import(/* webpackChunkName: \"CatsAnxiety\" */ '@app/components/Pages/Resources/CommonDiseases/CatsAnxiety/CatsAnxiety')), params);\r\nconst FRBlog = loadable(() =>\r\n\tloadableDelay(import(/* webpackChunkName: \"FRBlog\" */ '@app/components/Pages/Resources/FamilyResources/FRBlog')), params);\r\nconst FRVideos = loadable(() =>\r\n\tloadableDelay(import(/* webpackChunkName: \"FRVideos\" */ '@app/components/Pages/Resources/FamilyResources/FRVideos')), params);\r\nconst ResourceCenter = loadable(() =>\r\n\tloadableDelay(import(/* webpackChunkName: \"ResourceCenter\" */ '@app/components/Pages/Resources/FamilyResources/ResourceCenter')), params);\r\nconst FRFaq = loadable(() =>\r\n\tloadableDelay(import(/* webpackChunkName: \"FRFaq\" */ '@app/components/Pages/Resources/FamilyResources/FRFaq')), params);\r\nconst ResourcesPage = loadable(() =>\r\n\tloadableDelay(import(/* webpackChunkName: \"ResourcesPage\" */ '@app/components/Pages/Resources/FamilyResources/ResourcesPage')), params);\r\n\r\nconst FamilyResources = (props) => {\r\n\tconst {match} = props;\r\n\tconst history = useHistory();\r\n\tconst [currentTopic, setCurrentTopic] = React.useState();\r\n\tconst [topics, setTopics] = React.useState();\r\n\tconst [currentIndex, setCurrentIndex] = React.useState(0);\r\n\tconst [navCollapse, setNavCollapse] = React.useState(false);\r\n\tconst [currentCategoryBlog, setCurrentCategoryBlog] = React.useState();\r\n\tconst [categoriesBlog, setCategoriesBlog] = React.useState();\r\n\tconst [topicsResource, setTopicsResource] = React.useState();\r\n\r\n\tconst [categoriesFAQ, setCategoriesFAQ] = React.useState([]);\r\n\tconst [currentCategoryFAQ, setCurrentCategoryFAQ] = React.useState();\r\n\tconst [currentCategorySimple, setCurrentCategorySimple] = React.useState();\r\n\tconst [searchQuery, setSearchQuery] = React.useState();\r\n\r\n\tconst [searchFieldValue, setSearchFieldValue] = React.useState('');\r\n\tconst initArticleCount = 10;\r\n\tconst [articleCount, setArticleCount] = React.useState(initArticleCount);\r\n\tconst [totalArticleCount, setArticleTotalCount] = React.useState(0);\r\n\r\n\tconst [isLoading, setIsLoading] = React.useState(false);\r\n\r\n\tconst onSetCategory = (category) => {\r\n\t\tif (category.url === 'blog') {\r\n\t\t\tsetCurrentCategoryBlog({\r\n\t\t\t\tid: 0,\r\n\t\t\t\tname: '',\r\n\t\t\t\ttopics: [],\r\n\t\t\t\turl: ''\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetCurrentCategoryBlog(category);\r\n\t\t}\r\n\r\n\t\tsetArticleCount(initArticleCount);\r\n\t};\r\n\tconst onSetCategoryFaq = (category) => {\r\n\t\tif (category.name === 'FAQ') {\r\n\t\t\tsetCurrentCategoryFAQ({\r\n\t\t\t\tname: '',\r\n\t\t\t\tquestions: []\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetCurrentCategoryFAQ(category);\r\n\t\t}\r\n\t};\r\n\r\n\tconst onSetCategorySimple = (category) => {\r\n\t\tsetCurrentCategorySimple(category.url);\r\n\t};\r\n\r\n\tconst CategoryHandlers = {\r\n\t\tHowIKnow: onSetCategorySimple,\r\n\t\tCalendar: onSetCategorySimple,\r\n\t\tBlog: onSetCategory,\r\n\t\tFAQ: onSetCategoryFaq,\r\n\t\tVideos: onSetCategory,\r\n\t\tCommon: onSetCategory,\r\n\t\tNewsletter: onSetCategory\r\n\t};\r\n\r\n\tconst imageAlts = {\r\n\t\t'common-diseases-in-cats': 'Common diseases in cats',\r\n\t\t'common-diseases-in-dogs': 'Common diseases in dogs',\r\n\t\t'symptom-management': 'Symptom management in pets'\r\n\t};\r\n\r\n\tReact.useEffect(() => {\r\n\t\tsetIsLoading(true);\r\n\r\n\t\trest.get>('v1/resourceTopics')\r\n\t\t\t.then((res) => {\r\n\t\t\t\tsetTopics(res.list);\r\n\t\t\t\tconst current = history.location.pathname.split('/').slice(2).join();\r\n\t\t\t\tconst position = res.list.findIndex((el, ind, arr) => el.url === current);\r\n\t\t\t\tsetCurrentIndex(position);\r\n\t\t\t});\r\n\r\n\t\trest.get(`v1/resourceTopics/${match.params.topic || ''}`)\r\n\t\t\t.then((res) => {\r\n\t\t\t\tsetCurrentTopic(res);\r\n\r\n\t\t\t\tsetIsLoading(false);\r\n\t\t\t});\r\n\r\n\t}, [match.params.topic]);\r\n\r\n\tReact.useEffect(() => {\r\n\r\n\t\tconst mql = window.matchMedia('screen and (max-width: 768px)');\r\n\r\n\t\tconst listenerFunc = () => {\r\n\t\t\tif (mql.matches) {\r\n\t\t\t\tsetNavCollapse(true);\r\n\t\t\t} else {\r\n\t\t\t\tsetNavCollapse(false);\r\n\t\t\t}\r\n\t\t};\r\n\t\tlistenerFunc();\r\n\t\tlistenerForBrowser(mql, listenerFunc);\r\n\r\n\t\tif (topics && topics.length > currentIndex) {\r\n\t\t\tsetCurrentTopic(topics[currentIndex]);\r\n\t\t}\r\n\t}, [currentIndex]);\r\n\r\n\tReact.useEffect(() => {\r\n\t\twindow.scrollTo(0, 0);\r\n\t\tdocument.querySelector('#react-app')?.scrollTo(0, 0);\r\n\r\n\t\trest.get>('v1/resourceTopics')\r\n\t\t\t.then(res => setTopicsResource(res.list));\r\n\r\n\t}, []);\r\n\r\n\t// меню -- категории в блоге\r\n\tReact.useEffect(() => {\r\n\t\trest.get('v2/contentTopics/blog')\r\n\t\t\t.then((res) => {\r\n\t\t\t\tsetCategoriesBlog(res.list);\r\n\t\t\t});\r\n\t}, []);\r\n\r\n\tReact.useEffect(() => {\r\n\t\t// @ts-ignore\r\n\t\tif (props.match.params.id && !(currentCategoryFAQ && currentCategoryFAQ.name)) {\r\n\t\t\tif (categoriesFAQ) {\r\n\t\t\t\tcategoriesFAQ.forEach((item) => {\r\n\t\t\t\t\t// @ts-ignore\r\n\t\t\t\t\tif (item.name.replace(/\\s+/g, '-') === props.match.params.id) {\r\n\t\t\t\t\t\tonSetCategoryFaq(item);\r\n\t\t\t\t\t\treturn false;\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\tReact.useEffect(() => {\r\n\t\trest.get>('v1/faqCategories/').then(res => setCategoriesFAQ(res.list));\r\n\t}, []);\r\n\r\n\tconst onSearchSubmit = (value) => {\r\n\t\tsetSearchQuery(value);\r\n\t\tsetSearchFieldValue(value);\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{isLoading && }\r\n\t\t\t{\r\n\t\t\t\tmatch.path === '/resource-center/:topic/:resource' ? null :\r\n\r\n\t\t\t\t\t!isLoading &&
\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmatch.path === '/resource-center/:topic' ?\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t: match.path === '/faq/:id?' || match.path === '/faq' ?\r\n\r\n\t\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\tmatch.path === '/resource-center' ?\r\n\t\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\t\tmatch.path === '/videos' ?\r\n\t\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\t\r\n\t\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\t\t\r\n\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
\r\n\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\r\n\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\r\n\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\r\n\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\r\n\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\r\n\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}\r\n\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\nexport default FamilyResources;","import * as React from 'react';\r\n\r\nimport {Link} from 'react-router-dom';\r\n\r\nimport LinkMore from '@app/components/LocalCommon/LinkMore/LinkMore';\r\n\r\nimport '@app/scss/components/mustheadBadge.scss';\r\n\r\ninterface MustheadBadgeProps {\r\n\ttitle: string;\r\n\tcurrentPage?: string;\r\n\treadMorePath: string;\r\n\treadMoreTitle?: string;\r\n\timageSrc: string;\r\n\timageAlt?: string;\r\n}\r\n\r\nconst arrowIcon = require('@app/images/arrow_circle.svg');\r\n\r\nconst MustheadBadge: React.FC = props => (\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{props.currentPage &&
{props.currentPage}
}\r\n\t\t\t\t\t

{props.title}

\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t{props.imageAlt\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n);\r\n\r\nexport default MustheadBadge;","module.exports = __webpack_public_path__ + \"ClientApp/content/bulldog.jpg\";","import * as React from 'react';\r\n\r\nimport {Link, NavLink, useParams, useLocation} from 'react-router-dom';\r\n\r\nimport {Form, Formik, FormikProps} from 'formik';\r\n\r\nimport search from '@images/search_white.svg';\r\n\r\nimport {additionalResources} from '@app/components/UI/SidebarWithCaptions/SidebarWithCaptions';\r\nimport {eventToLink} from '@app/components/LocalCommon/Utils/eventToLink';\r\n\r\nimport SearchFieldAuto from '@app/components/Forms/SearchField/SearchFieldAuto';\r\n\r\nconst MobileSlideInMenu = ({\r\n\ttopics,\r\n\tonSetIssue,\r\n\ttopicsInner = {},\r\n\ttypeTopicsInner = {},\r\n\ttypePage = '',\r\n\tonSubmit,\r\n\tsearchFieldValue,\r\n\tsetSearchFieldValue\r\n}) => {\r\n\tconst [isOpen, setIsOpen] = React.useState(false);\r\n\tconst [searchActive, setSearchActive] = React.useState(false);\r\n\tconst [currentIndex, setCurrentIndex] = React.useState(0);\r\n\tconst [searchValue, setSearchValue] = React.useState('');\r\n\tconst [activeTopic, setActiveTopic] = React.useState('');\r\n\r\n\tconst params = useParams();\r\n\tconst location = useLocation();\r\n\r\n\tconst callMenu = () => {\r\n\t\tsetIsOpen(!isOpen);\r\n\t\tsetSearchActive(false);\r\n\t};\r\n\r\n\tconst callSearch = () => {\r\n\t\tsetSearchActive(true);\r\n\t};\r\n\r\n\tconst showActiveItemName = () => {\r\n\t\tconst name = location.pathname\r\n\t\t\t.split('/')\r\n\t\t\t.splice(-1, 1)\r\n\t\t\t.join(' ')\r\n\t\t\t.split('-')\r\n\t\t\t.map(word => word.charAt(0).toUpperCase() + word.slice(1))\r\n\t\t\t.join(' ');\r\n\r\n\t\treturn name;\r\n\t};\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{\r\n\t\t\t\t!searchActive ?\r\n\t\t\t\t\t
\r\n\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:\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\tinitialValues={{searchQuery: ''}}\r\n\r\n\t\t\t\t\t\t\trender={(formikBag: FormikProps) => {\r\n\t\t\t\t\t\t\t\treturn(\r\n\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\t\t\tsetSearchFieldValue(value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t!value && onSubmit && onSubmit('') && setSearchFieldValue('');\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\tonSearch ={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsearchFieldValue ? onSubmit && onSubmit(searchFieldValue) :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSearchActive(false);\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\tbuttonType=\"submit\"\r\n\t\t\t\t\t\t\t\t\t\t\tsearchButton={true}\r\n\t\t\t\t\t\t\t\t\t\t\tallowClear={true}\r\n\t\t\t\t\t\t\t\t\t\t\tlabel={searchFieldValue}\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);\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}\r\n\r\n\t\t\t
\r\n\t\t\t{\r\n\t\t\t\ttopics &&\r\n\t\t\t\t<>\r\n\t\t\t\t\t
    \r\n\t\t\t\t\t\t{typePage === 'NEWS_PAGE' &&\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\t\t
    In the News
    \r\n\t\t\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\t
      \r\n\t\t\t\t\t\t\t\t\t{topics.map((item, indexInner) => (\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\t\t\tonSetIssue(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsOpen(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetActiveTopic(item.title);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{item.name}\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
    \r\n\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t{!typePage &&\r\n\t\t\t\t\t\t\t<>\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\t\t
    Resource Topics
    \r\n\t\t\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\t
      \r\n\t\t\t\t\t\t\t\t\t{topics.map((item, index) =>\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\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonSetIssue['Common'](item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsOpen(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetActiveTopic(item.title);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{item.name}\r\n\t\t\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
    \r\n\t\t\t\t\t\t\t
  • \r\n\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\t\t
    Additional Resources
    \r\n\t\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\t\t{additionalResources.map((resource, indexInner) => (\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\t\tresource.url !== 'quality-of-life-calendar.pdf' ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonSetIssue[resource.name](resource);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// resource.name !== 'Blog' && resource.name !== 'FAQ' ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsOpen(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetActiveTopic('');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teventToLink(resource.title ? resource.title : resource.name);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// : null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{resource.title ? resource.title : resource.name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t: {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonSetIssue[resource.name](resource);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsOpen(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teventToLink(resource.title ? resource.title : resource.name);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{resource.title ? resource.title : resource.name}\r\n\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t{typeTopicsInner && topicsInner && resource.url === typeTopicsInner &&\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\t\t{topicsInner[resource.name] ? topicsInner[resource.name].map((topic, indexInner) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
      • \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonSetIssue[resource.name](topic);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsOpen(false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{topic.name}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
      • \r\n\t\t\t\t\t\t\t\t\t\t\t\t)) : null}\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\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
    \r\n\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
\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default MobileSlideInMenu;","module.exports = __webpack_public_path__ + \"ClientApp/content/Resource-Center.jpg\";"],"sourceRoot":""}