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ASnC,EAAQiE,CAAI,EAC1B,OAAOA,EACJ4B,QAAQ,GACRC,WAAW,GACXC,IAAI,GACJC,OAAO,CAAC,OAAQ,KAChBA,OAAO,CAAC,YAAa,IACrBA,OAAO,CAAC,SAAU,KAClBA,OAAO,CAAC,MAAO,IACfA,OAAO,CAAC,MAAO,GACpB,kECVAC,CAAAA,EAAAC,CAAA,CAAe,CAAC,sbAA6G","sources":["webpack://_N_E/?cb2a","webpack://_N_E/./components/Common/EventCard.js","webpack://_N_E/./components/Events/CalendarSection.js","webpack://_N_E/./lib/EventAPIAllData.js","webpack://_N_E/./app/events/page.js","webpack://_N_E/./components/Common/HeadingText.js","webpack://_N_E/./lib/BlogAPIAllData.js","webpack://_N_E/./utils/slugify.js","webpack://_N_E/./public/assets/images/thumbnail1.png","webpack://_N_E/"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src4243223962/src/EbWebsiteProd/app/events/page.js\")","import { Box, Card, Typography } from \"@mui/material\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport React from \"react\";\nimport styles from \"../../app/page.module.css\";\nimport thumbnail from \"../../public/assets/images/thumbnail1.png\";\nimport { slugify } from \"@/utils/slugify\";\n\nconst EventCard = ({ eventData }) => {\n return (\n \n {eventData?.eventTitle &&\n \n{console.log(eventData)}\n \n \n\n {/* \n \n \n 12-08-2023\n \n */}\n \n {eventData?.eventTitle}\n \n \n {eventData?.metaDescription?.slice(0, 50) }{eventData?.metaDescription?.length > 50 && \"...\"}\n \n \n Read More\n \n \n\n }\n \n \n );\n};\n\nexport default EventCard;\n","import { Box, Button, Typography } from \"@mui/material\";\nimport React, { useState } from \"react\";\nimport { DateRangePicker } from \"react-date-range\";\nimport { addDays, set } from \"date-fns\";\nimport \"react-date-range/dist/styles.css\"; // main style file\nimport \"react-date-range/dist/theme/default.css\"; // theme css file\nimport moment from \"moment\";\n\nconst CalendarSection = () => {\n const [displayDate, setDisplayDate] = useState();\n const [showCalender, setShowCalender] = useState(false);\n\n const [open, setOpen] = useState(false);\n const handleOpen = () => setOpen(true);\n const handleClose = () => setOpen(false);\n\n const [state, setState] = useState({\n selection1: {\n startDate: addDays(new Date(), 0),\n endDate: addDays(new Date(), 0),\n key: \"selection1\",\n },\n });\n\n function handleCalendarChange(item) {\n setState({\n ...state,\n selection1: {\n startDate: item?.selection1?.startDate,\n endDate: item?.selection1?.endDate,\n key: \"selection1\",\n },\n });\n }\n\n const handleCalendarApply = async () => {\n setShowCalender(false);\n let startDate = moment(state?.selection1?.startDate).format(\n \"YYYY-MM-DDT00:00:00[Z]\"\n );\n let endDate = moment(state?.selection1?.endDate).format(\n \"YYYY-MM-DDT23:59:59[Z]\"\n );\n };\n\n return (\n \n \n setShowCalender((prevState) => !prevState)}\n >\n {moment(state?.selection1?.startDate).format(\"Do MMM\") +\n \" - \" +\n moment(state?.selection1?.endDate).format(\"Do MMM\")}\n \n {showCalender && (\n \n {\n handleCalendarChange(item);\n }}\n // moveRangeOnFirstSelection={false}\n // retainEndDateOnFirstSelection={false}\n maxDate={new Date()}\n ranges={[state.selection1]}\n rangeColors={[\"#DB2BBB\"]}\n />\n \n \n Apply\n \n {\n setShowCalender(false);\n }}\n >\n Cancel\n \n \n \n )}\n \n \n );\n};\n\nexport default CalendarSection;\n","//\"use server\";\nconst API = process.env.NEXT_PUBLIC_API_URL;\nimport getHeaders from \"./APIHeaders\";\n\nexport async function getAllEventData(data, hostname) {\n console.log(\"events here\")\n const headers = await getHeaders(hostname);\n const page = data ? data : 0;\n\n const res = await fetch(API + `/events?page=${page}&size=10`, {\n headers,\n })\n .then((response) => response.json())\n .then((data) => {\n return data;\n });\n\n return res;\n}\n","\"use client\";\nimport EventCard from \"@/components/Common/EventCard\";\nimport { Heading2, Subtitle1 } from \"@/components/Common/HeadingText\";\nimport CalendarSection from \"@/components/Events/CalendarSection\";\nimport Navbar from \"@/components/Navbar\";\nimport { theme } from \"@/components/theme\";\nimport { getAllBlogData } from \"@/lib/BlogAPIAllData\";\nimport { getAllEventData } from \"@/lib/EventAPIAllData\";\nimport {\n Box,\n Grid,\n Pagination,\n ThemeProvider,\n Typography,\n} from \"@mui/material\";\nimport React, { useEffect, useState } from \"react\";\n\nconst Events = () => {\n const [eventData, setEventData] = useState();\n const [pageSelect, setPageSelect] = useState(0);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n const fetchData = async () => {\n console.log(\"events start\")\n const data = await getAllEventData(pageSelect, window.location.hostname);\n console.log(\"events data\",data)\n setEventData(data);\n setLoading(false);\n };\n\n fetchData();\n }, []);\n\n const handleNextPage = async (e, value) => {\n const pageData = value - 1;\n const data = await getAllEventData(pageData, window.location.hostname);\n setEventData(data);\n };\n\n return (\n
\n \n \n \n \n Explore\n \n \n \n {loading ? (\n \n \n \n ) : eventData?.response?.events.length > 0 ? (\n \n \n {/* */}\n \n {eventData?.response?.events?.map((event, index) => {\n return (\n \n \n \n );\n })}\n \n \n \n \n ) : (\n \n {!loading && }\n \n )}\n \n \n
\n );\n};\n\nexport default Events;\n","import { Typography } from \"@mui/material\";\nimport React from \"react\";\n\nexport function HeroText1({ text }) {\n return (\n \n {text}\n \n );\n}\n\nexport function HeroText15({ text }) {\n return (\n \n {text}\n \n );\n}\n\nexport function Heading2({ text }) {\n return (\n \n {text}\n \n );\n}\n\nexport function Heading3({ text }) {\n return (\n \n {text}\n \n );\n}\n\nexport function Heading4({ text }) {\n return (\n \n {text}\n \n );\n}\n\nexport function Subtitle1({ text }) {\n return (\n \n {text}\n \n );\n}\n\nexport function Subtitle2({ text, colorCustom }) {\n return (\n \n {text}\n \n );\n}\n","// \"use server\";\nconst API = process.env.NEXT_PUBLIC_API_URL;\nimport getHeaders from \"./APIHeaders\";\n\nexport async function getAllBlogData(data, hostname) {\n const headers = await getHeaders(hostname);\n\n const page = data ? data : 0;\n\n const res = await fetch(API + `/blog?page=${page}&size=10`, {\n headers,\n })\n .then((response) => response.json())\n .then((data) => {\n return data;\n });\n\n return res;\n}\n\nexport async function getAllBlog(hostname) {\n const headers = await getHeaders(hostname);\n\n const res = await fetch(API + `/blog?page=0`, {\n headers,\n })\n .then((response) => response.json())\n .then((data) => {\n return data;\n });\n\n return res;\n}\n","export function slugify(text) {\n return text\n .toString()\n .toLowerCase()\n .trim()\n .replace(/\\s+/g, \"-\") // Replace spaces with -\n .replace(/[^\\w\\-]+/g, \"\") // Remove all non-word chars\n .replace(/\\-\\-+/g, \"-\") // Replace multiple - with single -\n .replace(/^-+/, \"\") // Trim - from start of text\n .replace(/-+$/, \"\"); // Trim - from end of text\n}\n","export default {\"src\":\"/_next/static/media/thumbnail1.eb106310.png\",\"height\":1200,\"width\":1200,\"blurDataURL\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAu0lEQVR42mOAAwVFeQZkYK2jwc8ryMDA4O3mMnvmlGnT+vv72uNiIhjaq5uioqMZmNkMvVxzCzI3rFu2Yf3ylSsWMtTUN6jbWflq6kVUJTHkh/qHRKxes2T6tAkMmnr65nx8zzQZzrtLxsQWVMqmhLjZc6qoMTCISYUyMOzx89w5d+HpronfPR3vuRgw8AszyEtKMzAwJJdUbt17dOGSFU+a61aqcjNIyTIAgSAHBwMDgwQDAwMQyKtCaABkETR8kWjLDwAAAABJRU5ErkJggg==\",\"blurWidth\":8,\"blurHeight\":8};"],"names":["Promise","resolve","then","__webpack_require__","bind","Common_EventCard","eventData","param","jsx_runtime","jsx","Box","eventTitle","Link","href","concat","slugify","eventId","jsxs","Card","sx","boxShadow","p","console","log","position","Image","className","styles","src","thumbnailImage","thumbnail","style","width","height","objectFit","alt","Typography","variant","fontWeight","fontSize","lineHeight","py","metaDescription","slice","length","display","alignItems","color","justifyContent","getAllEventData","data","hostname","headers","getHeaders","fetch","API","response","json","page","setEventData","useState","pageSelect","setPageSelect","loading","setLoading","useEffect","fetchData","window","location","handleNextPage","e","value","main","ThemeProvider","theme","Navbar","m","lg","xs","Heading2","text","mt","Subtitle1","events","pt","Grid","container","spacing","map","event","index","item","md","EventCard","Pagination","count","totalPages","currentPage","onChange","shape","backgroundColor","HeroText15","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","textShadow","my","process","getAllBlogData","getAllBlog","toString","toLowerCase","trim","replace","__webpack_exports__","Z"],"sourceRoot":""}