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AGpI,eAAeyB,IAElB,OAAOvC,EADK,GAA4C/D,MAAA,CAAzC4E,kCAAyC,+CAG5D,CACO,IAAM2B,EAAyB,MAAOC,GAElCzC,EADK,GAA4EyC,MAAAA,CAAzE5B,kCAAyC,kCAA4C5E,MAAA,CAAZwG,IAGrF,eAAelH,EAAsBD,CAAkB,EAE1D,OAAO0E,EADK,GAAwF1E,MAAAA,CAArFuF,kCAAyC,8CAAuE5E,MAAA,CAA3BX,EAAW,cAAa,IAEhI,CAMO,IAAMoH,EAAkB,MAAOC,EAAoBC,KACtD,IAAMlD,EAAW,MAAMC,MACnB,GAA0EgD,MAAAA,CAAvE9B,kCAAyC,gCAAyC5E,MAAA,CAAX0G,GAC1E,CAAEC,OAAAA,CAAO,GAGb,MAAOpH,CADM,MAAMkE,EAASG,IAAI,IACpBrE,IAAI,qBC5IpBqH,EAAAC,OAAA,EAAkB,OAAS,wGAA6G,gFCAxID,EAAAC,OAAA,EAAkB,OAAS,6EAAgF","sources":["webpack://_N_E/?91a7","webpack://_N_E/./src/components/Prarthana/Festival/Festivals.tsx","webpack://_N_E/./src/services/app.services.ts","webpack://_N_E/./node_modules/next/font/google/target.css?d50f","webpack://_N_E/./node_modules/next/font/google/target.css"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/font/google/target.css?{\\\"path\\\":\\\"src/globalConstants.ts\\\",\\\"import\\\":\\\"Inter\\\",\\\"arguments\\\":[{\\\"subsets\\\":[\\\"latin\\\"],\\\"variable\\\":\\\"--font-inter\\\"}],\\\"variableName\\\":\\\"inter\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/font/google/target.css?{\\\"path\\\":\\\"src/globalConstants.ts\\\",\\\"import\\\":\\\"Noto_Sans\\\",\\\"arguments\\\":[{\\\"display\\\":\\\"swap\\\",\\\"style\\\":\\\"normal\\\",\\\"variable\\\":\\\"--font-sans\\\",\\\"subsets\\\":[\\\"latin\\\"]}],\\\"variableName\\\":\\\"noto_sans\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/font/google/target.css?{\\\"path\\\":\\\"src/globalConstants.ts\\\",\\\"import\\\":\\\"Noto_Serif\\\",\\\"arguments\\\":[{\\\"display\\\":\\\"swap\\\",\\\"style\\\":\\\"normal\\\",\\\"variable\\\":\\\"--font-serif\\\",\\\"subsets\\\":[\\\"latin\\\"]}],\\\"variableName\\\":\\\"noto_serif\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/font/google/target.css?{\\\"path\\\":\\\"src/globalConstants.ts\\\",\\\"import\\\":\\\"Ubuntu\\\",\\\"arguments\\\":[{\\\"display\\\":\\\"swap\\\",\\\"style\\\":\\\"normal\\\",\\\"variable\\\":\\\"--font-ubuntu\\\",\\\"subsets\\\":[\\\"latin\\\"],\\\"weight\\\":[\\\"400\\\",\\\"500\\\",\\\"700\\\"]}],\\\"variableName\\\":\\\"ubuntu\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/font/google/target.css?{\\\"path\\\":\\\"src/globalConstants.ts\\\",\\\"import\\\":\\\"Roboto\\\",\\\"arguments\\\":[{\\\"display\\\":\\\"swap\\\",\\\"style\\\":\\\"normal\\\",\\\"variable\\\":\\\"--font-robot\\\",\\\"subsets\\\":[\\\"latin\\\"],\\\"weight\\\":\\\"400\\\"}],\\\"variableName\\\":\\\"roboto\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/font/google/target.css?{\\\"path\\\":\\\"src/globalConstants.ts\\\",\\\"import\\\":\\\"Great_Vibes\\\",\\\"arguments\\\":[{\\\"display\\\":\\\"swap\\\",\\\"style\\\":\\\"normal\\\",\\\"subsets\\\":[\\\"latin\\\"],\\\"variable\\\":\\\"--font-good-vibes\\\",\\\"weight\\\":\\\"400\\\"}],\\\"variableName\\\":\\\"great_vibes\\\"}\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src152476376/src/dharmayana-website/src/components/Prarthana/Festival/Festivals.tsx\");\n","'use client'\nimport BreadCrumb from '@/components/BreadCrumb';\nimport { getFestivalPrarthanas } from '@/services/app.services'\nimport React, { useEffect, useState } from 'react'\nimport Image from 'next/image';\nimport { PrarthanaFestival } from '@/globalTypes';\nimport { noto_sans, noto_serif } from '@/globalConstants';\nimport { Pagination, Skeleton } from '@mui/material';\nimport { usePathname } from 'next/navigation';\nimport Link from 'next/link';\nimport ArrowForwardIcon from '@mui/icons-material/ArrowForward';\nconst BASE_CLASS = \"parathana\"\n\nconst Festivals = () => {\n const [festivals, setFestivals] = useState([]);\n const [paginationNumber, setPaginationNumber] = useState(1);\n const [totalFestivals, setTotalFestivals] = useState(0);\n const [enableNextButton, setEnableNextButton] = useState(false);\n const pathname = usePathname();\n\n const updateFestivalListing = async (pageNumber: number) => {\n let festivals = (await getFestivalPrarthanas(pageNumber)).data;\n setFestivals(festivals.observances);\n setTotalFestivals(festivals.count)\n setEnableNextButton(festivals.next_page)\n\n }\n\n\n useEffect(() => {\n updateFestivalListing(paginationNumber);\n }, [paginationNumber])\n\n\n return (\n
\n
\n \n
\n
\n

