(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9b4c247a"],{"735e":function(t,s,a){},"7f5a":function(t,s,a){"use strict";a("dc23")},c283:function(t,s,a){"use strict";a.r(s);var e=a("8336"),i=a("b0af"),r=a("99d9"),l=a("ac7c"),n=a("62ad"),c=a("169a"),o=a("132d"),d=a("67b6"),_=a("43a6"),m=a("0fd9"),p=a("b974"),h=a("8dd9"),u=a("8654"),y=a("3a2f"),g=a("dc22"),b=function(){var t=this,s=t._self._c;return s(m["a"],{staticClass:"w-100 h-100 white mgauto over-y-scroll",attrs:{id:"joinvue",align:"center",justify:"center"}},[s(n["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s(h["a"],{staticClass:"pt-3 px-0 h-100",attrs:{color:"white"}},[s("div",[s("div",{staticClass:"dotted mr-2"}),s("h2",{staticClass:"d-inline-block title"},[s("b",{staticClass:"menu-title"},[t._v("정식 가입")])]),s("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[s("small",[t._v(" 내공스터디 프로그램 정식 가입을 신청합니다. ")])])]),s("div",{staticClass:"border-ede thin-t my-2"}),s("section",{staticClass:"pt-6 px-0"},[s(m["a"],{staticClass:"w-100 mgauto"},[s(n["a"],{staticClass:"pa-0 text-center",attrs:{cols:"12"}},[s("span",{staticClass:"gmfont fw-800",staticStyle:{"font-size":"3rem","letter-spacing":"-3px",color:"#2cbb65"}},[t._v("\n 내공스터디 정식 가입\n ")])]),s(n["a"],{staticClass:"pa-0 text-center",attrs:{cols:"12"}},[s("span",{staticClass:"gmfont black--text fw-700",staticStyle:{"font-size":"1.7rem","letter-spacing":"-2px"}},[t._v("\n "+t._s(t.status_text)+"\n ")]),s("br"),s("span",{staticClass:"gmfont fw-700 usn err_text",class:!t.sel_product&&t.next_cnt>0?"red--text":"white--text",staticStyle:{"font-size":"1.2rem","letter-spacing":"-0.5px"}},[t._v("\n (상품을 선택하세요.)\n ")])]),s(n["a"],{staticClass:"px-0 py-0",attrs:{cols:"12"}},[s(m["a"],{directives:[{name:"show",rawName:"v-show",value:1==t.step,expression:"step == 1"}],staticClass:"w-100 mgauto"},[s(n["a"],{attrs:{cols:"1"}}),t.prom_status?t.prom_status?[s(n["a"],{attrs:{cols:"10"}},[s("div",{staticClass:"product d-block cursor mgauto",staticStyle:{width:"18rem"},on:{click:function(s){return t.selectProduct(1)}}},[s("div",{staticClass:"p-card-top pt-6 pb-5 px-6 text-center ls-m-2"},[s("span",{staticClass:"gmfont fw-800 white--text",staticStyle:{"font-size":"1.8rem"}},[t._v("\n "+t._s(t.prom_product_name)+"\n ")]),s("div",{staticClass:"border-ede thin-t my-2 mgauto",staticStyle:{width:"80%"},attrs:{id:"divider-1"}}),s("span",{staticClass:"gmfont fw-700 white--text",staticStyle:{"font-size":"2rem"}},[t._v("\n "+t._s(Number(t.prom_product_price).toLocaleString())+"원"),s("small",[t._v("/월")])])]),s("div",{staticClass:"p-card-bot py-5 px-6 ls-m-1"},[s("ul",{staticClass:"pos-rel",staticStyle:{left:"1rem"},attrs:{id:"ul-1"}},[s("li",[s("span",{staticClass:"highlight"},[t._v(t._s(t.prom_product_student_cnt)+"명")]),s("span",[t._v("등록 가능")])]),s("li",[s("span",[t._v("인원 초과 시, 人당 6,000원")])]),s("li",[s("span",{staticClass:"highlight"},[t._v("최초 가맹 시 무상교육")])]),s("li",[s("span",[t._v("가맹 제공자료 지원")])]),s("li",[s("span",{staticClass:"highlight"},[t._v("콘텐츠 완전 무료제공")])])])])])])]:t._e():[s(n["a"],{attrs:{cols:"5"}},[s("div",{staticClass:"product d-inline-block float-right cursor",staticStyle:{width:"18rem"},on:{click:function(s){return t.selectProduct(1)}}},[s("div",{staticClass:"p-card-top pt-6 pb-5 px-6 text-center ls-m-2"},[s("span",{staticClass:"gmfont fw-800 white--text",staticStyle:{"font-size":"1.8rem"}},[t._v("\n STANDARD\n ")]),s("div",{staticClass:"border-ede thin-t my-2 mgauto",staticStyle:{width:"80%"},attrs:{id:"divider-1"}}),s("span",{staticClass:"gmfont fw-700 white--text",staticStyle:{"font-size":"2rem"}},[t._v("\n 98,000원"),s("small",[t._v("/월")])])]),s("div",{staticClass:"p-card-bot py-5 px-6 ls-m-1"},[s("ul",{staticClass:"pos-rel",staticStyle:{left:"1rem"},attrs:{id:"ul-1"}},[s("li",[s("span",{staticClass:"highlight"},[t._v("15명")]),s("span",[t._v("등록 가능")])]),s("li",[s("span",[t._v("인원 초과 시, 人당 6,000원")])]),s("li",[s("span",{staticClass:"highlight"},[t._v("최초 가맹 시 무상교육")])]),s("li",[s("span",[t._v("가맹 제공자료 지원")])]),s("li",[s("span",{staticClass:"highlight"},[t._v("콘텐츠 완전 무료제공")])])])])])]),s(n["a"],{attrs:{cols:"5"}},[s("div",{staticClass:"product d-inline-block cursor",staticStyle:{width:"18rem"},on:{click:function(s){return t.selectProduct(2)}}},[s("div",{staticClass:"p-card-top pt-6 pb-5 px-6 text-center ls-m-2"},[s("span",{staticClass:"gmfont fw-800 white--text",staticStyle:{"font-size":"1.8rem"}},[t._v("\n PREMIUM\n ")]),s("div",{staticClass:"border-ede thin-t my-2 mgauto",staticStyle:{width:"80%"},attrs:{id:"divider-2"}}),s("span",{staticClass:"gmfont fw-700 white--text",staticStyle:{"font-size":"2rem"}},[t._v("\n 178,000원"),s("small",[t._v("/월")])])]),s("div",{staticClass:"p-card-bot py-5 px-6 ls-m-1"},[s("ul",{staticClass:"pos-rel",staticStyle:{left:"1rem"},attrs:{id:"ul-2"}},[s("li",[s("span",{staticClass:"highlight"},[t._v("30명")]),s("span",[t._v("등록 가능")])]),s("li",[s("span",[t._v("인원 초과 시, 人당 5,000원")])]),s("li",[s("span",{staticClass:"highlight"},[t._v("최초 가맹 시 무상교육")])]),s("li",[s("span",[t._v("가맹 제공자료 지원")])]),s("li",[s("span",{staticClass:"highlight"},[t._v("콘텐츠 완전 무료제공")])])])])])])],s(n["a"],{staticClass:"pr-0",attrs:{cols:"1","align-self":"center"}},[s(e["a"],{staticClass:"float-right",staticStyle:{"background-color":"white",position:"fixed",transform:"translateY(0)"},attrs:{fab:"",depressed:"",ripple:!1},on:{click:function(s){t.$store.dispatch("soundEffectPlay","click_button"),t.next()}}},[s(o["a"],{class:t.sel_product?"success--text":"grey--text",attrs:{"x-large":""}},[t._v("\n mdi-chevron-double-right\n ")])],1)],1),"P"!=t.product_code?s(n["a"],{staticClass:"pa-0 text-center",attrs:{cols:"12",id:"calc-wrap"}},[s("div",{staticClass:"fw-800 gmfont",staticStyle:{"letter-spacing":"-3px","word-spacing":"-3px",transform:"scale(0.95, 1)",color:"#2cbb65","font-size":"3rem"}},[t._v("\n 이용료 확인\n ")]),s("div",{staticClass:"gmfont fw-600 ls-m-2",staticStyle:{"font-size":"1.5rem","word-spacing":"-1px","padding-bottom":"3rem",transform:"scale(0.95, 1)"}},[s("span",{staticStyle:{color:"#262626"}},[t._v("수업 규모에 딱 알맞게 ")]),s("span",{staticStyle:{color:"#13c7b8"}},[t._v("합리적인 가격")]),s("span",{staticStyle:{color:"#808080"}},[t._v("으로 가맹 가능!")])]),s("div",{staticClass:"gmfont fw-600 ls-m-2",staticStyle:{"font-size":"1.5rem","margin-bottom":"1.5rem"}},[s("span",{staticStyle:{color:"#595959"}},[t._v("활용하고자 하는 학생은 ")]),s("span",{staticStyle:{color:"#1bd05b","font-size":"1.86rem"}},[t._v("몇 명")]),s("span",{staticStyle:{color:"#595959"}},[t._v("인가요?")])]),s("div",[s("div",{staticClass:"d-flex",staticStyle:{width:"220px","font-size":"1.2rem","justify-content":"center","align-items":"center",margin:"0 auto 1.5rem"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.stunum,expression:"stunum"}],staticClass:"text-center fw-500",staticStyle:{border:"1px solid #d8d8d8",width:"90px","font-size":"20px",height:"42px"},attrs:{type:"number"},domProps:{value:t.stunum},on:{input:function(s){s.target.composing||(t.stunum=s.target.value)}}}),s("span",{staticClass:"gmfont fw-600 pl-1 pt-1"},[t._v("명")]),s(e["a"],{staticClass:"gmfont fw-600-btn",staticStyle:{width:"72px","margin-left":"35px",height:"42px !important","font-size":"20px","transition-timing-function":"ease",transition:"0.6s"},style:t.calcDisabled?"background-color: #d3d3d3 !important; color: white !important;":"",attrs:{color:"success",depressed:"",disabled:t.calcDisabled},on:{click:t.calcResult}},[t._v("\n 입력\n ")])],1),s("div",{staticClass:"gmfont fw-600 ls-m-1",staticStyle:{"margin-bottom":"2rem",color:"#595959","font-size":"1.05rem"}},[t._v("\n ※ 학생 수를 입력하여 이용료를 확인해 보세요!\n ")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.info_show,expression:"info_show"}]},[s("div",[s(o["a"],{staticStyle:{"font-size":"1.8em",transform:"rotate(90deg)"},attrs:{color:0==t.arrow_num?"#1bd05b":"#dcdcdc"}},[t._v("mdi-play")])],1),s("div",[s(o["a"],{staticStyle:{"font-size":"1.8em",transform:"rotate(90deg)"},attrs:{color:1==t.arrow_num?"#1bd05b":"#dcdcdc"}},[t._v("mdi-play")])],1),s("div",[s(o["a"],{staticStyle:{"font-size":"1.8em",transform:"rotate(90deg)"},attrs:{color:2==t.arrow_num?"#1bd05b":"#dcdcdc"}},[t._v("mdi-play")])],1),s("div",{staticClass:"gmfont fw-600",staticStyle:{"font-size":"1.2rem",margin:"2rem 0"}},[s("span",[t._v("선생님의 ")]),s("span",{staticClass:"success--text",staticStyle:{"font-size":"1.38rem"}},[t._v("월 이용료")]),s("span",[t._v("는")]),s("br"),s("span",{staticClass:"ls-m-1",staticStyle:{color:"#d75284","font-size":"2.28rem","word-spacing":"0"}},[t._v("\n "+t._s(t.total_cost)+"\n ")]),s("span",{staticStyle:{color:"#d75284"}},[t._v(" / 월 ")]),s("span",[t._v("입니다.")]),s("br"),s("span",[t._v("(VAT포함)")])]),s("div",{attrs:{id:"table-wrap"}},[s("div",{staticClass:"fw-600",staticStyle:{"padding-top":"2rem","font-size":"1.5rem"}},[t._v("\n 상세 이용료 안내\n ")]),s("table",{staticClass:"w-100",staticStyle:{margin:"2rem auto"},attrs:{id:"cost_table"}},[s("thead",[s("tr",{staticStyle:{"font-size":"1.02rem",background:"#f4f6fa"}},[s("th",{staticStyle:{width:"30%"}},[t._v("적용 상품")]),s("th",{staticStyle:{width:"20%"}},[t._v("학생 인원")]),s("th",{staticStyle:{width:"24%"}},[t._v("이용 단가")]),s("th",{staticStyle:{width:"26%"}},[t._v("이용 금액")])])]),s("tbody",[s("tr",{staticClass:"row-contents",staticStyle:{background:"#f9fbff"}},[s("td",{attrs:{id:"goods",scope:"row"}}),s("td",{attrs:{id:"row_1_stunum"}}),s("td",{attrs:{id:"row_1_basic"}}),s("td",{attrs:{id:"goodsbasic"}})]),s("tr",{staticClass:"row-contents"},[s("td",{attrs:{id:"goods2"}}),s("td",{attrs:{id:"row_2_stunum"}}),s("td",{attrs:{id:"row_2_basic"}}),s("td",{attrs:{id:"row_2_cost"}})]),s("tr",{staticClass:"row-contents",staticStyle:{background:"#f9fbff"}},[s("td",{attrs:{id:"goods3"}},[t._v("내공스터디 Custom (~100명)")]),s("td",{attrs:{id:"row_3_stunum"}}),s("td",{attrs:{id:"row_3_basic"}}),s("td",{attrs:{id:"row_3_cost"}})]),s("tr",{staticClass:"row-contents"},[s("td",{attrs:{id:"goods4"}},[t._v("내공스터디 Custom (100명 이상)")]),s("td",{attrs:{id:"row_4_stunum"}}),s("td",{attrs:{id:"row_4_basic"}}),s("td",{attrs:{id:"row_4_cost"}})]),s("tr",{staticClass:"tdbgcolor2",staticStyle:{background:"#f4f6fa"}},[s("th",{attrs:{id:"row5"}},[t._v("합계")]),s("th",{attrs:{id:"stunum2"}}),s("th",[t._v("    -")]),s("th",[t._v(t._s(t.total_cost))])])])]),s("div",{staticClass:"mgauto fw-600",staticStyle:{"font-size":"1.2rem",width:"300px"}},[s("div",[s("div",{staticClass:"row mx-0 mt-2",staticStyle:{"justify-content":"space-between"}},[t._v("\n 기본 정가"),s("span",{attrs:{id:"basic-cost"}})]),s("div",{staticClass:"row mx-0 mt-2",staticStyle:{"justify-content":"space-between"}},[t._v("\n 혜택 적용\n "),s("span",[s("span",{attrs:{id:"discount"}},[t._v("0")]),t._v("% ")])]),s("div",{staticClass:"gamaeng row mx-0 mt-2",staticStyle:{"justify-content":"space-between"}},[t._v("\n 가맹비\n "),s("span",{staticClass:"pos-rel"},[s("span",[t._v("500,000원")])])]),s("div",{staticClass:"row mx-0 mt-2",staticStyle:{"justify-content":"space-between"}},[s("span",{staticStyle:{color:"#1bd05b",background:"#fff602"}},[t._v("최종 금액")]),s("span",{staticStyle:{color:"#ff2b2b"}},[t._v(t._s(t.total_cost))])])])])])])]):t._e()],2),2==t.step?s(m["a"],{staticClass:"px-3"},[s(n["a"],{staticClass:"pl-0",attrs:{cols:"1","align-self":"center"}},[t.prom_status||t.is_direct?t._e():[0==t.status||1==t.status?s(e["a"],{staticClass:"float-right translate-y",staticStyle:{"background-color":"white",position:"relative"},attrs:{fab:"",depressed:"",ripple:!1},on:{click:function(s){t.$store.dispatch("soundEffectPlay","click_button"),t.prev()}}},[s(o["a"],{staticClass:"grey--text",attrs:{"x-large":""}},[t._v("\n mdi-chevron-double-left\n ")])],1):t._e()]],2),s(n["a"],{attrs:{cols:"10"}},[s(m["a"],{staticClass:"w-100 mgauto"},[s(n["a"],{staticClass:"p2-card-top br-4 mb-3 text-center",attrs:{cols:"12"}},[s("div",{directives:[{def:g["b"],name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}],staticClass:"d-inline-block",attrs:{id:"main_x"}},[s("div",{staticClass:"pos-rel pa-2 ls-m-1 change_x text-left"},[s("div",{staticClass:"d-inline-block mr-8"},[s("b",{staticClass:"fw-700 black--text",staticStyle:{"font-size":"1.1rem"}},[t._v("\n 결제 내용\n ")])]),s("div",{staticClass:"d-inline-block"},[s("b",{staticClass:"fw-700 success--text",staticStyle:{"font-size":"1.2rem"}},[t.prom_status||!t.prom_status&&t.is_direct?[t._v("\n 내공스터디 "+t._s(t.prom_product_name)+"\n ")]:[0==t.status||1==t.status?[t._v("\n 내공스터디\n "+t._s(2==t.sel_product?"Premium":"Standard")+"\n ")]:[t._v("\n 내공스터디\n "+t._s("P"==t.$storage.get("user").product_type?"Premium":"Standard")+"\n ")]]],2),s("span",{staticClass:"grey--text",staticStyle:{"font-size":"1.1rem"}},[t.prom_status||!t.prom_staus&&t.is_direct?[t._v("\n ("+t._s(t.prom_product_student_cnt)+"명 등록)\n ")]:[0==t.status||1==t.status?[t._v("\n "+t._s(2==t.sel_product?"(30명 등록)":"(15명 등록)")+"\n ")]:[t._v("\n "+t._s("P"==t.$storage.get("user").product_type?"(30명 등록)":"(15명 등록)")+"\n ")]]],2)])]),s("div",{staticClass:"d-inline-block pos-rel pa-2 ls-m-1 w-100 text-left"},[s("div",{staticClass:"d-inline-block mr-8"},[s("b",{staticClass:"fw-700 black--text",staticStyle:{"font-size":"1.1rem"}},[t._v("\n 이용 기간\n ")])]),s("div",{staticClass:"d-inline-block"},[s("b",{staticClass:"fw-700",staticStyle:{"font-size":"1.2rem"}},[0==t.status||1==t.status?[t._v("\n "+t._s(t.today)+"\n ")]:[t.today_payment||"NAC"==t.$storage.get("user").payment_nac?[t._v("\n "+t._s(t.today)+"\n ")]:t._e()],t._v("\n ~ "+t._s(t.lastday)+"\n ")],2),s("span",{staticClass:"grey--text",staticStyle:{"font-size":"1.1rem"}},[t._v("\n (다음 결제일 "+t._s(t.nextstartday)+")\n ")])])]),s("div",{staticClass:"pos-rel pa-2 ls-m-1 change_x text-left"},[s("div",{staticClass:"d-inline-block mr-8"},[s("b",{staticClass:"fw-700 black--text",staticStyle:{"font-size":"1.1rem"}},[t._v("\n 결제 금액\n ")])]),s("div",{staticClass:"d-inline-block"},[s("b",{staticClass:"fw-700 red--text",staticStyle:{"font-size":"1.2rem"}},[t.prom_status||!t.prom_status&&t.is_direct?[t._v("\n "+t._s(Number(t.prom_product_price).toLocaleString())+"원\n ")]:[t._v("\n "+t._s(t.price.toLocaleString())+"원\n ")]],2),t.prom_status||t.is_direct?t._e():[s("span",{staticClass:"grey--text",staticStyle:{"font-size":"1.1rem"}},[t._v("\n  (당월 잔여 기간만큼 일할 계산액)\n ")])]],2)])])]),t.prom_status?[1==t.status||2==t.status?s(n["a"],{staticClass:"p2-card-bot br-4",attrs:{cols:"12"}},[s("div",{staticClass:"pos-rel",staticStyle:{left:"50%",transform:"translate(-50%, 0)"},attrs:{id:"payment_way_div"}},[s(m["a"],{staticClass:"w-100 mgauto"},[1==t.status?[s(n["a"],{staticClass:"px-0",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y",attrs:{id:"payment_way_left_1"}},[s("label",{staticClass:"fw-700 ls-m-1 mx-8 black--text",staticStyle:{"font-size":"1.1rem !important"}},[t._v("\n 카드 결제\n ")])]),s("div",{staticClass:"py-0 float-left h-100",staticStyle:{width:"63%"}},[s(e["a"],{staticStyle:{height:"100% !important",padding:"13px 0"},attrs:{block:"",depressed:""}},[[s("b",{staticClass:"black--text mr-2",staticStyle:{"font-size":"1rem"}},[t._v(t._s(t.card_company))]),s("span",{staticClass:"grey--text",staticStyle:{"font-size":"1rem"}},[t._v(t._s(t.card_number))])]],2)],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[s("div",{staticClass:"border-ede thin-t my-2",staticStyle:{width:"calc(100% - 24px)","margin-left":"24px"}})]),s(n["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[s("div",{staticClass:"text-center py-4 w-100"},[s("span",{staticClass:"grey--text"},[t._v("\n 매월 1일자 (영업일 기준) 자동 결제됩니다.\n ")])])])]:2==t.status?[s(n["a"],{staticClass:"pl-2 pr-0",attrs:{cols:"12"}},[s("div",{staticClass:"d-inline-block mr-8 float-left",staticStyle:{"margin-top":"0.2vh"},attrs:{id:"payment_way_left_2"}},[s("b",{staticClass:"fw-700 ls-m-1 black--text",staticStyle:{"font-size":"1.1rem !important"}},["NAC"==t.$storage.get("user").payment_nac?[t._v("전용 계좌")]:"KEYIN"==t.$storage.get("user").payment_nac||"CARD"==t.$storage.get("user").payment_nac?[t._v("카드 결제")]:[t._v("가상 계좌")]],2)]),s("div",{staticClass:"d-inline-block float-left grey--text ls-m-1",staticStyle:{"font-size":"1.2rem","margin-top":"1px"}},["KEYIN"==t.$storage.get("user").payment_nac||"CARD"==t.$storage.get("user").payment_nac?[s("a",{attrs:{href:t.keyInPage+t.$cid,target:"_blank"}},[t._v("\n 카드 결제 페이지\n ")])]:"NAC"!=t.$storage.get("user").payment_nac||t.$storage.get("user").payment_postdate?[s("b",[t._v("기업은행 ")]),s("b",[t._v(t._s(t.account))]),s("br"),s("b",[t._v(t._s(t.accountnm))])]:[s("b",[t._v("우리은행 ")]),s("b",[t._v("1005-804-265162")]),s("br"),s("b",[t._v("오성훈 (내공스터디)")])]],2),s("div",{staticStyle:{clear:"both"}})])]:t._e()],2)],1)]):t._e()]:[0==t.status?[s(n["a"],{staticClass:"p2-card-bot br-4",attrs:{cols:"12"}},[s("div",{staticClass:"pos-rel",staticStyle:{left:"50%",transform:"translate(-50%, 0)"},attrs:{id:"payment_way_div"}},[s(m["a"],{staticClass:"w-100 mgauto"},[t.is_direct&&t.lastdate_status?[s(n["a"],{staticClass:"px-0",attrs:{cols:"12"}},[s("div",{staticClass:"pos-rel",staticStyle:{left:"-24px"},attrs:{id:"case_1_nac_rgwrap"}},[s(_["a"],{staticClass:"mt-0 py-0 d-inline-block float-left mr-8",attrs:{column:"","hide-details":"",id:"payment_way_left_2"},model:{value:t.payment_way,callback:function(s){t.payment_way=s},expression:"payment_way"}},[s(d["a"],{staticClass:"my-2",attrs:{color:"success",value:2},scopedSlots:t._u([{key:"label",fn:function(){return[s("label",{staticClass:"fw-700 ls-m-1",class:"2"==t.payment_way?"black--text":"grey--text",staticStyle:{"font-size":"1.1rem !important"},attrs:{id:"case_1_nac_label"}},[t._v("\n 전용 계좌\n ")])]},proxy:!0}],null,!1,4110412720)})],1)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.payment_way,expression:"payment_way == '2'"}],staticClass:"py-2 h-100 float-left pos-rel grey--text",staticStyle:{left:"-24px","font-size":"1.2rem"},attrs:{id:"payment_way_right_3"}},[s("b",[t._v("우리은행 ")]),s("b",[t._v("1005-804-265162")]),s("br"),s("b",[t._v("오성훈 (내공스터디)")])])])]:[s(n["a"],{staticClass:"px-0",attrs:{cols:"12"}},[s("div",{staticClass:"pos-rel",staticStyle:{left:"-24px"},attrs:{id:"case_1_card_rgwrap"}},[s(_["a"],{staticClass:"mt-0 py-2 d-inline-block float-left mr-8",attrs:{id:"payment_way_left_1",column:"","hide-details":""},model:{value:t.payment_way,callback:function(s){t.payment_way=s},expression:"payment_way"}},[s(d["a"],{staticClass:"my-2",attrs:{color:"success",value:"0"},scopedSlots:t._u([{key:"label",fn:function(){return[s("label",{staticClass:"fw-700 ls-m-1",class:"0"==t.payment_way?"black--text":"grey--text",staticStyle:{"font-size":"1.1rem !important"},attrs:{id:"case_1_card_label"}},[t._v("\n 카드 결제\n ")])]},proxy:!0}],null,!1,2174952363)})],1)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:"0"==t.payment_way,expression:"payment_way == '0'"}],staticClass:"py-0 float-left h-100 pos-rel",staticStyle:{left:"-24px"},attrs:{id:"payment_way_right_1"}},[s(n["a"],{staticClass:"py-2 px-0",staticStyle:{height:"56px"},attrs:{cols:"12"}},[s(e["a"],{staticStyle:{height:"100% !important"},attrs:{block:"",depressed:""},on:{click:function(s){return t.addCardPopup()}}},[t.card_company&&t.card_number?[s("b",{staticClass:"black--text mr-2",staticStyle:{"font-size":"1rem"}},[t._v(t._s(t.card_company))]),s("span",{staticClass:"grey--text",staticStyle:{"font-size":"1rem"}},[t._v(t._s(t.card_number))])]:[s(o["a"],{staticClass:"mr-1 grey--text",attrs:{small:""}},[t._v("mdi-plus")]),s("span",{staticClass:"grey--text",staticStyle:{"margin-top":"-0.1rem","font-size":"1rem"}},[t._v("\n 카드를 등록해주세요.\n ")])]],2)],1)],1)])]],2)],1)])]:[s(n["a"],{staticClass:"p2-card-bot br-4",attrs:{cols:"12"}},[s("div",{staticClass:"pos-rel d-inline-block",staticStyle:{left:"50%",transform:"translate(-50%, 0)"},attrs:{id:"payment_way_div"}},[1==t.status?[s(m["a"],{staticClass:"w-100 mgauto",attrs:{id:"test_row"}},[s(n["a"],{staticClass:"px-0",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y",attrs:{id:"payment_way_left_1"}},[s("label",{staticClass:"fw-700 ls-m-1 mx-8 black--text",staticStyle:{"font-size":"1.1rem !important"}},[t._v("\n 카드 결제\n ")])]),s("div",{staticClass:"py-0 float-left h-100",staticStyle:{width:"63%"}},[s(e["a"],{staticStyle:{height:"100% !important",padding:"13px 0"},attrs:{block:"",depressed:""}},[[s("b",{staticClass:"black--text mr-2",staticStyle:{"font-size":"1rem"}},[t._v(t._s(t.card_company))]),s("span",{staticClass:"grey--text",staticStyle:{"font-size":"1rem"}},[t._v(t._s(t.card_number))])]],2)],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[s("div",{staticClass:"border-ede thin-t my-2",staticStyle:{width:"calc(100% - 24px)","margin-left":"24px"}})]),s(n["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[s("div",{staticClass:"text-center py-4 w-100"},[s("span",{staticClass:"grey--text"},[t._v("\n 매월 1일자 (영업일 기준) 자동 결제됩니다.\n ")])])])],1)]:2==t.status?[s("div",{staticClass:"pos-rel pa-2 ls-m-1 change_x text-left"},[s("div",{staticClass:"d-inline-block pos-rel ls-m-1 text-left usn",attrs:{id:"trans_height"}},[s("div",{staticClass:"d-inline-block mr-8"},[s("b",{staticClass:"fw-700",staticStyle:{"font-size":"1.1rem",color:"transparent"}},[t._v("\n 결제 금액\n ")])]),s("div",{staticClass:"d-inline-block"},[s("b",{staticClass:"fw-700",staticStyle:{"font-size":"1.2rem",color:"transparent"}},[t.prom_status?[t._v("\n "+t._s(Number(t.prom_product_price).toLocaleString())+"원\n ")]:[t._v("\n "+t._s(t.price.toLocaleString())+"원\n ")]],2),s("span",{staticStyle:{"font-size":"1.1rem",color:"transparent"}},[t._v("\n  (당월 잔여 기간만큼 일할 계산액)"),s("br"),t._v("\n  (당월 잔여 기간만큼 일할 계산액)\n ")])])]),s("div",{staticClass:"pos-abs ls-m-1 change_x text-left",staticStyle:{top:"8px"},attrs:{id:"trans_height_base"}},[t.is_direct&&t.lastdate_status?[s("div",{staticClass:"d-inline-block mr-8 float-left"},[s("b",{staticClass:"fw-700 black--text",staticStyle:{"font-size":"1.1rem"}},[t._v("\n 전용 계좌\n ")])]),s("div",{staticClass:"d-inline-block grey--text ls-m-1 float-left",staticStyle:{"font-size":"1.2rem","margin-top":"-1px"}},[s("b",[t._v(t._s(t.bankname)+" ")]),s("b",[t._v(t._s(t.account))]),s("br"),s("b",[t._v(t._s(t.accountnm))])])]:[s("div",{staticClass:"d-inline-block mr-8 float-left"},[s("b",{staticClass:"fw-700 black--text",staticStyle:{"font-size":"1.1rem"}},[t._v("\n 가상 계좌\n ")])]),s("div",{staticClass:"d-inline-block grey--text ls-m-1 float-left",staticStyle:{"font-size":"1.2rem","margin-top":"-1px"}},[s("b",[t._v("기업은행 ")]),s("b",[t._v(t._s(t.account))]),s("br"),s("b",[t._v(t._s(t.accountnm))])])],s("div",{staticStyle:{clear:"both"}})],2)])]:t._e()],2)])]]],2),t.prom_status?t._e():[s(m["a"],{staticClass:"w-100 mgauto"},[s(n["a"],{staticClass:"text-center"},[0==t.status||1==t.status&&"F"==t.$storage.get("user").product_type?[s("div",{directives:[{name:"show",rawName:"v-show",value:"1"!=t.payment_way&&t.card_company&&t.card_number,expression:"\n payment_way != '1' && card_company && card_number\n "}],staticClass:"pb-3 pos-rel translate-x text-left",attrs:{id:"payment_way_div_2"}},[s(l["a"],{staticClass:"d-inline-block",staticStyle:{"margin-left":"-0.2vw"},attrs:{color:"success",dense:"","hide-details":"",label:""},scopedSlots:t._u([{key:"label",fn:function(){return[s("label",{staticStyle:{"font-size":"1.1rem"}},[t._v("\n 자동결제 서비스 이용에 동의합니다.\n ")])]},proxy:!0}],null,!1,1808252888),model:{value:t.add_card_agree,callback:function(s){t.add_card_agree=s},expression:"add_card_agree"}})],1),s(e["a"],{staticStyle:{height:"calc(3rem + 5px) !important"},attrs:{depressed:"",rounded:"","x-large":"",disabled:t.payment_disabled,color:"success"},on:{click:t.goPayment}},[s("span",{staticStyle:{"font-size":"1.1rem"}},[t._v(" 결 제 ")])])]:[s(e["a"],{ref:"check_btn",staticStyle:{height:"calc(3rem + 5px) !important"},attrs:{id:"check_btn",depressed:"",rounded:"","x-large":"",color:"success"},on:{click:t.goCheck}},[s("span",{staticStyle:{"font-size":"1.1rem"}},[t._v(" 확 인 ")])])]],2)],1)]],2),s(n["a"],{attrs:{cols:"1"}})],1):t._e()],1)],1)],1),t.info_show||2==t.step||"P"==t.product_code?s("div",{staticClass:"border-ede thin-t my-2"}):t._e(),t.info_show||2==t.step||"P"==t.product_code?s(m["a"],{staticClass:"w-100 mgauto"},[s(n["a"],{staticClass:"pt-1",attrs:{cols:"12"}},[s("b",{staticClass:"fw-700",staticStyle:{"font-size":"0.9rem"}},[t._v("\n 내공스터디 이용권 구매 주의 사항\n ")])]),s(n["a"],{staticClass:"px-1 pt-0",attrs:{cols:"12"}},[s("ul",{staticClass:"grey--text",staticStyle:{"font-size":"0.875rem"}},[s("li",[t._v("모든 이용권은 부가세(VAT) 포함 가격입니다.")]),s("li",[t._v("상품 가격은 내부 정책으로 인해 변경 될 수 있습니다.")]),s("li",[t._v("\n 내공스터디 이용권은 월 기본료는 선불 / 초과 사용료는 후불로 매월\n 1일 합산 결제됩니다.\n ")]),s("li",[t._v("\n 카드 자동결제는 1개월 단위, 매월 1일 (영업일 기준)에\n 이루어집니다.\n ")]),s("li",[t._v("\n 자동결제 시 결제 당일을 제외한 이용기간 중 언제든지 자동결제를\n 해지하실 수 있습니다.\n ")]),s("li",[t._v("미사용 상품은 구매 후, 7일 이내 청약철회 가능합니다")]),s("li",[t._v("고객센터를 통한 자동결제 해지 신청은 본인만 가능합니다.")])])])],1):t._e()],1)],1),s("Dialogs",[s("div",{attrs:{slot:"add_payment_success"},slot:"add_payment_success"},[s(r["b"],{staticClass:"text-center py-8"},[s("h3",{staticClass:"title"},[s("b",[t._v("결제 요청이 완료되었습니다.")])])]),s(r["a"],{staticClass:"pa-0 border-ede thin-t"},[s(e["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[s("h3",{staticClass:"title-1"},[s("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),s("div",{attrs:{slot:"card_action_success"},slot:"card_action_success"},[s(r["b"],{staticClass:"text-center py-8"},[s("h3",{staticClass:"title"},[s("b",[t._v(t._s(t.cardActionMessage))])])]),s(r["a"],{staticClass:"pa-0 border-ede thin-t"},[s(e["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[s("h3",{staticClass:"title-1"},[s("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),s("div",{attrs:{slot:"payment_error"},slot:"payment_error"},[s(r["b"],{staticClass:"text-center py-8"},[s("h3",{staticClass:"title"},[s("b",{domProps:{innerHTML:t._s(t.error_msg)}})])]),s(r["a"],{staticClass:"pa-0 border-ede thin-t"},[s(e["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[s("h3",{staticClass:"title-1"},[s("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),s("div",{attrs:{slot:"payment_success_logout"},slot:"payment_success_logout"},[s(r["b"],{staticClass:"text-center py-8"},[s("h3",{staticClass:"title"},[s("b",[t._v("\n 결제가 완료되었습니다."),s("br"),t._v("\n 재로그인 후 이용해주세요.\n ")])])]),s(r["a"],{staticClass:"pa-0 border-ede thin-t"},[s(e["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.forceLogout}},[s("h3",{staticClass:"title-1"},[s("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)]),t.loading_value?s("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),s(c["a"],{staticClass:"join_dialog",staticStyle:{"border-radius":"unset"},attrs:{"max-width":"480",origin:"center center",scrollable:"",persistent:"",transition:!1,"no-click-animation":!0,id:"test"},model:{value:t.join_dialog,callback:function(s){t.join_dialog=s},expression:"join_dialog"}},[s(i["a"],{directives:[{name:"show",rawName:"v-show",value:0==t.card_status,expression:"card_status == 0"}],staticStyle:{"border-radius":"unset !important"},attrs:{id:"join_card",color:"white"}},[s(r["b"],{staticClass:"pa-4"},[s(m["a"],{staticClass:"w-100 mgauto"},[s(n["a"],{staticClass:"pos-rel pb-0",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y"},[s("label",{staticClass:"mr-7 black--text"},[t._v("카드번호")])]),s("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[s(u["a"],{directives:[{name:"mask",rawName:"v-mask",value:t.mask_card,expression:"mask_card"}],attrs:{autocomplete:"off",placeholder:"카드번호를 기입하세요.","hide-details":"",solo:"",dense:"",outlined:""},model:{value:t.cardno,callback:function(s){t.cardno=s},expression:"cardno"}})],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"pos-rel pb-0",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y"},[s("label",{staticClass:"mr-7 black--text"},[t._v("유효기간")])]),s("div",{staticClass:"float-left pos-rel",staticStyle:{width:"calc(100% - 82px)"}},[s(p["a"],{ref:"month",staticClass:"float-left",staticStyle:{width:"calc(50% - 46px)"},attrs:{items:t.month_items,placeholder:"MM",color:"success",outlined:"","hide-details":"",dense:""},on:{"click:append":function(s){t.$refs.month.isMenuActive=!t.$refs.month.isMenuActive}},model:{value:t.month,callback:function(s){t.month=s},expression:"month"}}),s("label",{staticClass:"black--text px-4 float-left translate-y pos-abs"},[t._v("\n 월\n ")]),s(p["a"],{ref:"year",staticClass:"float-left select_year",staticStyle:{width:"calc(50% - 46px)","margin-left":"46px"},attrs:{items:t.year_items,"item-text":t.year_items,"item-value":t.year_items,dense:"","hide-details":"",outlined:"",placeholder:"YY",color:"success"},on:{"click:append":function(s){t.$refs.year.isMenuActive=!t.$refs.year.isMenuActive}},model:{value:t.year,callback:function(s){t.year=s},expression:"year"}}),s("label",{staticClass:"black--text px-4 float-left translate-y pos-abs"},[t._v("\n 년\n ")])],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"pb-0",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y"},[s("label",{staticClass:"mr-7 black--text"},[t._v("생년월일")]),s("br"),s("small",[t._v("(6자리)")])]),s("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[s(u["a"],{directives:[{name:"mask",rawName:"v-mask",value:t.mask_birth,expression:"mask_birth"}],staticStyle:{width:"60%"},attrs:{"hide-details":"",solo:"",dense:"",outlined:"",placeholder:"YYMMDD",autocomplete:"off"},model:{value:t.birthday,callback:function(s){t.birthday=s},expression:"birthday"}})],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"pb-1",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y"},[s("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),s("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[s(l["a"],{staticClass:"d-inline-block",staticStyle:{"margin-left":"-0.2vw"},attrs:{color:"success",dense:"","hide-details":"",label:"전체 동의"},on:{change:t.allTerms},model:{value:t.add_card_all,callback:function(s){t.add_card_all=s},expression:"add_card_all"}})],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"py-0",attrs:{cols:"12"}},[s("div",{staticClass:"pos-rel",staticStyle:{width:"calc(100% - 82px)","border-top":"1px solid #edeeef",left:"75px"}}),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"py-0",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y"},[s("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),s("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[s(l["a"],{staticClass:"d-inline-block",staticStyle:{"margin-left":"-0.2vw"},attrs:{color:"success",dense:"","hide-details":"",label:""},scopedSlots:t._u([{key:"label",fn:function(){return[s("label",[t._v("서비스 이용약관 ")]),s(y["a"],{attrs:{"z-index":"-100"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[s("a",t._g({on:{click:function(s){return s.preventDefault(),s.stopPropagation(),t.viewTerms(1)}}},a),[t._v("\n 보기\n "),s(o["a"],{staticClass:"pos-abs translate-y",staticStyle:{"font-size":"16px",color:"#c5c5c5"}},[t._v("\n mdi-chevron-right\n ")])],1)]}}])})]},proxy:!0}]),model:{value:t.add_card_terms,callback:function(s){t.add_card_terms=s},expression:"add_card_terms"}})],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"py-0",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y"},[s("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),s("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[s(l["a"],{staticClass:"d-inline-block",staticStyle:{"margin-left":"-0.2vw"},attrs:{color:"success",dense:"","hide-details":"",label:""},scopedSlots:t._u([{key:"label",fn:function(){return[s("label",[t._v("개인(신용)정보 수집 및 이용 동의 ")]),s(y["a"],{attrs:{"z-index":"-100"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[s("a",t._g({on:{click:function(s){return s.preventDefault(),s.stopPropagation(),t.viewTerms(2)}}},a),[t._v("\n 보기\n "),s(o["a"],{staticClass:"pos-abs translate-y",staticStyle:{"font-size":"16px",color:"#c5c5c5"}},[t._v("\n mdi-chevron-right\n ")])],1)]}}])})]},proxy:!0}]),model:{value:t.add_card_persinfo,callback:function(s){t.add_card_persinfo=s},expression:"add_card_persinfo"}})],1),s("div",{staticStyle:{clear:"both"}})]),s(n["a"],{staticClass:"pt-0 pb-6",attrs:{cols:"12"}},[s("div",{staticClass:"float-left pos-rel translate-y"},[s("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),s("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[s(l["a"],{staticClass:"d-inline-block",staticStyle:{"margin-left":"-0.2vw"},attrs:{color:"success",dense:"","hide-details":"",label:""},scopedSlots:t._u([{key:"label",fn:function(){return[s("label",[t._v("개인(신용)정보 제3자 제공 동의 ")]),s(y["a"],{attrs:{"z-index":"-100"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[s("a",t._g({on:{click:function(s){return s.preventDefault(),s.stopPropagation(),t.viewTerms(3)}}},a),[t._v("\n 보기\n "),s(o["a"],{staticClass:"pos-abs translate-y",staticStyle:{"font-size":"16px",color:"#c5c5c5"}},[t._v("\n mdi-chevron-right\n ")])],1)]}}])})]},proxy:!0}]),model:{value:t.add_card_third,callback:function(s){t.add_card_third=s},expression:"add_card_third"}})],1),s("div",{staticStyle:{clear:"both"}})])],1)],1),s(r["a"],{staticClass:"pa-4 pt-0"},[s(e["a"],{staticClass:"white--text",staticStyle:{height:"3rem !important",width:"120px"},attrs:{depressed:"",tile:"",color:"#4b4b4b"},on:{click:function(s){return t.cancleAddCard()}}},[t._v("\n 취소\n ")]),s(e["a"],{staticClass:"white--text",staticStyle:{height:"3rem !important",width:"calc(100% - 128px)"},attrs:{depressed:"",tile:"",color:"success",disabled:t.add_card_disabled},on:{click:function(s){return t.addCard()}}},[t._v("\n 등록\n ")])],1)],1),s("JoinDialogTerms",{directives:[{name:"show",rawName:"v-show",value:1==t.card_status,expression:"card_status == 1"}],attrs:{"term-type":t.term_type},on:{close:function(s){t.card_status=0}}})],1)],1)},f=[],v=a("7bdb"),C=a("5ce4"),w=a("eae5"),x=a("3a60"),S=a("56d7");let k=new Date,$=k.getFullYear(),L=k.getMonth()+1,T=k.getDate(),M=k.getHours(),z=k.getMinutes(),H=k.getSeconds(),D=new Date($,L);D=new Date(D-1);let E=D.getDate();var B={name:"login",components:{Dialogs:v["a"],LoadingDialog:C["a"],JoinDialogTerms:w["a"]},directives:{mask:x["mask"]},data(){return{messageReceived:!1,authKey:"",billing_id:"",isAddingCard:!1,handledAuthKey:null,step:0,status:0,status_text:"",card_status:0,loading_value:!1,loading_message:"",mask_card:"####-####-####-####",mask_birth:"######",month_items:["01","02","03","04","05","06","07","08","09","10","11","12"],today:"",today_payment:!1,lastday:"",nextstartday:"",sel_product:null,next_cnt:0,payment_way:"0",error_msg:"",cardActionMessage:"",join_dialog:!1,add_card_disabled:!0,cardno:"",birthday:"",month:"",term_type:1,add_card_all:!1,add_card_terms:!1,add_card_persinfo:!1,add_card_third:!1,add_card_agree:!1,card_company:"",card_number:"",add_card_date:null,add_card_menu:!1,payment_disabled:!0,price:0,account:"",accountnm:"",bankname:"기업은행",year:"",year_items:[],prom_status:!1,prom_product:"",prom_product_name:"",prom_product_price:"",prom_product_term:"",prom_product_student_cnt:"",change_card_status:!1,stunum:"",info_show:!1,total_cost:0,gamaeng_status:!1,gamaeng_month:"",arrow_1:!1,arrow_2:!1,arrow_3:!1,arrow_num:0,arrow_interval:!1,product_code:"",product_name:"",is_direct:!1,lastdate_status:!1,is_card_popup_open:!1,logoutTimer:null,isLoggingOut:!1}},beforeRouteLeave(t,s,a){a()},created:function(){this.product_code=this.$storage.get("user").product_code;for(let t=10;t>=0;t--)this.year_items.push($+t);this.today=$+". "+(L<10?"0":"")+L+". "+(T<10?"0":"")+T,this.lastday=$+". "+(L<10?"0":"")+L+". "+(E<10?"0":"")+E,this.nextstartday=L+1==13?$+1+". 01. 01":$+". "+(L+1<10?"0":"")+(L+1)+". 01",-1==new Array("F","S","P").indexOf(this.$storage.get("user").product_type)?(console.log("promotion"),this.$axios.get(`${this.$host}/academy/${this.$cid}/getacaproduct`).then(t=>{if(200==t.status)if(this.is_direct="1"==t.data.is_direct,console.dir(t.data),this.prom_product_name=t.data.name,this.prom_product_price=t.data.price,this.prom_product_student_cnt=t.data.student_cnt,this.prom_product_term=t.data.term,this.prom_product=t.data.type,"1"==t.data.is_direct&&null==t.data.startdate&&(this.lastdate_status=t.data.lastdate_status,this.lastdate_status?(this.prom_status=!1,this.status=0,this.step=2,this.payment_way=2,this.payment_disabled=!1):(this.prom_status=!1,this.status=0,this.step=2)),"month"==t.data.term_type&&1===+t.data.term)if(t.data.enddate){this.lastday=t.data.enddate.split(" ")[0].replace(/-/g,". ");let s=new Date(this.lastday);s.setDate(s.getDate()+1);let a=s.getFullYear(),e=s.getMonth()+1,i=s.getDate();this.nextstartday=`${a}. ${e<10?"0"+e:e}. ${i<10?"0"+i:i}`}else{this.nextstartday=this.$storage.get("user").payment_costday.replace(/\-/g," .");let t=new Date(new Date(this.$storage.get("user").payment_costday+" 00:00:00")-1);$=t.getFullYear(),L=t.getMonth()+1,E=t.getDate(),this.lastday=`${$}. ${(L<10?"0":"")+L}. ${(E<10?"0":"")+E}`}else{let s=t.data.enddate;this.lastday=s.split(" ")[0].replace(/-/g,". ");let a=new Date(this.lastday);a.setDate(a.getDate()+1);let e=a.getFullYear(),i=a.getMonth()+1,r=a.getDate();this.nextstartday=`${e}. ${i<10?"0"+i:i}. ${r<10?"0"+r:r}`}}).catch(t=>{console.log(t)}),this.prom_status=!0,"NAC"==this.$storage.get("user").payment_nac?(this.status=2,this.step=2):"CARD"==this.$storage.get("user").paymentkind||"CARD"==this.$storage.get("user").payment_nac||"KEYIN"==this.$storage.get("user").payment_nac?this.getCard():"VAC"==this.$storage.get("user").paymentkind&&(this.price=Number(this.$storage.get("user").payment_cost),this.$storage.get("user").payment_costday==this.today.replace(/. /g,"-")&&(this.today_payment=!0),this.getVac())):"VAC"==this.$storage.get("user").paymentkind?(this.price=Number(this.$storage.get("user").payment_cost),this.$storage.get("user").payment_costday==this.today.replace(/. /g,"-")&&(this.today_payment=!0),this.getVac()):this.getCard(),console.log(`step: ${this.step}, status: ${this.status}`)},computed:{keyInPage(){const t=Number(this.$storage.get("user").payment_id);return t>49385?"https://intro.tabstudy.co.kr/toss-cardpay.html?id=":"https://intro.tabstudy.co.kr/cardpay.html?id="},calcDisabled(){let t=!0;return""!=this.stunum&&Number(this.stunum)>0&&(t=!1),t},zoom_status(){return this.$store.getters["getUser"]["zoom_status"]},customerKey(){const t=this.$store.getters["getUser"];return t&&t.toss_customerKey?t.toss_customerKey:null}},watch:{step(t){console.log("step",t,this.status,this.prom_status),1==t?this.status_text="온라인 학습 이용권을 선택해주세요!":2==t&&(1==this.status?this.status_text="가입이 완료되었습니다!":2==this.status?this.status_text="정식 가입을 위해 입금해주세요!":!this.prom_status||this.$storage.get("user").paymentkind&&"CARD"!=this.$storage.get("user").paymentkind?this.status_text="결제 수단을 선택해주세요!":this.status_text="카드 결제를 완료해주세요."),clearInterval(this.arrow_interval),this.info_show=!1,this.stunum=""},sel_product(t){1==t?this.price=this.priceCalc(98e3):2==t&&(this.price=this.priceCalc(178e3))},join_dialog(t){t&&setTimeout(()=>{this.$nextTick(()=>{document.getElementsByClassName("v-dialog")[0].style.borderRadius="0px !important",document.getElementsByClassName("v-dialog")[0].style.MozBorderRadius="0px !important"})},150)},cardno(t){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},birthday(t){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},year(t){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},month(t){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},add_card_agree(t){this.card_company&&this.card_number&&this.add_card_agree?this.payment_disabled=!1:this.payment_disabled=!0},payment_way(t){"0"==t?this.card_company&&this.card_number&&this.add_card_agree?this.payment_disabled=!1:this.payment_disabled=!0:"1"==t&&(this.payment_disabled=!1)},card_company(t){this.card_company&&this.card_number&&this.add_card_agree&&(this.payment_disabled=!1)},card_number(t){this.card_company&&this.card_number&&this.add_card_agree&&(this.payment_disabled=!1)},add_card_terms(t){t&&this.add_card_persinfo&&this.add_card_third?this.add_card_all=!0:this.add_card_all=!1,this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},add_card_persinfo(t){this.add_card_terms&&t&&this.add_card_third?this.add_card_all=!0:this.add_card_all=!1,this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},add_card_third(t){this.add_card_terms&&this.add_card_persinfo&&t?this.add_card_all=!0:this.add_card_all=!1,this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},info_show(t){t?this.arrow_interval=setInterval(()=>{this.arrow_num++,3==this.arrow_num&&(this.arrow_num=0)},333):clearInterval(this.arrow_interval)}},mounted(){setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100),this.setupMessageListener()},methods:{handleBillingResult(t){if(!t||!t.data)return;if("BILLING_RESULT"!==t.data.type)return;if(this.handledAuthKey===t.data.authKey)return;this.handledAuthKey=t.data.authKey,this.messageReceived=!0;const{billing:s,message:a,authKey:e,customerKey:i}=t.data,r="success"===s;e&&(this.authKey=e),i&&(this.customerKey=i),r&&e?this.addCard():S["bus"].$emit("alert",{name:a||"카드 등록에 실패하였습니다",timeMs:3e3,backgroundColor:"#d32f2f",textColor:"#ffffff"})},setupMessageListener(){window.addEventListener("message",this.handleBillingResult)},getBillingParams(){const t=new URLSearchParams(window.location.search),s=window.location.hash||"",a=s.indexOf("?");if(-1!==a){const e=new URLSearchParams(s.slice(a+1));for(const[s,a]of e.entries())t.set(s,a)}return t},getCard(){this.$axios.get(`${this.$host}/toss/payment/info/CARD/${this.$cid}`).then(t=>{if(t.data.result){let s=this.$storage.get("user");this.card_company=t.data.cardCompany,this.card_number=t.data.cardNumber,this.billing_id=t.data.billingId,s.payment_postdate?(this.status=1,this.price=s.payment_cost?Number(s.payment_cost):this.price,this.step=2):(this.status=0,this.step=1),s.payment_postdate&&(this.status_text="가입이 완료되었습니다!",this.price=s.payment_cost?Number(s.payment_cost):0),this.onResize()}else this.prom_status?(this.step=2,this.status=2,this.onResize()):this.step=1}).catch(t=>{console.log(t)})},getVac(){this.$axios.get(`${this.$host}/toss/payment/info/VAC/${this.$cid}`).then(t=>{if(t.data.result){var s=t.data.data.account;s=s.replace(/(.{3})/,"$1-"),s=s.replace(/(.{10})/,"$1-"),s=s.replace(/(.{13})/,"$1-"),this.account=s,this.accountnm=t.data.data.accountnm,this.status=2,this.step=2,this.onResize()}else this.step=1}).catch(t=>{console.log(t)})},priceCalc(t){let s=t/E,a=s*Math.abs(1-T),e=Math.floor(t-a),i=String(e).substr(0,String(e).length-1)+"0";return Number(i)},onResize(){console.log("onResize"),this.$nextTick(()=>{let t=document.getElementById("main_x"),s=document.getElementById("test_row");t&&(t=t.getBoundingClientRect(),document.getElementById("payment_way_div")&&(document.getElementById("payment_way_div").style.width=(1==this.zoom_status?t.width/.91:t.width)+"px"),s&&(s.style.width=t.width+"px"),document.getElementById("payment_way_right_1")&&(document.getElementById("payment_way_right_1").style.width=`calc(${1==this.zoom_status?"90%":"100%"} - `+(document.getElementById("payment_way_left_1").getBoundingClientRect().width+33)+"px)"),document.getElementById("payment_way_right_2")&&(document.getElementById("payment_way_right_2").style.width="calc(100% - "+(document.getElementById("payment_way_left_1").getBoundingClientRect().width+33)+"px)"))})},selectProduct(t){this.$store.dispatch("soundEffectPlay","click_button"),this.sel_product=t;let s=document.getElementsByClassName("product");if(this.prom_status)s[0].classList.remove("unselected"),s[0].classList.add("selected");else for(let a=0;a<2;a++)a==t-1?(s[a].classList.remove("unselected"),s[a].classList.add("selected")):(s[a].classList.remove("selected"),s[a].classList.add("unselected"))},next(){this.sel_product?this.step+=1:this.next_cnt+=1},prev(){this.step-=1},sendHyosungFailMail(){let t=this.$storage.get("user");console.log(t),this.$axios.post("https://e49n33s5yk.apigw.ntruss.com/maintenance/v1/0BxS9GgTSU/json",{brand:"tabstudy",name:t.president,phone:t.phone,academy:t.cname,loginid:t.loginid},{withCredentials:!1},{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{console.log(t)}).catch(t=>{console.error(t)})},addCardPopup(){this.add_card_disabled=!0,this.cardno="",this.birthday="",this.year="",this.month="",this.add_card_agree=null,this.add_card_all=!1,this.add_card_terms=!1,this.add_card_persinfo=!1,this.add_card_third=!1,this.card_company||this.card_number?(this.change_card_status=!0,this.join_dialog=!0):(this.change_card_status=!1,this.join_dialog=!0)},addCardValid(){let t=0,s=this.cardno.replace(/\-/g,"");return s.length<15||this.birthday.length<6||this.month.length<2||this.year.length<2?1:this.add_card_all&&this.add_card_terms&&this.add_card_persinfo&&this.add_card_third?t:1},addCard(){if(this.isAddingCard)return;this.isAddingCard=!0,this.loading_message="잠시만 기다려주세요.",this.loading_value=!0;const t=this.change_card_status,s={cid:this.$cid,customerKey:this.customerKey,cardNumber:this.cardno.replace(/\-/g,""),cardExpirationYear:String(this.year).substring(2,4),cardExpirationMonth:this.month,customerIdentityNumber:this.birthday,...t&&{isModify:!0},...t&&{billingId:this.billing_id}};this.$axios.post(this.$host+"/toss/payment/register/CARD",s).then(s=>{if(200===s.status){if(this.loading_value=!1,this.isAddingCard=!1,this.join_dialog=!1,!s.data.result)return this.error_msg="DUP"===s.data.error?"이미 등록된 카드입니다.":"사용할 수 없는 전화번호 입니다."===s.data.error?"생년월일 오류":s.data.error,void S["bus"].$emit("dialog",{status:!0,name:"payment_error"});this.billing_id=s.data.billingId,this.card_company=s.data.cardCompany,this.card_number=s.data.cardNumber,setTimeout(()=>{this.cardActionMessage=t?"카드가 변경되었습니다.":"카드가 등록되었습니다.",S["bus"].$emit("dialog",{status:!0,name:"card_action_success"})},100)}}).catch(t=>{console.log(t),this.loading_value=!1,this.isAddingCard=!1,this.cancleAddCard()})},goPayment(){let t={};this.loading_message="결제를 진행 중입니다.",this.loading_value=!0;const s=this.is_direct?this.prom_product:1==this.sel_product?"S":"P",a=this.$host+"/toss/payment",e=a+"/admin/NAC",i=a+"/complete/CARD",r=this.today.replace(/\. /g,"-")+" "+(M<10?"0":"")+M+":"+(z<10?"0":"")+z+":"+(H<10?"0":"")+H;if(t={cid:this.$cid,pid:s,billingId:this.billing_id},this.is_direct&&(t={...t,isDirect:!0,directCost:this.prom_product_price,directEventPkid:s,directEndDate:this.prom_product_end_date}),this.is_direct&&this.lastdate_status)return void this.$axios.post(e,{pid:s,cid:this.$cid,from:"admin"}).then(t=>{if(200==t.status&&t.data.result){let s=this.$storage.get("user");const a=t.data.vac;this.account=a.account,this.accountnm=a.accountnm,this.bankname=a.bankname,this.status=2,this.step=2,this.onResize(),s.paymentkind="NAC",this.$storage.set("user",s),this.$last_main_active="startpage",this.$last_sub_active="admininfo"}this.loading_value=!1}).catch(t=>{console.log(t),this.loading_value=!1});const l=(t,s,a)=>{t.product_type=s,t.payment_cost=a,t.payment_postdate=r,this.$storage.set("user",t),this.getCard()},n={DUP:"이미 결제가 신청되었습니다.","잔액부족":"카드잔액이 부족합니다.
다른 카드 결제 또는 카드잔액을 확인해주세요.","카드번호 오류":"카드 번호가 일치하지 않습니다.
다시 입력해주세요.","유효기간 오류":"유효기간이 일치하지 않습니다.
다시 입력해주세요.","생년월일오류":"생년월일이 일치하지 않습니다.
생년월일 3회 입력 오류시 온라인결제가 제한됩니다.
다시 입력해주세요.","주민/사업자번호 오류":"사업자 번호가 일치하지 않습니다.
다시 입력해주세요.","비밀번호오류횟수초과":"입력 오류 횟수 초과로 입력이 제한됩니다.
카드사 측에 문의해 주세요.","중복승인거래":"카드사 측의 승인 오류로
잠시 후 결제 시도 부탁드립니다."};this.$axios.post(i,t).then(t=>{if(200==t.status){if(t.data.result){let t=this.$storage.get("user");t.paymentkind="CARD",this.is_direct?l(t,this.prom_product,this.prom_product_price):l(t,1==this.sel_product?"S":"P",this.price),this.$nextTick(()=>{this.onPaymentCompleted()})}else{const s=t.data.error;this.error_msg="DUP"==s?n.DUP:"잔액부족"==s?n["잔액부족"]:"카드번호 오류"==s?n["카드번호 오류"]:"유효기간 오류"==s?n["유효기간 오류"]:"생년월일오류"==s?n["생년월일오류"]:"주민/사업자번호 오류"==s?n["주민/사업자번호 오류"]:"비밀번호오류횟수초과"==s?n["비밀번호오류횟수초과"]:"중복승인거래"==s?n["중복승인거래"]:"결제가 취소되었습니다.",this.openDialog("payment_error")}this.loading_value=!1}}).catch(t=>{console.log(t)})},cancleAddCard(){this.add_card_disabled=!0,this.cardno="",this.birthday="",this.year="",this.month="",this.add_card_agree=null,this.add_card_all=!1,this.add_card_terms=!1,this.add_card_persinfo=!1,this.add_card_third=!1,this.join_dialog=!1},goCheck(){if(["VAC","NAC"].includes(this.$storage.get("user").paymentkind)){"VAC"==this.$storage.get("user").paymentkind?this.openAlert("payment_instruction"):this.openAlert("payment_instruction_nac"),document.getElementById("check_btn").style.display="none",this.$now_main_active="startpage",this.$now_sub_active="admininfo",this.$parent.$parent.$parent.main_active="startpage",this.$parent.$parent.$parent.sub_active="admininfo";let t=document.getElementsByClassName("custom-tab-btn");for(let s=0;s{if(200==t.status){let t=this.$storage.get("user");t.paymentconf=1,this.$storage.set("user",t)}}).catch(t=>{console.log(t)})}else"CARD"==this.$storage.get("user").paymentkind&&this.$router.push({name:"startpage-admininfo"})},viewTerms(t){this.term_type=t,this.card_status=1},allTerms(t){t?(this.add_card_terms=!0,this.add_card_persinfo=!0,this.add_card_third=!0):(this.add_card_terms=!1,this.add_card_persinfo=!1,this.add_card_third=!1),this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},async forceLogout(){if(!this.isLoggingOut){if(this.isLoggingOut=!0,this.logoutTimer&&(clearTimeout(this.logoutTimer),this.logoutTimer=null),this.$storage.remove("user"),this.$store&&this.$store.dispatch)try{await this.$store.dispatch("logout")}catch(t){console.log(t)}this.$router.replace({name:"login"}).catch(()=>{})}},onPaymentCompleted(){this.isLoggingOut||(S["bus"].$emit("dialog",{status:!0,name:"payment_success_logout"}),this.logoutTimer=setTimeout(()=>{this.forceLogout()},3e3))},calcResult(){const t=t=>t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+"원";var s=new Date;s.getDate()>15?(this.gamaeng_status=!0,this.gamaeng_month=s.getMonth()+1):this.gamaeng_status=!1,this.info_show=!0;var a=parseInt(this.stunum),e=6e3,i=5e3,r=4500,l=4e3,n=98e3,c=178e3;document.getElementById("stunum2").innerHTML=a.toString()+"명";var o=document.getElementById("goods"),d=document.getElementById("goods2"),_=document.getElementById("goods3"),m=document.getElementById("goods4"),p=document.getElementById("row_1_stunum"),h=document.getElementById("goodsbasic"),u=document.getElementById("row_1_basic");u.innerHTML=a<=29?"기본료 (15명)":"기본료 (30명)";var y=document.getElementById("row_2_stunum"),g=document.getElementById("row_2_basic"),b=document.getElementById("row_2_cost"),f=document.getElementById("row_3_stunum"),v=document.getElementById("row_3_basic"),C=document.getElementById("row_3_cost"),w=document.getElementById("row_4_stunum"),x=document.getElementById("row_4_basic"),S=document.getElementById("row_4_cost"),k=document.getElementById("basic-cost"),$=document.getElementById("discount"),L=document.getElementById("cost_table").rows;for(let M=0,z=L.length;M15&&a<=29){L[1].style.display="table-row",L[2].style.display="table-row",o.innerHTML="내공스터디 Standard",h.innerHTML=t(n),p.innerHTML=15..toString()+"명",d.innerHTML="내공스터디 Custom (~30명)",y.innerHTML=(a-15).toString()+"명",g.innerHTML=t(e);var T=(a-15)*e;b.innerHTML=t(T),k.innerHTML=t(n+T),this.total_cost=t(n+T),$.innerHTML=0}else if(30==a)L[1].style.display="table-row",o.innerHTML="내공스터디 Premium",p.innerHTML=a.toString()+"명",h.innerHTML=t(c),k.innerHTML=t(c),this.total_cost=t(c),$.innerHTML=0;else if(a>30&&a<=50){L[1].style.display="table-row",L[2].style.display="table-row",o.innerHTML="내공스터디 Premium",p.innerHTML="30명",h.innerHTML=t(c),d.innerHTML="내공스터디 Custom (~50명)",y.innerHTML=(a-30).toString()+"명",g.innerHTML=t(i);let s=(a-30)*i;b.innerHTML=t(s),k.innerHTML=t(6e3*a),this.total_cost=t(c+s);let e=(6e3*a-(c+s))/(c+s)*100;$.innerHTML=e.toFixed(1)}else if(a>50&&a<=100){L[1].style.display="table-row",L[2].style.display="table-row",L[3].style.display="table-row",o.innerHTML="내공스터디 Premium",p.innerHTML=30..toString()+"명",h.innerHTML=t(c),d.innerHTML="내공스터디 Custom (~50명)",y.innerHTML=20..toString()+"명",g.innerHTML=t(i);let s=20*i;b.innerHTML=t(s),_.innerHTML="내공스터디 Custom (~100명)",f.innerHTML=(a-50).toString()+"명",v.innerHTML=t(r);let e=(a-50)*r;C.innerHTML=t(e),k.innerHTML=t(6e3*a),this.total_cost=t(c+s+e);let l=(6e3*a-(c+s+e))/(6e3*a)*100;$.innerHTML=l.toFixed(1)}else if(a>100){L[1].style.display="table-row",L[2].style.display="table-row",L[3].style.display="table-row",L[4].style.display="table-row",o.innerHTML="내공스터디 Premium",p.innerHTML=30..toString()+"명",h.innerHTML=t(c),d.innerHTML="내공스터디 Custom (~50명)",y.innerHTML=20..toString()+"명",g.innerHTML=t(i);let s=20*i;b.innerHTML=t(s),_.innerHTML="내공스터디 Custom (~100명)",f.innerHTML=50..toString()+"명",v.innerHTML=t(r);let e=50*r;C.innerHTML=t(e),m.innerHTML="내공스터디 Custom (100명 초과)",w.innerHTML=(a-100).toString()+"명",x.innerHTML=t(l);let n=(a-100)*l;S.innerHTML=t(n),k.innerHTML=t(6e3*a),this.total_cost=t(c+s+e+n);let u=(6e3*a-(c+s+e+n))/(6e3*a)*100;$.innerHTML=u.toFixed(1)}}},beforeDestroy(){this.allBusDestroy(),window.removeEventListener("message",this.handleBillingResult),this.logoutTimer&&(clearTimeout(this.logoutTimer),this.logoutTimer=null)}},I=B,A=(a("f079"),a("7f5a"),a("2877")),P=Object(A["a"])(I,b,f,!1,null,null,null);s["default"]=P.exports},dc23:function(t,s,a){},f079:function(t,s,a){"use strict";a("735e")}}]); //# sourceMappingURL=chunk-9b4c247a.219ebba8.js.map