{"version":3,"sources":["webpack:///./src/pages/index.js"],"names":["route","routes","toc","path","urlCheck","value","demosMapper","BlogIndex","React","Component","componentDidMount","isApi","pathSplit","split","pop","push","join","render","createElement","Layout","location","this","props","Helmet","htmlAttributes","lang","meta","name","content","title"],"mappings":"2FAAA,WAWIA,EAXJ,sGAUIC,EAASC,IAEb,IAAK,IAAIC,KAAQF,EACf,IAAKG,mBAASD,GAAO,CACnBH,EAAQG,EACR,MAGJ,IAAIE,EAAQH,IAERI,EAAc,CAChB,mCAAoC,aACpC,8CAA+C,mBAC/C,2CAA4C,UAC5C,yCAA0C,QAC1C,uCAAwC,MACxC,yCAA0C,eAC1C,wCAAyC,cACzC,qCAAsC,oBAGxC,MAAMC,UAAkBC,IAAMC,UAC5BC,oBACE,GAAIC,QAAO,CACT,IAAIC,EAAYX,EAAO,GAAGY,MAAM,KAChCD,EAAUE,MACVC,eAAKH,EAAUI,KAAK,WAEpBD,eAAKf,GAITiB,SACE,OACET,IAAAU,cAACC,IAAM,CAACC,SAAUC,KAAKC,MAAMF,UAC3BZ,IAAAU,cAACK,IAAM,CACLC,eAAgB,CAAEC,KAAM,MACxBC,KAAM,CAAC,CAAEC,KAAM,cAAeC,QAAS,gBACvCC,MAAO,sBAAwBvB,EAAYD,GAAS,kCAO/CE","file":"component---src-pages-index-js-react.js","sourcesContent":["import React from 'react'\nimport { graphql } from 'gatsby'\nimport Helmet from 'react-helmet'\n\nimport Layout from '../components/layout'\nimport * as toc from '../../left-toc.json';\nimport { push } from \"../../node_modules/gatsby-link/index\";\nimport { isApi } from '../templates/site-config';\nimport { urlCheck } from '../templates/layout';\n\nvar routes = toc.path;\nvar route;\nfor (var path of routes) {\n  if (!urlCheck(path)) {\n    route = path;\n    break;\n  }\n}\nvar value = toc.demos;\n\nvar demosMapper = {\n  'https://ej2.syncfusion.com/demos': 'JavaScript',\n  'https://ej2.syncfusion.com/javascript/demos': 'JavaScript (ES5)',\n  'https://ej2.syncfusion.com/angular/demos': 'Angular',\n  'https://ej2.syncfusion.com/react/demos': 'React',\n  'https://ej2.syncfusion.com/vue/demos': 'Vue',\n  'https://ej2.syncfusion.com/aspnetcore/': 'ASP.NET Core',\n  'https://ej2.syncfusion.com/aspnetmvc/': 'ASP.NET MVC',\n  'https://ej2.syncfusion.com/blazor/': 'Blazor [Preview]'\n}\n\nclass BlogIndex extends React.Component {\n  componentDidMount() {\n    if (isApi) {\n      var pathSplit = routes[0].split('/');\n      pathSplit.pop();\n      push(pathSplit.join('/'));\n    } else {\n      push(route);\n    }\n  }\n\n  render() {\n    return (\n      <Layout location={this.props.location}>\n        <Helmet\n          htmlAttributes={{ lang: 'en' }}\n          meta={[{ name: 'description', content: 'Syncfusion ' }]}\n          title={'Essential JS 2 for ' + demosMapper[value] + ' | Syncfusion Documentation' }\n        />\n      </Layout>\n    )\n  }\n}\n\nexport default BlogIndex\n\nexport const pageQuery = graphql`\nquery {\n  allMarkdownRemark {\n    edges { \n      node {\n        fields {\n          slug\n        }\n      }\n    }\n  }\n}\n`\n"],"sourceRoot":""}