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I,SAAmBP,MAAAA,CAAZF,EAAI,UAAavD,MAAA,CAALyD,GAEzJ,EACagC,EAAwB,GAE1B9C,EADK,GAAuFmB,MAAAA,CAApFC,kCAAyC,6CAAmF/D,MAAA,CAAxC8D,SAAS,CAACF,EAAY,KAAMI,QAAQ,MAGpI,eAAexE,IAElB,OAAO0D,EADK,GAA4ClD,MAAA,CAAzC+D,kCAAyC,+CAG5D,CACO,IAAM2B,EAAyB,MAAOC,GAElCzC,EADK,GAA4EyC,MAAAA,CAAzE5B,kCAAyC,kCAA4C/D,MAAA,CAAZ2F,IAGrF,eAAeC,EAAsBC,CAAkB,EAE1D,OAAO3C,EADK,GAAwF2C,MAAAA,CAArF9B,kCAAyC,8CAAuE/D,MAAA,CAA3B6F,EAAW,cAAa,IAEhI,CAMO,IAAMC,EAAkB,MAAOC,EAAoBC,KACtD,IAAMnD,EAAW,MAAMC,MACnB,GAA0EiD,MAAAA,CAAvEhC,kCAAyC,gCAAyC/D,MAAA,CAAX+F,GAC1E,CAAEC,OAAAA,CAAO,GAGb,MAAOvG,CADM,MAAMoD,EAASG,IAAI,IACpBvD,IAAI,qBC5IpBwG,EAAAC,OAAA,EAAkB,OAAS,wGAA6G,gFCAxID,EAAAC,OAAA,EAAkB,OAAS,6EAAgF","sources":["webpack://_N_E/?8b27","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/Prarthana/Purpose/Purposes.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/Purpose/Purposes.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 { getPurposePrarthanas } from '@/services/app.services'\nimport React, { useEffect, useState } from 'react'\nimport Image from 'next/image';\nimport { Purpose } 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 Purposes = () => {\n const [purposes, setPurposes] = useState([]);\n const pathname = usePathname();\n useEffect(() => {\n\n (async () => {\n let purposes = (await getPurposePrarthanas()).data;\n console.log(purposes);\n setPurposes(purposes);\n })()\n\n }, [])\n\n return (\n
\n
\n \n
\n
\n

Prarthana for Purpose

\n

Select a purpose to see prarthanas

\n
\n
\n {purposes.length ?\n purposes.map((purpose: Purpose, index: number) => {\n return (\n \n
{\n let arrow = document.querySelectorAll('.white-arrow')[index];\n arrow.classList.remove('text-[#EE9322]');\n arrow.classList.add('text-white');\n }}\n onMouseLeave={() => {\n let arrow = document.querySelectorAll('.white-arrow')[index];\n arrow.classList.add('text-[#EE9322]');\n arrow.classList.remove('text-white');\n\n }}\n >\n
\n \"purpose_thumbnail\"\n
\n
\n
\n

{purpose.title}

\n \n
\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 Purposes","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__","purposes","setPurposes","useState","pathname","usePathname","useEffect","getPurposePrarthanas","data","console","log","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","concat","jsxs","BreadCrumb","h1","noto_serif","p","noto_sans","length","map","purpose","index","Link","href","slug","onMouseEnter","arrow","document","querySelectorAll","classList","remove","add","onMouseLeave","Image","src","ui_info","image_url","alt","width","height","loading","priority","quality","placeholder","blurDataURL","title","ArrowForwardIcon","Math","random","Skeleton","variant","animation","headers","Headers","fetchWithConfig","url","response","fetch","cache","json","error","fetchPrarthanas","method","ok","status","getUserLocation","lat","DEFAULT_LOCATION","long","city","getAllFestivals","timeStamp","location","parseInt","process","toString","observances","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","getPrarthanasByPurpose","purposeSlug","getFestivalPrarthanas","pageNumber","suggestLocation","searchText","signal","module","exports"],"sourceRoot":""}