{"version":3,"file":"index-9d4f24ad.js","sources":["../../../FE_DEV/src/containers/ResourceArticle/index.tsx"],"sourcesContent":["import { ILoginState } from '@/models/ILoginState'\nimport Heading from '../Heading'\nimport { Container } from '@/components/Container'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faCalendar } from '@fortawesome/free-regular-svg-icons'\nimport { faLocationDot } from '@fortawesome/free-solid-svg-icons'\n\ninterface IResourceArticle {\n\theading: string\n\tid: number\n\tintroduction: string\n\tupdatedDate: string\n dateOfEvent: string\n\taddress?: string,\n timeOfEvent: string\n\tcategoryTypes: string[]\n\tauthor: string\n}\n\ninterface IProps {\n\tresourceArticle: IResourceArticle\n\tloginState: ILoginState,\n\teventDetail?: true\n}\nexport default function ResourceArticle({\n\tresourceArticle,\n\tloginState,\n\teventDetail,\n}: IProps) {\n\tconst { id, heading, updatedDate, dateOfEvent, address, timeOfEvent, author } = resourceArticle\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\n\t\t\t\t\t{\n\t\t\t\t\t\tauthor && (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t

{author}

\n\t\t\t\t\t\t\t\t

{ author && updatedDate &&

}

\n\t\t\t\t\t\t\t\t

{updatedDate}

\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\n\t\t\t\t\t{/* {\n updatedDate && !eventDetail &&\n

\n\t\t\t\t\t\t\tLast Updated: {updatedDate}\n\t\t\t\t\t\t

\n }\n {\n dateOfEvent && !eventDetail &&\n

\n Event Date: {new Date(dateOfEvent).toJSON().slice(0,10).replace(/-/g,'/')}\n\t\t\t\t\t\t

\n }\n {\n dateOfEvent && timeOfEvent && !eventDetail &&\n

\n Event Time: {timeOfEvent}\n\t\t\t\t\t\t

\n } */}\n\n\t\t\t\t\t{\n\t\t\t\t\t\teventDetail && (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t{new Date(dateOfEvent).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t{timeOfEvent}\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
|
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{address}\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\n\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{resourceArticle &&\n\t\t\t\t\t\tresourceArticle.categoryTypes.map((categoryType, i) => {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{categoryType}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})}\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t)\n}\n"],"names":["ResourceArticle","resourceArticle","loginState","eventDetail","id","heading","updatedDate","dateOfEvent","address","timeOfEvent","author","Container","jsxs","jsx","Heading","FontAwesomeIcon","faCalendar","faLocationDot","categoryType","i"],"mappings":"shBAwBA,SAAwBA,EAAgB,CACvC,gBAAAC,EACA,WAAAC,EACA,YAAAC,CACD,EAAW,CACJ,KAAA,CAAE,GAAAC,EAAI,QAAAC,EAAS,YAAAC,EAAa,YAAAC,EAAa,QAAAC,EAAS,YAAAC,EAAa,OAAAC,CAAW,EAAAT,EAEhF,SACEU,EAAU,CAAA,QAAO,GACjB,SAACC,EAAA,MAAA,CAAI,UAAU,wBACd,SAAA,CAACA,EA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