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,EAAAA,EAA0BW,GAAG,GAAI,GAIrEzE,EAAQ,KAAOA,GAAS,KAEpB8D,CAAAA,OAAAA,CAAAA,EAAAA,EAAQO,MAAM,CAACM,MAAM,GAArBb,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAuBW,GAAG,WAC1BX,CAAAA,EAAAA,EAAQO,MAAM,CAACG,KAAK,GAApBV,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAsBW,GAAG,WACzBX,CAAAA,EAAAA,EAAQO,MAAM,CAACK,SAAS,GAAxBZ,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA0BW,GAAG,GAC7B,GAMJX,CAAAA,OAAAA,CAAAA,EAAAA,EAAQc,SAAS,GAAjBd,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAmBW,GAAG,WACtBX,CAAAA,EAAAA,EAAQO,MAAM,CAACQ,KAAK,GAApBf,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAsBW,GAAG,WACzBX,CAAAA,EAAAA,EAAQO,MAAM,CAACM,MAAM,GAArBb,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAuBW,GAAG,WAC1BX,CAAAA,EAAAA,EAAQO,MAAM,CAACG,KAAK,GAApBV,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAsBW,GAAG,WACzBX,CAAAA,EAAAA,EAAQO,MAAM,CAACK,SAAS,GAAxBZ,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA0BW,GAAG,GAC7B,EAER","sources":["webpack://_N_E/?ac4e","webpack://_N_E/./src/components/BreadCrumb.tsx","webpack://_N_E/./src/components/EngagementContent/BlogCard.tsx","webpack://_N_E/./src/components/EngagementContent/LatestListing.tsx","webpack://_N_E/./src/lib/globalUtils.ts"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/dist/client/image-component.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/node_modules/next/dist/client/link.js\");\n;\nimport(/* 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/BreadCrumb.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src152476376/src/dharmayana-website/src/components/EngagementContent/LatestListing.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src152476376/src/dharmayana-website/src/components/Footer.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src152476376/src/dharmayana-website/src/components/Header.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"AppContextProvider\"] */ \"/codebuild/output/src152476376/src/dharmayana-website/src/contexts/AppContext.tsx\");\n","'use client';\nimport { useAppContext } from '@/contexts/AppContext';\nimport { noto_sans } from '@/globalConstants';\nimport Breadcrumbs from '@mui/material/Breadcrumbs';\nimport Image from 'next/image';\nimport Link from 'next/link';\nimport React from 'react';\n\n\nconst BreadCrumb = ({ pathname }: { pathname: string }) => {\n // Determine if the app is in web view mode.\n const { isMobileView, isAppView } = useAppContext();\n\n\n\n // Helper function to convert strings to capital case.\n const toCapitalCase = (str: string) => {\n return str\n .toLowerCase()\n .split(' ')\n .map(word => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ')\n .replace(/@/g, ' at ')\n .replace(/_/g, ' ');\n };\n\n // Generate breadcrumb pages from the pathname.\n const pages = pathname.split('/').filter(Boolean);\n return (\n \"\n priority={true}\n loading=\"eager\"\n width={24} // Use width and height directly\n height={24}\n style={{ width: '1.5rem', height: '1.5rem' }}\n />\n }\n >\n {[''].concat(pages).map((page, index) => {\n const isLast = index === pages.length;\n const href = index > 0 ? `/${pages.slice(0, index).join('/')}` : '/';\n const displayText = page === ''\n ? 'Home'\n : page === 'articles'\n ? 'Sacred Threads'\n : toCapitalCase(page.replace(/-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/, '').replace(/-/g, ' ').replace(/_/g, ' '));\n\n return (\n \n {displayText.replaceAll(' ', '-').replaceAll('%20', '-')}\n \n );\n })}\n \n );\n};\n\nexport default React.memo(BreadCrumb);\n","'use client'\nimport { noto_sans, ubuntu } from '@/globalConstants';\nimport { Skeleton } from '@mui/material';\nimport dayjs from 'dayjs';\nimport Image from 'next/image';\nimport { usePathname, useRouter } from 'next/navigation';\nimport React from 'react';\n\ninterface BlogCardProps {\n thumbnailUrl: string;\n tags: string[];\n heading: string;\n summary: string;\n publishDate: string; // can be string or Date format\n readTime: number;\n orientation: string;\n slug:string;\n}\n\nconst BlogCard: React.FC = ({\n thumbnailUrl,\n tags,\n heading,\n summary,\n publishDate,\n readTime,\n orientation,\n slug\n}) => {\n const pathname = usePathname();\n const router = useRouter();\n\n return (\n
{\n const blogCardImage = document.getElementById(`${slug}`);\n if (blogCardImage) {\n blogCardImage.classList.toggle('scale-[105%]');\n }\n\n }}\n onMouseOut={() => {\n const blogCardImage = document.getElementById(`${slug}`);\n if (blogCardImage) {\n blogCardImage.classList.toggle('scale-[105%]');\n }\n\n }}\n >\n {thumbnailUrl === '' ? :\n\n
\n
\n\n \n
}\n
\n {tags ?
\n {tags.map((tag: { name: string } | string, index) => (\n\n {\n event.preventDefault();\n router.push(`/articles/tags/${(typeof tag === 'string' ? tag : tag.name).replaceAll(\" \", \"-\")}`)\n }}\n >\n {(typeof tag === 'string' ? tag : tag.name)}\n \n ))}\n
: ''}\n

