text: webpackJsonp([1],{98:function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function n(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=o.n(i),l=o(5),c=o.n(l),u=o(6),d=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),p=function(e){function t(e){r(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.state={shouldPageLoad:u.a.shouldWorkHistoryLoad(),workHistory:u.a.workHistory()},o}return n(t,e),d(t,[{key:"render",value:function(){var e=this;this.state.shouldPageLoad&&fetch(window.location.origin+"/get_work_history/",{method:"GET"}).then(function(e){if(e.ok)return e.json()}).then(function(t){localStorage.workHistory=t,localStorage.shouldWorkHistoryLoad=!1,e.setState({workHistory:u.a.workHistory(),shouldPageLoad:u.a.shouldWorkHistoryLoad()})});var t=[],o=this.state.workHistory,r=0;for(var a in o){var n=s.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:o[a].URL},o[a].Company),i=[],l=s.a.createElement(u.c,{header:[{head:n,colspan:2}],key:o[a].Company});i.push(s.a.createElement(u.d,{body:[{data:"Role",colspan:1},{data:o[a].Role,colspan:1}],key:o[a].Role})),i.push(s.a.createElement(u.d,{body:[{data:"Duration",colspan:1},{data:o[a].Duration,colspan:1}],key:o[a].Duration})),i.push(s.a.createElement(u.d,{body:[{data:"Description",colspan:1},{data:o[a].Description,colspan:1}],key:o[a].Description})),t.push(s.a.createElement(u.e,{theaders:l,tbody:i,key:r})),r+=1}return this.state.shouldPageLoad?s.a.createElement("p",null,"Loading ..."):s.a.createElement("div",null,s.a.createElement("div",{className:"background work-history-background"}),s.a.createElement("h1",{className:"page-heading"},"Work History"),s.a.createElement("div",{className:"table-container"},t))}}]),t}(i.Component);c.a.render(s.a.createElement(p,null),document.getElementById("workhistory-react-root"))}},[98]);