{"version":3,"file":"component---node-modules-taboola-venus-core-src-templates-author-template-index-tsx-content-file-path-content-authors-craig-stephens-mdx-e71808652d31c0b22dc8.js","mappings":"qIAGIA,EAAyB,EAAQ,OAIrCC,EAAQ,OAAU,EAClB,IAAIC,EAAiBF,EAAuB,EAAQ,QAChDG,EAAc,EAAQ,OACXF,EAAQ,GAAU,EAAIC,EAAeE,UAAuB,EAAID,EAAYE,KAAK,OAAQ,CACtGC,EAAG,kDACD,c,4BCTAN,EAAyB,EAAQ,OAIrCC,EAAQ,OAAU,EAClB,IAAIC,EAAiBF,EAAuB,EAAQ,QAChDG,EAAc,EAAQ,OACXF,EAAQ,GAAU,EAAIC,EAAeE,UAAuB,EAAID,EAAYE,KAAK,OAAQ,CACtGC,EAAG,mDACD,e,+FCTJ,SAASC,EAAkBC,GACzB,MAAMC,EAAcC,OAAOC,OAAO,CAChCC,EAAG,MACFC,EAAAA,EAAAA,MAAsBL,EAAMM,YAC/B,OAAOC,EAAAA,cAAoBA,EAAAA,SAAgB,KAAMA,EAAAA,cAAoBN,EAAYG,EAAG,KAAM,iTAAkT,KAAMG,EAAAA,cAAoBN,EAAYG,EAAG,KAAM,wUAAyU,KAAMG,EAAAA,cAAoBN,EAAYG,EAAG,KAAM,uHACrzB,CAKA,MAJA,SAAoBJ,QAAK,IAALA,IAAAA,EAAQ,CAAC,GAC3B,MAAOQ,QAASC,GAAaP,OAAOC,OAAO,CAAC,GAAGE,EAAAA,EAAAA,MAAsBL,EAAMM,YAC3E,OAAOG,EAAYF,EAAAA,cAAoBE,EAAWT,EAAOO,EAAAA,cAAoBR,EAAmBC,IAAUD,EAAkBC,EAC9H,E,iCCPA,MAAMU,EAAaV,IACjB,IAAIW,EAAWC,EAAYC,EAAYC,EAAgBC,EACvD,MAAMC,EAAWhB,aAAqC,EAASA,EAAMgB,SAC/DC,EAAOjB,aAAqC,EAASA,EAAMiB,KAC3DC,EAAclB,aAAqC,EAASA,EAAMkB,YAClEC,EAAOF,SAAuE,QA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boola/venus-time/./node_modules/@mui/icons-material/ChevronRight.js","webpack://@taboola/venus-time/./content/authors/craig-stephens.mdx","webpack://@taboola/venus-time/./node_modules/@taboola/venus-core/src/templates/author-template/index.tsx","webpack://@taboola/venus-time/./node_modules/@taboola/venus-core/src/components/pagination/index.tsx","webpack://@taboola/venus-time/./src/@taboola/venus-core/components/pagination/index.tsx","webpack://@taboola/venus-time/./src/@taboola/venus-core/templates/author-template/author-template.tsx","webpack://@taboola/venus-time/./node_modules/@taboola/venus-core/src/components/side/side.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"\n}), 'ChevronLeft');","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'ChevronRight');","/*@jsxRuntime classic @jsx React.createElement @jsxFrag React.Fragment*/\nimport {useMDXComponents as _provideComponents} from \"@mdx-js/react\";\nimport React from \"react\";\nfunction _createMdxContent(props) {\n const _components = Object.assign({\n p: \"p\"\n }, _provideComponents(), props.components);\n return React.createElement(React.Fragment, null, React.createElement(_components.p, null, \"Craig Stephens is a personal finance and investing writer covering diverse topics, including retirement, financial independence, stocks, ETFs, IPOs, and alternative investments. His writing has been featured on US News & World Report, Yahoo! Finance, Business Insider, Seeking Alpha, and HumbleDollar.\"), \"\\n\", React.createElement(_components.p, null, \"He is a former information technology professional who spent 19 years consulting for the Internal Revenue Service (IRS). A do-it-yourself investor since 1995, he started blogging in 2013 to share his investment knowledge and early retirement aspirations before leaving his consulting career in 2022 to be a full-time writer.\"), \"\\n\", React.createElement(_components.p, null, \"Craig studied Finance at Michigan State University and lives in Northern Virginia with his wife and three children.\"));\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = Object.assign({}, _provideComponents(), props.components);\n return MDXLayout ? React.createElement(MDXLayout, props, React.createElement(_createMdxContent, props)) : _createMdxContent(props);\n}\nexport default MDXContent;\n","import GATSBY_COMPILED_MDX from \"/home/venus_builder/venus-ci/workspace/time/master/content/authors/craig-stephens.mdx\";\nimport React from 'react';\nimport {flattenAsideItems} from '../../utils/model/aside';\nimport Pagination from '../../components/pagination';\nimport AuthorTemplate from './author-template';\nconst AuthorPage = props => {\n var _data$mdx, _data$mdx2, _data$mdx3, _data$articles, _data$articles$nodes;\n const children = props === null || props === void 0 ? void 0 : props.children;\n const data = props === null || props === void 0 ? void 0 : props.data;\n const pageContext = props === null || props === void 0 ? void 0 : props.pageContext;\n const slug = data === null || data === void 0 ? void 0 : (_data$mdx = data.mdx) === null || _data$mdx === void 0 ? void 0 : _data$mdx.slug;\n const currentPage = pageContext === null || pageContext === void 0 ? void 0 : pageContext.currentPage;\n const numPages = pageContext === null || pageContext === void 0 ? void 0 : pageContext.numPages;\n const excerpt = data === null || data === void 0 ? void 0 : (_data$mdx2 = data.mdx) === null || _data$mdx2 === void 0 ? void 0 : _data$mdx2.excerpt;\n const frontmatter = data === null || data === void 0 ? void 0 : (_data$mdx3 = data.mdx) === null || _data$mdx3 === void 0 ? void 0 : _data$mdx3.frontmatter;\n const aside = flattenAsideItems(frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.aside);\n const articles = data === null || data === void 0 ? void 0 : (_data$articles = data.articles) === null || _data$articles === void 0 ? void 0 : (_data$articles$nodes = _data$articles.nodes) === null || _data$articles$nodes === void 0 ? void 0 : _data$articles$nodes.map(node => {\n var _node$frontmatter, _node$frontmatter$cat, _node$fields, _node$fields2;\n const categories = node === null || node === void 0 ? void 0 : (_node$frontmatter = node.frontmatter) === null || _node$frontmatter === void 0 ? void 0 : (_node$frontmatter$cat = _node$frontmatter.categories) === null || _node$frontmatter$cat === void 0 ? void 0 : _node$frontmatter$cat.map(category => {\n var _category$childMdx, _category$childMdx$fr, _category$childMdx$fr2, _category$childMdx$fr3, _category$frontmatter, _category$frontmatter2, _category$frontmatter3, _category$childMdx2, _category$childMdx3;\n const parentSlug = category === null || category === void 0 ? void 0 : (_category$childMdx = category.childMdx) === null || _category$childMdx === void 0 ? void 0 : (_category$childMdx$fr = _category$childMdx.frontmatter) === null || _category$childMdx$fr === void 0 ? void 0 : (_category$childMdx$fr2 = _category$childMdx$fr.parentCategory) === null || _category$childMdx$fr2 === void 0 ? void 0 : (_category$childMdx$fr3 = _category$childMdx$fr2.childMdx) === null || _category$childMdx$fr3 === void 0 ? void 0 : _category$childMdx$fr3.slug;\n const parentFrontmatter = category === null || category === void 0 ? void 0 : (_category$frontmatter = category.frontmatter) === null || _category$frontmatter === void 0 ? void 0 : (_category$frontmatter2 = _category$frontmatter.parentCategory) === null || _category$frontmatter2 === void 0 ? void 0 : (_category$frontmatter3 = _category$frontmatter2.childMdx) === null || _category$frontmatter3 === void 0 ? void 0 : _category$frontmatter3.frontmatter;\n const parentCategory = parentSlug && ({\n parentCategory: {\n slug: parentSlug,\n ...parentFrontmatter\n }\n });\n return {\n slug: category === null || category === void 0 ? void 0 : (_category$childMdx2 = category.childMdx) === null || _category$childMdx2 === void 0 ? void 0 : _category$childMdx2.slug,\n ...category === null || category === void 0 ? void 0 : (_category$childMdx3 = category.childMdx) === null || _category$childMdx3 === void 0 ? void 0 : _category$childMdx3.frontmatter,\n ...parentCategory\n };\n });\n return {\n ...node === null || node === void 0 ? void 0 : node.frontmatter,\n updatedAt: node === null || node === void 0 ? void 0 : (_node$fields = node.fields) === null || _node$fields === void 0 ? void 0 : _node$fields.dateModified,\n createdAt: node === null || node === void 0 ? void 0 : (_node$fields2 = node.fields) === null || _node$fields2 === void 0 ? void 0 : _node$fields2.datePublished,\n slug: node === null || node === void 0 ? void 0 : node.slug,\n timeToRead: node === null || node === void 0 ? void 0 : node.timeToRead,\n categories\n };\n });\n const author = {\n ...frontmatter,\n slug,\n excerpt,\n aside,\n articles\n };\n return React.createElement(React.Fragment, null, React.createElement(AuthorTemplate, {\n author: author,\n currentPage: currentPage\n }, children), React.createElement(Pagination, {\n currentPage: currentPage,\n totalPages: numPages,\n path: `/author/${slug}`\n }));\n};\nAuthorPage\nexport default function GatsbyMDXWrapper(props) {\n return React.createElement(AuthorPage, props, React.createElement(GATSBY_COMPILED_MDX, props));\n}\nconst query = \"591227969\";\n","import React from 'react';\nimport classnames from 'classnames';\nimport ChevronLeft from '@mui/icons-material/ChevronLeft';\nimport ChevronRight from '@mui/icons-material/ChevronRight';\nimport 'twin.macro';\n\nimport { Link } from '../link';\n\nconst showNavigationItem = (i, currentPage, totalPages, maxPageRange = 2) => {\n // Show the first page nav item\n if (i === 0) return true;\n\n // Show the last page nav item\n if (i === totalPages - 1) return true;\n\n // Show current page item\n if (i === currentPage) return true;\n\n // Show pages that are within the maxPageRange from the current page\n return i >= currentPage - maxPageRange && i <= currentPage + maxPageRange;\n};\n\nconst PaginationItem = ({ children }) => {\n return (\n <div tw=\"py-2 px-2 lg:px-3 flex items-center justify-center\">\n {children}\n </div>\n );\n};\n\nconst Pagination = ({ className, currentPage, totalPages, path }) => {\n if (totalPages <= 1) {\n return null;\n }\n\n let ellipsisIndex = -1;\n const isFirst = currentPage === 1;\n const isLast = currentPage === totalPages;\n const prevPage = currentPage - 1 === 1 ? path : `${path}/${currentPage - 1}`;\n const nextPage = `${path}/${currentPage + 1}`;\n const pages = [];\n\n for (let i = 0; i < totalPages; i++) {\n const activePage = currentPage - 1 === i;\n const pageNumber = i + 1;\n const to = `${path}/${pageNumber === 1 ? '' : pageNumber}`;\n\n if (showNavigationItem(i, currentPage, totalPages)) {\n pages.push(\n <PaginationItem key={to}>\n {!activePage && (\n <Link\n className=\"pagination-nav pagination-item\"\n tw=\"text-primary\"\n to={to}\n >\n {pageNumber}\n </Link>\n )}\n {activePage && (\n <span className=\"pagination-current pagination-item\" tw=\"font-bold\">\n {pageNumber}\n </span>\n )}\n </PaginationItem>\n );\n } else {\n if (ellipsisIndex !== i - 1) {\n pages.push(\n <PaginationItem key={`more-pages-${pageNumber}`}>\n <span aria-label=\"More pages\">...</span>\n </PaginationItem>\n );\n }\n ellipsisIndex = i;\n }\n }\n\n return (\n <div\n className={classnames(className, 'pagination')}\n tw=\"text-center px-5 lg:px-10\"\n >\n <nav tw=\"inline-flex items-center justify-center pt-12 pb-16 relative\">\n {!isFirst && (\n <Link\n to={prevPage}\n className=\"pagination-stepper\"\n tw=\"absolute -left-6\"\n rel=\"prev nofollow\"\n >\n <ChevronLeft />\n </Link>\n )}\n {pages}\n {!isLast && (\n <Link\n to={nextPage}\n className=\"pagination-stepper\"\n tw=\"absolute -right-6\"\n rel=\"next nofollow\"\n >\n <ChevronRight />\n </Link>\n )}\n </nav>\n </div>\n );\n};\n\nexport default Pagination;\n","import React from 'react';\nimport styled from 'styled-components';\nimport tw from 'twin.macro';\n\nimport Pagination from '@taboola/venus-core/src/components/pagination';\n\nconst StyledPagination = styled(Pagination)`\n .pagination-nav {\n ${tw`text-red-300`}\n }\n`;\n\nexport default StyledPagination;\n","import React from 'react';\nimport styled from 'styled-components';\nimport tw from 'twin.macro';\n\nimport { Layout } from '@taboola/venus-core/src/layouts';\nimport MetaSEO from '@taboola/venus-core/src/components/seo';\nimport { StyledMDXdWrapper } from '../../components/mdx-styled-renderer';\nimport Side from '@taboola/venus-core/src/components/side/side';\nimport { ArticleGrid } from '@taboola/venus-core/src/components/articles';\nimport { SocialLinks } from '@taboola/venus-core/src/components/blocks/author';\nimport { isNotEmpty } from '@taboola/venus-core/src/utils/collections';\nimport { IAuthor } from '@taboola/venus-core/src/model';\nimport _Image from '@taboola/venus-core/src/components/image';\nimport { useParseArticleText } from '@taboola/venus-core/src/hooks/useParseArticleText';\n\ntype Props = {\n author: IAuthor;\n};\n\nconst FlexCol = styled.div`\n ${tw`flex flex-col items-center`}\n`;\n\nconst Image = styled(_Image)`\n .preview-image {\n ${tw`rounded-full`}\n width: 125px;\n height: 125px;\n }\n`;\n\nconst Hero = ({ author }: Props) => {\n const name = author?.name;\n const image = author?.image?.imageFile?.childImageSharp?.gatsbyImageData ?? author?.image?.imageFile;\n const alt = author?.image?.alt || name;\n const title = author?.image?.title || name;\n const socialLinks = author?.socialLinks;\n\n return (\n <FlexCol tw=\"md:(flex-row space-x-12 space-y-0)\">\n <Image tw=\"rounded-full\" image={image} alt={alt} title={title} width={100} height={100} />\n <h1 tw=\"font-oswald uppercase font-bold\">{name}</h1>\n <FlexCol>\n <SocialLinks links={socialLinks} />\n </FlexCol>\n </FlexCol>\n );\n};\n\nconst AuthorTemplate = (props: Props) => {\n const author: IAuthor = props?.author;\n const children = props?.children;\n const authorArticles = author?.articles?.map(article => useParseArticleText(article));\n const currentPage = props?.currentPage === 1 ? '' : '/' + props.currentPage;\n\n return (\n <>\n <MetaSEO\n seo={author?.seo}\n slug={author?.slug}\n slug={author?.slug + currentPage}\n title={author?.name}\n description={author?.description}\n createdAt={author?.createdAt}\n publishedAt={author?.publishedAt}\n updatedAt={author?.updatedAt}\n image={author?.image}\n urlPart=\"author\"\n />\n <Layout\n hero={<Hero author={author} />}\n title={author?.name}\n showBreadCrumbBar={false}\n variant=\"full\"\n side={<Side sideItems={author?.aside} />}\n >\n <FlexCol>\n <StyledMDXdWrapper>{children}</StyledMDXdWrapper>\n {isNotEmpty(authorArticles) && (\n <ArticleGrid\n tw=\"w-full\"\n header={`Articles by ${author?.name}`}\n headerElement=\"h2\"\n cardKeyPrefix=\"author-page\"\n variant=\"vertical\"\n cardVariant=\"horizontal\"\n articles={authorArticles}\n showAuthor={false}\n showDescription={true}\n />\n )}\n </FlexCol>\n </Layout>\n </>\n );\n};\n\nexport default AuthorTemplate;\n","import React, { Fragment } from 'react';\nimport 'twin.macro';\n\nimport TextBlock from '../shortcodes/text-block/text-block'\n\nconst Side = ({ sideItems, className }) => {\n return (\n <div className={className}>\n {sideItems?.map((item) => (\n <Fragment key={item?.slug}>\n <TextBlock slug={item?.slug}/>\n <div tw=\"border-t-2 my-16\" />\n </Fragment>\n ))}\n </div>\n );\n}\n\nexport default Side;\n"],"names":["_interopRequireDefault","exports","_createSvgIcon","_jsxRuntime","default","jsx","d","_createMdxContent","props","_components","Object","assign","p","_provideComponents","components","React","wrapper","MDXLayout","AuthorPage","_data$mdx","_data$mdx2","_data$mdx3","_data$articles","_data$articles$nodes","children","data","pageContext","slug","mdx","currentPage","numPages","excerpt","frontmatter","aside","flattenAsideItems","articles","nodes","map","node","_node$frontmatter","_node$frontmatter$cat","_node$fields","_node$fields2","categories","category","_category$childMdx","_category$childMdx$fr","_category$childMdx$fr2","_category$childMdx$fr3","_category$frontmatter","_category$frontmatter2","_category$frontmatter3","_category$childMdx2","_category$childMdx3","parentSlug","childMdx","parentCategory","parentFrontmatter","updatedAt","fields","dateModified","createdAt","datePublished","timeToRead","author","AuthorTemplate","Pagination","totalPages","path","GatsbyMDXWrapper","GATSBY_COMPILED_MDX","showNavigationItem","i","maxPageRange","PaginationItem","_ref","_StyledDiv","_ref2","className","ellipsisIndex","isFirst","isLast","prevPage","nextPage","pages","activePage","pageNumber","to","push","key","_StyledLink","_StyledSpan","_StyledDiv2","classnames","_StyledNav","_StyledLink2","rel","ChevronLeft","_StyledLink3","ChevronRight","_styled","_styled2","Link","_styled3","_styled4","_styled5","_styled6","_styled7","withConfig","displayName","componentId","styled","FlexCol","div","_StyledFlexCol","Image","_Image","_StyledImage","Hero","_author$image$imageFi","_author$image","_author$image$imageFi2","_author$image$imageFi3","_author$image2","_author$image3","_author$image4","name","image","imageFile","childImageSharp","gatsbyImageData","alt","title","socialLinks","width","height","_StyledH","SocialLinks","links","_author$articles","authorArticles","article","useParseArticleText","MetaSEO","seo","description","publishedAt","urlPart","Layout","hero","showBreadCrumbBar","variant","side","Side","sideItems","StyledMDXdWrapper","isNotEmpty","_StyledArticleGrid","header","headerElement","cardKeyPrefix","cardVariant","showAuthor","showDescription","ArticleGrid","item","Fragment","TextBlock"],"sourceRoot":""}