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9E,GAAG,EAAEgF,EAAqBN,YAAY,CAAE,CACvEC,OAAQ,eACRC,SAAyB,GAAGE,EAAY9E,GAAG,EAAEuF,EAAM,CAC/C,GAAGI,CAAK,EAEhB,GACA,MAAsB,GAAGb,EAAY9E,GAAG,EAAE+E,EAAOc,QAAQ,CAAE,CACvDC,SAAUF,EACVhB,SAAUA,CACd,EACJ,CAEA,OADAc,EAAkBK,WAAW,CAAG,oBACzBL,CACX","sources":["webpack://_N_E/?0a93","webpack://_N_E/./app/blog/page.js","webpack://_N_E/./components/Common/HeadingText.js","webpack://_N_E/./lib/BlogAPIAllData.js","webpack://_N_E/./node_modules/next/dist/api/app-dynamic.js","webpack://_N_E/./node_modules/next/dist/shared/lib/app-dynamic.js","webpack://_N_E/./node_modules/next/dist/shared/lib/lazy-dynamic/dynamic-bailout-to-csr.js","webpack://_N_E/./node_modules/next/dist/shared/lib/lazy-dynamic/loadable.js","webpack://_N_E/"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src4243223962/src/EbWebsiteProd/app/blog/page.js\")","\"use client\";\n\nimport { Heading2, Subtitle1 } from \"@/components/Common/HeadingText\";\nimport Navbar from \"@/components/Navbar\";\nimport { theme } from \"@/components/theme\";\nimport {\n Box,\n Grid,\n Pagination,\n ThemeProvider,\n Typography,\n} from \"@mui/material\";\nimport dynamic from \"next/dynamic\";\n\nimport { getAllBlogData } from \"../../lib/BlogAPIAllData\";\nimport React, { useEffect, useState } from \"react\";\n\nconst Footer = dynamic(() => import(\"@/components/Footer\"));\n\nconst BlogCard = dynamic(() => import(\"@/components/Common/BlogCard\"));\n\nexport default function Blog() {\n const [blogData, setBlogData] = useState();\n const [pageSelect, setPageSelect] = useState(0);\n\n useEffect(() => {\n const fetchData = async () => {\n const data = await getAllBlogData(pageSelect, window.location.hostname);\n setBlogData(data);\n };\n\n fetchData();\n }, []);\n\n const handleNextPage = async (e, value) => {\n const pageData = value - 1;\n const data = await getAllBlogData(pageData, window.location.hostname);\n setBlogData(data);\n };\n\n return (\n
\n \n \n \n \n Explore\n \n \n \n \n {blogData?.response?.blog.map((blog, index) => {\n return (\n \n \n \n );\n })}\n \n \n \n
\n \n
\n );\n}\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 * from \"../shared/lib/app-dynamic\";\nexport { default } from \"../shared/lib/app-dynamic\";\n\n//# sourceMappingURL=app-dynamic.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return dynamic;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _jsxruntime = require(\"react/jsx-runtime\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst _loadable = /*#__PURE__*/ _interop_require_default._(require(\"./lazy-dynamic/loadable\"));\nfunction dynamic(dynamicOptions, options) {\n const loadableOptions = {\n // A loading component is not required, so we default it\n loading: (param)=>{\n let { error, isLoading, pastDelay } = param;\n if (!pastDelay) return null;\n if (process.env.NODE_ENV !== \"production\") {\n if (isLoading) {\n return null;\n }\n if (error) {\n return /*#__PURE__*/ (0, _jsxruntime.jsxs)(\"p\", {\n children: [\n error.message,\n /*#__PURE__*/ (0, _jsxruntime.jsx)(\"br\", {}),\n error.stack\n ]\n });\n }\n }\n return null;\n }\n };\n if (typeof dynamicOptions === \"function\") {\n loadableOptions.loader = dynamicOptions;\n }\n return (0, _loadable.default)({\n ...loadableOptions,\n ...options\n });\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=app-dynamic.js.map","\"use client\";\n\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"BailoutToCSR\", {\n enumerable: true,\n get: function() {\n return BailoutToCSR;\n }\n});\nconst _bailouttocsr = require(\"./bailout-to-csr\");\nfunction BailoutToCSR(param) {\n let { reason, children } = param;\n if (typeof window === \"undefined\") {\n throw new _bailouttocsr.BailoutToCSRError(reason);\n }\n return children;\n}\n\n//# sourceMappingURL=dynamic-bailout-to-csr.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _jsxruntime = require(\"react/jsx-runtime\");\nconst _react = require(\"react\");\nconst _dynamicbailouttocsr = require(\"./dynamic-bailout-to-csr\");\n// Normalize loader to return the module as form { default: Component } for `React.lazy`.\n// Also for backward compatible since next/dynamic allows to resolve a component directly with loader\n// Client component reference proxy need to be converted to a module.\nfunction convertModule(mod) {\n var _mod_default;\n return {\n default: (_mod_default = mod == null ? void 0 : mod.default) != null ? _mod_default : mod\n };\n}\nconst defaultOptions = {\n loader: ()=>Promise.resolve(convertModule(()=>null)),\n loading: null,\n ssr: true\n};\nfunction Loadable(options) {\n const opts = {\n ...defaultOptions,\n ...options\n };\n const Lazy = /*#__PURE__*/ (0, _react.lazy)(()=>opts.loader().then(convertModule));\n const Loading = opts.loading;\n function LoadableComponent(props) {\n const fallbackElement = Loading ? /*#__PURE__*/ (0, _jsxruntime.jsx)(Loading, {\n isLoading: true,\n pastDelay: true,\n error: null\n }) : null;\n const children = opts.ssr ? /*#__PURE__*/ (0, _jsxruntime.jsx)(Lazy, {\n ...props\n }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_dynamicbailouttocsr.BailoutToCSR, {\n reason: \"next/dynamic\",\n children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Lazy, {\n ...props\n })\n });\n return /*#__PURE__*/ (0, _jsxruntime.jsx)(_react.Suspense, {\n fallback: fallbackElement,\n children: children\n });\n }\n LoadableComponent.displayName = \"LoadableComponent\";\n return LoadableComponent;\n}\nconst _default = Loadable;\n\n//# sourceMappingURL=loadable.js.map"],"names":["Promise","resolve","then","__webpack_require__","bind","Footer","dynamic","e","BlogCard","all","Blog","blogData","setBlogData","useState","pageSelect","setPageSelect","useEffect","fetchData","getAllBlogData","window","location","hostname","handleNextPage","value","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","main","jsxs","ThemeProvider","theme","Navbar","Box","sx","m","lg","xs","Typography","variant","fontSize","fontWeight","color","Heading2","text","Subtitle1","Grid","item","container","mt","response","blog","map","index","paddingTop","paddingRight","Pagination","count","totalPages","page","currentPage","Number","onChange","shape","justifyContent","display","backgroundColor","HeroText15","param","textShadow","my","API","process","data","headers","getHeaders","fetch","concat","json","getAllBlog","Object","enumerable","get","_interop_require_default","require","_loadable","_","dynamicOptions","options","loadableOptions","loading","error","isLoading","pastDelay","loader","default","exports","__esModule","defineProperty","assign","module","BailoutToCSR","reason","children","_default","_jsxruntime","_react","_dynamicbailouttocsr","convertModule","mod","_mod_default","defaultOptions","ssr","opts","Lazy","lazy","Loading","LoadableComponent","props","fallbackElement","Suspense","fallback","displayName"],"sourceRoot":""}