Prarthana for Festival

\n

Select a festival to see prarthanas

\n
\n
\n {festivals.length ?\n festivals.map((festival: PrarthanaFestival, index: number) => {\n return (\n \n
{\n let prarthanaNumber = document.querySelectorAll('.parathana__number')[index];\n let arrow = document.querySelectorAll('.white-arrow')[index];\n prarthanaNumber.classList.remove('text-[#726E6E]');\n prarthanaNumber.classList.add('text-white');\n arrow.classList.remove('text-[#EE9322]');\n arrow.classList.add('text-white');\n }}\n onMouseLeave={() => {\n let prarthanaNumber = document.querySelectorAll('.parathana__number')[index];\n let arrow = document.querySelectorAll('.white-arrow')[index];\n prarthanaNumber.classList.remove('text-white');\n prarthanaNumber.classList.add('text-[#726E6E]');\n arrow.classList.add('text-[#EE9322]');\n arrow.classList.remove('text-white');\n\n }}\n >\n
\n \"festival_thumbnail\"\n
\n
\n
\n

{festival.name}

\n \n
\n

{festival.prarthana_count} Prarthanas

\n
\n
\n \n )\n })\n : [1, 2, 3, 4, 5, 6, 7, 8].map(() => {\n return
\n
\n \n
\n
\n
\n \n \"panchanga\n
\n \n
\n
\n })}\n
\n
, value: number) => {\n setPaginationNumber(value);\n window.scrollTo(0, 0)\n }} />\n
\n\n
\n
\n
\n )\n}\n\nexport default Festivals","import { revalidate,DEFAULT_LOCATION } from \"@/globalConstants\";\n\n// Header is specifcally for some apis which helps backend to differenciate between app and web to send tailored responses \nconst headers = new Headers({\n 'Source': 'web'\n});\n\n// common method to make GET API calls with revalidation\nconst fetchJSON = async (url: string) => {\n try {\n const response = await fetch(url, { cache: 'force-cache', headers, next: revalidate });\n return await response.json();\n } catch (error) {\n console.error(error);\n return null;\n }\n};\n\n// common method to make GET API calls with custom headers headers and no revalidation\nconst fetchWithConfig = async (url: string) => {\n try {\n const response = await fetch(url, { headers, cache: 'force-cache' });\n return await response.json();\n } catch (error) {\n console.error(error);\n return null;\n }\n};\n\nconst fetchPrarthanas = async (url: string) => {\n try {\n const response = await fetch(url, { method: 'GET' });\n\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n\n const data = await response.json();\n return data;\n } catch (error) {\n console.error('Error fetching prarthanas:', error);\n throw error;\n }\n\n}\n\n// This API fetches users IPV4 IP \nexport const getUserIPV4 = async () => {\n const response = await (await fetch('https://api.ipify.org?format=json', {\n cache: 'force-cache',\n next: revalidate,\n })).json();\n return response ? response.ip : null;\n};\n// this method fetchs users Location \nexport const getUserLocation = async (): Promise<{ lat: number; long: number; city: string }> => {\n try {\n return {lat: DEFAULT_LOCATION.lat, long: DEFAULT_LOCATION.long, city: DEFAULT_LOCATION.city};\n } catch (error) {\n console.error('Error fetching user location:', error);\n throw error;\n }\n};\nexport const getAllFestivals = async (timeStamp: number, location: { lat: number, long: number, city: string }) => {\n const { lat, long } = location;\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/observances?limit=30×tamp=${parseInt((timeStamp / 1000).toString())}&lat=${lat}&long=${long}`;\n return (await fetchWithConfig(url)).data.observances;\n};\nexport const getAFestival = async (timeStamp: number, location: { lat: number, long: number, city: string }) => {\n const { lat, long } = location;\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/observances?limit=1×tamp=${timeStamp}&lat=${lat}&long=${long}`;\n return (await (await fetch(url)).json()).data.observances;\n};\nexport const getAFestivalBySlug = async (festivalSlug: string) => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/observances/slug/${festivalSlug}`;\n return (await (await fetch(url)).json());\n};\nexport const getAllDeities = async () => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/prarthana/v1/deities`;\n return (await (await fetch(url, { cache: 'no-cache' })).json()).data;\n};\nexport const getDeityByID = async (deityId: string) => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/prarthana/v1/deities/${deityId}`;\n return (await (await fetch(url, { cache: 'force-cache' })).json()).data;\n};\nexport const getDeityDataByName = async (deityName: string) => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/prarthana/v1/deities/slug/${deityName}`;\n return (await (await fetch(url, { cache: 'no-store' })).json()).data;\n};\nexport const getRashiPredition = async (date: string, rashiName: string, language: string) => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/prediction/v4/weekly?dates=${date}&rashi=${rashiName}&language=${language}`;\n const data = (await (await fetch(url, { cache: 'no-store' })).json()).data\n return data;\n};\nexport const getPrarthanaById = async (prarthanaId: string) => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/prarthana/v1/prarthanas/${prarthanaId}`;\n return (await (await fetch(url, { cache: 'force-cache' })).json()).data;\n};\nexport const getAllArticles = async () => (await (await fetch(`https://strapi-api.stage.dharmayana.in:1337/api/articles?sort[0]=id`)).json()).data;\nexport const getArticle = async (articleName: string) => (await (await fetch(`https://strapi-api.stage.dharmayana.in:1337/api/articles?filters[heading][$contains]=${articleName}`)).json()).data[0];\nexport const getArticleById = async (uid: string) => (await (await fetch(`https://strapi-api.stage.dharmayana.in:1337/api/articles/${uid}`)).json()).data;\nexport const getAllShubhKaryas = async () => (await fetchWithConfig(`${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/app-config`)).data.shubh_karya_filters;\nexport const getAllLanguages = async () => (await fetchWithConfig(`${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/app-config`)).data.prediction_languages;\nexport const getDatesForShubhKarya = async (timeStamp: number, karya: string, location: { lat: number, long: number, city: string }) => {\n const { lat, long } = location\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/calendar?shubh_karya=${karya}&limit=30×tamp=${parseInt((timeStamp / 1000).toString())}&lat=${lat}&long=${long}`;\n return (await fetchWithConfig(url)).data.calendar_view;\n};\nexport const getPanchangaForToday = (timeStamp: number, location: { lat: number, long: number, city: string }) => {\n const { lat, long } = location;\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/panchanga/details?timestamp=${parseInt((timeStamp / 1000).toString())}&lat=${lat}&long=${long}`;\n return fetchWithConfig(url);\n};\nexport const getPrarthanasForToday = (timeStamp: number) => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/panchanga/prarthanas/today?timestamp=${parseInt((timeStamp / 1000).toString())}`;\n return fetchWithConfig(url);\n};\nexport async function getPurposePrarthanas() {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/prarthana/v1/prarthanas/collection/purpose`;\n return fetchPrarthanas(url);\n\n}\nexport const getPrarthanasByPurpose = async (purposeSlug: string) => {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/prarthana/v1/prarthanas/slug/${purposeSlug}`;\n return fetchPrarthanas(url);\n};\nexport async function getFestivalPrarthanas(pageNumber: number) {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/observances/linked-prarthanas?page_no=${pageNumber}&page_size=${12}`;\n return fetchPrarthanas(url);\n}\nexport async function getPrarthanasByFestival(purposeSlug: string) {\n const url = `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/observances/linked-prarthanas/${purposeSlug}`;\n return fetchPrarthanas(url);\n\n}\nexport const suggestLocation = async (searchText: string, signal?: AbortSignal) => {\n const response = await fetch(\n `${process.env.NEXT_PUBLIC_BACKEND_BASE_URL}/v1/location/search?keyword=${searchText}`,\n { signal } // Pass the abort signal to the fetch call\n );\n const data = await response.json();\n return data.data;\n};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"style\":{\"fontFamily\":\"'__Great_Vibes_3081c8', '__Great_Vibes_Fallback_3081c8'\",\"fontWeight\":400,\"fontStyle\":\"normal\"},\"className\":\"__className_3081c8\",\"variable\":\"__variable_3081c8\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"style\":{\"fontFamily\":\"'__Inter_d65c78', '__Inter_Fallback_d65c78'\",\"fontStyle\":\"normal\"},\"className\":\"__className_d65c78\",\"variable\":\"__variable_d65c78\"};"],"names":["Promise","resolve","then","__webpack_require__","t","bind","BASE_CLASS","__webpack_exports__","festivals","setFestivals","useState","paginationNumber","setPaginationNumber","totalFestivals","setTotalFestivals","enableNextButton","setEnableNextButton","pathname","usePathname","updateFestivalListing","pageNumber","getFestivalPrarthanas","data","observances","count","next_page","useEffect","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","concat","jsxs","BreadCrumb","h1","noto_serif","p","noto_sans","length","map","festival","index","Link","href","slug","onMouseEnter","prarthanaNumber","document","querySelectorAll","arrow","classList","remove","add","onMouseLeave","Image","src","background_image","alt","width","height","loading","priority","quality","placeholder","blurDataURL","name","ArrowForwardIcon","prarthana_count","Math","random","Skeleton","variant","animation","Pagination","hideNextButton","hidePrevButton","ceil","shape","page","onChange","event","value","window","scrollTo","headers","Headers","fetchWithConfig","url","response","fetch","cache","json","error","console","fetchPrarthanas","method","ok","status","getUserLocation","lat","DEFAULT_LOCATION","long","city","getAllFestivals","timeStamp","location","parseInt","process","toString","getAFestival","getAFestivalBySlug","festivalSlug","getAllDeities","getDeityDataByName","deityName","getRashiPredition","date","rashiName","language","getAllArticles","getArticle","articleName","getArticleById","uid","getAllShubhKaryas","shubh_karya_filters","getAllLanguages","prediction_languages","getDatesForShubhKarya","karya","calendar_view","getPanchangaForToday","getPrarthanasForToday","getPurposePrarthanas","getPrarthanasByPurpose","purposeSlug","suggestLocation","searchText","signal","module","exports"],"sourceRoot":""}