text: (window.webpackJsonp=window.webpackJsonp||[]).push([[27],{Pefm:function(e,t,a){"use strict";var n=a("wx14"),r=a("OZf9"),c=a("iuhU"),l=a("q1tI"),i=a.n(l),o=a("ICNK"),s=a("Y53p"),m=a("H+2d"),u=a("LrWZ"),d=a("MZgk"),p=a("D1pA");function b(e){var t=e.children,a=e.className,r=e.content,l=e.icon,d=Object(c.a)("divider",a),f=Object(o.a)(b,e),h=Object(s.a)(b,e);return Object(u.a)(l)?Object(u.a)(r)?i.a.createElement(h,Object(n.a)({},f,{className:d}),m.a.isNil(t)?"/":t):i.a.createElement(h,Object(n.a)({},f,{className:d}),r):p.a.create(l,{defaultProps:Object(n.a)({},f,{className:d}),autoGenerateKey:!1})}b.handledProps=["as","children","className","content","icon"],b.create=Object(d.e)(b,(function(e){return{icon:e}}));var f=b,h=a("dI71"),E=a("JpOH"),k=a("ZeOK"),v=function(e){function t(){for(var t,a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return(t=e.call.apply(e,[this].concat(n))||this).computeElementType=function(){var e=t.props,a=e.link,n=e.onClick;if(a||n)return"a"},t.handleClick=function(e){return Object(E.a)(t.props,"onClick",e,t.props)},t}return Object(h.a)(t,e),t.prototype.render=function(){var e=this.props,a=e.active,r=e.children,l=e.className,u=e.content,d=e.href,p=Object(c.a)(Object(k.a)(a,"active"),"section",l),b=Object(o.a)(t,this.props),f=Object(s.a)(t,this.props,this.computeElementType);return i.a.createElement(f,Object(n.a)({},b,{className:p,href:d,onClick:this.handleClick}),m.a.isNil(r)?u:r)},t}(l.Component);function O(e){var t=e.children,a=e.className,l=e.divider,u=e.icon,d=e.sections,p=e.size,b=Object(c.a)("ui",p,"breadcrumb",a),h=Object(o.a)(O,e),E=Object(s.a)(O,e);if(!m.a.isNil(t))return i.a.createElement(E,Object(n.a)({},h,{className:b}),t);var k=[];return Object(r.a)(d,(function(e,t){var a=v.create(e);if(k.push(a),t!==d.length-1){var n=a.key+"_divider"||!1;k.push(f.create({content:l,icon:u,key:n}))}})),i.a.createElement(E,Object(n.a)({},h,{className:b}),k)}v.handledProps=["active","as","children","className","content","href","link","onClick"],v.create=Object(d.e)(v,(function(e){return{content:e,link:!0}})),O.handledProps=["as","children","className","divider","icon","sections","size"],O.Divider=f,O.Section=v;t.a=O},bh40:function(e,t,a){"use strict";a.r(t);a("E9XD");var n=a("q1tI"),r=a.n(n),c=a("Pefm"),l=a("aQu0"),i=a("D1pA"),o=a("Wbzz"),s=a("Bl7J"),m=a("vrFN");t.default=function(e){var t=e.data.misconceptions.nodes,a=function(e){return"hsl(0, 0%, "+(100-(e+1)%2*5)+"%)"};return r.a.createElement(s.a,null,r.a.createElement(m.a,{title:"Textbooks Overview"}),r.a.createElement("div",{style:{marginLeft:"10px",marginTop:"50px",marginBottom:"50px"}},r.a.createElement(c.a,null,r.a.createElement(c.a.Section,{link:!0,as:o.Link,to:"/"},"Home"),r.a.createElement(c.a.Divider,{icon:"right chevron"}),r.a.createElement(c.a.Section,{link:!0,as:o.Link,to:"/overview"},"Overview"),r.a.createElement(c.a.Divider,{icon:"right chevron"}),r.a.createElement(c.a.Section,{active:!0},"Textbooks")),r.a.createElement(l.a,{as:"h1",dividing:!0},r.a.createElement(i.a,{name:"lightbulb"}),r.a.createElement(l.a.Content,null,"Textbooks",r.a.createElement(l.a.Subheader,null,t.length," Misconceptions, "," ",t.filter((function(e){return e.frontmatter.text})).length," mapped to Textbooks"))),r.a.createElement("table",null,r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,"Misconception"),r.a.createElement("th",null,"Language"),r.a.createElement("th",null,"Status"),r.a.createElement("th",null,"Textbooks"))),r.a.createElement("tbody",null,t.map((function(e,t){return r.a.createElement("tr",{key:e.fields.pl+"/"+e.fields.name},r.a.createElement("td",{style:{backgroundColor:a(t)}},r.a.createElement(o.Link,{to:"/misconceptions/"+e.fields.pl+"/"+e.fields.name+"/"},e.fields.name)),r.a.createElement("td",{style:{backgroundColor:a(t)}},e.fields.pl),r.a.createElement("td",{style:{backgroundColor:a(t)}},"draft"===e.frontmatter.status?r.a.createElement("span",{style:{color:"#e0e0e0"}},"draft"):e.frontmatter.status),r.a.createElement("td",{style:{backgroundColor:a(t)}},e.frontmatter.text?r.a.createElement("ul",null,e.frontmatter.text.map((function(e){return r.a.createElement("li",{key:e.id},r.a.createElement("b",null,r.a.createElement(o.Link,{to:"/textbooks/"+e.id},e.id))," — ",e.sections.reduce((function(t,a){return null===t?r.a.createElement(o.Link,{to:"/textbooks/"+e.id+"/"+a},a):r.a.createElement(r.a.Fragment,null,t,", ",r.a.createElement(o.Link,{to:"/textbooks/"+e.id+"/"+a},a))}),null))}))):null))}))))))}}}]);
  //# sourceMappingURL=component---src-pages-overview-textbooks-js-4d32549218fc6723d2a5.js.map