\n {heading.length ? heading : }\n

\n

\n {summary.length ? summary : }\n

\n
\n {publishDate?.length ? dayjs(publishDate).format(\"DD-MMM-YYYY\").replaceAll('-', \" \") : ''}{readTime ? `${readTime} min read` : } \n
\n
\n
\n );\n};\n\nexport default BlogCard;\n","'use client'\nimport React, { useEffect, useState } from 'react'\nimport BlogCard from './BlogCard'\nimport Link from 'next/link'\nimport Image from 'next/image';\nimport { noto_serif, ubuntu } from '@/globalConstants';\nimport { getResponsiveImageUrl } from '@/lib/globalUtils';\n\n\nconst LatestListing = ({ baseClass }: { baseClass: string }) => {\n const [latestListing, setLatestListing] = useState([])\n useEffect(() => {\n (async () => {\n\n let latestArticles = (await (await fetch(`${process.env.NEXT_PUBLIC_STRAPI_BASE_URL}blogs`)).json());\n setLatestListing(latestArticles.splice(0, 3));\n })()\n }, [])\n\n return (\n <>\n
\n
\n \"union\n

Read Latest Articles

\n \"union\n
\n
\n {\n latestListing.map((article: any) => {\n return (\n \n \n \n )\n })\n }\n
\n
\n \n \n \n\n
\n
\n\n\n\n\n\n \n )\n}\n\nexport default LatestListing","import { Article } from \"@/globalTypes\";\n\nexport const getResponsiveImageUrl = (article: Article) => {\n if (!article.banner) return '';\n\n // Get window width to determine the device type\n const width = window.innerWidth;\n\n // Mobile: width <= 768px\n if (width <= 768) {\n return article.banner.small?.url || article.banner.thumbnail?.url || '';\n }\n\n // Tablet: width > 768px and <= 1024px\n if (width > 768 && width <= 1024) {\n return (\n article.banner.medium?.url ||\n article.banner.small?.url ||\n article.banner.thumbnail?.url ||\n ''\n );\n }\n\n // Desktop: width > 1024px\n return (\n article.mainImage?.url || // New main image for desktop\n article.banner.large?.url || \n article.banner.medium?.url || \n article.banner.small?.url || \n article.banner.thumbnail?.url || \n ''\n );\n};\n"],"names":["Promise","resolve","then","__webpack_require__","t","bind","__webpack_exports__","React","pathname","param","isMobileView","isAppView","useAppContext","toCapitalCase","str","toLowerCase","split","map","word","charAt","toUpperCase","slice","join","replace","pages","filter","Boolean","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Breadcrumbs","className","concat","separator","Image","src","process","alt","priority","loading","width","height","style","page","index","isLast","length","href","displayText","Link","noto_sans","replaceAll","Z","thumbnailUrl","tags","heading","summary","publishDate","readTime","orientation","slug","usePathname","router","useRouter","jsxs","div","onMouseOver","blogCardImage","document","getElementById","classList","toggle","onMouseOut","Skeleton","variant","animation","id","backgroundImage","tag","span","onClick","event","preventDefault","push","name","h2","ubuntu","p","dayjs","format","baseClass","latestListing","setLatestListing","useState","useEffect","latestArticles","fetch","json","splice","Fragment","h1","noto_serif","article","BlogCard","getResponsiveImageUrl","tagline","Math","random","button","banner","window","innerWidth","small","url","thumbnail","medium","mainImage","large"],"sourceRoot":""}