{"version":3,"file":"component---node-modules-taboola-venus-core-src-templates-author-template-index-tsx-content-file-path-content-authors-amber-katz-mdx-2bfe05e7fcb8caa397ea.js","mappings":"+HAGIA,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,cAAoBN,EAAYG,EAAG,KAAM,yWAClD,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,QAA1BN,EAAYM,EAAKG,WAA+B,IAAdT,OAA5C,EAA4EA,EAAUQ,KAChIE,EAAcH,aAAiD,EAASA,EAAYG,YACpFC,EAAWJ,aAAiD,EAASA,EAAYI,SACjFC,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ANA,EAAQoF,IACbzH,KAAMqC,aAAM,EAANA,EAAQrC,KACdA,MAAMqC,aAAM,EAANA,EAAQrC,MAAOE,EACrB2G,MAAOxE,aAAM,EAANA,EAAQkE,KACfmB,YAAarF,aAAM,EAANA,EAAQqF,YACrBxF,UAAWG,aAAM,EAANA,EAAQH,UACnByF,YAAatF,aAAM,EAANA,EAAQsF,YACrB5F,UAAWM,aAAM,EAANA,EAAQN,UACnByE,MAAOnE,aAAM,EAANA,EAAQmE,MACfoB,QAAQ,WAEVxI,EAAAA,cAACyI,EAAAA,EAAM,CACLC,KAAM1I,EAAAA,cAAC2G,EAAI,CAAC1D,OAAQA,IACpBwE,MAAOxE,aAAM,EAANA,EAAQkE,KACfwB,mBAAmB,EACnBC,QAAQ,OACRC,KAAM7I,EAAAA,cAAC8I,EAAAA,EAAI,CAACrF,UAAWR,aAAM,EAANA,EAAQ/B,SAE/BlB,EAAAA,cAACqG,EAAO,KACNrG,EAAAA,cAAC+I,EAAAA,EAAiB,KAAEtI,IACnBuI,EAAAA,EAAAA,IAAWf,IACVjI,EAAAA,cAAAiJ,EAAA,CAEEC,OAAQ,eAAejG,aAAM,EAANA,EAAQkE,OAC/BgC,cAAc,KACdC,cAAc,cACdR,QAAQ,WACRS,YAAY,aACZjI,SAAU6G,EACVqB,YAAY,EACZC,iBAAiB,MAKxB,EAIuB,IAAA1B,GAAAzB,EAAAA,EAAAA,IAAA,MAAAnC,WAAA,CAAAC,YAAA,4BAAAC,YAAA,gBAAAiC,CAAA,kEAAA6C,GAAA7C,EAAAA,EAAAA,IAAAoD,EAAAA,IAAAvF,WAAA,CAAAC,YAAA,sCAAAC,YAAA,gBAAAiC,CAAA,e","sources":["webpack://venus-time-ecomm/./node_modules/@mui/icons-material/ChevronLeft.js","webpack://venus-time-ecomm/./node_modules/@mui/icons-material/ChevronRight.js","webpack://venus-time-ecomm/./content/authors/amber-katz.mdx","webpack://venus-time-ecomm/./node_modules/@taboola/venus-core/src/templates/author-template/index.tsx","webpack://venus-time-ecomm/./node_modules/@taboola/venus-core/src/components/side/side.tsx","webpack://venus-time-ecomm/./node_modules/@taboola/venus-core/src/components/pagination/index.tsx","webpack://venus-time-ecomm/./node_modules/@taboola/venus-time/src/@taboola/venus-core/components/pagination/index.tsx","webpack://venus-time-ecomm/./node_modules/@taboola/venus-time/src/@taboola/venus-core/templates/author-template/author-template.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(_components.p, null, \"Amber Katz has nearly two decades of experience in copywriting and editorial. She's contributed to Allure, Cosmopolitan, Elle, Marie Claire, Popsugar, Vogue and more. She launched one of the first beauty blogs in 2006 called Beauty Blogging Junkie, and later rebranded as Rouge18 and created her Substack newsletter in 2019 called Things I Buy as a Civilian.\");\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-ecomm/master/content/authors/amber-katz.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, { 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","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"],"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","_ref","sideItems","className","item","Fragment","key","TextBlock","_StyledDiv","_styled","withConfig","displayName","componentId","showNavigationItem","i","maxPageRange","PaginationItem","_ref2","ellipsisIndex","isFirst","isLast","prevPage","nextPage","pages","activePage","pageNumber","to","push","_StyledLink","_StyledSpan","_StyledDiv2","classnames","_StyledNav","_StyledLink2","rel","ChevronLeft","_StyledLink3","ChevronRight","_styled2","Link","_styled3","_styled4","_styled5","_styled6","_styled7","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","StyledMDXdWrapper","isNotEmpty","_StyledArticleGrid","header","headerElement","cardKeyPrefix","cardVariant","showAuthor","showDescription","ArticleGrid"],"sourceRoot":""}