{"version":3,"file":"component---node-modules-taboola-venus-core-src-templates-category-template-index-tsx-content-file-path-content-categories-fashion-mdx-e3fe455db8463bee3d25.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,OAAOC,EAAAA,cAAoBA,EAAAA,SAC7B,CAKA,MAJA,SAAoBD,QAAK,IAALA,IAAAA,EAAQ,CAAC,GAC3B,MAAOE,QAASC,GAAaC,OAAOC,OAAO,CAAC,GAAGC,EAAAA,EAAAA,MAAsBN,EAAMO,YAC3E,OAAOJ,EAAYF,EAAAA,cAAoBE,EAAWH,EAAOC,EAAAA,cAAoBF,EAAmBC,IAAUD,GAC5G,E,iCCJA,MAAMS,EAAeR,IACnB,IAAIS,EAAWC,EAAYC,EAAYC,EAAuBC,EAAwBC,EAAgBC,EACtG,MAAMC,EAAWhB,aAAqC,EAASA,EAAMgB,SAC/DC,EAAOjB,aAAqC,EAASA,EAAMiB,KAC3DC,EAAclB,aAAqC,EAASA,EAAMkB,YAClEC,EAAOF,SAAuE,QAA1BR,EAAYQ,EAAKG,WAA+B,IAAdX,OAA5C,EAA4EA,EAAUU,KAChIE,EAAcH,aAAiD,EAASA,EAAYG,YACpFC,EAAWJ,aAAiD,EAASA,EAAYI,SACjFC,EAAUN,SAAwE,QAA3BP,EAAaO,EAAKG,WAAgC,IAAfV,OAA7C,EAA8EA,EAAWa,QACtIC,EAAcP,SAAwE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-ecomm/./node_modules/@mui/icons-material/ChevronLeft.js","webpack://venus-time-ecomm/./node_modules/@mui/icons-material/ChevronRight.js","webpack://venus-time-ecomm/./content/categories/fashion.mdx","webpack://venus-time-ecomm/./node_modules/@taboola/venus-core/src/templates/category-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/hooks/useParseArticleText.ts","webpack://venus-time-ecomm/./node_modules/@taboola/venus-time/src/@taboola/venus-core/layouts/default-layout.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/category-template/category-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 return React.createElement(React.Fragment);\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/categories/fashion.mdx\";\nimport React from 'react';\nimport {flattenAsideItems} from '../../utils/model/aside';\nimport Pagination from '../../components/pagination';\nimport CategoryTemplate from './category-template';\nconst CategoryPage = props => {\n var _data$mdx, _data$mdx2, _data$mdx3, _data$childCategories, _data$childCategories2, _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 childCategories = data === null || data === void 0 ? void 0 : (_data$childCategories = data.childCategories) === null || _data$childCategories === void 0 ? void 0 : (_data$childCategories2 = _data$childCategories.nodes) === null || _data$childCategories2 === void 0 ? void 0 : _data$childCategories2.map(node => ({\n ...node === null || node === void 0 ? void 0 : node.frontmatter,\n slug: node === null || node === void 0 ? void 0 : node.slug\n }));\n let category = {\n slug,\n excerpt,\n ...frontmatter,\n aside\n };\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$aut, _node$frontmatter$aut2, _node$frontmatter$aut3, _node$frontmatter2, _node$frontmatter2$au, _node$frontmatter2$au2;\n return {\n categories: [category],\n slug: node === null || node === void 0 ? void 0 : node.slug,\n timeToRead: node === null || node === void 0 ? void 0 : node.timeToRead,\n ...node === null || node === void 0 ? void 0 : node.frontmatter,\n author: {\n slug: node === null || node === void 0 ? void 0 : (_node$frontmatter = node.frontmatter) === null || _node$frontmatter === void 0 ? void 0 : (_node$frontmatter$aut = _node$frontmatter.authors) === null || _node$frontmatter$aut === void 0 ? void 0 : (_node$frontmatter$aut2 = _node$frontmatter$aut[0]) === null || _node$frontmatter$aut2 === void 0 ? void 0 : (_node$frontmatter$aut3 = _node$frontmatter$aut2.childMdx) === null || _node$frontmatter$aut3 === void 0 ? void 0 : _node$frontmatter$aut3.slug,\n ...node === null || node === void 0 ? void 0 : (_node$frontmatter2 = node.frontmatter) === null || _node$frontmatter2 === void 0 ? void 0 : (_node$frontmatter2$au = _node$frontmatter2.authors) === null || _node$frontmatter2$au === void 0 ? void 0 : (_node$frontmatter2$au2 = _node$frontmatter2$au[0]) === null || _node$frontmatter2$au2 === void 0 ? void 0 : _node$frontmatter2$au2.childMdx.frontmatter\n }\n };\n });\n category = {\n ...category,\n articles,\n childCategories\n };\n return React.createElement(React.Fragment, null, React.createElement(CategoryTemplate, {\n category: category,\n currentPage: currentPage\n }, children), React.createElement(Pagination, {\n currentPage: currentPage,\n totalPages: numPages,\n path: `/category/${slug}`\n }));\n};\nCategoryPage\nexport default function GatsbyMDXWrapper(props) {\n return React.createElement(CategoryPage, props, React.createElement(GATSBY_COMPILED_MDX, props));\n}\nconst query = \"2872411253\";\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
\n {sideItems?.map((item) => (\n \n \n
\n \n ))}\n
\n );\n}\n\nexport default Side;\n","import { useParsedText } from '../components/shortcodes/variable-resolver/use-parsed-text';\n\nexport const useParseArticleText = (article) => {\n const parsedArticle = useParsedText({\n title: article?.title,\n description: article?.description,\n seoTitle: article?.seo?.title,\n seoDescription: article?.seo?.description,\n });\n\n return {\n ...article,\n title: parsedArticle.title,\n description: parsedArticle.description,\n seo: {\n ...article?.seo,\n title: parsedArticle.seoTitle,\n description: parsedArticle.seoDescription,\n }\n }\n}","import React from 'react';\nimport _Paper from '@mui/material/Paper';\nimport styled from 'styled-components';\nimport tw from 'twin.macro';\n\nimport { CategoryFields } from '@taboola/venus-core/src/components/breadcrumbs/breadcrumbs';\n\nexport type WithVariant = {\n variant?: '1/4' | '1/3' | '1/2' | 'full';\n};\n\nexport type LayoutProps = {\n children: any;\n side?: any;\n hero?: any;\n title?: string;\n breadCrumbTrail?: CategoryFields[];\n} & WithVariant;\n\nconst ASide = styled.aside(({ variant }: WithVariant) => [\n tw`hidden`,\n variant === '1/4' && tw`lg:(block w-1/4)`,\n variant === '1/3' && tw`lg:(block w-1/3)`,\n variant === '1/2' && tw`lg:(block w-1/2)`,\n]);\n\nconst Main = styled.main(({ variant }: WithVariant) => [\n tw`w-full`,\n variant === '1/4' && tw`lg:(w-3/4)`,\n variant === '1/3' && tw`lg:(w-2/3)`,\n variant === '1/2' && tw`lg:(w-1/2)`,\n]);\n\nconst Paper = styled(_Paper)`\n ${tw`\n relative container bg-transparent\n flex flex-col\n space-y-6\n px-4 lg:px-13 xl:px-0\n `}\n`;\n\nconst Container = styled.div`\n ${tw`flex flex-col lg:(flex-row space-x-12)`}\n`;\n\nconst Layout = ({ children, side, hero, variant = '1/3' }: LayoutProps) => (\n
\n {hero && (\n \n \n
\n {hero}\n
\n {variant !== 'full' &&
\n);\n\nexport default Layout;\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
\n {children}\n
\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 \n {!activePage && (\n \n {pageNumber}\n \n )}\n {activePage && (\n \n {pageNumber}\n \n )}\n \n );\n } else {\n if (ellipsisIndex !== i - 1) {\n pages.push(\n \n ...\n \n );\n }\n ellipsisIndex = i;\n }\n }\n\n return (\n \n \n
\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 { Link } from '@taboola/venus-core/src/components/link';\nimport 'twin.macro';\n\nimport { ICategory } from '@taboola/venus-core/src/model';\nimport { isNotEmpty } from '@taboola/venus-core/src/utils/collections';\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 { ArticleGridHero } from '@taboola/venus-core/src/components/articles';\nimport Side from '@taboola/venus-core/src/components/side/side';\nimport { useParseArticleText } from '@taboola/venus-core/src/hooks/useParseArticleText';\n\ntype Props = {\n category: ICategory;\n};\n\nconst Hero = ({ category }: Props) => (\n
\n

{category?.name}

\n
\n {category?.childCategories?.map(({ slug, name }) => (\n \n {name}\n \n ))}\n
\n {category?.body}\n
\n);\n\nconst CategoryTemplate = (props: Props) => {\n const category: ICategory = props?.category;\n const articles = category?.articles?.map(article => useParseArticleText(article));\n const currentPage = props?.currentPage === 1 ? '' : '/' + props.currentPage;\n\n return (\n <>\n \n }\n title={category?.name}\n breadCrumbTrail={{}}\n showBreadCrumbBar={false}\n side={}\n >\n {isNotEmpty(articles) && (\n \n )}\n \n \n );\n};\n\nexport default CategoryTemplate;\n"],"names":["_interopRequireDefault","exports","_createSvgIcon","_jsxRuntime","default","jsx","d","_createMdxContent","props","React","wrapper","MDXLayout","Object","assign","_provideComponents","components","CategoryPage","_data$mdx","_data$mdx2","_data$mdx3","_data$childCategories","_data$childCategories2","_data$articles","_data$articles$nodes","children","data","pageContext","slug","mdx","currentPage","numPages","excerpt","frontmatter","aside","flattenAsideItems","childCategories","nodes","map","node","category","articles","_node$frontmatter","_node$frontmatter$aut","_node$frontmatter$aut2","_node$frontmatter$aut3","_node$frontmatter2","_node$frontmatter2$au","_node$frontmatter2$au2","categories","timeToRead","author","authors","childMdx","CategoryTemplate","Pagination","totalPages","path","GatsbyMDXWrapper","GATSBY_COMPILED_MDX","_ref","sideItems","className","item","Fragment","key","TextBlock","_StyledDiv","_styled","withConfig","displayName","componentId","useParseArticleText","article","_article$seo","_article$seo2","parsedArticle","useParsedText","title","description","seoTitle","seo","seoDescription","ASide","styled","variant","Main","main","_ref2","Paper","_Paper","Container","div","_ref3","side","hero","elevation","showNavigationItem","i","maxPageRange","PaginationItem","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","Hero","_category$childCatego","_StyledH","name","StyledMDXdWrapper","body","_category$articles","_category$seo","MetaSEO","createdAt","publishedAt","updatedAt","urlPart","Layout","breadCrumbTrail","showBreadCrumbBar","Side","isNotEmpty","ArticleGridHero","showCategory"],"sourceRoot":""}