{"version":3,"sources":["webpack:///./src/app/routes/the-post.js"],"names":["TitleSectionPage","loadable","fallback","TagPage","Article","RenderArticle","props","contentKey","useParams","ThePost","path","exact","render","section","sectionLabel","relatedSections","id","title","description","publication","label","oovvuu","url2section","location","pathname","url"],"mappings":"iPAMMA,EAAmBC,YAAS,CAAD,8JAAC,kBAAM,+DAAmC,sPAAE,CAC3EC,SAAU,EAAC,IAAiC,QAExCC,EAAWF,YAAS,CAAD,qJAAC,kBAAM,wDAA0B,uPACpDG,EAAUH,YAAS,CAAD,qJAAC,kBAAM,wEAA0B,sPAAE,CACzDC,SAAU,EAAC,IAAmB,QAG1BG,EAAgB,SAACC,GACrB,IAAQC,EAAeC,sBAAfD,WACR,OAAO,EAACH,EAAO,eAAKE,EAAK,CAAEC,WAAYA,MAGnCE,EAAU,SAACH,GAAK,OACpB,EAAC,SAAM,KACL,EAAC,QAAK,CAACI,KAAK,WAAWC,OAAK,EAACC,OAAQ,kBACnC,EAACZ,EAAgB,eAAKM,EAAK,CACzBO,QAAQ,UACRC,aAAa,WACbC,gBAAiB,CAAC,CAAEC,GAAI,gBAAkB,CAAEA,GAAI,iBAAmB,CAAEA,GAAI,mBAAqB,CAAEA,GAAI,qBACpGC,MAAM,WACNC,YAAY,IACZC,YAAY,iBAGhB,EAAC,QAAK,CAACT,KAAK,gBAAgBC,OAAK,EAACC,OAAQ,kBACxC,EAACZ,EAAgB,eAAKM,EAAK,CACzBO,QAAQ,eACRE,gBAAiB,CAAC,CAAEC,GAAI,UAAWI,MAAO,YAAc,CAAEJ,GAAI,iBAAmB,CAAEA,GAAI,mBAAqB,CAAEA,GAAI,qBAClHC,MAAM,WACNC,YAAY,IACZC,YAAY,iBAGhB,EAAC,QAAK,CAACT,KAAK,0BAA0BC,OAAK,EAACC,OAAQ,kBAClD,EAACZ,EAAgB,eAAKM,EAAK,CACzBO,QAAQ,yBACRI,MAAM,WACNC,YAAY,IACZC,YAAY,iBAGhB,EAAC,QAAK,CAACT,KAAK,iB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P,EAAa,eAAKC,EAAK,CAAEe,OAAO,6CAEnC,EAAC,QAAK,CAACX,KAAM,wEAAyEC,OAAK,EAACC,OAAQ,kBAClG,EAACP,EAAkBC,MAErB,EAAC,QAAK,CAACI,KAAM,+CAAgDC,OAAK,EAACC,OAAQ,kBACzE,EAACP,EAAkBC,MAErB,EAAC,QAAK,CAACI,KAAM,oCAAqCC,OAAK,EAACC,OAAQ,kBAC9D,EAACT,EAAO,eAAKG,EAAK,CAChBO,QAASS,sBAAYhB,EAAMiB,SAASC,UACpCC,IAAKnB,EAAMiB,SAASC,iBAMbf","file":"static/js/routes-the-post.b1ff20e7.chunk.js","sourcesContent":["import React from 'react'\nimport { Route, Switch, useParams } from 'react-router-dom'\nimport { url2section } from 'ion-sections'\nimport loadable from '@loadable/component'\nimport { DefaultSectionPageSkeletonWrapper, ArticlePageSkeleton } from '../components/Skeletons'\n\nconst TitleSectionPage = loadable(() => import('../pages/TitleSectionPage'), {\n fallback: <DefaultSectionPageSkeletonWrapper />\n})\nconst TagPage = loadable(() => import('../pages/TagPage'))\nconst Article = loadable(() => import('../pages/Article'), {\n fallback: <ArticlePageSkeleton />\n})\n\nconst RenderArticle = (props) => {\n const { contentKey } = useParams()\n return <Article {...props} contentKey={contentKey} />\n}\n\nconst ThePost = (props) => (\n <Switch>\n <Route path='/thepost' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost'\n sectionLabel='The Post'\n relatedSections={[{ id: 'thepost/news' }, { id: 'thepost/sport' }, { id: 'thepost/opinion' }, { id: 'thepost/features' }]}\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path='/thepost/news' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost/news'\n relatedSections={[{ id: 'thepost', label: 'The Post' }, { id: 'thepost/sport' }, { id: 'thepost/opinion' }, { id: 'thepost/features' }]}\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path='/thepost/community-news' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost/community-news'\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path='/thepost/sport' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost/sport'\n relatedSections={[{ id: 'thepost', label: 'The Post' }, { id: 'thepost/news' }, { id: 'thepost/opinion' }, { id: 'thepost/features' }]}\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path='/thepost/opinion' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost/opinion'\n relatedSections={[{ id: 'thepost', label: 'The Post' }, { id: 'thepost/news' }, { id: 'thepost/sport' }, { id: 'thepost/features' }]}\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path='/thepost/bollywood' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost/bollywood'\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path='/thepost/features' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost/features'\n relatedSections={[{ id: 'thepost', label: 'The Post' }, { id: 'thepost/news' }, { id: 'thepost/sport' }, { id: 'thepost/opinion' }]}\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path='/thepost/letters' exact render={() => (\n <TitleSectionPage {...props}\n section='thepost/letters'\n title='The Post'\n description='-'\n publication='The Post'\n />\n )} />\n <Route path={'/thepost/:section([a-zA-Z0-9-/]+)/:title*([-])*:contentKey([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})'} exact render={() => (\n <RenderArticle {...props} oovvuu='4c0314aa-87fa-4a57-8152-521cc269c23c' />\n )} />\n <Route path={'/thepost/:title*([-])*:contentKey([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})'} exact render={() => (\n <RenderArticle {...props} oovvuu='4c0314aa-87fa-4a57-8152-521cc269c23c' />\n )} />\n <Route path={'/thepost/:section([a-zA-Z0-9-/]+)/:title*([-])*:contentKey([0-9]{5,})'} exact render={() => (\n <RenderArticle {...props} />\n )} />\n <Route path={'/thepost/:title*([-])*:contentKey([0-9]{5,})'} exact render={() => (\n <RenderArticle {...props} />\n )} />\n <Route path={'/thepost/:section([a-zA-Z0-9-/]+)'} exact render={() => (\n <TagPage {...props}\n section={url2section(props.location.pathname)}\n url={props.location.pathname}\n />\n )} />\n </Switch>\n)\n\nexport default ThePost\n"],"sourceRoot":""}