{"size": 5730, "ext": "js", "max_stars_repo_path": "public/static/bundles/33.276bd0566d8bbaa4c91f.js", "max_stars_repo_name": "vinnieashken/elearning", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/static/bundles/33.276bd0566d8bbaa4c91f.js", "max_issues_repo_name": "vinnieashken/elearning", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/static/bundles/33.276bd0566d8bbaa4c91f.js", "max_forks_repo_name": "vinnieashken/elearning", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 5730.0, "max_line_length": 5730, "alphanum_fraction": 0.7019197208}
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{337:function(e,t,a){"use strict";a.r(t),function(e){var r=a(1),n=a.n(r),s=a(8),c=a(63),o=a(59),l=a(65),i=a.n(l),m=a(66),u=a.n(m),d=a(23),p=a(83),E=a.n(p);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],r=!0,n=!1,s=void 0;try{for(var c,o=e[Symbol.iterator]();!(r=(c=o.next()).done)&&(a.push(c.value),!t||a.length!==t);r=!0);}catch(e){n=!0,s=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw s}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(a);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var v=l.Search.SearchBar;t.default=function(t){var a=h(Object(r.useState)(!0),2),l=a[0],m=a[1],p=h(Object(r.useState)(!1),2),b=p[0],y=p[1],g=h(Object(r.useState)(""),2),w=g[0],S=g[1],N=h(Object(r.useState)(""),2),O=N[0],j=N[1],T=h(Object(r.useState)([]),2),x=T[0],F=T[1],C="".concat(window.origin).concat(t.history.location.pathname);Object(r.useEffect)((function(e){P()}),[]);var P=function(){e.ajax({url:"".concat(s.a,"/lessons/units"),method:"get",error:function(e){var t="Sorry an error has occurred.";500!==e.status&&e.hasOwnProperty("responseJSON")&&(t=e.responseJSON.message),m(!1),y(!0),S("alert alert-danger"),j(t)},success:function(e){F(e),m(!1)}})},A=function(e){var t=e.toLowerCase().replace(/[^\w ]+/g,"").replace(/ +/g,"-");return"".concat(t,"/vel")};return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"application"},n.a.createElement(c.Helmet,null,n.a.createElement("link",{rel:"canonical",href:C}),n.a.createElement("meta",{name:"keywords",content:"Tutorsoma Tu, Kenya, KCSE, KCPE, elearning, past revision papers, online courses, Education in Kenya, Maths, Science, Technology, English, Kiswahili"}),n.a.createElement("meta",{name:"author",content:"Standard Group"}),n.a.createElement("meta",{name:"description",content:"Tutorsoma Tu is an e-learning platform targeting students in the Kenya education system. Learn Maths, English, Kiswahili, Social Studies, Science and many more"}),n.a.createElement("meta",{property:"twitter:title",content:"Tutor-Soma Tu : Examination Papers : The Standard"}),n.a.createElement("meta",{property:"twitter:description",content:"Tutor-Soma Tu - Examination Papers "}),n.a.createElement("meta",{property:"twitter:url",content:C}),n.a.createElement("meta",{property:"og:title",content:"Tutor-Soma Tu : Examination Papers : The Standard"}),n.a.createElement("meta",{property:"og:description",content:"Tutor-Soma Tu - Examination Papers "}),n.a.createElement("meta",{property:"og:url",content:C}))),n.a.createElement("div",{id:"sliders"},n.a.createElement("div",{className:"full-width"},n.a.createElement("div",{className:"carousel slide",id:"light-slider"},n.a.createElement("div",{id:"carousel-area"},n.a.createElement("div",{className:"carousel slide","data-ride":"carousel",id:"carousel-slider"},n.a.createElement("div",{className:"carousel-inner smaller",role:"listbox"},n.a.createElement("div",{className:"carousel-item active"},n.a.createElement("img",{alt:"",src:"".concat(s.h,"/static/new/img/rendered.png"),style:{height:"76px",objectFit:"cover"}})))))))),n.a.createElement("div",{id:"about",className:"section-padding profile"},n.a.createElement("div",{className:"container"},n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"col-md-12"},n.a.createElement("h2",{className:"section-title wow fadeInDown animated text-center mt-5","data-wow-delay":"0.3s"},"Lessons"))),l?n.a.createElement(o.a,null):n.a.createElement(n.a.Fragment,null,b&&n.a.createElement("div",{className:w},n.a.createElement("div",{className:"alert-message"},O)),n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"col-md-12"},n.a.createElement(i.a,{keyField:"id",data:x.reverse(),columns:[{dataField:"id",text:"#",sort:!0,formatter:function(e,t,a){return a+1}},{dataField:"class",text:"Class",sort:!0},{dataField:"subject",text:"Subject",sort:!0},{dataField:"unit",text:"Unit",sort:!0},{dataField:"created_at",text:"Action",sort:!0,formatter:function(e,t){return n.a.createElement("div",{className:"button-group"},n.a.createElement(d.b,{to:"/school/units/".concat(t.id,"/lessons/").concat(A(t.unit)),className:"btn btn-sm btn-success mr-2"},"Open Lesson"),n.a.createElement(d.b,{to:"/school/units/".concat(t.id,"/questions/").concat(A(t.unit)),className:"btn btn-sm btn-success"},"Open Questions"))}}],search:!0},(function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"row  mb-3"},n.a.createElement("div",{className:"col-md-12"},n.a.createElement(v,f({className:"col-md-4 float-right mb-3"},e.searchProps)))),n.a.createElement(u.a,f({},e.baseProps,{headerWrapperClasses:"pt-0 shadowtable bg-danger",headerClasses:"border-0",rowClasses:"border-0",rowStyle:{borderRadius:"18px"},pagination:E()(),wrapperClasses:"table-responsive"})))})))))))))}}.call(this,a(58))}}]);