1import{z as g,i as r,r as c,L as p,B as h,a as f,b as v,g as t,j as m,d as k,F as S}from"../entry/index-8d9c8467.js";import{n as d}from"./index-c767217f.js";import{_ as N,a as b}from"./sns-chat-fa3a48b3.js";const w={name:"ExistingMemberAuthenticationComplete",setup(){const o=r("authenticateStore"),s=r("commonStore"),n=c(""),e=c({});return{store:o,commonstore:s,snsToken:n,snsData:e}},mounted(){(JSON.parse(localStorage.getItem("userDetails"))||JSON.parse(localStorage.getItem("token")))&&this.$router.push({name:"Home"})},data:function(){return{showSNSfailModal:!1}},methods:{async loginWithNaver(){const o=this,s="eAITQ8DtMXLtMbR5km7D",n=localStorage.getItem("clbckUrl")+"/callback/naverlogin";await d.login(s,n).then(e=>{o.naverAuth=e,o.snsToken=e.access_token,d.getProfile(this.naverAuth.access_token).then(l=>{setTimeout(async()=>{o.snsData=l.response,o.snsData.naver=!0,await o.snsCall()},1500)})})},kakaoLogin(){let o=this;window.Kakao.Auth.login({success:function(s){window.Kakao.API.request({url:"/v2/user/me"}).then(function(n){o.snsData=n,o.snsCall()}).catch(function(n){}),o.snsToken=s.access_token},fail:function(s){}})},async snsCall(){let o={userName:this.snsData.naver?this.snsData.nickname:this.snsData.properties.nickname,accessToken:this.snsToken,emailId:this.snsData.naver?this.snsData.email:this.snsData.kakao_account.email,socialId:this.snsData.id.toString(),loginVia:"2",status:"1"};await p.snsLogin(o).then(s=>{this.store.methods.setToken(s.data.accessToken),this.$router.push({name:"Home"})}).catch(s=>{this.showSNSfailModal=!0})}}},D={class:"wrapper-innr"},M={class:"common-gap"},T={class:"container"},I={class:"login__area registration-area"},C={class:"registraion-box"},_={class:"login-btn member-btns"},$={class:"login-bttm-social"};function L(o,s,n,e,l,i){const u=h("SNSfailModal");return f(),v(S,null,[t("div",D,[t("div",M,[t("div",T,[t("div",I,[s[8]||(s[8]=t("div",{class:"login-heading"},[t("h2",null,"ë³¸ì¸ ì¸ì¦")],-1)),t("div",C,[s[5]||(s[5]=t("div",{class:"registration-cpmplete-text"},[t("h3",null,"기존íì ì¸ì¦ ìë£."),t("p",null,[m("기존íì ì¸ì¦ì´ ìë£ëììµëë¤. "),t("br"),m(" GS&POINT를 ì°ëíì¬ ê²°ì ì í¬ì¸í¸ ì¬ì© ë° ì 립 ííì ë°ìë³´ì¸ì!")])],-1)),t("div",_,[t("button",{type:"",onClick:s[0]||(s[0]=a=>o.$router.push({name:"LogIn"})),class:"btn outline"},"ë©ì¸ì¼ë¡ ì´ë"),s[4]||(s[4]=t("a",{href:"https://www.gsnpoint.com/Main/Main_Front.aspx",class:"btn"},"GS&POINT ì°ë",-1))])]),s[9]||(s[9]=t("div",{class:"simple-border-text mt-48"},[t("h4",null,"SNS ê°í¸ ë¡ê·¸ì¸ ì°ë")],-1)),s[10]||(s[10]=t("p",{class:"auth-text"},"SNS를 ì°ëíë©´ SNS ê°í¸ ë¡ê·¸ì¸ì´ ê°ë¥í©ëë¤.",-1)),t("div",$,[t("ul",null,[t("li",{onClick:s[1]||(s[1]=a=>i.loginWithNaver())},s[6]||(s[6]=[t("a",{href:"javascript:void(0);",class:"grn-btn"},[t("img",{src:N,alt:""}),t("span",null,"ë¤ì´ë²ë¡ ë¡ê·¸ì¸")],-1)])),t("li",{onClick:s[2]||(s[2]=a=>i.kakaoLogin())},s[7]||(s[7]=[t("a",{href:"javascript:void(0);",class:"ylw-btn"},[t("img",{src:b,alt:""}),t("span",null,"ì¹´ì¹´ì¤ ë¡ê·¸ì¸")],-1)]))])])])])])]),k(u,{isModal:o.showSNSfailModal,onConfirm:s[3]||(s[3]=a=>(o.showSNSfailModal=!1,o.$router.push({name:"LogIn"})))},null,8,["isModal"])],64)}const j=g(w,[["render",L]]);export{j as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.