(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f886c7e"],{"0301":function(e,t,n){"use strict";n.r(t);n("e7e5");var r=n("d399"),a=n("1da1"),c=(n("96cf"),n("ac1f"),n("5319"),n("caad"),n("2532"),n("d3b7"),n("3ca3"),n("ddb0"),n("9861"),n("e9c4"),n("cee4")),i=n("852e"),o=n.n(i),u=n("6c02"),d=n("5502"),s=n("365c"),f={setup:function(e){var t=Object(u["c"])(),n=Object(u["d"])(),i=Object(d["b"])(),f=t.query.code;if(f){var p="1661025693",l="";l=i.state.domain.includes("localhost")?"http://"+i.state.domain+":8080/home/linelogin":"https://"+i.state.domain+"/home/linelogin",c["a"].post("https://api.line.me/oauth2/v2.1/token",new URLSearchParams({grant_type:"authorization_code",code:f,redirect_uri:l,client_id:p,client_secret:"914cc067cb11ffbd47640de8f3f4a00a"}),{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["i"])({token:t.data.id_token});case 2:a=e.sent,200==a.code?(o.a.set("token",a.data.token,{expires:365,domain:i.state.sso_domain}),o.a.set("uid",a.data.uid,{expires:365,domain:i.state.sso_domain}),Object(r["a"])("登入成功"),n.push("/")):201==a.code&&(sessionStorage.setItem("reg",JSON.stringify(t.data)),n.push({name:"Register",query:{type:"line"}}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){Object(r["a"])("登入失敗"),n.push("/login")}))}else n.replace("/login");return function(e,t){return null}}};const p=f;t["default"]=p},2532:function(e,t,n){"use strict";var r=n("23e7"),a=n("e330"),c=n("5a34"),i=n("1d80"),o=n("577e"),u=n("ab13"),d=a("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~d(o(i(this)),o(c(e)),arguments.length>1?arguments[1]:void 0)}})},"5a34":function(e,t,n){var r=n("da84"),a=n("44e7"),c=r.TypeError;e.exports=function(e){if(a(e))throw c("The method doesn't accept regular expressions");return e}},ab13:function(e,t,n){var r=n("b622"),a=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,"/./"[e](t)}catch(r){}}return!1}},caad:function(e,t,n){"use strict";var r=n("23e7"),a=n("4d64").includes,c=n("44d2");r({target:"Array",proto:!0},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),c("includes")},e9c4:function(e,t,n){var r=n("23e7"),a=n("da84"),c=n("d066"),i=n("2ba4"),o=n("e330"),u=n("d039"),d=a.Array,s=c("JSON","stringify"),f=o(/./.exec),p=o("".charAt),l=o("".charCodeAt),h=o("".replace),g=o(1..toString),m=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,y=function(e,t,n){var r=p(n,t-1),a=p(n,t+1);return f(b,e)&&!f(v,a)||f(v,e)&&!f(b,r)?"\\u"+g(l(e,0),16):e},w=u((function(){return'"\\udf06\\ud834"'!==s("\udf06\ud834")||'"\\udead"'!==s("\udead")}));s&&r({target:"JSON",stat:!0,forced:w},{stringify:function(e,t,n){for(var r=0,a=arguments.length,c=d(a);r<a;r++)c[r]=arguments[r];var o=i(s,null,c);return"string"==typeof o?h(o,m,y):o}})}}]);
//# sourceMappingURL=chunk-2f886c7e.656338c6.js.map