{"version":3,"sources":["components/Skeletons/SkeletonText.js","../node_modules/@material-ui/core/esm/Divider/Divider.js","../node_modules/@material-ui/core/esm/Card/Card.js","../node_modules/@material-ui/core/esm/CardContent/CardContent.js","../node_modules/@material-ui/lab/esm/Skeleton/Skeleton.js","components/CategoryBadge/CategoryBadge.js","components/FeaturedCategories/FeaturedCategory/FeaturedCategoryHeader.js","components/Skeletons/SkeletonRect.js","components/FeaturedCategories/FeaturedCategory/FeaturedCategoryContents/FeaturedCategoryContent.js","components/FeaturedCategories/FeaturedCategory/FeaturedCategoryContents/FeaturedCategoryContents.js","components/FeaturedCategories/FeaturedCategory/FeaturedCategory.js","components/FeaturedCategories/FeaturedAdvertisement.js","components/FeaturedCategories/FeaturedCategories.js"],"names":["SkeletonText","width","height","variant","animation","Divider","React","props","ref","_props$absolute","absolute","classes","className","_props$component","component","Component","_props$flexItem","flexItem","_props$light","light","_props$orientation","orientation","_props$role","role","undefined","_props$variant","other","_objectWithoutProperties","_extends","clsx","root","vertical","withStyles","theme","margin","border","flexShrink","backgroundColor","palette","divider","position","bottom","left","inset","marginLeft","alpha","middle","spacing","marginRight","alignSelf","name","Card","_props$raised","raised","Paper","elevation","overflow","CardContent","padding","paddingBottom","Skeleton","_props$animation","hasChildren","Boolean","children","withChildren","fitContent","heightAuto","style","display","text","primary","type","marginTop","marginBottom","transformOrigin","transform","borderRadius","shape","content","rect","circle","pulse","opacity","wave","background","concat","action","hover","right","top","visibility","maxWidth","CategoryBadge","slug","Link","to","size","colors","lightBlue","color","textDecoration","boxShadow","textTransform","fontSize","FeaturedCategoryHeader","Grid","container","justify","alignItems","item","Typography","SkeletonRect","useStyles","makeStyles","link","image","backgroundSize","backgroundPositionX","backgroundPositionY","backgroundRepeat","titleAndAuthor","paddingLeft","FeaturedCategoryContent","direction","xs","backgroundImage","thumbnailSizeImageUrl","title","author","shortenFullName","FeaturedCategoryContents","contents","map","c","key","id","FeaturedCategory","category","sm","lg","cursor","FeaturedAdvertisement","advertisement","advertisementService","useAdvertisementService","useCancelToken","token","cancelToken","useEffect","src","imageUrl","onClick","Update","window","open","targetUrl","initialCategoriesState","FeaturedCategories","useState","categories","setCategories","advertisements","setAdvertisements","categoriesService","useCategoriesService","GetFeaturedCategories","then","r","featuredCategoryContents","length","i","adsRender","filter","a","priority"],"mappings":"qHAAA,6BAceA,IAXf,SAAsB,GAAoB,IAAlBC,EAAK,EAALA,MAAOC,EAAM,EAANA,OAC7B,OACE,kBAAC,IAAQ,CACPC,QAAQ,OACRF,MAAOA,GAAgB,OACvBC,OAAQA,GAAkB,GAC1BE,WAAW,M,iCCTjB,+CAwDIC,EAAuBC,cAAiB,SAAiBC,EAAOC,GAClE,IAAIC,EAAkBF,EAAMG,SACxBA,OAA+B,IAApBD,GAAqCA,EAChDE,EAAUJ,EAAMI,QAChBC,EAAYL,EAAMK,UAClBC,EAAmBN,EAAMO,UACzBC,OAAiC,IAArBF,EAA8B,KAAOA,EACjDG,EAAkBT,EAAMU,SACxBA,OAA+B,IAApBD,GAAqCA,EAChDE,EAAeX,EAAMY,MACrBA,OAAyB,IAAjBD,GAAkCA,EAC1CE,EAAqBb,EAAMc,YAC3BA,OAAqC,IAAvBD,EAAgC,aAAeA,EAC7DE,EAAcf,EAAMgB,KACpBA,OAAuB,IAAhBD,EAAuC,OAAdP,EAAqB,iBAAcS,EAAYF,EAC/EG,EAAiBlB,EAAMJ,QACvBA,OAA6B,IAAnBsB,EAA4B,YAAcA,EACpDC,EAAQC,YAAyBpB,EAAO,CAAC,WAAY,UAAW,YAAa,YAAa,WAAY,QAAS,cAAe,OAAQ,YAE1I,OAAoBD,gBAAoBS,EAAWa,YAAS,CAC1DhB,UAAWiB,YAAKlB,EAAQmB,KAAMlB,EAAuB,cAAZT,GAA2BQ,EAAQR,GAAUO,GAAYC,EAAQD,SAAUO,GAAYN,EAAQM,SAAUE,GAASR,EAAQQ,MAAuB,aAAhBE,GAA8BV,EAAQoB,UAChNR,KAAMA,EACNf,IAAKA,GACJkB,O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kBA,EAAeQ,OAAS,IAC5CE,EAAYV,EACTW,QAAO,SAAAC,GAAC,OAAIA,EAAEC,WAAaJ,KAC3BtC,KAAI,SAAAyC,GAAC,OAAI,kBAAC,EAAqB,CAACvC,IAAKuC,EAAEtC,GAAIO,cAAe+B,QAI7D,kBAAC,WAAQ,CAACvC,IAAKD,EAAEI,SAASF,IACvBoC,EACD,kBAAC,EAAgB,CAAClC,SAAUJ,EAAEI,SAAUN,SAAUE,EAAEF,eAI3D8B,GACCA,EAAeQ,OAAS,GACxBR,EACGW,QAAO,SAAAC,GAAC,OAAIA,EAAEC,UAAYf,EAAWU,UACrCrC,KAAI,SAAAyC,GAAC,OAAI,kBAAC,EAAqB,CAACvC,IAAKuC,EAAEtC,GAAIO,cAAe+B","file":"static/js/28.38b03851.chunk.js","sourcesContent":["import React from \"react\";\nimport Skeleton from \"@material-ui/lab/Skeleton\";\n\nfunction SkeletonText({ width, height }) {\n return (\n \n );\n}\n\nexport default SkeletonText;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport { alpha } from '../styles/colorManipulator';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n height: 1,\n margin: 0,\n // Reset browser default style.\n border: 'none',\n flexShrink: 0,\n backgroundColor: theme.palette.divider\n },\n\n /* Styles applied to the root element if `absolute={true}`. */\n absolute: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%'\n },\n\n /* Styles applied to the root element if `variant=\"inset\"`. */\n inset: {\n marginLeft: 72\n },\n\n /* Styles applied to the root element if `light={true}`. */\n light: {\n backgroundColor: alpha(theme.palette.divider, 0.08)\n },\n\n /* Styles applied to the root element if `variant=\"middle\"`. */\n middle: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n },\n\n /* Styles applied to the root element if `orientation=\"vertical\"`. */\n vertical: {\n height: '100%',\n width: 1\n },\n\n /* Styles applied to the root element if `flexItem={true}`. */\n flexItem: {\n alignSelf: 'stretch',\n height: 'auto'\n }\n };\n};\nvar Divider = /*#__PURE__*/React.forwardRef(function Divider(props, ref) {\n var _props$absolute = props.absolute,\n absolute = _props$absolute === void 0 ? false : _props$absolute,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'hr' : _props$component,\n _props$flexItem = props.flexItem,\n flexItem = _props$flexItem === void 0 ? false : _props$flexItem,\n _props$light = props.light,\n light = _props$light === void 0 ? false : _props$light,\n _props$orientation = props.orientation,\n orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,\n _props$role = props.role,\n role = _props$role === void 0 ? Component !== 'hr' ? 'separator' : undefined : _props$role,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'fullWidth' : _props$variant,\n other = _objectWithoutProperties(props, [\"absolute\", \"classes\", \"className\", \"component\", \"flexItem\", \"light\", \"orientation\", \"role\", \"variant\"]);\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, variant !== 'fullWidth' && classes[variant], absolute && classes.absolute, flexItem && classes.flexItem, light && classes.light, orientation === 'vertical' && classes.vertical),\n role: role,\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Divider.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Absolutely position the element.\n */\n absolute: PropTypes.bool,\n\n /**\n * @ignore\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, a vertical divider will have the correct height when used in flex container.\n * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)\n */\n flexItem: PropTypes.bool,\n\n /**\n * If `true`, the divider will have a lighter color.\n */\n light: PropTypes.bool,\n\n /**\n * The divider orientation.\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n\n /**\n * @ignore\n */\n role: PropTypes.string,\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['fullWidth', 'inset', 'middle'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiDivider'\n})(Divider);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Paper from '../Paper';\nimport withStyles from '../styles/withStyles';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n overflow: 'hidden'\n }\n};\nvar Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$raised = props.raised,\n raised = _props$raised === void 0 ? false : _props$raised,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"raised\"]);\n\n return /*#__PURE__*/React.createElement(Paper, _extends({\n className: clsx(classes.root, className),\n elevation: raised ? 8 : 1,\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Card.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * If `true`, the card will use raised styling.\n */\n raised: PropTypes.bool\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiCard'\n})(Card);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n padding: 16,\n '&:last-child': {\n paddingBottom: 24\n }\n }\n};\nvar CardContent = /*#__PURE__*/React.forwardRef(function CardContent(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'div' : _props$component,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"component\"]);\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? CardContent.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiCardContent'\n})(CardContent);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { alpha, withStyles } from '@material-ui/core/styles';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n display: 'block',\n // Create a \"on paper\" color with sufficient contrast retaining the color\n backgroundColor: alpha(theme.palette.text.primary, theme.palette.type === 'light' ? 0.11 : 0.13),\n height: '1.2em'\n },\n\n /* Styles applied to the root element if `variant=\"text\"`. */\n text: {\n marginTop: 0,\n marginBottom: 0,\n height: 'auto',\n transformOrigin: '0 60%',\n transform: 'scale(1, 0.60)',\n borderRadius: theme.shape.borderRadius,\n '&:empty:before': {\n content: '\"\\\\00a0\"'\n }\n },\n\n /* Styles applied to the root element if `variant=\"rect\"`. */\n rect: {},\n\n /* Styles applied to the root element if `variant=\"circle\"`. */\n circle: {\n borderRadius: '50%'\n },\n\n /* Styles applied to the root element if `animation=\"pulse\"`. */\n pulse: {\n animation: '$pulse 1.5s ease-in-out 0.5s infinite'\n },\n '@keyframes pulse': {\n '0%': {\n opacity: 1\n },\n '50%': {\n opacity: 0.4\n },\n '100%': {\n opacity: 1\n }\n },\n\n /* Styles applied to the root element if `animation=\"wave\"`. */\n wave: {\n position: 'relative',\n overflow: 'hidden',\n '&::after': {\n animation: '$wave 1.6s linear 0.5s infinite',\n background: \"linear-gradient(90deg, transparent, \".concat(theme.palette.action.hover, \", transparent)\"),\n content: '\"\"',\n position: 'absolute',\n transform: 'translateX(-100%)',\n // Avoid flash during server-side hydration\n bottom: 0,\n left: 0,\n right: 0,\n top: 0\n }\n },\n '@keyframes wave': {\n '0%': {\n transform: 'translateX(-100%)'\n },\n '60%': {\n // +0.5s of delay between each loop\n transform: 'translateX(100%)'\n },\n '100%': {\n transform: 'translateX(100%)'\n }\n },\n\n /* Styles applied when the component is passed children. */\n withChildren: {\n '& > *': {\n visibility: 'hidden'\n }\n },\n\n /* Styles applied when the component is passed children and no width. */\n fitContent: {\n maxWidth: 'fit-content'\n },\n\n /* Styles applied when the component is passed children and no height. */\n heightAuto: {\n height: 'auto'\n }\n };\n};\nvar Skeleton = /*#__PURE__*/React.forwardRef(function Skeleton(props, ref) {\n var _props$animation = props.animation,\n animation = _props$animation === void 0 ? 'pulse' : _props$animation,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'span' : _props$component,\n height = props.height,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'text' : _props$variant,\n width = props.width,\n other = _objectWithoutProperties(props, [\"animation\", \"classes\", \"className\", \"component\", \"height\", \"variant\", \"width\"]);\n\n var hasChildren = Boolean(other.children);\n return /*#__PURE__*/React.createElement(Component, _extends({\n ref: ref,\n className: clsx(classes.root, classes[variant], className, hasChildren && [classes.withChildren, !width && classes.fitContent, !height && classes.heightAuto], animation !== false && classes[animation])\n }, other, {\n style: _extends({\n width: width,\n height: height\n }, other.style)\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Skeleton.propTypes = {\n /**\n * The animation.\n * If `false` the animation effect is disabled.\n */\n animation: PropTypes.oneOf(['pulse', 'wave', false]),\n\n /**\n * Optional children to infer width and height from.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * Height of the skeleton.\n * Useful when you don't want to adapt the skeleton to a text element but for instance a card.\n */\n height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n\n /**\n * The type of content that will be rendered.\n */\n variant: PropTypes.oneOf(['text', 'rect', 'circle']),\n\n /**\n * Width of the skeleton.\n * Useful when the skeleton is inside an inline element with no width of its own.\n */\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiSkeleton'\n})(Skeleton);","import React from \"react\";\nimport Button from \"@material-ui/core/Button\";\nimport { Typography } from \"@material-ui/core\";\nimport { colors } from \"../../utility/Themes/colors\";\nimport { Link } from \"react-router-dom\";\n\nfunction CategoryBadge({ slug, children }) {\n return (\n \n );\n}\n\nexport default CategoryBadge;\n","import React from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport CategoryBadge from \"../../CategoryBadge/CategoryBadge\";\nimport Typography from \"@material-ui/core/Typography\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport SkeletonText from \"../../Skeletons/SkeletonText\";\n\nfunction FeaturedCategoryHeader({ slug, name }) {\n return (\n \n \n \n {name ? {name} : }\n \n \n {name ? (\n Öne Çıkanlar\n ) : (\n \n )}\n \n \n \n );\n}\n\nexport default FeaturedCategoryHeader;\n","import React from \"react\";\nimport Skeleton from \"@material-ui/lab/Skeleton\";\n\nfunction SkeletonRect({ width, height, children }) {\n return (\n \n {children}\n \n );\n}\n\nexport default SkeletonRect;\n","import React from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport { makeStyles } from \"@material-ui/core\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { Link } from \"react-router-dom\";\nimport SkeletonText from \"../../../Skeletons/SkeletonText\";\nimport SkeletonRect from \"../../../Skeletons/SkeletonRect\";\n\nconst useStyles = makeStyles({\n link: {\n textDecoration: \"none\"\n },\n\n image: {\n height: \"4rem\",\n backgroundSize: \"cover\",\n backgroundPositionX: \"center\",\n backgroundPositionY: \"top\",\n backgroundRepeat: \"no-repeat\"\n },\n\n titleAndAuthor: {\n paddingLeft: \"1rem\"\n }\n});\n\nfunction FeaturedCategoryContent({ content }) {\n const classes = useStyles();\n\n return (\n \n {content.slug ? (\n \n ) : (\n \n \n \n )}\n \n \n {content.slug ? (\n \n {content.title}\n \n ) : (\n \n )}\n {content.author ? (\n \n {content.author.shortenFullName}\n \n ) : (\n \n )}\n \n \n \n );\n}\n\nexport default FeaturedCategoryContent;\n","import React from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport FeaturedCategoryContent from \"./FeaturedCategoryContent\";\n\nfunction FeaturedCategoryContents({ contents }) {\n return (\n \n \n {contents.map(c => (\n \n \n \n ))}\n \n \n );\n}\n\nexport default FeaturedCategoryContents;\n","import React from \"react\";\nimport Card from \"@material-ui/core/Card\";\nimport FeaturedCategoryHeader from \"./FeaturedCategoryHeader\";\nimport FeaturedCategoryContents from \"./FeaturedCategoryContents/FeaturedCategoryContents\";\nimport Divider from \"@material-ui/core/Divider\";\nimport Grid from \"@material-ui/core/Grid\";\nimport { makeStyles } from \"@material-ui/core\";\n\nconst useStyles = makeStyles({\n container: {\n width: \"100%\"\n }\n});\n\nfunction FeaturedCategory({ category, contents }) {\n const classes = useStyles();\n\n return (\n \n \n \n \n \n \n \n );\n}\n\nexport default FeaturedCategory;\n","import React, { useEffect } from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport { makeStyles } from \"@material-ui/core\";\nimport { useAdvertisementService } from \"../../services/AdvertisementService\";\nimport { useCancelToken } from \"../../services/AxiosService\";\n\nconst useStyles = makeStyles({\n container: {\n width: \"100%\"\n },\n\n image: {\n width: \"100%\",\n \"&:hover\": {\n cursor: \"pointer\"\n }\n }\n});\n\nfunction FeaturedAdvertisement({ advertisement }) {\n const classes = useStyles();\n\n const advertisementService = useAdvertisementService();\n const [token, cancelToken] = useCancelToken();\n\n useEffect(() => {\n return function cleanup() {\n cancelToken();\n };\n }, []);\n\n function handleAdClick() {\n advertisementService.Update(token, advertisement.id);\n window.open(advertisement.targetUrl);\n }\n\n return (\n \n
\n \n );\n}\n\nexport default FeaturedAdvertisement;\n","import React, { Fragment, useEffect, useState } from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport { useCategoriesService } from \"../../services/CategoriesService\";\nimport FeaturedCategory from \"./FeaturedCategory/FeaturedCategory\";\nimport { useCancelToken } from \"../../services/AxiosService\";\nimport FeaturedAdvertisement from \"./FeaturedAdvertisement\";\n\nconst initialCategoriesState = [\n {\n category: {\n id: 1\n },\n contents: [\n {\n id: 1\n },\n {\n id: 2\n },\n {\n id: 3\n },\n {\n id: 4\n },\n {\n id: 5\n }\n ]\n },\n {\n category: {\n id: 2\n },\n contents: [\n {\n id: 1\n },\n {\n id: 2\n },\n {\n id: 3\n },\n {\n id: 4\n },\n {\n id: 5\n }\n ]\n },\n {\n category: {\n id: 3\n },\n contents: [\n {\n id: 1\n },\n {\n id: 2\n },\n {\n id: 3\n },\n {\n id: 4\n },\n {\n id: 5\n }\n ]\n },\n {\n category: {\n id: 4\n },\n contents: [\n {\n id: 1\n },\n {\n id: 2\n },\n {\n id: 3\n },\n {\n id: 4\n },\n {\n id: 5\n }\n ]\n }\n];\n\nfunction FeaturedCategories() {\n const [categories, setCategories] = useState(initialCategoriesState);\n const [advertisements, setAdvertisements] = useState(null);\n const categoriesService = useCategoriesService();\n const [token, cancelToken] = useCancelToken();\n\n useEffect(() => {\n categoriesService.GetFeaturedCategories(token).then(r => {\n setCategories(r.featuredCategoryContents);\n setAdvertisements(r.advertisements);\n });\n\n return function cleanup() {\n cancelToken();\n };\n }, []);\n\n return (\n \n {categories &&\n categories.length > 0 &&\n categories.map((c, i) => {\n let adsRender;\n\n if (advertisements && advertisements.length > 0) {\n adsRender = advertisements\n .filter(a => a.priority === i)\n .map(a => );\n }\n\n return (\n \n {adsRender}\n \n \n );\n })}\n {advertisements &&\n advertisements.length > 0 &&\n advertisements\n .filter(a => a.priority >= categories.length)\n .map(a => )}\n \n );\n}\n\nexport default FeaturedCategories;\n"],"sourceRoot":""}