text: (this.webpackJsonpwebnovel=this.webpackJsonpwebnovel||[]).push([[0],{41:function(t,e,n){},42:function(t,e,n){},69:function(t,e,n){},71:function(t,e,n){},72:function(t,e,n){"use strict";n.r(e);var a=n(0),r=n.n(a),s=n(17),o=n.n(s),c=(n(41),n(14)),i=n(8),u=n(9),l=n(11),p=n(10),j=n(2),h=(n(42),n(1)),b=function(t){Object(l.a)(n,t);var e=Object(p.a)(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(u.a)(n,[{key:"render",value:function(){return Object(h.jsx)("header",{children:Object(h.jsx)(c.b,{to:"/",children:Object(h.jsx)("span",{class:"logo",children:"Shorter"})})})}}]),n}(a.Component),d=n(16),O=n.n(d),f=n(34),x=n(23),v=n(15),g=n(35),m=n.n(g),y=n(74),k=n(18),C=(n(68),n(69),function(t){Object(l.a)(n,t);var e=Object(p.a)(n);function n(){var t;return Object(i.a)(this,n),(t=e.call(this)).state={input:"",output:"",outputBeforeTlanslate:"",outputAfterTlanslate:"",loading:!1,story:""},t.handleChange=t.handleChange.bind(Object(v.a)(t)),t.requestcontents=t.requestcontents.bind(Object(v.a)(t)),t}return Object(u.a)(n,[{key:"handleChange",value:function(){var t=Object(x.a)(O.a.mark((function t(e){return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.setState(Object(f.a)({},e.target.name,e.target.value));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"requestcontents",value:function(){var t=Object(x.a)(O.a.mark((function t(e){var n,a=this;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!=(n=this.state.story)){t.next=4;break}return k.b.error("\ub0b4\uc6a9\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694!",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}),t.abrupt("return");case 4:this.setState({loading:!0}),m.a.post("".concat("https://appplatform.cafe24.com/api/v1","/short"),{Story:n},{headers:{timeout:1e5}}).then((function(t){console.log(t.data),a.setState({outputAfterTlanslate:t.data[0]}),a.setState({outputBeforeTlanslate:t.data[1]}),a.setState({loading:!1})})).catch((function(t){412===t.response.status&&(a.setState({loading:!1}),k.b.error("\ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694!",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}))}));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"render",value:function(){return Object(h.jsxs)(a.Fragment,{children:[Object(h.jsx)("div",{class:"mainpage",children:Object(h.jsxs)("div",{class:"main",children:[this.state.loading?Object(h.jsxs)("div",{class:"loading",children:[" ",Object(h.jsx)(y.a,{size:"8px",color:"#3b2479"})," "]}):null,Object(h.jsx)("textarea",{class:"sub_input_text",value:this.state.story,onChange:this.handleChange,name:"story",placeholder:"\ub0b4\uc6a9"}),Object(h.jsx)("button",{class:"start",onClick:this.requestcontents,children:"\uc694\uc57d"}),Object(h.jsxs)("div",{class:"outputDiv",children:[Object(h.jsx)("textarea",{class:"output",value:this.state.outputAfterTlanslate,onChange:this.handleStory,readOnly:!0}),Object(h.jsx)("textarea",{class:"output_right",value:this.state.outputBeforeTlanslate,readOnly:!0})]})]})}),Object(h.jsx)(k.a,{position:"top-right",autoClose:3e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!1,draggable:!0,pauseOnHover:!0})]})}}]),n}(a.Component)),S=(n(71),function(t){Object(l.a)(n,t);var e=Object(p.a)(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(u.a)(n,[{key:"render",value:function(){return Object(h.jsx)("footer",{children:Object(h.jsxs)("p",{class:"info",children:[Object(h.jsx)("a",{href:"mailto:support@appplatform.co.kr",class:"email",children:"support@appplatform.co.kr "}),"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0",Object(h.jsx)("a",{href:"https://www.notion.so/appplatform/d99f247a66d141bbbdf227739861a0a2",class:"email",children:" \uac1c\uc778\uc815\ubcf4 \ucc98\ub9ac\ubc29\uce68"}),Object(h.jsx)("br",{}),"Address: #702 BS B/D seocho-daero 334 ,Seocho-gu, Seoul, Korea",Object(h.jsx)("br",{}),"\u321cAppplatform 115-87-01388 \ub300\ud45c \uae40\ucd98\ub0a8 115-87-01388  02-6959-4330",Object(h.jsx)("br",{}),"\xa9Appplatform, Inc All Rights Reserved"]})})}}]),n}(a.Component)),w=function(){return Object(h.jsxs)("div",{children:[Object(h.jsx)(b,{}),Object(h.jsx)(C,{}),Object(h.jsx)(S,{})]})},B=function(t){Object(l.a)(n,t);var e=Object(p.a)(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(u.a)(n,[{key:"render",value:function(){return Object(h.jsx)("div",{children:Object(h.jsx)(j.a,{exact:!0,path:"/",component:w})})}}]),n}(a.Component),A=function(){return Object(h.jsx)(c.a,{children:Object(h.jsx)(B,{})})};o.a.render(Object(h.jsx)(r.a.StrictMode,{children:Object(h.jsx)(A,{})}),document.getElementById("root"))}},[[72,1,2]]]);
  //# sourceMappingURL=main.6066d4d1.chunk.js.map