(this.webpackJsonpnewgirlreact=this.webpackJsonpnewgirlreact||[]).push([[0],{14:function(e,t,r){},16:function(e,t,r){"use strict";r.r(t);var c=r(0),i=r(1),n=r.n(i),s=r(7),a=r.n(s),o=r(8),d=r(3),u=r(4),l=r(6),p=r(5),h=(r(14),function(e){Object(l.a)(r,e);var t=Object(p.a)(r);function r(e){var c;return Object(d.a)(this,r),(c=t.call(this,e)).state={},c}return Object(u.a)(r,[{key:"render",value:function(){return Object(c.jsxs)("div",{className:"rcorners2",children:[Object(c.jsxs)("div",{id:"row",children:[Object(c.jsx)("div",{className:"col1",children:this.props.title}),Object(c.jsx)("div",{className:"col2",children:this.props.time})]}),Object(c.jsx)("div",{id:"row",children:Object(c.jsx)("div",{className:"script",children:this.props.script})})]})}}]),r}(i.Component)),j=function(e){Object(l.a)(r,e);var t=Object(p.a)(r);function r(e){var i;return Object(d.a)(this,r),(i=t.call(this,e)).doRequest=function(e){var t=this;fetch("https://hi3nx9am6k.execute-api.us-east-2.amazonaws.com/?quote="+this.state.quote).then((function(e){return e.json()})).then((function(e){t.setState({episodes:e})})),e.target.querySelector("input").blur()},i.renderTable=function(e,t){return Object(c.jsx)(h,{title:e.title,time:e.time,script:e.script},t)},i.state={quote:"",episodes:[]},i}return Object(u.a)(r,[{key:"updateInput",value:function(e,t){this.setState(Object(o.a)({},e,t))}},{key:"render",value:function(){var e=this;return Object(c.jsxs)("div",{className:"App",children:[Object(c.jsx)("div",{id:"header_wrapper",children:Object(c.jsx)("div",{id:"header_inner",children:Object(c.jsx)("div",{className:"search-wrapper",children:Object(c.jsx)("form",{autoComplete:"off",onSubmit:function(t){e.doRequest(t),t.preventDefault()},action:"#",children:Object(c.jsx)("input",{type:"text",id:"search-terms-bar",placeholder:"SEARCH ANY QUOTE...",value:this.state.quote,onChange:function(t){return e.updateInput("quote",t.target.value)}})})})})}),Object(c.jsx)("div",{style:{height:"15px",backgroundColor:"#cacaca"}}),Object(c.jsx)("div",{id:"body_wrapper",children:this.state.episodes.map(this.renderTable)}),Object(c.jsxs)("div",{className:"footer",children:["\xa9 2020 Patrick Copp | ",Object(c.jsx)("a",{rel:"noreferrer",href:"https://github.com/patrickcopp/newgirlreact",target:"_blank",children:"Source Code"})]})]})}}]),r}(i.Component);r(15),r.p;a.a.render(Object(c.jsx)(n.a.StrictMode,{children:Object(c.jsx)(j,{})}),document.getElementById("root"))}},[[16,1,2]]]); //# sourceMappingURL=main.0adbdbea.chunk.js.map