{"version":3,"sources":["webpack:///./ClientApp/components/Pages/Resources/CommonDiseases/CatsAnxiety/CatsAnxiety.tsx","webpack:///./ClientApp/components/UI/CustomMarkup/CustomMarkup.tsx"],"names":["ResourcePage","match","React","resource","setResource","resources","setResources","resourceTopic","setResourceTopic","breadcrumbs","setBreadcrumbs","imageTopAlts","setImageTopAlts","imageAlts","setImageAlts","imageBottomAlts","setImageBottomAlts","window","scrollTo","document","querySelector","rest","get","params","topic","then","res","id","list","bc","path","name","url","imageTA","addisons","toLowerCase","includes","diabetes","hemangiosarcoma","ibd","imha","ivdd","larpar","tcc","flutd","lymphoma","coughing","dementia","diarrhea","regurgitation","restlessness","seizures","shaking","vomiting","imageBA","hyperadrenocorticism","osteoarthritis","osteosarcoma","hyperthyroidism","title","property","content","description","undefined","imageSrc","avatar","backPath","imageAlt","text","fullText","alt","length","subtitle","className","linkMoreLink","linkMoreCaption","blockClassName","images","src","link","CustomMarkup","index","split","arrayText","newText","setNewText","map","value","i","indexOf","substr","join","dangerouslySetInnerHTML","__html"],"mappings":"42CAqBMA,EAAwC,SAAC,GAAY,YAAXC,EAAW,EAAXA,MAAW,IAC1BC,aAD0B,GACnDC,EADmD,KACzCC,EADyC,SAExBF,aAFwB,GAEnDG,EAFmD,KAExCC,EAFwC,SAGhBJ,aAHgB,GAGnDK,EAHmD,KAGpCC,EAHoC,SAIpBN,aAJoB,GAInDO,EAJmD,KAItCC,EAJsC,SAKlBR,WAAe,IALG,GAKnDS,EALmD,KAKrCC,EALqC,SAMxBV,WAAe,IANS,GAMnDW,EANmD,KAMxCC,EANwC,SAOZZ,WAAe,IAPH,GAOnDa,EAPmD,KAOlCC,EAPkC,KAoJ1D,OA3IAd,aAAgB,WAAM,MACrBe,OAAOC,SAAS,EAAG,GACnB,UAAAC,SAASC,cAAc,qBAAvB,SAAsCF,SAAS,EAAG,KAChD,IAEHhB,aAAgB,WACfmB,IAAKC,IAAL,4BAA6CrB,EAAMsB,OAAOC,QACxDC,MAAK,SAAA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F,EAJ6D,KAIpDC,EAJoD,KAqBpE,OAfAnF,aAAgB,WACXoE,IACHF,EAAKc,MAAM,KAAKI,KAAI,SAACC,EAAOC,GACvBD,EAAME,QAAQ,QAAU,IAC3BR,EAAQO,MAINP,GAAS,IACZE,EAAUF,GAAV,UAAsBE,EAAUF,GAAOS,OAAO,EAAG,GAAjD,iBAA4DpB,EAA5D,aAAoEa,EAAUF,GAAOS,OAAO,EAAGP,EAAUF,GAAOV,SAChHc,EAAWF,EAAUQ,KAAK,UAG1B,CAACrB,IAEG,uBAAKsB,wBAAyB,CAACC,OAAQT,GAAoBhB,M,EArB7DY,E,qHAwBSA,EAAA,O,6FAxBTA,E","file":"chunks/CatsAnxiety.chunk.b896629aadea04a9eeff.js","sourcesContent":["import * as React from 'react';\r\nimport {Helmet} from 'react-helmet';\r\n\r\nimport {RouteComponentProps} from 'react-router';\r\n\r\nimport {List} from '@common/typescript/objects/List';\r\nimport {Loading} from '@common/react/components/UI/Loading/Loading';\r\n\r\nimport Musthead from '@app/components/UI/MustHead/Musthead';\r\nimport {CustomMenuItem} from '@app/objects/CustomMenuItem';\r\nimport {rest} from '@app/components/Api';\r\nimport {ResourceTopic} from '@app/objects/ResourceTopic';\r\nimport {Resource} from '@app/objects/Resource';\r\nimport CustomMarkup from '@app/components/UI/CustomMarkup/CustomMarkup';\r\nimport BlockRich from '@app/components/UI/LinkBlock/BlockRich';\r\nimport LinkMore from '@app/components/LocalCommon/LinkMore/LinkMore';\r\n\r\nimport '@app/scss/components/cardPhoto.scss';\r\n\r\ntype ResourceProps = RouteComponentProps<{ topic: string, resource: string }>;\r\n\r\nconst ResourcePage: React.FC = ({match}) => {\r\n\tconst [resource, setResource] = React.useState();\r\n\tconst [resources, setResources] = React.useState();\r\n\tconst [resourceTopic, setResourceTopic] = React.useState();\r\n\tconst [breadcrumbs, setBreadcrumbs] = React.useState();\r\n\tconst [imageTopAlts, setImageTopAlts] = React.useState({});\r\n\tconst [imageAlts, setImageAlts] = React.useState({});\r\n\tconst [imageBottomAlts, setImageBottomAlts] = React.useState({});\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\t}, []);\r\n\r\n\tReact.useEffect(() => {\r\n\t\trest.get(`v1/resourceTopics/${match.params.topic}`)\r\n\t\t\t.then(res => setResourceTopic(res));\r\n\t}, []);\r\n\r\n\tReact.useEffect(() => {\r\n\t\tif (resourceTopic) {\r\n\t\t\trest.get(`v1/resourceTopics/${resourceTopic.id}/resources/${match.params.resource}`)\r\n\t\t\t\t.then(res => setResource(res));\r\n\t\t}\r\n\t}, [resourceTopic]);\r\n\r\n\tReact.useEffect(() => {\r\n\t\tif (resource) {\r\n\t\t\trest.get>(`v1/resources/${resource.id}/related`)\r\n\t\t\t\t.then(res => setResources(res.list));\r\n\t\t}\r\n\t}, [resource]);\r\n\r\n\tReact.useEffect(() => {\r\n\t\tif (resourceTopic && resource) {\r\n\t\t\tconst bc: CustomMenuItem[] = [\r\n\t\t\t\t{\r\n\t\t\t\t\tpath: '/resource-center',\r\n\t\t\t\t\tname: 'Resources',\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tpath: `/resource-center/${resourceTopic?.url}`,\r\n\t\t\t\t\tname: resourceTopic.name,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tpath: '',\r\n\t\t\t\t\tname: resource.name,\r\n\t\t\t\t},\r\n\t\t\t];\r\n\r\n\t\t\tsetBreadcrumbs(bc);\r\n\r\n\t\t\tconst imageTA = {\r\n\t\t\t\taddisons: 'Lethargic dog with Addison\\'s disease',\r\n\t\t\t\t'brain-tumors': resource.name.toLowerCase().includes('dogs') ? 'Dog with brain tumor resting on couch' : 'Cat with brain tumor',\r\n\t\t\t\t'cognitive-dysfunction': 'Cognitive Dysfunction dog with increased activity',\r\n\t\t\t\tdiabetes: resource.name.toLowerCase().includes('dogs') && 'Diabetic dog with increased appetite',\r\n\t\t\t\t'elbow-and-hip-dysplasia': 'Dog with hip dysplasia reluctant to get up',\r\n\t\t\t\themangiosarcoma: 'Decreased appetite in dog with hemangiosarcoma',\r\n\t\t\t\tibd: resource.name.toLowerCase().includes('dogs') ? 'IBD in Dogs' : 'IBD in Cats',\r\n\t\t\t\timha: 'IMHA in Dogs',\r\n\t\t\t\tivdd: 'IVDD in Dogs',\r\n\t\t\t\tlarpar: 'Excessive panting in dog with laryngeal paralysis',\r\n\t\t\t\t'non-cancerous-masses-and-tumors': resource.name.toLowerCase().includes('dogs') ? 'Lethargic dog with non-cancerous tumor' : 'Non-Cancerous Masses and Tumors in Cats',\r\n\t\t\t\ttcc: resource.name.toLowerCase().includes('dogs') ? 'TCC in Dogs' : 'TCC in Cats',\r\n\t\t\t\tflutd: 'FLUTD in Cats',\r\n\t\t\t\tlymphoma: resource.name.toLowerCase().includes('cats') && 'Lethargy in cat with lymphoma',\r\n\t\t\t\t'vestibular-syndrome': resource.url.includes('cats') && 'Vestibular Syndrome in Cats',\r\n\t\t\t\t'behavior-changes': 'Behavior Changes & Aggression in Cats',\r\n\t\t\t\t'breathing-problems': 'Breathing Problems in Dogs',\r\n\t\t\t\tcoughing: 'Coughing in Dogs',\r\n\t\t\t\t'decreased-appetite': 'Decreased Appetite in Dogs',\r\n\t\t\t\tdementia: 'Dementia in Dogs',\r\n\t\t\t\tdiarrhea: 'Diarrhea in Cats',\r\n\t\t\t\t'geriatric-veterinary-patients': 'Senior pet veterinary care',\r\n\t\t\t\t'lameness-limping': 'Lameness & Limping in Dogs ',\r\n\t\t\t\t'mobility-disorders': 'Mobility Disorders in Cats',\r\n\t\t\t\t'paralysis-or-paresis': 'Paralysis or Paresis in Dogs',\r\n\t\t\t\tregurgitation: 'Regurgitation in Cats ',\r\n\t\t\t\trestlessness: 'Restlessness in Cats',\r\n\t\t\t\tseizures: resource.name.toLowerCase().includes('dogs') ? 'Seizures in Dogs' : resource.name.toLowerCase().includes('cats') ? 'Seizures in Cats' : 'Seizures in Dogs',\r\n\t\t\t\tshaking: 'Shaking in Cats',\r\n\t\t\t\t'urinary-incontinence': 'Urinary Incontinence in Cats',\r\n\t\t\t\t'vision-problems-and-blindness': 'Vision Problems & Blindness in Dogs',\r\n\t\t\t\tvomiting: 'Vomiting in Dogs ',\r\n\t\t\t\t'weight-loss': 'Weight Loss in Dogs ',\r\n\t\t\t};\r\n\r\n\t\t\tsetImageTopAlts(imageTA);\r\n\r\n\t\t\tconst imageA = {\r\n\t\t\t\t'geriatric-veterinary-patients': {\r\n\t\t\t\t\t'urinary-incontinence': 'Pet urinary incontinence ',\r\n\t\t\t\t\t'behavior-changes': 'Senior cat',\r\n\t\t\t\t\t'vision-problems-and-blindness': 'Dog disease',\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\tsetImageAlts(imageA);\r\n\r\n\t\t\tconst imageBA = {\r\n\t\t\t\taddisons: 'Dog with decreased energy suffering from Addison\\'s disease',\r\n\t\t\t\t'chronic-kidney-disease': resource.name.toLowerCase().includes('dogs') ? 'Dog with incresed thirst' : 'Cat with incresed thirst',\r\n\t\t\t\t'cognitive-dysfunction': 'Disoriented dog suffering from Congnitive Dysfunction',\r\n\t\t\t\t'degenerative-myelopathy': 'Hind limb weakness in dog with Degenerative Myelopathy',\r\n\t\t\t\t'heart-disease': resource.name.toLowerCase().includes('dogs') ? 'Doberman with heart disease' : 'Cat with heart disease',\r\n\t\t\t\thyperadrenocorticism: 'Panting dog wtih Cushing\\'s disease',\r\n\t\t\t\tibd: resource.name.toLowerCase().includes('dogs') ? 'Inflammatory bowel disease (IBD) in dogs' : 'Inflammatory bowel disease (IBD) in cats',\r\n\t\t\t\timha: 'immune-mediated hemolytic anemia (IMHA) in dogs',\r\n\t\t\t\tlarpar: 'LARPAR in Dogs',\r\n\t\t\t\t'liver-disease': resource.name.toLowerCase().includes('dogs') ? 'Dog with liver disease looking out the window' : 'Cat with liver disease lying on couch',\r\n\t\t\t\t'lung-tumors': resource.name.toLowerCase().includes('dogs') ? 'Labored breathing in dog with lung tumor' : 'Lethargy in cat with lung tumor',\r\n\t\t\t\tlymphoma: resource.name.toLowerCase().includes('dogs') && 'Swollen face in dog with lymphoma',\r\n\t\t\t\t'mast-cell-tumors': resource.name.toLowerCase().includes('dogs') ? 'Distended abdomen in dog with mast cell tumors' : 'Cat with mast cell tumor (MCT)',\r\n\t\t\t\t'nasal-tumors': resource.name.toLowerCase().includes('dogs') ? 'Nasal discharge in dog with nasal tumor' : 'Cat suffering from nasal tumor',\r\n\t\t\t\t'oral-tumors': resource.name.toLowerCase().includes('dogs') ? 'Facial swelling in dog with oral tumor' : 'Facial swelling in cat with oral tumor',\r\n\t\t\t\tosteoarthritis: resource.name.toLowerCase().includes('dogs') ? 'Lameness in dog with osteoarthritis' : 'Irritability in cat with osteoarthritis',\r\n\t\t\t\tosteosarcoma: 'Leg swelling in dog with osteosarcoma',\r\n\t\t\t\tseizures: resource.name.toLowerCase().includes('dogs') ? 'Dog with seizure' : resource.name.toLowerCase().includes('cats') ? 'Cat fallen over having a seizure' : 'Seizures in Cats',\r\n\t\t\t\t'vestibular-syndrome': resource.name.toLowerCase().includes('dogs') ? 'Inability to stand up in dog with vestibular syndrome' : 'Inability to stand up in cat with vestibular syndrome',\r\n\t\t\t\t'brain-tumors': 'Brain Tumors in Cats',\r\n\t\t\t\tdiabetes: resource.name.toLowerCase().includes('dogs') ? 'Diabetes Mellitus in Dogs' : 'Diabetic cat with decreased activity',\r\n\t\t\t\t'hepatic-lipidosis': 'Fatty liver disease in cats',\r\n\t\t\t\thyperthyroidism: 'Weight loss in cat with hyperthyroidism',\r\n\t\t\t\t'non-cancerous-masses-and-tumors': resource.name.toLowerCase().includes('cats') && 'Lethargic cat with non-cancerous tumor',\r\n\t\t\t\ttcc: resource.name.toLowerCase().includes('cats') && 'Transitional Cell Carcinoma in Cats',\r\n\t\t\t\t'behavior-changes': 'Behavior Changes & Aggression in Dogs',\r\n\t\t\t\t'breathing-problems': 'Breathing Problems in Cats',\r\n\t\t\t\tcoughing: 'Coughing in Cats',\r\n\t\t\t\t'decreased-appetite': 'Decreased Appetite in Cats',\r\n\t\t\t\tdementia: 'Dementia in Cats',\r\n\t\t\t\tdiarrhea: 'Diarrhea in Dogs',\r\n\t\t\t\t'lameness-limping': 'Lameness & Limping in Cats',\r\n\t\t\t\t'mobility-disorders': 'Mobility Disorders in Dogs',\r\n\t\t\t\t'paralysis-or-paresis': 'Paralysis or Paresis in Cats',\r\n\t\t\t\tregurgitation: 'Regurgitation in Dogs',\r\n\t\t\t\trestlessness: 'Restlessness in Dogs',\r\n\t\t\t\tshaking: 'Shaking in Dogs',\r\n\t\t\t\t'urinary-incontinence': 'Urinary Incontinence in Dogs',\r\n\t\t\t\t'vision-problems-and-blindness': 'Vision Problems & Blindness in Cats',\r\n\t\t\t\tvomiting: 'Vomiting in Cats',\r\n\t\t\t\t'weight-loss': 'Weight Loss in Cats ',\r\n\t\t\t};\r\n\r\n\t\t\tsetImageBottomAlts(imageBA);\r\n\t\t}\r\n\t}, [resource, resourceTopic]);\r\n\r\n\tif (!resource) {\r\n\t\treturn
;\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t{resource && resource.title && \r\n\t\t\t\t{resource.title} | Lap of Love\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t{resource && breadcrumbs && (
\r\n\t\t\t\t\r\n\t\t\t
)}\r\n\t\t\t{resource &&\r\n\t\t\t}\r\n\t\t\t{resources && resources.length === 3 &&\r\n\t\t\t\r\n\t\t\t\t\tYou may also find these resources helpful\r\n\t\t\t\t}\r\n\t\t\t\ttext={}\r\n\t\t\t\tblockClassName=\"link-block-rich_modern\"\r\n\t\t\t\timages={[\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttitle:
\r\n\t\t\t\t\t\t\t{resources[0]?.topic?.name}\r\n\t\t\t\t\t\t\t

{resources[0].title}

\r\n\t\t\t\t\t\t
,\r\n\t\t\t\t\t\tsrc: resources[0].avatar,\r\n\t\t\t\t\t\tlink: `/resource-center/${(resources[0].topic || resourceTopic).url}/${resources[0].url}`,\r\n\t\t\t\t\t\talt: resource && imageAlts[resource.url] && imageAlts[resource.url][resources[0].url]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttitle:
\r\n\t\t\t\t\t\t\t{resources[1].topic?.name}\r\n\t\t\t\t\t\t\t

{resources[1].title}

\r\n\t\t\t\t\t\t
,\r\n\t\t\t\t\t\tsrc: resources[1].avatar,\r\n\t\t\t\t\t\tlink: `/resource-center/${(resources[1].topic || resourceTopic).url}/${resources[1].url}`,\r\n\t\t\t\t\t\talt: resource && imageAlts[resource.url] && imageAlts[resource.url][resources[1].url]\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttitle:
\r\n\t\t\t\t\t\t\t{resources[2].topic?.name}\r\n\t\t\t\t\t\t\t

{resources[2].title}

\r\n\t\t\t\t\t\t
,\r\n\t\t\t\t\t\tsrc: resources[2].avatar,\r\n\t\t\t\t\t\tlink: `/resource-center/${(resources[2].topic || resourceTopic).url}/${resources[2].url}`,\r\n\t\t\t\t\t\talt: resource && imageAlts[resource.url] && imageAlts[resource.url][resources[2].url]\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\nexport default ResourcePage;","import * as React from 'react';\r\n\r\nimport '@app/scss/components/customMarkup.scss';\r\n\r\ninterface CustomMarkupProps {\r\n\ttext: string;\r\n\talt?: object;\r\n}\r\n\r\nconst CustomMarkup: React.FC = ({ text, alt }) => {\r\n\tlet index = -1;\r\n\r\n\tconst [arrayText, setArrayText] = React.useState(text?.split('<'));\r\n\tconst [newText, setNewText] = React.useState('');\r\n\r\n\tReact.useEffect(() => {\r\n\t\tif (alt) {\r\n\t\t\ttext.split('<').map((value, i) => {\r\n\t\t\t\tif (value.indexOf('img') > -1) {\r\n\t\t\t\t\tindex = i;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tif (index > -1) {\r\n\t\t\t\tarrayText[index] = `${arrayText[index].substr(0, 3)} alt=\"${alt}\" ${arrayText[index].substr(4, arrayText[index].length)}`;\r\n\t\t\t\tsetNewText(arrayText.join('<'));\r\n\t\t\t}\r\n\t\t}\r\n\t}, [alt]);\r\n\r\n\treturn
;\r\n};\r\n\r\nexport default CustomMarkup;\r\n"],"sourceRoot":""}