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,MAAMf,EAAgBC,EAAAA,EAAMsB,IAAI,CAACsB,aAAa,EAE7CC,EAAuB,CAAC5B,EAAmBC,KACpD,GAAM,CAAEN,IAAAA,CAAG,CAAEE,KAAAA,CAAI,CAAE,CAAGI,EAEtB,OAAOnB,EADK,GAA8EoB,MAAAA,CAA3EC,kCAAyC,oCAAiFR,MAAAA,CAA/CO,SAAS,CAACF,EAAY,KAAMI,QAAQ,IAAI,SAAmBP,MAAAA,CAAZF,EAAI,UAAatD,MAAA,CAALwD,GAEzJ,EACagC,EAAwB,GAE1B/C,EADK,GAAuFoB,MAAAA,CAApFC,kCAAyC,6CAAmF9D,MAAA,CAAxC6D,SAAS,CAACF,EAAY,KAAMI,QAAQ,MAGpI,eAAe0B,IAElB,OAAOxC,EADK,GAA4CjD,MAAA,CAAzC8D,kCAAyC,+CAG5D,CACO,IAAM4B,EAAyB,MAAOC,GAElC1C,EADK,GAA4E0C,MAAAA,CAAzE7B,kCAAyC,kCAA4C9D,MAAA,CAAZ2F,IAGrF,eAAeC,EAAsBC,CAAkB,EAE1D,OAAO5C,EADK,GAAwF4C,MAAAA,CAArF/B,kCAAyC,8CAAuE9D,MAAA,CAA3B6F,EAAW,cAAa,IAEhI,CAMO,IAAMC,EAAkB,MAAOC,EAAoBC,KACtD,IAAMrD,EAAW,MAAMC,MACnB,GAA0EmD,MAAAA,CAAvEjC,kCAAyC,gCAAyC9D,MAAA,CAAX+F,GAC1E,CAAEC,OAAAA,CAAO,GAGb,MAAOhC,CADM,MAAMrB,EAASG,IAAI,IACpBkB,IAAI,qBC5IpBiC,EAAAC,OAAA,EAAkB,OAAS,wGAA6G,gFCAxID,EAAAC,OAAA,EAAkB,OAAS,6EAAgF","sources":["webpack://_N_E/?df3b","webpack://_N_E/./node_modules/next/dist/api/link.js","webpack://_N_E/./node_modules/next/dist/api/navigation.js","webpack://_N_E/./src/components/Deities/Deities.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/Deities/Deities.tsx\");\n","export { default } from \"../client/link\";\nexport * from \"../client/link\";\n\n//# sourceMappingURL=link.js.map","export * from \"../client/components/navigation\";\n\n//# sourceMappingURL=navigation.js.map","'use client'\nimport BreadCrumb from '@/components/BreadCrumb';\nimport { getAllDeities } from '@/services/app.services'\nimport React, { useEffect, useState } from 'react'\nimport Image from 'next/image';\nimport { Deity } from '@/globalTypes';\nimport { noto_sans, noto_serif } from '@/globalConstants';\nimport { 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 Deities = () => {\n const [deities, setDeities] = useState([]);\n const pathname = usePathname();\n useEffect(() => {\n\n (async () => {\n let deities = await getAllDeities();\n setDeities(deities);\n })()\n\n }, [])\n\n return (\n
\n
\n \n
\n
\n

Prarthana

\n

Select a deity to see prarthanas

\n
\n
\n {deities.length ?\n deities.map((deity: Deity, 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 \"deity_thumbnail\"\n
\n
\n
\n

{deity.title}

\n \n
\n

{deity.prarthana_count} Prarthana

\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
\n
\n
\n )\n}\n\nexport default Deities","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__","deities","setDeities","useState","pathname","usePathname","useEffect","getAllDeities","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","concat","jsxs","BreadCrumb","h1","noto_serif","p","noto_sans","length","map","deity","index","Link","href","title","toLowerCase","trim","replaceAll","onMouseEnter","prarthanaNumber","document","querySelectorAll","arrow","classList","remove","add","onMouseLeave","Image","src","image_url","alt","width","height","ArrowForwardIcon","prarthana_count","Math","random","Skeleton","variant","animation","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","data","observances","getAFestival","getAFestivalBySlug","festivalSlug","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","getFestivalPrarthanas","pageNumber","suggestLocation","searchText","signal","module","exports"],"sourceRoot":""}