(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,s){t.exports=s("56d7")},"018c":function(t,e,s){t.exports=s.p+"img/daily_report_4.db70cd7b.png"},"04da":function(t,e,s){"use strict";s("de7f")},"051e":function(t,e,s){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{ref:"box"},[e("div",{staticClass:"auto-text",class:t.overflow,style:t.styles},[t._t("default",(function(){return[e("div",{domProps:{innerHTML:t._s(t.conv_text)}})]}))],2)])},i=[],o={name:"auto-text",props:{width:Number,text:String,size:{type:Number,required:!0},minSize:{type:Number,default:16},overflow:{type:String,default:"ellipsis",validator(t){return"ellipsis"===t||"clip"===t||"break"===t}}},data(){return{fontSize:this.size,styles:{},conv_text:this.text}},watch:{text(){this.computeFontsize()}},mounted(){this.computeFontsize()},methods:{createTempSpan(t){const e="get-text-width-"+this._uid,s=document.createElement("span");return s.innerText=t,s.className=e,s.style.whiteSpace="nowrap",this.$el.appendChild(s),s},removeTempSpan(t){this.$el.removeChild(t)},getTextWidth(t,e){return e.style.fontSize=t+"px",e.offsetWidth},computeFontsize(){this.$nextTick(()=>{const t=this.text||this.$el.innerText,e=this.width||this.$el.clientWidth,s=this.minSize;let a=this.size;const i=this.createTempSpan(t);let o=this.getTextWidth(a,i);while(o>e&&a>s)a-=1,o=this.getTextWidth(a,i);this.removeTempSpan(i),this.fontSize=a,this.styles={fontSize:a+"px",width:e+"px"},this.wrapSpan()})},wrapSpan(){let t=this.text||this.$el.innerText;if("(답안지)"==t||" (답안지)"==t)return this.conv_text=null,!1;if(""!=t.replace(/ /gi,"")){let e=t.split("");for(let t=0,s=e.length;t${e[t]}`}this.conv_text=e.join("")}}}},n=o,l=(s("64d4"),s("2877")),r=Object(l["a"])(n,a,i,!1,null,null,null);e["a"]=r.exports},"0628":function(t,e,s){"use strict";s("81d0")},"07d3":function(t,e,s){},"0ae3":function(t,e,s){},"0be3":function(t,e,s){"use strict";s("9790")},"0c86":function(t,e,s){"use strict";s("9f4e")},"0d41":function(t,e,s){},"0f34":function(t,e,s){},"0f93":function(t,e,s){"use strict";s("db97")},"112f":function(t,e,s){"use strict";s("55c6")},"11fc":function(t,e,s){},"158e":function(t,e,s){t.exports=s.p+"img/type_popup2.bb3258a8.png"},1631:function(t,e,s){"use strict";s("cfc3")},1737:function(t,e,s){"use strict";s("33e6")},1838:function(t,e,s){t.exports=s.p+"img/report_card.9d4fe919.png"},"1b2a":function(t,e,s){t.exports=s.p+"img/daily_report_2.34492252.png"},"1cc6":function(t,e,s){"use strict";s("11fc")},"1ef1":function(t,e,s){t.exports=s.p+"img/m_report.97029e06.png"},"1fa2":function(t,e,s){"use strict";s("ce96")},2273:function(t,e,s){"use strict";s("3249")},2630:function(t,e,s){"use strict";s("7071")},"267f":function(t,e,s){"use strict";s("8bde")},"268a":function(t,e,s){},"2a23":function(t,e,s){t.exports=s.p+"img/format_popup.22a77e9c.png"},"2aae":function(t,e,s){},"2af8":function(t,e,s){"use strict";s("8369")},"31d0":function(t,e,s){"use strict";(function(t){var a=s("56d7"),i=s("5ce4"),o=s("32fa"),n=s("bfb5"),l=s("b4b9"),r=s("55f3"),c=s("7381");e["a"]={name:"lesson-bookprint",components:{LoadingDialog:i["a"],ctooltip:r["a"],preFont:c["a"],SelectBookTypeDialog:o["a"],BookTable:n["a"],SelectedInfo:l["a"]},data(){return{user:this.$storage.get("user"),test_key:0,book_type:"",print_mode:"test",mode:"list",tab:null,tabs:4,loading_value:!1,loading_percent:1,loading_message:"잠시만 기다려주세요.",get_count_status:!1,learning_check:!1,learning_arr:[],datatable_component:0,item_key:"id",expanded:[],book_items:[],select_books:[],select_units:[],select_folder:{},select_folder_id:void 0,folder_book_items:{},folder_open_status:!1,origin_sentence:[],all_sentence:[],nowpage:1,maxpage:1,printpage:["0"],all_sentence_arr:{1:[],2:[]},book_sentence:[],select_row:!1,select_id:"",check:[],subcheck:[],checkCnt:0,preview_name:"제목을 입력해주세요.",fontSize:12,avatarSize:30,rowpadding:2,question_indent:-8,textIndent:-17,exs_ml:0,leftrate:"50",rightrate:"50",toggle_exclusive_1:1,toggle_exclusive_2:2,preview_width:2,thumb_labels:["3:7","4:6","5:5","6:4","7:3"],logostatus:!0,cnamestatus:!0,answer_sheet:!1,widthRateDisabled:!1,print_disabled:!1,test_unit_cnt:0,input_test_unit_cnt:0,test_option_disabled:!0,err_status:0,voca_to_mean:{check:!1,disabled:!0,multi_val:"",short_val:""},mean_to_voca:{check:!1,disabled:!0,multi_val:"",short_val:""},sen_to_mean:{check:!1,disabled:!0,multi_val:"",short_val:""},mean_to_sen:{check:!1,disabled:!0,multi_val:"",short_val:""},word_arrange:{check:!1,disabled:!0,val:"",new_val:""},word_inference:{check:!1,disabled:!0,val:""},paragraph_order:{check:!1,disabled:!0,val:""},reading_quiz:{check:!1,disabled:!0,val:""},blank_inference:{check:!1,disabled:!0,val:"",new_val:""},grammar_quiz:{check:!1,disabled:!0,val:""},save:{voca_to_mean:{multi_val:"",short_val:""},mean_to_voca:{multi_val:"",short_val:""},sen_to_mean:{multi_val:"",short_val:""},mean_to_sen:{multi_val:"",short_val:""},word_arrange:{val:"",new_val:""},word_inference:{val:""},paragraph_order:{val:""},reading_quiz:{val:""},blank_inference:{val:"",new_val:""},grammar_quiz:{val:""},practical:{val:""}},short_name:{voca_to_mean:{multi_val:"vtm_mv",short_val:"vtm_sv"},mean_to_voca:{multi_val:"mtv_mv",short_val:"mtv_sv"},sen_to_mean:{multi_val:"stm_mv",short_val:"stm_sv"},mean_to_sen:{multi_val:"mts_mv",short_val:"mts_sv"},word_arrange:{val:"word_arrange",new_val:"word_arrange_new"},word_inference:{val:"word_inference"},paragraph_order:{val:"paragraph_order"},reading_quiz:{val:"reading_quiz"},blank_inference:{val:"blank_inference",new_val:"blank_inference_new"},grammar_quiz:{val:"grammar_quiz"},practical:{val:"practical"}},test_option_div:0,print_complete_status:0,recent_area:[],stmm:0,tab_val:1,tabcol:0,sel_key:0,progressColor:"#1bd05b",sub_onoff_status:!1,print_bg:"",s_sentences_cnt:0,s_words_cnt:0,s_banks_cnt:0,s_wi_cnt:0,s_po_cnt:0,s_rq_cnt:0,s_bi_cnt:0,s_gq_cnt:0,s_wa_n_cnt:0,s_test_order:"0",previewBtn:!0,v_sum:0,s_sum:0,b_sum:0,v_last_key:[],s_last_key:[],b_last_key:[],last_key1:"",last_key2:"",open_unitlist_status:!1,click_status:!1,text_click_status:!1,zero_status:!1,autotext_key:0,full_screen:!1,last_scale:!1,last_pa_width:!1,img_fp:1,countstatus:!1,exceptstatus:!1,page_type:"normal",normal_page_num:0,answer_page_num:0,tot_over_status:!1,timer:"",info_tooltip_display:"none",info_tooltip_text:"",info_tooltip_type:"",info_tooltip_top:"-1000px",info_tooltip_left:"-1000px",is_grammar:!1,is_storybook:!1,grammar_units:[],grammar_sum:0,t1:{check:!1,disabled:!0,val:""},t2:{check:!1,disabled:!0,val:""},b1:{check:!1,disabled:!0,val:""},b2:{check:!1,disabled:!0,val:""},b3:{check:!1,disabled:!0,val:""},b4:{check:!1,disabled:!0,val:""},d1:{check:!1,disabled:!0,val:""},d2:{check:!1,disabled:!0,val:""},storage_user:null,storybook_units:[],storybook_sum:0,practical:{check:!1,disabled:!0,val:""},return_type:{vtm_mv:"v1",vtm_sv:"v2",mtv_mv:"mtv1",mtv_sv:"mtv2",stm_mv:"w1",stm_sv:"w2",mts_mv:"m1",mts_sv:"m2",word_arrange:"",word_arrange_new:"word_arrange",word_inference:"",paragraph_order:"",reading_quiz:"",blank_inference:"",blank_inference_new:"",grammar_quiz:""},grammarBookUnitIds:{e_ids:[],m_ids:[],m_review_ids:[]},show_info:{voca_to_mean:!1,mean_to_voca:!1,sen_to_mean:!1,mean_to_sen:!1,word_arrange:!1,blank_inference:!1,word_inference:!1,paragraph_order:!1,reading_quiz:!1,grammar_quiz:!1},print_max_cnt:"F"==this.$storage.get("user").product_type?100:300}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){let t=new Date,e=t.getFullYear(),s=1+t.getMonth();s=s>=10?s:"0"+s;let a=t.getDate();a=a>=10?a:"0"+a;let i=t.getHours();this.img_fp=e+s+a+i},mounted(){this.conditionByTutorial("t11")&&this.$store.dispatch("updateTutorial",["t11"]),this.getAllGrammarBookUnitIds(),this.datatable_component+=1,a["bus"].$on("close_event",t=>{t.status&&(this.err_status=0,this.test_option_disabled=!0)}),window.addEventListener("message",this.mListener),window.addEventListener("resize",this.onResize),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none";let t=document.getElementsByClassName("grade_items");for(var[e,s]of Object.entries(t))0!=e?s.style.color="black":(s.classList.add("success"),s.style.color="white");"F"!=this.user.product_type&&1!=this.user.franchise||0!=+this.user.print_cnt||(this.zero_status=!0,this.openAlert("free_print_exhausted"))},100);const t={deep:!0};this.unwatch1=this.$watch(t=>[t.voca_to_mean,t.mean_to_voca,t.sen_to_mean,t.mean_to_sen],t=>{this.resetVal("ms",t)},t),this.unwatch2=this.$watch(t=>[t.word_inference,t.paragraph_order,t.reading_quiz,t.grammar_quiz],t=>{this.resetVal("val",t)},t),this.unwatch3=this.$watch(t=>[t.word_arrange,t.blank_inference],t=>{this.resetVal("newval",t)},t),this.unwatch4=this.$watch(t=>t.t1,t=>this.watchGrammar("t1",t),t),this.unwatch5=this.$watch(t=>t.t2,t=>this.watchGrammar("t2",t),t),this.unwatch6=this.$watch(t=>t.b1,t=>this.watchGrammar("b1",t),t),this.unwatch7=this.$watch(t=>t.b2,t=>this.watchGrammar("b2",t),t),this.unwatch8=this.$watch(t=>t.b3,t=>this.watchGrammar("b3",t),t),this.unwatch9=this.$watch(t=>t.b4,t=>this.watchGrammar("b4",t),t),this.unwatch10=this.$watch(t=>t.d1,t=>this.watchGrammar("d1",t),t),this.unwatch11=this.$watch(t=>t.d2,t=>this.watchGrammar("d2",t),t),this.unwatch12=this.$watch(t=>t.practical,t=>this.watchStoryBook("practical",t),t),this.unwatches=[this.unwatch1,this.unwatch2,this.unwatch3,this.unwatch4,this.unwatch5,this.unwatch6,this.unwatch7,this.unwatch8,this.unwatch9,this.unwatch10,this.unwatch11,this.unwatch12]},watch:{mode(t){this.exceptstatus=!1,"list"==t&&this.$nextTick(()=>{document.getElementById("test_print_option")&&document.getElementById("test_print_option").addEventListener("scroll",this.onScroll)})},checkCnt(t){if(console.log("checkCnt",t),0==t){let t=["voca_to_mean","mean_to_voca","sen_to_mean","mean_to_sen","word_arrange","word_inference","paragraph_order","reading_quiz","blank_inference","grammar_quiz","t1","t2","b1","b2","b3","b4","d1","d2","practical"];for(let e=0,s=t.length;e{document.getElementById("test_print_option")&&document.getElementById("test_print_option").addEventListener("scroll",this.onScroll)})},preview_name(t){t&&""!=t.replace(/ /g,"")?this.print_disabled=!1:(document.querySelectorAll(".auto-text.clip")[0]&&(document.querySelectorAll(".auto-text.clip")[0].innerHTML=""),this.print_disabled=!0)},select_units(t){0===t.length&&(this.previewBtn=!0)},is_grammar(t){this.save=t?{t1:{val:""},t2:{val:""},b1:{val:""},b2:{val:""},b3:{val:""},b4:{val:""},d1:{val:""},d2:{val:""}}:{voca_to_mean:{multi_val:"",short_val:""},mean_to_voca:{multi_val:"",short_val:""},sen_to_mean:{multi_val:"",short_val:""},mean_to_sen:{multi_val:"",short_val:""},word_arrange:{val:"",new_val:""},word_inference:{val:""},paragraph_order:{val:""},reading_quiz:{val:""},blank_inference:{val:"",new_val:""},grammar_quiz:{val:""},practical:{val:""}}},"$store.state.user.zoom_status"(){"list"!==this.mode&&(this.loading_value=!0,this.calcHeight(),this.nowpage=1,document.print_form.user.value=JSON.stringify(this.$store.state.user),document.print_form.submit())}},computed:{getPreviewName(){return this.preview_name+(0!=this.normal_page_num&&this.nowpage>this.normal_page_num?" (답안지)":"")},chkVsum(){let t=["voca_to_mean","mean_to_voca"],e=0;for(let a=0,i=t.length;athis.print_max_cnt&&!this.tot_over_status&&this.last_key1.match("voca")||s<0)&&this.overCountEve("v"),s},chkSsum(){let t=["sen_to_mean","mean_to_sen"],e=0;for(let o=0,n=t.length;othis.print_max_cnt&&!this.tot_over_status&&t.concat(s).includes(this.last_key1)||i<0)&&this.overCountEve("s"),i},chkBsum(){let t=+this.word_inference.val||0,e=+this.paragraph_order.val||0,s=+this.reading_quiz.val||0,a=+this.grammar_quiz.val||0;this.v_sum+this.s_sum+this.b_sum>this.print_max_cnt&&!this.tot_over_status&&this.overCountEve("b"),this.s_wi_cnt{let e=0;for(let s=0,a=this.grammar_units.length;s{let e=0;for(let s=0,a=this.storybook_units.length;sthis.grammarBookUnitIds.m_ids.includes(+t));let e="심화학습";return t&&(e="심화학습1"),e},grammarBasicArr(){let t=["b1"];const e=this.select_units.some(t=>this.grammarBookUnitIds.e_ids.includes(+t)),s=this.select_units.some(t=>this.grammarBookUnitIds.m_ids.includes(+t));return e?t=["b1","b2","b3","b4"]:s&&(t=["b1","b2"]),t}},methods:{getPrevCount(t){let e=0;for(let s=t-1;s>=0;--s)e+=this.all_sentence_arr[s].length;return e},getCounts(){if(0===this.select_units.length||this.is_grammar)return this.s_sentences_cnt=0,this.s_wa_n_cnt=0,this.s_words_cnt=0,this.s_wi_cnt=0,this.s_po_cnt=0,this.s_rq_cnt=0,this.s_gq_cnt=0,this.s_banks_cnt=0,this.get_count_status=!1,!1;console.time("getCounts"),this.$axios.post(this.$host+"/book/getcounts",this.select_units).then(t=>{if(console.timeEnd("getCounts"),t){let e=t.data;this.s_sentences_cnt=e.sentences_cnt,this.s_wa_n_cnt=e.wa_n_cnt,this.s_words_cnt=e.words_cnt,this.s_wi_cnt=e.wi_cnt,this.s_po_cnt=e.po_cnt,this.s_rq_cnt=e.rq_cnt,this.s_gq_cnt=e.gq_cnt,this.s_banks_cnt=e.banks_cnt}this.get_count_status=!1}).catch(t=>{console.error(t),this.get_count_status=!1})},exceptUnit(t,e){this.get_count_status=!0;let s=t.folder_id?this.folder_book_items[t.folder_id]:this.book_items[t.category],a=e.rel_id?e.id.replace("/"+e.rel_id,""):e.id,i=new Promise(i=>{if(this.checkIsGrammar(t)){if(this.is_grammar){let t=this.grammar_units.findIndex(t=>t.id==a);-1!=t&&this.grammar_units.splice(t,1),0===this.grammar_units.length&&(this.is_grammar=!1);let e=["t1","t2","b1","b2","b3","b4","d1","d2"],s=0;for(let a=0,i=e.length;a0&&this.grammar_units.length>0&&this.overCountEve("t1")}}else if(this.checkIsStoryBook(t)&&this.is_storybook){let t=this.storybook_units.findIndex(t=>t.id==a);-1!=t&&this.storybook_units.splice(t,1),0===this.storybook_units.length&&(this.is_storybook=!1);let e=0;this.chkStoryBookSubUnitSum("practical")0&&this.storybook_units.length>0&&this.overCountEve("practical")}let o=s.findIndex(e=>e.id==t.id);if(-1!=o){let i=s[o].sub_data.findIndex(t=>t.id==a);-1!=i&&(s[o].sub_data[i].check=!1),s[o].sub_data.filter(t=>t.check).length!=s[o].sub_data.length&&(s[o].check=!1);let n=this.select_books.findIndex(e=>e.id==t.id);if(-1!=n){Object.entries(this.select_books[n].units).forEach(t=>{const[s,a]=t;a.id==e.id&&delete this.select_books[n].units[s]});let t=this.select_units.findIndex(t=>t==e.id);-1!=t&&this.select_units.splice(t,1),0==Object.keys(this.select_books[n].units).length&&this.select_books.splice(n,1)}}i()});i.then(()=>{this.getCounts()});const o=this.select_books.map(t=>Object.keys(t.units).length);this.checkCnt=o.reduce((t,e)=>t+e,0)},async goPreview(){console.log("gopreview");try{if(this.info_tooltip_display="none",this.nowpage=1,this.maxpage=0,this.normal_page_num=0,this.answer_page_num=0,this.err_status=0,this.is_grammar){this.g_sum=0;let t=["t1","t2","b1","b2","b3","b4","d1","d2"],e=0;for(let s=0,a=t.length;s0?this.err_status="v_0":this.s_words_cnt0?this.err_status="s_0":this.s_sentences_cnt0?(this.s_wi_cnt{200==e.status?(this.print_bg=`'${this.$cdn}/img/bg/test_print_bg_1.png?v=${+new Date}'`,this.mode="preview",this.$nextTick(()=>{this.$forceUpdate();let s=document.print_form;s.target="test_iframe",s.res_data.setAttribute("value",JSON.stringify(e.data)),s.submit();let a=document.getElementById("tmploading");a.style.display="block",this.initPrintPage();const i=Object.entries(t);for(let[t,o]of i)if(+o>0)if(["word_inference","paragraph_order","reading_quiz","grammar_quiz","word_arrange","word_arrange_new","blank_inference","blank_inference_new"].includes(t)){const s=e.data.filter(e=>e.bt==t).length;if(["word_arrange","word_arrange_new"].includes(t)){const e=""==t.replace("word_arrange","")?"val":"new_val";this.save["word_arrange"][e]=s}else if(["blank_inference","blank_inference_new"].includes(t)){const e=""==t.replace("blank_inference","")?"val":"new_val";this.save["blank_inference"][e]=s}else this.save[t].val=s}else{const s=e.data.filter(e=>e.type==this.return_type[t]).length;let a=t.split("_")[0];"stm"==a?a="sen_to_mean":"mts"==a?a="mean_to_sen":"vtm"==a?a="voca_to_mean":"mtv"==a&&(a="mean_to_voca");const i="mv"==t.split("_")[1]?"multi_val":"short_val";this.save[a][i]=s}})):204==e.status&&this.openAlert("null_sentence")}).catch(t=>{console.log(t)})}catch(t){console.error(t)}},calcHeight(){let t=document.getElementById("printarea0");if(t){const e=this.$storage.get("user").zoom_status;let s=1;if(0===e)t.style.width=t.getBoundingClientRect().height/1.414+"px",this.last_pa_width=t.style.width,s=.2645833333*t.getBoundingClientRect().width/210,this.last_scale=s;else if(1===e){const e=(t.getBoundingClientRect().height/.901).toFixed(3);t.style.width=e/1.414+"px",this.last_pa_width=t.style.width,s=e/1.414*.2645833333/210,this.last_scale=s}let a=document.getElementById("scalearea_0");a.childNodes[1].style.height="calc(100% - 256px)",a.style.transform=`scale(${s})`,a.style.opacity="1"}},initPrintPage(){console.time("init1"),this.loading_value=!0,this.loading_percent=1,this.print_complete_status=0;let t=document.getElementById("tmploading"),e=document.getElementsByClassName("printarea");t&&(t.childNodes[0]&&(t.childNodes[0].style.width=e[0].style.width),t.childNodes[0].childNodes[0]&&(t.childNodes[0].childNodes[0].style.transform=`scale(${e[0].getBoundingClientRect().height/1.414*.2645833333/210}) translate(-50%, -50%)`));let s=()=>new Promise(t=>{e.length>1&&(this.maxpage=e.length),this.calcHeight(),this.topNavBarChange(),t()});setTimeout(()=>{s().then(()=>{})},100)},forEachPromise(t,e,s){return t.reduce((function(t,a){return t.then((function(){return e(a,s)}))}),Promise.resolve())},pushItem(e,s){return new Promise(a=>{t.nextTick(()=>{let t="",i=document.getElementsByClassName("middle_section"),o=this.all_sentence_arr.length;this.all_sentence_arr[o-2].push(e),o%2==0?(t=2==o?i[o-2].childNodes[0]:i[o/2-1].childNodes[0],s+.2645833333*t.getBoundingClientRect().height>240&&(this.all_sentence_arr[o-2].splice(this.all_sentence_arr[o-2].length-1,1),this.all_sentence_arr[2==o?o-1:o-2].push(e),this.all_sentence_arr.push(new Array))):(t=3==o?i[o-3].childNodes[1]:i[(o-1)/2-1].childNodes[1],s+.2645833333*t.getBoundingClientRect().height>240&&(this.all_sentence_arr[o-2].splice(this.all_sentence_arr[o-2].length-1,1),this.all_sentence_arr[o-1].push(e),this.printpage.push(String(this.printpage.length)),this.all_sentence_arr.push(new Array))),a("success")})})},movePage(t){this.$store.dispatch("soundEffectPlay","click_button"),document.getElementById("test_iframe").contentWindow.postMessage({key:"movepage",value:t},"*")},openTestDialog(){this.$axios.get(`${this.$host}/book/getunitsentencecnt?unitids=${this.select_units}`).then(t=>{200==t.status?this.test_unit_cnt=t.data:this.test_unit_cnt=0}).catch(t=>{console.log(t)}),this.openDialog("test_option")},testCheck(t){this[t].disabled=!this[t].check,this[t].multi_val&&(this[t].multi_val=""),this[t].short_val&&(this[t].short_val=""),this[t].val&&(this[t].val=""),this[t].val&&(this[t].new_val=""),this.testVal("type","testcheck")},async testVal(t,e){let s,a="";if("testcheck"!=e)if(this.$nextTick(()=>{this[t][e]=this[t][e].replace(/[^0-9]/g,""),this.$forceUpdate()}),this.last_key1=t,this.last_key2=e,["voca_to_mean","mean_to_voca","t1","t2"].includes(t)?a="v":["sen_to_mean","mean_to_sen","word_arrange","word_arrange_new","blank_inference","blank_inference_new","b1","b2","b3","b4"].includes(t)?a="s":["word_inference","paragraph_order","reading_quiz","grammar_quiz","d1","d2","practical"].includes(t)&&(a="b"),-1===this[a+"_last_key"].indexOf(`${t}//${e}`)&&""!=this[t][e])this[a+"_last_key"].push(`${t}//${e}`);else if(-1!==this[a+"_last_key"].indexOf(`${t}//${e}`)&&(""==this[t][e]||0==this[t][e])){let s=this[a+"_last_key"].findIndex(s=>s==`${t}//${e}`);-1!=s&&this[a+"_last_key"].splice(s,1)}if(this.is_grammar){s=0;let t=["t1","t2","b1","b2","b3","b4","d1","d2"];for(let e=0,a=t.length;ethis.print_max_cnt){const t=this[a+"_last_key"];let e=t.length-1,i=e>=0?t[e].split("//")[0]:"",o=e>=0?t[e].split("//")[1]:"";this[a+"_sum"]-=this[i][o],s-=this[i][o],this[i][o]="",t.splice(e,1),this.stmm++,this.openAlert("over_count_"+this.print_max_cnt)}}else{this.v_sum=0,this.s_sum=0,this.b_sum=0;let t=["voca_to_mean","mean_to_voca"],e=["sen_to_mean","mean_to_sen"],a=["word_arrange","blank_inference"],i=["word_inference","paragraph_order","reading_quiz","grammar_quiz"];for(let s=0,o=t.length;s0&&s<=this.print_max_cnt),this.conditionByTutorial("t13")&&s>0&&s<=this.print_max_cnt&&(await this.$store.dispatch("updateTutorial",["t13"]),this.$forceUpdate())},windowPrint(){if(this.$store.state.is_mobile)this.openDialog("mobile_print");else{this.$store.dispatch("soundEffectPlay","click_button");let t={testname:this.preview_name,quizcnt:this.origin_sentence.length,fontsize:this.toggle_exclusive_1,lineheight:this.toggle_exclusive_2,lr_rate:this.leftrate/10+":"+this.rightrate/10,pagecnt:this.maxpage,info:"",content:this.origin_sentence,exceptstatus:this.exceptstatus?1:0,is_grammar:this.is_grammar?1:0,is_storybook:this.is_storybook?1:0};if(this.is_grammar){let e=["t1","t2","b1","b2","b3","b4","d1","d2"];for(let s=0,a=e.length;s=17&&this.openAlert("max_preview_name"),document.getElementById("test_iframe").contentWindow.postMessage({key:"preview_name",value:this.preview_name},"*")},toggleChange(t,e){"font-size"==t?(0==e?(this.question_indent=-8,this.textIndent=-14):1==e?(this.question_indent=-8,this.textIndent=-17):2==e&&(this.question_indent=-9,this.textIndent=-19),this.fontSize=10+2*+e,this.avatarSize=this.fontSize+16):"line-height"==t&&(this.rowpadding=e),this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate(),document.print_form.submit()})},getRandom(t,e){return Math.floor(Math.random()*(e-t+1)+t)},getRandomArray(t,e,s){if(!(e-t+1-1)&&(a.push(i),a.length==s))break}return a.sort((function(t,e){return t-e}))}},overCountEve(t){this.tot_over_status||(this.tot_over_status=!0,this.v_sum+this.s_sum+this.b_sum>this.print_max_cnt?this.openAlert("over_count_"+this.print_max_cnt):this.openAlert("over_count"),this.$nextTick(()=>{if(t.match("_")){let e="";switch(Number(t.split("_")[1])){case 1:e="word_inference";break;case 2:e="paragraph_order";break;case 3:e="reading_quiz";break;case 5:e="grammar_quiz";break;default:break}let s=this.b_last_key.findIndex(t=>t==e+"//val");this[e].val="",-1!=s&&this.b_last_key.splice(s,1)}else{this.is_grammar?["t1","t2"].includes(t)?t="v":["b1","b2","b3","b4"].includes(t)?t="s":["d1","d2"].includes(t)&&(t="b"):this.is_storybook&&"practical"==t&&(t="b");const e=this[t+"_last_key"];let s=e.length-1,a=s>=0?e[s].split("//")[0]:"",i=s>=0?e[s].split("//")[1]:"";this[t+"_sum"]-=this[a][i],this[a][i]="",e.splice(s,1)}this.tot_over_status=!1}))},openUnitList(){const t=document.getElementById("unit_list"),e=document.getElementById("unit_list_header"),s=t.classList.contains("hide_unit");t.classList.remove((s?"hide":"show")+"_unit"),t.classList.add((s?"show":"hide")+"_unit"),setTimeout(()=>{e.classList.remove((s?"hide":"show")+"_unit_header"),e.classList.add((s?"show":"hide")+"_unit_header"),this.open_unitlist_status=s},0)},fullScreen(){console.log("fullScreen1");let t=document.getElementsByClassName("printarea"),e=document.getElementById("test_wrapper"),s=t[0];if(this.full_screen){e.style.overflowY="unset";for(let[e,s]of Object.entries(t))s.style.width=this.last_pa_width,s.getElementsByClassName("scalearea")[0].style.transform="scale("+this.last_scale+")"}else{e.style.overflowY="scroll";let a="";for(let[e,i]of Object.entries(t))i.style.width="100%",this.$nextTick(()=>{a=s.getBoundingClientRect().width/793.70078739,i.getElementsByClassName("scalearea")[0].style.transform="scale("+a+")"})}this.full_screen=!this.full_screen},mListener(t){if(t.data.maxpage)setTimeout(()=>{this[t.data.type+"_page_num"]=t.data.maxpage,this.$forceUpdate(),this.print_complete_status=1,this.loading_value=!1,console.timeEnd("init1");let e=document.getElementById("tmploading");e.style.display="none",this.maxpage=t.data.maxpage},0);else if(t.data.nowpage)setTimeout(()=>{this.nowpage=t.data.nowpage},0);else if(t.data.window_print){if(200==t.data.window_print){const t=this.$storage.get("user");t.print_cnt-=1,this.$storage.set("user",t),this.$store.commit("setUser",t),this.$router.push({name:"lesson-testmanaging",params:{dialog:"success"}})}document.title="내공스터디 관리자"}else if(t.data.loading_percent){if(this.loading_percent=t.data.loading_percent,this.loading_percent>=100){this.loading_value=!1;let t=document.getElementById("tmploading");t.style.display="none"}this.$forceUpdate()}else if(t.data.resubmit){let t=document.print_form;t.target="test_iframe",t.submit()}},changeOption(t){if("exceptstatus"==t){let e=+this.voca_to_mean.multi_val+ +this.mean_to_voca.multi_val+ +this.sen_to_mean.multi_val+ +this.sen_to_mean.short_val+ +this.mean_to_sen.multi_val+ +this.mean_to_sen.short_val+ +this.word_arrange.val+ +this.word_arrange.new_val+ +this.word_inference.val+ +this.paragraph_order.val+ +this.reading_quiz.val+ +this.blank_inference.val+ +this.blank_inference.new_val+ +this.grammar_quiz.val,s=+this.mean_to_voca.short_val+ +this.voca_to_mean.short_val;if(s<1||e>0)return this.$nextTick(()=>{this.openAlert("except_popup"),this[t]=!1}),!1;this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate();const e=this[t]?2:1,s=this[t]?1:2;this.toggleChange("font-size",e),this.toggle_exclusive_1=e,this.toggleChange("line-height",s),this.toggle_exclusive_2=s,document.print_form.submit()})}else document.getElementById("test_iframe").contentWindow.postMessage({key:t,value:this[t]?1:0},"*")},preSubmit(){this.nowpage=1,this.print_complete_status=0,this.loading_value=!0,this.loading_percent=1},infoType(t){this.info_tooltip_type=t;let e={voca_to_mean:"단어 철자를 보고 뜻을 적어봅니다.",mean_to_voca:"단어 뜻을 보고 철자를 적어봅니다.",sen_to_mean:"지문의 영문장을 보고 해석을 적어봅니다.",mean_to_sen:"지문의 해석문장을 보고 영어로 적어봅니다.",word_arrange:"해석을 보고 순서에 맞게 영문장을 완성합니다.",blank_inference:"해석을 참고하여 영문장의 빈 칸을 완성합니다.",word_inference:"지문을 읽고 문맥상 알맞은 어휘를 골라봅니다.",paragraph_order:"문장의 순서배열로 지문의 흐름을 점검합니다.",reading_quiz:"지문의 내용 파악을 위한 문제를 점검합니다.",grammar_quiz:"지문을 읽고 문법에 알맞는 표현을 선택합니다."};this.info_tooltip_text=e[t],e=null;let s=document.getElementById(t+"_info_icon").getBoundingClientRect();this.info_tooltip_top==s.top+"px"&&"block"==this.info_tooltip_display?this.info_tooltip_display="none":(this.info_tooltip_top=s.top+"px",this.info_tooltip_left=(s.left+s.left+s.width)/2+"px",this.info_tooltip_display="block")},onScroll(){this.show_info={voca_to_mean:!1,mean_to_voca:!1,sen_to_mean:!1,mean_to_sen:!1,word_arrange:!1,blank_inference:!1,word_inference:!1,paragraph_order:!1,reading_quiz:!1,grammar_quiz:!1}},optResize(){let t=document.getElementById("wa_multi_field");if(t){let e=document.getElementById("wa_section"),s=document.getElementById("bi_section");if(e.getBoundingClientRect().height!=s.getBoundingClientRect().height){s.style.height=e.getBoundingClientRect().height+"px";let t=document.getElementById("wa_testform"),a=document.getElementById("bi_testform");a.style.marginTop=t.getBoundingClientRect().top-e.getBoundingClientRect().top+"px"}let a=t.getBoundingClientRect(),i=document.getElementById("bi_basic_field"),o=i.parentNode.parentNode.parentNode.parentNode;o.style.position="fixed",o.style.left=a.left-6+"px";let n=document.getElementById("bi_h3"),l=document.getElementById("bi_h3_base");n.style.position="fixed",n.style.left=a.left-14-n.getBoundingClientRect().width+"px",n.style.top=l.getBoundingClientRect().top-7+"px"}if("block"==this.info_tooltip_display){let t=document.getElementById(this.info_tooltip_type+"_info_icon").getBoundingClientRect();this.info_tooltip_top=t.top+"px",this.info_tooltip_left=(t.left+t.left+t.width)/2+"px"}},onResize(){"preview"==this.mode?this.calcHeight():this.show_info={voca_to_mean:!1,mean_to_voca:!1,sen_to_mean:!1,mean_to_sen:!1,word_arrange:!1,blank_inference:!1,word_inference:!1,paragraph_order:!1,reading_quiz:!1,grammar_quiz:!1}},changeWidthRate(t){let e=this.thumb_labels[t].split(":")[0],s=this.thumb_labels[t].split(":")[1];this.leftrate=""+10*parseInt(e),this.rightrate=""+10*parseInt(s),this.$nextTick(()=>{this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate(),document.print_form.submit()})})},customOnlyNumber(t,e){t=t||window.event;var s=t.which?t.which:t.keyCode;if(!(s>=48&&s<=57||s>=96&&s<=105||8==s||46==s||37==s||39==s)){let t=e.split(".")[0],s=e.split(".")[1];this.$nextTick(()=>{this[t][s]=this[t][s].replace(/[^0-9]/g,""),this.$forceUpdate(),this.test_key+=1})}},getAllGrammarBookUnitIds(){this.$axios.get(this.$host+"/book/getallgrammarbookunitids").then(t=>{200==t.status&&t.data&&(this.grammarBookUnitIds.e_ids=t.data.e_ids.split(",").map(t=>+t),this.grammarBookUnitIds.m_ids=t.data.m_ids.split(",").map(t=>+t),this.grammarBookUnitIds.m_review_ids=t.data.m_review_ids.split(",").map(t=>+t))}).catch(t=>{console.log(t)})},async addSelectAllUnit(t){if(this.conditionByTutorial("t12")&&(await this.$store.dispatch("updateTutorial",["t12"]),this.$forceUpdate()),this.zero_status)return this.openAlert("free_print_exhausted"),!1;const e=()=>new Promise(e=>{let s="",a="";this.checkIsGrammar(t)?!this.is_grammar&&this.select_units.length>0?s="grammar":a="grammar":this.checkIsStoryBook(t)?!this.is_storybook&&this.select_units.length>0?s="storybook":a="storybook":this.is_grammar||this.grammar_units.length>0?s="grammar":(this.is_storybook||this.storybook_units.length>0)&&(s="storybook"),e({status:""===s,except_type:s,unit_type:a})});this.get_count_status=!0;let s=this.select_books.findIndex(e=>e.id==t.id);if(-1==s){const s=await e();if(s){if(!s.status)return this.exceptDialog(s.except_type),!1;if(""!==s.unit_type){const e=s.unit_type;let a=t.sub_data.filter(t=>!t.disable).length;for(let s=0;se.id==t.sub_data[s].id);-1==a&&this[e+"_units"].push(t.sub_data[s])}this["is_"+s.unit_type]=!0}}let a=new Promise(e=>{const s=t.sub_data;let a={};Object.values(s).forEach(t=>{if(!t.disable){let e=t.rel_id?`${t.id}/${t.rel_id}`:t.id;t.check=!0,a[t.seq]={id:e,name:t.name,rel_id:t.rel_id}}}),a&&(this.select_books.push({category:this.tab_val,id:t.id,name:t.bookname,booktype_m:t.booktype_m,booktype_s:t.booktype_s,units:a,folder_id:t.folder_id}),this.select_units.push(...Object.values(a).map(t=>t.id)),t.check=!0,e())});a.then(()=>this.getCounts())}else if(t.check){if(this.checkIsGrammar(t)){if(this.is_grammar){for(let e=0,s=t.sub_data.length;es.id==t.sub_data[e].id);-1!=s&&this.grammar_units.splice(s,1)}0===this.grammar_units.length&&(this.is_grammar=!1)}}else if(this.checkIsStoryBook(t)&&this.is_storybook){for(let e=0,s=t.sub_data.length;es.id==t.sub_data[e].id);-1!=s&&this.storybook_units.splice(s,1)}0===this.storybook_units.length&&(this.is_storybook=!1)}Object.values(this.select_books[s].units).forEach(t=>{let e=t.id,s=this.select_units.findIndex(t=>t==e);-1!=s&&this.select_units.splice(s,1)}),this.select_books.splice(s,1),t.sub_data.map(t=>t.check=!1),t.check=!1,this.getCounts()}else{const a=await e();if(a){if(!a.status)return this.exceptDialog(a.except_type),!1;if(""!==a.unit_type){const e=a.unit_type;let s=t.sub_data.filter(t=>!t.disable).length;for(let a=0;ae.id==t.sub_data[a].id);-1==s&&this[e+"_units"].push(t.sub_data[a])}this["is_"+a.unit_type]=!0}}const i=t.sub_data;Object.values(i).forEach(t=>{if(!t.disable){let e=t.rel_id?`${t.id}/${t.rel_id}`:t.id;t.check=!0,this.select_books[s].units[t.seq]={id:e,rel_id:t.rel_id,name:t.name};let a=this.select_units.findIndex(t=>t==e);-1==a&&this.select_units.push(e)}}),t.check=!0,this.getCounts()}const a=this.select_books.map(t=>Object.keys(t.units).length);this.checkCnt=a.reduce((t,e)=>t+e,0)},async addSelectUnit(t,e){if(this.get_count_status=!0,this.zero_status)return this.openAlert("free_print_exhausted"),!1;this.conditionByTutorial("t12")&&(await this.$store.dispatch("updateTutorial",["t12"]),this.$forceUpdate());const s=()=>new Promise(e=>{let s="",a="";this.checkIsGrammar(t)?!this.is_grammar&&this.select_units.length>0?s="grammar":a="grammar":this.checkIsStoryBook(t)?!this.is_storybook&&this.select_units.length>0?s="storybook":a="storybook":this.is_grammar||this.grammar_units.length>0?s="grammar":(this.is_storybook||this.storybook_units.length>0)&&(s="storybook"),e({status:""===s,except_type:s,unit_type:a})});let a=this.select_books.findIndex(e=>e.id==t.id),i=e.rel_id?`${e.id}/${e.rel_id}`:e.id;if(-1==a){const a=await s();if(a){if(!a.status)return this.exceptDialog(a.except_type),!1;""!==a.unit_type&&(this["is_"+a.unit_type]=!0,this[a.unit_type+"_units"].push(e))}let o={};o[e.seq]={id:i,name:e.name,rel_id:e.rel_id},e.check=!0,this.select_books.push({category:t.category,id:t.id,name:t.bookname,booktype_m:t.booktype_m,booktype_s:t.booktype_s,units:o,folder_id:t.folder_id});let n=this.select_units.findIndex(t=>t==i);-1==n&&this.select_units.push(i)}else if(e.check){if(this.checkIsGrammar(t)){let t=this.grammar_units.findIndex(t=>t.id==e.id);-1!=t&&this.grammar_units.splice(t,1),0===this.grammar_units.length&&(this.is_grammar=!1)}else if(this.checkIsStoryBook(t)){let t=this.storybook_units.findIndex(t=>t.id==e.id);-1!=t&&this.storybook_units.splice(t,1),0===this.storybook_units.length&&(this.is_storybook=!1)}delete this.select_books[a].units[e.seq];let s=this.select_units.findIndex(t=>t==i);-1!=s&&this.select_units.splice(s,1),e.check=!1;let o=Object.keys(this.select_books[a].units).length;o!=t.sub_data.length&&(t.check=!1,0==o&&this.select_books.splice(a,1))}else{const o=await s();if(o){if(!o.status)return this.exceptDialog(o.except_type),!1;""!==o.unit_type&&(this["is_"+o.unit_type]=!0,this[o.unit_type+"_units"].push(e))}let n="";if(Object.entries(this.select_books[a].units).forEach(t=>{const[e,s]=t;s.id==i&&(n=e)}),!n){this.select_books[a].units[e.seq]={id:i,name:e.name,rel_id:e.rel_id};let s=this.select_units.findIndex(t=>t==i);-1==s&&this.select_units.push(i),e.check=!0,Object.keys(this.select_books[a].units).length==t.sub_data.length&&(t.check=!0)}}this.getCounts();const o=this.select_books.map(t=>Object.keys(t.units).length);this.checkCnt=o.reduce((t,e)=>t+e,0)},selectBookType(t){this.book_type=t,this.tab_val=1,this.$nextTick(()=>{this.$refs.booktable.getBookList(this.print_mode,this.book_type,this.tab_val)})},goBack(){this.select_books.length>0?this.openDialog("go_back"):this.initPage()},initPage(){this.closeDialog("go_back"),this.s_sentences_cnt=0,this.s_words_cnt=0,this.s_banks_cnt=0,this.s_wi_cnt=0,this.s_po_cnt=0,this.s_rq_cnt=0,this.s_bi_cnt=0,this.s_gq_cnt=0,this.s_wa_n_cnt=0,this.book_type="",this.select_units=[],this.select_books=[],this.is_grammar=!1,this.grammar_units=[],this.is_storybook=!1,this.storybook_units=[],this.book_items=[],this.datatable_component=0,this.tab_val=1,this.sel_key=0,this.folder_open_status=!1,this.select_folder_id=void 0,this.select_folder={},this.folder_book_items=[],this.$refs.select_book_type.type_popup=!0},resetVal(t,e){if("ms"==t)for(let s=0,a=e.length;s 제외할 수 있습니다.",t10:"학습 전 마지막 단계입니다, 클릭하세요.",t11:"내신 문제은행으로 출력 가능합니다.",t12:"출력하고자 하는 교재를 선택하세요.",t13:"출력 유형을 선택하고 문항수를 기입하세요.",t14:"출력 전 마지막 단계입니다, 클릭하세요.",t15:"온라인 학습 결과를 확인할 수 있습니다.",t16:"학습 결과를 영역별로 조회 가능합니다.",t17:"주간, 월간 종합분석 결과를 출력하세요.",t18:"클릭하시면 종합분석 결과를 확인 가능합니다.",t19:"기간 레포트를 출력하여 학부모님께 보내주세요.",t20:"아이들의 학습 순위를 확인하세요.",t21:"클릭 시, 우수학생의 상장 출력이 가능합니다.",t22:"학생앱을 실행하세요.",t23:"주요기능 안내 완료! 온라인 학습과정을 살펴보세요."};var n={name:"ctooltip",props:["wrap_display","wrap_position","arrow_direction","arrow_left","arrow_right","arrow_top","arrow_translate","arrow_color","tool_mleft","tool_mtop","tool_top","tool_left","tool_right","tool_bottom","tool_translate","tool_display","tool_color","text","tutorial_key"],data(){return{}},computed:{setTutorialText(){return o[this.tutorial_key]||this.text||""}}},l=n,r=(s("3558"),s("2877")),c=Object(r["a"])(l,a,i,!1,null,null,null);e["a"]=c.exports},"56d7":function(t,e,s){"use strict";s.r(e),s.d(e,"bus",(function(){return Tr}));s("e792");var a=s("cee4"),i=(s("54ba"),s("a026")),o=function(){var t=this,e=t._self._c;return e("div",{class:[1==t.zoom_status&&"/login"!==t.$route.path?"ratio-90":""],attrs:{id:"app"}},[e(t.layout,{tag:"component"},[e("router-view")],1),e("notice-alert"),e("channel-talk"),e("channel-talk-x")],1)},n=[],l=(s("7e7d"),function(){var t=this,e=t._self._c;return e("div")}),r=[],c=s("9cd7"),d={name:"channel-talk",data(){return{}},props:{},watch:{$route(t){const e=t.name,s=document.querySelector("#ch-plugin");s&&s.style.setProperty("display",["index","login"].includes(e)?"none":"block","important")}},computed:{isShow(){return"none"}},created(){c["b"]()},mounted(){c["a"]({pluginKey:"32fac52e-4d9b-44b2-98a2-c3eb2c5de3a2"},t=>{if(t)console.error(t);else{const t=document.querySelector("#ch-plugin");if(t){const e=this.$route.name;t.style.setProperty("display",["index","login"].includes(e)?"none":"block","important")}}})},methods:{openChat(){window.open("https://tabstudy.channel.io/","_blank")}},beforeDestroy(){this.allBusDestroy()}},h=d,u=(s("8f00"),s("2877")),_=Object(u["a"])(h,l,r,!1,null,null,null),p=_.exports,m=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"ch-x-wrap"},on:{click:t.onClickChannelTalkCloseBtn}},[t._v("X")])},g=[],b={name:"ChannelTalkX",watch:{$route(t){const e=t.name,s=this.$store.state.isChannelTalkHide;if(!s){const t=document.getElementById("ch-x-wrap");t.style.setProperty("display",["index","login"].includes(e)?"none":"flex","important")}"index"===e&&(window.ChannelIO("showChannelButton"),this.$store.commit("channelTalkHide",!1))}},mounted(){const t=this.$route.name,e=document.getElementById("ch-x-wrap");e.style.setProperty("display",["index","login"].includes(t)?"none":"flex","important")},methods:{onClickChannelTalkCloseBtn(){window.ChannelIO("hideChannelButton");const t=document.getElementById("ch-x-wrap");t.style.setProperty("display","none","important"),this.$store.commit("channelTalkHide",!0)}}},f=b,y=(s("1fa2"),Object(u["a"])(f,m,g,!1,null,"08edf080",null)),v=y.exports;const x="layout-default";var k={name:"App",components:{ChannelTalk:p,ChannelTalkX:v},data:()=>({}),created:async function(){if(console.log("app s_storage status :",this.$storage.has("user")),this.$storage.has("user")){const t=this.$storage.get("user");this.$id=t.id,this.$cid=t.academy_id,this.$uclass=t.uclass,this.$store.dispatch("restoreState",t);const e=await this.checkRemainMessageCount();e&&e.data&&+e.data!=+t.message_cnt&&this.updateUser({message_cnt:+e.data}),t.configdate||this.$router.push({name:"setup"})}else this.$router.push({name:"login"})},mounted(){},computed:{zoom_status(){return this.$store.getters["getUser"]["zoom_status"]},layout(){return this.$route.meta.layout||x}},methods:{},watch:{}},w=k,C=Object(u["a"])(w,o,n,!1,null,null,null),S=C.exports,$=(s("5363"),s("f309")),A=s("f977"),D=s("5607"),P=s("dc22");i["a"].use($["a"],{directives:{Scroll:A["a"],Ripple:D["a"],Resize:P["a"]}});var B=new $["a"]({icons:{iconfont:"mdi"},theme:{themes:{light:{success:"#1BD05B",warning:"#FE9017",info:"#2196F3",danger:"#FF0000",info2:"#5bc7ff"}}}}),T=s("8c4f"),E=function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-3 h-100 white"},[e("router-view")],1)},I=[],z={},O=Object(u["a"])(z,E,I,!1,null,null,null),N=O.exports,L=s("8336"),M=s("99d9"),j=s("62ad"),R=s("8fea"),q=s("132d"),F=s("de8e"),U=s("0fd9"),H=s("8dd9"),G=s("1f4f"),W=s("71a3"),Y=s("c671"),J=s("fe57"),V=s("aac8"),Q=s("9a96"),X=s("8654"),K=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"noticevue",justify:"center",align:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"py-3 h-100",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("공지사항")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v(t._s(this.subtitle))])])]),e("div",[e(J["a"],{staticClass:"elevation-0 main-tabs",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),e(W["a"],{key:1,attrs:{href:"#tab-1",ripple:!1},on:{click:function(e){return t.changeTab(1)}}},[e("span",[t._v("공지사항")])]),e(W["a"],{key:2,attrs:{href:"#tab-2",ripple:!1},on:{click:function(e){return t.changeTab(2)}}},[e("span",[t._v("업데이트 소식")])]),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?[e("div",{staticClass:"py-2"},[e("select-box",{key:"ov-"+t.notice.overflow_component,attrs:{items:t.notice.sel_list2,id:"option_select_2",disabled:!t.notice.select_row,itemDisabled:"customdisabled",parentClass:"d-inline-block"},on:{change:t.selectRowEvent2}}),e("div",{staticClass:"d-inline-block float-left ml-3"},[e(F["a"],{key:t.notice.option_component,staticClass:"no-border c-overflow-btn",attrs:{items:t.notice.sel_list,id:"option_select",label:"항목",color:"success",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","x-small":"","persistent-placeholder":!0,"append-icon":"mdi-chevron-down"},on:{change:t.selectRowEvent}})],1),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",id:"search",placeholder:"검색",color:"success",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":""},on:{keydown:t.searchKeyword,"click:append":function(e){return t.searchIconClick("notice")}},model:{value:t.notice.search,callback:function(e){t.$set(t.notice,"search",e)},expression:"notice.search"}}),e(L["a"],{staticClass:"float-right btn-in-menu",attrs:{color:"success",elevation:"0"},on:{click:function(e){return t.addNotice()}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-plus")]),t._v(" 공지 등록\n ")],1),e("div",{staticStyle:{clear:"both"}})],1),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.notice.table_component,ref:"notice_table",refInFor:!0,staticClass:"noti_table",attrs:{headers:t.notice.items_header,items:t.notice.items,"mobile-breakpoint":10,"hide-default-footer":t.notice.hide_default_footer,"hide-default-header":"","single-expand":!0,"show-expand":!0,expanded:t.notice.expanded,"item-key":t.notice.item_key,"expand-icon":"mdi-menu-down",search:t.notice.search,"no-data-text":"등록된 공지가 없습니다.","no-results-text":"검색된 공지가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},options:t.notice_options,"server-items-length":t.notice.items_length,page:t.notice.page,"items-per-page":t.notice.items_per_page,"sort-by":t.notice.sortby,"sort-desc":t.notice.sortdesc},on:{"update:expanded":function(e){return t.$set(t.notice,"expanded",e)},"update:options":function(e){t.notice_options=e},"click:row":t.toggleClassRow},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"notice",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.notice_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.notice_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a}){return[e(q["a"],{on:{click:function(t){return t.stopPropagation(),s(!a)}}},[t._v("\n "+t._s(a?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.notice_type",fn:function({item:s}){return[e("span",{staticClass:"info--text font-weight-bold text-usn"},[t._v("\n "+t._s(t.getNtype_txt(+s.notice_type))+"\n ")])]}},{key:"item.title",fn:function({item:s}){return[e("span",{staticClass:"text-usn",domProps:{textContent:t._s(s.title)}})]}},{key:"item.postdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn",domProps:{textContent:t._s(s.postdate)}})]}},{key:"item.btn",fn:function({item:s}){return[e(L["a"],{staticClass:"white--text",attrs:{color:"#ffd91a",depressed:""},on:{click:function(e){return t.openMessageDialog(e,s)}}},[e("span",{staticClass:"fs-1rem"},[t._v("발송")])])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.notice.items_header.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return[e("tr",[e("td"),e("td",[e("div",{staticClass:"py-2 pos-rel h-100"},[e("div",{staticClass:"dotted pos-abs",staticStyle:{right:"0",top:"16px"}})])]),e("td",{staticClass:"text-left",attrs:{colspan:"2"}},[e("div",{staticClass:"py-2 text-usn",staticStyle:{"white-space":"break-spaces"},domProps:{innerHTML:t._s(s.sub_data.content)}})]),e("td")])]},proxy:!0}],null,!0)})],1)]}}],null,!0)})],1)]:2==s?[e("div",{staticClass:"py-2"},[e("div",{staticClass:"float-left"},[e(F["a"],{key:t.head.option_component,staticClass:"no-border c-overflow-btn",attrs:{items:t.head.sel_list,id:"option_select",label:"항목",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","x-small":"","persistent-placeholder":!0,color:"info","append-icon":"mdi-chevron-down"},on:{change:t.selectRowEvent}})],1),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",id:"search",placeholder:"검색",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success"},on:{keydown:t.searchKeyword,"click:append":function(e){return t.searchIconClick("head")}},model:{value:t.head.search,callback:function(e){t.$set(t.head,"search",e)},expression:"head.search"}}),e("div",{staticStyle:{clear:"both"}})],1),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.head.table_component,staticClass:"update_table",attrs:{headers:t.head.items_header,items:t.head.items,"mobile-breakpoint":10,"hide-default-footer":t.head.hide_default_footer,"hide-default-header":"","single-expand":!0,"show-expand":!0,expanded:t.head.expanded,"item-key":t.head.item_key,"expand-icon":"mdi-menu-down",search:t.head.search,"no-data-text":"등록된 소식이 없습니다.","no-results-text":"검색된 소식이 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},options:t.head_options,"server-items-length":t.head.items_length,page:t.head.page,"items-per-page":t.head.items_per_page,"sort-by":t.head.sortby,"sort-desc":t.head.sortdesc},on:{"update:expanded":function(e){return t.$set(t.head,"expanded",e)},"update:options":function(e){t.head_options=e},"click:row":t.toggleClassRow},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a,type:"head"},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.head_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.head_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a}){return[e(q["a"],{on:{click:function(t){return t.stopPropagation(),s(!a)}}},[t._v("\n "+t._s(a?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.notice_type",fn:function({item:s}){return[e("span",{staticClass:"info--text font-weight-bold text-usn"},[t._v("\n "+t._s(t.getNtype_txt(+s.notice_type))+"\n ")])]}},{key:"item.title",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.title)+"\n ")])]}},{key:"item.postdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.postdate)+"\n ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.head.items_header.length+1}},[e(G["a"],{staticClass:"custom_simple_table head",scopedSlots:t._u([{key:"default",fn:function(){return[e("tr",[e("td",{attrs:{colspan:"3"}},[e("div",{staticClass:"py-2 text-usn head-div",domProps:{innerHTML:t._s(s.sub_data.content)}})])])]},proxy:!0}],null,!0)})],1)]}}],null,!0)})],1)]:t._e(),e("pre-cautions",{attrs:{type:s,data:t.$data}})],2)})),1)],1)],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"del_notice_confirm"},slot:"del_notice_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("선택 항목을 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[t._v("\n (삭제된 항목은 복구되지 않습니다.)\n ")])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"dialog-twobtn right ml-0",attrs:{"x-large":"",text:""},on:{click:t.delNotice}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)]),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e("report-message-dialog",{ref:"report-message-dialog"})],1)},Z=[],tt=s("2f62"),et=s("7381"),st=s("7bdb"),at=s("ed00"),it=s("b0af"),ot=s("169a"),nt=s("67b6"),lt=s("43a6"),rt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e(ot["a"],{attrs:{"no-click-animation":!0,transition:!1,"content-class":"report-message-dialog",width:"47rem"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(it["a"],[e(M["c"],[e("span",[t._v("\n 메시지 발송\n "),t.isPeriodMultipleItem&&t.periodItem.length>1?[t._v("\n ("+t._s(t.periodPage+1)+"/"+t._s(t.periodItem.length)+")\n ")]:t._e()],2),e("div",{staticClass:"d-flex align-center justify-center",on:{click:t.close}},[e("svg",{attrs:{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z"}})])])]),e(M["b"],[e("div",{staticClass:"kakao-wrap"},[e("div",[e("div",[e("img",{attrs:{src:"https://intro.tabstudy.co.kr/src/imgs/logoadmin-w.png"}})])]),e("div",[e("span",[t._v("내공스터디")]),e("div",[e("div",[t._v("\n 알림톡 도착\n "),e("div",[t._v("kakao")])]),e("div",[["daily","period"].includes(t.type)?e("div",[t._v("\n ["+t._s(t.getPreviewCommonData("cname"))+" 성적결과]"),e("br"),e("br"),t._v("\n ■ 성명 : "+t._s(t.getPreviewData("name"))),e("br"),t._v("\n ■ 교재 : "+t._s(t.getPreviewData("bookname"))),e("br"),t._v("\n ■ 차시 : "+t._s(t.getPreviewData("unitname"))),e("br"),t._v("\n ■ 점수 : "+t._s(t.getPreviewData("history_text"))+t._s(t.getPreviewData("avg"))+"점"),e("br"),e("br"),e("span",{domProps:{innerHTML:t._s(t.getPreviewData("comment"))}}),e("br"),e("br"),t._v("\n ▶ 성적표 보기"),e("br"),e("div",{domProps:{innerHTML:t._s(t.getPreviewData("link"))}}),e("br"),t._v("\n 위 링크를 클릭하여 확인해주세요:)\n ")]):["notice","counsel","leaderboard","leveltest"].includes(t.type)?e("div",[t._v("\n ["+t._s(t.getPreviewCommonData("cname"))+" "+t._s(t.getSomeTitle)+"]\n "),e("br"),e("br"),e("div",{domProps:{innerHTML:t._s(t.setSomeContent)}}),"leveltest"===t.type?[e("br"),e("span",{domProps:{innerHTML:t._s(t.getPreviewData("comment"))}}),e("br"),e("br"),t._v("\n ▶ 레벨테스트 결과 보기"),e("br"),e("div",{domProps:{innerHTML:t._s(t.getPreviewData("link"))}}),e("br"),t._v("\n 위 링크를 클릭하여 확인해주세요:)\n ")]:t._e()],2):t._e()])])]),e("div",[t.periodPage>0?e(q["a"],{staticClass:"cursor",attrs:{color:"white",size:"2.25rem"},on:{click:function(e){return t.periodPageMove("prev")}}},[t._v("\n mdi-chevron-left-circle-outline\n ")]):t._e()],1),e("div",[t.periodItem&&t.periodPage{const e={cname:this.user.cname};return e[t]||""}},getPreviewData(){return t=>{if(!this.type)return;let e="";if("comment"==t)e=`선생님께서 ${"resend"==this.mode?"다시 ":""}남기실 ${"leaderboard"!==this.type?"성적":""}코멘트를 기록해주세요.`,this.isPeriodMultipleItem&&"object"===typeof this.comment?""!=this.comment[this.periodPage]&&(e=this.comment[this.periodPage].replace(/\n/g,"
")):""!=this.comment&&(e=this.comment.replace(/\n/g,"
"));else if("link"==t)e=' : 수신 메시지에는 링크가 삽입됩니다.',"resend"==this.mode&&(e=`: ${this.resendItem.record_link}`);else if("history_text"==t){if(e="","resend"==this.mode)this.resendItem.history_text&&(e=this.resendItem.history_text+" ");else if("daily"==this.type){const t=this.dailyItem.cur_item.recent;t&&(e=t.history_text?t.history_text+" ":"")}}else"resend"==this.mode?50===+this.resendItem.booktype&&["bookname","unitname"].includes(t)?"bookname"==t?e="내공백서 스토리북 Lv. "+this.resendItem.level:"unitname"==t&&(e=this.setStoryBookUnitName(this.resendItem.unitname,this.resendItem.bookname)):e=this.resendItem[t]||0===this.resendItem[t]?this.resendItem[t]:"":"daily"==this.type&&this.dailyItem.report?(e=this.dailyItem.report.info?this.dailyItem.report.info[t]:"","unitname"!=t||e||(e="Unit "+(+this.dailyItem.report.info.unit_seq+1)||"")):"period"==this.type&&this.periodItem&&(e=this.periodItem.length>0?this.periodItem[this.periodPage][t]||0===this.periodItem[this.periodPage][t]?this.periodItem[this.periodPage][t]:"":this.periodItem[t]||0===this.periodItem[t]?this.periodItem[t]:"","bookname"==t?e="기간 레포트":"unitname"==t&&(e=`${this.periodItem.sddate} ~ ${this.periodItem.eddate}`,this.periodItem.length>0&&(e=`${this.periodItem[this.periodPage].sddate} ~ ${this.periodItem[this.periodPage].eddate}`)));return e}},getSomeTitle(){const t={notice:"과제 및 휴강/보강 안내",counsel:"상담내용",leaderboard:"성적 우수자 결과",leveltest:"레벨테스트 결과"};return t[this.type]||""},choosePhoneBtn(){return t=>{let e={text:"취소",class:""};return(1===+this.choose_phone_opt||2===+this.choose_phone_opt&&""!=this.direct_phone&&ht.test(this.direct_phone))&&(e={text:"확인",class:"success--text"}),e[t]}},sendDisabled(){let t=!1;return"resend"==this.mode?["daily","period","leaderboard"].includes(this.type)&&(t=this.origin_comment===this.comment||""==this.comment):["daily","period","leaderboard","leveltest"].includes(this.type)&&(t=this.isPeriodMultipleItem&&"object"===typeof this.comment&&this.comment.length>0?this.comment.some(t=>""==t):""==this.comment),t},setSomeContent(){let t="";if("notice"===this.type){const e=this.$store.getters.getNtype_txt(+this.dataItem.notice_type),s=this.dataItem.title;let a="";"send"===this.mode?a=this.dataItem.sub_data.content:"resend"===this.mode&&(a=this.dataItem.comment),a=a.replace(/\n/g,"
"),t=`■ 구분 : ${e}
\n ■ 제목 : ${s}
\n ■ 내용
\n : ${a}`}else if("counsel"===this.type){const e=this.dataItem,s=Array.isArray(e.content)?e.content[0].content:e.content,a=Array.isArray(e.content)?e.content[0].postdate:e.postdate,i=s;t=`■ 클래스 : ${e.class_name}
\n ■ 이름 : ${e.name}
\n ■ 일자 : ${a}
\n ■ 내용
\n : ${i}`}else if("leaderboard"===this.type){const e=this.dataItem;e.date.match(/\-/g)&&(e.date=e.date.replace(/-/g,"년 ")+"월"),t=`■ 클래스 : ${e.class_name}
\n ■ 이름 : ${e.name}
\n ■ 기간 : ${e.date}
\n ■ 순위 : ${e.rank}
\n
\n ${this.getPreviewData("comment")}\n

\n ▶ 우수상장 조회
\n ${this.getPreviewData("link")}\n

\n 위 링크를 클릭하여 확인해주세요:)`}else if("leveltest"===this.type){console.log(this.dataItem);const e=this.dataItem.cur_item||this.dataItem;t=`■ 성명 : ${e.name}
\n ■ 응시 : ${e.select_grade_kor}
\n ■ 시간 : ${e.min_studytime}분 소요
\n ■ 결과 : ${e.measure_grade}
`}return t},isTypeReport(){return["daily","period"].includes(this.type)},isPeriodMultipleItem(){return"send"===this.mode&&"period"===this.type&&this.periodItem.length>0}},methods:{setStoryBookUnitName:dt["d"],async open(t,e=null){if(this.dialog=!0,this.type=t,this.mockStatus=!1,this.comment="",this.postData={academy_id:+this.$cid,teacher_id:+this.user.id},"resend"==t)this.mode=t,this.type=e.type,e.type?this.type=e.type:e.record_id?this.type="daily":e.period_start&&(this.type="period"),this.resendItem=e,this.isTypeReport||(e.class_name=e.classname,"notice"===this.type?(e.title=e.bookname,e.notice_type=e.comment_obj.notice_type):"counsel"===this.type?e.content=e.comment:"leaderboard"===this.type&&(e.rank=e.unitname,e.date=e.bookname),this.dataItem=e),this.postData.user_id=+e.user_id||e.cur_item.user_info.uid,this.postData.record_id=+e.record_id,this.comment=e.comment,this.origin_comment=e.comment;else if("daily"==t){this.dailyItem=e,console.log(e);let t=null;if("x"==e.cur_type.toLowerCase()&&e.cur_item.unit_record_id.match(/MOCK/))this.mockStatus=!0,t=+e.cur_item.id;else{const s=e.cur_item.sub_rows?e.cur_item.sub_rows.find(t=>t.type.toLowerCase()===e.cur_type.toLowerCase()):e.cur_item.type.toLowerCase()===e.cur_type.toLowerCase();t=!!s&&(+s.id||e.cur_item.unit_record_id)}if(!t)return this.openAlert("fail_find_record_id"),!1;let s=0;e.cur_item.recent&&(s=e.cur_item.recent.done_cnt),this.postData.user_id=+e.cur_item.user_id||e.cur_item.user_info.uid,this.postData.record_id=t,this.postData.done_cnt=s}else"period"==t?(this.periodItem=e,e.length>0?(this.comment=e.map(()=>""),this.postData.user_id=e.map(t=>"sample"===t.user_id?t.user_id:+t.user_id),this.postData.period_start=e[0].sddate,this.postData.period_end=e[0].eddate):(this.postData.user_id="sample"===e.user_id?e.user_id:+e.user_id,this.postData.period_start=e.sddate,this.postData.period_end=e.eddate)):"notice"==t?(this.dataItem=e,[11,12].includes(+e.notice_type)?this.postData.user_id="all":13===+e.notice_type&&e.notice_rid&&(this.postData.user_id="class",this.postData.class_id=+e.notice_rid)):"counsel"==t||"leaderboard"==t?(this.dataItem=e,this.postData.user_id=e.user_id||e.cur_item.user_info.uid):"leveltest"==t&&(this.dataItem=e,this.postData.user_id=e.cur_item.user_id,this.postData.record_id=+e.cur_item.id);"leveltest"!=t||e.cur_item.user_id?this.getPhone():(this.choose_phone_opt=null,this.parent_phones=[])},close(){this.direct_phone="",this.parent_phone="",this.postData={},this.parent_phones=[],this.null_phones_count=0,this.dialog=!1},getPhone(){this.choose_phone_opt=null,this.parent_phones=[];let t=`${this.$host}/user/${this.$cid}/${this.postData.user_id}/getphone`;"class"===this.postData.user_id&&(t+="?class_id="+this.postData.class_id),this.$axios.get(t).then(t=>{if(t&&t.data&&t.data.length>0){const e=t.data;if(["class","all"].includes(this.postData.user_id)||this.isPeriodMultipleItem)for(let t=0,s=e.length;t{console.log(t)})},async submitPhoneDialog(t){try{if("취소"==t)this.choose_phone_opt=null,this.phone_dialog=!1;else if("확인"==t){let t=!1;if(("sample"===this.postData.user_id||this.postData.user_id&&"object"===typeof this.postData.user_id&&this.postData.user_id.includes("sample"))&&(t=!0),["daily","counsel","leaderboard","leveltest"].includes(this.type)||["notice","period"].includes(this.type)&&this.parent_phone||t){const t=this.removeHyphen(1===+this.choose_phone_opt?this.parent_phone:this.direct_phone);if(!ut.test(t))return this.openAlert("fail_validate_phone"),!1;this.postData.phone=t,this.postData.comment=this.comment,await this.sendMessageProcessExecution()}else if(["notice","period"].includes(this.type)&&this.parent_phones.length>0){this.postData.phone=[],"period"==this.type&&(this.postData.comment=this.comment);for(let t=0,e=this.parent_phones.length;t{this.openAlert(e||"error"),"resend"==this.mode&&["daily","period"].includes(this.type)?t.$emit("changeLoadingValue",!1):t.loading_value=!1},s=await this.checkRemainMessageCount();if(s&&s.data&&+s.data!=+this.user.message_cnt&&this.updateUser({message_cnt:+s.data}),200!==s.status||+s.data<1)return e("none_message_cnt"),setTimeout(()=>{this.$router.push({name:"analysis-comment",params:{tab:1}})},2500),!1;if("send"==this.mode){const t=await this.extractContent();if(console.log(t,this.dataItem,this.dailyItem),"period"==this.type&&t.length>0)await this.saveContent(t);else{const s=t.name||this.dataItem.name||null;let a=null;t&&t.classname?a=t.classname:this.dataItem&&this.dataItem.class_name?a=this.dataItem.class_name:this.dailyItem&&this.dailyItem.cur_item&&this.dailyItem.cur_item.user_info&&this.dailyItem.cur_item.user_info.class_name&&(a=this.dailyItem.cur_item.user_info.class_name);const i=!this.postData.user_id&&"홍길동"==s&&"체험판 샘플"==a;if(i)this.postData.user_id="sample";else if(Object.keys(t).length>0){const s=await this.saveContent(t);if(!s.data||!s.data.result)return e(),!1}}}const a=await this.saveComment();if(200!==a.status)return e(),!1;const i=a.data,o=await this.sendComment(i);if(!o.data.res)return e(),!1;this.updateUser({message_cnt:o.data.message_cnt}),"resend"==this.mode&&["daily","period"].includes(this.type)?t.$emit("changeLoadingValue",!1):t.loading_value=!1,this.choose_phone_opt=null,this.phone_dialog=!1,this.dialog=!1,this.isTypeReport?this.openAlert("send_report_success"):this.openAlert(`send_${this.type}_success`),"resend"==this.mode&&setTimeout(()=>{this.$parent.getCommentList()},250)},async extractContent(){return new Promise((t,e)=>{try{let e={};if(this.isTypeReport)if(e.name=this.getPreviewData("name"),e.bookname=this.getPreviewData("bookname"),e.unitname=this.getPreviewData("unitname"),e.avg=this.getPreviewData("avg"),"daily"==this.type){const t=this.dailyItem;if(e.type=t.cur_type,e.classname=t.cur_item.classname||this.dailyItem.cur_item.user_info.class_name,e.postdate=t.report.info.postdate,e.history_text=t.cur_item.recent?t.cur_item.recent.history_text:"",this.postData.history_text=e.history_text,"x"==t.cur_type)e.question_cnt=t.report.info.question_cnt,e.wrong_cnt=t.report.info.wrong_cnt,e.error_rate=t.report.info.error_rate,e.totminute=t.report.info.totminute;else{e.tabs=[];for(let a=0,i=t.report.tabs.length;a0)for(let t=0,e=s.length;t0){e=[];for(let s=0,a=t.length;s{const s={user_id:this.postData.user_id,content:JSON.stringify(t),done_cnt:this.postData.done_cnt};"daily"==this.type?s.record_id=this.postData.record_id:"period"==this.type&&(s.period_start=this.postData.period_start,s.period_end=this.postData.period_end),this.$axios.post(`${this.$host}/comment/${this.$cid}/savecontent`,s).then(t=>{e(t)}).catch(t=>{e(t)})})},async saveComment(){return new Promise(t=>{if(this.postData.mode=this.mode,this.postData.type=this.type,"resend"==this.mode&&(this.postData.origin_id=+this.resendItem.id),this.isTypeReport){if(this.isPeriodMultipleItem){this.postData.avg=[];for(let t=0,e=this.periodItem.length;t({name:this.dataItem.name,class_name:this.dataItem.class_name,content:t.content,postdate:t.postdate})):"resend"===this.mode&&(this.postData.comment={name:this.dataItem.name,class_name:this.dataItem.class_name,content:this.dataItem.content,postdate:this.dataItem.date});else if("leaderboard"===this.type)this.postData.comment={class_name:this.dataItem.class_name,date:this.dataItem.date,rank:this.dataItem.rank,comment:this.comment,base64:this.dataItem.base64};else if("leveltest"===this.type){const t=this.dataItem.cur_item||this.dataItem;console.log(t),this.postData.comment={name:t.name,select_grade:t.select_grade_kor,studytime:t.min_studytime,grade:t.measure_grade,comment:this.comment,postdate:t.postdate}}this.$axios.post(`${this.$host}/comment/${this.$cid}/save`,this.postData).then(e=>{t(e)}).catch(e=>{t(e)})})},async sendComment(t){return new Promise(e=>{if(this.postData.comment_id=t,this.postData.cname=this.getPreviewCommonData("cname"),this.isTypeReport){if(this.isPeriodMultipleItem){this.postData.name=[],this.postData.history_text=[];for(let t=0,e=this.periodItem.length;t{e(t)}).catch(t=>{e(t)})})},getStudyType(t){const e={s:"정규학습",study:"정규학습",t:"정규시험",test:"정규시험",v:"어휘학습",m:"본문학습",a:"심화학습",z:"지문학습",mz:"문장학습",gt:"이론학습",gb:"기본학습"};return e[t]?e[t]+" ":""},keyUpEvent(){ht.test(this.direct_phone)&&this.submitPhoneDialog(this.choosePhoneBtn("text"))},writeComment(t){this.isPeriodMultipleItem?this.comment.splice(this.periodPage,1,t.target.value):this.comment=t.target.value},setButtonText(){let t="";if(["daily","period"].includes(this.type))t="성적표";else if(["notice","counsel","leaderboard"].includes(this.type)){const e={notice:"공지사항",counsel:"상담일지",leaderboard:"우수상장"};t=e[this.type]}return t+=` ${"resend"==this.mode?"재":""}발송`,t},submitButton(){try{"notice"===this.type||this.isPeriodMultipleItem?+this.null_phones_count>0?this.null_confirm_dialog=!0:this.parent_phone||this.parent_phones&&0!==this.parent_phones.length?this.submitPhoneDialog("확인"):this.phone_dialog=!0:this.phone_dialog=!0}catch(t){console.error(t)}},periodPageMove(t){"prev"===t?this.periodPage>0&&this.periodPage--:"next"===t&&this.periodPage{s()},100)):s()},created(){this.notice.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"notice"),this.head.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"head")},computed:{...Object(tt["b"])(["getNtype_txt"]),headerAlign(){return(t,e=null)=>{const s={center:"text-center"};return s[t]||(0===+e?"text-start":null)||null}}},watch:{notice_options:{handler(){this.notice.page=this.notice_options.page,this.notice.items_per_page=this.notice_options.itemsPerPage,this.notice.sortby=this.notice.sortby,this.notice.sortdesc=this.notice.sortdesc,this.getNotice(),this.updatePageListNumberOfStorage(this.$route.path,"notice",this.notice_options.itemsPerPage)},deep:!0},head_options:{handler(){this.head.page=this.head_options.page,this.head.items_per_page=this.head_options.itemsPerPage,this.head.sortby=this.head.sortby,this.head.sortdesc=this.head.sortdesc,this.getNotice(),this.updatePageListNumberOfStorage(this.$route.path,"head",this.head_options.itemsPerPage)},deep:!0}},mounted(){"success"==this.$route.params.dialog?this.openAlert("add_notice_success"):"modify_success"==this.$route.params.dialog&&this.openAlert("modify_notice_success"),Tr.$on("close_event",t=>{1==t.status&&(this.notice.overflow_component+=1)}),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100)},methods:{getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],changeTab(t){this.$store.dispatch("soundEffectPlay","click_button"),1==t?this.subtitle="선생님 학원의 공지사항을 등록합니다.":2==t&&(this.subtitle="내공스터디 본사 공지사항을 확인합니다.")},toggleClassRow(t){const e="tab-1"==this.tab?"notice":"head",s=this[e].expanded,a=!(s.length>0&&s[0].nid==t.nid);"tab-1"==this.tab&&(this.notice.select_row=a),a?(this.select_id=t.nid,this[e].expanded.pop(),this[e].expanded.push(t)):(this.select_id="",this[e].expanded.pop())},selectRowEvent(){const t=this.tab.substr(this.tab.length-1);this[1==t?"notice":"head"].page=1,this.getNotice()},selectRowEvent2(t){if(0==t){if(this.notice.expanded){let t=this.notice.expanded[0];this.$router.push({name:"startpage-notice-oper",params:{nid:t.nid,notice_type:t.notice_type,notice_rid:t.notice_rid,notice_range:t.notice_range,title:t.title,content:t.sub_data.content}})}}else 1==t&&this.openDialog("del_notice_confirm")},getNotice(){if(this.get_notice_status)return;this.get_notice_status=!0;const t=this.tab.substr(this.tab.length-1),e=1===+t?"notice":"head",s=this[e],a=+s.items_per_page,i=(s.page-1)*a,o=s.sortby,n=s.sortdesc,l=s.keyword,r=s.ftype;let c=`${this.$host}/notice/${this.$cid}/getnotice/${i}/${a}`;void 0!=o&&void 0!=n&&(c+=`/${o}/`+(1==n?"desc":"asc")),""!=r&&(c+="?ftype="+r),""!=l&&(c+="&keyword="+l),c+="&ptype="+this.$storage.get("user").product_type,this.$axios.get(c).then(t=>{if(200==t.status||204==t.status&&"F"==this.$storage.get("user").product_type){this[e].items=[],this[e].items_length=t.data.records;let s=Object.entries(t.data.rows);for(let t=0,a=s.length;t/g,"\r\n"),o=s.replace(/\ \;/g," ").replace(/\/g,"").replace(/\<\/b\>/g,"").replace(/\/g,"").replace(/\<\/a\>/g,"")),this[e].items.push({nid:a.id,notice_type:i,notice_rid:a.notice_rid,notice_range:a.notice_range,title:a.title,postdate:t,sub_data:{content:s?s.replace(/\
/g,""):"",send_content:o||null}})}}}this.get_notice_status=!1}).catch(t=>{console.log(t),this[e].items=[],this.get_notice_status=!1})},addNotice(){this.$store.dispatch("soundEffectPlay","click_button"),this.$router.push({name:"startpage-notice-oper"})},editItem(t){event.stopPropagation(),""!=t.nid&&this.$router.push({name:"startpage-notice-oper",params:{nid:t.nid,notice_type:t.notice_type,notice_rid:t.notice_rid,notice_range:t.notice_range,title:t.title,content:t.sub_data.content}})},deleteItem(t){event.stopPropagation(),""!=t.nid&&(this.select_id=t.nid,this.openDialog("del_notice_confirm"))},delNotice(){const t=this.tab.substr(this.tab.length-1),e=1==t?"notice":"head";this.$axios.post(`${this.$host}/notice/${this.$cid}/del`,{del_id:this.select_id}).then(s=>{200==s.status&&(this.closeDialog(),this[e].items_length-=1,this[e].table_component+=1,1==t&&(this.notice.select_row=!1,this.notice.expanded=[],this.notice.overflow_component+=1))}).catch(t=>{console.log(t)})},searchKeyword(t){if(13==t.keyCode){const e=+this.tab.substr(this.tab.length-1),s=1==e?"notice":"head";this[s].keyword=t.target.value,1==this[s].page?this.getNotice():this[s].page=1}},searchIconClick(t){this.$store.dispatch("soundEffectPlay","click_button"),this[t].keyword=this[t].search,1==this[t].page?this.getNotice():this[t].page=1},customSort(t,e,s){this[t].sortby=e,this[t].sortdesc=s},openMessageDialog(t,e){t.stopPropagation(),this.$refs["report-message-dialog"].open("notice",e)}},beforeDestroy(){this.allBusDestroy()}},yt=ft,vt=(s("7837"),Object(u["a"])(yt,K,Z,!1,null,null,null)),xt=vt.exports,kt=s("b974"),wt=s("a844"),Ct=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"h-100",attrs:{id:"noticeopervue",justify:"center"}},[e(j["a"],{staticClass:"py-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("공지사항")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v(t._s(t.subtitle))])])]),e(J["a"],{staticClass:"elevation-0",attrs:{"background-color":"white",color:"success",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),e(W["a"],{key:1,attrs:{href:"#tab-1",ripple:!1},on:{click:function(e){return t.changetab(1)}}},[e("span",[t._v("공지사항")])]),e(W["a"],{key:2,attrs:{href:"#tab-2",ripple:!1,disabled:""},on:{click:function(e){return t.changetab(2)}}},[e("span",[t._v("업데이트 소식")])]),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?e("div",[e("div",{staticClass:"py-2"},[e(L["a"],{staticClass:"float-right btn-in-menu",staticStyle:{padding:"0 15px"},attrs:{color:"success",outlined:"",elevation:"0"},on:{click:function(e){return t.backbtn()}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-left")]),t._v(" 뒤로 가기\n ")],1),"add"==t.mode?e(L["a"],{key:t.submit_btn,staticClass:"float-right mr-2 btn-in-menu",attrs:{depressed:"",color:"success",disabled:t.valid},on:{click:t.noticeAddBefore}},[e(q["a"],{attrs:{small:""}},[t._v("mdi-plus")]),t._v(" \n "),e("span",[t._v("공지 등록")])],1):"modify"==t.mode?e(L["a"],{staticClass:"float-right mr-2 btn-in-menu",attrs:{depressed:"",color:"success",disabled:t.valid_oper},on:{click:t.noticeAddBefore}},[e(q["a"],{attrs:{small:""}},[t._v("mdi-pencil")]),t._v(" 공지 수정\n ")],1):t._e(),e("div",{staticStyle:{clear:"both"}})],1),e("div",{staticClass:"bg-white height-inherit"},[e(j["a"],{staticClass:"pa-0 mgauto",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e("div",{staticStyle:{width:"100%"}},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"py-1 px-0 br-4",staticStyle:{border:"thin solid #e9e9e9",background:"#f8f8f9"},attrs:{cols:"12"}},[e(L["a"],{staticClass:"black--text px-3",staticStyle:{"justify-content":"start",background:"#f8f8f9"},attrs:{depressed:"",text:"",width:"100%",ripple:!1},on:{click:t.openTypeDialog}},[e("span",{staticClass:"fw-700",staticStyle:{"font-size":"1rem !important"}},[t._v("공지 항목")]),e(q["a"],{staticClass:"ml-2"},[t._v("mdi-chevron-right")]),e(X["a"],{staticClass:"info--text cursor",attrs:{solo:"",dense:"",flat:"","hide-details":"",required:"",readonly:"",rules:[t=>!!t||""]},model:{value:t.setNoticeType,callback:function(e){t.setNoticeType=e},expression:"setNoticeType"}})],1)],1),e(j["a"],{staticClass:"px-0 border-ede thin-b",staticStyle:{"padding-top":"6.5px","padding-bottom":"6.5px"},attrs:{cols:"12"}},[e(X["a"],{staticClass:"custom_ph",attrs:{color:"success",placeholder:"제목","hide-details":!0,solo:"",flat:"",stlye:"font-size: 0.875rem;",required:"",rules:t.rules},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),e(j["a"],{staticClass:"px-0",attrs:{cols:"12"}},[e(wt["a"],{staticClass:"px-3",attrs:{rows:10,counter:5e3,"full-width":"","no-resize":"",required:"",filled:"",rounded:"",color:"success",placeholder:"내용을 입력하세요.","hide-details":!1,stlye:"font-size: 0.875rem;",rules:t.content_rules},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1)],1)])],1)]):t._e()])})),1)],1)],1)],1),e("Dialogs",[e("div",{staticClass:"radio-dialog",attrs:{slot:"notice_open_type"},slot:"notice_open_type"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("공지 항목")])])]),e(M["b"],{staticStyle:{"max-height":"169px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.noticeTypeChange},model:{value:t.notice_type_group,callback:function(e){t.notice_type_group=e},expression:"notice_type_group"}},[e(nt["a"],{key:"1",staticClass:"mx-2 custom-radio",attrs:{label:"전체공지",value:"전체공지",color:"success"}}),e(nt["a"],{key:"2",staticClass:"mx-2 custom-radio",attrs:{label:"학원소식",value:"학원소식",color:"success"}}),e(nt["a"],{key:"3",staticClass:"mx-2 custom-radio",attrs:{label:"반별공지",value:"반별공지",color:"success"}}),e(kt["a"],{directives:[{name:"show",rawName:"v-show",value:"반별공지"==t.notice_type_group,expression:"notice_type_group == '반별공지'"}],staticClass:"c-select-class-box",staticStyle:{"margin-left":"0.95rem"},attrs:{disabled:!t.vs_disabled,items:t.vs_items,color:"success","item-color":"success","hide-details":!0,placeholder:"클래스를 선택해주세요.",dense:"",solo:"",flat:"","full-width":"",outlined:"","no-data-text":"클래스를 먼저 생성해주세요."},on:{change:t.changeSelectedClass},model:{value:t.notice_rid,callback:function(e){t.notice_rid=e},expression:"notice_rid"}})],1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.noticeTypeSubmit}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"select_ntype_btn cursor"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"notice_back"},slot:"notice_back"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성 중인 내용이 있습니다."),e("br"),t._v("뒤로 가시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"50%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0",staticStyle:{width:"50%"},attrs:{"x-large":"",tile:"",text:""},on:{click:t.back}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"notice_add_confirm"},slot:"notice_add_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("공지사항을\n "+t._s("modify"==this.mode?"수정":"등록")+"하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"50%"},attrs:{"x-large":"",text:""},on:{click:t.noticeAddSubmit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0",staticStyle:{width:"50%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"null_class"},slot:"null_class"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("생성된 클래스가 없습니다."),e("br"),t._v("\n 클래스를 먼저 생성해주세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"50%"},attrs:{"x-large":"",text:""},on:{click:t.push_class}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("생성")])])]),e(L["a"],{staticClass:"ml-0",staticStyle:{width:"50%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"50%"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0",staticStyle:{width:"50%","border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"null_notice_rid"},slot:"null_notice_rid"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("클래스를 먼저 선택해주세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1)])],1)},St=[],$t={name:"login",components:{Dialogs:st["a"],preFont:et["a"]},data(){return{tmp:"",tab:null,tabs:2,subtitle:"선생님 학원의 공지사항을 등록합니다.",mode:"add",valid:!0,valid_oper:!0,notice_type:"",notice_rid:"",selected_rid:"",title:"",content:"",nid:"",old_notice_type:"",old_notice_rid:"",old_title:"",old_content:"",notice_type_group:0,vs_status:!0,vs_items:[],vs_disabled:!1,submit_btn:0,rules:[t=>!!t||"",t=>!!t.trim()||""],content_rules:[t=>!!t||"",t=>!!t.trim()||"",t=>t.length<5e3||""],to:"",move_page_status:0}},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)return"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s(),!1;{let e=(this.notice_type?1:0)+(this.title?1:0)+(this.content?1:0);if(""!=e||0!=e)return this.openDialog("move_page"),!1;"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},created:function(){if(this.$axios.get(`${this.$host}/class/${this.$cid}/getclassroom`).then(t=>{if(200==t.status)for(var[e,s]of Object.entries(t.data))0!=s.id&&this.vs_items.push({text:s.name,value:s.id});else 204==t.status&&(this.vs_status=!1)}).catch(t=>{console.log(t)}),void 0!=this.$route.params.nid){const t=this.$route.params;console.log(t),this.mode="modify",this.nid=t.nid,this.notice_type=this.getNtype_txt(+t.notice_type),this.notice_rid=t.notice_rid,this.selected_rid=t.notice_rid,this.title=t.title,this.content=t.content.replace(/\
/g,""),this.old_notice_type=this.getNtype_txt(+t.notice_type),this.old_notice_rid=t.notice_rid,this.old_title=t.title,this.old_content=t.content.replace(/\
/g,"")}},watch:{title(){this.editingCheck()},content(){this.editingCheck()}},computed:{...Object(tt["b"])(["getNtype_txt"]),setNoticeType(){let t=this.notice_type;if("반별공지"==this.notice_type&&""!=this.selected_rid){const e=this.vs_items.find(t=>t.value===this.selected_rid);e&&(t+=` (${e.text})`)}return t}},mounted(){Tr.$on("close_event",t=>{if(1==t.status){let t=document.getElementsByClassName("select_ntype_btn")[0];t&&(t.innerText="취소",t.classList.remove("success--text")),"반별공지"==this.notice_type&&""!=this.notice_rid?this.notice_rid=this.selected_rid:(this.selected_rid="",this.notice_rid="",this.notice_type_group=null)}})},methods:{changetab:function(t){1==t?this.subtitle="선생님 학원의 공지사항을 등록합니다.":2==t&&(this.subtitle="내공스터디 본사 공지사항을 확인합니다.")},back:function(){this.move_page_status=1,this.$router.push({name:"startpage-notice"})},backbtn:function(){let t=this.notice_type+this.title+this.content;""==t?(this.$store.dispatch("soundEffectPlay","click_button"),this.back()):this.openDialog("notice_back")},openTypeDialog:function(){this.openDialog("notice_open_type")},noticeTypeChange:function(t){let e=document.getElementsByClassName("select_ntype_btn")[0];if("반별공지"==t)return this.vs_disabled=!0,e.innerText="취소",e.classList.remove("success--text"),this.vs_status||(this.closeDialog(),this.openDialog("null_class")),!1;this.vs_disabled=!1,e.innerText="확인",e.classList.add("success--text"),this.tmp=t},noticeTypeSubmit:function(){let t=document.getElementsByClassName("select_ntype_btn")[0];"취소"==t.innerText?("반별공지"==this.notice_type&&""!=this.selected_rid?this.notice_rid=this.selected_rid:(this.selected_rid="",this.notice_rid="",this.notice_type_group=null),this.closeDialog(!0)):"확인"==t.innerText&&("반별공지"==this.tmp&&""!=this.notice_rid&&(this.selected_rid=this.notice_rid),Tr.$emit("dialog",!1),this.notice_type_group=null,t.innerText="취소",t.classList.remove("success--text"),this.notice_type=this.tmp,"반별공지"!=this.notice_type&&(this.selected_rid="",this.notice_rid="")),this.editingCheck()},changeSelectedClass(){if(""!=this.notice_rid){let t=document.getElementsByClassName("select_ntype_btn")[0];t.innerText="확인",t.classList.add("success--text"),this.notice_type_group="반별공지",this.tmp=this.notice_type_group}},noticeAddBefore(){if("반별공지"==this.notice_type&&""==this.notice_rid)return this.openDialog("null_notice_rid"),!1;this.openDialog("notice_add_confirm")},noticeAddSubmit:function(){let t={notice_type:this.notice_type,notice_rid:this.selected_rid,notice_range:0,title:this.title,content:this.content};"modify"==this.mode&&(t.nid=this.nid),this.$axios.post(`${this.$host}/notice/${this.$cid}/${this.mode}`,t).then(t=>{200==t.status&&(this.closeDialog(),this.move_page_status=1,this.$router.push({name:"startpage-notice",params:{dialog:"add"==this.mode?"success":"modify_success"}}))}).catch(t=>{console.log(t)})},push_class:function(){this.$router.push({name:"user-class-oper"})},movePage(){this.move_page_status=1,this.$router.push({name:this.to})},editingCheck(){let t={};"add"==this.mode?(t={notice:["전체공지","학원소식"].includes(this.notice_type)&&""==this.selected_rid||"반별공지"==this.notice_type&&""!=this.selected_rid,title:""!=this.title.replace(/ /g,""),content:""!=this.content.replace(/ /g,"")},this.valid=!Object.values(t).every(t=>t)):"modify"==this.mode&&(t={notice:this.notice_type!==this.old_notice_type||this.selected_rid!==this.old_notice_rid,title:""!=this.title.replace(/ /g,"")&&this.title!==this.old_title,content:""!=this.content.replace(/ /g,"")&&this.content!==this.old_content},this.valid_oper=!Object.values(t).some(t=>t)),this.notice_type+this.title+this.content!=""&&(this.$store.state.editing_status=!0)}},beforeDestroy(){this.allBusDestroy()}},At=$t,Dt=(s("7782"),s("96d6"),Object(u["a"])(At,Ct,St,!1,null,null,null)),Pt=Dt.exports,Bt=s("cc20"),Tt=s("23a7"),Et=s("4bd4"),It=s("adda"),zt=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"admininfovue",justify:"center"}},[e(j["a"],{staticClass:"py-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("ctooltip",{attrs:{wrap_display:t.info_tooltip_display,wrap_position:"fixed",arrow_direction:"arrow-left","arrow-top":"50%",arrow_left:"0",arrow_color:"custom_black",arrow_translate:"translate(0, -50%)",tool_top:t.info_tooltip_top,tool_left:t.info_tooltip_left,tool_color:"custom_black",tool_translate:"translate(0, -55%)",text:t.info_tooltip_text}}),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("관리자 정보")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v("관리자 정보를 수정합니다.")])])]),e("div",[e(J["a"],{staticClass:"elevation-0",attrs:{"background-color":"white",color:"success",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),e(W["a"],{key:1,attrs:{ripple:!1,href:"#tab-1"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v("정보 수정")])]),e(W["a"],{key:2,attrs:{ripple:!1,href:"#tab-2"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v("로고 설정")])]),e(W["a"],{key:3,attrs:{ripple:!1,href:"#tab-3"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v("학습 설정")])]),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(a){return e(Y["a"],{key:a,attrs:{value:"tab-"+a,transition:!1,"reverse-transition":!1}},[1==a?[e(U["a"],{staticClass:"mb-7 w-100 mgauto"},[e(j["a"],{staticStyle:{margin:"0 auto"},attrs:{cols:"12",sm:"8",md:"6",lg:"5"}},[e(Et["a"],{ref:"form",refInFor:!0,staticClass:"mt-3",model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[e("label",{attrs:{for:"product"}},[t._v("상품")]),e(X["a"],{ref:"product_input",refInFor:!0,staticClass:"c-disabled-input tight-input",attrs:{label:"",autocomplete:"off",solo:"",dense:"","single-line":"",filled:"",flat:"",outlined:"",readonly:"",color:"success"},on:{mouseover:function(e){return t.setPointer("product_input")},click:t.showDetail},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"black--text label_item"},[t._v(t._s(t.a_product))]),t.a_date?e("span",{staticClass:"red--text ml-1 label_item"},[t._v(t._s(t.a_date))]):t._e()]},proxy:!0}],null,!0)}),e("label",{attrs:{for:"product"}},[t._v("이름")]),e(X["a"],{staticClass:"c-outlined-input",class:[t.input_disabled?"":"v-text-field--filled"],attrs:{autocomplete:"off",solo:"",dense:"","single-line":"",flat:"",outlined:"",color:"success",disabled:!t.input_disabled},model:{value:t.a_name,callback:function(e){t.a_name=e},expression:"a_name"}}),e("label",{attrs:{for:"product"}},[t._v("휴대폰 번호")]),e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:["###-###-####","###-####-####"],expression:"['###-###-####', '###-####-####']"}],staticClass:"c-outlined-input",class:[t.input_disabled?"":"v-text-field--filled"],attrs:{autocomplete:"off",solo:"",dense:"","single-line":"",flat:"",outlined:"",color:"success",disabled:!t.input_disabled,placeholder:"숫자로만 입력하세요.",rules:t.phone_rule},on:{keyup:t.keyupPhone},model:{value:t.a_phone,callback:function(e){t.a_phone=e},expression:"a_phone"}}),e("label",{attrs:{for:"product"}},[t._v("학원명")]),e(X["a"],{staticClass:"c-outlined-input",class:[t.input_disabled?"":"v-text-field--filled"],attrs:{autocomplete:"off",solo:"",dense:"","single-line":"",flat:"",outlined:"",color:"success",disabled:!t.input_disabled},model:{value:t.c_name,callback:function(e){t.c_name=e},expression:"c_name"}}),e("label",{attrs:{for:"product"}},[t._v("아이디")]),e(X["a"],{staticClass:"c-disabled-input",attrs:{autocomplete:"off",solo:"",dense:"","single-line":"",filled:"",flat:"",outlined:"",disabled:"",color:"success"},model:{value:t.a_loginid,callback:function(e){t.a_loginid=e},expression:"a_loginid"}}),e("label",{attrs:{for:"product"}},[t._v("비밀번호")]),e(X["a"],{staticClass:"c-outlined-input security-input",class:[t.input_disabled?"":"v-text-field--filled",""==t.a_password?"nnfont":"msfont"],attrs:{autocomplete:"off",solo:"",dense:"","single-line":"",flat:"",outlined:"",color:"success",type:"text",disabled:!t.input_disabled,"error-messages":t.a_password_err_msg,placeholder:"변경 시 기재하세요."},model:{value:t.a_password,callback:function(e){t.a_password=e},expression:"a_password"}}),e("label",{attrs:{for:"product"}},[t._v("\n 추천인 코드\n "),e("div",{staticClass:"d-inline-flex info_icon cursor ml-1",staticStyle:{border:"thin solid #b0b0b0","border-radius":"50%"},on:{click:function(e){return t.infoType(e)}}},[e(q["a"],{attrs:{small:"",color:"#b0b0b0"}},[t._v("\n mdi-information-variant\n ")])],1)]),e("div",{staticClass:"pos-rel"},[e(X["a"],{staticClass:"c-disabled-input",attrs:{autocomplete:"off",dense:"","single-line":"",filled:"",flat:"",outlined:"",disabled:"","hide-details":"",color:"success"},model:{value:t.recommcode,callback:function(e){t.recommcode=e},expression:"recommcode"}}),e("span",{staticClass:"pos-abs translate-y cursor",staticStyle:{right:"12px",color:"#c3c3c3","text-decoration":"underline"},on:{click:t.copyToClip}},[t._v("\n 복사하기\n ")])],1),e("div",{staticClass:"text-center w-100 mgauto mt-7"},[e(L["a"],{staticStyle:{width:"150px"},attrs:{disabled:!t.valid_oper,color:"success",depressed:""},on:{click:function(e){return t.changeAcademy()}}},[t._v("\n "+t._s(t.admin_info_text)+"\n ")])],1)],1)],1)],1),e("pre-cautions",{attrs:{type:a,data:t.$data}})]:2==a?e("div",{staticClass:"mb-7"},[e(U["a"],[e(j["a"],{staticClass:"text-center mt-7"},[e(L["a"],{staticStyle:{background:"#f5f5f5"},attrs:{fab:"",small:"",elevation:"0",ripple:!1}},[e(q["a"],{staticStyle:{color:"#00000042"}},[t._v("mdi-camera")])],1),e("span",{staticClass:"group pa-2"},[t._v("\n 를 눌러 학원 로고 이미지를 선택해주세요.\n ")])],1)],1),e(U["a"],{attrs:{align:"center",justify:"center"}},[e(j["a"],{staticClass:"text-center",attrs:{cols:"12",sm:"8",md:"7",lg:"6"}},[e("div",{staticClass:"pos-rel",staticStyle:{border:"thin solid #c5c5c5","border-radius":"4px",height:"200px"}},[t.$store.state.clogo?e("div",{key:"index-img-"+t.change_img_key,staticClass:"info-img bg-center bg-contain bg-norepeat w-100 translate-y pos-rel",staticStyle:{height:"140px"},style:`background-image: url(${t.$store.state.clogo})`,attrs:{id:"main-user-logo"}}):e(It["a"],{key:"index-img-null",staticClass:"info-img w-100 pos-rel translate-y",attrs:{src:s("e347"),"lazy-src":s("e347"),contain:"",height:"104","max-height":"104"}}),e("div",{staticClass:"text-right mb-2 pos-abs",staticStyle:{bottom:"10px",right:"10px"}},[e(L["a"],{staticClass:"mx-2",staticStyle:{color:"rgba(0, 0, 0, 0.26) !important"},attrs:{fab:"",small:"",elevation:"0"},on:{click:function(e){return t.changeLogoConfirm()}}},[e(q["a"],{attrs:{dark:""}},[t._v("mdi-camera")])],1)],1)],1)])],1),e("pre-cautions",{attrs:{type:a,data:t.$data}})],1):3==a?e("div",{staticClass:"mt-4"},[t._l(8,(function(s){return e(U["a"],{key:"setting-row-"+s,class:6!=s||t.$store.state.is_mobile?"d-flex":"d-none",attrs:{align:"center",justify:"center"}},[e(j["a"],{attrs:{cols:"12",sm:"8",md:"8",lg:"6"}},[1==s?[e("h3",[e("b",[t._v("교재 순서")]),e("small",{staticClass:"grey--text ml-4"},[t._v("교재 컨텐츠 학습 순서를 선택하세요.")])]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_random",0),attrs:{id:"is_random_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_random",0)}}},[t._v("순서대로 학습")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_random",1),attrs:{id:"is_random_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_random",1)}}},[t._v("랜덤 순서대로 학습")])],1)],1)]:2==s?[e("h3",[e("b",[t._v("교재 표기")]),e("small",{staticClass:"grey--text ml-4"},[t._v("교재 컨텐츠 공개 범위를 선택하세요.")])]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_openbook",0),attrs:{id:"is_openbook_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_openbook",0)}}},[t._v("전체 교재 오픈")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_openbook",1),attrs:{id:"is_openbook_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_openbook",1)}}},[t._v("스케쥴 교재만 오픈")])],1)],1)]:3==s?[e("h3",[e("b",[t._v("학습 단계")]),e("small",{staticClass:"grey--text ml-4"},[t._v("단계별 과정의 학습 여부를 선택하세요.")])]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_skip",0),attrs:{id:"is_skip_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_skip",0)}}},[t._v("학습단계 스킵 불가")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_skip",1),attrs:{id:"is_skip_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_skip",1)}}},[t._v("학습단계 스킵 가능")])],1)],1)]:4==s?[e("h3",[e("b",[t._v("채점 여부")]),e("small",{staticClass:"grey--text ml-4"},[t._v("단계별 학습 결과 채점 여부를 선택하세요.")])]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_scoringnext",0),attrs:{id:"is_scoringnext_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_scoringnext",0)}}},[t._v("실시간 채점")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_scoringnext",1),attrs:{id:"is_scoringnext_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_scoringnext",1)}}},[t._v("학습 후 일괄 채점")])],1)],1)]:5==s?[e("h3",[e("b",[t._v("재학습")]),e("small",{staticClass:"grey--text ml-4"},[t._v("차시별 학습량을 제어할 수 있습니다.")])]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_restudy",1),attrs:{id:"is_restudy_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_restudy",1)}}},[t._v("차시당 최대 3회")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_restudy",0),attrs:{id:"is_restudy_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_restudy",0)}}},[t._v("무제한")])],1)],1)]:6==s?[e("h3",[e("b",[t._v("효과음")]),e("small",{staticClass:"grey--text ml-4"},[t._v("관리자 모드의 효과음을 제어할 수 있습니다.")])]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_sound",0),attrs:{id:"is_sound_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_sound",0)}}},[t._v("효과음 사용")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_sound",1),attrs:{id:"is_sound_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_sound",1)}}},[t._v("효과음 사용안함")])],1)],1)]:7==s?[e("h3",[e("b",[t._v("리스닝")]),e("small",{staticClass:"grey--text ml-4"},[t._v("리스닝 과정의 학습량을 제어할 수 있습니다.")])]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_studentcontrol",0),attrs:{id:"is_studentcontrol_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_studentcontrol",0)}}},[t._v("학습자 제어 가능")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_studentcontrol",1),attrs:{id:"is_studentcontrol_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_studentcontrol",1)}}},[t._v("관리자 직접 설정")])],1)],1)]:8==s?[e("h3",[e("b",[t._v("음성 성별")]),e("div",{staticClass:"d-inline-flex align-center"},[e("small",{staticClass:"grey--text ml-4"},[t._v("\n 리스닝, 딕테이션 등 원어민 성별을 선택합니다.\n ")]),e(q["a"],{staticClass:"ml-2 cursor",staticStyle:{"margin-top":"-2px"},attrs:{small:"",color:"#b4b4b4"},on:{click:t.previewTTS}},[t._v("\n mdi-play-circle\n ")]),e("small",{staticClass:"grey--text cursor usn",staticStyle:{"text-decoration":"underline"},on:{click:t.previewTTS}},[t._v("\n 미리듣기\n ")])],1)]),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_ttsgender",0),attrs:{id:"is_ttsgender_0",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_ttsgender",0)}}},[t._v("남자 (John)")])],1),e(j["a"],{staticClass:"pb-2"},[e(L["a"],{class:t.getSettingClass("is_ttsgender",1),attrs:{id:"is_ttsgender_1",rounded:"",block:"",elevation:"0"},on:{click:function(e){return t.clickSetting("is_ttsgender",1)}}},[t._v("여자 (Sally)")])],1)],1)]:t._e()],2)],1)})),e(U["a"],{staticClass:"mb-4",attrs:{align:"center",justify:"center"}},[e(j["a"],{staticClass:"text-center",attrs:{cols:"12",sm:"8",md:"8",lg:"6"}},[e(L["a"],{staticStyle:{width:"150px"},style:t.setting_disabled?"":"background: #f5f5f5 !important; color: #9e9e9e !important;",attrs:{dense:"",depressed:"",color:"success",disabled:!t.setting_disabled},on:{click:function(e){return t.openDialog("change_setting_confirm")}}},[t._v("\n 수정\n ")])],1)],1)],2):t._e()],2)})),1)],1)],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"change_academy_success"},slot:"change_academy_success"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("관리자 정보가 수정되었습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left w-100",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{key:t.change_img_key,attrs:{slot:"change_img"},slot:"change_img"},[e(M["b"],{staticClass:"text-center px-8 pt-6 pb-5"},[t.$store.state.is_mobile?e(U["a"],{staticClass:"mobile_select_row",attrs:{"no-gutters":""}},[e(j["a"],{staticClass:"text-center pos-rel",staticStyle:{"margin-top":"1vh"},attrs:{cols:"6"}},[e(L["a"],{key:"index-btn-16",staticStyle:{height:"72px !important",width:"72px"},attrs:{color:"grey lighten-3",elevation:"0",fab:"","x-large":""},on:{click:t.filePicker}},[e(q["a"],{key:"index-icon-6",staticClass:"grey--text text--darken-1"},[t._v("mdi-image-outline")])],1),e("div",{staticClass:"text-center pop-caption w-100"},[e("b",{staticClass:"grey--text text--darken-2",staticStyle:{"font-size":"1.1rem"}},[t._v("갤러리")])])],1),e(j["a"],{staticClass:"text-center pos-rel before-divider",staticStyle:{"margin-top":"1vh"},attrs:{cols:"6"}},[e(L["a"],{key:"index-btn-17",staticStyle:{height:"72px !important",width:"72px"},attrs:{color:"grey lighten-3",elevation:"0",fab:"","x-large":""},on:{click:t.camera}},[e(q["a"],{key:"index-icon-7",staticClass:"grey--text text--darken-1"},[t._v("mdi-camera-outline")])],1),e("div",{staticClass:"text-center pop-caption w-100"},[e("b",{staticClass:"grey--text text--darken-2",staticStyle:{"font-size":"1.1rem"}},[t._v("카메라")])])],1),e(L["a"],{staticClass:"pos-abs white",staticStyle:{top:"10px",right:"10px"},attrs:{"x-small":"",fab:"",elevation:"0",ripple:!1},on:{click:function(e){return t.closeDialog(!0)}}},[e(q["a"],[t._v(" mdi-close ")])],1)],1):e(U["a"],{attrs:{"no-gutters":""}},[e(j["a"],{staticStyle:{border:"2px dashed #e5e5e5"},attrs:{cols:"12"}},[e("h3",{staticClass:"mt-5",staticStyle:{"font-size":"1.3rem",color:"#0009"}},[t._v("\n 이미지 파일을 선택해주세요.\n ")]),e("h4",{staticClass:"grey--text mb-6"},[t._v("(jpeg, png 확장자만 지원합니다.)")]),e(Tt["a"],{staticClass:"mb-5 pc-file-input",staticStyle:{width:"70%",margin:"0 auto"},attrs:{color:"info","prepend-icon":"mdi-file",label:"File",placeholder:"Choose File",accept:["image/jpeg","image/png"],outlined:"","hide-details":"","show-size":1e3},on:{change:t.fileInput},scopedSlots:t._u([{key:"selection",fn:function({index:s,text:a}){return[s<2?e(Bt["a"],{attrs:{color:"info",dark:"",label:"",small:""}},[t._v("\n "+t._s(a)+"\n ")]):2===s?e("span",{staticClass:"overline grey--text text--darken-3 mx-2"},[t._v("\n +"+t._s(t.files.length-2)+" File(s)\n ")]):t._e()]}}]),model:{value:t.files,callback:function(e){t.files=e},expression:"files"}})],1)],1),e(U["a"],{directives:[{name:"show",rawName:"v-show",value:""!==t.file_path,expression:"'' !== file_path"}],ref:"test",staticClass:"after_select_row"},[e("div",{staticStyle:{width:"50%",margin:"0 auto"}},[e(It["a"],{staticClass:"mt-4",attrs:{src:t.file_path,"lazy-src":t.file_path,"aspect-ratio":"1",contain:"",height:"150"}})],1)])],1),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"ml-0 after_select_row d-none",staticStyle:{width:"50%","border-right":"thin solid #edeeef","border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:t.changeImgSubmit}},[e("b",{staticClass:"success--text"},[t._v("적용")])]),e(L["a"],{staticClass:"ml-0 after_select_row d-none",staticStyle:{width:"50%","border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("b",[t._v("취소")])]),e(L["a"],{staticClass:"ml-0 mobile_select_row w-100",staticStyle:{"border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:t.confirmDefaultLogo}},[e("h3",{staticClass:"title-1 ls-m-1"},[e("b",{staticClass:"grey--text fw-400"},[t._v("기본 로고로 변경")])])])],1)],1),e("div",{attrs:{slot:"cofirm_default"},slot:"cofirm_default"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("기본 로고로 설정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("b",{staticClass:"success--text"},[t._v("취소")])]),e(L["a"],{staticClass:"dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.changeDefaultLogo}},[e("b",[t._v("확인")])])],1)],1),e("div",{attrs:{slot:"success_default"},slot:"success_default"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("기본 로고로 설정되었습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left w-100",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("b",{staticClass:"success--text"},[t._v("확인")])])],1)],1),e("div",{attrs:{slot:"change_setting_confirm"},slot:"change_setting_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("학습 설정을 수정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.submitSetting}},[e("b",{staticClass:"success--text"},[t._v("수정")])]),e(L["a"],{staticClass:"dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("b",[t._v("취소")])])],1)],1),e("div",{attrs:{slot:"admin_control_set"},slot:"admin_control_set"},[e(M["b"],{staticClass:"text-center"},[e(U["a"],[e(j["a"],{staticClass:"px-8",attrs:{cols:"12"}},[e("h3",{staticClass:"success--text title fw-700",staticStyle:{"line-height":"inherit"}},[t._v("\n 사용자 설정\n ")]),e("div",{staticClass:"w-100 mt-6 mb-3",staticStyle:{"border-bottom":"1px dashed #bdbdbd"}})]),e(U["a"],{staticClass:"w-100 mgauto pb-3",staticStyle:{"align-items":"center"}},[e(j["a"],{staticClass:"pa-0 text-center d-flex justify-center align-center mb-3",attrs:{cols:"10",offset:"1"}},[e("span",{staticClass:"body-1 mr-6 grey--text",staticStyle:{"letter-spacing":"-1px !important"}},[t._v("전체 반복")]),e(L["a"],{staticClass:"grey lighten-3",attrs:{depressed:"",ripple:!1}},[e(q["a"],{attrs:{small:"",left:"",color:"grey"},on:{click:function(e){return t.adminSetOpt("all_repeat","left")}}},[t._v("mdi-chevron-left")]),e("b",{staticClass:"mx-6"},[t._v(t._s(t.form.all_repeat))]),e(q["a"],{attrs:{small:"",right:"",color:"grey"},on:{click:function(e){return t.adminSetOpt("all_repeat","right")}}},[t._v("mdi-chevron-right")])],1)],1),e(j["a"],{staticClass:"pa-0 text-center d-flex justify-center align-center mb-3",attrs:{cols:"10",offset:"1"}},[e("span",{staticClass:"body-1 mr-6 grey--text",staticStyle:{"letter-spacing":"-1px !important"}},[t._v("문항 반복")]),e(L["a"],{staticClass:"grey lighten-3",attrs:{depressed:"",ripple:!1}},[e(q["a"],{attrs:{small:"",left:"",color:"grey"},on:{click:function(e){return t.adminSetOpt("sen_repeat","left")}}},[t._v("mdi-chevron-left")]),e("b",{staticClass:"mx-6"},[t._v(t._s(t.form.sen_repeat))]),e(q["a"],{attrs:{small:"",right:"",color:"grey"},on:{click:function(e){return t.adminSetOpt("sen_repeat","right")}}},[t._v("mdi-chevron-right")])],1)],1),e(j["a"],{staticClass:"pa-0 text-center d-flex justify-center align-center",attrs:{cols:"10",offset:"1"}},[e("span",{staticClass:"body-1 mr-6 grey--text",staticStyle:{"letter-spacing":"-1px !important"}},[t._v("듣기 속도")]),e(L["a"],{staticClass:"grey lighten-3",attrs:{depressed:"",ripple:!1}},[e(q["a"],{attrs:{small:"",left:"",color:"grey"},on:{click:function(e){return t.adminSetOpt("listening_speed","left")}}},[t._v("mdi-chevron-left")]),e("b",{staticClass:"mx-6"},[t._v(t._s(t.form.listening_speed))]),e(q["a"],{attrs:{small:"",right:"",color:"grey"},on:{click:function(e){return t.adminSetOpt("listening_speed","right")}}},[t._v("mdi-chevron-right")])],1)],1)],1)],1)],1),e(M["a"],{staticClass:"pa-0 py-0 border-ede thin-t",class:t.admin_set_disabled?"grey lighten-3":"success"},[e(L["a"],{staticClass:"ml-0",staticStyle:{width:"100%"},attrs:{"x-large":"",text:"",disabled:t.admin_set_disabled,ripple:!1},on:{click:t.adminSet}},[e("h3",{staticClass:"title-1"},[e("b",{class:t.admin_set_disabled?"grey--text":"white--text"},[t._v("적용")])])])],1)],1)]),e(ot["a"],{attrs:{"max-width":t.dialogWidth,transition:!1},on:{"click:outside":function(e){t.detail_dialog=!1}},model:{value:t.detail_dialog,callback:function(e){t.detail_dialog=e},expression:"detail_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"py-4 text-center black--text title"},[e(U["a"],[e(j["a"],{staticClass:"text-center",attrs:{cols:"12"}},[e("h3",{staticClass:"text-usn",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.a_product)}}),e("h3",{staticClass:"text-usn red--text",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.a_date)}})])],1)],1)],1)],1),e("audio",{attrs:{id:"male_sample",preload:"",src:"https://kr.object.ncloudstorage.com/voca-tts/sample/ng_male_sample.mp3"}}),e("audio",{attrs:{id:"female_sample",preload:"",src:"https://kr.object.ncloudstorage.com/voca-tts/sample/ng_female_sample.mp3"}})],1)},Ot=[],Nt=s("3a60"),Lt=s("55f3"),Mt={name:"admininfo",components:{Dialogs:st["a"],preFont:et["a"],ctooltip:Lt["a"],preCautions:at["a"]},directives:{mask:Nt["mask"]},data(){return{mask:"###-####-####",user:null,tab:null,tabs:3,valid:!0,valid_oper:!0,a_product:"",a_loginid:"",a_name:"",a_phone:"",c_name:"",a_password:"",a_password_err_msg:"",a_date:"",recommcode:"",old_name:"",old_phone:"",old_cname:"",old_password:"",admin_info_text:"확인",input_disabled:!1,cs1:0,cs2:0,cs3:0,cs4:0,setting_disabled:!1,form:{is_random:0,is_skip:0,is_scoringnext:0,is_studentcontrol:0,is_restudy:0,is_sound:0,is_openbook:0,is_ttsgender:0,all_repeat:1,sen_repeat:3,listening_speed:3},origin_form:{},cao1:0,cao2:0,cao3:0,admin_set_disabled:!0,files:[],file_path:"",change_img_key:0,imgkey:0,phone_rule:[t=>0==t.length||t.length>=12&&t.length<14||""],fd:null,fr:null,use_picture:!1,detail_dialog:!1,phone_cases:["010","011","016","017","019"],info_tooltip_display:"none",info_tooltip_text:"",info_tooltip_top:"-1000px",info_tooltip_left:"-1000px"}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created:function(){this.user=this.$storage.get("user");let t=this.user.uclass,e="무료체험";this.$axios.get(`${this.$host}/academy/${this.$cid}/getacaproduct`).then(t=>{if(200==t.status){let s=t.data;e=s.name,s.student_cnt&&(e+=" "+s.student_cnt+"명"),this.a_product="내공스터디 "+e;let a=["F","B","B2","C","C1","C2","C3","C4","C5","C6","C7","P","S","S2","S3"];!a.includes(s.type)&&s.startdate&&s.enddate&&(this.a_date=`(${s.startdate.split(" ")[0]} ~ ${s.enddate.split(" ")[0]})`)}}).catch(t=>{console.log(t)}),this.a_loginid=this.user.loginid,this.a_name=this.user.president,this.c_name=this.user.cname,this.a_phone=this.user.phone,this.a_password="",this.recommcode=this.user.recommcode,this.old_name=this.user.president,this.old_phone=this.removeHyphen(this.user.phone),this.old_cname=this.user.cname,this.old_password=this.user.password,this.$store.state.UCLASS_PRESIDENT==parseInt(t)&&(this.input_disabled=!0)},mounted(){this.form={is_random:+this.user.is_random,is_skip:+this.user.is_skip,is_scoringnext:+this.user.is_scoringnext,is_studentcontrol:+this.user.is_studentcontrol,is_restudy:+this.user.is_restudy,is_sound:+this.user.is_sound,is_openbook:+this.user.is_openbook,is_ttsgender:+this.user.is_ttsgender,all_repeat:+this.user.all_repeat||1,sen_repeat:+this.user.sen_repeat||3,listening_speed:+this.user.listening_speed||3},this.origin_form=this.deepClone(this.form),console.log(this.form.is_ttsgender),window.addEventListener("message",this.mListener),Tr.$on("close_event",t=>{1==t.status&&(this.change_img_key+=1,this.file_path="",this.files=[])}),this.$store.dispatch("fbRTGetLogo",{cid:this.$cid}),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100)},watch:{a_name(t){this.old_name!=t&&""!=t.trim()?this.changeStatus(1,!0):this.changeStatus(1,!1)},a_phone(t){t=this.removeHyphen(t),this.old_phone!=t&&""!=t.trim()&&t.length>=10&&t.length<12?this.changeStatus(2,!0):this.changeStatus(2,!1)},c_name(t){this.old_cname!=t&&""!=t.trim()?this.changeStatus(3,!0):this.changeStatus(3,!1)},a_password(t){let e=!1;t.length>=8&&t.length<=20&&(e=!0);let s=/^[a-z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]*$/,a=!1;if(s.test(t)){let e=t.search(/[0-9]/g),s=t.search(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]+/g),i=t.search(/[a-z]/g);e>-1&&s>-1&&(a=!0),e>-1&&i>-1&&(a=!0),i>-1&&s>-1&&(a=!0),i>-1&&e>-1&&s>-1&&(a=!0)}this.old_password!=t&&""!=t&&e&&a?(this.a_password_err_msg="",this.changeStatus(4,!0)):(a||(this.a_password_err_msg="영문 소문자, 숫자, 특수문자 등으로 다시 조합하세요."),e||(this.a_password_err_msg="최소 8자 이상입니다."),this.changeStatus(4,!1))},form:{deep:!0,handler(t){this.setting_disabled=JSON.stringify(t)!==JSON.stringify(this.origin_form)}},"form.all_repeat"(){this.checkAdminSetting(1,"all_repeat")},"form.sen_repeat"(){this.checkAdminSetting(2,"sen_repeat")},"form.listening_speed"(){this.checkAdminSetting(3,"listening_speed")},all_repeat(t){this.old_all_repeat!=t?(this.cao1=1,this.admin_set_disabled=!1):(this.cao1=0,0==this.cao1&&0==this.cao2&&0==this.cao3&&(this.admin_set_disabled=!0))},sen_repeat(t){this.old_sen_repeat!=t?(this.cao2=1,this.admin_set_disabled=!1):(this.cao2=0,0==this.cao1&&0==this.cao2&&0==this.cao3&&(this.admin_set_disabled=!0))},listening_speed(t){this.old_listening_speed!=t?(this.cao3=1,this.admin_set_disabled=!1):(this.cao3=0,0==this.cao1&&0==this.cao2&&0==this.cao3&&(this.admin_set_disabled=!0))},files(t){let e=document.getElementsByClassName("mobile_select_row"),s=document.getElementsByClassName("after_select_row");if(t){let t=Object.values(e);for(let e=0,s=t.length;e{let s="";return"tab-3"==this.tab&&(s="grey--text",+this.form[t]===+e&&(+this.origin_form[t]===+e?s+=" old-setting":s+=" selected-setting")),s}}},methods:{changeAcademy(){this.$axios.post(`${this.$host}/academy/${this.$cid}/changeacademy`,{uid:this.user.id,president:this.a_name,phone:this.removeHyphen(this.a_phone),cname:this.c_name,password:this.a_password}).then(t=>{if(200==t.status){let t=this.$storage.get("user");t.president=this.a_name,t.name=this.a_name,t.phone=this.removeHyphen(this.a_phone),t.cname=this.c_name,t.password=this.a_password,this.$storage.set("user",t),this.admin_info_text="확인",this.valid_oper=!1,this.old_name=this.a_name,this.old_phone=this.removeHyphen(this.a_phone),this.old_cname=this.c_name,this.old_password=this.a_password,this.openDialog("change_academy_success",!1,"end")}}).catch(t=>{console.log(t)})},changeStatus(t,e){let s;this["cs"+t]=e?1:0,e?s="change":0==this.cs1&&0==this.cs2&&0==this.cs3&&0==this.cs4&&(s="unchange"),""!=this.a_name.trim()&&""!=this.a_phone.trim()&&""!=this.c_name.trim()||(s="unchange"),"change"==s?(this.admin_info_text="변경",this.valid_oper=!0):"unchange"==s&&(this.admin_info_text="확인",this.valid_oper=!1)},changeLogoConfirm(){this.openDialog("change_img")},clickSetting(t,e){this.$store.dispatch("soundEffectPlay","click_button");const s=document.getElementById(`${t}_${e}`),a=document.getElementById(`${t}_${+!e}`);s.classList.add("selected-setting"),a.classList.remove("selected-setting"),this.form[t]=e,"is_studentcontrol_1"==`${t}_${e}`&&this.openDialog("admin_control_set")},submitSetting(){this.$axios.post(`${this.$host}/academy/${this.$cid}/modifyconfig`,this.form).then(t=>{if(200==t.status){const t=this.$storage.get("user");t.is_random=this.form.is_random,t.is_skip=this.form.is_skip,t.is_scoringnext=this.form.is_scoringnext,t.is_studentcontrol=this.form.is_studentcontrol,t.is_restudy=this.form.is_restudy,t.is_sound=this.form.is_sound,t.is_openbook=this.form.is_openbook,this.$store.state.is_sound="0"==this.form.is_sound,t.is_ttsgender=this.form.is_ttsgender,t.all_repeat=this.form.all_repeat,t.sen_repeat=this.form.sen_repeat,t.listening_speed=this.form.listening_speed,this.$storage.set("user",t),this.origin_form=this.deepClone(this.form),this.closeDialog(),this.setting_disabled=!1,this.admin_set_disabled=!0,this.openAlert("modify_settings_success")}}).catch(t=>{console.log(t)})},adminSetOpt(t,e){this.$store.dispatch("soundEffectPlay","click_button"),"left"==e?this.form[t]>1&&(this.form[t]-=1):this.form[t]<5&&(this.form[t]+=1)},adminSet(){this.closeDialog(!0),this.setting_disabled=!0},camera:function(){window.parent.postMessage({action:"camera",type:"logo",uid:this.user.id},"*")},filePicker:function(){window.parent.postMessage({action:"filepicker",type:"logo",uid:this.user.id},"*")},changeImgSubmit(){let t;this.fd=new FormData,t=this.use_picture?new Blob([this.file_path],{type:"image/jpeg"}):this.imageFile,this.fd.append("photo",t),this.user.is_mobile?(window.parent.postMessage({action:"cameraSubmit",api:`/academy/${this.$cid}/changelogo`,cid:this.$cid,uid:this.user.id},"*"),this.openAlert("set_logo_success")):this.$axios.post(`${this.$host}/academy/${this.$cid}/changelogo`,this.fd,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{200==t.status&&(this.$store.commit("setLogoFile",this.file_path),this.closeDialog(),this.$store.dispatch("fbChangeLogo",{cid:this.$cid}),this.openAlert("set_logo_success"),this.files=[])}).catch(t=>{console.error(t)})},fileInput(t){if(t){const e=["image/jpeg","image/png"];if(-1==e.indexOf(t.type))return this.files=[],!1;if(this.imageName=t.name,this.imageName.lastIndexOf(".")<=0)return;const s=new FileReader;s.readAsDataURL(t),s.addEventListener("load",()=>{this.file_path=s.result,this.imageFile=t})}},changeDefaultLogo(){this.$axios.get(`${this.$host}/academy/${this.$cid}/changedefaultlogo`).then(t=>{if(200==t.status){const t=this.$storage.get("user");t.clogo=null,this.$storage.set("user",t),this.$store.commit("setLogoFile",""),this.closeDialog(!0),this.$store.dispatch("fbChangeLogo",{cid:this.$cid}),this.openDialog("success_default",!1,"end")}else 202==t.status&&this.openAlert("error")}).catch(t=>{console.log(t)})},confirmDefaultLogo(){this.closeDialog(),this.openDialog("cofirm_default")},keyupPhone(t){const e=t.target.value;(1==e.length&&"0"!==e||"0"!==e.charAt(0)||e.length>2&&!this.phone_cases.includes(e.substring(0,3)))&&(this.a_phone="")},mListener(t){if("preview"==t.data.action){if(this.user.id==t.data.uid){let e=document.getElementsByClassName("mobile_select_row"),s=document.getElementsByClassName("after_select_row"),a=Object.values(e);for(let t=0,i=a.length;t신규 가입 선생님께 전달해주시면 1개월 무료기간 추가 제공';let e=t.target.getBoundingClientRect();"block"==this.info_tooltip_display?this.info_tooltip_display="none":(this.info_tooltip_top=e.top+e.height/2+"px",this.info_tooltip_left=e.right+12+"px",this.info_tooltip_display="block")},copyToClip(){window.navigator.clipboard.writeText(this.recommcode).then(()=>{this.openAlert("copy_success")})},previewTTS(){const t=document.getElementById(this.form.is_ttsgender?"female_sample":"male_sample");t.paused&&t.play()},checkAdminSetting(t,e){this.form[e]!==this.origin_form[e]?this["cao"+t]=1:this["cao"+t]=0,this.admin_set_disabled=this.cao1+this.cao2+this.cao3===0}},beforeDestroy(){window.removeEventListener("message",this.mListener),this.allBusDestroy()}},jt=Mt,Rt=(s("48f0"),Object(u["a"])(jt,zt,Ot,!1,null,null,null)),qt=Rt.exports,Ft=s("cd55"),Ut=s("49e2"),Ht=s("c865"),Gt=s("0393"),Wt=function(){var t=this,e=t._self._c;return e(U["a"],{attrs:{id:"manualvue",justify:"center"}},[e(j["a"],{staticClass:"py-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pt-3 pb-0 px-0 h-100",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("사용 설명서")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v(t._s(t.subtitles[t.tab]))])])]),e("div",{staticClass:"1"},[e(J["a"],{staticClass:"elevation-0 over-y-scroll",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),e(W["a"],{attrs:{href:"#tab-1",ripple:!1},on:{click:function(e){return t.changeTab(1)}}},[e("span",[t._v("동영상 매뉴얼")])]),e(W["a"],{attrs:{href:"#tab-2",ripple:!1},on:{click:function(e){return t.changeTab(2)}}},[e("span",[t._v("자주묻는 질문")])]),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:"tabkey-"+s,staticClass:"manual_tab_item",attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1===s?e(U["a"],{staticClass:"w-75 mgauto pt-3",staticStyle:{"min-width":"450px","margin-bottom":"3rem !important"}},t._l(t.freeManualContent,(function(s,a){return e(j["a"],{key:"free-manual-col-"+a,style:t.getFreeManualColStyle(a),attrs:{cols:"4"}},[e("div",{staticClass:"d-flex flex-column cursor",on:{click:function(e){return t.showManualVideo(s.link)}}},[e("img",{staticClass:"w-100",staticStyle:{"margin-bottom":"0.85rem"},attrs:{src:`${t.$cdn}/img/bg/${s.image}`}}),e("div",{staticClass:"px-1"},[e("span",{staticClass:"ls-m-0425 fs-125rem"},[t._v(t._s(s.title))]),e("div",{staticClass:"ls-m-0425"},[t._v(t._s(s.content))]),e("span",{staticClass:"grey--text ls-m-0425"},[t._v(t._s(s.footer))])])])])})),1):2===s?e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pt-2 pa-0",attrs:{cols:"12"}},[e(X["a"],{staticClass:"c-search-input",staticStyle:{"border-radius":"50px"},attrs:{"hide-details":"",outlined:"",flat:"",solo:"",dense:"",placeholder:"검색","append-icon":"mdi-magnify","background-color":"grey lighten-3",color:"success"},on:{keydown:t.searchQna,"click:append":function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.searchQna(e)}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),e(j["a"],{key:t.key.accordion,staticClass:"pa-0"},t._l(["서비스 전반","기기 이용","사용료 관련","학습 관련"],(function(s,a){return e(U["a"],{key:"accordion-row-"+a,staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pt-10",attrs:{cols:"12"}},[e("h3",{staticClass:"fw-700",staticStyle:{color:"#2e5bb8"}},[t._v("\n ["+t._s(s)+"]\n ")]),e(U["a"],{staticClass:"w-100 mgauto px-3",attrs:{justify:"center"}},[e(Gt["a"],{attrs:{accordion:"",multiple:""},model:{value:t.sel_accordion[a],callback:function(e){t.$set(t.sel_accordion,a,e)},expression:"sel_accordion[idx]"}},t._l(t.accordion[a],(function(s,a){return e(Ft["a"],{key:"accordion"+a},[e(Ht["a"],{staticClass:"px-2",attrs:{"expand-icon":"",ripple:!1,"disable-icon-rotate":!0,"hide-actions":!0},scopedSlots:t._u([{key:"default",fn:function(){return[e("h3",{staticClass:"ls-m-1 fw-400 qna-header-0",domProps:{innerHTML:t._s(s.header)}})]},proxy:!0}],null,!0)}),e(Ut["a"],{scopedSlots:t._u([{key:"default",fn:function(){return[e("p",{staticClass:"mgauto qna-content-0",domProps:{innerHTML:t._s(s.content)}})]},proxy:!0}],null,!0)})],1)})),1)],1)],1)],1)})),1)],1):t._e()],1)})),1)],1)],1)],1)],1),e("video-dialog",{attrs:{"video-dialog":t.videoDialog,src:t.videoSrc},on:{"click:outside":function(e){t.videoDialog=!1}}})],1)},Yt=[],Jt=s("d697"),Vt=s("e881"),Qt={name:"startpage-manual",components:{preFont:et["a"],VideoDialog:Vt["a"]},data(){return{ready:0,subtitles:{"tab-1":"주요 기능의 교육 동영상을 시청합니다.","tab-2":"자주묻는 질문에 대한 답변을 확인합니다."},tab:1,tabs:2,search:"",origin_accordion:[],sel_accordion:{0:[],1:[],2:[],3:[]},key:{accordion:"accordion0"},accordion:{0:[{header:"내공스터디는 무슨 의미가 담겨 있나요?",content:'“내공스터디”에는 2가지 중의적 의미를 담고 있습니다.

첫 번째로, 영어 공부의 내공을 담은 단계별 학습 과정과
두 번째로, (신)(략) 포인트를 위한 단계별 커리큘럼이 준비되어 있는 학습 프로그램입니다.

내공스터디는 모바일 ↔ PC 연동 기반 영어학습 스마트 플랫폼으로써,

영어 과목을 교육하시는 선생님께 체계적이고 확실한 커리큘럼을 지원하고,
수업자료 지원, 채점 자동화, 빅데이터 성적 분석자료 제공하여 원활한 수업 운영을 지원하고 있습니다.'},{header:"이용 대상 학년은 어떻게 되나요?",content:'영어를 처음 접하는 초등학교 3학년부터
대학수학능력 시험을 준비하는 고등학교 3학년까지 누구나 이용할 수 있습니다.'},{header:"내공스터디에 제공되는 컨텐츠는 무엇인가요?",content:'
1. 내공스터디 지원
내신영어 대비 유형을 담은 “내신백서” 시리즈 탑재

2. 영어 교과서
초등 3학년 ~ 고등 영어교과서 전종 지원

3. 듣기/모의고사
최근 5개년 평가원, 교육청 출제 듣기평가/모의고사 및 대수능 자료 탑재

4. 학원별 자료 공유
주요 부교재 문장 컨텐츠 3000여 종 공유
(수년 간 교육 솔루션을 서비스하며 5만명이 넘는 영어 선생님들께서 직접 만드신 소중한 자료입니다.)
'},{header:"무료체험 신청 방법과 기간을 알고 싶습니다.",content:'무료체험은 홈페이지 우측 상단 “무료체험”을 클릭한 뒤,
선생님의 존함, 연락처 (본인인증), 학원 정보를 기재하시면 체험 접수가 완료됩니다.

무료체험 기간은 7일 지원되며, 기간 연장은 최대 2회까지 지원해드리고 있습니다.
부득이하게 체험 이용에 어려움이 있으신 경우,
카카오톡 플러스친구 or 고객센터 (1661-4009) 에 접수해주시기 바랍니다.'},{header:"꼭 영어 학원에서만 사용해야만 하는지요?",content:'내공스터디는 현재 4,600곳이 넘는 가맹점에서 이용 중입니다.
소규모 공부방, 교습소, 보습학원, 대형 어학원까지 모두 사용 가능합니다.

이외 다양한 공·교육기관 등에 알맞는 솔루션을 지원 중입니다.
  - 수학 등 타 과목 학원에서 프로그램 도입
  - 방과 후 학교 및 돌봄교실 수업 등에 접목
  - 소수의 그룹 스터디, 과외 수업에 활용'}],1:[{header:"내공스터디는 어떻게 다운로드 받나요?",content:'
데스크탑 PC
내공스터디는 우측 메뉴 "학생앱 실행" or "관리자 모드"로 접속이 가능합니다.
원활한 프로그램 사용을 위해 구글 크롬 브라우저가 필요하오니,
익스플로어 사용자분들은 필히 구글 크롬을 설치해주시기 바랍니다.

스마트폰, 태블릿
내공스터디는 무료 어플리케이션을 지원합니다.
앱스토어 접속 후, "내공스터디" 검색 > 앱 다운로드 하시기 바랍니다.
'},{header:"아이폰에서도 구동이 가능한가요?",content:'물론 아이폰에서도 구동 가능합니다.

내공스터디의 가장 큰 장점은 기기별 완벽한 호환성 덕분에,
언제 어디에서나 다양한 기기로 접속하여 학습이 가능하다는 점입니다.

이 때문에, 다음과 같이 활용할 수 있습니다.
   - 수업 이후 점검용
   - 재택 학습용
   - 자가 숙제용

단, 아이폰에서는 음성인식 녹음 방식에 다소 차이가 있습니다.

1) 음성인식 시, 안드로이드와 다르게 구글 팝업이 표기되지 않고,
2) 녹음 시작과 끝의 지점을 마이크 아이콘으로 활성화 시켜야하며,
3) 아이폰 호환 특성상 학습자의 음성 그래프 및 음원 저장은 제공되지 않습니다.

이 점 참고하시어 이용바랍니다!'},{header:"권장하는 기기 사양이 어떻게 되나요?",content:'내공스터디는 모바일 기기에서 활용할 수 있는 어플리케이션을 제공하고 있습니다.

안드로이드 (구글 플레이스토어)
 1. 해상도 : 800 x 1280 이상
 2. 안드로이드 버젼 : 5.1.1 이상

iOS (애플 앱스토어)
 1. 해상도 : 640 x 1136 이상 (iPhone 5s)
 2. iOS 버젼 : 11.3 이상

만약, 컴퓨터로 활용하기 위해서는 크롬 브라우져 설치 후
내공스터디 홈페이지에서 프로그램 실행 가능합니다.'},{header:"학습 이용 간 멈춤 현상이 있습니다.",content:'우선순위로 다음 사항을 확인해주시기 바랍니다.

 1. 데이터 (와이파이 접속) 환경이 원활한지
 2. 이용 중인 디바이스가 권장 사양에 부합하는지
 3. 키보드 등 외부 입력기기가 잘 연결되어 있는지

그럼에도 멈춘 현상이 있다면 “이용 중인 학생계정 / 학습 교재이름”을
카카오톡 플러스친구 or 고객센터에 접수해주시기 바랍니다.'},{header:"기기 동시접속 환경이 가능한가요?",content:'내공스터디는 다양한 환경에서도 접속하실 수 있도록
“기기별 제한 사항 없이, 동시 접속하여 학습 가능”합니다.

때문에, 학생들이 학원/등하원 길/학교 등 장소에 가리지 않고 수시로 접속하여
영어에 대한 노출이 극대화될 수 있게 권고 부탁드립니다.

단, 아이디를 공유하여 여러 학생이 활용하는 사례에서는 동시접속 사용이 제한됩니다.
이 점 숙지해주시기 바랍니다.'}],2:[{header:"내공스터디 상품별 차이는 무엇인가요?",content:'
학생 등록 인원수, 추가 ID 비용, 사용료 등의 차이가 있습니다.
아래 내용을 참고하시기 바랍니다.

내공스터디 Standard
학생 등록 : 15명
인원 초과 ID 비용 : 6,000원
월 사용료 : 98,000원

내공스터디 Premium
학생 등록 : 30명
인원 초과 ID 비용 : 5,000원
월 사용료 : 178,000원

※ 기본료는 선납, 초과금은 후납 계산되며
익월 1일에 (익월 기본료 + 전월 초과분)이 합산되어 결제 요청드립니다.

※ 월 단위로 상품 변경 가능.

※ 30명 이상 단가 조정 가능.
'},{header:"학습한 학생 수 산정은 어떤 기준인가요?",content:'내공스터디는 원활한 선생님 운영 지원을 위해 “매월 1일”을 기준으로 이용 학생 수가 산정됩니다.
산정되는 기준은 다음과 같습니다.

로그인 여부 : 3일 이상 학습이력이 있거나
학습량 조회 : 유형별 학습(어휘, 본문, 심화 등 전체 유형) 관계없이
▷ 학습량 조회 : 학습량이 총 10회 이상인 경우 당월 학습량으로 체크.

ex) 최초 가입일 9월 5일 이후, 18명 사용 시, 다음과 같이 계산됩니다.

1) 기준 기간 : 9월 5일 ~ 10월 1일 ( 약 25일 )
2) 이용 상품 Standard 경우,
   - 사용 학생 : 18명 사용
   - 기본료 : 81,660원 (월 기본료 98,000원에서 일할계산)
   - 초과금 : 18,000원 (인당 6,000원으로 3명 초과)

※ 재원생에 등록된 학생이 있더라도 상위 학습처리 기준이 넘지 않으면 초과분은 발생하지 않습니다.'},{header:"대형 학원에 적용되는 합리적인 요금제가 있는지요?",content:'내공스터디는 Custom 상품으로 학원 원생 수에 맞게 요금제를 지원해드리고 있습니다.

이는 학생 등록 수, 초과 ID 비용, 월 사용료 모두 가맹 학생 수에 차등 적용되오니
자세한 상담이 필요하실 경우, 카카오톡 플러스친구 or 고객센터에 접수해주시기 바랍니다.'},{header:"이용 중인 결제 수단을 변경하고 싶습니다.",content:'현재 이용 중인 결제 수단을 변경할 수 있습니다.

▶ 변경방법
  : 관리자 초기화면 > 이용료 조회 > 결제수단 변경


변경 시 특이사항 및 문의사항이 있는 경우,
"선생님 존함/연락처" 와 함께 카카오톡 플러스친구 or 고객센터에 접수해주시기 바랍니다.'},{header:"세금계산서 발행 요청은 어떻게 하는지요?",content:'세금계산서는 매월 가상계좌로 납부하신 선생님께만 발급됩니다.

관리자 초기화면 > 이용료 조회 > 지출증빙 정보 란에 사업자 정보를 기재해주시면,
당월 사용료에 대해 “영업일 기준 매월 1일”에 자동 전산 발급해드리고 있습니다.
필수 기재사항을 빠짐없이 적어주시기 바랍니다.

(카드 자동이체로 결제하신 경우, 카드 영수증으로 활용하시기 바랍니다)'}],3:[{header:"하루 학습량 제한이 있나요?",content:'내공스터디에서는 원하는 컨텐츠를 무제한으로 직접 만들어 학습할 수 있습니다.
따라서, 일일 학습량 제한 없이 수준별 자기주도학습이 가능합니다.

단, 교재 내 유닛별 재학습은 아이디 공유를 최소화하기 위해 최대 2회 재학습 (총 3회)으로 제한됩니다.
※ 학습 완료 후, 리스닝은 무제한 학습이 가능합니다.'},{header:"음성인식 및 녹음이 잘 되지 않습니다.",content:'우선순위로 다음 사항을 확인해주시기 바랍니다.

1. 데스크톱 PC의 경우, 마이크 연결 설정이 올바른지
2. 모바일 기기의 경우, 보이스 입력 활성화 설정이 되어 있는지
3. 외부 마이크 입력 단자가 잘 연결되어 있는지


▶ PC 학생앱 자가 진단법
1) 크롬 브라우져 내 설정 클릭
2) 사이트 설정 > 마이크
3) 차단된 사이트 삭제 후, 학생앱 재실행

그럼에도 음성인식 및 녹음 오류 현상이 있다면
“이용 중인 기기 / 브라우저 정보”를 카카오톡 플러스친구 or 고객센터에 접수해주시기 바랍니다.'},{header:"학생들이 학습한 결과는 어디에서 조회할 수 있나요?",content:'▶ 관리자 성적분석 > 레포트 조회
교재별, 일차별 학습여부 조회 및 영역별 오답노트 조회

관리자 성적분석 > 개인별 종합분석
학생별, 기간별 학습결과 분석으로 성취도 및 학습량 상세 조회 가능.

☞ 기간 레포트의 오답문항은 빈출오답 (단어/문장)으로 10개 표기됩니다.
단, 영문법 컨텐츠는 오답에 표기되지 않습니다.

☞ 학습된 결과는 곧바로 출력하거나, 성적 결과를 사진 파일로 저장하여
학부모님께 안내 가능합니다.

또한, 오답 문항을 저장하여 반복 듣기/영작 학습이 가능합니다.

학습자 본인의 레포트에서 오답문장 우측 끝 아이콘을 눌러
포켓노트에 저장하여 암기 및 재미있는 영타 연습을 추천드립니다.'},{header:"강의중인 수업 자료를 직접 탑재할 수 있나요?",content:'내공스터디는 선생님께서 직접 컨텐츠를 만들어 학습하는 맞춤 학습프로그램입니다.
모든 컨텐츠는 고급 음성합성 기술을 통해 실시간 원어민 음성으로 지원됩니다.

관리자 수업준비 > 교재 만들기 란에서
 - 직접 생성 : 직접 타이핑하거나,
 - 서식 생성 : 한글 or 워드 서식에 맞춰 붙여넣기 하거나,
 - 파일 생성 : 제공되는 엑셀 양식에 통해 업로드 할 수 있습니다.'},{header:"온라인 학습을 출력하여 시험 볼 수 있을까요?",content:'모든 컨텐츠는 온라인 학습 + 워크시트 무료 지원됩니다.

관리자 수업준비 > 문제은행 출력 란에서 출력하고자 하는 교재 / 유닛을 선택하여
문항유형 (객관식, 주관식, 철자 쓰기, 뜻 쓰기)에 맞춰 출력할 수 있습니다.

추가로, 문제은행 관리를 통해서 필요 문장만 추출하여 출력도 가능하답니다.'},{header:"딕테이션 및 영작학습 간 내용 수정은 어떻게 하는지요?",content:'작성된 내용을 수정하실 때에는 솔루션 특성상 맨 끝 철자부터 순서대로 지워야합니다.
마지막에 작성된 내용부터 클릭하시어 차근차근 수정해주시기 바랍니다.'},{header:"해가 바뀌면 학년이 자동 변경될 수 있나요?",content:'내공스터디는 원활한 서비스 이용을 위해
매년 1월 1일마다, 학년 정보가 자동으로 수정됩니다.

※ 예시 내용 : 중등 3 → 고등 1, 고등 3 → 기타
      (단, 학교 정보는 수동 변경이 필요할 수 있습니다.)

서비스 이용에 감사드립니다.'}]},freeManualContent:Jt["b"],videoDialog:!1,videoSrc:null}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created:function(){},mounted(){this.origin_accordion=this.deepClone(this.accordion),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100)},watch:{},computed:{computedDateFormatted(){return this.formatDate(this.date)},getFreeManualColStyle(){return t=>{const e={0:"padding-left: 1.2rem; padding-right: 0.8rem;",1:"padding-left: 1rem; padding-right: 1rem;",2:"padding-left: 0.8rem; padding-right: 1.2rem;"};return"padding-top: 1.8rem; padding-bottom: 0; "+e[t%3]}}},methods:{changeTab(t){this.$store.dispatch("soundEffectPlay","click_button")},searchQna(t){let e=!1;if("13"==t.keyCode||"click"==t.type){this.accordion=this.deepClone(this.origin_accordion);for(let t=0,e=this.sel_accordion.length;t\&\;\"\'\/\.\=]/gi;if(i.test(this.search))return!1;let o=/[\{\}\[\]\/?.,;:|\)*~`!^\-+<>@\#$%&\=\(\'\"]/gi;if(o.test(this.search)){let e=t.match(o).length;for(let s=0;s{let o=this.accordion[s][i].header.match(new RegExp(t,"gi"));if(o){if(!e){let t=document.getElementsByClassName("qna-header-"+s);t[i]&&(t[i].scrollIntoView(),e=!0)}this.accordion[s][i].header=this.accordion[s][i].header.replace(new RegExp(t,"gi"),`${o[0]||t}`)}let n=this.accordion[s][i].content.match(new RegExp(t,"gi"));if(n){if(!e){let t=document.getElementsByClassName("qna-content-"+s);t[i]&&(t[i].scrollIntoView(),e=!0)}this.accordion[s][i].content=this.accordion[s][i].content.replace(new RegExp(t,"gi"),`${n[0]||t}`),this.sel_accordion[s].push(i)}})}}},showManualVideo(t){t&&(this.videoSrc=t,this.videoDialog=!0)}},beforeDestroy(){this.allBusDestroy()}},Xt=Qt,Kt=(s("2630"),Object(u["a"])(Xt,Wt,Yt,!1,null,null,null)),Zt=Kt.exports,te=s("a609"),ee=function(){var t=this,e=t._self._c;return e(U["a"],{key:t.top_key,staticClass:"white",attrs:{id:"errorreportvue",justify:"center"}},[e(j["a"],{staticClass:"py-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("문제 해결")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v("서비스 이용 간 "+t._s(t.subtitle)+"사항을 접수해주세요.")])])]),e("div",[e(J["a"],{staticClass:"elevation-0",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),e(W["a"],{attrs:{href:"#tab-1",ripple:!1},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changeTab(1)}}},[e("span",[t._v("오류 접수")])]),e(W["a"],{attrs:{href:"#tab-2",ripple:!1},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changeTab(2)}}},[e("span",[t._v("1대1 문의")])]),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:""+s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?e("div",{staticClass:"pt-4 mb-4 mgauto"},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"85%"}},[e(j["a"],{staticClass:"pt-0",attrs:{cols:"12"}},[e("label",[t._v("구분")]),e("br"),e(te["a"],{attrs:{mandatory:""},model:{value:t.toggle_exclusive1,callback:function(e){t.toggle_exclusive1=e},expression:"toggle_exclusive1"}},[e(L["a"],{on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 접속 오류\n ")]),e(L["a"],{staticClass:"mx-2",on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 오탈자 접수\n ")]),e(L["a"],{on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 기타 오류\n ")])],1),t.$storage.get("user").is_mobile?e(L["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.kakaoResize,expression:"kakaoResize"}],staticClass:"px-2 float-right kakao_btn",staticStyle:{background:"#fae100","border-color":"#fae100","border-radius":"0px"},attrs:{outlined:"",depressed:""},on:{click:function(e){return t.kakao()}}},[e("b",[t._v("실시간 챗봇 상담")]),e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"}},[e("path",{attrs:{fill:"currentColor",d:"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"}})])]):e(L["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.kakaoResize,expression:"kakaoResize"}],staticClass:"px-2 float-right kakao_btn",staticStyle:{background:"#fae100","border-color":"#fae100","border-radius":"0px"},attrs:{outlined:"",depressed:"",href:"https://tabstudy.channel.io/",target:"_blank"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("b",[t._v("실시간 챗봇 상담")]),e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"}},[e("path",{attrs:{fill:"currentColor",d:"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"}})])]),t.$storage.get("user").is_mobile?t._e():e(L["a"],{staticClass:"mr-2 float-right px-2 helpu_btn_1",staticStyle:{"background-color":"#0093e2",color:"white","border-radius":"0px"},attrs:{depressed:"",href:"http://helpu.kr/irontrain/",target:"_blank"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("b",[t._v("원격지원 센터")]),e("img",{staticClass:"ml-2",staticStyle:{"margin-top":"-1px"},attrs:{width:"21",height:"21",src:t.helpu_base64}})])],1)],1),e(U["a"],{key:t.tabkey1,staticClass:"mgauto",staticStyle:{width:"85%"}},[e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("이름")]),e("br"),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.error.name,callback:function(e){t.$set(t.error,"name",e)},expression:"error.name"}})],1),e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("휴대폰 번호")]),e("br"),e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:["###-###-####","###-####-####"],expression:"['###-###-####', '###-####-####']"}],attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},on:{keyup:function(e){return t.keyupPhone(e,"error")}},model:{value:t.error.phone,callback:function(e){t.$set(t.error,"phone",e)},expression:"error.phone"}})],1),e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("label",[t._v("이메일")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.error.email,callback:function(e){t.$set(t.error,"email",e)},expression:"error.email"}})],1),1==t.toggle_exclusive1?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("교재명+일차 "),e("b",{staticClass:"red--text"},[t._v("(필수)")])]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",placeholder:"ex) 중등영어2 YBM 박준언 / 18일차",color:"success"},model:{value:t.error.bookinfo,callback:function(e){t.$set(t.error,"bookinfo",e)},expression:"error.bookinfo"}})],1):t._e(),1==t.toggle_exclusive1?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("오탈자 "),e("b",{staticClass:"red--text"},[t._v("(필수)")])]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",placeholder:"ex) aple: p 누락 오류",color:"success"},model:{value:t.error.typo,callback:function(e){t.$set(t.error,"typo",e)},expression:"error.typo"}})],1):t._e(),0==t.toggle_exclusive1?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("사용환경1 기기 "),e("b",{staticClass:"red--text"},[t._v("(필수)")])]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",placeholder:"ex) 갤럭시 노트 10, 아이폰 7 플러스, 노트북",color:"success"},model:{value:t.error.device,callback:function(e){t.$set(t.error,"device",e)},expression:"error.device"}})],1):t._e(),0==t.toggle_exclusive1?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("사용환경2 OS,브라우저\n "),e("b",{staticClass:"red--text"},[t._v("(필수)")])]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",placeholder:"ex) 안드로이드 9, iOS 9.0, 크롬 브라우저",color:"success"},model:{value:t.error.osbrowser,callback:function(e){t.$set(t.error,"osbrowser",e)},expression:"error.osbrowser"}})],1):t._e(),2==t.toggle_exclusive1?e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("label",[t._v("제목")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.error.title,callback:function(e){t.$set(t.error,"title",e)},expression:"error.title"}})],1):t._e(),e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("label",[t._v("내용")]),e(wt["a"],{attrs:{outlined:"","hide-details":"","no-resize":"",color:"success"},model:{value:t.error.content,callback:function(e){t.$set(t.error,"content",e)},expression:"error.content"}})],1),e(j["a"],{staticClass:"text-center",attrs:{cols:"12"}},[e(L["a"],{staticStyle:{width:"150px"},attrs:{depressed:"",disabled:t.error.disabled,color:"success"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.sendMail()}}},[t._v("\n 접수\n ")])],1)],1)],1):2==s?e("div",{staticClass:"pt-4 mb-4 mgauto"},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"85%"}},[e(j["a"],{staticClass:"pt-0",attrs:{cols:"12"}},[e("label",[t._v("구분")]),e("br"),e(te["a"],{attrs:{mandatory:""},model:{value:t.toggle_exclusive2,callback:function(e){t.toggle_exclusive2=e},expression:"toggle_exclusive2"}},[e(L["a"],{on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 일반 문의\n ")]),e(L["a"],{staticClass:"mx-2",on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 사용료 문의\n ")]),e(L["a"],{on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 교재 요청\n ")])],1),t.$storage.get("user").is_mobile?e(L["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.kakaoResize,expression:"kakaoResize"}],staticClass:"px-2 float-right kakao_btn",staticStyle:{background:"#fae100","border-color":"#fae100","border-radius":"0px"},attrs:{outlined:"",depressed:""},on:{click:function(e){return t.kakao()}}},[e("b",[t._v("실시간 챗봇 상담")]),e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"}},[e("path",{attrs:{fill:"currentColor",d:"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"}})])]):e(L["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.kakaoResize,expression:"kakaoResize"}],staticClass:"px-2 float-right kakao_btn",staticStyle:{background:"#fae100","border-color":"#fae100","border-radius":"0px"},attrs:{outlined:"",depressed:"",href:"https://tabstudy.channel.io/",target:"_blank"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("b",[t._v("실시간 챗봇 상담")]),e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"}},[e("path",{attrs:{fill:"currentColor",d:"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"}})])]),t.$storage.get("user").is_mobile?t._e():e(L["a"],{staticClass:"mr-2 float-right px-2 helpu_btn_2",staticStyle:{"background-color":"#0093e2",color:"white","border-radius":"0px"},attrs:{depressed:"",href:"http://helpu.kr/irontrain/",target:"_blank"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("b",[t._v("원격지원 센터")]),e("img",{staticClass:"ml-2",staticStyle:{"margin-top":"-1px"},attrs:{width:"21",height:"21",src:t.helpu_base64}})])],1),e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("이름")]),e("br"),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.qna.name,callback:function(e){t.$set(t.qna,"name",e)},expression:"qna.name"}})],1),e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("휴대폰 번호")]),e("br"),e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:["###-###-####","###-####-####"],expression:"['###-###-####', '###-####-####']"}],attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},on:{keyup:function(e){return t.keyupPhone(e,"qna")}},model:{value:t.qna.phone,callback:function(e){t.$set(t.qna,"phone",e)},expression:"qna.phone"}})],1),0==t.toggle_exclusive2||1==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("label",[t._v("이메일")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.qna.email,callback:function(e){t.$set(t.qna,"email",e)},expression:"qna.email"}})],1):t._e(),2==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("제작자")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.qna.publisher,callback:function(e){t.$set(t.qna,"publisher",e)},expression:"qna.publisher"}})],1):t._e(),2==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("교재명")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.qna.bookname,callback:function(e){t.$set(t.qna,"bookname",e)},expression:"qna.bookname"}})],1):t._e(),0==t.toggle_exclusive2||1==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("label",[t._v("제목")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.qna.title,callback:function(e){t.$set(t.qna,"title",e)},expression:"qna.title"}})],1):t._e(),2==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("첫 일차 단원명")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.qna.unitname,callback:function(e){t.$set(t.qna,"unitname",e)},expression:"qna.unitname"}})],1):t._e(),2==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("이메일")]),e(X["a"],{attrs:{solo:"","single-line":"",flat:"",outlined:"","hide-details":"",color:"success"},model:{value:t.qna.email,callback:function(e){t.$set(t.qna,"email",e)},expression:"qna.email"}})],1):t._e(),0==t.toggle_exclusive2||1==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("label",[t._v("내용")]),e(wt["a"],{attrs:{outlined:"","hide-details":"","no-resize":"",color:"success"},model:{value:t.qna.content,callback:function(e){t.$set(t.qna,"content",e)},expression:"qna.content"}})],1):t._e(),2==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("사진 접수")]),e(wt["a"],{attrs:{outlined:"","hide-details":"","no-resize":"",disabled:"",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("label",{staticClass:"translate-y",staticStyle:{"font-size":"1rem"}},[t._v("\n 오픈 준비 중입니다.\n ")])]},proxy:!0}],null,!0)})],1):t._e(),2==t.toggle_exclusive2?e(j["a"],{staticClass:"py-0",attrs:{cols:"6"}},[e("label",[t._v("내용")]),e(wt["a"],{attrs:{outlined:"","hide-details":"","no-resize":"",color:"success"},model:{value:t.qna.content,callback:function(e){t.$set(t.qna,"content",e)},expression:"qna.content"}})],1):t._e(),e(j["a"],{staticClass:"text-center",attrs:{cols:"12"}},[e(L["a"],{staticStyle:{width:"150px"},attrs:{depressed:"",disabled:t.qna.disabled,color:"success"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.sendMail()}}},[t._v("\n 접수\n ")])],1)],1)],1):t._e()])})),1)],1)],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"registSuccess"},slot:"registSuccess"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("문의가 접수되었습니다.")]),e("br"),e("b",[t._v("담당자 통해 곧 연락드리겠습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left w-100",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"mobile_print"},slot:"mobile_print"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("모바일 전용 서비스 개선중으로 PC로 이용해주시기 바랍니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left w-100",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)])],1)},se=[],ae=s("97d1"),ie=s.n(ae),oe={name:"login",components:{VueCircle:ie.a,Dialogs:st["a"],preFont:et["a"]},directives:{mask:Nt["mask"]},data(){return{subtitle:"오류",tab:null,tabs:2,tabkey1:0,tabkey2:"tabkey2_0",toggle_exclusive1:0,toggle_exclusive2:0,error:{name:this.$storage.get("user").name?this.$storage.get("user").name:"",phone:this.$storage.get("user").phone?this.$storage.get("user").phone:"",email:"",bookinfo:"",typo:"",device:"",osbrowser:"",title:"",content:"",disabled:!0},qna:{name:this.$storage.get("user").name?this.$storage.get("user").name:"",phone:this.$storage.get("user").phone?this.$storage.get("user").phone:"",email:"",title:"",content:"",publisher:"",bookname:"",unitname:"",file:[],disabled:!1},to:"",move_page_status:0,top_key:0,helpu_base64:"data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAAAAC+ppL/s52J/6aQf/+ciHb/mIR0/5iEcv+XhHT/l4N0/5mFdP+XhXP/mIVz/5iFc/+ZhXP/mIRy/5iFdP+Zh3T/modz/5uHdf+ah3X/nYh3/52Jef+ginn/oIt6/6GLe/+ijXr/o416/6OOe/+kj33/qZN//6+ZhP8AAAALAAAABLylkf/KycX/v764/7m3sP+3tq3/trSr/7a1rP+3ta3/uLau/7i3r/+5t7H/ubiy/7q5sv+6ubT/u7q0/7u5tf+7urX/u7q1/7u5tf+7ubT/ure0/7q3s/+5trL/ubWx/7e0rv+3sq7/trGs/7myrf++uLH/qZR+/wAAAA8AAAAFu6aS/8fGxP/Dwr7/wb+6/769tv+9u7T/u7qy/7y7s/+9u7T/vby2/769tv++vrf/v764/7++uf++vbj/vr65/76+uf++vbn/vr25/728uP+9vLj/vLq3/7y5tv+7ubX/urez/7q2sv+4tbD/t7Ou/7izrv+ijnz/AAAAEgAAAAa+p5P/ycnI/8fGxP/ExMD/wsG8/8C/uP+/vrj/v7+4/8C/uf/Av7n/wcC6/8HAu//Cwbz/wsC8/8LBvf/Cwb3/wcC8/8C/vP/Av7v/wL+7/769uv++vLn/vbu4/7y7t/+7ubX/u7i0/7q2sv+4tbH/ubWw/6OOfv8AAAATAAAABr+ql//MzMz/ysrJ/8jHxf/FxcL/w8K+/8PCvf/FxL//yMfD/8nJxP/JyMT/xsXB/8TDv//Dwr7/w8O//8PCv//Dwr//w8LA/8XEwP/HxsP/ycjF/8fFw//Ew8D/wb+8/727uP+8urb/u7i1/7q3s/+7t7P/o5B9/wAAABQAAAAHwKqX/9HR0f/Pz8//zc3N/8rJyf/Ix8b/ycnH/97e3f/19fT///////f39//j4uH/ysnH/8fGxP/GxcP/xcTC/8XEwv/HxsT/y8vJ/+3t7P///////////+zs6//HxsP/wcG//768uv++u7j/vLq2/7y5tf+jj33/AAAAFgAAAAfArJn/1NTU/9LS0v/Q0ND/zc3N/8vLyv/Q0M7/9vX1/8yCTv+6Vg//yXlB//r07//U1NL/ycnH/8fHxP/HxsT/xsbE/8rKyP/q6un/5L2i/71cF/+9XRn/7dTC/+Pi4f/FxMH/wL+8/8C+u/++vbr/vry5/6GOfv8AAAAXAAAACMGunP/U1NT/0tLS/9DQ0P/Ozs7/zMzL/+Pj4v/oxq3/uVQM/7pVDf+6Vg//37GQ/+np6f/Ly8r/x8fF/8fHxP/HxsT/zs7M//39/f/AZiX/vFsW/71dGP/KfUf/9/f3/8jHxv/BwL3/wL+8/8C+vP/Avrr/oI59/wAAABcAAAAIwq+c/9XV1f/U1NT/0tLS/8/Pz//Ozs7/6Ojn/+O6nf+5Uwr/uVQM/7pVDf/Wmm//8fHw/83Ny//IyMb/yMjF/8jIxf/Y19X/9unf/7xZE/+8WxX/vVwX/8ZzN//7+vr/zMvJ/8PCv//Dwb7/wsC9/8G/vP+fjXz/AAAAGAAAAAjDsaD/1dXV/9TU1P/S0tL/0NDQ/87Ozv/p6ej/47mc/7lRCf+7Uwr/u1ML/9eZbv/x8fH/zc3M/8jIxv/IyMb/yMjF/9nZ1//26d//u1gS/7xZE/+8WxX/xnI2//v7+//Ozcv/xcTB/8PCv//Cwb7/wsG9/5+Nff8AAAAZAAAACMOzof/W1tb/1NTU/9LS0v/Q0ND/0M/P/+np6P/kuZv/vFEH/75TCf++VAn/2Zlt//Hx8f/Ozsz/yMjG/8fHxf/Jycf/2dnW//bo3/+7VxH/u1kS/7xaFP/FcTT/+/v7/87OzP/GxcL/xMTA/8PCv//Ewr//no1+/wAAABkAAAAJw7Kk/9bW1v/V1dX/09PT/9HR0f/R0M//6eno/+W5m//AUgX/w1QH/8RVCf/cmmv/9PTz/9fX1f/R0c//0dHP/9HR0P/g4N7/9ujf/7pWD/+7VxH/u1kS/8VwM//7+/v/z8/N/8fGw//GxcL/xMO//8TDv/+ejH3/AAAAGgAAAAnHtKX/19fX/9bW1v/U1NT/0tLS/9LS0f/q6un/6L2f/8ZWCf/GVAX/yFYH/96aa//////////////////////////////////26N//u1UN/7pWD/+7VxH/xG8y//v7+//R0M7/yMfE/8fGw//GxcL/xMO//52Nff8AAAAaAAAACca0pv/X19f/1tbW/9XV1f/T09P/09PS/+rq6f/rwaT/zWIX/81cDf/NVwT/zVgF/85ZB//MWAf/ylgI/8hXCP/FVgn/w1UJ/79UCf+9VAv/ulQM/7pWD//EbTH/+/v7/9HQzv/Ix8T/x8bD/8bFwv/GxcH/nY19/wAAABsAAAAJxrap/9jY2P/X19f/1tbW/9XV1f/U1NP/6+vr/+7Gqv/Vbib/1Wof/9VlFv/UYA7/01wJ/9BZBf/OWAX/zFcF/8hVBv/FVAb/w1QH/79TCP+8VAr/uVQM/8NsLv/7+/v/0tHP/8nIxf/Ix8P/xcXA/8bGwf+ejX3/AAAAGwAAAAnHuav/2dnZ/9jY2P/X19f/1dXV/9TU1P/r6+v/8cux/9x7N//cdzH/23Eo/9psIP/ZaRz/2GcZ/9ZkFf/SYRH/z14O/8pZC//EVAb/wFIF/71RB/+7Ugn/wmos//v7+//T09D/ycjE/8jHw//HxsH/x8bB/56Mff8AAAAbAAAACci6rf/Z2dn/2NjY/9fX1//V1dX/1dXV/+vr6//yz7f/4IVH/+GCQP/hfTj/4Xkx/992LP/ecyj/2m8l/9htI//Vah//0WYc/8thF//FWQ7/vlEF/7tRB//BaCr/+/v7/9PT0f/KycX/ycjD/8fHwv/Gxb//no1+/wAAABsAAAAJyLqv/9ra2v/a2tr/2tra/9fX1//X19b/7Ozr//TSu//ljlL/5YtM/+SGRP/utIv/////////////////////////////////+evi/8pjG//CWA7/u1AF/8JnKP/8/Pv/1NTR/8vKxv/JyMT/x8bB/8bGv/+ejX//AAAAHAAAAAnJvLH/3Nzc/9zc3P/b29v/2NjY/9jY1//s7Oz/9dW+/+eUWv/mkFT/5YtN/++3kP/39/b/4ODe/9zc2f/c3Nn/3dza/+jn5v/57OP/zWkk/8dgGP++Uwn/wmYm//z8+//V1dP/zMzI/8nJxP/IyML/x8XA/56Ogf8AAAAcAAAACcu+sv/d3d3/3Nzc/9zc3P/a2tr/2tra/+7t7P/118H/6Jlh/+eVW//mkFT/77qV//X19f/b29n/1tbU/9bW0//X19T/4uLg//rt5P/QcC3/ymYh/8FaEv/CZib//Pz7/9fW0//MzMf/ysrF/8jHwf/Hxr//no6B/wAAABwAAAAJy7+z/97e3v/e3t7/3Nzc/9ra2v/Z2dn/7e3t//bYw//pnWf/6Jli/+eUWv/wvJj/9fX0/9vb2v/X19X/19fV/9fX1f/i4uD/+u7l/9J2Nf/Mayj/xGAb/8VsLv/8/Pv/1tbT/87Oyf/Ly8X/ycfC/8jGv/+ekIL/AAAAHAAAAAnNwLX/3t7e/97e3v/e3t7/29vb/9ra2v/q6ur/+ODP/+qgbf/pnWj/6Jlh//TOsv/w8PD/29va/9jY1//X19X/19fV/93d2///////1Hs9/85xMf/FZiP/y3xF//n5+f/W1tP/zs3J/8zLxv/KycL/yMe//5+Qg/8AAAAcAAAACczBt//f39//39/f/97e3v/c3Nz/29vb/93d3P/4+Pj/8LyY/+qgbP/tsIX//PHq/+Tk4//a2tn/2dnY/9nZ2P/Y2Nf/29va//Pz8//rwqf/znU3/8dqKf/u1cP/6+vq/9TU0f/Pzsr/zMvF/8nJwv/Ix7//n5GF/wAAABwAAAAJzcO6/+Hh4f/h4eH/4uLi/+Dg4P/d3d3/39/f/+vr6//5+fn///////v7+//u7u7/4ODg/97e3v/d3d3/3d3d/9zc3P/c3Nz/4uLi//T08/////////////Pz8//b29v/1tbV/9HQzf/Ozcn/y8rE/8nIwP+fkob/AAAAHAAAAAnNxLz/5OTk/+Xl5f/m5ub/5OTk/+Pj4//i4uL/5OTk/+bm5v/m5ub/5ubm/+Xl5f/k5OT/4+Pj/+Li4v/i4uL/4eHh/+Hh4f/h4eH/4+Pj/+Li4v/i4uL/39/f/93d3f/b29v/1tbV/9PS0P/Pzsr/y8rE/6CShv8AAAAcAAAACc3FvP/n5+f/6Ojo/+jo6P/o6Oj/5ubm/+Xl5f/l5eX/5ubm/+fn5//n5+f/5+fn/+fn5//n5+f/5ubm/+bm5v/l5eX/5eXl/+Tk5P/k5OT/4+Pj/+Li4v/i4uL/4eHh/+Dg4P/b29v/19fX/9PT0P/Ozsr/ppiM/wAAABkAAAAI0Ma//+fn5//q6ur/6urq/+rq6v/p6en/6Ojo/+jo6P/o6Oj/6enp/+np6f/q6ur/6urq/+np6f/p6en/6Ojo/+jo6P/n5+f/5+fn/+fn5//m5ub/5eXl/+Tk5P/k5OT/4+Pj/+Dg4P/b29v/19fX/9LSz/+wopb/AAAAEwAAAAbSysL/6urq/+vr6//r6+v/6+vr/+rq6v/p6en/6enp/+np6f/q6ur/6urq/+rq6v/q6ur/6urq/+rq6v/q6ur/6urq/+np6f/p6en/6Ojo/+fn5//n5+f/5+fn/+bm5v/l5eX/4uLi/9/f3//b29v/19fX/7+wo/8AAAAJAAAAA9TLxP/Sy8P/0MjA/87Hv//Nxr7/zca+/83Fvf/Nxb7/zcW9/87EvP/NxLz/zcS8/83Duv/Nw7r/zcO5/83Cuf/Nwrf/zMG3/8zBt//LwLX/yr+0/8q+s//KvrP/yr2y/8q8sf/Ju7D/ybuv/8i6rv/Juq3/ybuu/wAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8=",phone_cases:["010","011","016","017","019"]}},created:function(){},mounted(){},watch:{toggle_exclusive1(t){let e=Object.keys(this.error);for(let s=0,a=e.length;s{s()},100)):s(),!1;{let e=(this.error.email?1:0)+(this.error.bookinfo?1:0)+(this.error.typo?1:0)+(this.error.device?1:0)+(this.error.osbrowser?1:0)+(this.error.title?1:0)+(this.error.content?1:0);if(""!=e||0!=e)return this.$store.state.editing_status=!0,this.openDialog("move_page"),!1;if(e=(this.qna.email?1:0)+(this.qna.title?1:0)+(this.qna.content?1:0)+(this.qna.publisher?1:0)+(this.qna.bookname?1:0)+(this.qna.unitname?1:0),""!=e||0!=e)return this.$store.state.editing_status=!0,this.openDialog("move_page"),!1;"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},methods:{movePage(){this.move_page_status=1,this.$router.push({name:this.to})},changeTab(t){1==t?this.subtitle="오류":2==t&&(this.subtitle="문의")},keyupPhone(t,e){const s=t.target.value;return 1==s.length&&"0"!==s||"0"!==s.charAt(0)||s.length>2&&!this.phone_cases.includes(s.substring(0,3))?(this[e].phone="",!1):void 0},kakao(){this.$store.state.is_mobile&&this.openDialog("mobile_print")},sendMail(){let t="";"tab-1"==this.tab?(t={type:1,subtype:this.toggle_exclusive1,name:this.error.name,phone:this.removeHyphen(this.error.phone),email:this.error.email,content:this.error.content},0==this.toggle_exclusive1?(t.device=this.error.device,t.osbrowser=this.error.osbrowser):1==this.toggle_exclusive1?(t.bookinfo=this.error.bookinfo,t.typo=this.error.typo):2==this.toggle_exclusive1&&(t.title=this.error.title)):"tab-2"==this.tab&&(t={type:2,subtype:this.toggle_exclusive2,name:this.qna.name,phone:this.removeHyphen(this.qna.phone),email:this.qna.email,content:this.qna.content},0==this.toggle_exclusive2||1==this.toggle_exclusive2?t.title=this.qna.title:2==this.toggle_exclusive2&&(t.publisher=this.qna.publisher,t.bookname=this.qna.bookname,t.unitname=this.qna.unitname)),this.$axios.post(`${this.$host}/academy/${this.$cid}/senderrmail`,t).then(t=>{t.data.result&&(this.openDialog("registSuccess",!1,"end"),this.subtitle="오류",this.tab=null,this.tabs=2,this.tabkey1=0,this.tabkey2="tabkey2_0",this.toggle_exclusive1=0,this.toggle_exclusive2=0,this.error.name=this.$storage.get("user").name?this.$storage.get("user").name:"",this.error.phone=this.$storage.get("user").phone?this.$storage.get("user").phone:"",this.error.email="",this.error.bookinfo="",this.error.typo="",this.error.device="",this.error.osbrowser="",this.error.title="",this.error.content="",this.error.disabled=!0,this.qna.name=this.$storage.get("user").name?this.$storage.get("user").name:"",this.qna.phone=this.$storage.get("user").phone?this.$storage.get("user").phone:"",this.qna.email="",this.qna.title="",this.qna.content="",this.qna.publisher="",this.qna.bookname="",this.qna.unitname="",this.qna.file=[],this.qna.disabled=!1,this.to="",this.move_page_status=0)}).catch(t=>{console.log(t)})},kakaoResize(){if("tab-1"==this.tab){let t=document.getElementsByClassName("helpu_btn_1")[0].getBoundingClientRect().width;document.getElementsByClassName("kakao_btn")[0].style.width=t+20+"px",document.getElementsByClassName("helpu_btn_1")[0].style.width=t+20+"px"}else if("tab-2"==this.tab){let t=document.getElementsByClassName("helpu_btn_2")[0].getBoundingClientRect().width;document.getElementsByClassName("kakao_btn")[1].style.width=t+20+"px",document.getElementsByClassName("helpu_btn_2")[0].style.width=t+20+"px"}}},beforeDestroy(){this.allBusDestroy()}},ne=oe,le=(s("267f"),Object(u["a"])(ne,ee,se,!1,null,null,null)),re=le.exports,ce=s("ac7c"),de=s("3a2f"),he=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"paymentviewvue",justify:"center"}},[e(j["a"],{staticClass:"py-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("이용료 조회")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v(t._s(t.subtitle))])]),"tab-1"==t.tab?e(L["a"],{staticClass:"float-right",attrs:{id:"student_cnt_btn",rounded:"",depressed:"",color:"lightgrey"}},[t._v("\n "+t._s(2==t.toggle_exclusive1?"현재":"정산")+" 사용 학생 수\n "),e("b",{staticClass:"ml-1 success--text"},[t._v(t._s(t.usage.use_cnt)+"명")])]):t._e(),e("div",{staticStyle:{clear:"both"}})],1),e("div",[e(J["a"],{staticClass:"elevation-0",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),t._l(t.tabs,(function(s){return e(W["a"],{key:"tabs-"+s,attrs:{href:"#tab-"+s,ripple:!1},on:{click:function(e){return t.changeTab(s)}}},[e("span",[1==s?[t._v("사용량 조회")]:2==s?[t._v("이용료 납부")]:3==s?[t._v("지출증빙 정보")]:t._e()],2)])})),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:"tabkey-"+s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?e("div",[e(U["a"],{staticClass:"w-100 mgauto mt-2"},[e(j["a"],{staticClass:"pt-0 pl-0 pb-2",attrs:{cols:"4"}},[e(X["a"],{staticClass:"c-search-input",staticStyle:{"border-radius":"50px"},attrs:{"hide-details":"",outlined:"",flat:"",solo:"",dense:"",placeholder:"이름, 아이디 검색","append-icon":"mdi-magnify",color:"success","background-color":"grey lighten-3"},on:{keydown:t.searchKeyword,"click:append":function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.searchIconClick()}},model:{value:t.usage.search,callback:function(e){t.$set(t.usage,"search",e)},expression:"usage.search"}})],1),e(j["a"],{staticClass:"pt-0 pr-0 pb-2",attrs:{cols:"8"}},[e(te["a"],{staticClass:"default-style float-right",attrs:{mandatory:""},model:{value:t.toggle_exclusive1,callback:function(e){t.toggle_exclusive1=e},expression:"toggle_exclusive1"}},[e(L["a"],{attrs:{"active-class":"success"}},[t._v(" 두달 전 ")]),e(L["a"],{attrs:{"active-class":"success"}},[t._v(" 지난달 ")]),e(L["a"],{attrs:{"active-class":"success"}},[t._v(" 이번달 ")])],1),e(X["a"],{staticClass:"float-right mr-1 grey--text",staticStyle:{"border-radius":"0px",width:"105px"},attrs:{solo:"",dense:"","single-line":"",flat:"",outlined:"",disabled:"","hide-details":""},model:{value:t.usage.e_date,callback:function(e){t.$set(t.usage,"e_date",e)},expression:"usage.e_date"}}),e("b",{staticClass:"mt-2 mx-1 float-right grey--text"},[t._v(" ~ ")]),e(X["a"],{staticClass:"float-right grey--text",staticStyle:{"border-radius":"0px",width:"105px"},attrs:{solo:"",dense:"","single-line":"",flat:"",outlined:"",disabled:"","hide-details":""},model:{value:t.usage.s_date,callback:function(e){t.$set(t.usage,"s_date",e)},expression:"usage.s_date"}}),e("div",{staticStyle:{clear:"both"}})],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{key:t.key.usage_datatable,staticClass:"w-100",attrs:{headers:t.usage.headers,items:t.usage.items,"item-key":t.usage.item_key,"no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"조회 가능한 레포트가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,options:t.usage_options,"server-items-length":t.usage.items_length,page:t.usage.page,"items-per-page":t.usage.items_per_page,"sort-by":t.usage.sortby,"sort-desc":t.usage.sortdesc},on:{"update:options":function(e){t.usage_options=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a,type:"usage"},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.usage_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.usage_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.class_name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.class_name)+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.name)+"\n ")]),-1!=s.loginid.indexOf("@@@del")?e("span",{staticClass:"red--text"},[t._v("\n (삭제)\n ")]):t._e()]}},{key:"item.loginid",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(-1==s.loginid.indexOf("@@@del")?s.loginid:s.loginid.replace("@@@del",""))+"\n ")]),-1!=s.loginid.indexOf("@@@del")?e("span",{staticClass:"red--text"},[t._v("\n (삭제)\n ")]):t._e()]}},{key:"item.rate",fn:function({item:s}){return[s.rate.study_cnt>0?e("span",{staticClass:"text-usn"},[e("b",{staticClass:"success--text text-usn"},[t._v("학습")]),t._v(" :\n "+t._s(s.rate.study_cnt)+"개\n ")]):t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:s.rate.study_cnt>0&&s.rate.test_cnt>0,expression:"\n item.rate.study_cnt > 0 && item.rate.test_cnt > 0\n "}],staticClass:"text-usn"},[t._v("\n /\n ")]),s.rate.test_cnt>0?e("span",{staticClass:"text-usn"},[e("b",{staticClass:"info2--text text-usn"},[t._v("시험")]),t._v(" :\n "+t._s(s.rate.test_cnt)+"개\n ")]):t._e(),s.rate.exam_cnt>0?e("span",{staticClass:"text-usn"},[e("b",{staticClass:"info--text text-usn"},[t._v("진단")]),t._v(" :\n "+t._s(s.rate.exam_cnt)+"개\n ")]):t._e()]}},{key:"item.status",fn:function({item:s}){return[e("b",{staticClass:"text-usn",class:1==s.status?"red--text":"grey--text"},[t._v("\n "+t._s(1==s.status?"사용":"미사용")+"\n ")])]}}],null,!0)})],1),new Date(t.usage.s_date)>=new Date("2022-02-01")?e("pre-cautions",{attrs:{type:s,data:t.$data,componentKey:t.caution_key}}):t._e()],1):2==s?e("div",{staticClass:"w-100 mgauto mt-2"},[e(U["a"],[e(j["a"],{staticClass:"pt-0 pb-2",attrs:{cols:"12"}},[e(te["a"],{staticClass:"default-style float-right h-100",attrs:{mandatory:""},model:{value:t.toggle_exclusive2,callback:function(e){t.toggle_exclusive2=e},expression:"toggle_exclusive2"}},[e(L["a"],{attrs:{"active-class":"success"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 2년 전\n ")]),e(L["a"],{attrs:{"active-class":"success"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 작년\n ")]),e(L["a"],{attrs:{"active-class":"success"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n 올해\n ")])],1),e(X["a"],{staticClass:"float-right mr-1 c-date-picker",attrs:{solo:"",dense:"","single-line":"",flat:"",outlined:"",disabled:"","hide-details":""},model:{value:t.payment.e_date,callback:function(e){t.$set(t.payment,"e_date",e)},expression:"payment.e_date"}}),e("b",{staticClass:"mt-2 mx-1 float-right grey--text"},[t._v(" ~ ")]),e(X["a"],{staticClass:"float-right c-date-picker",attrs:{solo:"",dense:"","single-line":"",flat:"",outlined:"",disabled:"","hide-details":""},model:{value:t.payment.s_date,callback:function(e){t.$set(t.payment,"s_date",e)},expression:"payment.s_date"}}),e("div",{staticStyle:{clear:"both"}})],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{key:t.key.payment_datatable,staticClass:"w-100",attrs:{headers:t.payment.headers,items:t.payment.items,"item-key":t.usage.item_key,"footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"no-data-text":"이용료 납부 내역이 없습니다.","no-results-text":"이용료 납부 내역이 없습니다.","mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,options:t.payment_options,"server-items-length":t.payment.items_length,page:t.payment.page,"items-per-page":t.payment.items_per_page,"sort-by":t.payment.sortby,"sort-desc":t.payment.sortdesc},on:{"update:options":function(e){t.payment_options=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a,type:"payment"},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.payment_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.payment_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.year",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.year)+"년 ")])]}},{key:"item.month",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.month)+"월 ")])]}},{key:"item.rate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s("-"==s.rate?"-":s.rate+"명")+"\n ")])]}},{key:"item.cost",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(Number(s.cost).toLocaleString())+"원\n ")])]}},{key:"item.payment",fn:function({item:s}){return[s.paymentdate?[e("span",{staticClass:"text-usn red--text"},[t._v("\n "+t._s(Number(s.payment).toLocaleString())+"원\n ")])]:[e("span",{staticClass:"text-usn"},[t._v(" 미납 ")])]]}},{key:"item.paymentdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.paymentdate)+"\n ")])]}},{key:"item.paymentkind",fn:function({item:s}){return[e("div",{staticClass:"text-usn text-center",class:0==s.cost?"grey--text":""},[s.paymentdate?[0==s.cost?[t._v(" - ")]:"CARD"==s.paymentkind||"KEYIN"==s.paymentkind?[t._v("\n 카드결제\n ")]:"VAC"==s.paymentkind?[t._v("\n 가상계좌\n ")]:"NAC"==s.paymentkind?[t._v("\n 전용계좌\n ")]:t._e()]:t._e()],2)]}},{key:"item.tax",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},["CARD"==s.paymentkind||"KEYIN"==s.paymentkind?[0==s.cost&&0==s.payment?e("span",{staticClass:"grey--text"},[t._v("\n -\n ")]):s.cost&&!s.payment?e("span"):e(L["a"],{staticClass:"info--text",staticStyle:{"background-color":"#dcf8fc"},attrs:{depressed:""},on:{click:function(e){return t.taxEvent(s.paymentkind)}}},[t._v("\n 조회\n ")])]:["1"==s.tax&&s.mgtkey?[t.$storage.get("user").is_mobile?e(L["a"],{staticClass:"info--text",staticStyle:{"background-color":"#dcf8fc"},attrs:{depressed:""},on:{click:function(e){return t.taxEvent(s.paymentkind)}}},[t._v("\n 조회\n ")]):e(L["a"],{staticClass:"info--text",staticStyle:{"background-color":"#dcf8fc"},attrs:{depressed:"",href:s.mgtkey,target:"_blank"}},[t._v("\n 조회\n ")])]:[0==s.cost&&0==s.payment?e("span",{staticClass:"grey--text"},[t._v("\n -\n ")]):s.cost&&!s.payment?e("span",{staticClass:"grey--text"}):e("span",{staticClass:"grey--text"},[t._v(" 발행 전 ")])]]],2)]}}],null,!0)})],1),e("pre-cautions",{attrs:{type:s,data:t.$data,componentKey:t.caution_key}})],1):3==s?e("div",{staticClass:"w-100 mgauto mt-2"},[e(U["a"],{staticClass:"mgauto w-100"},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"12",sm:"12",md:"10",lg:"8","offset-md":"1","offset-lg":"2"}},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pos-rel",attrs:{cols:"6"}},[e(lt["a"],{staticClass:"mt-0 d-inline-block",attrs:{mandatory:!1,"hide-details":""},model:{value:t.radios,callback:function(e){t.radios=e},expression:"radios"}},[e(nt["a"],{attrs:{value:"tax",color:"success"},on:{click:function(e){return e.stopPropagation(),t.radioClick("tax")}}})],1),e("span",{staticClass:"pos-abs translate-y cursor",staticStyle:{"font-size":"1rem"},on:{click:function(e){return e.stopPropagation(),t.radioClick("tax")}}},[t._v("\n 세금 계산서\n ")])],1),e(j["a"],{staticClass:"pos-rel",attrs:{cols:"6"}},[e(lt["a"],{staticClass:"mt-0 d-inline-block",attrs:{mandatory:!1,"hide-details":""},model:{value:t.radios,callback:function(e){t.radios=e},expression:"radios"}},[e(nt["a"],{attrs:{value:"cash",color:"success"},on:{click:function(e){return e.stopPropagation(),t.radioClick("cash")}}})],1),e("span",{staticClass:"pos-abs translate-y cursor",staticStyle:{"font-size":"1rem"},on:{click:function(e){return e.stopPropagation(),t.radioClick("cash")}}},[t._v("\n 현금 영수증\n ")])],1)],1)],1)],1),t.radios&&"tax"!=t.radios?e("section",[e(U["a"],{staticClass:"mgauto w-100"},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"12",sm:"12",md:"10",lg:"8","offset-md":"1","offset-lg":"2"}},[e("div",{staticClass:"pa-3 pb-0"},[e("label",[t._v("거래 구분")]),e(X["a"],{staticClass:"select_field c-form-input cursor my-0 pb-0",staticStyle:{margin:"5px 0 10px 0"},attrs:{id:"division",name:"division",type:"text",outlined:"",dense:"",required:"","hide-details":"",readonly:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},on:{click:function(e){return t.openDialog("select_division")}},model:{value:t.proof.cash.division,callback:function(e){t.$set(t.proof.cash,"division",e)},expression:"proof.cash.division"}}),e("span",{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.brnmsgResize,expression:"brnmsgResize"}],staticStyle:{"font-size":"0.9rem"},attrs:{id:"brn_msg"}},[t._v("\n  \n ")])],1),e("div",{staticClass:"pa-3 input_div"},[e("label",[t._v("대표자")]),e(X["a"],{staticClass:"mb-0",attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.cash.president,callback:function(e){t.$set(t.proof.cash,"president",e)},expression:"proof.cash.president"}})],1),e("div",{staticClass:"pa-3 input_div"},[e("label",[t._v("이메일")]),e(X["a"],{staticClass:"mb-0",attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.cash.email,callback:function(e){t.$set(t.proof.cash,"email",e)},expression:"proof.cash.email"}})],1),e("div",{staticClass:"pa-3 input_div"},[e("label",[t._v("휴대폰 번호")]),e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:t.proof.cash.phone_mask,expression:"proof.cash.phone_mask"}],staticClass:"mb-0",attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},on:{keyup:function(e){return t.keyupPhone(e)}},model:{value:t.proof.cash.phone,callback:function(e){t.$set(t.proof.cash,"phone",e)},expression:"proof.cash.phone"}})],1)])],1)],1):e("section",[e(U["a"],{staticClass:"mgauto w-100"},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"12",sm:"12",md:"10",lg:"8","offset-md":"1","offset-lg":"2"}},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pb-0",attrs:{cols:"6"}},[e("label",[t._v("사업자 등록 번호 ")]),"tax"==t.radios?e(X["a"],{attrs:{"v-mask":"###-##-#####",solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},on:{focus:function(e){return t.taxBrn("focus")},blur:function(e){return t.taxBrn("blur")}},model:{value:t.proof.tax.brn,callback:function(e){t.$set(t.proof.tax,"brn",e)},expression:"proof.tax.brn"}}):e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled}}),e("span",{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.brnmsgResize,expression:"brnmsgResize"}],staticClass:"red--text",staticStyle:{"font-size":"0.9rem",display:"none"},attrs:{id:"brn_msg"}},[t._v("\n 사업자 등록번호는 올바른 정보로 입력해야 합니다.\n ")])],1),e(j["a"],{staticClass:"pb-0",attrs:{cols:"6"}},[e("label",[t._v("상호명")]),"tax"==t.radios?e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.tax.cname,callback:function(e){t.$set(t.proof.tax,"cname",e)},expression:"proof.tax.cname"}}):e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled}})],1)],1)],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12",sm:"12",md:"10",lg:"8","offset-md":"1","offset-lg":"2"}},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"input_div",attrs:{cols:"6"}},[e("label",[t._v("대표자")]),"tax"==t.radios?e(X["a"],{staticClass:"mb-0",attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.tax.president,callback:function(e){t.$set(t.proof.tax,"president",e)},expression:"proof.tax.president"}}):e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled}})],1),e(j["a"],{staticClass:"input_div",attrs:{cols:"6"}},[e("label",[t._v("이메일")]),"tax"==t.radios?e(X["a"],{staticClass:"mb-0",attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.tax.email,callback:function(e){t.$set(t.proof.tax,"email",e)},expression:"proof.tax.email"}}):e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled}})],1)],1)],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12",sm:"12",md:"10",lg:"8","offset-md":"1","offset-lg":"2"}},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"input_div",attrs:{cols:"6"}},[e("label",[t._v("업태")]),"tax"==t.radios?e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.tax.condition,callback:function(e){t.$set(t.proof.tax,"condition",e)},expression:"proof.tax.condition"}}):e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled}})],1),e(j["a"],{staticClass:"input_div",attrs:{cols:"6"}},[e("label",[t._v("종목")]),"tax"==t.radios?e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.tax.item,callback:function(e){t.$set(t.proof.tax,"item",e)},expression:"proof.tax.item"}}):e(X["a"],{attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled}})],1)],1)],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12",sm:"12",md:"10",lg:"8","offset-md":"1","offset-lg":"2"}},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"input_div",attrs:{cols:"12"}},[e("label",[t._v("사업장 주소")]),e("br"),"tax"==t.radios?e(X["a"],{staticClass:"float-left mr-2",staticStyle:{width:"60%"},attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",disabled:"",color:"success","background-color":"#f3f3f3"},model:{value:t.proof.tax.address,callback:function(e){t.$set(t.proof.tax,"address",e)},expression:"proof.tax.address"}}):e(X["a"],{staticClass:"float-left mr-2",staticStyle:{width:"60%"},attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",disabled:"",color:"success","background-color":t.disabled?"#f3f3f3":""}}),"tax"==t.radios?e(X["a"],{staticClass:"float-left mr-2",staticStyle:{width:"20%"},attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",disabled:"",color:"success","background-color":"#f3f3f3"},model:{value:t.proof.tax.postcode,callback:function(e){t.$set(t.proof.tax,"postcode",e)},expression:"proof.tax.postcode"}}):e(X["a"],{staticClass:"float-left mr-2",staticStyle:{width:"20%"},attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",disabled:"",color:"success","background-color":t.disabled?"#f3f3f3":""}}),e(L["a"],{staticClass:"float-left",staticStyle:{width:"calc(20% - 16px)",border:"thin solid"},attrs:{depressed:"",outlined:"",color:"success",disabled:t.disabled},on:{click:t.openPostCode}},[t._v("\n 우편번호 검색\n ")]),e("div",{staticStyle:{clear:"both"}}),e("div",{staticStyle:{display:"none",border:"thin solid",width:"500px",height:"300px",position:"relative",margin:"8px auto"},attrs:{id:"wrap"}},[e("img",{staticStyle:{cursor:"pointer",position:"absolute",right:"0px",top:"-1px","z-index":"1"},attrs:{src:"//t1.daumcdn.net/postcode/resource/images/close.png",id:"btnFoldWrap"},on:{click:t.closePostCode}})]),"tax"==t.radios?e(X["a"],{ref:"detailaddress",refInFor:!0,staticClass:"mt-1",attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled},model:{value:t.proof.tax.detailaddress,callback:function(e){t.$set(t.proof.tax,"detailaddress",e)},expression:"proof.tax.detailaddress"}}):e(X["a"],{staticClass:"mt-1",attrs:{solo:"","single-line":"",dense:"","hide-details":"",flat:"",outlined:"",color:"success","background-color":t.disabled?"#f3f3f3":"",disabled:t.disabled}})],1)],1)],1)],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"text-center"},[e(L["a"],{staticClass:"mr-4 mt-2",staticStyle:{width:"150px"},attrs:{disabled:t.btn_disabled,depressed:"",color:"success"},on:{click:t.confirmBill}},[t._v("\n 등록\n ")])],1)],1),new Date(t.usage.s_date)>=new Date("2022-02-01")?e("pre-cautions",{attrs:{type:s,data:t.$data,componentKey:t.caution_key}}):t._e()],1):t._e()])})),1)],2)],1)],1)],1),e("Dialogs",[t._l(["success_card_cancel","fail_card_cancel","fail_kind_change"],(function(s,a){return e("div",{key:"one-dialog-"+a,attrs:{slot:s},slot:s},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",["success_card_cancel"==s?[t._v("\n 자동결제가 해지되었습니다.\n ")]:"fail_card_cancel"==s?[t._v("\n 자동결제 해지에 실패했습니다.\n ")]:"fail_kind_change"==s?[t._v("\n 결제수단 변경에 실패했습니다.\n ")]:t._e()],2)])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left w-100",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)})),e("div",{attrs:{slot:"card_cancel"},slot:"card_cancel"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("자동결제를 정말 해지하시겠습니까?")])]),e("div",{staticClass:"w-100 my-3",staticStyle:{"border-top":"1px solid #edeeef"}}),e("div",{staticClass:"pa-3 mb-3 mgauto",staticStyle:{"border-radius":"4px",background:"#f5f5f5",width:"75%"}},[e("div",{staticClass:"float-left text-right pr-3",staticStyle:{width:"50%"}},[e("span",{staticClass:"grey--text",staticStyle:{"font-size":"1rem"}},[t._v("\n 결제 잔여 기간\n ")])]),e("div",{staticClass:"float-left text-left pl-3",staticStyle:{width:"50%"}},[e("b",{staticClass:"black--text",staticStyle:{"font-size":"1rem"}},[t._v("\n ~ "+t._s(t.t_year)+". "+t._s(t.t_month<10?"0"+t.t_month:t.t_month)+".\n "+t._s(t.t_lastday)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("h3",[t._v("\n 지금 해지하시면,\n "),e("span",{staticClass:"success--text"},[t._v("다음 결제일 "+t._s(+t.t_month+1>12?+t.t_year+1:t.t_year)+".\n "+t._s(+t.t_month+1<13?+t.t_month+1<10?"0"+(+t.t_month+1):+t.t_month+1:"01")+". 01일")]),t._v("에"),e("br"),t._v("\n 전용 가상계좌로 청구될 예정입니다.\n ")])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"dialog-twobtn right ml-0",attrs:{"x-large":"",text:""},on:{click:function(e){return t.cardCancel()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("해지")])])])],1)],1),e("div",{attrs:{slot:"kind_change"},slot:"kind_change"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("결제수단 변경")])]),e("div",{staticClass:"w-100 my-3",staticStyle:{"border-top":"1px solid #edeeef"}}),[e(lt["a"],{staticClass:"px-4",attrs:{"hide-details":""},model:{value:t.kind_change_radios,callback:function(e){t.kind_change_radios=e},expression:"kind_change_radios"}},[e("div",{staticClass:"pos-rel"},[e(nt["a"],{key:"1",staticClass:"mx-2 mb-0",attrs:{label:"",value:"VAC",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"ml-2 black--text"},[t._v("가상계좌")])]},proxy:!0}])}),"VAC"==t.kind_change_radios?e("div",{staticClass:"grey--text",staticStyle:{width:"calc(100% - 46px)","margin-left":"46px"}},[e("span",[t._v("기업은행 "+t._s(t.payment.account))]),e("br"),e("span",[t._v(t._s(t.payment.accountnm))])]):t._e(),e("div",{staticClass:"pos-abs translate-y",staticStyle:{right:"0"}},["VAC"==t.kind_change_radios?e(q["a"],{staticStyle:{color:"#d3d3d3"},attrs:{"x-large":""}},[t._v("mdi-chevron-up")]):e(q["a"],{attrs:{"x-large":""}},[t._v("mdi-chevron-down")])],1)],1),e("div",{staticClass:"my-4",staticStyle:{"border-top":"1px solid #edeeef","margin-left":"46px",width:"calc(100% - 46px)"}}),e("div",{staticClass:"pos-rel"},[e(nt["a"],{key:"2",staticClass:"mx-2 float-left",staticStyle:{width:"50%"},attrs:{label:"",value:"CARD",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"ml-2 black--text"},[t._v("카드결제")])]},proxy:!0}])}),e("div",{staticClass:"float-left",staticStyle:{width:"calc(50% - 16px)"}},["CARD"==t.kind_change_radios?e(q["a"],{staticClass:"float-right",staticStyle:{color:"#d3d3d3"},attrs:{"x-large":""}},[t._v("mdi-chevron-up")]):e(q["a"],{staticClass:"float-right",attrs:{"x-large":""}},[t._v("mdi-chevron-down")])],1),e("div",{staticStyle:{clear:"both"}}),"CARD"==t.kind_change_radios?e(L["a"],{staticStyle:{"margin-left":"46px",width:"calc(100% - 46px)","font-size":"1rem"},attrs:{depressed:""},on:{click:function(e){!t.chk_card_status&&t.addCardPopup()}}},[t.chk_card_status?[e("b",[t._v(t._s(t.payment.paymentCompany)+" "+t._s(t.cc_format(t.payment.paymentNumber).replace(/\*/g,"∗")))])]:[e(q["a"],{staticClass:"grey--text",attrs:{small:""}},[t._v("mdi-plus")]),e("span",{staticClass:"grey--text ml-1",staticStyle:{"font-size":"1rem"}},[t._v("\n 카드를 등록하세요\n ")])]],2):t._e(),t.chk_card_status&&"CARD"==t.kind_change_radios&&!t.change_status?e("div",{staticStyle:{"padding-left":"46px","padding-right":"46px"}},[e(ce["a"],{staticClass:"mt-1",attrs:{label:"",color:"success",dense:"","hide-details":""},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"fs-1rem"},[t._v("매월 자동 결제에 동의합니다.")])]},proxy:!0}],null,!1,4081470202),model:{value:t.add_card_agree,callback:function(e){t.add_card_agree=e},expression:"add_card_agree"}}),e("div",{staticClass:"text-center"},[e(L["a"],{staticClass:"mt-3",attrs:{depressed:"",rounded:"",disabled:!(t.chk_card_status&&t.add_card_agree),color:"success"},on:{click:function(e){return t.kindChange()}}},[t._v("\n 확인\n ")])],1)],1):t._e(),t.chk_card_status&&"CARD"==t.kind_change_radios&&!t.change_status?e("div",{staticClass:"grey--text",staticStyle:{padding:"12px 32px 0 32px","font-size":"0.875rem"}},[e("span",[t._v("⁎ 카드 정보는 전자결제대행사 '효성에프엠에스(주)'를\n 통해 안전하게 관리됩니다.")]),e("br"),e("span",[t._v("⁎ 자동결제 시 이용기간 중 결제 당일을 제외하고,\n 언제든지 자동결제 해지가 가능합니다.")]),e("br"),e("span",[t._v("⁎ 기타 자세한 사항은 이용권 안내 페이지를\n 참고해주세요.")]),e("br"),e("span",[t._v("⁎ 미사용 상품은 구매 후, 7일 이내 청약철회\n 가능합니다.")]),e("br")]):t._e(),t.chk_card_status&&"CARD"==t.kind_change_radios&&t.change_status?e("div",{staticClass:"mt-3 pos-rel",staticStyle:{"padding-left":"46px"}},[e("span",{staticClass:"grey--text pos-abs translate-y",staticStyle:{"font-size":"1rem","vertical-align":"middle"}},[t._v("\n 다음 결제일은\n "),e("b",{staticClass:"black--text"},[t._v(t._s(Number(t.t_month)+1>12?Number(t.t_year)+1:t.t_year)+"년\n "+t._s(Number(t.t_month)+1<13?Number(t.t_month)+1<10?"0"+(Number(t.t_month)+1):Number(t.t_month)+1:"01")+"월 01일")]),t._v("\n 입니다.\n ")])]):t._e()],1)])]],2)],1),e("div",{attrs:{slot:"kind_change_card"},slot:"kind_change_card"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("결제정보 변경")])]),e("div",{staticClass:"w-100 my-3",staticStyle:{"border-top":"1px solid #edeeef"}}),[e(lt["a"],{staticClass:"px-4",attrs:{"hide-details":""},model:{value:t.kind_change_card_radios,callback:function(e){t.kind_change_card_radios=e},expression:"kind_change_card_radios"}},[e("div",{staticClass:"pos-rel"},[e(nt["a"],{key:"1",staticClass:"mx-2 float-left",staticStyle:{width:"50%"},attrs:{label:"",value:"change",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"ml-2 black--text"},[t._v("결제카드 변경")])]},proxy:!0}])}),e(q["a"],{staticClass:"pos-abs translate-y",staticStyle:{right:"0"},style:{color:"change"==t.kind_change_card_radios?"#d3d3d3":""},attrs:{"x-large":""}},["change"==t.kind_change_card_radios?[t._v("\n mdi-chevron-up\n ")]:[t._v(" mdi-chevron-down ")]],2),e("div",{staticStyle:{clear:"both"}}),e("div",{staticStyle:{width:"calc(100% - 46px)"}},["change"==t.kind_change_card_radios?e(L["a"],{staticClass:"py-2",staticStyle:{"margin-left":"23px",width:"calc(100% - 46px)","font-size":"1rem",height:"100% !important"},attrs:{depressed:""},on:{click:function(e){return t.addCardPopup("change")}}},[e("div",[e("b",[t._v(t._s(t.payment.paymentCompany)+" "+t._s(t.cc_format(t.payment.paymentNumber).replace(/\*/g,"∗")))]),e("br"),e("div",{staticClass:"red--text"},[t._v("\n (※ 클릭하여 카드정보를 변경해주세요.)\n ")])])]):t._e(),t.chk_card_status&&"change"==t.kind_change_card_radios?e("div",{staticClass:"grey--text",staticStyle:{padding:"12px 16px 0 16px","font-size":"0.875rem","word-break":"keep-all"}},[e("div",{staticStyle:{"text-indent":"-9px","padding-left":"9px"}},[t._v("\n ⁎ 카드 정보는 전자결제대행사 '효성에프엠에스(주)'를\n 통해 안전하게 관리됩니다.\n ")]),e("div",{staticStyle:{"text-indent":"-9px","padding-left":"9px"}},[t._v("\n ⁎ 자동결제 시 이용기간 중 결제 당일을 제외하고,\n 언제든지 자동결제 해지가 가능합니다.\n ")]),e("div",{staticStyle:{"text-indent":"-9px","padding-left":"9px"}},[t._v("\n ⁎ 기타 자세한 사항은 이용권 안내 페이지를\n 참고해주세요.\n ")]),e("div",{staticStyle:{"text-indent":"-9px","padding-left":"9px"}},[t._v("\n ⁎ 미사용 상품은 구매 후, 7일 이내 청약철회\n 가능합니다.\n ")])]):t._e()],1)],1),e("div",{staticClass:"my-4",staticStyle:{"border-top":"1px solid #edeeef","margin-left":"46px",width:"calc(100% - 46px)"}}),e("div",{staticClass:"pos-rel"},[e(nt["a"],{key:"2",staticClass:"mx-2 mb-0",attrs:{label:"",value:"cancel",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"ml-2 black--text"},[t._v("자동결제 해지")])]},proxy:!0}])}),"cancel"==t.kind_change_card_radios?e("div",{staticStyle:{width:"calc(100% - 46px)"}},[e("h3",{staticClass:"text-center grey--text",staticStyle:{"margin-top":"9px"}},[e("b",[t._v("자동결제를 정말 해지하시겠습니까?")])]),e("div",{staticClass:"w-100 my-2",staticStyle:{"border-top":"1px solid #edeeef"}}),e("div",{staticClass:"py-3 mb-2 mgauto",staticStyle:{"border-radius":"4px",background:"#f5f5f5","margin-left":"23px",width:"calc(100% - 46px)"}},[e("div",{staticClass:"float-left text-right pr-3",staticStyle:{width:"50%"}},[e("span",{staticClass:"grey--text",staticStyle:{"font-size":"1rem"}},[t._v("\n 결제 잔여 기간\n ")])]),e("div",{staticClass:"float-left text-left pl-3",staticStyle:{width:"50%"}},[e("b",{staticClass:"black--text",staticStyle:{"font-size":"1rem"}},[t._v("\n ~ "+t._s(t.t_year)+".\n "+t._s(t.t_month<10?"0"+t.t_month:t.t_month)+".\n "+t._s(t.t_lastday)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("h3",{staticClass:"text-center grey--text"},[t._v("\n 지금 해지하시면,\n "),e("span",{staticClass:"success--text"},[t._v("다음 결제일\n "+t._s(Number(t.t_month)+1>12?Number(t.t_year)+1:t.t_year)+".\n "+t._s(Number(t.t_month)+1<13?Number(t.t_month)+1<10?"0"+(Number(t.t_month)+1):Number(t.t_month)+1:"01")+". 01일")]),t._v("에"),e("br"),t._v("\n 전용 가상계좌로 청구될 예정입니다.\n ")]),e("div",{staticClass:"mt-2 text-center"},[e(L["a"],{attrs:{rounded:"",depressed:"",color:"#f5f5f5"},on:{click:t.cardCancel}},[e("span",{staticClass:"grey--text",staticStyle:{"font-size":"1rem"}},[t._v("\n 해지\n ")])])],1)]):t._e(),e("div",{staticClass:"pos-abs translate-y",staticStyle:{right:"0"}},["cancel"==t.kind_change_card_radios?e(q["a"],{staticStyle:{color:"#d3d3d3"},attrs:{"x-large":""}},[t._v("mdi-chevron-up")]):e(q["a"],{attrs:{"x-large":""}},[t._v("mdi-chevron-down")])],1)],1)])]],2)],1),e("div",{attrs:{slot:"select_division"},slot:"select_division"},[e(M["c"],{staticClass:"justify-start headline text-center pb-0 pt-8 px-11"},[e("h3",{staticClass:"title"},[e("b",[t._v("거래 구분")])])]),e(M["b"],{staticClass:"px-10"},[e(lt["a"],{staticClass:"change_lr",attrs:{"hide-details":""},on:{change:t.divisionChange},model:{value:t.proof.division_group,callback:function(e){t.$set(t.proof,"division_group",e)},expression:"proof.division_group"}},[e(nt["a"],{key:1,attrs:{label:"소득공제용",value:"소득공제용",color:"success"}}),e(nt["a"],{key:2,attrs:{label:"지출증빙용",value:"지출증빙용",color:"success"}})],1)],1),e(M["a"],{staticClass:"justify-end px-12 pb-8"},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"division_class cursor",on:{click:t.selectDivision}},[t._v("취소")])])])],1),e("div",{attrs:{slot:"confirm_bill"},slot:"confirm_bill"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[""!=t.proof.is_bill&&t.proof.is_bill!=t.radios?[e("b",[t._v(t._s("tax"==t.radios?"세금 계산서":"현금 영수증으")+"로\n 지출증빙이 변경됩니다.")]),e("br"),e("b",[t._v("정말 변경하시겠습니까?")])]:[e("b",[t._v("지출증빙 정보를 등록하시겠습니까?")]),e("br"),e("b",{staticClass:"fs-90",staticStyle:{color:"#919191"}},[t._v("(등록된 정보는 변경 불가합니다.)")])]],2)]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.submitBill}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"dialog-twobtn right ml-0",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"change_bill"},slot:"change_bill"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v(t._s("tax"==t.tmp?"세금 계산서":"현금 영수증")+" 정보를\n 기재하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){t.radios="tax"==t.radios?"cash":"tax",t.closeDialog()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"dialog-twobtn right ml-0",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"null_5_days_bill"},slot:"null_5_days_bill"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("발행 가능한 내역이 없습니다.")]),e("br"),e("b",{staticClass:"fs-90",staticStyle:{color:"#919191"}},[t._v("(현금영수증은 최근 5일 이내 결제건만 발행 가능)")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"dialog-twobtn right ml-0",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)],2),e(ot["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(e){t.join_dialog=e},expression:"join_dialog"}},[e(it["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"}},[e(M["b"],{staticClass:"pa-4"},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pos-rel pb-0",attrs:{cols:"12"}},[e("div",{staticClass:"float-left pos-rel translate-y"},[e("label",{staticClass:"mr-7 black--text"},[t._v("카드번호")])]),e("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[e(X["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(e){t.cardno=e},expression:"cardno"}})],1),e("div",{staticStyle:{clear:"both"}})]),e(j["a"],{staticClass:"pos-rel pb-0",attrs:{cols:"12"}},[e("div",{staticClass:"float-left pos-rel translate-y"},[e("label",{staticClass:"mr-7 black--text"},[t._v("유효기간")])]),e("div",{staticClass:"float-left pos-rel",staticStyle:{width:"calc(100% - 82px)"}},[e(kt["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(e){t.$refs.month.isMenuActive=!t.$refs.month.isMenuActive}},model:{value:t.month,callback:function(e){t.month=e},expression:"month"}}),e("label",{staticClass:"black--text px-4 float-left translate-y pos-abs"},[t._v("\n 월\n ")]),e(kt["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(e){t.$refs.year.isMenuActive=!t.$refs.year.isMenuActive}},model:{value:t.year,callback:function(e){t.year=e},expression:"year"}}),e("label",{staticClass:"black--text px-4 float-left translate-y pos-abs"},[t._v("\n 년\n ")])],1),e("div",{staticStyle:{clear:"both"}})]),e(j["a"],{staticClass:"pb-0",attrs:{cols:"12"}},[e("div",{staticClass:"float-left pos-rel translate-y"},[e("label",{staticClass:"mr-7 black--text"},[t._v("생년월일")]),e("br"),e("small",[t._v("(6자리)")])]),e("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[e(X["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(e){t.birthday=e},expression:"birthday"}})],1),e("div",{staticStyle:{clear:"both"}})]),e(j["a"],{staticClass:"pb-1",attrs:{cols:"12"}},[e("div",{staticClass:"float-left pos-rel translate-y"},[e("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),e("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[e(ce["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(e){t.add_card_all=e},expression:"add_card_all"}})],1),e("div",{staticStyle:{clear:"both"}})]),e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("div",{staticClass:"pos-rel",staticStyle:{width:"calc(100% - 82px)","border-top":"1px solid #edeeef",left:"75px"}}),e("div",{staticStyle:{clear:"both"}})]),e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("div",{staticClass:"float-left pos-rel translate-y"},[e("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),e("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[e(ce["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[e("label",[t._v("전자금융거래 이용약관 ")]),e(de["a"],{attrs:{"z-index":"-100"},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e("a",t._g({on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.viewTerms(1)}}},s),[t._v("\n 보기\n "),e(q["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(e){t.add_card_terms=e},expression:"add_card_terms"}})],1),e("div",{staticStyle:{clear:"both"}})]),e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("div",{staticClass:"float-left pos-rel translate-y"},[e("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),e("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[e(ce["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[e("label",[t._v("개인정보 수집 및 이용동의 ")]),e(de["a"],{attrs:{"z-index":"-100"},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e("a",t._g({on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.viewTerms(2)}}},s),[t._v("\n 보기\n "),e(q["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(e){t.add_card_persinfo=e},expression:"add_card_persinfo"}})],1),e("div",{staticStyle:{clear:"both"}})]),e(j["a"],{staticClass:"pt-0 pb-6",attrs:{cols:"12"}},[e("div",{staticClass:"float-left pos-rel translate-y"},[e("label",{staticClass:"mr-7 white--text"},[t._v("이용동의")])]),e("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 82px)"}},[e(ce["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[e("label",[t._v("개인정보 제3자 제공동의 ")]),e(de["a"],{attrs:{"z-index":"-100"},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e("a",t._g({on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.viewTerms(3)}}},s),[t._v("\n 보기\n "),e(q["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(e){t.add_card_third=e},expression:"add_card_third"}})],1),e("div",{staticStyle:{clear:"both"}})])],1)],1),e(M["a"],{staticClass:"pa-4 pt-0"},[e(L["a"],{staticClass:"white--text",staticStyle:{height:"3rem !important",width:"120px"},attrs:{depressed:"",tile:"",color:"#4b4b4b"},on:{click:function(e){return t.cancelAddCard()}}},[t._v("\n 취소\n ")]),e(L["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(e){return t.addCard()}}},[t._v("\n 등록\n ")])],1)],1),e(it["a"],{directives:[{name:"show",rawName:"v-show",value:1==t.card_status,expression:"card_status == 1"}],staticStyle:{"border-radius":"unset !important"},attrs:{id:"join_card",color:"white"}},[e(M["b"],{staticClass:"pa-4"},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pos-rel pb-0",attrs:{cols:"12"}},[e("p",[1==t.term_type?[t._v("\n 제 1 장 총칙"),e("br"),e("br"),e("br"),t._v("\n 제 1 조【 목 적 】"),e("br"),t._v("\n 이 약관은 효성에프엠에스 주식회사 (이하 '회사'라 합니다)가\n 제공하는 전자지급결제대행서비스 및 전자고지결제서비스를\n 이용자가 이용함에 있어 회사와 이용자 사이의 전자금융거래에\n 관한 기본적인 사항을 정함을 목적으로 합니다."),e("br"),e("br"),e("br"),t._v("\n 제 2 조【 용어의 정의 】"),e("br"),t._v("\n 이 약관에서 정하는 용어의 정의는 다음과 같습니다."),e("br"),t._v("\n ① '전자금융거래'라 함은 회사가 전자적 장치를 통하여\n 전자지급결제대행서비스 및 전자고지결제서비스(이하\n '전자금융거래 서비스'라고 합니다)를 제공하고, 이용자가 회사의\n 종사자와 직접 대면하거나 의사소통을 하지 아니하고 자동화된\n 방식으로 이를 이용하는 거래를 말합니다."),e("br"),t._v("\n ② '전자지급결제대행서비스'라 함은 전자적 방법으로 재화의 구입\n 또는 용역의 이용에 있어서 지급결제정보를 송신하거나 수신하는\n 것 또는 그 대가의 정산을 대행하거나 매개하는 서비스를\n 말합니다."),e("br"),t._v("\n ③ '전자고지결제서비스'라 함은 각종 요금 등의 지급과 관련하여\n \"청구서\"등의 전자적인 방법으로 자금 내역을 고지하고, 이를\n 수수하여 그 정산을 대행하는 업무를 제공하는 시스템 및 서비스\n 일체를 말합니다."),e("br"),t._v("\n ④ '이용자'라 함은 이 약관에 동의하고 회사가 제공하는\n 전자금융거래 서비스를 이용하는 자를 말합니다."),e("br"),t._v("\n ⑤ '접근매체'라 함은 전자금융거래에 있어서 거래지시를 하거나\n 이용자 및 거래내용의 진실성과 정확성을 확보하기 위하여\n 사용되는 수단 또는 정보로서 전자식 카드 및 이에 준하는 전자적\n 정보(신용카드번호를 포함한다), '전자서명법'상의 인증서, 회사에\n 등록된 이용자번호, 이용자의 생체정보, 이상의 수단이나 정보를\n 사용하는데 필요한 비밀번호 등 전자금융거래법 제2조 제10호에서\n 정하고 있는 것을 말합니다."),e("br"),t._v("\n ⑥ '청구서'라 함은 '회사'가 수납기관을 대행하여 이용자에게\n 전송하는 전자적인 방식의 고지방법을 말합니다."),e("br"),t._v("\n ⑦ '거래지시'라 함은 이용자가 본 약관에 의하여 체결되는\n 전자금융거래계약에 따라 회사에 대하여 전자금융거래의 처리를\n 지시하는 것을 말합니다."),e("br"),t._v("\n ⑧ '오류'라 함은 이용자의 고의 또는 과실 없이 전자금융거래가\n 전자금융거래계약 또는 이용자의 거래지시에 따라 이행되지 아니한\n 경우를 말합니다."),e("br"),e("br"),e("br"),t._v("\n 제 3 조【 약관의 명시 및 변경 】"),e("br"),t._v("\n ① 회사는 이용자가 전자금융거래 서비스를 이용하기 전에 이\n 약관을 게시하고 이용자가 이 약관의 중요한 내용을 확인할 수\n 있도록 합니다."),e("br"),t._v("\n ② 회사는 이용자의 요청이 있는 경우 전자문서의 전송방식에\n 의하여 본 약관의 사본을 이용자에게 교부합니다."),e("br"),t._v("\n ③ 회사가 약관을 변경하는 때에는 그 시행일 1월 전에 변경되는\n 약관을 회사가 제공하는 전자금융거래 서비스 이용 초기화면 및\n 회사의 홈페이지에 게시함으로써 이용자에게 공지합니다."),e("br"),t._v("\n ④ 회사가 전항에 따라 개정약관을 공지 또는 통지하면서 이용자가\n 30일 기간 내에 의사표시를 하지 않으면 의사표시가 표명된 것으로\n 본다는 뜻을 명확하게 공지 또는 통지하였음에도 이용자가\n 명시적으로 거부의사를 표명하지 아니한 경우 이용자가 개정약관에\n 동의한 것으로 본다."),e("br"),e("br"),e("br"),t._v("\n 제 4 조【 전자지급결제대행서비스의 종류 】"),e("br"),t._v("\n 회사가 제공하는 전자지급결제대행서비스는 지급결제수단에 따라\n 다음과 같이 구별됩니다."),e("br"),t._v("\n ① 신용카드결제대행서비스: 이용자가 결제대금의 지급을 위하여\n 제공한 지급결제수단이 신용카드인 경우로서, 회사가\n 전자결제시스템을 통하여 신용카드 지불정보를 송,수신하고\n 결제대금의 정산을 대행하거나 매개하는 서비스를 말합니다."),e("br"),t._v("\n ② 자동이체서비스 : 이용자가 정기적으로 납부해야 할 물품대금,\n 용역대금 등 각종 수납자금의 납부가 자동으로 이루어지는 업무를\n 말합니다."),e("br"),t._v("\n 1.이용자가 납부하여야 할 요금에 대하여 별도의 통지 없이 본인의\n 지정출금계좌에서 수납기관이 정한 지정 출금일(휴일인 경우\n 익영업일)에 출금대체 납부하여야 합니다."),e("br"),t._v("\n 2.출금이체를 위하여 지정출금계좌의 예금을 출금하는 경우에는\n 예금약관이나 약정서의 규정에 불구하고 예금청구서나 수표 없이\n 출금이체 처리절차에 의하여 출금하여도 이의가 없습니다."),e("br"),t._v("\n 3.출금이체 지정계좌의 예금잔액(자동대출약정이 있는 경우\n 대출한도 포함)이 지정 출금일 현재 수납기관의 청구금액보다\n 부족하거나, 예금의 지급제한 또는 약정대출의 연체 등으로\n 대체납부가 불가능한 경우의 손해는 본인의 책임으로 합니다."),e("br"),t._v("\n 4.지정출금일에 동일한 수종의 출금이체청구가 있는 경우의\n 출금우선순위는 출금은행이 정하는 바에 따르도록 합니다."),e("br"),t._v("\n 5.출금이체 신규신청에 의한 이체개시일은 수납기관의 사정에\n 의하여 결정됩니다."),e("br"),t._v("\n 6.출금이체신청(신규, 해지)은 해당납기일 30일전까지 신청서를\n 제출하여야 합니다."),e("br"),t._v("\n 7.출금이체 신청에 의한 지정계좌에서의 출금은 수납기관의\n 청구대로 출금키로 하며 출금요금에 이의가 있는 경우에는 본인과\n 수납기관이 협의하여 조정키로 합니다."),e("br"),t._v("\n 8.출금이체금액은 해당 지정출금일 은행 영업시간 내에 입금된\n 예금(지정출금일에 입금된 타점권은 제외)에 한하여 출금처리\n 됩니다."),e("br"),t._v("\n 9.이 약관은 신청서를 수납기관에 직접 제출하여 출금이체를\n 신청한 경우에도 적용합니다."),e("br"),t._v("\n ③ 실시간출금서비스: 이용자가 결제대금을 회사의\n 전자결제시스템을 통하여 금융기관에 등록한 자신의 계좌에서\n 실시간으로 출금하여 원하는 계좌로 이체할 수 있는 서비스를\n 말합니다."),e("br"),t._v("\n ④ 가상계좌서비스: 이용자가 결제대금을 현금으로 결제하고자 경우\n 회사의 전자결제시스템을 통하여 자동으로 이용자만의 고유한\n 일회용 계좌의 발급을 통하여 결제대금의 지급이 이루어지는\n 서비스를 말합니다."),e("br"),e("br"),e("br"),t._v("\n 제 5 조【 이용시간 】"),e("br"),t._v("\n ① 회사는 이용자에게 연중무휴 1일 24시간 전자금융거래 서비스를\n 제공함을 원칙으로 합니다. 단, 금융기관 기타 결제수단\n 발행업자의 사정에 따라 달리 정할 수 있습니다."),e("br"),t._v("\n ② 회사는 정보통신설비의 보수, 점검 기타 기술상의 필요나\n 금융기관 기타 결제수단 발행업자의 사정에 의하여 서비스 중단이\n 불가피한 경우, 서비스 중단 3일 전까지 게시 가능한 전자적\n 수단을 통하여 서비스 중단 사실을 게시한 후 서비스를 일시\n 중단할 수 있습니다. 다만, 시스템 장애복구, 긴급한 프로그램\n 보수, 외부요인 등 불가피한 경우에는 사전 게시 없이 서비스를\n 중단할 수 있습니다."),e("br"),e("br"),e("br"),t._v("\n 제 6 조【 접근매체의 선정과 사용 및 관리 】"),e("br"),t._v("\n ① 회사는 전자금융거래 서비스 제공 시 접근매체를 선정하여\n 이용자의 신원, 권한 및 거래지시의 내용 등을 확인할 수\n 있습니다."),e("br"),t._v("\n ② 이용자는 접근매체를 제3자에게 대여하거나 사용을 위임하거나\n 양도 또는 담보 목적으로 제공할 수 없습니다."),e("br"),t._v("\n ③ 이용자는 자신의 접근매체를 제3자에게 누설 또는 노출하거나\n 방치하여서는 안되며, 접근매체의 도용이나 위조 또는 변조를\n 방지하기 위하여 충분한 주의를 기울여야 합니다."),e("br"),t._v("\n ④ 회사는 이용자로부터 접근매체의 분실이나 도난 등의 통지를\n 받은 때에는 그 때부터 제3자가 그 접근매체를 사용함으로 인하여\n 이용자에게 발생한 손해를 배상할 책임이 있습니다."),e("br"),e("br"),e("br"),t._v("\n 제 7 조【 거래내용의 확인 】"),e("br"),t._v("\n ① 회사는 이용자와 미리 약정한 전자적 방법을 통하여 이용자의\n 거래내용(이용자의 '오류정정 요구사실 및 처리결과에 관한\n 사항'을 포함합니다)을 확인할 수 있도록 하며, 이용자의 요청이\n 있는 경우에는 요청을 받은 날로부터 2주 이내에 모사전송 등의\n 방법으로 거래내용에 관한 서면을 교부합니다."),e("br"),t._v("\n ② 회사는 제①항에 따른 이용자의 거래내용 서면 교부 요청을 받은\n 경우 전자적 장치의 운영장애, 그 밖의 사유로 거래내용을 제공할\n 수 없는 때에는 즉시 이용자에게 전자문서 전송(전자우편을 이용한\n 전송을 포함합니다)의 방법으로 그러한 사유를 알려야 하며,\n 전자적 장치의 운영장애 등의 사유로 거래내용을 제공할 수 없는\n 기간은 제 ①항의 거래내용에 관한 서면의 교부기간에 산입하지\n 아니합니다."),e("br"),t._v("\n ③ 제 ①항의 대상이 되는 거래내용 중 대상기간이 5년인 것은 다음\n 각호와 같습니다."),e("br"),t._v("\n 1. 거래계좌의 명칭 또는 번호"),e("br"),t._v("\n 2. 거래의 종류 및 금액"),e("br"),t._v("\n 3. 거래상대방을 나타내는 정보"),e("br"),t._v("\n 4. 거래일시"),e("br"),t._v("\n 5. 전자적 장치의 종류 및 전자적 장치를 식별할 수 있는 정보"),e("br"),t._v("\n 6. 회사가 전자금융거래의 대가로 받은 수수료"),e("br"),t._v("\n 7. 이용자의 출금동의에 관한 사항"),e("br"),t._v("\n 8. 해당 전자금융거래와 관련한 전자적 장치의 접속기록"),e("br"),t._v("\n 9. 전자금융거래의 신청 및 조건의 변경에 관한 사항"),e("br"),t._v("\n 10. 건당 거래금액이 1만원을 초과하는 전자금융거래에 관한\n 기록"),e("br"),t._v("\n ④ 제 ①항의 대상이 되는 거래내용 중 대상기간이 1년인 것은 다음\n 각호와 같습니다."),e("br"),t._v("\n 1. 건당 거래금액이 1만원 이하인 소액 전자금융거래에 관한\n 기록"),e("br"),t._v("\n 2. 전자지급수단 이용과 관련된 거래승인에 관한 기록"),e("br"),t._v("\n 3. 이용자의 오류정정 요구 사실 및 처리결과에 관한 사항"),e("br"),e("br"),e("br"),t._v("\n 제 8 조【 오류의 정정 등 】"),e("br"),t._v("\n ①이용자는 전자금융거래 서비스를 이용함에 있어 오류가 있음을\n 인지한 때에는 회사에 대하여 그 정정을 요구할 수 있습니다."),e("br"),t._v("\n ② 회사는 전항의 규정에 따른 오류의 정정요구를 받은 때에는 이를\n 즉시 조사하여 처리한 후 정정요구를 받은 날부터 2주 이내에 그\n 결과를 이용자에게 알려 드립니다."),e("br"),e("br"),e("br"),t._v("\n 제 9 조【 회사의 책임 】"),e("br"),t._v("\n ① 회사는 전자금융거래를 위한 전자적 장치 또는 ‘정보통신망\n 이용촉진 및 정보보호 등에 관한 법률’ 제2조제1항제1호에 따른\n 정보통신망에 침입하여 거짓이나 그 밖의 부정한 방법으로 획득한\n 접근매체의 이용으로 발생한 사고로 인하여 이용자에게 그 손해가\n 발생한 경우에는 그 손해를 배상할 책임이 있습니다."),e("br"),t._v("\n ② 접근매체의 위조나 변조로 발생한 사고로 인하여 이용자에게\n 발생한 손해에 대하여 배상책임이 있습니다. 다만 이용자가 제6조\n 제2항에 위반하거나 제3자가 권한없이 이용자의 접근매체를\n 이용하여 전자금융거래를 할 수 있음을 알았거나 알 수 있었음에도\n 불구하고 이용자가 자신의 접근매체를 누설 또는 노출하거나\n 방치한 경우 그 책임의 전부 또는 일부를 이용자가 부담하게 할 수\n 있습니다."),e("br"),t._v("\n ③ 회사는 계약체결 또는 거래지시의 전자적 전송이나 처리과정에서\n 발생한 사고로 인하여 이용자에게 그 손해가 발생한 경우에는 그\n 손해를 배상할 책임이 있습니다. 다만 본조 제2항 단서에\n 해당하거나 법인('중소기업기본법' 제2조 제2항에 의한 소기업을\n 제외합니다)인 이용자에게 손해가 발생한 경우로서 회사가 사고를\n 방지하기 위하여 보안절차를 수립하고 이를 철저히 준수하는 등\n 합리적으로 요구되는 충분한 주의의무를 다한 경우 그 책임의 전부\n 또는 일부를 이용자가 부담하게 할 수 있습니다."),e("br"),e("br"),e("br"),t._v("\n 제10조【 전자지급거래계약의 효력 】"),e("br"),t._v("\n ① 회사는 이용자의 거래지시가 전자지급거래에 관한 경우 그\n 지급절차를 대행하며, 전자지급거래에 관한 거래지시의 내용을\n 전송하여 지급이 이루어지도록 합니다."),e("br"),t._v("\n ② 회사는 이용자의 전자지급거래에 관한 거래지시에 따라\n 지급거래가 이루어지지 않은 경우 수령한 자금을 이용자에게\n 반환하여야 합니다."),e("br"),e("br"),e("br"),t._v("\n 제11조【 거래지시의 철회 】"),e("br"),t._v("\n ① 이용자는 전자금융거래에 관한 거래지시의 경우 지급의 효력이\n 발생하기 전까지 거래지시를 철회할 수 있습니다."),e("br"),t._v("\n ② 전항의 지급의 효력이 발생한 시점이란 (i) 전자자금이체의\n 경우에는 거래 지시된 금액의 정보에 대하여 수취인의 계좌가\n 개설되어 있는 금융기관의 계좌 원장에 입금기록이 끝난 때 (ii)\n 그 밖의 전자지급수단으로 지급하는 경우에는 거래 지시된 금액의\n 정보가 수취인의 계좌가 개설되어 있는 금융기관의 전자적 장치에\n 입력이 끝난 때를 말합니다."),e("br"),t._v("\n ③ 이용자는 지급의 효력이 발생한 경우에는 전자상거래 등에서의\n 소비자보호에 관한 법률 등 관련 법령상 청약의 철회의 방법등으로\n 결제대금을 반환 받을 수 있습니다."),e("br"),e("br"),e("br"),t._v("\n 제12조【 전자금융거래 서비스 이용 기록의 생성 및 보존 】"),e("br"),t._v("\n ① 회사는 이용자가 전자금융거래의 내용을 추적, 검색하거나 그\n 내용에 오류가 발생한 경우에 이를 확인하거나 정정할 수 있는\n 기록을 생성하여 보존합니다."),e("br"),t._v("\n ② 전항의 규정에 따라 회사가 보존하여야 하는 기록의 종류 및\n 보존 기간은 제7조에서 정한 바에 따릅니다."),e("br"),e("br"),e("br"),t._v("\n 제 13 조【 전자금융거래정보의 제공금지 】"),e("br"),t._v("\n 회사는 전자금융거래 서비스를 제공함에 있어서 취득한 이용자의\n 인적사항, 이용자의 계좌, 접근매체 및 전자금융거래의 내용과\n 실적에 관한 정보 또는 자료를 금융실명거래 및 비밀보장에 관한\n 법률 등 법령에 의하거나 이용자의 동의를 얻지 아니하고\n 제3자에게 제공, 누설하거나 업무상 목적 외에 사용하지\n 아니합니다."),e("br"),e("br"),e("br"),t._v("\n 제14조【 분쟁처리 및 분쟁조정 】"),e("br"),t._v("\n ① 이용자는 다음의 분쟁처리 책임자 및 담당자에 대하여\n 전자금융거래 서비스 이용과 관련한 의견 및 불만의 제기,\n 손해배상의 청구 등의 분쟁처리를 요구할 수 있습니다."),e("br"),t._v("\n 담당자: 효성CMS"),e("br"),t._v("\n 연락처(전화번호, 전자우편주소): 1544-5162, cms@hyosung.com"),e("br"),t._v("\n ② 이용자가 회사에 대하여 분쟁처리를 신청한 경우에는 회사는\n 15일 이내에 이에 대한 조사 또는 처리 결과를 이용자에게\n 안내합니다."),e("br"),t._v("\n ③ 이용자는 회사의 분쟁처리결과에 이의가 있을 경우 '금융위원회\n 설치 등에 관한 법률' 에 따른 금융감독원의 금융분쟁조정위원회나\n '소비자기본법'에 따른 한국소비자원의 소비자분쟁조정위원회에\n 회사의 전자금융거래 서비스의 이용과 관련한 분쟁조정을 신청할\n 수 있습니다."),e("br"),e("br"),e("br"),t._v("\n 제 15 조【 회사의 안정성 확보 의무 】"),e("br"),t._v("\n 회사는 전자금융거래의 안전성과 신뢰성을 확보할 수 있도록\n 전자금융거래의 종류별로 전자적 전송이나 처리를 위한 인력,\n 시설, 전자적 장치 등의 정보기술부문 및 전자금융업무에 관하여\n 금융위원회가 정하는 기준을 준수합니다."),e("br"),e("br"),e("br"),t._v("\n 제16조【 약관외 준칙 및 관할 】"),e("br"),t._v("\n ① 이 약관에서 정하지 아니한 사항에 대하여는 전자금융거래법,\n 전자상거래 등에서의 소비자 보호에 관한 법률, 통신판매에 관한\n 법률, 여신전문금융업법 등 소비자보호 관련 법령에서 정한 바에\n 따릅니다."),e("br"),t._v("\n ② 회사와 이용자간에 발생한 분쟁에 관한 관할은 민사소송법에서\n 정한 바에 따릅니다."),e("br"),e("br"),e("br"),t._v("\n 부칙 (‘07. 7. .)"),e("br"),t._v("\n 제 1조 (시행일)"),e("br"),t._v("\n 본 약관은 `07. 7. 1부터 시행한다."),e("br"),e("br"),e("br"),t._v("\n 부칙 (‘13. 8. .)"),e("br"),t._v("\n 제 1조 (시행일)"),e("br"),t._v("\n 본 약관은 `13. 8. 20부터 시행한다."),e("br"),e("br"),e("br"),t._v("\n 부칙 (‘17. 3. .)"),e("br"),t._v("\n 제 1조 (시행일)"),e("br"),t._v("\n 본 약관은 `17. 3. 10부터 시행한다."),e("br"),e("br"),e("br"),t._v("\n 부칙('20.03. .)"),e("br"),t._v("\n 제 1조 (시행일)"),e("br"),t._v("\n 본 약관은 '20. 03. 23 부터 시행한다.\n ")]:2==t.term_type?[t._v("\n 개인정보수집 및 이용동의"),e("br"),e("br"),t._v("\n  수집 및 이용목적 : 효성CMS 카드자동결제를 통한 요금 수납"),e("br"),t._v("\n  수집항목 : 성명, 성별, 생년월일, 연락처, 결제사명, 결제자명,\n 카드번호, 유효기간, 휴대전화번호"),e("br"),t._v("\n  보유 및 이용기간 : 수집/이용 동의일부터 자동이체\n 종료일(해지일)까지"),e("br"),t._v("\n  신청자는 개인정보의 수집 및 이용을 거부할 수 있습니다. 단,\n 거부 시 자동이체 신청이 처리되지 않습니다. "),e("br")]:3==t.term_type?[t._v("\n 개인정보 제3자 제공동의"),e("br"),e("br"),t._v("\n  개인정보를 제공받는 자: 효성에프엠에스㈜, 카드사(BC, 국민,\n 외환, 삼성, 신한, 롯데, 하나SK, 현대 등),\n 결제대행사(KG이니시스, KCP), 효성ITX 등"),e("br"),t._v("\n  개인정보를 제공받는 자의 이용 목적: 자동이체서비스 제공 및\n 자동이체 동의 사실 통지, 고객센터 운영"),e("br"),t._v("\n  제공하는 개인정보의 항목 : 성명, 성별, 생년월일, 연락처,\n 결제사명, 결제자명, 카드번호, 유효기간, 휴대전화번호"),e("br"),t._v("\n  개인정보를 제공받는자의 개인정보 보유 및 이용기간:\n 동의일부터 자동이체의 종료일(해지일)까지. 단, 관계 법령에 의거\n 일정기간 동안 보관"),e("br"),t._v("\n  신청자는 개인정보에 대해 수납업체가 제 3자에 제공하는 것을\n 거부할 수 있습니다. 단, 거부 시 자동이체 신청이 처리되지\n 않습니다"),e("br"),e("br"),t._v("\n ※ 개인정보의 처리와 관련된 사항은 회사의 개인정보취급방침에\n 따릅니다.\n ")]:t._e()],2)])],1)],1),e(M["a"],{staticClass:"pa-4 pt-0"},[e(L["a"],{staticClass:"white--text",staticStyle:{height:"3rem !important"},attrs:{depressed:"",tile:"",block:"",color:"#4b4b4b"},on:{click:function(e){t.card_status=0}}},[t._v("\n 닫기\n ")])],1)],1)],1),e(ot["a"],{staticStyle:{"border-radius":"unset"},attrs:{"max-width":"480",origin:"center center",scrollable:"",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.join_alert_dialog,callback:function(e){t.join_alert_dialog=e},expression:"join_alert_dialog"}},[e(it["a"],{staticStyle:{"border-radius":"unset !important"},attrs:{color:"white"}},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",{staticClass:"black--text"},[t._v(t._s(t.jad_msg))])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"100%"},attrs:{"x-large":"",text:""},on:{click:function(e){t.join_alert_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:"잠시만 기다려주세요"}}):t._e()],1)},ue=[],_e={name:"login",components:{Dialogs:st["a"],LoadingDialog:bt["a"],preFont:et["a"],preCautions:at["a"]},directives:{mask:Nt["mask"]},data(){return{tmp:"",subtitle:"프로그램 월별 사용량을 조회합니다.",tab:null,tabs:3,date:(new Date).toISOString().substr(0,10),menu1:!1,menu2:!1,menu3:!1,menu4:!1,toggle_exclusive1:2,toggle_exclusive2:2,radios:null,LoadingDialog:"",disabled:!0,hide_default_footer:!1,ago_sd:"",ago_ed:"",lm_sd:"",lm_ed:"",tm_sd:"",tm_ed:"",t_year:"",t_month:"",t_lastday:"",key:{usage_datatable:0,payment_datatable:0},usage:{s_date:"",e_date:"",sel_date:"tm",search:"",use_cnt:0,headers:[{text:"No.",value:"num",align:"left",sortable:!1,width:"70px"},{text:"클래스",value:"class_name",align:"left",sortable:!0,width:"20%"},{text:"이름",value:"name",align:"left",sortable:!0,width:"20%"},{text:"아이디",value:"loginid",align:"left",sortable:!0,width:"20%"},{text:"사용량",value:"rate",align:"left",sortable:!1,width:"40%"},{text:"사용여부",value:"status",align:"left",sortable:!1,width:"130px"}],items:[],item_key:"",items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0},usage_options:{},payment:{sel_date:"ty",s_date:"",e_date:"",ago_lastD:"",last_lastD:"",headers:[{text:"No.",value:"num",align:"left",sortable:!1},{text:"연도",value:"year",align:"left",sortable:!0},{text:"월",value:"month",align:"left",sortable:!0},{text:"전월 초과량",value:"rate",align:"left",sortable:!1},{text:"청구액",value:"cost",align:"left",sortable:!1},{text:"결제액",value:"payment",align:"left",sortable:!1},{text:"결제일",value:"paymentdate",align:"left",sortable:!1},{text:"결제수단",value:"paymentkind",align:"center",sortable:!1},{text:"지출증빙",value:"tax",align:"center",sortable:!1}],items:[],item_key:"",items_length:0,page:1,items_per_page:12,sortby:void 0,sortdesc:void 0,paymentCompany:"",paymentNumber:""},payment_options:{},proof:{get_cnt:0,mode:"new",is_bill:"",tax:{brn:"",cname:"",president:"",email:"",condition:"",item:"",address:"",postcode:"",detailaddress:""},cash:{division:"",president:"",email:"",phone:"",phone_mask:"###########"},division_group:null},origin_tax:null,origin_cash:null,text_key:0,kind_change_radios:"VAC",kind_change_card_radios:"change",loading_value:!1,join_dialog:!1,join_alert_dialog:!1,card_status:0,add_card_disabled:!0,term_type:1,add_card_agree:!1,add_card_all:!1,add_card_terms:!1,add_card_persinfo:!1,add_card_third:!1,mask_card:"####-####-####-####",mask_birth:"######",cardno:"",birthday:"",month:"",year:"",jad_msg:"",year_items:[],month_items:["01","02","03","04","05","06","07","08","09","10","11","12"],chk_card_status:!1,change_status:!1,to:"",move_page_status:0,card_change_status:!1,null_popbill:!1,caution_key:0,api_delay:!1}},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s();else if("tab-3"==this.tab){let t=(this.proof.tax.brn?1:0)+(this.proof.tax.cname?1:0)+(this.proof.tax.president?1:0)+(this.proof.tax.email?1:0)+(this.proof.tax.condition?1:0)+(this.proof.tax.item?1:0)+(this.proof.tax.address?1:0)+(this.proof.tax.postcode?1:0)+(this.proof.tax.detailaddress?1:0)+(this.proof.cash.division?1:0)+(this.proof.cash.president?1:0)+(this.proof.cash.email?1:0)+(this.proof.cash.phone?1:0);if(""!=t||0!=t)return this.$store.state.editing_status=!0,this.openDialog("move_page"),!1;s()}else s()},created:function(){this.$route.params&&this.$route.params.tab&&(this.tab="tab-"+this.$route.params.tab),this.getUsage();let t=new Date,e=t.getFullYear(),s=t.getMonth()+1,a=t.getDate(),i=new Date(e,s);i=new Date(i-1);let o=i.getDate(),n="",l="",r="",c="";["ko","ko-kr"].includes(navigator.language.toLowerCase())?(n=new Date(e,s-3,1).toLocaleString().split(". "),l=n[0],r=n[1]<10?"0"+n[1]:n[1],c=n[2]<10?"0"+n[2]:n[2],this.ago_sd=`${l}-${r}-${c}`,n=new Date(e,s-2,new Date(e,s-3).getDate()-1).toLocaleString().split(". "),l=n[0],r=n[1]<10?"0"+n[1]:n[1],c=n[2]<10?"0"+n[2]:n[2],this.ago_ed=`${l}-${r}-${c}`,n=new Date(e,s-2,1).toLocaleString().split(". "),l=n[0],r=n[1]<10?"0"+n[1]:n[1],c=n[2]<10?"0"+n[2]:n[2],this.lm_sd=`${l}-${r}-${c}`,n=new Date(e,s-1,new Date(e,s-2).getDate()-1).toLocaleString().split(". "),l=n[0],r=n[1]<10?"0"+n[1]:n[1],c=n[2]<10?"0"+n[2]:n[2],this.lm_ed=`${l}-${r}-${c}`,n=new Date(e,s-1,1).toLocaleString().split(". "),l=n[0],r=n[1]<10?"0"+n[1]:n[1],c=n[2]<10?"0"+n[2]:n[2],this.tm_sd=`${l}-${r}-${c}`,n=new Date(e,s,new Date(e,s).getDate()-1).toLocaleString().split(". "),l=n[0],r=n[1]<10?"0"+n[1]:n[1],c=n[2]<10?"0"+n[2]:n[2],this.tm_ed=`${l}-${r}-${c}`):(n=new Date(e,s-3,1).toLocaleString().split("/"),l=n[2].split(",")[0],r=n[0]<10?"0"+n[0]:n[0],c=n[1]<10?"0"+n[1]:n[1],this.ago_sd=`${l}-${r}-${c}`,n=new Date(e,s-2,new Date(e,s-3).getDate()-1).toLocaleString().split("/"),l=n[2].split(",")[0],r=n[0]<10?"0"+n[0]:n[0],c=n[1]<10?"0"+n[1]:n[1],this.ago_ed=`${l}-${r}-${c}`,n=new Date(e,s-2,1).toLocaleString().split("/"),l=n[2].split(",")[0],r=n[0]<10?"0"+n[0]:n[0],c=n[1]<10?"0"+n[1]:n[1],this.lm_sd=`${l}-${r}-${c}`,n=new Date(e,s-1,new Date(e,s-2).getDate()-1).toLocaleString().split("/"),l=n[2].split(",")[0],r=n[0]<10?"0"+n[0]:n[0],c=n[1]<10?"0"+n[1]:n[1],this.lm_ed=`${l}-${r}-${c}`,n=new Date(e,s-1,1).toLocaleString().split("/"),l=n[2].split(",")[0],r=n[0]<10?"0"+n[0]:n[0],c=n[1]<10?"0"+n[1]:n[1],this.tm_sd=`${l}-${r}-${c}`,n=new Date(e,s,new Date(e,s).getDate()-1).toLocaleString().split("/"),l=n[2].split(",")[0],r=n[0]<10?"0"+n[0]:n[0],c=n[1]<10?"0"+n[1]:n[1],this.tm_ed=`${l}-${r}-${c}`),this.usage.s_date=this.tm_sd,this.usage.e_date=this.tm_ed,this.payment.s_date=e+"-01-01",this.payment.e_date=e+"-"+(s<10?"0":"")+s+"-"+(a<10?"0":"")+a,n=new Date(e-2,12),n=new Date(n-1),this.payment.ago_lastD=n.getDate(),n=new Date(e-1,12),n=new Date(n-1),this.payment.last_lastD=n.getDate(),this.t_year=e,this.t_month=s,this.t_lastday=o,this.usage.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"usage"),this.payment.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"payment")},mounted(){if(!document.getElementById("postcodescript")){let t=document.createElement("script");t.setAttribute("id","postcodescript"),t.setAttribute("src","https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"),document.body.appendChild(t)}this.$axios.get(`${this.$host}/fms/payment/get/${this.$cid}`).then(t=>{if(t.data.result){if("CARD"==t.data.data.paymentKind)this.payment.paymentCompany=t.data.data.paymentCompany,this.payment.paymentNumber=t.data.data.paymentNumber;else if("VAC"==t.data.data.paymentKind){let e=t.data.data.account;e=e.replace(/(.{3})/,"$1-"),e=e.replace(/(.{10})/,"$1-"),e=e.replace(/(.{13})/,"$1-"),this.payment.account=e,this.payment.accountnm=t.data.data.accountnm}this.text_key+=1}}).catch(t=>{console.log(t)}),this.chkCard(),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100)},watch:{tab(t){if("tab-2"==t){if(0==this.year_items.length)for(let e=10;e>=0;e--)this.year_items.push((new Date).getFullYear()+e)}else"tab-3"==t&&0==this.proof.get_cnt&&this.getBill()},radios(t){t&&(this.disabled=!1,"cash"==t&&this.null_popbill&&this.getFiveDaysPayment())},usage_options:{handler(t,e){this.usage.page=this.usage_options.page,this.usage.items_per_page=this.usage_options.itemsPerPage,this.usage.sortby=this.usage.sortby,this.usage.sortdesc=this.usage.sortdesc,t.sortBy.length>0&&!e.sortBy.length&&!e.sortDesc.length||this.getUsage(),this.updatePageListNumberOfStorage(this.$route.path,"usage",this.usage_options.itemsPerPage)},deep:!0},payment_options:{handler(t,e){this.payment.page=this.payment_options.page,this.payment.items_per_page=this.payment_options.itemsPerPage,this.payment.sortby=this.payment.sortby,this.payment.sortdesc=this.payment.sortdesc,t.sortBy.length>0&&!e.sortBy.length&&!e.sortDesc.length||this.getPayment(),this.updatePageListNumberOfStorage(this.$route.path,"payment",this.payment_options.itemsPerPage)},deep:!0},toggle_exclusive1(t){this.$store.dispatch("soundEffectPlay","click_button"),this.usage_options.page=1,0==t?(this.usage.s_date=this.ago_sd,this.usage.e_date=this.ago_ed,this.usage.sel_date="2ago"):1==t?(this.usage.s_date=this.lm_sd,this.usage.e_date=this.lm_ed,this.usage.sel_date="lm"):2==t&&(this.usage.s_date=this.tm_sd,this.usage.e_date=this.tm_ed,this.usage.sel_date="tm"),this.key.usage_datatable+=1},toggle_exclusive2(t){0==t?(this.payment.s_date=(new Date).getFullYear()-2+"-01-01",this.payment.e_date=(new Date).getFullYear()-2+"-12-"+this.payment.ago_lastD,this.payment.sel_date="ay"):1==t?(this.payment.s_date=(new Date).getFullYear()-1+"-01-01",this.payment.e_date=(new Date).getFullYear()-1+"-12-"+this.payment.last_lastD,this.payment.sel_date="ly"):2==t&&(this.payment.s_date=(new Date).getFullYear()+"-01-01",this.payment.e_date=(new Date).getFullYear()+"-"+((new Date).getMonth()+1<10?"0":"")+((new Date).getMonth()+1)+"-"+((new Date).getDate()<10?"0":"")+(new Date).getDate(),this.payment.sel_date="ty"),this.key.payment_datatable+=1},cardno(){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},birthday(){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},year(){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},month(){this.addCardValid()>0?this.add_card_disabled=!0:this.add_card_disabled=!1},add_card_agree(){this.card_company&&this.card_number&&this.add_card_agree?this.payment_disabled=!1:this.payment_disabled=!0},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},join_dialog(t){t&&(this.add_card_agree=!1,this.add_card_all=!1,this.add_card_terms=!1,this.add_card_persinfo=!1,this.add_card_third=!1,this.cardno="",this.birthday="",this.month="",this.year="")}},computed:{btn_disabled(){let t=!0,e=0;if("tax"==this.radios){let s=this.proof.tax;s.brn&&""!=s.brn.replace(/ /g,"")||(e+=1),s.cname&&""!=s.cname.replace(/ /g,"")||(e+=1),s.president&&""!=s.president.replace(/ /g,"")||(e+=1),s.email&&""!=s.email.replace(/ /g,"")||(e+=1),s.condition&&""!=s.condition.replace(/ /g,"")||(e+=1),s.item&&""!=s.item.replace(/ /g,"")||(e+=1),s.address&&""!=s.address.replace(/ /g,"")||(e+=1),s.postcode&&""!=s.postcode.replace(/ /g,"")||(e+=1),s.detailaddress&&""!=s.detailaddress.replace(/ /g,"")||(e+=1),"mod"==this.proof.mode&&s.brn==this.origin_tax.brn&&s.cname==this.origin_tax.cname&&s.president==this.origin_tax.president&&s.email==this.origin_tax.email&&s.condition==this.origin_tax.condition&&s.item==this.origin_tax.item&&s.address==this.origin_tax.address&&s.detailaddress==this.origin_tax.detailaddress&&s.postcode==this.origin_tax.postcode&&(e+=1),0==e&&(t=!1)}else if("cash"==this.radios){let s=this.proof.cash;s.division&&""!=s.division.replace(/ /g,"")||(e+=1),s.president&&""!=s.president.replace(/ /g,"")||(e+=1),s.email&&""!=s.email.replace(/ /g,"")||(e+=1),s.phone&&""!=s.phone.replace(/ /g,"")||(e+=1),"mod"==this.proof.mode&&s.division==this.origin_cash.division&&s.president==this.origin_cash.president&&s.email==this.origin_cash.email&&s.phone==this.origin_cash.phone&&(e+=1),0==e&&(t=!1)}return t}},methods:{getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],changeTab(t){this.$store.dispatch("soundEffectPlay","click_button"),1==t?this.subtitle="프로그램 월별 사용량을 조회합니다.":2==t?this.subtitle="프로그램 납부 금액을 확인합니다.":3==t&&(this.subtitle="지출증빙 정보를 등록합니다."),"tab-3"==this.tab&&(this.origin_tax&&(this.proof.tax=this.deepClone(this.origin_tax)),this.origin_cash&&(this.proof.cash=this.deepClone(this.origin_cash)))},openPostCode(){let t=this,e=document.getElementById("wrap"),s=Math.max(document.body.scrollTop,document.documentElement.scrollTop);new daum.Postcode({oncomplete(a){let i="",o="";i="R"===a.userSelectedType?a.roadAddress:a.jibunAddress,"R"===a.userSelectedType?(""!==a.bname&&/[동|로|가]$/g.test(a.bname)&&(o+=a.bname),""!==a.buildingName&&"Y"===a.apartment&&(o+=""!==o?", "+a.buildingName:a.buildingName),""!==o&&(o=" ("+o+")"),t.proof.tax.detailaddress=o):t.proof.tax.detailaddress="",t.proof.tax.postcode=a.zonecode,t.proof.tax.address=i,t.$refs.detailaddress[0].focus(),e.style.display="none",document.body.scrollTop=s},width:"100%",height:"100%"}).embed(e),e.style.display="block"},closePostCode(){let t=document.getElementById("wrap");t.style.display="none"},getUsage(){if(this.api_delay)return;this.api_delay=!0;const t=+this.usage.items_per_page,e=(this.usage.page-1)*t,s=this.usage.sortby,a=this.usage.sortdesc,i=this.usage.search;let o=`${this.$host}/academy/${this.$cid}/getusage/${e}/${t}`;void 0!=s&&void 0!=a&&(o+=`/${s}/`+(1==a?"desc":"asc")),this.usage.sel_date&&(o+="?sel_date="+this.usage.sel_date),""!=i&&(o+="&keyword="+i),this.$axios.get(o).then(t=>{if(200==t.status){this.usage.items=[],this.usage.use_cnt=t.data.use_cnt?t.data.use_cnt:0,this.usage.items_length=t.data.rows?t.data.cnt:0;let s=Object.values(t.data.rows);for(let t=0,a=s.length;t{this.usage.items=[],console.log(t)}).finally(()=>{this.api_delay=!1})},getPayment(){if(this.api_delay)return;this.api_delay=!0;const t=+this.payment.items_per_page,e=(this.payment.page-1)*t,s=this.payment.sortby,a=this.payment.sortdesc;let i=`${this.$host}/academy/${this.$cid}/getpayment/${e}/${t}`;void 0!=s&&void 0!=a&&(i+=`/${s}/`+(1==a?"desc":"asc")),this.payment.sel_date&&(i+="?sel_date="+this.payment.sel_date),this.$axios.get(i).then(t=>{if(200==t.status){this.payment.items=[],this.payment.items_length=t.data.rows?t.data.cnt:0;let e=0!=t.data.cnt?t.data.cnt:1,s=Object.values(t.data.rows);for(let a=0,i=s.length;a{this.payment.items=[],this.payment.items_length=0,console.log(t)}).finally(()=>{this.api_delay=!1})},searchKeyword(t){13==t.keyCode&&(this.usage.page=1,this.getUsage())},searchIconClick(){this.getUsage()},customSort(t,e,s){this[t].sortby=e,this[t].sortdesc=s},cc_format(t){var e=t,s=e.match(/[\*|\d]{0,16}/g),a=s&&s[0]||"",i=[];for(let o=0,n=a.length;o0?this.add_card_disabled=!0:this.add_card_disabled=!1},addCardPopup(t){"change"==t&&(this.card_change_status=!0),this.card_company&&this.card_number||(this.join_dialog=!0)},addCardValid(){let t=0,e=this.cardno.replace(/\-/g,"");return e.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},cancelAddCard(){this.add_card_disabled=!0,this.cardno="",this.birthday="",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},addCard(){this.loading_value=!0,this.card_change_status?this.$axios.post(this.$host+"/fms/payment/change/CARD",{cid:this.$cid,cardno:this.cardno.replace(/\-/g,""),birthday:this.birthday,year:String(this.year).substring(2,4),month:this.month,password:"00"}).then(t=>{200==t.status&&("신청완료"==t.data.member.status?(this.payment.paymentCompany=t.data.member.paymentCompany,this.payment.paymentNumber=t.data.member.paymentNumber,this.join_dialog=!1,setTimeout(()=>{this.loading_value=!1,this.jad_msg="카드가 변경되었습니다.",this.join_alert_dialog=!0,this.closeDialog("kind_change_card"),this.chk_card_status=!0},100)):(this.loading_value=!1,"DUP"==t.data.error?this.jad_msg="이미 등록된 카드입니다.":this.jad_msg=t.data.error,this.join_alert_dialog=!0))}).catch(t=>{this.loading_value=!1,console.log(t)}):this.$axios.post(this.$host+"/fms/payment/add/CARD",{cid:this.$cid,cardno:this.cardno.replace(/\-/g,""),birthday:this.birthday,year:String(this.year).substring(2,4),month:this.month,password:"00"}).then(t=>{200==t.status&&(t.data.result?(this.payment.paymentCompany=t.data.data.paymentCompany,this.payment.paymentNumber=t.data.data.paymentNumber,this.join_dialog=!1,setTimeout(()=>{this.loading_value=!1,this.jad_msg="카드가 등록되었습니다.",this.join_alert_dialog=!0,this.chk_card_status=!0},100)):(this.loading_value=!1,"DUP"==t.data.error?this.jad_msg="이미 등록된 카드입니다.":this.jad_msg=t.data.error,this.join_alert_dialog=!0))}).catch(t=>{this.loading_value=!1,console.log(t)})},chkCard(){this.chk_card_status||this.$axios.get(`${this.$host}/fms/payment/get/CARD/${this.$cid}`).then(t=>{t.data.result&&(this.payment.paymentCompany=t.data.data.paymentCompany,this.payment.paymentNumber=t.data.data.paymentNumber,this.chk_card_status=!0)}).catch(t=>{console.log(t)})},cardCancel(){this.loading_value=!0,this.$axios.delete(`${this.$host}/fms/payment/delete/${this.$cid}`).then(t=>{if(this.closeDialog(),this.loding_dialog_value=!1,t.data.result){let e=this.$storage.get("user");e.paymentkind="VAC",this.$storage.set("user",e),this.payment.account=t.data.data.account,this.payment.accountnm=t.data.data.accountnm,this.kind_change_radios="VAC",this.payment.paymentCompany=null,this.payment.paymentNumber=null,this.chk_card_status=!1,this.loading_value=!1,this.openDialog("success_card_cancel",!1,"end"),setTimeout(()=>{this.caution_key++},0)}else this.loading_value=!1,this.openDialog("fail_card_cancel",!1,"end")}).catch(t=>{console.log(t),this.loading_value=!1})},kindChange(){this.loading_value=!0,this.$axios.put(this.$host+"/fms/payment/change",{cid:this.$cid,paymentKind:"CARD"}).then(t=>{if(t.data.result){if("CARD"==t.data.data.paymentKind){this.closeDialog();let e=this.$storage.get("user");e.paymentkind="CARD",this.$storage.set("user",e),this.payment.paymentCompany=t.data.data.paymentCompany,this.payment.paymentNumber=t.data.data.paymentNumber,this.loading_value=!1,this.change_status=!0,setTimeout(()=>{this.caution_key++},0)}}else this.loading_value=!1,this.openDialog("fail_kind_change",!1,"end")}).catch(t=>{console.log(t),this.loading_value=!1})},taxEvent(t){["CARD","KEYIN"].includes(t)?this.openAlert("card_tax_info"):this.openAlert("vac_pc_info")},getBill(){this.$axios.get(`${this.$host}/academy/${this.$cid}/getpopbill`).then(t=>{if(200==t.status&&t.data&&t.data.id){if(this.proof.mode="mod",this.radios="1"==t.data.is_tax_bill?"tax":"cash",this.proof.is_bill="1"==t.data.is_tax_bill?"tax":"cash",t.data.brn){var e=t.data.brn;e=e.replace(/(.{3})/,"$1-"),e=e.replace(/(.{6})/,"$1-"),this.proof.tax.brn=e,this.proof.tax.org_brn=e}this.proof.tax.cname=t.data.corporation_name,this.proof.tax.president=t.data.representative_tax,this.proof.tax.email=t.data.email_tax,this.proof.tax.condition=t.data.business_conditions,this.proof.tax.item=t.data.business_item,this.proof.tax.address=t.data.business_address,this.proof.tax.detailaddress=t.data.business_address_2,this.proof.tax.postcode=t.data.zip_code,this.proof.cash.division=t.data.trade_usage,this.proof.cash.president=t.data.representative_cash,this.proof.cash.email=t.data.email_cash,this.proof.cash.phone=t.data.phone_number,this.origin_tax=this.deepClone(this.proof.tax),this.origin_cash=this.deepClone(this.proof.cash),t.data.brn&&this.$nextTick(()=>{document.getElementById("brn_msg").innerHTML=" "})}else this.null_popbill=!0}).catch(t=>{console.log(t)})},divisionChange:function(t){let e=document.getElementsByClassName("division_class")[0];e.innerText="확인",e.classList.add("success--text"),this.division_tmp=t},selectDivision:function(){let t=document.getElementsByClassName("division_class")[0];"취소"==t.innerText?Tr.$emit("dialog",!1):"확인"==t.innerText&&(Tr.$emit("dialog",!1),this.proof.cash.division=this.division_tmp,this.proof.division_group=1,t.innerText="취소",t.classList.remove("success--text"))},keyupPhone(t){return 1==t.target.value.length&&"0"!==t.target.value||"0"!==t.target.value.charAt(0)?(this.proof.cash.phone="",!1):void 0},confirmBill(){let t=0;if("tax"==this.radios){if(this.proof.tax.brn&&""!=this.proof.tax.brn.replace(/ /g,"")){let e=this.proof.tax.brn.replace(/\-/g,""),s="137137135",a=0;for(let t=0;t<9;t++)a+=parseInt(e.substr(t,1))*parseInt(s.substr(t,1));a+=parseInt(5*e.substr(8,1)/10),(10-a%10)%10!=e.substr(9,1)&&(document.getElementById("brn_msg").style.display="block",document.getElementById("brn_msg").innerText="사업자등록번호가 유효하지 않습니다.",t+=1)}if(0!=t)return!1}this.openDialog("confirm_bill")},submitBill(){let t="tax"==this.radios?"T":"B";this.$axios.post(`${this.$host}/academy/${this.$cid}/setpopbill/${t}`,{is_tax_bill:"tax"==this.radios?"on":"off",is_cash_receipt:"cash"==this.radios?"on":"off",brn:this.proof.tax.brn.replace(/\-/g,""),corporation_name:this.proof.tax.cname,representative_tax:this.proof.tax.president,business_address:this.proof.tax.address,business_address_2:this.proof.tax.detailaddress,zip_code:this.proof.tax.postcode,business_conditions:this.proof.tax.condition,business_item:this.proof.tax.item,email_tax:this.proof.tax.email,representative_cash:this.proof.cash.president,trade_usage:this.proof.cash.division,phone_number:this.proof.cash.phone,email_cash:this.proof.cash.email}).then(t=>{t.data.res&&(this.closeDialog(),setTimeout(()=>{const t=`지출증빙 정보가 ${""!=this.proof.is_bill&&this.proof.is_bill!=this.radios?"변경":"등록"}되었습니다.`;this.openAlert(t),setTimeout(()=>{this.proof.is_bill="tax"==this.radios?"tax":"cash","tax"==this.proof.is_bill&&(document.getElementById("brn_msg").innerHTML=" "),this.origin_tax=this.deepClone(this.proof.tax),this.origin_cash=this.deepClone(this.proof.cash),this.proof.mode="mod"},2100)},200))}).catch(t=>{console.log(t)})},movePage(){this.move_page_status=1,this.$router.push({name:this.to})},radioClick(t){""==this.proof.is_bill?(this.radios=t,this.disabled=!1):this.proof.is_bill!=t?(this.tmp=t,this.openAlert("unable_to_change_info")):(this.radios=t,this.disabled=!1,this.$nextTick(()=>{document.getElementById("brn_msg")&&(document.getElementById("brn_msg").innerHTML=" ")}))},brnmsgResize(){this.$nextTick(()=>{let t=document.getElementById("brn_msg").offsetHeight,e=document.getElementsByClassName("input_div");for(let s=0,a=e.length;s{200===t.status&&0===t.data&&(this.closeDialog(),this.openDialog("null_5_days_bill"))}).catch(t=>{console.error(t)})}},beforeDestroy(){this.allBusDestroy()}},pe=_e,me=(s("7cf1"),Object(u["a"])(pe,he,ue,!1,null,null,null)),ge=me.exports,be=function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-3 h-100",class:"user-assignclass"==t.$route.name?"":"white"},[e("router-view")],1)},fe=[],ye={},ve=Object(u["a"])(ye,be,fe,!1,null,null,null),xe=ve.exports,ke=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"teachervue",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("선생님 관리")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v("학생 관리를 위해 선생님을 등록/관리합니다.")])])]),e("div",{staticClass:"py-2 mt-2",staticStyle:{"border-top":"thin solid #edeeef"}},[e("select-box",{key:"ov-"+t.overflow_component,attrs:{items:t.sel_list,disabled:!t.select_row,itemDisabled:"customdisabled",parentClass:"d-inline-block"},on:{change:t.select_row_event}}),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",id:"search",placeholder:"검색",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),e(L["a"],{staticClass:"float-right btn-in-menu",attrs:{color:"success",elevation:"0"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.go_add_teacher()}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-plus")]),t._v(" "),e("span",[t._v("선생님 등록")])],1),e("div",{staticStyle:{clear:"both"}})],1),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{attrs:{headers:t.headers_arr,items:t.items,"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":t.item_key,"expand-icon":"mdi-menu-down","no-data-text":"등록된 선생님이 없습니다.","no-results-text":"검색된 선생님이 없습니다.","footer-props":{showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},search:t.search,"sort-by":t.sortby,"sort-desc":t.sortdesc,"items-per-page":t.items_per_page},on:{"update:expanded":function(e){t.expanded=e},"click:row":t.toggleClassRow,"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{"items-per-page":t.items_per_page},on:{"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a,item:i}){return[e(q["a"],{directives:[{name:"show",rawName:"v-show",value:a,expression:"isExpanded"}],on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i)}}},[t._v("mdi-menu-down")]),e(q["a"],{directives:[{name:"show",rawName:"v-show",value:!a,expression:"!isExpanded"}],on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i)}}},[t._v("mdi-menu-right")])]}},{key:"item.uclass",fn:function({item:s}){return[e("span",{staticClass:"text-usn",class:["대표 원장"==s.uclass?"pink--text":"info--text","font-weight-bold"]},[t._v("\n "+t._s(s.uclass)+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.loginid",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.loginid)+"\n ")])]}},{key:"item.phone",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(t.autoHyphen(s.phone))+"\n ")])]}},{key:"item.postdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.postdate)+"\n ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.headers_arr.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return[e("tr",[e("td",[e("div",{staticClass:"dotted"})]),e("td",[e("b",{staticClass:"mr-4 text-usn"},[t._v("클래스")]),e("span",{staticClass:"text-usn",style:"담당반이 없습니다."===s.sub_data?"color: grey;":"color: black;"},[t._v("\n "+t._s(s.sub_data)+"\n ")])])])]},proxy:!0}],null,!0)})],1)]}}],null,!0)}),e("pre-cautions",{attrs:{type:0,data:t.$data}})],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"teacher_del_confirm"},slot:"teacher_del_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("선택 항목을 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 선생님은 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.teacher_del}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)])],1)},we=[],Ce={name:"login",components:{Dialogs:st["a"],preFont:et["a"],preCautions:at["a"]},data(){return{page:1,search:"",expanded:[],select_id:"",select_id_class:"",select_row:!1,datatable_component:0,overflow_component:0,items_per_page:10,sel_list:[{text:"선생님 수정",value:"0",disabled:!1},{text:"선생님 삭제",value:"1",disabled:!1}],headers_arr:[{text:"구분",value:"uclass",align:"left",sortable:!0},{text:"이름",value:"name",align:"left",sortable:!0},{text:"아이디",value:"loginid",align:"left",sortable:!0},{text:"전화번호",value:"phone",align:"left",sortable:!0},{text:"등록일",value:"postdate",align:"left",sortable:!0}],items:[],hide_default_footer:!1,item_key:"uid",sortby:void 0,sortdesc:void 0,user_id:null,user_class:null}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){this.user_id=this.$storage.get("user").id,this.user_class=this.$storage.get("user").uclass,this.items_per_page=this.getPageListNumberOfStorage(this.$route.path)},watch:{items_per_page(t){this.updatePageListNumberOfStorage(this.$route.path,null,this.items_per_page)}},computed:{...Object(tt["b"])(["getUclass_txt"])},mounted(){void 0==this.$route.params.dialog||"success"!=this.$route.params.dialog&&"modify_success"!=this.$route.params.dialog||("success"==this.$route.params.dialog?this.openAlert("add_teacher_success"):"modify_success"==this.$route.params.dialog&&this.openAlert("modify_teacher_success")),Tr.$on("close_event",t=>{1==t.status&&(this.overflow_component+=1)}),this.get_teacher(),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100)},methods:{getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],toggleClassRow(t){let e=!0,s=!0;if("29"==t.tclass||["20","21"].includes(this.user_class)||"22"==this.user_class&&"28"==t.tclass?(e=!0,s=!0):(e=!1,s=!1),this.sel_list[0].disabled=e,this.sel_list[1].disabled=s,this.overflow_btn+="",this.expanded.length>0&&this.expanded[0].uid==t.uid)this.select_row=!1,this.select_id="",this.select_id_class="",this.expanded.pop();else if(this.select_row=!0,this.select_id=t.uid,this.select_id_class=t.tclass,""===t.sub_data){let e=`${this.$host}/user/${this.$cid}/getteacher/${t.uid}`;this.$axios.get(e).then(e=>{200==e.status?t.sub_data=e.data:204==e.status&&(t.sub_data="담당반이 없습니다."),this.expanded.pop(),this.expanded.push(t)}).catch(t=>{console.log(t)})}else this.expanded.pop(),this.expanded.push(t)},select_row_event(t){if(0==t){let t="",e="",s="",a="",i="",o="";for(let n=0,l=this.items.length;n{if(200==t.status){let e=Object.values(t.data);for(let t=0,s=e.length;t{console.log(t)})},teacher_del(){""==this.select_id&&""==this.select_id_class||this.select_id_class==this.$store.state.UCLASS_PRESIDENT?this.openAlert("error"):this.$axios.post(`${this.$host}/user/${this.$cid}/delteacher`,{uid:this.select_id}).then(t=>{if(200==t.status){this.closeDialog();let t=this.items.findIndex(t=>t.uid==this.select_id);-1!=t&&this.items.splice(t,1),this.expanded=[],this.select_row=!1,this.datatable_component+=1,this.overflow_component+=1}else this.openAlert("error")}).catch(t=>{console.log(t),this.openAlert("error")})},go_add_teacher(){this.$router.push({name:"user-teacher-oper"})},customSort(t,e,s){this.sortby=e,this.sortdesc=s}},beforeDestroy(){this.allBusDestroy()}},Se=Ce,$e=(s("4482"),Object(u["a"])(Se,ke,we,!1,null,null,null)),Ae=$e.exports,De=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"teacheropervue",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("선생님 관리")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v("학생 관리를 위해 선생님을 등록/관리합니다.")])])]),e("div",{staticClass:"py-2 mt-2 border-ede thin-t"},[e(L["a"],{staticClass:"float-right btn-in-menu",attrs:{color:"success",elevation:"0",outlined:""},on:{click:function(e){return t.backbtn()}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-left")]),t._v(" 뒤로가기\n ")],1),e("div",{staticStyle:{clear:"both"}})],1),e(U["a"],{staticClass:"mb-8",attrs:{align:"center",justify:"center"}},[e(j["a"],{attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e(Et["a"],{ref:"form",attrs:{autocomplete:"off"},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[e("label",{attrs:{for:"tclass"}},[t._v("구분")]),e(X["a"],{staticClass:"select_field c-form-input cursor",staticStyle:{margin:"5px 0 10px 0"},attrs:{id:"tclass",name:"tclass",type:"text",outlined:"",dense:"",required:"","hide-details":"",readonly:"",color:"success",rules:[t=>!!t||""],disabled:t.disabled},on:{click:function(e){return t.select_class()}},model:{value:t.tclass,callback:function(e){t.tclass=e},expression:"tclass"}}),e("div",{staticClass:"padding-divider"}),e("label",{attrs:{for:"tname"}},[t._v("선생님 이름")]),e(X["a"],{staticClass:"c-form-input",staticStyle:{margin:"5px 0 10px 0","ime-mode":"disabled"},attrs:{autocomplete:"off",id:"tname",name:"tname",type:"text",outlined:"",dense:"",required:"","hide-details":"",color:"success",rules:[t=>!!t||"",t=>!!t.trim()||""]},model:{value:t.tname,callback:function(e){t.tname=e},expression:"tname"}}),e("div",{staticClass:"padding-divider"}),e("label",{attrs:{for:"tphone"}},[t._v("휴대폰 번호")]),e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:["###-###-####","###-####-####"],expression:"['###-###-####', '###-####-####']"}],staticClass:"c-form-input",staticStyle:{margin:"5px 0 10px 0"},attrs:{id:"tphone",name:"tphone",type:"text",outlined:"",dense:"",required:"",autocomplete:"off",color:"success",placeholder:"숫자로만 입력하세요.",rules:"add"==t.mode?t.addRules.phone:t.modifyRules.phone,"hide-details":""==t.phone_error_msg,"error-messages":t.phone_error_msg},on:{keyup:t.keyupPhone},model:{value:t.tphone,callback:function(e){t.tphone=e},expression:"tphone"}}),e("div",{staticClass:"padding-divider"}),e("label",{attrs:{for:"tloginid"}},[t._v("아이디")]),e(X["a"],{ref:"tloginid",staticClass:"c-form-input",staticStyle:{margin:"5px 0 10px 0"},attrs:{id:"tloginid",name:"tloginid",type:"text",outlined:"",dense:"",required:"",autocomplete:"off",color:"success",placeholder:"영문과 숫자, _ 조합으로 입력하세요.","hide-details":""==t.tlogonid_error_msg,"error-messages":t.tlogonid_error_msg,rules:[t=>!!t||"",t=>!!t.trim()||""]},model:{value:t.tloginid,callback:function(e){t.tloginid=e},expression:"tloginid"}}),e("div",{staticClass:"padding-divider"}),e("input",{staticStyle:{width:"0",height:"0"},attrs:{type:"hidden"}}),e("label",{attrs:{for:"tpassword"}},[t._v("비밀번호")]),e(X["a"],{staticClass:"c-form-input security-input",class:""==t.tpassword?"nnfont":"msfont",staticStyle:{margin:"5px 0 10px 0"},attrs:{id:"tpassword",name:"tpassword",type:"text",outlined:"",dense:"",required:"",autocomplete:"off",color:"success",placeholder:"add"==t.mode?"":"변경 시 기재하여주세요.",rules:"add"==t.mode?t.addRules.password:t.modifyRules.password,"hide-details":""==t.pw_error_msg,"error-messages":t.pw_error_msg},model:{value:t.tpassword,callback:function(e){t.tpassword=e},expression:"tpassword"}}),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"text-center"},[void 0==this.$route.params.operuid?e(L["a"],{staticClass:"mr-4 mt-2",staticStyle:{width:"150px"},attrs:{disabled:!t.valid,depressed:"",color:"success"},on:{click:t.validate}},[t._v("\n 등록\n ")]):void 0!=this.$route.params.operuid?e(L["a"],{staticClass:"mr-4 mt-2",staticStyle:{width:"150px"},attrs:{disabled:t.valid_oper,depressed:"",color:"success"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.validate_modify()}}},[t._v("\n 수정\n ")]):t._e()],1)],1)],1)],1)],1)],1),e("Dialogs",[e("div",{staticClass:"radio-dialog",attrs:{slot:"teacher_class_change"},slot:"teacher_class_change"},[e(M["c"],{staticClass:"justify-start headline text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("구분")])])]),e(M["b"],[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.teacher_class_change},model:{value:t.teacher_class_group,callback:function(e){t.teacher_class_group=e},expression:"teacher_class_group"}},t._l(["부원장","상담실장","선생님","기타"],(function(t,s){return e(nt["a"],{key:"teacher-radio-"+s,attrs:{label:t,value:t,color:"success"}})})),1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.teacher_class_submit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"teacher_class cursor"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"teacher_back"},slot:"teacher_back"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성 중인 내용이 있습니다."),e("br"),t._v("뒤로 가시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.back}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"teacher_confirm"},slot:"teacher_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("선생님을 등록하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:"",disabled:t.submitDisabled},on:{click:t.teacher_submit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"teacher_modify_confirm"},slot:"teacher_modify_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("선생님 정보를 수정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:"",disabled:t.submitDisabled},on:{click:t.teacher_submit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("수정")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"duplicate_id"},slot:"duplicate_id"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("중복된 아이디가 있습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"add_teacher_error"},slot:"add_teacher_error"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("오류 코드 : "+t._s(t.error_code))])]),e("h4",[e("b",[t._v("담당자에게 문의해주세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)])],1)},Pe=[],Be={name:"login",components:{Dialogs:st["a"],preFont:et["a"]},directives:{mask:Nt["mask"]},data(){return{mask:"###-####-####",valid:!0,valid_oper:!0,disabled:!1,mode:"add",tclass:"",tclass_tmp:"",tname:"",tphone:"",phone_error_msg:"",tloginid:"",tlogonid_error_msg:"",tpassword:"",tpassword_tmp:"",pw_error_msg:"",operclass:"",opername:"",operphone:"",operloginid:"",operpassword:"",returnpage:"",returnitems_per_page:"",returnsortby:"",returnsortdesc:"",teacher_class_group:1,error_code:"",cs1:0,cs2:0,cs3:0,cs4:0,cs5:0,err_cnt:0,addRules:{phone:[t=>!!t||"",t=>t.length>=12&&t.length<14||""],password:[t=>!!t||"6~20자 영문 소문자, 숫자, 특수문자 등 으로 조합하세요.",t=>!!t.trim()||"6~20자 영문 소문자, 숫자, 특수문자 등 으로 조합하세요.",t=>t.length>=6&&t.length<=20||"6~20자 영문 소문자, 숫자, 특수문자 등 으로 조합하세요.",t=>{var e=/^[a-z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]*$/,s=!1;if(e.test(t)){var a=t.search(/[0-9]/g),i=t.search(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]+/g),o=t.search(/[a-z]/g);a>-1&&i>-1&&(s=!0),a>-1&&o>-1&&(s=!0),o>-1&&i>-1&&(s=!0),o>-1&&a>-1&&i>-1&&(s=!0)}return s||"6~20자 영문 소문자, 숫자, 특수문자 등 으로 조합하세요."}]},modifyRules:{phone:[],password:[]},to:"",move_page_status:0,submitDisabled:!1,phone_cases:["010","011","016","017","019"]}},created(){void 0!=this.$route.params.operuid&&(this.mode="modify",this.tclass=this.$route.params.operclass_txt,this.tname=this.$route.params.opername,this.tphone=this.$route.params.operphone,this.tloginid=this.$route.params.operloginid,this.tpassword="",this.operclass=this.$route.params.operclass_txt,this.opername=this.$route.params.opername,this.operphone=this.$route.params.operphone,this.operloginid=this.$route.params.operloginid,this.operpassword=this.$route.params.operpassword,29==this.$route.params.operclass&&(this.disabled=!0)),this.returnpage=void 0!=this.$route.params.page?this.$route.params.page:"",this.returnitems_per_page=void 0!=this.$route.params.items_per_page?this.$route.params.items_per_page:"",this.returnsortby=void 0!=this.$route.params.returnsortby?this.$route.params.returnsortby:void 0,this.returnsortdesc=void 0!=this.$route.params.returnsortdesc?this.$route.params.returnsortdesc:void 0},mounted(){document.getElementById("tclass").style.cursor="pointer"},watch:{tclass(t){this.editingCheck(),"modify"==this.mode&&this.operclass!=t&&""!=t?this.changeStatus(1,!0):this.changeStatus(1,!1)},tname(t){this.editingCheck(),"modify"==this.mode&&this.opername!=t&&""!=t?this.changeStatus(2,!0):this.changeStatus(2,!1)},tphone(t){this.editingCheck(),!/^01([0|1|6|7|9])-?([0-9]{3,4})-?([0-9]{4})$/i.test(t)||t.length<12?this.phone_error_msg="10자 이상의 숫자로만 입력하세요.":this.phone_error_msg="",t=this.removeHyphen(t),"modify"==this.mode&&this.operphone!=t&&""!=t?this.changeStatus(3,!0):this.changeStatus(3,!1)},tloginid(t){this.editingCheck(),/^[a-z0-9_]+$/i.test(t)?this.tlogonid_error_msg="":this.tlogonid_error_msg="영문과 숫자, _ 조합으로 입력하세요.","modify"==this.mode&&this.operloginid!=t&&""!=t.replace(/ /g,"")&&/^[a-z0-9_]+$/i.test(t)?this.changeStatus(4,!0):this.changeStatus(4,!1)},tpassword(t){this.editingCheck();let e=!1;(t.length>=8&&t.length<=20||0==t.length)&&(e=!0);let s=/^[a-z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]*$/,a=!1;if(s.test(t)){let e=t.search(/[0-9]/g),s=t.search(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]+/g),i=t.search(/[a-z]/g);e>-1&&s>-1&&(a=!0),e>-1&&i>-1&&(a=!0),i>-1&&s>-1&&(a=!0),i>-1&&e>-1&&s>-1&&(a=!0)}"add"==this.mode?""!=t.replace(/ /g,"")&&a&&e?this.pw_error_msg="":this.pw_error_msg="8~20자 영문 소문자, 숫자, 특수문자 등 으로 조합하세요.":this.operpassword!=t&&""!=t&&a&&e?(this.pw_error_msg="",this.changeStatus(5,!0)):(this.pw_error_msg="8~20자 영문 소문자, 숫자, 특수문자 등 으로 조합하세요.",this.changeStatus(5,!1))}},computed:{...Object(tt["b"])(["getUclass"])},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)return"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s(),!1;{let e=(this.tclass?1:0)+(this.tname?1:0)+(this.tphone?1:0)+(this.tloginid?1:0)+(this.tpassword?1:0);if(""!=e||0!=e)return this.openDialog("move_page"),!1;"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},methods:{movePage(){this.move_page_status=1,this.$router.push({name:this.to})},back(){this.move_page_status=1,this.$router.push({name:"user-teacher",params:{returnpage:this.returnpage,returnitems_per_page:this.returnitems_per_page,returnsortby:this.returnsortby,returnsortdesc:this.returnsortdesc}})},validate(){this.$refs.form.validate()&&this.teacherDupChk("add")},validate_modify(){this.$refs.form.validate()&&this.teacherDupChk("modify")},backbtn(){let t=this.tclass+this.tname+this.tphone+this.tloginid+this.tpassword;""==t?(this.$store.dispatch("soundEffectPlay","click_button"),this.move_page_status=1,this.$router.push({name:"user-teacher",params:{returnpage:this.returnpage,returnitems_per_page:this.returnitems_per_page,returnsortby:this.returnsortby,returnsortdesc:this.returnsortdesc}})):this.openDialog("teacher_back")},select_class(){this.openDialog("teacher_class_change")},teacher_class_change(t){let e=document.getElementsByClassName("teacher_class")[0];e.innerText="확인",e.classList.add("success--text"),this.tclass_tmp=t},teacher_class_submit(){let t=document.getElementsByClassName("teacher_class")[0];"취소"==t.innerText?Tr.$emit("dialog",!1):"확인"==t.innerText&&(Tr.$emit("dialog",!1),this.tclass=this.tclass_tmp,this.teacher_class_group+=1,t.innerText="취소",t.classList.remove("success--text"))},teacherDupChk(t){this.$axios.post(this.$host+"/user/dupchk-user",{uid:this.$route.params.operuid?this.$route.params.operuid:void 0,loginid:this.tloginid}).then(e=>{200==e.status?"add"==t?this.openDialog("teacher_confirm"):"modify"==t&&this.openDialog("teacher_modify_confirm"):202==e.status&&this.openDialog("duplicate_id")}).catch(t=>{console.log(t)})},teacher_submit(){this.submitDisabled=!0;let t=this.tclass;t=this.$store.getters.getUclass(t);const e={loginid:this.tloginid,id_change_status:this.tloginid==this.operloginid?0:1,password:this.tpassword,uclass:t,name:this.tname,phone:this.removeHyphen(this.tphone)};"modify"==this.mode&&(e.uid=this.$route.params.operuid),this.$axios.post(`${this.$host}/user/${this.$cid}/${this.mode}teacher`,e).then(t=>{this.closeDialog(),200==t.status?this.$nextTick(()=>{"add"==this.mode?(this.move_page_status=1,this.$router.push({name:"user-teacher",params:{dialog:"success",returnpage:this.returnpage,returnitems_per_page:this.returnitems_per_page,returnsortby:this.returnsortby,returnsortdesc:this.returnsortdesc}})):"modify"==this.mode&&(this.move_page_status=1,this.$router.push({name:"user-teacher",params:{dialog:"modify_success",returnpage:this.returnpage,returnitems_per_page:this.returnitems_per_page,returnsortby:this.returnsortby,returnsortdesc:this.returnsortdesc}}))}):202==t.status?this.openDialog("duplicate_id"):(this.error_code=t.status,this.openDialog("teacher_class_change")),this.submitDisabled=!1}).catch(t=>{console.log(t),this.closeDialog(),this.submitDisabled=!1})},changeStatus(t,e){1==e?(this["cs"+t]=1,""==this.tlogonid_error_msg&&""==this.phone_error_msg&&""==this.pw_error_msg?this.valid_oper=!1:this.valid_oper=!0):(this["cs"+t]=0,0==this.cs1&&0==this.cs2&&0==this.cs3&&0==this.cs4&&0==this.cs5?this.valid_oper=!0:""==this.tlogonid_error_msg&&""==this.phone_error_msg&&""==this.pw_error_msg?this.valid_oper=!1:this.valid_oper=!0)},keyupPhone(t){const e=t.target.value;return 1==e.length&&"0"!==e||"0"!==e.charAt(0)||e.length>2&&!this.phone_cases.includes(e.substring(0,3))?(this.tphone="",!1):void 0},editingCheck(){this.tclass+this.tname+this.tphone+this.tloginid+this.tpassword!=""&&(this.$store.state.editing_status=!0)}},beforeDestroy(){this.allBusDestroy()}},Te=Be,Ee=(s("353a"),s("5dff"),Object(u["a"])(Te,De,Pe,!1,null,null,null)),Ie=Ee.exports,ze=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"classvue",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("클래스 관리")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v("학생 관리를 위해 클래스를 등록/관리합니다.")])])]),e("div",{staticClass:"py-2 mt-2",staticStyle:{"border-top":"thin solid #edeeef"}},[e("select-box",{key:t.overflow_component,attrs:{items:t.sel_list,disabled:!t.select_row,itemDisabled:"customdisabled"},on:{change:t.select_row_event}}),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",placeholder:"검색",id:"search",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),e(L["a"],{staticClass:"float-right btn-in-menu",attrs:{color:"success",elevation:"0"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.push_class_add()}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-plus")]),t._v(" 클래스 등록\n ")],1),e("div",{staticStyle:{clear:"both"}})],1),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.datatable_component,attrs:{headers:t.headers_arr,items:t.items,"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":t.item_key,"expand-icon":"mdi-menu-down","no-data-text":"등록된 학생이 없습니다.","no-results-text":"검색된 학생이 없습니다.","footer-props":{showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},search:t.search,"sort-by":t.sortby,"sort-desc":t.sortdesc,"items-per-page":t.items_per_page},on:{"update:expanded":function(e){t.expanded=e},"click:row":t.toggleClassRow,"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{"items-per-page":t.items_per_page},on:{"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-expand",fn:function({item:s,expand:a,isExpanded:i}){return[e(q["a"],{directives:[{name:"show",rawName:"v-show",value:i,expression:"isExpanded"}],on:{click:function(e){e.stopPropagation(),a(!i),t.toggleClassRow(s)}}},[t._v("mdi-menu-down")]),e(q["a"],{directives:[{name:"show",rawName:"v-show",value:!i,expression:"!isExpanded"}],on:{click:function(e){e.stopPropagation(),a(!i),t.toggleClassRow(s)}}},[t._v("mdi-menu-right")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"info--text font-weight-bold text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.tname",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.tname)+"\n ")])]}},{key:"item.lesson_day",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.lesson_day)+"\n ")])]}},{key:"item.student_cnt",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.student_cnt)+"\n ")])]}},{key:"item.speed",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.speed)+"\n ")])]}},{key:"item.postdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.postdate)+"\n ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",staticStyle:{"border-bottom":"1px solid rgba(0, 0, 0, 0.12)"},attrs:{colspan:t.headers_arr.length+1}},[e(G["a"],{staticClass:"custom_simple_table"},["string"==typeof s.sub_data?[e("tr",[e("td"),e("td",[e("div",{staticClass:"dotted"})]),e("td",{staticStyle:{"white-space":"nowrap","text-overflow":"clip",overflow:"visible"}},[e("span",{staticClass:"text-usn",staticStyle:{color:"#9e9e9e"}},[t._v(t._s(s.sub_data))])]),e("td"),e("td"),e("td"),e("td")])]:"object"==typeof s.sub_data?t._l(s.sub_data,(function(s,a){return e("tr",{key:a},t._l(t.headers_arr.length+1,(function(a){return e("td",{key:a,style:1==a||2==a?"border-bottom: unset !important;":""},[2==a?e("div",{staticClass:"dotted"}):3==a?e("span",{staticClass:"text-usn"},[t._v(t._s(s.uname))]):4==a?e("b",{staticClass:"text-usn"},[t._v(t._s(s.loginid))]):t._e()])})),0)})):t._e()],2)],1)]}}],null,!0)}),e("pre-cautions",{attrs:{type:0,data:t.$data}})],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"null_classroom"},slot:"null_classroom"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("생성된 클래스가 없습니다."),e("br"),t._v("클래스를 먼저 등록해주세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.push_class_add}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("등록")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"del_class_confirm"},slot:"del_class_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("선택 항목을 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 클래스는 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.del_class}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)])],1)},Oe=[],Ne={name:"login",components:{Dialogs:st["a"],preFont:et["a"],preCautions:at["a"]},data(){return{overflow_component:0,datatable_component:0,search:"",expanded:[],assign_user:[],sel_list:[{text:"클래스 수정",value:"0",disabled:!1},{text:"클래스 삭제",value:"1",disabled:!1}],headers_arr:[{text:"클래스",value:"name",align:"left",sortable:!0},{text:"담임",value:"tname",align:"left",sortable:!0},{text:"수업요일",value:"lesson_day",align:"left",sortable:!0},{text:"학생수",value:"student_cnt",align:"left",sortable:!0},{text:"재생속도",value:"speed",align:"left",sortable:!0},{text:"생성일",value:"postdate",align:"left",sortable:!0}],items:new Array,items_per_page:10,hide_default_footer:!1,item_key:"class_id",select_row:!1,select_id:"",sortby:void 0,sortdesc:void 0,user_id:null,user_class:null}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created:function(){this.user_id=this.$storage.get("user").id,this.user_class=this.$storage.get("user").uclass,this.items_per_page=this.getPageListNumberOfStorage(this.$route.path)},mounted(){void 0==this.$route.params.dialog||"success"!=this.$route.params.dialog&&"modify_success"!=this.$route.params.dialog||("success"==this.$route.params.dialog?this.openAlert("클래스가 생성되었습니다."):"modify_success"==this.$route.params.dialog&&this.openAlert("클래스 정보가 수정되었습니다.")),Tr.$on("close_event",t=>{1==t.status&&(this.overflow_component+=1)}),this.get_class(),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100)},watch:{items_per_page(t){this.updatePageListNumberOfStorage(this.$route.path,null,this.items_per_page)}},methods:{getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],push_class_add:function(){this.$router.push({name:"user-class-oper"})},get_class:function(){let t=`${this.$host}/class/${this.$cid}/getclassroom?uid=${this.user_id}&uclass=${this.user_class}`;this.$axios.get(t).then(t=>{if(200==t.status){this.items=[];let e=Object.values(t.data);for(let t=0,s=e.length;t{console.log(t)})},toggleClassRow(t){let e=!0;e=!!["20","21"].includes(this.user_class),this.sel_list[0].disabled=e,this.sel_list[1].disabled=e,this.expanded.length>0&&this.expanded[0].class_id==t.class_id?(this.select_row=!1,this.select_id="",this.expanded.pop()):(this.select_row=!0,this.select_id=t.class_id,0==t.sub_data.length?this.$axios.get(`${this.$host}/class/${this.$cid}/getstudent/${this.select_id}`).then(e=>{204==e.status?t.sub_data="배정된 학생이 없습니다.":200==e.status&&(t.sub_data=e.data),this.expanded.pop(),this.expanded.push(t)}).catch(t=>{console.log(t)}):(this.expanded.pop(),this.expanded.push(t)))},select_row_event:function(t){if(0==t){let t=this.items;for(let e=0,s=t.length;e{if(200==t.status){this.closeDialog();let t=this.items;for(let e=0,s=t.length;e{console.log(t)})},customSort(t,e,s){this.sortby=e,this.sortdesc=s}},beforeDestroy(){this.allBusDestroy()}},Le=Ne,Me=(s("1737"),Object(u["a"])(Le,ze,Oe,!1,null,null,null)),je=Me.exports,Re=s("ba0d"),qe=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"h-100",attrs:{id:"classopervue",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("클래스 관리")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v("학생 관리를 위해 클래스를 등록/관리합니다.")])])]),e("div",{staticClass:"py-2 mt-2 border-ede thin-t"},[e(L["a"],{staticClass:"float-right btn-in-menu",attrs:{color:"success",elevation:"0",outlined:""},on:{click:function(e){return t.backbtn()}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-left")]),t._v(" 뒤로가기\n ")],1),e("div",{staticStyle:{clear:"both"}})],1),e("div",[e(U["a"],{attrs:{align:"center",justify:"center"}},[e(Et["a"],{ref:"form",model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[e("label",{attrs:{for:"class_name"}},[t._v("클래스 명")]),e(X["a"],{staticStyle:{margin:"5px 0 10px 0"},attrs:{id:"class_name",name:"class_name",outlined:"",dense:"",required:"","hide-details":"",type:"text",color:"success",rules:t.rules},model:{value:t.class_name,callback:function(e){t.class_name=e},expression:"class_name"}}),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"padding-divider"}),e("label",{attrs:{for:"class_teacher"}},[t._v("담당 선생님")]),e(X["a"],{staticClass:"select_field",staticStyle:{margin:"5px 0 10px 0"},attrs:{id:"class_teacher",name:"class_teacher",outlined:"",dense:"",required:"","hide-details":"",readonly:"",type:"text",color:"success",rules:t.rules},on:{click:function(e){return t.select_teacher()}},model:{value:t.class_teacher,callback:function(e){t.class_teacher=e},expression:"class_teacher"}}),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"d-flex justify-space-between"},[e("label",[t._v("학습 재생 속도")]),e("span",{staticClass:"success--text"},[t._v(t._s(t.voice_speed))])]),e("div",{staticClass:"d-flex align-center mt-1"},[e("div",{staticStyle:{"padding-right":"0.7rem","margin-right":"0.7rem","border-right":"1px solid #e6e6e6",cursor:"pointer"},on:{click:t.sampleAudioPlay}},[e("span",{staticClass:"fs-90 mr-1 success--text"},[t._v("듣기")]),e(q["a"],{attrs:{color:"success"}},[t._v("mdi-play-circle")])],1),e("div",{staticClass:"border-ede thin-l h-100",staticStyle:{"border-color":"#e6e6e6 !important"}}),e("div",{staticStyle:{flex:"1"},attrs:{id:"voice-speed-controller-wrap"}},[e(Re["a"],{staticClass:"screen-slider",attrs:{color:"success","track-color":"#e0f7ec",dense:"","hide-details":"",max:"10",min:"1",step:"1"},model:{value:t.voice_speed,callback:function(e){t.voice_speed=e},expression:"voice_speed"}})],1)]),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"padding-divider"}),e("label",[t._v("수업 요일")]),e("br"),e("div",{staticStyle:{margin:"5px 0px 10px"}},t._l(t.daysnum,(function(s){return e(L["a"],{key:"selday-"+s,class:0==s?"float-right":"",staticStyle:{"min-width":"50px","border-color":"#d3d3d3 !important",color:"grey"},style:0!=s?"margin-right: 5px;":"",attrs:{id:"selday-"+s,outlined:""},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.sel_daybtn(s)}}},[t._v("\n "+t._s(t.days[s])+"\n ")])})),1),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"text-center"},[void 0==this.$route.params.rid?e(L["a"],{staticClass:"mr-4",staticStyle:{width:"150px"},attrs:{depressed:"",disabled:!t.valid,color:"success"},on:{click:function(e){return t.validate()}}},[t._v("\n 등록\n ")]):e(L["a"],{staticClass:"mr-4",staticStyle:{width:"150px"},attrs:{depressed:"",disabled:t.valid_oper,color:"success"},on:{click:function(e){return t.validate()}}},[t._v("\n 수정\n ")])],1)],1)],1)],1)],1)],1),e("Dialogs",[e("div",{staticClass:"radio-dialog",attrs:{slot:"class_teacher_change"},slot:"class_teacher_change"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("담당 선생님")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{key:t.class_radio_group,staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.class_teacher_change},model:{value:t.class_radio_group,callback:function(e){t.class_radio_group=e},expression:"class_radio_group"}},["string"!=typeof t.teacher_list?t._l(t.teacher_list,(function(t,s){return e(nt["a"],{key:s,staticClass:"custom-radio",attrs:{label:t.tlname,value:t.tlid+"@"+t.tlname,color:"success"}})})):"string"==typeof t.teacher_list?e("b",[t._v(t._s(t.teacher_list))]):t._e()],2)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.class_teacher_submit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"teacher_class cursor"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"class_back_confirm"},slot:"class_back_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성 중인 내용이 있습니다."),e("br"),t._v("뒤로 가시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.class_back}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"add_class_confirm"},slot:"add_class_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("클래스를 등록하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.class_submit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"modify_class_confirm"},slot:"modify_class_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("클래스를 수정하시겠습니까?")]),t.change_days?[e("small",{staticClass:"grey--text"},[e("b",[t._v("(수업 요일 수정 시, 스케쥴이 변동됩니다.)")])])]:t._e()],2)])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.class_submit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"duplicate_rname"},slot:"duplicate_rname"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("중복된 클래스명이 있습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left w-100",attrs:{"x-large":"",text:""},nativeOn:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"add_class_error"},slot:"add_class_error"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("오류 코드 : "+t._s(t.error_code))]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(담당자에게 문의해주세요.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left w-100",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)]),e("audio",{attrs:{id:"male_sample",preload:"",src:"https://kr.object.ncloudstorage.com/voca-tts/sample/ng_male_sample.mp3"}}),e("audio",{attrs:{id:"female_sample",preload:"",src:"https://kr.object.ncloudstorage.com/voca-tts/sample/ng_female_sample.mp3"}})],1)},Fe=[],Ue={name:"login",components:{Dialogs:st["a"],preFont:et["a"]},data(){return{user:this.$storage.get("user"),valid:!0,valid_oper:!0,days:["일","월","화","수","목","금","토"],daysnum:[0,1,2,3,4,5,6],select_teacher_id:"",select_teacher_name:"",seldays:[],class_name:"",class_teacher:"",mode:"add",operclass_name:"",operclass_teacher:"",operclass_teacher_id:"",operseldays:[],teacher_list:[],class_radio_group:1,error_code:"",returnpage:"",returnitems_per_page:"",returnsortby:"",returnsortdesc:"",cs1:0,cs2:0,cs3:0,rules:[t=>!!t||""],to:"",move_page_status:0,change_days:!1,lesson_speed:"",origin_voice_speed:null,voice_speed:5}},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)return"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s(),!1;{let e=(this.class_name?1:0)+(this.class_teacher?1:0)+(this.seldays.length>0?1:0);if(""!=e||0!=e)return this.openDialog("move_page"),!1;"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},created(){this.$route.params.rid&&this.$axios.get(`${this.$host}/class/${this.$cid}/getclassroom/${this.$route.params.rid}/getspeed`).then(t=>{200==t.status&&(this.voice_speed=(+t.data-50)/10,this.origin_voice_speed=this.voice_speed)}),this.$axios.get(`${this.$host}/user/${this.$cid}/getteacher`).then(t=>{if(200==t.status)for(let[e,s]of Object.entries(t.data))this.teacher_list.push({tlid:s.id,tlname:s.name});else 204==t.status&&(this.teacher_list="클래스를 관리할 선생님이 없습니다.")}).catch(t=>{console.log(t)})},watch:{class_name(t){this.editingCheck(),"modify"==this.mode&&this.operclass_name!=t&&""!=t?this.changeStatus(1,!0):this.changeStatus(1,!1)},class_teacher(t){this.editingCheck(),"modify"==this.mode&&this.operclass_teacher!=t&&""!=t?this.changeStatus(2,!0):this.changeStatus(2,!1)},seldays(t){this.editingCheck(),"add"==this.mode?""!=this.class_teacher&&""!=this.class_name&&(t.length>0?this.valid=!0:this.valid=!1):"modify"==this.mode&&(this.seldays.join()!=this.operseldays.join()&&this.seldays.length>0?(this.change_days=!0,this.changeStatus(3,!0)):(this.change_days=!1,this.changeStatus(3,!1)))},voice_speed(t){"modify"==this.mode&&(this.origin_voice_speed!=t?this.changeStatus(4,!0):this.changeStatus(4,!1))},valid(t){"add"==this.mode&&1==t&&0==this.seldays.length&&(this.valid=!1)}},mounted(){if(void 0!=this.$route.params.rid){this.mode="modify";for(let t of this.$route.params.lesson_day){let e="";switch(t.replace(/ /g,"")){case"일":e=0;break;case"월":e=1;break;case"화":e=2;break;case"수":e=3;break;case"목":e=4;break;case"금":e=5;break;case"토":e=6;break;default:break}this.seldays.push(e),this.operseldays.push(e);const s=document.getElementById("selday-"+e);s&&s.classList.add("success","white--text")}this.class_name=this.$route.params.class_name,this.class_teacher=this.$route.params.teacher_name,this.select_teacher_id=this.$route.params.teacher_id,this.select_teacher_name=this.$route.params.teacher_name,this.operclass_name=this.$route.params.class_name,this.operclass_teacher=this.$route.params.teacher_name,this.operclass_teacher_id=this.$route.params.teacher_id}this.returnpage=void 0!=this.$route.params.page?this.$route.params.page:"",this.returnitems_per_page=void 0!=this.$route.params.items_per_page?this.$route.params.items_per_page:"",this.returnsortby=void 0!=this.$route.params.returnsortby?this.$route.params.returnsortby:void 0,this.returnsortdesc=void 0!=this.$route.params.returnsortdesc?this.$route.params.returnsortdesc:void 0},methods:{movePage(){this.move_page_status=1,this.$router.push({name:this.to})},validate(){this.$store.dispatch("soundEffectPlay","click_button"),this.$refs.form.validate()&&this.classDupChk(this.mode)},backbtn(){let t=this.class_name+this.class_teacher,e=0!=this.seldays.length;""==t&&0==e?(this.$store.dispatch("soundEffectPlay","click_button"),this.class_back()):this.openDialog("class_back_confirm")},class_back(){this.move_page_status=1,this.$router.push({name:"user-class",params:{returnpage:this.returnpage,returnitems_per_page:this.returnitems_per_page,returnsortby:this.returnsortby,returnsortdesc:this.returnsortdesc}})},select_teacher(){this.class_radio_group+=1,this.openDialog("class_teacher_change")},sel_daybtn(t){let e=document.getElementById("selday-"+t);if(e.classList.contains("success")){if(document.getElementById("selday-"+t).classList.remove("success","white--text"),-1!=this.seldays.indexOf(t)){let e=this.seldays.indexOf(t);this.seldays.splice(e,1)}}else document.getElementById("selday-"+t).classList.add("success","white--text"),-1==this.seldays.indexOf(t)&&this.seldays.push(t)},class_teacher_change(t){this.select_teacher_id=t.split("@")[0],this.select_teacher_name=t.split("@")[1];let e=document.getElementsByClassName("teacher_class")[0];e.innerText="확인",e.classList.add("success--text")},class_teacher_submit(){let t=document.getElementsByClassName("teacher_class")[0];"취소"==t.innerText?Tr.$emit("dialog",!1):"확인"==t.innerText&&(Tr.$emit("dialog",!1),this.class_teacher=this.select_teacher_name,t.innerText="취소",t.classList.remove("success--text")),this.class_radio_group+=1},classDupChk(t){this.$axios.post(`${this.$host}/class/${this.$cid}/dupchk-class`,{cname:this.class_name,rid:"add"==this.mode?void 0:this.$route.params.rid}).then(e=>{200==e.status?"add"==t?this.openDialog("add_class_confirm"):"modify"==t&&this.openDialog("modify_class_confirm"):202==e.status&&this.openDialog("duplicate_rname")}).catch(t=>{console.log(t)})},class_submit(){let t={name:this.class_name,user_id:this.select_teacher_id,tname:this.select_teacher_name,lesson_day:this.seldays.sort(),lesson_speed:50+10*this.voice_speed};"modify"==this.mode&&(t.rid=this.$route.params.rid),this.$axios.post(`${this.$host}/class/${this.$cid}/${this.mode}class`,t).then(t=>{this.closeDialog(),200==t.status?(this.move_page_status=1,this.$router.push({name:"user-class",params:{dialog:"add"==this.mode?"success":"modify_success",returnpage:this.returnpage,returnitems_per_page:this.returnitems_per_page,returnsortby:this.returnsortby,returnsortdesc:this.returnsortdesc}})):202==t.status?this.openDialog("duplicate_rname"):(this.error_code=t.status,this.openDialog("add_class_error"))}).catch(t=>{console.log(t),this.closeDialog()})},changeStatus(t,e){1==e?(this["cs"+t]=1,this.valid_oper=!1):(this["cs"+t]=0,0==this.cs1&&0==this.cs2&&0==this.cs3&&(this.valid_oper=!0))},editingCheck(){this.class_name+this.class_teacher+this.seldays!=""&&(this.$store.state.editing_status=!0)},sampleAudioPlay(){const t=+this.user.is_ttsgender,e=document.getElementById(+t?"female_sample":"male_sample");e.paused&&(e.playbackRate=(50+10*this.voice_speed)/100,e.play())}},beforeDestroy(){this.allBusDestroy()}},He=Ue,Ge=(s("9eec"),s("4d40"),Object(u["a"])(He,qe,Fe,!1,null,null,null)),We=Ge.exports,Ye=s("9e88"),Je=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"studentvue",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("학생 목록")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v(" "+t._s(t.subtitle_text)+"을 등록/관리합니다.")])])]),e("div",[e(J["a"],{staticClass:"elevation-0",attrs:{"background-color":"white",color:"success",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),t._l(["재원생","휴원생","퇴원생"],(function(s,a){return e(W["a"],{key:"tab-"+(a+1),attrs:{href:"#tab-"+(a+1),ripple:!1},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab(a+1)}}},[e("span",[t._v(t._s(s))])])})),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?e("div",[e("div",{staticClass:"py-2 d-flex justify-space-between"},[e("div",{staticClass:"d-flex"},[e("select-box",{key:t.overflow_component,attrs:{items:t.sel_list,disabled:t.chkSelect_S},on:{change:t.select_row_event}}),e(F["a"],{key:t.option_component,staticClass:"no-border c-overflow-btn ml-3",staticStyle:{width:"150px"},attrs:{disabled:0===t.items.length,items:t.class_sel_list,id:"class_select_option",label:"클래스",color:"success",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","x-small":"","persistent-placeholder":!0,"append-icon":"mdi-chevron-down",value:t.class_selected_value},on:{change:t.handleClassChange}}),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",placeholder:"이름, 아이디",id:"search",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),e("div",{staticClass:"float-right w-100 d-flex justify-end"},[e(L["a"],{staticClass:"btn-in-menu",attrs:{depressed:"",color:"success",outlined:""},on:{click:function(e){return t.downloadList("s")}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-down")]),t._v(" 목록\n 다운\n ")],1),e(L["a"],{staticClass:"btn-in-menu ml-2",attrs:{color:"success",elevation:"0"},on:{click:t.push_student_oper}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-plus")]),t._v(" 학생 등록\n ")],1)],1),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.datatable_component,ref:"test",refInFor:!0,attrs:{headers:t.headers_arr,items:t.class_selected_value?t.filteredItems:t.items,"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":"uid","expand-icon":"mdi-menu-down","no-data-text":"등록된 학생이 없습니다.","no-results-text":"검색된 학생이 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},search:t.search,"sort-by":t.sortby,"sort-desc":t.sortdesc,options:t.s_options,"show-select":""},on:{"update:expanded":function(e){t.expanded=e},"click:row":function(e){return t.toggleClassRow(e,"s")},"update:options":function(e){t.s_options=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a,type:"s"},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.s_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.s_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-select",fn:function({isSelected:t,select:s}){return[e(Ye["a"],{attrs:{color:"info",value:t},on:{input:s}})]}},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a,item:i}){return[e(q["a"],{on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i,"s")}}},[t._v("\n "+t._s(a?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.class_name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.class_name)+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"info--text font-weight-bold text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.loginid",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.loginid)+"\n ")])]}},{key:"item.grade",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.grade)+"\n ")])]}},{key:"item.postdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.postdate)+"\n ")])]}},{key:"item.detail-list",fn:function({item:s}){return[e("div",{staticClass:"detail-button-wrap"},[e(L["a"],{staticClass:"white--text",attrs:{color:"#ffba14",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"교재목록")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.bookList.text))])]),e(L["a"],{staticClass:"white--text",attrs:{color:"#1ee2a7",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"진도확인")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.progress.text))])]),e(L["a"],{staticClass:"white--text",attrs:{color:"#2daeff",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"학습일지")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.calendar.text))])])],1)]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",staticStyle:{"border-bottom":"thin solid #edeeef !important"},attrs:{colspan:t.headers_arr.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return t._l(6,(function(a){return e("tr",{key:a,class:1==a?s.sub_data.dup_class&&s.sub_data.dup_class.length>0?"tr-1":"d-none":""},t._l(7,(function(i){return e("td",{key:i,style:1==a&&5==i?"white-space: nowrap; overflow: hidden; text-overflow: ellipsis;":""},[3==i?[e("div",{staticClass:"dotted float-right"})]:4==i?[1==a?[e("b",{staticClass:"text-usn"},[t._v("중복수강")])]:2==a?[e("b",{staticClass:"text-usn"},[t._v("연락처")])]:3==a?[e("b",{staticClass:"text-usn"},[t._v("학교명")])]:4==a?[e("b",{staticClass:"text-usn"},[t._v("생년월일")])]:5==a?[e("b",{staticClass:"text-usn"},[t._v("학부모 이름")])]:6==a?[e("b",{staticClass:"text-usn"},[t._v("학부모 연락처")])]:t._e()]:5==i?[1==a?t._l(s.sub_data.dup_class,(function(s,a){return e("span",{key:"class_name_"+a,staticClass:"custom-left text-usn"},[t._v("\n "+t._s(s.class_name)+"\n "),e(q["a"],{staticClass:"mr-4 cursor",attrs:{color:"black"},on:{click:function(e){return t.delDupClassConfirm(s.class_id)}}},[t._v("\n mdi-close-circle-outline\n ")])],1)})):2==a?[e("span",{staticClass:"custom-left text-usn"},[t._v(t._s(""==s.sub_data.phone?"":t.autoHyphen(s.sub_data.phone)))])]:3==a?[e("span",{staticClass:"custom-left text-usn"},[t._v(t._s(""==s.sub_data.school?"":s.sub_data.school))])]:4==a?[e("span",{staticClass:"custom-left text-usn"},[t._v(t._s(""==s.sub_data.birthdate?"":s.sub_data.birthdate))])]:5==a?[e("span",{staticClass:"custom-left text-usn"},[t._v(t._s(""==s.sub_data.parent_name?"":s.sub_data.parent_name))])]:6==a?[e("span",{staticClass:"custom-left text-usn"},[t._v(t._s(""==s.sub_data.parent_phone?"":t.autoHyphen(s.sub_data.parent_phone)))])]:t._e()]:t._e()],2)})),0)}))},proxy:!0}],null,!0)})],1)]}}],null,!0),model:{value:t.check_sids,callback:function(e){t.check_sids=e},expression:"check_sids"}})],1)]):2==s?e("div",[e("div",{staticClass:"py-2 d-flex justify-space-between"},[e("div",{staticClass:"d-flex"},[e("select-box",{key:t.overflow_component_pause,attrs:{id:"option_select_pause",items:t.sel_list_pause,disabled:t.chkSelect_P},on:{change:t.select_row_event_pause}}),e(F["a"],{key:t.option_component,staticClass:"no-border c-overflow-btn ml-3",staticStyle:{width:"150px"},attrs:{disabled:0===t.items_pause.length,items:t.class_sel_list,id:"class_select_option",label:"클래스",color:"success",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","x-small":"","persistent-placeholder":!0,"append-icon":"mdi-chevron-down",value:t.class_selected_value},on:{change:t.handleClassChange}}),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",placeholder:"이름, 아이디",id:"search_pause",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},model:{value:t.search_pause,callback:function(e){t.search_pause=e},expression:"search_pause"}})],1),e("div",{staticClass:"w-100",staticStyle:{display:"flex","justify-content":"flex-end"}},[e(L["a"],{staticClass:"btn-in-menu",attrs:{depressed:"",color:"success",outlined:""},on:{click:function(e){return t.downloadList("p")}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-down")]),t._v(" 목록\n 다운\n ")],1)],1),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.datatable_component_pause,attrs:{headers:t.headers_arr_pause,items:t.class_selected_value?t.filteredItems:t.items_pause,"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,"single-expand":!0,"show-expand":!0,expanded:t.expanded_pause,"item-key":"uid","expand-icon":"mdi-menu-down","no-data-text":"휴원한 학생이 없습니다.","no-results-text":"검색된 학생이 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},search:t.search_pause,"sort-by":t.sortby_p,"sort-desc":t.sortdesc_p,options:t.p_options,"show-select":""},on:{"update:expanded":function(e){t.expanded_pause=e},"click:row":function(e){return t.toggleClassRow(e,"p")},"update:options":function(e){t.p_options=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a,type:"p"},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.p_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.p_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-select",fn:function({isSelected:t,select:s}){return[e(Ye["a"],{attrs:{color:"info",value:t},on:{input:s}})]}},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a,item:i}){return[e(q["a"],{on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i,"p")}}},[t._v("\n "+t._s(a?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"info--text font-weight-bold text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.loginid",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.loginid)+"\n ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",staticStyle:{"border-bottom":"thin solid #edeeef !important"},attrs:{colspan:t.headers_arr_pause.length+1}},[e(G["a"],{staticClass:"ustom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return t._l(7,(function(a){return e("tr",{key:a,class:1==a?s.sub_data.dup_class&&s.sub_data.dup_class.length>0?"":"d-none":""},t._l(t.headers_arr_pause.length+1,(function(i){return e("td",{key:i,style:1==a&&5==i?"width: 100% !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;":""},[3==i?[e("div",{staticClass:"dotted"})]:4==i?[1==a?[e("b",[t._v("중복수강")])]:2==a?[e("b",[t._v("등록일")])]:3==a?[e("b",[t._v("연락처")])]:4==a?[e("b",[t._v("학교명")])]:5==a?[e("b",[t._v("생년월일")])]:6==a?[e("b",[t._v("학부모 이름")])]:7==a?[e("b",[t._v("학부모 연락처")])]:t._e()]:5==i?[1==a?t._l(s.sub_data.dup_class,(function(s,a){return e("span",{staticClass:"custom-left"},[t._v("\n "+t._s(s.class_name)+"\n "),e(q["a"],{staticClass:"mr-4 cursor",attrs:{color:"black"},on:{click:function(e){return t.delDupClassConfirm(s.class_id)}}},[t._v("\n mdi-close-circle-outline\n ")])],1)})):2==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.postdate?"":s.postdate))])]:3==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.phone?"":t.autoHyphen(s.phone)))])]:4==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.school?"":s.sub_data.school))])]:5==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.birthdate?"":s.sub_data.birthdate))])]:6==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.parent_name?"":s.sub_data.parent_name))])]:7==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.parent_phone?"":t.autoHyphen(s.sub_data.parent_phone)))])]:t._e()]:t._e()],2)})),0)}))},proxy:!0}],null,!0)})],1)]}},{key:"item.detail-list",fn:function({item:s}){return[e("div",{staticClass:"detail-button-wrap"},[e(L["a"],{staticClass:"white--text",attrs:{color:"#ffba14",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"교재목록")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.bookList.text))])]),e(L["a"],{staticClass:"white--text",attrs:{color:"#1ee2a7",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"진도확인")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.progress.text))])]),e(L["a"],{staticClass:"white--text",attrs:{color:"#2daeff",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"학습일지")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.calendar.text))])])],1)]}}],null,!0),model:{value:t.check_pids,callback:function(e){t.check_pids=e},expression:"check_pids"}})],1)]):3==s?e("div",[e("div",{staticClass:"py-2 d-flex justify-space-between"},[e("div",{staticClass:"d-flex"},[e("select-box",{key:t.overflow_component_quit,attrs:{id:"option_select_quit",items:t.sel_list_quit,disabled:t.chkSelect_Q},on:{change:t.select_row_event_quit}}),e(F["a"],{key:t.option_component,staticClass:"no-border c-overflow-btn ml-3",staticStyle:{width:"150px"},attrs:{disabled:0===t.items_quit.length,items:t.class_sel_list,id:"class_select_option",label:"클래스",color:"success",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","x-small":"","persistent-placeholder":!0,"append-icon":"mdi-chevron-down",value:t.class_selected_value},on:{change:t.handleClassChange}}),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",placeholder:"이름, 아이디",id:"search_quit",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},model:{value:t.search_quit,callback:function(e){t.search_quit=e},expression:"search_quit"}})],1),e("div",{staticClass:"w-100",staticStyle:{display:"flex","justify-content":"flex-end"}},[e(L["a"],{staticClass:"btn-in-menu",attrs:{depressed:"",color:"success",outlined:""},on:{click:function(e){return t.downloadList("q")}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-down")]),t._v(" 목록\n 다운\n ")],1)],1),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.datatable_component_quit,attrs:{headers:t.headers_arr_quit,items:t.class_selected_value?t.filteredItems:t.items_quit,"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,"single-expand":!0,"show-expand":!0,expanded:t.expanded_quit,"item-key":"uid","expand-icon":"mdi-menu-down","no-data-text":"퇴원한 학생이 없습니다.","no-results-text":"검색된 학생이 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},search:t.search_quit,"sort-by":t.sortby_q,"sort-desc":t.sortdesc_q,options:t.q_options,"show-select":""},on:{"update:expanded":function(e){t.expanded_quit=e},"click:row":function(e){return t.toggleClassRow(e,"q")},"update:options":function(e){t.q_options=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a,type:"q"},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.q_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.q_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-select",fn:function({isSelected:t,select:s}){return[e(Ye["a"],{attrs:{color:"info",value:t},on:{input:s}})]}},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a,item:i}){return[e(q["a"],{on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i,"q")}}},[t._v("\n "+t._s(a?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"info--text font-weight-bold text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.loginid",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.loginid)+"\n ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",staticStyle:{"border-bottom":"thin solid #edeeef !important"},attrs:{colspan:t.headers_arr_quit.length+1}},[e(G["a"],{staticClass:"ustom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return t._l(7,(function(a){return e("tr",{key:a,class:1==a?s.sub_data.dup_class&&s.sub_data.dup_class.length>0?"":"d-none":""},t._l(t.headers_arr_quit.length+1,(function(i){return e("td",{key:i,style:1==a&&5==i?"width: 100% !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;":""},[3==i?[e("div",{staticClass:"dotted"})]:4==i?[1==a?[e("b",[t._v("중복수강")])]:2==a?[e("b",[t._v("등록일")])]:3==a?[e("b",[t._v("연락처")])]:4==a?[e("b",[t._v("학교명")])]:5==a?[e("b",[t._v("생년월일")])]:6==a?[e("b",[t._v("학부모 이름")])]:7==a?[e("b",[t._v("학부모 연락처")])]:t._e()]:5==i?[1==a?t._l(s.sub_data.dup_class,(function(s,a){return e("span",{key:"sub-data-"+a,staticClass:"custom-left"},[t._v("\n "+t._s(s.class_name)+"\n "),e(q["a"],{staticClass:"mr-4 cursor",attrs:{color:"black"},on:{click:function(e){return t.delDupClassConfirm(s.class_id)}}},[t._v("\n mdi-close-circle-outline\n ")])],1)})):2==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.postdate?"":s.postdate))])]:3==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.phone?"":t.autoHyphen(s.phone)))])]:4==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.school?"":s.sub_data.school))])]:5==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.birthdate?"":s.sub_data.birthdate))])]:6==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.parent_name?"":s.sub_data.parent_name))])]:7==a?[e("span",{staticClass:"custom-left"},[t._v(t._s(""==s.sub_data.parent_phone?"":t.autoHyphen(s.sub_data.parent_phone)))])]:t._e()]:t._e()],2)})),0)}))},proxy:!0}],null,!0)})],1)]}},{key:"item.detail-list",fn:function({item:s}){return[e("div",{staticClass:"detail-button-wrap"},[e(L["a"],{staticClass:"white--text",attrs:{color:"#ffba14",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"교재목록")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.bookList.text))])]),e(L["a"],{staticClass:"white--text",attrs:{color:"#1ee2a7",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"진도확인")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.progress.text))])]),e(L["a"],{staticClass:"white--text",attrs:{color:"#2daeff",depressed:""},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openStudentDetailDialog(s,"학습일지")}}},[e("span",{staticClass:"fs-1rem detail-button-text"},[t._v(t._s(t.detail_button_text.calendar.text))])])],1)]}}],null,!0),model:{value:t.check_qids,callback:function(e){t.check_qids=e},expression:"check_qids"}})],1)]):t._e()])})),1)],2),e("pre-cautions",{attrs:{type:0,data:t.$data}})],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"del_schedule"},slot:"del_schedule"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("선택한 스케쥴을 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 스케쥴은 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){t.isDelSchedule=!0}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"c4_allbook"},slot:"c4_allbook"},[e(M["b"],{staticClass:"black text-center py-8 pos-rel",staticStyle:{opacity:"0.75"}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"white--text"},[t._v("\n 다른 학원의 수업자료를 무상 공유해드립니다."),e("br"),t._v("\n 배정된 담당자를 통해 문의하세요!\n ")])]),e(L["a"],{staticClass:"pos-abs",staticStyle:{top:"8px",right:"8px"},attrs:{icon:"",small:"",depressed:"",ripple:!1},on:{click:t.closeDialog}},[e(q["a"],{attrs:{color:"white"}},[t._v(" mdi-close ")])],1)],1)],1),e("div",{attrs:{slot:"selectSampleOpt"},slot:"selectSampleOpt"},[e(M["c"],{staticClass:"justify-start text-center pb-0 pt-8 px-11"},[e("h3",{staticClass:"title"},[e("b",[t._v("교재 양식 다운로드")])])]),e(M["b"],{staticClass:"over-y-scroll px-10 mt-4",staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},model:{value:t.filesample_opt,callback:function(e){t.filesample_opt=e},expression:"filesample_opt"}},[t.select_form_item&&+t.select_form_item.words_cnt>0?e(nt["a"],{staticClass:"custom-radio",attrs:{label:"단어",value:"word",color:"success"}}):t._e(),t.select_form_item&&2!=+t.select_form_item.booktype_s?e(nt["a"],{staticClass:"custom-radio",attrs:{label:"문장",value:"sentence",color:"success"}}):t._e()],1)],1),e(M["a"],{staticClass:"justify-end px-12 pb-8 pt-2"},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_open_btn",staticClass:"cursor",class:t.filesample_opt?"success--text":"black--text",on:{click:function(e){t.filesample_opt?t.setFormApi():t.closeDialog()}}},[t._v("\n "+t._s(t.filesample_opt?"확인":"취소")+"\n ")])])])],1),e("div",{attrs:{slot:"sv_review"},slot:"sv_review"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v(" 동화학습은 레포트가 존재하지 않습니다. ")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["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}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"null_class"},slot:"null_class"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("생성된 클래스가 없습니다."),e("br"),t._v("\n 클래스를 먼저 생성해주세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.push_class}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("생성")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.customCloseDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"null_student"},slot:"null_student"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("학생이 등록되지 않았습니다."),e("br"),t._v("학생 등록을 진행해주세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.push_student_oper}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("등록")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"add_student_success"},slot:"add_student_success"},[e(M["b"],{staticClass:"black text-center py-8",staticStyle:{opacity:"0.75"}},[e("h3",{staticClass:"title"},["success"==t.$route.params.dialog?[e("b",{staticClass:"white--text"},[t._v("학생이 신규 등록되었습니다.")])]:"modify_success"==t.$route.params.dialog?[e("b",{staticClass:"white--text"},[t._v("학생 정보가 수정되었습니다.")])]:t._e()],2)])],1),e("div",{attrs:{slot:"student_recovery_confirm"},slot:"student_recovery_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("선택 학생을 재원처리 하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.studentRecovery}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"student_pause_confirm"},slot:"student_pause_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("선택 학생을 휴원처리 하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.studentPause}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"student_quit_confirm"},slot:"student_quit_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("선택 학생을 퇴원처리 하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.studentQuit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"del_dup_class"},slot:"del_dup_class"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("중복 수강을 삭제하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.delDupClass}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"student_del_confirm"},slot:"student_del_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("선택 학생을 완전히 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 학생은 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.deleteStudent}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)]),e("student-detail-dialog",{attrs:{data:t.$data},on:{"open-report-event":t.sendReportOpenEvent}}),e("div",{attrs:{id:"report-wrap"}},[e("report",{directives:[{name:"show",rawName:"v-show",value:"report"==t.mode||"report_error_print"==t.mode,expression:"mode == 'report' || mode == 'report_error_print'"}],ref:"report"}),e("div",{key:"progress-print-"+t.ppkey,staticStyle:{display:"none"},attrs:{id:"progress-print"}},[e("div",{staticClass:"pos-rel component",staticStyle:{width:"210mm",height:"296mm","margin-bottom":"1mm"},attrs:{id:"progress-wrapper"}},[e("img",{staticClass:"pos-abs result_print_bg",staticStyle:{display:"block"},attrs:{src:s("f51b"),width:"100%",height:"100%"}}),e("div",{staticClass:"pos-rel title_wrap",staticStyle:{height:"9.7%"}},[e("div",{staticClass:"pos-abs w-100 text-center",staticStyle:{bottom:"0"}},[e("img",{staticClass:"pos-abs title_img",staticStyle:{left:"278px",top:"-50px"},attrs:{src:s("cef4"),width:"240"}})])]),e("div",{staticClass:"pos-rel mgauto",staticStyle:{"border-bottom":"2px solid #283a50",width:"88.6%",height:"59px"}},[e("div",{staticClass:"text-center pos-abs white--text",staticStyle:{width:"15%",bottom:"0","background-color":"#283a50",padding:"2px 0","border-top-left-radius":"14px","font-size":"14px"}},[t._v("\n 진도율 분석\n ")]),e("b",{staticClass:"pos-abs translate-y",staticStyle:{right:"8px",top:"60%","font-size":"14px"},attrs:{id:"progress-class"}})]),e("div",{staticClass:"progress-list pos-rel mgauto",staticStyle:{"margin-top":"4px !important",width:"88.6%",height:"75.03%"}},t._l(14,(function(t){return e("div",{key:"list-item-wrap-"+t,staticClass:"list-item-wrap d-none"},[e("div"),e("div"),e("div")])})),0),e("div",{staticStyle:{"margin-top":"26px",height:"7.3%"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"88.6%",height:"100%"}},[e(j["a"],{staticClass:"pa-0 pos-rel",attrs:{cols:"6"}},[e("img",{staticClass:"pos-abs translate-y",staticStyle:{"max-height":"35px","margin-top":"-6px"},attrs:{src:t.user.clogo?""+t.user.clogo:s("3951")}})]),e(j["a"],{staticClass:"pa-0 text-right pos-rel",attrs:{cols:"6"}},[e("h3",{staticClass:"black--text pos-abs translate-y",staticStyle:{"font-size":"15px",right:"0","margin-top":"-6px"}},[t._v("\n "+t._s(t.user.cname)+"\n ")])])],1)],1)])]),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e(ot["a"],{attrs:{"max-width":t.dialogWidth,transition:!1},on:{"click:outside":function(e){t.detail_dialog=!1}},model:{value:t.detail_dialog,callback:function(e){t.detail_dialog=e},expression:"detail_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"py-4 text-center black--text title"},[e(U["a"],[e(j["a"],{staticClass:"text-center",attrs:{cols:"12"}},[e("h3",{staticClass:"text-usn",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_sentences)}}),e("div",{staticClass:"border-ede thin-t my-2"}),e("h3",{staticClass:"text-usn grey--text",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_mean)}})])],1)],1)],1)],1)],1),e("report-message-dialog",{ref:"report-message-dialog"})],1)},Ve=[],Qe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e(ot["a"],{attrs:{"content-class":"report-message-dialog",width:"75rem",transition:!1},model:{value:t.data.detailDialog,callback:function(e){t.$set(t.data,"detailDialog",e)},expression:"data.detailDialog"}},[e(it["a"],[e(M["c"],[e("span",{staticClass:"title-text"},[t._v("\n "+t._s(`${t.data.detailType} (${t.data.currentItem.name})`)+"\n ")]),e("div",{staticClass:"d-flex align-center justify-center icon-wrap",on:{click:t.closeDialog}},[e("svg",{attrs:{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z"}})])])]),t.data.detailDialog&&"교재목록"===t.data.detailType?e("div",{staticClass:"content-section book-list"},[e("study-book-list",{attrs:{student_data:t.data}})],1):t.data.detailDialog&&"진도확인"===t.data.detailType?e("div",{staticClass:"content-section"},[e("study-progress",{attrs:{student_data:t.data}})],1):t.data.detailDialog&&"학습일지"===t.data.detailType?e("div",{staticClass:"content-section"},[e("study-calendar",{attrs:{student_data:t.data},on:{"open-report-event":t.sendReportOpenEvent}})],1):t._e()],1)],1)],1)},Xe=[],Ke=s("a4f6"),Ze=function(){var t=this,e=t._self._c;return e(U["a"],{attrs:{id:"individualtotalvue"}},[e("div",{staticClass:"mb-6",attrs:{id:"tab-3"}},[e(U["a"],{staticClass:"w-100 mgauto mt-2"},[e("div",{staticClass:"date-header-wrap"},[e("div",{staticClass:"current-year"},[t._v(t._s(t.v_calendar.split("-")[0])+"년")]),e("h3",{staticClass:"my-2 text-center w-100"},[e(L["a"],{attrs:{icon:""},on:{click:function(e){return t.calendarMove("prev")}}},[e(q["a"],{attrs:{color:"info"}},[t._v("mdi-chevron-left")])],1),e("b",{staticClass:"px-6 info--text",staticStyle:{"user-select":"none"}},[t._v("\n "+t._s(t.full_month[parseInt(t.v_calendar.split("-")[1])-1])+"\n ")]),e(L["a"],{attrs:{icon:""},on:{click:function(e){return t.calendarMove("next")}}},[e(q["a"],{attrs:{color:"info"}},[t._v("mdi-chevron-right")])],1)],1)]),e(H["a"],{staticClass:"w-100",attrs:{height:"auto"}},[e(Ke["a"],{ref:"calendar",attrs:{type:"month",now:t.calendar.now,value:"2019-01-08"},on:{"click:day":t.clickDate},scopedSlots:t._u([{key:"day-label",fn:function(s){return[e(L["a"],{staticClass:"custom_slot_btn",attrs:{id:"btn::"+s.date,depressed:"","x-small":"",rounded:"",fab:"",ripple:!1}},[t._v("\n "+t._s(s.day)+"\n ")])]}}]),model:{value:t.v_calendar,callback:function(e){t.v_calendar=e},expression:"v_calendar"}})],1)],1),e(U["a"],{staticClass:"w-100 mgauto mt-4"},[e(R["a"],{staticClass:"w-100",attrs:{headers:t.calendar_headers,items:t.calendar_items,"mobile-breakpoint":10,"server-items-length":t.calendar_items_length,"hide-default-footer":"","hide-default-header":"","no-data-text":t.calendar_no_data,"sort-by":t.sortby,"sort-desc":t.sortdesc},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:s,on:a,type:""},on:{customSort:t.customSort}})]}},{key:"item.type",fn:function({item:s}){return[e("span",{class:t.getTypeText(s).color+"--text text-usn"},[t._v("\n "+t._s(t.getTypeText(s).text)+"\n ")])]}},{key:"item.bookname",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[5===+s.booktype_m&&0===+s.booktype_s?[t._v("\n 내공백서 스토리북 Lv. "+t._s(s.level)+"\n ")]:[t._v("\n "+t._s(s.bookname)+"\n ")]],2)]}},{key:"item.unit",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(t.setUnitName(s))+"\n ")])]}},{key:"item.studytime",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.studytime)+"분 ")])]}},{key:"item.studystatus",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.studystatus)+"\n ")])]}},{key:"item.studydate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.studydate)+"\n ")])]}},{key:"item.report",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[s.report?[e(L["a"],{attrs:{color:"success",elevation:"0",small:""},on:{click:function(e){return t.postOpenReportEvent(s)}}},[t._v("\n 조회\n ")])]:[t._v(" - ")]],2)]}}],null,!0)})],1)],1)])},ts=[],es=(s("8deb"),{props:["student_data"],components:{},data(){return{detail_dialog:!1,class_items:[],class_students:[],class_item_lesson_day:"",class_students_settings:"",select_class_status:!1,select_class_id:0,select_student:"",select_student_data:[],new_mockexam:{},user:this.$storage.get("user"),radar:{radar:{name:{textStyle:{color:"#000",borderRadius:3,padding:[1,1],fontFamily:"Apple SD Gothic Neo",fontSize:"1rem"}},nameGap:10,indicator:[{name:"어휘",max:100},{name:"영작",max:100},{name:"말하기",max:100},{name:"독해",max:100}],center:["50%","50%"],radius:"60%",splitArea:{areaStyle:{color:["rgba(250,250,250,0)","rgba(247, 248, 249, 1)"]}}},series:[{type:"radar",showSymbol:!1,areaStyle:{color:"#fa3a4f",opacity:.3},data:[{value:[0,0,0,0,0],symbol:"none"}],lineStyle:{color:"#fa3a4f",width:3},animation:!1}]},tab:null,endbookcnt:0,wrong_sen_arr:[],circle_row:0,circle_totavg:0,circle_tqc:0,circle_twc:0,circle_err:0,circle_tst:0,full_month:["January","February","March","April","May","June","July","August","September","October","November","December"],v_calendar:"",calendar:{now:"",value:""},calendar_headers:[{text:"No.",value:"num",align:"left",sortable:!1,search:!1},{text:"구분",value:"type",align:"left",sortable:!1,search:!1},{text:"교재명",value:"bookname",align:"left",sortable:!1,search:!1},{text:"단원",value:"unit",align:"left",sortable:!1,search:!1},{text:"학습 시간",value:"studytime",align:"left",sortable:!0,search:!1},{text:"학습 상태",value:"studystatus",align:"left",sortable:!0,search:!1},{text:"학습일",value:"studydate",align:"left",sortable:!0,search:!1},{text:"레포트",value:"report",align:"center",sortable:!1,search:!1}],calendar_items:[],calendar_items_length:0,calendar_no_data:"학습한 교재가 없습니다.",click_cnt:0,sortby:void 0,sortdesc:void 0,circle_size:0,circle_width:0,circle_font:0,last_seldate:"",last_select_student:"",mode:"list",loading_value:!1,loading_message:"잠시만 기다려주세요."}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){this.v_calendar=this.getToday(),this.calendar.now=this.getToday(),this.calendar.value=this.getToday()},mounted(){this.student_data.loading_value=!0,setTimeout(()=>{this.student_data.loading_value=!1},500),this.clickStudent(this.student_data.currentItem,!0),this.initCalEvent()},watch:{student_data:{handler(t){this.initCalEvent(),t.detailDialog||(this.closeDialog(),this.student_data.loading_value=!1)},deep:!0}},computed:{},methods:{closeDialog(){this.calendar_items=[],this.calendar_items_length=0;let t=document.querySelectorAll(".custom_selected");for(let[e,s]of Object.entries(t))s.classList.remove("custom_selected")},closeNonEntityReportDialog(){console.log("hi")},postOpenReportEvent(t){this.$emit("open-report-event",t)},getTypeText:dt["b"],setUnitName:dt["e"],setStoryBookUnitName:dt["d"],isEndWithConsonant:dt["c"],clickStudent(t,e=!1){if(!e&&""!=this.select_student&&this.select_student.id==this.student_data.currentItem.uid)return!1;this.last_select_student=JSON.parse(JSON.stringify(this.select_student)),this.select_student=t;let s=new Promise((t,e)=>{this.$axios.get(`${this.$host}/result/${this.$cid}/getindividual?uid=${this.student_data.currentItem.uid}`).then(e=>{if(200==e.status){const s=e.data,a=this.select_student;a.totavg=s.score.totavg?parseFloat(s.score.totavg).toFixed(1):0,a.sum_question_cnt=s.score.sum_question_cnt||0,a.sum_wrong_cnt=s.score.sum_wrong_cnt||0,a.error_rate=s.score.error_rate?Math.round(s.score.error_rate):0,a.sum_studytime=s.score.sum_studytime?Math.floor(s.score.sum_studytime):0,a.diff_postdate=s.score.diff_pd,this.circle_totavg=+a.totavg,this.circle_tqc=+a.sum_question_cnt,this.circle_twc=+a.sum_wrong_cnt,this.circle_err=+a.error_rate,this.circle_tst=+a.sum_studytime,this.radar.series[0].data[0].value=[];let i=["V","EC","speaking","RC"];for(let t=0;t<4;t++)this.radar.series[0].data[0].value.push(s.module[i[t]]);this.endbookcnt=s.endbookcnt,this.wrong_sen_arr=JSON.parse(JSON.stringify(s.wrong_sen_arr)),t(!0)}}).catch(t=>{console.log(t)})});s.then(t=>{"tab-3"==this.tab&&this.initCalEvent(),this.circle_row+=1,setTimeout(()=>{this.setPeriodCircleSize(),window.onresize=this.setPeriodCircleSize,this.$nextTick(()=>{let t=document.getElementsByClassName("period-circle-col");for(let e=0;e{console.log(t)})},setPeriodCircleSize(){if(this.tab>0)return!1;if(!this.select_student)return!1;let t=document.getElementById("period-circle-row"),e=document.getElementById("period-circle-col"),s=e?window.getComputedStyle(e):void 0;if(t){let e=t.offsetHeight-20,a=t.offsetWidth;e-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),a-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight);let i=e>a?a:e;isNaN(i)||(this.circle_size=i,this.circle_width=Math.round(i/9),this.circle_font=Math.round(i/6))}},calendarMove(t){this.$store.dispatch("soundEffectPlay","click_button"),"prev"==t?this.v_calendar=this.$dayjs(this.v_calendar).subtract(1,"month").format("YYYY-MM-DD"):"next"==t&&(this.v_calendar=this.$dayjs(this.v_calendar).add(1,"month").format("YYYY-MM-DD")),this.calendar_items=[],this.initCalEvent()},initCalEvent(){setTimeout(()=>{let t=document.querySelectorAll(".custom-event");if(t.length>0)for(let[e,s]of Object.entries(t))s.classList.remove("custom-event");if(this.select_student.diff_postdate.length>0){let t=this.v_calendar.split("-")[0]+"-"+this.v_calendar.split("-")[1],e=document.getElementsByClassName("v-calendar-weekly__week")[0].childNodes,s=0;for(let[i,o]of Object.entries(e)){if(0==i&&!o.classList.contains("v-outside"))break;o.classList.contains("v-outside")&&(s+=1)}let a=document.querySelectorAll(".custom_slot_btn");for(let i in this.select_student.diff_postdate)if(this.select_student.diff_postdate[i].diff_pd&&-1!=this.select_student.diff_postdate[i].diff_pd.indexOf(t)){let t=parseInt(this.select_student.diff_postdate[i].diff_pd.split("-")[2])-1;t+=s,a[t].classList.add("custom-event")}}},300)},clickCustomEvent(t){this.$store.dispatch("soundEffectPlay","click_button");let e=document.querySelectorAll(".custom_selected");for(let[a,i]of Object.entries(e))i.classList.remove("custom_selected");document.getElementById("btn::"+t)&&document.getElementById("btn::"+t).classList.add("custom_selected");let s=t=>{this.calendar_items=[],this.calendar_items_length=0,this.calendar_no_data=204==t?"학습 스케쥴이 삭제되었습니다.":"학습한 교재가 없습니다."};t?this.getDayReport(t):s()},getDayReport(t,e,s){let a=t=>{this.calendar_items=[],this.calendar_items_length=0,this.calendar_no_data=204==t?"학습 스케쥴이 삭제되었습니다.":"학습한 교재가 없습니다."},i=`${this.$host}/result/${this.$cid}/user/${this.student_data.currentItem.uid}/getdayreport`;e&&(i+=`/${e}/${s?"desc":"asc"}`),i+="?sd="+t,this.$axios.get(i).then(t=>{if(200==t.status){this.calendar_items=[],this.calendar_items_length=t.data.records?t.data.records:0;for(let[e,s]of Object.entries(t.data.rows)){let t={history_id:s.id,urid:s.id,unit_record_id:s.id,unit_cnt:s.unit_cnt,sid:s.schedule_id,schedule_id:s.schedule_id,bid:s.bid,type:s.type,bookname:s.schedule_name,category:s.category,schedule_type:s.schedule_type,type_v:s.type_v?s.type_v:0,unit:s.unit,unit_id:s.unit_id,unit_name:s.unit_name,done:s.done,done_cnt:s.done_cnt,studytime:s.tot_studytime?1*s.tot_studytime:0,studystatus:0==s.done?"학습 중":"학습 완료",studydate:s.lastdate,booktype_m:Math.floor(+s.booktype/10),booktype_s:+s.booktype%10,words_cnt:s.words_cnt?+s.words_cnt:"",recent:{done:s.done,su_seq:s.su_seq||null,old_modules:s.old_modules||null,new_modules:s.new_modules||null,v_mod:s.v_mod||null,a_mod:s.a_mod||null,m_mod:s.m_mod||null,su_name:s.su_name,history_text:s.history_text||""},report:!1,avg:s.avg?Math.round(+s.avg):0,question_cnt:+s.tot_question_cnt||0,wrong_cnt:+s.tot_wrong_cnt||0,skip:s.skip,new_skip:s.new_skip,dist_seq:s.dist_seq,modules_score:s.modules_score||null,from:"total",level:s.level||null};"F"==this.$store.state.user.product_type&&50===+s.booktype&&(t.bookname=s.bookname),"3"==t.category&&0==t.booktype_m&&1==t.booktype_s&&"0"==t.unit_cnt?t.new_mock=!0:t.new_mock=!1,0===+t.done?t.studystatus=(1*t.done_cnt>0?"재":"")+"학습 중":t.studystatus="학습 완료",t.error_rate=Math.round(100/t.question_cnt*t.wrong_cnt);let e=t.studytime/60,a=Math.trunc(e),i=e-a;t.studytime=i>.5?parseInt(e)+1:parseInt(e),"X"==t.type&&(t.mock_infos=s.mock_infos?s.mock_infos:null,"3"==t.category&&0==t.booktype_m&&1==t.booktype_s&&(this.new_mockexam[t.bid]||(this.new_mockexam[t.bid]={}),this.new_mockexam[t.bid].point_group=t.mock_infos.point_group,this.new_mockexam[t.bid].right_group=t.mock_infos.right_group,this.new_mockexam[t.bid].rows||(this.new_mockexam[t.bid].rows=[]),this.new_mockexam[t.bid].rows.push({mr_id:t.unit_record_id,select_nums:t.mock_infos.select_nums,schedule_id:t.mock_infos.mr_schedule_id}))),4==t.booktype_m&&3==t.booktype_s&&"GT"==t.type&&(this.$basicGrammarBooks.includes(+t.bid)&&(+t.unit+1)%3===0||this.$middleGrammarBooks.includes(+t.bid)&&t.unit_name.match("Review"))?t.report=!1:1===+t.done&&(t.report=!0),this.calendar_items.push(t)}}else 204==t.status&&a(204)}).catch(t=>{console.log(t),a()})},clickDate(t){if(this.select_student.diff_postdate.length>0){let e=this.select_student.diff_postdate.findIndex(e=>e.diff_pd==t.date);this.clickCustomEvent(-1==e?null:t.date),this.last_seldate=t.date}},customSort(t,e,s){this.sortby=e,this.sortdesc=s,this.getDayReport(this.last_seldate,this.sortby,this.sortdesc)}}}),ss=es,as=(s("04da"),Object(u["a"])(ss,Ze,ts,!1,null,"29c84ee2",null)),is=as.exports,os=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"individualtotalvue"}},[e("div",{staticClass:"mb-6",attrs:{id:"tab-2"}},[t._l(["ing","end"],(function(s,a){return[e("div",{key:"tab-2-head-"+a,staticClass:"d-flex align-center justify-space-between",attrs:{id:s+"-head-wrap"}},[e("h4",{staticClass:"mt-4 pl-2 success--text",staticStyle:{"border-left":"3px solid #1bd05b"}},[0===+a?[t._v(" 학습중인 교재 ")]:1===+a?[t._v(" 학습완료 교재 ")]:t._e()],2)]),e(R["a"],{key:"tab-2-data-table-"+a,staticClass:"mt-2",attrs:{headers:t.book_headers,items:t.$data[s+"_items"],"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:t.$data[s+"_expanded"],"item-key":"table_key","hide-default-header":"","expand-icon":"mdi-menu-down","no-data-text":"학습중인 교재가 없습니다.","no-results-text":"학습중인 교재가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[5,10,30],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},options:t.$data[s+"_options"],"server-items-length":t.$data[s+"_items_length"],page:t.$data[s+"_page"],"items-per-page":t.$data[s+"_items_per_page"],"sort-by":t.$data[s+"_sortby"],"sort-desc":t.$data[s+"_sortdesc"]},on:{"update:expanded":function(e){return t.$set(t.$data,s+"_expanded",e)},"click:row":function(e){return t.toggleClassRow(e,s)},"update:options":function(e){return t.$set(t.$data,s+"_options",e)},"update:page":function(e){return t.pageUpdate(e,s)}},scopedSlots:t._u([{key:"header",fn:function({props:t,on:a}){return[e("DataTableHeader",{attrs:{defaultProps:t,on:a,type:""+s}})]}},{key:"item.data-table-expand",fn:function({expand:a,isExpanded:i,item:o}){return[e(q["a"],{on:{click:function(e){e.stopPropagation(),a(!i),t.toggleClassRow(o,s)}}},[t._v("\n "+t._s(i?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.bookname",fn:function({item:s}){return[50===+s.booktype?[t._v("\n 내공백서 스토리북 Lv. "+t._s(s.level)+"\n ")]:[t._v("\n "+t._s(s.bookname)+"\n ")],[11,43,50].includes(+s.booktype)||[1,3].includes(+s.category)&&31===+s.booktype?e("span",{staticClass:"ml-1 fw-400 custom-tag hot"},[t._v("\n HOT\n ")]):1==s.booktype_s||[1,2,3].includes(+s.category)&&0===+s.booktype_m&&0===+s.booktype_s?e("span",{staticClass:"ml-1 fw-300 custom-tag new"},[t._v("\n NEW\n ")]):2==s.booktype_s?e("span",{staticClass:"ml-1 fw-300 custom-tag voca"},[t._v("\n VOCA\n ")]):t._e()]}},{key:"item.rate",fn:function({item:s}){return[e("div",{staticClass:"row-progress"},[e("div",{staticClass:"progress-wrap ing",class:"ing-pw-"+s.sid},[e("b",{staticClass:"under-text",class:{"grey--text text--lighten-1":!s.rate}},[t._v("  "+t._s(s.rate)+"%  ")]),e("div",{staticClass:"progress-gauge",style:`width:${s.rate}%`},[e("b",[t._v("  "+t._s(s.rate)+"%  ")])])])])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.book_headers.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return[e("tbody",{staticClass:"expanded_table"},t._l(s.sub_unit,(function(a,i){return e("tr",{key:"sub_item_ing_"+i},[e("td",{staticClass:"text-right",staticStyle:{"vertical-align":"middle","border-bottom":"unset !important"}},[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"text-left"},[1==s.type&&1==s.type_v?e("span",{staticStyle:{color:"#e3e3e3"}},[t._v("\n "+t._s(a.num)+")\n ")]):t._e(),e("span",{domProps:{innerHTML:t._s(50===+s.booktype?t.setStoryUnitName(s):a.name)}})]),e("td",{staticClass:"text-left"},[e(U["a"],{staticClass:"h-100",staticStyle:{"align-content":"center"},attrs:{dense:"","no-gutters":""}},["MOCK"==s.type&&s.sub_unit?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"12"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,color:a.id?"grey lighten-2":"success"}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(a.id?"평가완료":"듣기평가")+"\n ")])])],1)]:1==s.booktype_m&&0==s.type?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"voca"),color:t.setBtnColor(a,"voca")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"voca"))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"major"),color:t.setBtnColor(a,"major")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"major",s))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"advanced"),color:"1"===a.advanced_done||(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?"grey lighten-2":"info2"}},[(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?e("b",{staticClass:"subtitle-1 fw-700",staticStyle:{color:"#999da0"}},[t._v("심화")]):"0"===a.advanced_done&&a.advanced_cnt>0?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("재학습중")]):"0"===a.advanced_done&&0==a.advanced_cnt?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("학습중")]):e("b",{staticClass:"subtitle-1 fw-700"},[t._v("심화")])])],1)]:0==s.booktype_m&&0==s.type&&([0,1,2,3].includes(+s.category)||[4,100].includes(+s.category)&&+s.words_cnt>0)?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"voca"),color:t.setBtnColor(a,"voca")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"voca"))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"study"),color:t.setBtnColor(a,"study")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"study",s))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"test"),color:"1"===a.test_done||(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?"grey lighten-2":"info2"}},[(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?e("b",{staticClass:"subtitle-1 fw-700",staticStyle:{color:"#999da0"}},[t._v("심화")]):"0"===a.test_done&&a.test_cnt>0?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("재학습중")]):"0"===a.test_done&&0==a.test_cnt?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("학습중")]):e("b",{staticClass:"subtitle-1 fw-700"},[t._v("심화")])])],1)]:2==s.booktype_m?t._l(["major","advanced"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"6"}},[e("div",{staticClass:"ml-2 mr-2 left-0 right-0"},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i,s))+"\n ")])])],1)])})):1==s.type&&1==s.type_v?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"12"}},[e("div",{staticClass:"ml-2 mr-2 left-0 right-0"},[["S","T","V","M","A"].includes(a.mode)?e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,t.getModeName(a.mode)),color:t.setBtnColor(a,t.getModeName(a.mode))}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,t.getModeName(a.mode),s))+"\n ")])]):"X"==a.mode.charAt(0)?e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"mock"),color:t.setBtnColor(a,"mock")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v(" 듣기 ")])]):t._e()],1)])]:31===+s.booktype?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"voca"),color:t.setBtnColor(a,"voca")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"voca"))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"study"),color:t.setBtnColor(a,"study")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"study",s))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[[1,3].includes(+s.category)?e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"test"),color:t.setBtnColor(a,"test")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"test",s))+"\n ")])]):e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"mock"),color:"1"===a.mock_done||(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?"grey lighten-2":"info2"}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("듣기")])])],1)]:4==s.booktype_m&&3==s.booktype_s?t._l(["grammar_theory","grammar_basics","grammar_deep"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i))+"\n ")])])],1)})):50===+s.booktype?t._l(["story_v","story_m","story_a"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i))+"\n ")])])],1)})):t._l(["study","test"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"6"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i,s))+"\n ")])])],1)}))],2)],1)])})),0)]},proxy:!0}],null,!0)})],1)]}}],null,!0)})]}))],2)])},ns=[],ls={props:["student_data"],components:{},data(){return{current_type:"",select_student:"",select_student_data:[],user:this.$storage.get("user"),radar:{radar:{name:{textStyle:{color:"#000",borderRadius:3,padding:[1,1],fontFamily:"Apple SD Gothic Neo",fontSize:"1rem"}},nameGap:10,indicator:[{name:"어휘",max:100},{name:"영작",max:100},{name:"말하기",max:100},{name:"독해",max:100}],center:["50%","50%"],radius:"60%",splitArea:{areaStyle:{color:["rgba(250,250,250,0)","rgba(247, 248, 249, 1)"]}}}},tab:null,tabs:3,book_headers:[{text:"교재명",value:"bookname",align:"left",sortable:!1,search:!1},{text:"진도율",value:"rate",align:"left",sortable:!1,search:!1}],ing_items:[],end_items:[],ing_expanded:[],ing_options:{},ing_items_length:0,ing_page:1,ing_items_per_page:10,ing_sortby:void 0,ing_sortdesc:void 0,end_expanded:[],end_options:{},end_items_length:0,end_page:1,end_items_per_page:10,end_sortby:void 0,end_sortdesc:void 0,detail_sentences:"",detail_mean:"",sortby:void 0,sortdesc:void 0,new_modules_names:{0:"리스닝",1:"문장조합",2:"딕테이션",3:"문장찾기",4:"영작하기",5:"영작하기",6:"스피킹",7:"워드빙고",I:"어휘추론",O:"문단배열",R:"독해점검",B:"빈칸추론",G:"문법점검"},circle_size:0,circle_width:0,circle_font:0,last_seldate:"",last_select_student:"",mode:"list",loading_value:!1,loading_message:"잠시만 기다려주세요.",ppkey:0,hide_book:null,hide_confirm_text:"",hide_check_status:!1}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){},mounted(){this.student_data.loading_value=!0,setTimeout(()=>{this.student_data.loading_value=!1},500)},watch:{student_data:{handler(t){t.detailDialog||(this[this.current_type+"_expanded"].pop(),this.closeDialog(),this.student_data.loading_value=!1)},deep:!0},ing_options:{handler(){this.ing_page=this.ing_options.page,this.ing_items_per_page=this.ing_options.itemsPerPage,this.ing_sortby=this.ing_options.sortBy[0],this.ing_sortdesc=this.ing_options.sortDesc[0],this.getBook("ing",this.ing_page,this.ing_items_per_page,this.ing_sortby,this.ing_sortdesc,this.ing_keyword,this.select_student)},deep:!0},end_options:{handler(){this.end_page=this.end_options.page,this.end_items_per_page=this.end_options.itemsPerPage,this.end_sortby=this.end_options.sortBy[0],this.end_sortdesc=this.end_options.sortDesc[0],this.getBook("end",this.end_page,this.end_items_per_page,this.end_sortby,this.end_sortdesc,this.end_keyword,this.select_student)},deep:!0}},computed:{getModeName(){return t=>{const e={S:"study",T:"test",V:"voca",M:"major",A:"advanced"};return e[t]}},setStoryUnitName(){return t=>{let e="";return e=`${t.bookname} ${t.subtitle}`,e}},setBtnOutlined(){return(t,e)=>"0"===t[e+"_done"]&&t[e+"_cnt"]>0},setBtnColor(){return(t,e)=>{const s={voca:"warning",major:"success",study:"success",advanced:"info2",test:"info2",mock:"info2",grammar_theory:"warning",grammar_basics:"success",grammar_deep:"info2",story_v:"warning",story_m:"success",story_a:"info2"};return"1"===t[e+"_done"]?"grey lighten-2":s[e]}},setBtnText(){return(t,e,s=null)=>{let a="",i="";if(["test","advanced"].includes(e)?(i="시험",1===+s.type&&1===+s.type_v&&(i="심화")):i="학습","0"===t[e+"_done"])t[e+"_cnt"]>0?a=`재${i}중`:0==t[e+"_cnt"]&&(a=i+"중");else switch(e){case"study":a="학습",0===s.booktype_m&&0==s.type&&([0,1,2,3].includes(+s.category)||[4,100].includes(+s.category)&&s.words_cnt>0)?a=1===+s.category?"문장":3===+s.category?"지문":"본문":1==s.type&&1==s.type_v?1==s.category?(a="문장",31===+s.booktype&&(a="지문")):a=3==s.category?"지문":"본문":31===+s.booktype&&(a="본문",[1,3].includes(+s.category)&&(a="지문"));break;case"major":1==s.booktype_m&&0==s.type?a=3==s.category?"지문":"본문":2==s.booktype_m?a="학습":1==s.type&&1==s.type_v&&(a=1===+s.category?"문장":3===+s.category?"지문":"본문");break;case"test":case"advanced":a=1===+s.type&&1===+s.type_v||[1,3].includes(+s.category)&&31===+s.booktype?"심화":"시험";break;default:{const t={voca:"어휘",grammar_theory:"이론",grammar_basics:"기본",grammar_deep:"심화",story_v:"동화",story_m:"기본",story_a:"실전",test:"시험"};a=t[e];break}}return a}}},methods:{getTypeText:dt["b"],setUnitName:dt["e"],setStoryBookUnitName:dt["d"],isEndWithConsonant:dt["c"],getBook(t,e,s,a,i,o,n){let l=(e-1)*s,r=s,c=`${this.$host}/book/${this.student_data.currentItem.uid}/get${t}book/${l}/${r}`;"ing"==t&&this.hide_check_status&&(c+="?hide=true"),this.$axios.get(c).then(e=>{if(200==e.status){this[t+"_items"]=[],this[t+"_items_length"]=e.data.records;let s=e.data.rows;for(let e=0,a=s.length;e{console.log(t)})},toggleClassRow(t,e){if(this.current_type=e,"ing"==e){let t=document.querySelectorAll(".progress-wrap.ing");if(t&&t.length>0)for(let e=0;e0&&this[e+"_expanded"][0].sid==t.sid)this[e+"_expanded"].pop();else{if(""==t.sub_unit){let e=`${this.$host}/v2/book/${t.book_id}/schedule/${t.sid}/type/${t.type}/user/${this.student_data.currentItem.uid}`,s="?";const a="MOCK"==t.type?"MOCK":+t.type,i=t.booktype_m;1===a&&(s+=`tot_cnt=${+t.tot_cnt||0}&sen_cnt=${+t.sentence_cnt||0}`),1==i&&(s+="?"==s?"vma=1":"&vma=1"),"MOCK"===a&&(s+="?"==s?"mock=1":"&mock=1"),s+="&bt="+i,3!==+t.category&&1!==+t.category||31!==+t.booktype||(s+="&category=10"),this.$axios.get(`${e}${s}`).then(e=>{if(200==e.status){t.sub_unit=new Array;let s=1,i=Object.values(e.data);const o=i.findLastIndex(t=>1==+t.is_regular);let n=1,l=0;for(let e=0,r=i.length;e=o&&(+i[e].is_regular?i[e].name=n+"차 정규평가":i[e].name=l+"차 오답평가",l++,t.sub_unit.push(i[e]),e===r-1&&100!==+i[e].score&&t.sub_unit.push({name:l+"차 오답평가"}))):(i[e].num=s,t.sub_unit.push(i[e]),s++)}}).catch(t=>{console.log(t)})}this[e+"_expanded"].pop(),this[e+"_expanded"].push(t),"ing"==e&&document.getElementsByClassName(`${e}-pw-${t.sid}`)[0].classList.add("white")}},windowPrint(){window.print()},setPointer(t){let e=this.$refs[t][0],s=e.childNodes[0];s.offsetWidth>e.offsetWidth?e.classList.add("cursor"):e.classList.remove("cursor")},pageUpdate(t,e){this[e+"_expanded"]=[]}},beforeDestroy(){window.onresize=null}},rs=ls,cs=(s("865e"),s("0f93"),s("3eed"),Object(u["a"])(rs,os,ns,!1,null,"5b8a5be0",null)),ds=cs.exports,hs=s("b73d"),us=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"h-100",attrs:{id:"study-book-list",justify:"center",align:"stretch"}},[e(j["a"],{staticClass:"schedule-wrap"},[e("div",{staticClass:"schedule-content-section"},[t.show_schedule_status?e(U["a"],{staticClass:"w-100 mgauto pos-rel over-y-hidden"},[e(R["a"],{staticClass:"h-100",attrs:{id:"schedule_table",headers:t.book_header,items:t.schedule_items,"mobile-breakpoint":10,"items-per-page":t.schedule_items_per_page,"item-key":"sid","show-select":"","single-select":!1,"hide-default-header":"","hide-default-footer":"","fixed-header":"","no-data-text":"등록된 교재가 없습니다."},on:{"click:row":function(e){return t.clickScheduleRow(e,"click_row")},"item-selected":function(e){return t.clickScheduleRow(e.item,"item_selected")}},scopedSlots:t._u([{key:"item.bookname",fn:function({item:s}){return[e("div",{staticClass:"pos-rel"},[e("span",{staticClass:"cursor book-name"},[t._v("\n "+t._s(s.bookname)+"\n ")]),t.booknameTag(s)?e("span",{staticClass:"ml-1 fw-400 custom-tag cursor",class:t.booknameTag(s)},[t._v("\n "+t._s(t.booknameTag(s).toUpperCase())+"\n ")]):t._e(),3===+s.category&&1===+s.booktype||50===+s.booktype?t._e():e("div",{staticClass:"d-inline-block pos-abs translate-y",staticStyle:{right:"-16px"}},[e(q["a"],{staticClass:"pos-rel",staticStyle:{"margin-top":"-1px"},style:{color:t.select_user_schedule==s.id?"#1bd05b":"#d3d3d3"},attrs:{ripple:!1},on:{click:function(e){return e.stopPropagation(),t.showScheduleOption(s)}}},[t._v("\n mdi-chevron-right\n ")])],1)])]}}],null,!0),model:{value:t.schedule_table,callback:function(e){t.schedule_table=e},expression:"schedule_table"}})],1):t._e(),e("input",{key:t.temp_key,attrs:{type:"hidden"},domProps:{value:t.temp_key}})],1),""!=t.select_user_schedule?e(U["a"],{staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[""!=t.select_user_schedule&&t.show_schedule_status?e(j["a"],{staticClass:"pa-0 h-100",attrs:{"align-self":"center"}},[e(L["a"],{staticClass:"fs-1rem",staticStyle:{height:"100% !important"},attrs:{color:t.schedule_table.length>0?"red white--text":"white grey--text",depressed:"",block:"",tile:"",ripple:!1},on:{click:function(e){t.schedule_table.length>0&&t.openDialog("del_schedule")}}},[e("b",[t._v(" 스케쥴 삭제 ")])])],1):t._e()],1):t._e(),t.selectStudents.length>0?e(U["a"],{staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[t.selBookItems.length>0?e(j["a"],{staticClass:"py-0 px-1",attrs:{"align-self":"center"}},[e("b",{staticClass:"mr-2"},[t._v("교재 정보")]),t.origin_selected[0]?[t.origin_selected[0].publisher?e("span",[t._v("\n 제작자 "+t._s(t.origin_selected[0].publisher)+"\n ")]):t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:t.origin_selected[0].publisher,expression:"origin_selected[0].publisher"}],staticClass:"grey--text"},[t._v("\n |\n ")]),t.origin_selected[0].publishdate?e("span",[t._v("\n 제작년도 "+t._s(t.origin_selected[0].publishdate)+"\n ")]):t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:t.origin_selected[0].publishdate,expression:"origin_selected[0].publishdate"}],staticClass:"grey--text"},[t._v("\n |\n ")]),e("span",[t._v(" 학습일차 레슨 "+t._s(t.origin_selected[0].unit_cnt||1)+" ")])]:t._e()],2):t._e()],1):t._e()],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"920",persistent:"",transition:!1,"no-click-animation":!0},on:{"click:outside":t.closeSettingDialog},model:{value:t.setting_dialog,callback:function(e){t.setting_dialog=e},expression:"setting_dialog"}},[t.selected[0]?e(it["a"],{attrs:{id:"setting_dialog"}},[e(M["b"],{staticClass:"text-center py-4"},[e(U["a"],{staticClass:"pos-rel w-100 mgauto"},[e(j["a"],{staticClass:"px-3 pt-0 pb-0 mb-4 pos-rel align-center",attrs:{cols:"12"}},[e("h3",{staticClass:"title success--text custom-top d-inline-block px-12 py-2",staticStyle:{"background-color":"#f5f5f5","border-radius":"50px"}},[e("b",[t._v("수업 스케쥴")]),e("span",{staticClass:"black--text fw-300",staticStyle:{"font-size":"90%"}},[t._v("\n - "+t._s(t.selected[0].bookname)+"\n ")])])]),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[e("div",{staticClass:"w-100",staticStyle:{"border-bottom":"thin dashed #bdbdbd"}})]),e(j["a"],{staticClass:"py-0",staticStyle:{height:"42.5vh","overflow-x":"hidden","overflow-y":"auto"},attrs:{cols:t.isNonDetailSetting?12:8}},[t._l(t.selected[0].units,(function(s,a){return[e("div",{key:"units-row-"+a,staticClass:"w-100 mgauto border-ede thin-b align-center d-flex py-3"},[e("div",{staticStyle:{flex:"0.05"}},[e("div",{staticClass:"dotted mt-1"})]),e(ce["a"],{staticClass:"ma-0 pa-0",staticStyle:{flex:"0.05"},attrs:{dense:"","hide-details":"",color:"info",ripple:!1,disabled:t.show_schedule_mode},on:{change:function(e){return t.exceptUnit("change",s)}},model:{value:s.check,callback:function(e){t.$set(s,"check",e)},expression:"item.check"}}),50===+t.selected[0].booktype?e(Bt["a"],{staticClass:"px-2",attrs:{color:t.selected[0].color,"x-small":"",pill:""}},[e("span",{staticClass:"white--text"},[t._v(" No. "+t._s(s.no)+" ")])]):t._e(),e("span",{staticClass:"black--text cursor text-left pl-2",staticStyle:{flex:"0.9"},on:{click:function(e){!t.show_schedule_mode&&t.exceptUnit("click",s)}}},[t._v("\n "+t._s(s.name)+"\n "),e("span",{staticClass:"grey--text"},[t._v("\n "+t._s(s.subtitle)+"\n ")])])],1)]}))],2),e(j["a"],{directives:[{name:"show",rawName:"v-show",value:!t.isNonDetailSetting,expression:"!isNonDetailSetting"}],staticClass:"py-0 border-ede thin-l",attrs:{cols:"4"}},[e(U["a"],[t._l([0,1],(function(s){return[e(j["a"],{directives:[{name:"show",rawName:"v-show",value:1!=s||1!=t.select_option,expression:"idx == 1 && select_option == 1 ? false : true"}],key:"option-col-"+s,staticStyle:{height:"18vh"},attrs:{cols:"12"}},[e("div",{staticClass:"gmfont cursor h-100 d-flex justify-center flex-column br-4",style:t.select_option==s?"border: 2px solid #1bd05b;":"border: 1px solid #d4d4d4;"},[e("div",{staticClass:"d-flex justify-center flex-column",staticStyle:{"min-height":"40px"}},[e("span",{staticClass:"fw-500 ls-m-2",staticStyle:{"font-size":"1.75rem"},style:t.select_option==s?"color: #1bd05b;":"color: #dcdcdc;"},[t._v("\n "+t._s(0==s?"단원별 설정":"분할 설정")+"\n ")])]),e("span",{staticClass:"fw-500 ls-m-1 fs-1rem",style:t.select_option==s?"color: #989898;":"color: #dcdcdc;"},[t._v("\n "+t._s(0==s?"원본 교재의 단원에 맞게 학습":"지문 분할하여 여러 차시에 학습")+"\n ")])])])]})),e(j["a"],{directives:[{name:"show",rawName:"v-show",value:1==t.select_option,expression:"select_option == 1"}],staticStyle:{height:"18vh"},attrs:{cols:"12"}},[e("div",{staticClass:"gmfont cursor h-100 d-flex justify-center flex-column br-4",staticStyle:{border:"2px solid #1bd05b"}},[e("div",{staticClass:"fw-500 ls-m-2 pos-rel d-flex justify-space-between align-center",staticStyle:{"font-size":"1.75rem",color:"#1bd05b",margin:"-3px 0 3px 0"}},[e(q["a"],{staticStyle:{left:"8px"},attrs:{"x-large":"",ripple:!1,color:"success",disabled:!t.selected[0].units||!t.selected[0].units.some(t=>t.check)},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),!t.show_schedule_mode&&t.changeSentenceNum("left")}}},[t._v("\n mdi-chevron-left\n ")]),e("span",{staticClass:"usn mt-1"},[t._v("\n "+t._s(t.select_sentence_num)+"개\n ")]),e(q["a"],{staticStyle:{right:"8px"},attrs:{"x-large":"",ripple:!1,color:"success",disabled:!t.selected[0].units||!t.selected[0].units.some(t=>t.check)},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),!t.show_schedule_mode&&t.changeSentenceNum("right")}}},[t._v("\n mdi-chevron-right\n ")])],1),e("span",{staticClass:"fw-500 ls-m-1 fs-1rem",staticStyle:{color:"#989898"}},[t._v("\n 지문 분할하여 여러 차시에 학습\n ")])])]),e(j["a"],{staticClass:"pt-1 pb-0",staticStyle:{height:"6.5vh"},attrs:{cols:"12"}},[e(U["a"],{staticClass:"w-100 h-100 mgauto align-center"},[e(j["a"],{staticClass:"text-left pa-0 align-self-center",attrs:{cols:"6"}},[e("h2",{staticClass:"custom gmfont h-100 text-center fw-500",staticStyle:{"line-height":"1.5","border-right":"1px solid #eeeeee"}},[e("span",{staticClass:"ls-m-1",staticStyle:{color:"#bfbfbf","font-size":"90%"}},[t._v("\n "+t._s(t.selected[0]&&2==+t.selected[0].booktype_m?"전체 단어":"전체 지문")+"\n ")]),e("br"),e("b",{staticClass:"success--text pos-rel",staticStyle:{top:"1px"}},[t._v(t._s(t.selected[0].total_cnt)+"개")])])]),e(j["a"],{staticClass:"text-right pa-0 align-self-center",attrs:{cols:"6"}},[e("h2",{staticClass:"custom gmfont h-100 text-center fw-500",staticStyle:{"line-height":"1.5"}},[e("span",{staticClass:"ls-m-1",staticStyle:{color:"#bfbfbf","font-size":"90%"}},[t._v("\n 학습 차시\n ")]),e("br"),e("b",{staticClass:"success--text pos-rel",staticStyle:{top:"1px"}},[t._v("\n "+t._s(t.unit_cnt)+t._s(0==t.select_option?"단원":"차시")+"\n ")])])])],1)],1)],2)],1)],1)],1),e(M["a"],{staticClass:"pa-0",attrs:{id:"org_action"}},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},style:t.show_schedule_mode?"background-color: #1bd05b;":t.checkAllView?"background-color: #f5f5f5;":"background-color: #1bd05b;",attrs:{id:"org_action_btn","x-large":"",text:"",disabled:!t.show_schedule_mode&&t.checkAllView},on:{click:function(e){t.show_schedule_mode?t.setting_dialog=!1:t.newSetOption()}}},[e("h3",{staticClass:"title-1 custom"},[e("b",{staticStyle:{"font-size":"95%"},style:t.show_schedule_mode?"color: white;":t.checkAllView?"color: #9e9e9e;":"color: white;"},[t._v("\n "+t._s(t.show_schedule_mode?"확인":"적용")+"\n ")])])])],1)],1):t._e()],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"920",persistent:"",transition:!1,"no-click-animation":!0},on:{"click:outside":t.deleteStoryBookDialogClose},model:{value:t.deleteStoryBookDialog,callback:function(e){t.deleteStoryBookDialog=e},expression:"deleteStoryBookDialog"}},[t.delStoryBook?e(it["a"],{attrs:{id:"setting-dialog"}},[e(M["b"],{staticClass:"text-center py-4"},[e(U["a"],{staticClass:"pos-rel w-100 mgauto"},[e(j["a"],{staticClass:"px-3 pt-0 pb-0 mb-4 pos-rel align-center",attrs:{cols:"12"}},[e("div",{staticClass:"pos-abs translate-y",staticStyle:{left:"calc(12px + 2.5%)"}},[e(hs["a"],{staticClass:"mt-0 py-0 d-inline-block pos-rel",staticStyle:{top:"1px"},attrs:{color:"info",inset:"","hide-details":"",flat:"",dense:"",ripple:!1},on:{change:function(e){return t.changeAllUnitsSwitch(e,"deleteStory")}},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"fs-1rem",class:t.all_units_switch?"info--text":"",staticStyle:{"margin-top":"-2px"}},[t._v("\n 교재 전체\n ")])]},proxy:!0}],null,!1,636033269),model:{value:t.all_units_switch,callback:function(e){t.all_units_switch=e},expression:"all_units_switch"}})],1),e("h3",{staticClass:"title success--text custom-top d-inline-block px-12 py-2",staticStyle:{"background-color":"#f5f5f5","border-radius":"50px"}},[e("b",[t._v("수업 스케쥴")]),e("span",{staticClass:"black--text fw-300",staticStyle:{"font-size":"90%"}},[t._v("\n - "+t._s(t.delStoryBook.bookname)+"\n ")])])]),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[e("div",{staticClass:"w-100",staticStyle:{"border-bottom":"thin dashed #bdbdbd"}})]),e(j["a"],{staticClass:"py-0",staticStyle:{height:"42.5vh","overflow-x":"hidden","overflow-y":"auto"},attrs:{cols:"12"}},[t._l(t.delStoryBook.units,(function(s,a){return[e("div",{key:"units-row-"+a,staticClass:"w-100 mgauto border-ede thin-b align-center d-flex py-3"},[e("div",{staticStyle:{flex:"0.05"}},[e("div",{staticClass:"dotted mt-1"})]),e(ce["a"],{staticClass:"ma-0 pa-0",staticStyle:{flex:"0.05"},attrs:{dense:"","hide-details":"",color:"info",ripple:!1},on:{change:function(e){return t.deleteStoryBookCheck(e,s,"change")}},model:{value:s.check,callback:function(e){t.$set(s,"check",e)},expression:"item.check"}}),e(Bt["a"],{staticClass:"px-2",attrs:{color:t.delStoryBook.color,"x-small":"",pill:""}},[e("span",{staticClass:"white--text"},[t._v("\n No.\n "+t._s(s.cover_path.split("-")[1].replace(".png",""))+"\n ")])]),e("span",{staticClass:"black--text cursor text-left pl-2",staticStyle:{flex:"0.9"},on:{click:function(e){return t.deleteStoryBookCheck(e,s,"click")}}},[t._v("\n "+t._s(s.schedule_name)+"\n\n "),e("span",{staticClass:"grey--text"},[t._v("\n "+t._s(s.subtitle)+"\n ")])])],1)]}))],2)],1)],1),e(M["a"],{staticClass:"pa-0",attrs:{id:"org_action"}},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},style:{backgroundColor:t.delStoryBookCheck?"red":"#f5f5f5"},attrs:{id:"org_action_btn","x-large":"",text:"",disabled:!t.delStoryBookCheck},on:{click:function(e){return t.openDialog("del_schedule")}}},[e("h3",{staticClass:"title-1 custom"},[e("b",{staticStyle:{"font-size":"95%"},style:{color:t.delStoryBookCheck?"white":"#9e9e9e"}},[t._v("\n 삭제\n ")])])])],1)],1):t._e()],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e()],1)},_s=[];const ps=20,ms=["lesson","test","v","m","a","vm","va","gt","gb","gd"];var gs={props:["student_data"],components:{LoadingDialog:bt["a"]},data(){return{user:this.$storage.get("user"),search:"",settings:[],select_class_status:!1,class_item_lesson_day:"",class_students:[],select_class:"",select_class_id:"",selectStudents:[],class_students_settings:[],select_grade:{1:null,2:null,3:null,4:null,5:null},select_sort:{1:null,2:null,3:null,4:null,5:null},last_select_grade:null,last_select_sort:null,select_user_schedule:"",select_user_name:"",tab:null,tabs:Object.freeze([]),item_length:{1:0,2:0,3:0,4:0},items_per_page:{1:ps,2:200,3:ps,4:ps,5:ps},schedule_items_per_page:ps,history_tab:[1],gradeLabel:"학년",grade_items:Object.freeze([{text:"전체",value:"all"},{text:"초1",value:"e1"},{text:"초2",value:"e2"},{text:"초3",value:"e3"},{text:"초4",value:"e4"},{text:"초5",value:"e5"},{text:"초6",value:"e6"},{text:"중1",value:"m1"},{text:"중2",value:"m2"},{text:"중3",value:"m3"},{text:"고1",value:"h1"},{text:"고2",value:"h2"},{text:"고3",value:"h3"}]),sort_items:Object.freeze([{text:"가나다순",value:"alphabet"},{text:"최근 제작순",value:"recent"},{text:"교재 유형순",value:"booktag"}]),book_header:Object.freeze([{text:"bookname",value:"bookname",align:"left",sortable:!1}]),book_items:[],selBookItems:[],selected:[],origin_selected:[],first_status:0,ftmp1:"",ftmp2:"",select_option:0,select_sentence_num:15,opt1:!0,opt2:!0,opt3:!1,total_cnt:0,unit_cnt:0,unit_cnt_arr:[],unit_view_num:0,cur_sel_id:"",checkAllView:!0,datatable_component:0,temp_key:0,popup_status:!1,cakey:0,add_s_status:!1,dup_dialog:!1,dup_after_warning:!1,dup_res:!1,warning_dialog:!1,setting_dialog:!1,new_set_option:!1,close_sd_status:!0,real_select_option:0,schedule_table:[],schedule_items:[],show_schedule_status:!1,tmp_item:null,tmp_idx:null,select_user_name2:"",image_dialog:!1,image_category:"",image_cover:"",now_category:"",sub_mode:"list",select_folder:null,all_units_switch:!0,select_form_item:null,filesample_opt:null,show_schedule_mode:!1,loading_value:!1,loading_message:"잠시만 기다려주세요.",now_min_cnt:0,sel_book_type:null,setting_key:0,isNonDetailSetting:!1,deleteStoryBookDialog:!1,delStoryBook:null,isOnlySpecialUnit:!1,user_storybook:[]}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){const t={0:{id:0,text:"리스닝",status:1},1:{id:1,text:"문장조합",status:1},2:{id:2,text:"딕테이션",status:1},3:{id:3,text:"문장찾기",status:1},4:{id:4,text:"영작하기",status:1},5:{id:5,text:"영작하기",status:1},6:{id:6,text:"스피킹",status:1},7:{id:7,text:"워드빙고",status:1},I:{id:"I",text:"어휘추론",status:1},O:{id:"O",text:"문단배열",status:1},R:{id:"R",text:"독해점검",status:1},G:{id:"G",text:"문법점검",status:1}},e={lesson:[1,2,3,4],test:[1,2,5,6],v:[0,7,2,"I"],m:[1,3,6,5],a:["O","R",2,"G"],vm:[0,7,2,3],va:[0,2,6,5]},s=["lesson","test","v","m","a","vm","va"];for(let a=0,i=s.length;a{this.student_data.loading_value=!1},500),this.showUserSchedule(),"F"===this.user.product_type&&(this.sel_book_type="free",this.getBookList(1),this.tab=1),Tr.$on("close_event",t=>{if(1==t.status){this.add_s_status&&(this.resetCommonData(),this.add_s_status=!1),this.warning_dialog=!1,this.unit_view_num=0,this.filesample_opt=null;for(let t=0,e=this.unit_cnt_arr.length;t{document.getElementById("loading-wrapper").style.display="none"},100)},watch:{student_data:{handler(t){t.detailDialog||(this.closeSchedule(),this.student_data.loading_value=!1),t.isDelSchedule&&this.delSchedule()},deep:!0},schedule_items(t){},class_students_settings(t){t.length>0&&!this.sel_book_type&&this.$refs.select_book_type.showPopup()},setting_dialog(t){t?this.show_schedule_mode||(this.select_sentence_num=15):this.show_schedule_mode=!1},dup_dialog(t){t||(this.dup_after_warning=!1)},sel_book_type(t){const e=[{text:"가나다순",value:"alphabet"},{text:"최근 제작순",value:"recent"}];"course"===t?(this.tabs=Object.freeze(["핵심 영상강의","심화 스토리북","필수 주요구문","기본 영어단어"]),this.sort_items=Object.freeze([...e])):(this.tabs=Object.freeze(["멤버십","교과서","수능/모의고사","영어듣기평가","만든교재"]),this.sort_items=Object.freeze([...e,{text:"교재 유형순",value:"booktag"}]))},tab(t){if("course"===this.sel_book_type&&2===t){this.gradeLabel="레벨";const t=[{text:"전체",value:"all"}];for(let e=1;e<=16;e++)t.push({text:`Lv. ${e}단계`,value:e});this.grade_items=Object.freeze([{text:"전체",value:"all"},{text:"초1",value:"e1"},{text:"초2",value:"e2"},{text:"초3",value:"e3"},{text:"초4",value:"e4"},{text:"초5",value:"e5"},{text:"초6",value:"e6"},{text:"중1",value:"m1"},{text:"중2",value:"m2"},{text:"중3",value:"m3"},{text:"고1",value:"h1"},{text:"고2",value:"h2"},{text:"고3",value:"h3"}])}else this.gradeLabel="학년",this.grade_items=Object.freeze([{text:"전체",value:"all"},{text:"초1",value:"e1"},{text:"초2",value:"e2"},{text:"초3",value:"e3"},{text:"초4",value:"e4"},{text:"초5",value:"e5"},{text:"초6",value:"e6"},{text:"중1",value:"m1"},{text:"중2",value:"m2"},{text:"중3",value:"m3"},{text:"고1",value:"h1"},{text:"고2",value:"h2"},{text:"고3",value:"h3"}]);"school"===this.sel_book_type&&this.book_items[t]&&setTimeout(()=>{const t=document.getElementById("default_table");if(!t)return;const e=t.getElementsByClassName("v-data-table__wrapper")[0];if(!e)return;const s=window.scroll_container.isEqualNode(e),a=window.scroll_container.isSameNode(e);s&&a||this.setScroll()},100)},show_schedule_status(t){t&&(this.tab=1)}},computed:{tabsOrder(){return t=>(this.sel_book_type,3==t?2:t)},booknameTag(){return t=>{let e=!1;const s=+t.category,a=+t.booktype;return t.id==this.selBookItems[0]&&this.new_set_option&&this.select_option>1||4==s&&t.tmp_academy_name||([11,43,50].includes(+a)||[1,3].includes(s)&&31===+a?e="hot":1==t.booktype_s||[1,2,3].includes(+s)&&0===+a?e="new":22===+a&&(e="voca")),e}},delStoryBookCheck(){return this.delStoryBook.units.some(t=>t.check)}},methods:{getBookList(t,e=null,s=null){console.log("getBookList",e,s);let a=t;if("course"===this.sel_book_type?(t=1,2!==this.tab&&(this.book_items[1]=[],this.book_items[2]=[],this.book_items[3]=[],this.book_items[4]=[])):1===t?(t=2,a=1):[2,3].includes(t)||(4===t?t+=1:t-=1),"course"===this.sel_book_type){const t=[];for(let e=1;e<=16;e++){let s="";e<=4?s="e3":e<=6?s="e4":e<=8?s="e5":e<=10?s="e6":e<=12?s="m1":e<=14?s="m2":e<=16&&(s="m3"),t.push({id:"admin-storybook-"+e,bookname:"내공백서 스토리북 Lv. "+e,color:this.$store.state.storybook_color[e],category:1,new_category:1,grade:s,publishdate:"",publisher:"내공스터디",total_cnt:0,unit_cnt:26,unit_per_cnt:0,origin_upc:0,cover:"",booktype:50,booktype_m:5,booktype_s:0,words_cnt:0,tmp_academy_name:null,folder_id:null,isSelected:!1})}if(2===this.tab&&(e||s))return"recent"===s&&t.reverse(),this.book_items[2]="all"===e||null===e?[...t]:t.filter(t=>t.grade===e),this.last_select_grade=e,void(this.last_select_sort=s);this.book_items[2]=[...t]}this.last_select_grade=e,this.last_select_sort=s,this.loading_value=!0,this.opt3=!1,this.selected=[],this.selBookItems=[],this.selected[0]&&(this.selected[0].isSelected=!1);let i=`${this.$host}/book/getlist/${t}`;4==t&&(i+="/"+this.$cid),i+="?",4==t&&(i+="&type=schedule"),e&&"all"!=e&&(i+="&grade="+e),s&&(i+="&sort="+s);const o=[42,43,53,54,64,65,77,78,90,91];this.$axios.get(i).then(e=>{if(200==e.status){2===t&&(this.book_items[2]=[]),this.book_items[a]=[];let s=Object.values(e.data);for(let e=0,i=s.length;e{console.log(t),this.book_items[a]=[],this.loading_value=!1,this.setScroll()})},selectBook(t){if(this.opt3=!1,t.tmp_academy_name)return this.openDialog("c4_allbook",!1,"end"),t.isSelected=!1,!1;const e=new Promise((e,s)=>{let a=!0;if(3==t.category&&1===+t.booktype&&(a=!1),!t.units&&a)this.$axios.get(`${this.$host}/book/${t.id}/unit`).then(a=>{if(200==a.status){let s=0,i=0;a.data.forEach((t,e)=>{t.no=e+1,t.check=!0,s+=+t.sentences_cnt,i+=+t.words_cnt}),t.units=a.data,t.total_cnt=2==t.booktype_m&&2==t.booktype_s?i:s,e()}else 204==a.status?e():s(a)}).catch(t=>{s(t)});else{if(a){let e=0,s=0;t.units.forEach(t=>{t.check=!0,e+=+t.sentences_cnt,s+=+t.words_cnt}),t.total_cnt=2==t.booktype_m&&2==t.booktype_s?s:e}e()}});e.then(()=>{if(t.isSelected)return this.selected=[],this.selBookItems=[],this.total_cnt=0,t.isSelected=!1,!1;this.selected[0]&&(this.selected[0].isSelected=!1),this.selected=[],this.selBookItems=[],this.origin_selected=[],this.selected.push(t),this.selBookItems.push(t.id),this.origin_selected=this.deepClone(this.selected),this.total_cnt=parseInt(t.total_cnt),this.unit_cnt=parseInt(t.unit_cnt),t.isSelected=!0,1===+t.category&&[43,50].includes(+t.booktype)&&(this.isNonDetailSetting=!0),this.select_option=0,this.new_set_option=!1,this.checkAllView=!1,0==this.selected[0].total_cnt&&0==this.selected[0].unit_cnt?(this.setting_dialog=!1,this.new_set_option=!0):this.setting_dialog=!0}).catch(t=>{console.error(t)})},changeSentenceNum(t){if(this.show_schedule_mode)return!1;if("left"==t){if(this.select_sentence_num-5<=0)return!1;this.select_sentence_num-=5}else if("right"==t){if(this.select_sentence_num+5>100)return!1;this.total_cnt>this.select_sentence_num&&(this.select_sentence_num+=5)}let e=this.selected[0];if(e.words_cnt>0&&2!=e.booktype_m)if(e.unit_per_cnt){let t=0;if(this.select_option){let s=e.unit_per_cnt.split(",");for(let e=0;et.check).length;else this.select_option?this.unit_cnt=isFinite(Math.ceil(e.total_cnt/this.select_sentence_num))?Math.ceil(e.total_cnt/this.select_sentence_num):0:this.unit_cnt=e.units.filter(t=>t.check).length},warningFalse(){document.getElementById("from-right-slide-dialog").classList.remove("open"),setTimeout(()=>{this.warning_dialog=!1},500)},closeSettingDialog(){this.selected[0].isSelected=!1,this.selected[0].unit_per_cnt=this.selected[0].origin_upc,this.all_units_switch=!0,this.selected=[],this.unit_cnt_arr=[],this.selBookItems=[],this.new_set_option=!1,this.select_option=0,this.close_sd_status=!1,this.isNonDetailSetting=!1,this.setting_dialog=!1},showUserSchedule(){this.$axios.get(`${this.$host}/book/${this.student_data.currentItem.uid}/getschbook`).then(t=>{if(200==t.status){this.schedule_items=[];for(let e of Object.values(t.data.rows))if(void 0!==e.length){const t=e[0].level;let s={sid:"storybook_"+t,bookname:"내공백서 스토리북 Lv. "+t,color:this.$store.state.storybook_color[t],category:1,booktype:50,type:0,units:e};this.schedule_items.push(s)}else{let t={sid:e.schedule_id,bookname:e.schedule_name,category:e.category,grade:e.grade,booktype:e.booktype,booktype_m:Math.floor(Number(e.booktype)/10),booktype_s:Number(e.booktype)%10,type:e.type,sentence_cnt:e.sentence_cnt,except_unit_seq:e.except_unit_seq,tot_unit_cnt:e.tot_unit_cnt,units:e.units};this.schedule_items.push(t)}}else 204==t.status&&(this.schedule_items=[]);this.resetCommonData(),this.selectStudents=[],this.class_students_settings=[],this.select_user_schedule=this.student_data.currentItem.uid,this.show_schedule_status=!0,this.closeDialog()}).catch(t=>{console.log(t)})},clickScheduleRow(t,e){const s=()=>{this.$nextTick(()=>{let e=this.schedule_table.findIndex(e=>e.sid===t.sid);-1!==e?this.schedule_table.splice(e,1):this.schedule_table.push(t)})};if(50===t.booktype)return this.schedule_table=[],this.delStoryBook=t,void(this.deleteStoryBookDialog=!0);"click_row"==e&&s()},delSchedule(){let t=null,e=null;this.schedule_table&&this.schedule_table.length>0?(e="schedule",t=this.schedule_table.map(t=>t.sid)):0===this.schedule_table.length&&this.delStoryBook&&(e="storybook",t=this.delStoryBook.units.filter(t=>t.check).map(t=>t.schedule_id)),null!==t&&0!==t.length?this.$axios.post(`${this.$host}/schedule/${this.$cid}/user/${this.select_user_schedule}/delscheduleuser`,{sid:t}).then(s=>{200==s.status&&(this.student_data.isDelSchedule=!1,"schedule"===e?(t.forEach(t=>{const e=this.schedule_items.findIndex(e=>e.sid==t);-1!=e&&this.schedule_items.splice(e,1),this.schedule_table=[]}),this.closeDialog()):"storybook"===e&&(t.forEach(t=>{const e=this.delStoryBook.units.findIndex(e=>+e.schedule_id===+t);if(-1!=e&&this.delStoryBook.units.splice(e,1),0===this.delStoryBook.units.length){const t=this.delStoryBook.sid,e=this.schedule_items.findIndex(e=>e.sid==t);-1!=e&&this.schedule_items.splice(e,1)}}),this.deleteStoryBookDialogClose()),setTimeout(()=>{this.openAlert("schedule_del_success")},800),this.closeDialog())}).catch(t=>{console.log(t)}):this.closeDialog()},closeSchedule(){this.resetCommonData(),this.selectStudents=[],this.class_students_settings=[],this.all_units_switch=!0,this.schedule_table=[],this.select_user_schedule="",this.close_sd_status=!0,this.show_schedule_status=!1},resetCommonData(){console.log("resetCommonData"),this.opt1=!0,this.opt2=!0,this.opt3=!1,this.resetSettings(),this.selBookItems=[],this.selected[0]&&(this.selected[0].isSelected=!1),this.selected=[],this.new_set_option=!1,this.select_option=0,this.unit_cnt_arr=[],this.select_sentence_num=15,this.unit_view_num=0,this.total_cnt=0,this.unit_cnt=0},exceptUnit(t,e){let s=this.selected[0];"click"==t&&(e.check=!e.check,this.$forceUpdate());let a=0;s.units&&(a=+s.units[0].seq);let i=+e.seq-a,o=0;o=2==s.booktype_m&&2==s.booktype_s?+e.words_cnt:+e.sentences_cnt;let n=s.unit_per_cnt?s.unit_per_cnt.split(","):null;if(e.check){if(s.unit_per_cnt){let t=s.origin_upc.split(",");n.splice(i,1,t[i]),s.unit_per_cnt=n.join(",")}s.total_cnt+=o,0===+this.select_option?this.unit_cnt+=1:this.changeSentenceNum()}else e.check||(s.unit_per_cnt&&(n.splice(i,1,0),s.unit_per_cnt=n.join(",")),s.total_cnt-=o,0===+this.select_option?this.unit_cnt-=1:this.changeSentenceNum());s.units.every(t=>!t.check)?this.checkAllView=!0:(this.checkAllView=!1,this.all_units_switch=!1),s.units.every(t=>t.check)&&(this.all_units_switch=!0)},changeAllUnitsSwitch(t,e=null){"deleteStory"===e&&this.delStoryBook.units.forEach(e=>{e.check=t})},showScheduleOption(t){if(t){this.unit_cnt=+t.tot_unit_cnt,this.select_option=+t.type,this.select_sentence_num=t.sentence_cnt;let e=0,s=0;t.units.forEach(t=>{t.check&&(e+=+t.sentences_cnt,s+=+t.words_cnt)}),t.total_cnt=2==t.booktype_m&&2==t.booktype_s?s:e,this.selected=[t],this.setting_dialog=!0,this.show_schedule_mode=!0}},resetSettings(){ms.forEach(t=>{this[t+"_settings"]&&this[t+"_settings"].forEach(t=>{t.status=1})})},reSelectBookType(){this.book_items=[],this.sub_mode="list",this.select_folder=!1,this.sel_book_type=null,this.search="";const t={1:null,2:null,3:null,4:null,5:null};this.select_grade=Object.assign({},t),this.select_sort=Object.assign({},t),this.last_select_grade=null,this.last_select_sort=null,this.tab=1,this.resetCommonData(),this.$refs.select_book_type.showPopup()},selectBookType(t){this.sel_book_type=t,this.getBookList(1),this.tab=1},clickScheduleType(t){this.$store.dispatch("soundEffectPlay","click_button"),"course"===this.sel_book_type&&[1,2].includes(this.tab)&&1===t?this.openAlert("coursebook_option_only_unit"):this.select_option=this.show_schedule_mode?this.select_option:t},deleteStoryBookCheck(t,e,s){"click"===s&&(t=!e.check),e.check=t,this.all_units_switch=this.delStoryBook.units.every(t=>t.check)},deleteStoryBookDialogClose(){this.deleteStoryBookDialog=!1,this.delStoryBook.units.forEach(t=>{t.check=!0}),this.delStoryBook=null,this.all_units_switch=!0},setItemLength(){window.timeout1=window.setTimeout(()=>{const t=this.book_items;for(let e in t)t[e]&&(this.item_length[e]=t[e].length)},10)},setScroll(){console.log("hihi"),this.student_data.detailDialog&&setTimeout(()=>{let t="default_table";this.show_schedule_status&&(t="schedule_table"),window.scroll_container=void 0,console.log("setScroll",t,window.scroll_container),window.cnt=0,this.setscroll_timeout=window.setInterval(()=>{console.log("interval",window.cnt),document.getElementById(t)||window.clearInterval(this.setscroll_timeout),window.scroll_container=document.getElementById(t).getElementsByClassName("v-data-table__wrapper")[0],void 0!==window.scroll_container&&(window.clearInterval(this.setscroll_timeout),this.show_schedule_status||this.setItemLength(),window.scroll_container.onscroll=this.onScroll),window.cnt+=1,window.cnt>=200&&(window.clearInterval(this.setscroll_timeout),window.cnt=void 0)},50)},200)},onScroll(){console.log("onScroll");let t=window.scroll_container;if(t.scrollTop+t.clientHeight>=t.scrollHeight-2){if(this.show_schedule_status){if(this.schedule_items.length{window.load_timeout=null},1200)}}},beforeDestroy(){window.timeout1&&clearTimeout(window.timeout1),this.setscroll_timeout&&window.clearInterval(this.setscroll_timeout)}},bs=gs,fs=(s("d9df"),Object(u["a"])(bs,us,_s,!1,null,null,null)),ys=fs.exports,vs={components:{StudyCalendar:is,StudyProgress:ds,StudyBookList:ys},props:["data"],data(){return{contents:[]}},created(){},mounted(){},watch:{},computed:{},methods:{closeDialog(){this.data.detailDialog=!1},sendReportOpenEvent(t){this.$emit("open-report-event",t)}}},xs=vs,ks=(s("f21f"),Object(u["a"])(xs,Qe,Xe,!1,null,"1c0db0b5",null)),ws=ks.exports,Cs=s("a523"),Ss=s("8860"),$s=s("da13"),As=s("5d23"),Ds=s("1baa"),Ps=s("490a"),Bs=function(){var t=this,e=t._self._c;return e(j["a"],{staticClass:"py-0 pt-3",class:t.$parent.mode,style:"reportview_error_print"==t.$parent.mode?"padding-top: 0 !important":"",attrs:{id:"result-component-col",cols:"12",sm:"12",md:"12",lg:"12"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:"report"==t.$parent.mode,expression:"$parent.mode == 'report'"}],staticClass:"h-100 printnone"},[e("div",{staticClass:"component printnone",attrs:{id:"result-wrapper"}},[e(J["a"],{attrs:{id:"result-list","background-color":"grey lighten-4",color:t.report.type_class,light:"",grow:"","hide-slider":!0},model:{value:t.report.tab,callback:function(e){t.$set(t.report,"tab",e)},expression:"report.tab"}},[e(W["a"],{key:"result-tab-0",staticClass:"first-tab",class:"bg-"+t.report.type_class,attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("b",{staticClass:"tab-title fs-105rem"},[t._v("Report")])]),t._l(t.report.tabs,(function(s,a){return e(W["a"],{key:"result-tab-"+(a+1),attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.report.tab,expression:"report.tab == 0"}],staticClass:"under-line",class:"bg-"+t.report.type_class}),e("b",{staticClass:"tab-title fs-105rem",class:t.report.tab==a+1?"fw-700":""},[t._v("\n "+t._s(t.setTitle(s))+"\n ")])])})),e(V["a"],{class:{"bg-grey":0==t.report.tab},staticStyle:{"overflow-y":"auto"},attrs:{touchless:""},model:{value:t.report.tab,callback:function(e){t.$set(t.report,"tab",e)},expression:"report.tab"}},[e(Y["a"],{key:"result-tab-item-0",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[e(Cs["a"],{staticClass:"pa-0",attrs:{fluid:""}},[e(U["a"],[e(j["a"],{staticClass:"vertical-helf py-0 pl-0 pr-1",attrs:{cols:"8"}},[e(it["a"],{staticClass:"elevation-0",attrs:{height:"100%"}},[e(U["a"],{staticClass:"before-divider divider-bottom row-20per"},[e(j["a"],{staticClass:"pl-6 fs-105rem",attrs:{cols:"12"}},[e("span",[t._v("레포트 정보")]),e(q["a"],{attrs:{color:"black",size:"1.5rem"}},[t._v("mdi-chevron-right")]),t._v("\n   "),e("span",{staticClass:"grey--text text--darken-1"},[t._v(t._s(t.report.info.postdate))])],1)],1),e(U["a"],{staticClass:"before-divider divider-bottom row-40per",staticStyle:{height:"40%"}},[e(j["a"],{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("f07b"),"lazy-src":s("f07b"),transition:!1}}),e("div",{staticClass:"divider"})],1),e(j["a"],{staticClass:"col-start",attrs:{cols:"8"}},[e("h3",{staticClass:"title"},[t._v(t._s(t.report.info.name))]),e("span",{staticClass:"grey--text text--darken-1"},[t._v("\n "+t._s(t.report.info.classname)+"\n ")])])],1),e(U["a"],{staticClass:"row-40per",staticStyle:{height:"40%"}},[e(j["a"],{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("6628"),"lazy-src":s("6628"),transition:!1}}),e("div",{staticClass:"divider"})],1),e(j["a"],{staticClass:"col-start",attrs:{cols:"8"}},[e("h3",{staticClass:"title"},[t._v("\n "+t._s(t.report.info.bookname)+"\n ")]),e("span",{staticClass:"grey--text text--darken-1"},[t._v("\n "+t._s(t.report.info.unitname?t.report.info.unitname:"Unit "+(Number(t.report.info.unit_seq)+1))+"\n ")])])],1)],1)],1),e(j["a"],{staticClass:"vertical-helf pl-0 pt-0 pr-0 pb-0",attrs:{cols:"4"}},[e(it["a"],{staticClass:"elevation-0",attrs:{height:"100%"}},[e(U["a"],{staticClass:"row-20per"},[e(j["a"],{staticClass:"before-divider divider-bottom pl-6 fs-105rem",attrs:{cols:"12"}},[t._v("\n 종합 스코어\n "),e(q["a"],{attrs:{color:"black",size:"1.5rem"}},[t._v("mdi-chevron-right")])],1)],1),e(U["a"],{staticClass:"border-ede row-80per",attrs:{id:"circle-row"}},[e(j["a"],{staticClass:"text-center h-100",attrs:{id:"circle-col",cols:"12"}},[t.report.circle_size>1?e(Ps["a"],{style:`font-size:${t.report.circle_font}px; font-weight:500;`,attrs:{indeterminate:!1,rotate:.3,size:t.report.circle_size,value:t.report.info.avg,width:t.report.circle_width,color:t.report.type_class}},[e("span",{staticClass:"black--text"},[t._v("\n "+t._s(t.report.info.avg)),e("small",[t._v("점")])])]):t._e()],1)],1)],1)],1)],1),e(U["a"],[e(j["a"],{staticClass:"vertical-helf px-0 pb-0 pt-1",attrs:{cols:"12"}},[e(it["a"],{staticClass:"elevation-0",attrs:{height:"100%"}},[e(U["a"],{staticClass:"row-20per"},[e(j["a"],{staticClass:"before-divider divider-bottom pl-6 fs-105rem",attrs:{cols:"12"}},[e("span",[t._v("레포트 분석")]),e(q["a"],{attrs:{color:"black",size:"1.5rem"}},[t._v("mdi-chevron-right")])],1)],1),e(U["a"],{staticClass:"row-80per padding-x-10per",staticStyle:{position:"relative"}},[e(j["a"],{staticClass:"col-center py-0",staticStyle:{height:"100%"},attrs:{cols:"3"}},[e("div",{staticClass:"text-center"},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("a61e"),"lazy-src":s("a61e"),transition:!1}}),e("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[t._v("\n 학습 문항\n ")]),e("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.report.info.question_cnt)+"문항\n ")])],1)]),e(j["a"],{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[e("div",{staticClass:"text-center"},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("9875"),"lazy-src":s("9875"),transition:!1}}),e("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[t._v("\n 오답 문항\n ")]),e("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.report.info.wrong_cnt)+"개\n ")])],1)]),e(j["a"],{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[e("div",{staticClass:"text-center"},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("3260"),"lazy-src":s("3260"),transition:!1}}),e("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[t._v("\n 오답률\n ")]),e("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.report.info.error_rate)+"%\n ")])],1)]),e(j["a"],{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[e("div",{staticClass:"detail-caption text-center"},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("b4ef"),"lazy-src":s("b4ef"),transition:!1}}),e("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[t._v("\n 학습 시간\n ")]),e("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.report.info.totminute)+"분\n ")])],1)])],1)],1)],1)],1)],1)],1),t._l(t.report.tabs,(function(s,a){return e(Y["a"],{key:"result-tab-item-"+(a+1),attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[e(Ss["a"],{staticClass:"py-0",attrs:{flat:""}},[e(Ds["a"],{attrs:{mandatory:""},model:{value:t.report.model,callback:function(e){t.$set(t.report,"model",e)},expression:"report.model"}},["상세내용"==s&&t.report.mock_infos.right_group?[t._l(t.report.mock_infos.right_group,(function(s,i){return[e($s["a"],{key:`report_data_${a}_${i}`,staticClass:"border-ede thin-b pa-0",attrs:{ripple:!1}},[e(U["a"],{staticClass:"pa-0 w-100 mr-0 ml-0"},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"6"}},[e("div",{staticClass:"float-left",staticStyle:{width:"15%","min-width":"44px"}},[e(As["a"],{staticClass:"py-3 d-block"},[e("div",{staticClass:"number-wrap text-center d-block ma-auto overflow-hidden",domProps:{textContent:t._s(i+1)}})])],1),e("div",{staticClass:"float-left py-3",staticStyle:{width:"15%","max-height":"54px","min-width":"44px"}},[s==t.report.mock_infos.select_nums[i]?e("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-1-"+i}}):e("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-1-"+i}})],1),e("div",{staticStyle:{clear:"both"}}),e("div",{staticClass:"pos-abs pa-2",staticStyle:{height:"calc(100% - 24px)",width:"50%",top:"0","border-right":"1px solid #ededed",margin:"12px 0"}},[e("span",{staticClass:"pos-abs translate-a title-1",domProps:{textContent:t._s("기록 "+t.report.mock_infos.select_nums[i]+"번")}})])]),e(j["a"],{staticClass:"pa-0",attrs:{cols:"6"}},[e("div",{staticClass:"h-100 w-100 pos-rel"},[e("span",{staticClass:"pos-abs translate-a title-1",class:[t.report.mock_infos.select_nums[i]==s?"c_b":"c_r"],domProps:{textContent:t._s("정답 "+s+"번")}})])])],1)],1)]}))]:t.report[s+"_skip"]||"object"==typeof t.report[s]&&0==Object.keys(t.report[s]).length?[e($s["a"],{staticClass:"border-ede thin-b",attrs:{ripple:!1}},[e(U["a"],{staticClass:"pa-0",attrs:{dense:""}},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[e(As["a"],{staticClass:"py-3 d-block"},[e("div",{staticClass:"text-center grey--text"},[t._v("\n Skip. 학습된 내용이 없습니다.\n ")])])],1)],1)],1)]:[t._l(t.report[s],(function(i,o){return[t.showWords(i.right,i.main)?e($s["a"],{key:`result-tab-item-${a+1}-${o}`,staticClass:"border-ede thin-b",attrs:{ripple:!1}},[e(U["a"],{staticClass:"pa-0 w-100 mgauto",attrs:{dense:""}},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"1"}},[e(As["a"],{staticClass:"py-3 d-block"},[e("div",{staticClass:"number-wrap",domProps:{textContent:t._s(o+1)}})])],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"1"}},[e(As["a"],{staticClass:"py-3 d-block",staticStyle:{"max-height":"54px","padding-left":"10%"}},["speaking"==s||"스피킹"==s?[i.right&&"undefined"!=i.right&&1===Number(JSON.parse(i.right))?e("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`o-${a+1}-${o}`}}):i.right&&"undefined"!=i.right&&2===Number(JSON.parse(i.right))?e("icon-report-t",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`t-${a+1}-${o}`}}):e("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`x-${a+1}-${o}`}})]:[i.right&&"undefined"!=i.right&&JSON.parse(i.right)?e("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`o-${a+1}-${o}`}}):e("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`x-${a+1}-${o}`}})]],2)],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"9"}},[e(As["a"],{staticStyle:{padding:"10px 0","min-height":"54px"}},[e(As["b"],{staticStyle:{"white-space":"normal"},domProps:{innerHTML:t._s(t.distContents(i,s))}})],1)],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"1"}},["speaking"==s||"스피킹"==s?e(U["a"],{staticClass:"speaking-ops-row",staticStyle:{height:"100%","margin-left":"-34%","margin-right":"-10%"},attrs:{dense:"","no-gutters":""}},[e(j["a"],{staticClass:"end-col",attrs:{cols:"6"}}),e(j["a"],{staticClass:"end-col",staticStyle:{display:"flex","justify-content":"center","align-items":"center"},attrs:{cols:"6"}},[e("div",{staticClass:"cap-wrapper"},["sample"!=t.cur_item.user_info.id?e("circular-audio-player",{attrs:{id:i.id,audio_src:`${t.$host}/speaking/${t.$cid}/${t.cur_item.user_info.id}/u-${t.cur_item.user_info.id}-s-${t.cur_item.schedule_id}-b-${t.cur_item.bid}-${i.id}`}}):"sample"==t.cur_item.user_info.id?e("circular-audio-player",{attrs:{id:i.id,audio_src:`${t.$host}/speaking/sample/sample/sample-${i.id}`}}):t._e()],1)])],1):t._e()],1)],1)],1):t._e()]}))]],2)],1)],1)}))],2)],2)],1),e(U["a"],{staticClass:"printnone custom-footer w-100 mgauto"},[e(j["a"],{staticClass:"pa-0 pos-rel",attrs:{cols:"x"==t.cur_type?12:6}},[e(L["a"],{staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",color:"success"},on:{click:function(e){return t.openReportMessageDialog()}}},[e("span",{staticClass:"white--text fs-1rem"},[t._v("메시지 발송")])])],1),"x"!=t.cur_type?e(j["a"],{staticClass:"pa-0",attrs:{cols:"6"}},[e(L["a"],{staticClass:"white",staticStyle:{border:"thin solid #1bd05b !important",height:"100% !important"},attrs:{block:"",depressed:"",tile:"",outlined:""},on:{click:t.openSaveOptionDialog}},[e("span",{staticClass:"success--text fs-1rem"},[t._v("레포트 저장")])])],1):t._e()],1)],1),e("div",{staticClass:"pos-abs component",staticStyle:{display:"none",width:"210mm",height:"296mm",left:"0"},attrs:{id:"result-wrapper-print"}},[t._l(4,(function(t){return e("img",{key:"daily_report_img_"+t,staticClass:"pos-abs result_print_bg",staticStyle:{display:"block"},attrs:{src:s("6f4a")(`./daily_report_${t}.png`),width:"100%",height:"100%"}})})),e("div",{staticClass:"pos-rel title_wrap",staticStyle:{height:"9.7%"}},[e("div",{staticClass:"pos-abs w-100 text-center",staticStyle:{bottom:"0"}},t._l(["study","test","v","m","a","mz","z","gt","gb","sa"],(function(t,a){return e("img",{key:`title_img_${t}_${a}`,staticClass:"pos-abs title_img",attrs:{id:""+t,src:s("8bd1")(`./${t}_report.png`),width:"240"}})})),0)]),e("div",{staticStyle:{"margin-top":"63px",height:"19.76%"}},[e("div",{staticClass:"float-left",staticStyle:{height:"100%",width:"38%","margin-left":"44px"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"100%",height:"100%"},attrs:{id:"dp-circle-row"}},[e(j["a"],{staticClass:"text-center",staticStyle:{"align-self":"center !important"},attrs:{id:"dp-circle-col",cols:"12"}},[e(Ps["a"],{style:"font-size: 28.8px; font-weight:500;",attrs:{indeterminate:!1,rotate:.3,size:180,value:t.report.info.avg,width:20,color:"#50dd65"}},[e("span",{staticClass:"black--text"},[t._v("\n "+t._s(t.report.info.avg)),e("small",[t._v("점")])])])],1)],1)],1),e("div",{staticClass:"float-left daily_print_info",staticStyle:{height:"100%","margin-left":"28px",width:"47.6%",padding:"11px 14px 0 12px","font-size":"13.5px"}},[e("div",{staticStyle:{height:"38px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 클래스\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px"}},[t._v("\n "+t._s(t.report.info.classname)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 이름\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px"}},[t._v("\n "+t._s(t.report.info.name)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 교재\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px",width:"calc(100% - 12px)","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[t._v("\n "+t._s(t.report.info.bookname)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 유닛\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px",width:"calc(100% - 12px)","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[t._v("\n "+t._s(t.report.info.unitname||"Unit "+(Number(t.report.info.unit_seq)+1))+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 학습일\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px"}},[t._v("\n "+t._s(t.report.info.postdate)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticClass:"daily_print_analysis",staticStyle:{"margin-top":"82px","font-size":"14.4px"},style:{height:t.dp_style.height+"%"}},[t._l(t.dp_module_cnt,(function(s,a){return[e(U["a"],{key:"dp_module_cnt_"+a,staticClass:"mgauto",staticStyle:{width:"88.6%"},style:{height:t.dp_style.item_height+"%",marginBottom:t.dp_style.item_mb+"% !important"}},[e("div",{staticClass:"float-left pos-rel",staticStyle:{width:"35.8%",height:"100%"}},[e("b",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white","margin-top":"1px"}},[t._v("\n "+t._s(t.setTitle(t.report.tabs[a]))+"\n ")])]),e("div",{staticClass:"float-left pos-rel",staticStyle:{width:"32.5%"}},[e("span",{staticClass:"pos-abs translate-a w-100 text-center"},["skip"==t.dp_module_score[a]?[t._v(" - ")]:[t._v("\n "+t._s(Math.round(t.dp_module_score[a]))+" / 100\n ")]],2)]),e("div",{staticClass:"float-left pos-rel",staticStyle:{width:"31.7%"}},[e("span",{staticClass:"pos-abs translate-a fw-700 red--text"},[t._v("\n "+t._s(t.getGrade(t.dp_module_score[a]))+"\n ")])]),e("div",{staticStyle:{clear:"both"}})])]}))],2),e("div",{staticClass:"pos-rel",style:{height:t.dp_style.err_height+"%",marginTop:t.dp_style.err_mt+"px"}},[e("div",{staticClass:"mgauto",staticStyle:{width:"88%",height:"100%",padding:"1.5%"}},[["v","vm","va"].includes(t.cur_type)?[Object.keys(t.dp_err_sen).length>0?[e("div",{staticClass:"float-left",staticStyle:{height:"100%",width:"calc(50% - 11.844px)","margin-right":"11.844px"}},t._l(t.dp_err_sen,(function(s,a){return e("div",{key:"v_err_sen_eng_"+a,staticStyle:{"font-size":"13px"},attrs:{id:"v_err_sen_eng_"+a},domProps:{innerHTML:t._s(s.eng?s.eng.replace(/<(\/span|span)([^>]*)>/gi,""):"")}})})),0),e("div",{staticClass:"float-left",staticStyle:{height:"100%",width:"calc(50% - 11.844px)","margin-left":"11.844px"}},t._l(t.dp_err_sen,(function(s,a){return e("div",{key:"v_err_sen_kor_"+a,staticClass:"grey--text",staticStyle:{"font-size":"13px"},attrs:{id:"v_err_sen_kor_"+a}},[t._v("\n "+t._s(s.kor?s.kor.replace(/<(\/span|span)([^>]*)>/gi,""):"")+"\n ")])})),0),e("div",{staticStyle:{clear:"both"}})]:[e("div",{staticClass:"px-2 py-2 text-center pos-rel",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","font-size":"13px",height:"100%","background-color":"white"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{color:"#d3d3d3","font-size":"13px"}},[t._v("\n 오답 문항이 없습니다.\n ")])])]]:[e("div",{staticClass:"white",staticStyle:{height:"100%",width:"100%"}},[Object.keys(t.dp_err_sen).length>0?t._l(t.dp_err_sen,(function(s,a){return e("div",{key:"dp_err_sen_"+a,staticStyle:{"font-size":"13px"},attrs:{id:"else_err_sen_"+a}},[e("div",{staticClass:"text-align-justify"},[e("span",{staticStyle:{"word-break":"break-word"},domProps:{innerHTML:t._s(s.eng?s.eng:s.html)}})]),e("div",{staticClass:"grey--text text-align-justify"},[e("span",{staticStyle:{"word-break":"break-word"}},[t._v("\n "+t._s(s.kor?s.kor.replace(/(\ )/g," "):s.mean.replace(/(\ )/g," "))+"\n ")])])])})):[e("div",{staticClass:"px-2 py-2 text-center pos-rel",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","font-size":"13px",height:"100%","background-color":"white"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{color:"#d3d3d3","font-size":"13px"}},[["gt","gb","gd"].includes(t.cur_type)?[t._v("\n 영문법 교재는 오답 문항을 제공하지 않습니다.\n ")]:["sa"].includes(t.cur_type)?[t._v("\n 실전문제는 오답 문항을 제공하지 않습니다.\n ")]:[t._v(" 오답 문항이 없습니다. ")]],2)])]],2)]],2)]),e("div",{staticStyle:{"margin-top":"26px",height:"7.3%"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"88.6%",height:"100%"}},[e(j["a"],{staticClass:"pa-0 pos-rel",attrs:{cols:"6"}},[e("img",{staticClass:"pos-abs translate-y",staticStyle:{"max-height":"35px","margin-top":"-6px"},attrs:{src:t.$storage.get("user").clogo?""+t.$storage.get("user").clogo:s("3951")}})]),e(j["a"],{staticClass:"pa-0 text-right pos-rel",attrs:{cols:"6"}},[e("h3",{staticClass:"black--text pos-abs translate-y",staticStyle:{"font-size":"15px",right:"0","margin-top":"-6px"}},[t._v("\n "+t._s(t.$storage.get("user").cname)+"\n ")])])],1)],1)],2),e(ot["a"],{attrs:{origin:"center center",persistent:!1,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":380},on:{"click:outside":t.closeSaveOptionDialog},model:{value:t.saveOptDialog,callback:function(e){t.saveOptDialog=e},expression:"saveOptDialog"}},[e(it["a"],{staticClass:"radio-dialog"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("레포트 저장")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.changeSaveOption},model:{value:t.save_option_rg,callback:function(e){t.save_option_rg=e},expression:"save_option_rg"}},[e(nt["a"],{staticClass:"custom-radio",attrs:{label:"레포트 출력",value:"0",color:"success"}}),t.is_grammar?t._e():e(nt["a"],{staticClass:"custom-radio",attrs:{label:"틀린 문제 출력",value:"1",color:"success"}}),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"파일저장",value:"2",color:"success"}})],1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitSaveOption}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_save_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1)],1)],1)},Ts=[],Es=s("59ca"),Is=s.n(Es);s("ea7b"),s("e71f");const zs={apiKey:"AIzaSyDNnkmfs3ZnLcy1--j5ErPAVTGj_XiFP-Y",authDomain:"ngstudy.firebaseapp.com",databaseURL:"https://ngstudy.firebaseio.com",projectId:"ngstudy",storageBucket:"ngstudy.appspot.com",messagingSenderId:"453917042761",appId:"1:453917042761:web:cb093e641eed73a7a1f798",measurementId:"G-S6ZKY9JZN2"};Is.a.initializeApp(zs),console.log(Is.a),Is.a.auth().signInAnonymously().catch((function(t){var e=t.code,s=t.message;console.log(e,s)})),Is.a.auth().onAuthStateChanged((function(t){if(t){var e=t.isAnonymous,s=t.uid;console.log(e,s)}else console.log(t)}));const Os=Is.a.firestore();var Ns=Os,Ls=function(){var t=this,e=t._self._c;return e("svg",{staticStyle:{"enable-background":"new 0 0 80 80"},attrs:{width:"80",height:"80",xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 80 80","xml:space":"preserve"}},[e("defs",[e("linearGradient",{attrs:{id:t.seq_id,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},[e("stop",{attrs:{offset:"0%","stop-color":"#6de9ff"}},[e("animate",{attrs:{attributeName:"stop-color",values:"#6de9ff; #0594c4; #6de9ff",dur:"10s",repeatCount:"indefinite"}})]),e("stop",{attrs:{offset:"100%","stop-color":"#0594c4"}},[e("animate",{attrs:{attributeName:"stop-color",values:"#0594c4; #6de9ff; #0594c4",dur:"10s",repeatCount:"indefinite"}})])],1)],1),e("g",[e("title",[t._v("background")]),e("rect",{attrs:{fill:"none",id:"canvas_background",height:"82",width:"82",y:"-1",x:"-1"}}),e("g",{attrs:{display:"none",overflow:"visible",y:"0",x:"0",height:"100%",width:"100%",id:"canvasGrid"}},[e("rect",{attrs:{fill:"url(#gridpattern)","stroke-width":"0",y:"0",x:"0",height:"100%",width:"100%"}})])]),e("g",[e("title",[t._v("Layer 1")]),e("ellipse",{attrs:{id:"svg_4",cy:"50.453125",cx:"73","fill-opacity":"null","stroke-opacity":"null","stroke-width":"11",stroke:"#000",fill:"#fff"}}),e("ellipse",{attrs:{stroke:`url(#${t.seq_id})`,ry:"30.000001",rx:"30.000001",id:"icon-report-o-circle",cy:"40.453126",cx:"40.000001","stroke-opacity":"null","stroke-width":"18",fill:"none"}})])])},Ms=[],js={props:["seq_id"]},Rs=js,qs=(s("f89e"),Object(u["a"])(Rs,Ls,Ms,!1,null,null,null)),Fs=qs.exports,Us=function(){var t=this,e=t._self._c;return e("svg",{staticStyle:{"enable-background":"new 0 0 80 80"},attrs:{width:"80",height:"80",xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 80 80","xml:space":"preserve"}},[e("defs",[e("linearGradient",{attrs:{id:t.seq_id,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},[e("stop",{attrs:{offset:"0%","stop-color":"#ffbfb9"}},[e("animate",{attrs:{attributeName:"stop-color",values:"#ffbfb9; #fc4d41; #ffbfb9",dur:"10s",repeatCount:"indefinite"}})]),e("stop",{attrs:{offset:"100%","stop-color":"#fc4d41"}},[e("animate",{attrs:{attributeName:"stop-color",values:"#fc4d41; #ffbfb9; #fc4d41",dur:"10s",repeatCount:"indefinite"}})])],1)],1),e("g",[e("title",[t._v("background")]),e("rect",{attrs:{fill:"none",id:"canvas_background",height:"82",width:"82",y:"-1",x:"-1"}}),e("g",{attrs:{display:"none",overflow:"visible",y:"0",x:"0",height:"100%",width:"100%",id:"canvasGrid"}},[e("rect",{attrs:{fill:"url(#gridpattern)","stroke-width":"0",y:"0",x:"0",height:"100%",width:"100%"}})])]),e("g",[e("title",[t._v("Layer 1")]),e("ellipse",{attrs:{id:"svg_4",cy:"50.453125",cx:"73","fill-opacity":"null","stroke-opacity":"null","stroke-width":"11",stroke:"#000",fill:"#fff"}}),e("line",{attrs:{stroke:`url(#${t.seq_id})`,"stroke-linecap":"round","stroke-linejoin":"null",id:"svg_11",y2:"67.476268",x2:"67.023143",y1:"13.453125",x1:"13","fill-opacity":"null","stroke-opacity":"null","stroke-width":"18",fill:"none"}}),e("line",{attrs:{stroke:`url(#${t.seq_id})`,"stroke-linecap":"round","stroke-linejoin":"null",id:"svg_13",y2:"67",x2:"13",y1:"13.453123",x1:"67","fill-opacity":"null","stroke-opacity":"null","stroke-width":"18",fill:"none"}})])])},Hs=[],Gs={props:["seq_id"]},Ws=Gs,Ys=(s("c3e9"),Object(u["a"])(Ws,Us,Hs,!1,null,null,null)),Js=Ys.exports,Vs=function(){var t=this,e=t._self._c;return e("svg",{staticStyle:{"enable-background":"new 0 0 80 80"},attrs:{width:"80",height:"80",xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 80 80","xml:space":"preserve"}},[e("defs",[e("linearGradient",{attrs:{id:t.seq_id,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},[e("stop",{attrs:{offset:"0%","stop-color":"#35e62b"}},[e("animate",{attrs:{attributeName:"stop-color",values:"#35e62b; #29c600; #35e62b",dur:"10s",repeatCount:"indefinite"}})]),e("stop",{attrs:{offset:"100%","stop-color":"#29c600"}},[e("animate",{attrs:{attributeName:"stop-color",values:"#29c600; #35e62b; #29c600",dur:"10s",repeatCount:"indefinite"}})])],1)],1),e("g",[e("rect",{attrs:{fill:"none",id:"canvas_background",height:"82",width:"82",y:"-1",x:"-1"}}),e("g",{attrs:{display:"none",overflow:"visible",y:"0",x:"0",height:"100%",width:"100%",id:"canvasGrid"}},[e("rect",{attrs:{fill:"url(#gridpattern)","stroke-width":"0",y:"0",x:"0",height:"100%",width:"100%"}})])]),e("g",[e("path",{attrs:{stroke:`url(#${t.seq_id})`,id:"icon-report-t-circle",d:"m 11.4525,64.77062 l 28.71428,-50.25 l 28.71428,50.25 l -57.50,0 z","fill-opacity":"null","stroke-opacity":"null","stroke-width":"17",fill:"none","stroke-linejoin":"round"}})])])},Qs=[],Xs={props:["seq_id"]},Ks=Xs,Zs=(s("640f"),Object(u["a"])(Ks,Vs,Qs,!1,null,null,null)),ta=Zs.exports,ea=function(){var t=this,e=t._self._c;return e("div",{staticClass:"cap-cover"},[e("audio",{ref:"cap-"+t.id,attrs:{src:t.audio_src},on:{loadeddata:function(e){return t.loadedAction(e)},timeupdate:t.updateTime,ended:t.endedAction}}),e(Ps["a"],{class:{"not-ready":t.ready&&!t.playing},attrs:{size:30,width:3,value:t.percent,color:"red"}},[t.ready?t.ready&&!t.playing?e(L["a"],{staticClass:"cap-btn",attrs:{rounded:"",text:""},on:{click:t.capPlay}},[e(q["a"],{attrs:{color:"black"}},[t._v("mdi-play")])],1):e(L["a"],{staticClass:"cap-btn",attrs:{rounded:"",text:""},on:{click:t.capPause}},[e(q["a"],{attrs:{color:"red"}},[t._v("mdi-pause")])],1):e(L["a"],{staticClass:"cap-btn",attrs:{rounded:"",text:"",disabled:""}},[e(q["a"],{attrs:{color:"grey"}},[t._v("mdi-play")])],1)],1)],1)},sa=[],aa={name:"circular-audio-player",props:{audio_src:String,id:String},data(){return{playing:!1,ready:!1,duration:0,percent:0,audio:null,settimeout1:null}},methods:{loadedAction:function(t){let e=t.target||t.srcElement;e.readyState>=2&&(this.ready=!0,this.audio=e,this.duration=e.duration)},capPlay:function(){this.audio.play(),this.playing=!0},capPause:function(){this.audio.pause(),this.playing=!1},updateTime:function(){if(!this.audio)return!1;this.percent=.1*Math.round(this.audio.currentTime/this.duration*1e3)},endedAction:function(){this.settimeout1=setTimeout(()=>{this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.playing=!1)},500)}},beforeDestroy(){this.audio&&(this.audio.pause(),this.audio.onloadeddata=null,this.audio.ontimeupdate=null,this.audio.onended=null,this.audio.currentTime=0,this.settimeout1&&clearTimeout(this.settimeout1),delete this.audio)},destroyed(){this.$destroy()}},ia=aa,oa=(s("f4b4"),Object(u["a"])(ia,ea,sa,!1,null,null,null)),na=oa.exports,la=s("c0e9"),ra=s.n(la);var ca={components:{IconReportO:Fs,IconReportX:Js,IconReportT:ta,CircularAudioPlayer:na},data(){return{storage_user:this.$storage.get("user"),cur_item:null,report:{tab:0,tabs:[],type_class:null,type_img:null,info:{name:null,classname:null,bookname:null,unitname:null,postdate:null,avg:0,question_cnt:0,wrong_cnt:0,error_rate:0,totminute:0},circle_size:null,circle_width:null,circle_font:null,matching_skip:!1,dictation_skip:!1,popquiz_skip:!1,writing_skip:!1,writing_k_skip:!1,speaking_skip:!1,wordbingo_skip:!1,wordinference_skip:!1,paragraphorder_skip:!1,readingquiz_skip:!1,grammerquiz_skip:!1,GT_1_skip:!1,GT_2_skip:!1,GB_1_skip:!1,GB_2_skip:!1,GB_3_skip:!1,GB_4_skip:!1,GD_1_skip:!1,GD_2_skip:!1,GD_3_skip:!1,base_load_interval:null,base_load_cnt:0,mock_infos:[]},cur_type:null,dp_module_cnt:0,dp_module_score:[],dp_style:{height:0,item_height:0,item_mb:0,err_height:0,err_mt:0},dp_err_sen:[],grammar_type:{},is_grammar:!1,after_module:!1,saveOptDialog:!1,save_option_rg:null,html_data:null}},created(){console.log(this.$storage.get("user"),"user")},mounted(){window.addEventListener("resize",this.onResize)},watch:{"$parent.mode"(t){"report"==t&&this.$nextTick(()=>{this.setCircleSize(),window.onresize=this.setCircleSize,this.$nextTick(()=>{let t=document.getElementById("circle-col").getElementsByTagName("svg");if(t=t[0],t){let e=t.childNodes[0];e.classList.remove("v-progress-circular__underlay"),e.setAttribute("stroke","#f5f5f5")}})})}},computed:{setTitle(){return t=>{if(!t)return"";let e="",s={0:"리스닝",matching:"문장조합",dictation:"딕테이션",popquiz:"문장찾기",writing:"영작하기",writing_k:"영작하기",speaking:"스피킹",wordbingo:"워드빙고",wordinference:"어휘추론",paragraphorder:"문단배열",readingquiz:"독해점검",grammerquiz:"문법점검",gt_1:"단어점검",gt_2:"이론점검",gb_1:"기본학습1",gb_2:"기본학습2",gb_3:"기본학습3",gb_4:"기본학습4",gd_1:"심화학습1",gd_2:"심화학습2",gd_3:"심화학습3",sa:"실전문제"};const a=+this.cur_item.bid,i=+this.cur_item.unit+1,o=this.cur_item.unit_name;return e=["v","vm"].includes(this.cur_type)&&"popquiz"==t.toLowerCase()&&(4!=this.cur_item.category||[1,31].includes(+this.cur_item.booktype))?"팝퀴즈":"va"==this.cur_type&&"writing_k"==t.toLowerCase()?"라이팅":"a"==this.cur_type&&"dictation"==t.toLowerCase()?"빈칸추론":"상세내용"==t.toLowerCase()?"상세내용":this.$basicGrammarBooks.includes(a)&&"gd_1"==t.toLowerCase()&&i%3===0?"심화학습":this.$middleGrammarBooks.includes(a)&&o.match("Review")?"gd_1"==t.toLowerCase()?"심화학습":"기본학습":"sm"==this.cur_type&&"popquiz"==t.toLowerCase()?"단어점검":s[t.toLowerCase()],e}},getGrade(){return t=>{let e="";return t<0||"skip"==t?e="Skip":t>=90?e="Perfect!":t>=80&&t<90?e="Great!":t>=70&&t<80?e="Good!":t>=60&&t<70?e="Pass!":t<60&&(e="Try Harder!"),e}}},methods:{setStoryBookUnitName:dt["d"],onResize(){"report_error_print"==this.$parent.mode&&this.resize_cnt++},initReportData(){this.html_data=null,this.report.tabs=[],this.dp_module_score=[],this.dp_err_sen=[]},openReport(t,e,s){return new Promise(async(s,a)=>{try{t=t.toLowerCase(),console.log("openReport-report",t,e),this.initReportData(),this.cur_type=t,this.cur_item=e,console.log(t,"type"),console.log(this.cur_type,"this.cur_type");const a=await this.getRelIds(e);if(a&&a.status&&200===a.status?(this.cur_item.rel_question_ids=a.data.rel_question_ids,this.cur_item.real_cnt=a.data.real_cnt):console.error(a),this.report.type_img=this.setBgImage(t,e),this.report.type_class=this.setTypeClass(t),this.setInfo(e),["gt","gb","gd"].includes(t)?this.getGrammarType(e):"x"==t&&(this.report.mock_infos=e.mock_infos),this.topNavBarChange(),"x"==t)this.report.tabs.push("상세내용"),this.setErrSen(),this.setDailyPrint(),s();else{await this.getHtmlData(t,e);let a=0,i=setInterval(async()=>{this.get_html_status&&(clearInterval(i),this.setDailyPrint(),await this.compareResult(),s()),a++,a>10&&clearInterval(i)},500)}}catch(i){a(i)}})},setBgImage(t,e){let s="";if(["vm","va","gt","gb","gd","sm","sa"].includes(t)){const e={vm:"study",va:"test",gt:"gt",gb:"gb",gd:"a",sm:"gb",sa:"sa"};s=e[t]}else{const a=+e.category;console.log(a),3==a?"v"==t?s="v":0===+e.schedule_type?["m","s","study"].includes(t)?s="z":["a","t","test"].includes(t)&&(s="a"):(s=t,1==e.type_v&&1==e.schedule_type&&(["m","s","study"].includes(t)?s="z":["a","t","test"].includes(t)&&(s="a"))):[1,2,4].includes(a)&&0==e.schedule_type?"s"==t?1==a?(s="mz",31===+e.booktype&&(s="z")):s=4==a?1==e.booktype_s?"m":2==e.booktype_m?"v":"study":"m":s="t"==t?2==e.booktype_m||0===+e.booktype_m&&0===+e.booktype_s?t:"a":t:(s=t,e.type_v&&1==e.type_v&&("s"==t?s=3==a?"z":"m":"t"==t&&(s="a")))}return"s"==s?s="study":"t"==s&&(s="test"),console.log("res",s),s},setTypeClass(t){console.log(this.cur_item,t);let e="";return["s","study","m","vm","gb","sm"].includes(t)?e="success":["v","gt"].includes(t)?e="warning":["t","test","a","va","gd","x","sa"].includes(t)&&(e="info2",("x"==t&&0===+this.cur_item.booktype_m&&0===+this.cur_item.booktype_s||"3"==this.cur_item.category&&this.cur_item.mock_infos)&&(e="success")),e},setInfo(t){this.report.info.name=t.user_info.text||t.user_info.name,this.report.info.classname=t.user_info.class_name,5===+t.booktype_m&&0===+t.booktype_s?this.report.info.bookname="내공백서 스토리북 Lv. "+t.level:this.report.info.bookname=t.schedule_name?t.schedule_name:t.bookname,this.report.info.postdate=t.studydate,t.unit_record_id.match(/MOCK/)?this.report.info.unitname=t.recent.history_text:5===+t.booktype_m&&0===+t.booktype_s?this.report.info.unitname=this.setStoryBookUnitName(t.unit_name,t.schedule_name||t.bookname):this.report.info.unitname="1"==t.schedule_type?t.recent.su_name:t.unit_name,this.report.info.unit_seq=t.unit_seq||t.unit,this.report.info.avg=t.avg,this.report.info.question_cnt=t.question_cnt,this.report.info.wrong_cnt=t.wrong_cnt,this.report.info.error_rate=t.error_rate,this.report.info.totminute=t.studytime,this.report.info.booktype_m=t.booktype_m,this.report.info.booktype_s=t.booktype_s,this.report.info.level=t.level},setCircleSize(){let t=document.getElementById("circle-row"),e=document.getElementById("circle-col"),s=window.getComputedStyle(e),a=t.offsetHeight,i=t.offsetWidth;a-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),i-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight);let o=a>i?i:a;isNaN(o)||(this.report.circle_size=.85*o,this.report.circle_width=Math.round(o/9*.85),this.report.circle_font=Math.round(o/6*.85))},distContents:function(t,e){let s="",a=e,i=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"];i.includes(e)&&(e="GRAMMAR");const o=+this.cur_item.bid,n=+this.cur_item.unit+1,l=this.cur_item.unit_name;switch(e){case"popquiz":s+=`
${t.mean}
`,s+=`
${t.html}
`;break;case"writing":case"writing_k":s+=`
${t.mean}
`,s+=`
${t.html}
`;break;case"GRAMMAR":if(this.$basicGrammarBooks.includes(o)&&n%3===0&&"GD_1"==a||this.$middleGrammarBooks.includes(o)&&l.match("Review")&&["GB_1","GD_1"].includes(a)){s+=`
${t.html}
`,s+=`
${t.mean}
`;break}"MC"==this.grammar_type[a]?(s+=`
${t.mean}
`,t.passage&&"null"!=t.passage&&(t.passage=t.passage.replace(/\+\_\+/g,"'"),s+=`
${t.passage}
`),s+=`
${t.html}
`):"SA"==this.grammar_type[a]?(s+=`
${t.mean}
`,t.passage&&"null"!=t.passage&&(t.passage=t.passage.replace(/\+\_\+/g,"'"),s+=`
${t.passage}
`),s+=`
${t.html}
`):"CAB"==this.grammar_type[a]?(s+=`
${t.mean}
`,s+=`
${t.html}
`):"SC"==this.grammar_type[a]&&(s+=`
${t.mean}
`,t.passage&&"null"!=t.passage&&(t.passage=t.passage.replace(/\+\_\+/g,"'"),s+=`
${t.passage}
`),s+=`
${t.html}
`);break;default:s+=`
${t.html}
`,s+=`
${t.mean}
`;break}return s},getHtmlData(t,e){return console.log("getHtmlData",t,e),new Promise((s,a)=>{this.get_html_status=!1;let i=e.user_id||e.user_info.id||e.user_info.uid,o=e.schedule_id,n=e.books_id||e.bid,l=+e.schedule_type,r="";r=["s","study"].includes(t)?"S":["t","test"].includes(t)?"T":t.toUpperCase();let c=`${n}-${e.dist_seq}-${l}-`;1==e.schedule_type&&1==e.type_v?c+=`${e.recent.su_seq||null}-${r}`:c+=`${l>0?e.unit:e.unit_id}-${r}`,i&&o&&c&&(this.cur_item.getFBBookUnitId=c,this.report.tabs=[],"sample"==i&&(o="sample",c="sample-"+r),Ns.collection("users").doc(i).collection("schedules").doc(o).collection("Bookunits").doc(c).get().then(a=>{const i=a.data(),o=new DOMParser;if(this.html_data=i,i){let s=Object.entries(i);for(let t=0,e=s.length;tdata not exist.",s:""};s.push(t)}}this.report[e]=s}}}if("sm"===t){const t=this.report.tabs.findIndex(t=>"matching"===t);t>0&&(this.report.tabs.splice(t,1),this.report.tabs.unshift("matching"));const e=this.report.tabs.findIndex(t=>"popquiz"===t);e>0&&(this.report.tabs.splice(e,1),this.report.tabs.unshift("popquiz"))}if("a"===t){const t=this.report.tabs.findIndex(t=>"dictation"===t);t>-1&&t!=this.report.tabs.length-1&&(this.report.tabs.splice(t,1),this.report.tabs.push("dictation"));const e=this.report.tabs.findIndex(t=>"grammerquiz"===t);e>-1&&e!=this.report.tabs.length-1&&(this.report.tabs.splice(e,1),this.report.tabs.push("grammerquiz"));const s=this.report.tabs.findIndex(t=>"paragraphorder"===t);s>0&&(this.report.tabs.splice(s,1),this.report.tabs.unshift("paragraphorder"))}if("s"===t||"t"===t){const t=this.report.tabs.findIndex(t=>"matching"===t);t>0&&(this.report.tabs.splice(t,1),this.report.tabs.unshift("matching"))}if("t"===t){const t=this.report.tabs.findIndex(t=>"speaking"===t);t>-1&&t!=this.report.tabs.length-1&&(this.report.tabs.splice(t,1),this.report.tabs.push("speaking"))}const a=this.report.tabs.findIndex(t=>"wordbingo"===t);let n;if(a>0&&(this.report.tabs.splice(a,1),this.report.tabs.unshift("wordbingo")),"1"==e.recent.done){n=e.recent[(e.recent.new_modules?"new":"old")+"_modules"].split(",");for(let t=0,e=n.length;t{console.error(t),this.get_html_status=!0,a(t)}))})},showWords:function(t,e){let s=!0;return t=!(!t||"undefined"==t)&&JSON.parse(t),e=e?Number(e):0,this.wrongshow&&(s=!t),this.mainshow&&(s=1==e),this.wrongshow&&this.mainshow&&(s=!t&&1==e),s},windowPrint(t=null){return this.$store.state.is_mobile?(this.openDialog("mobile_print"),!1):"yet"==t?(this.openDialog("print_yet"),!1):void("error_print"==t||(document.getElementsByClassName("tab-title")[0].click(),this.$store.dispatch("soundEffectPlay","click_button"),document.getElementById("result-wrapper-print").style.display="block",this.$nextTick(()=>{let t=document.getElementsByClassName("title_img");for(let o=0,n=t.length;oa||e>a)&&(i=s)}}else{let t=0;for(let e=0,s=this.dp_err_sen.length;ea&&(i=e)}}i&&this.dp_err_sen.splice(i,this.dp_err_sen.length-i)}),setTimeout(()=>{const t=()=>{const t=window.open("","_blank","width=1,height=1");t.addEventListener("afterprint",()=>{t.close()}),t.document.head.innerHTML=document.head.innerHTML,t.document.body.innerHTML=document.body.innerHTML,t.document.getElementById("result-wrapper-print").style.transformOrigin="0 0",t.document.getElementById("result-wrapper-print").style.transform="scale(88%)",setTimeout(()=>{t.print(),setTimeout(()=>{t.close()},200)},200)};let e=navigator.userAgent.toLowerCase();-1!=e.indexOf("safari")&&-1==e.indexOf("chrome")?t():window.print(),document.getElementById("circle-col").style.width="100%",document.getElementById("result-wrapper-print").style.display="none"},200)))},setDailyPrint(){this.dp_module_cnt=this.report.tabs.length;const t=[0,8.6,17.3,17.3,23],e=[0,99.8,49.8,33.1,24.8],s=[0,34.1,25.5,25.5,19.8];this.dp_style={height:t[this.dp_module_cnt],item_height:e[this.dp_module_cnt],err_height:s[this.dp_module_cnt]},this.dp_style.item_mb=.1,this.dp_style.err_mt=57;let a=document.getElementsByClassName("result_print_bg");for(let i=0,o=a.length;i{200===t.status&&(this.grammar_type=t.data)}).catch(t=>{console.error(t)})},getTitleImgKor(){let t="",e={s:"학습",study:"학습",t:"시험",test:"시험",v:"어휘",m:"본문",a:"심화",z:"지문",gt:"이론",gb:"기본",sa:"실전"};return t=e[this.report.type_img],t},onDown(){let t="",e="",s=document.getElementById("result-wrapper-print");this.storage_user.is_mobile||(this.loading_value=!0);const a=this.cur_item.user_info.text||this.cur_item.user_info.name;let i=a.replace(/ /g,"_"),o=this.cur_item.bookname.replace(/ /g,"_"),n=this.cur_item.unit?this.cur_item.unit.replace(/ /g,"_"):"";e=1==this.cur_item.schedule_type&&1==this.cur_item.type_v?`${this.$cid}_${i}_${o}_${this.cur_item.unit_name}.jpg`:`${this.$cid}_${i}_${o}_${+n+1}_${this.getTitleImgKor()}.jpg`;let l=document.getElementById("dp-circle-col").getElementsByTagName("svg"),r=document.getElementsByClassName("daily_print_info")[0],c=document.getElementsByClassName("daily_print_analysis")[0],d=()=>new Promise(t=>{s.style.display="block",this.$nextTick(()=>{let e=document.getElementsByClassName("title_img");for(let t=0,o=e.length;ta||e>a)&&(i=s)}}else{let t=0;for(let e=0,s=this.dp_err_sen.length;ea&&(i=e)}}i&&this.dp_err_sen.splice(i,this.dp_err_sen.length-i),t()})}),h=()=>new Promise(a=>{ra()(s,{scale:2}).then(i=>{this.storage_user.is_mobile?this.$axios.post(`${this.$host}/result/${this.$cid}/uploadreport`,{image:i.toDataURL(),filename:e}).then(t=>{console.log(t.status)}).catch(t=>{console.log(t),this.storage_user.is_mobile||(this.loading_value=!1)}):t=i.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream"),r.style.paddingTop="11px",c.style.marginTop="82px",s.style.display="none",a()})}),u=()=>new Promise(s=>{if(this.storage_user.is_mobile)window.parent.postMessage({action:"filedown",link:"https://ng.irontrain.co.kr"==this.$host?"http://106.10.52.151/images/dailyreport/"+e:"https://api.tabstudy.co.kr/media/images/dailyreport/"+e},"*");else{let s=document.createElement("a");s.href=t,s.download=e,s.click()}s()});this.$store.state.is_mobile&&this.$store.dispatch("soundEffectPlay","click_button"),d().then(()=>h()).then(()=>u()).then(()=>{this.$store.state.is_mobile&&this.openDialog("mobile_filedown"),this.storage_user.is_mobile||(this.loading_value=!1)})},setErrSen(){if(console.log("setErrSen",{cur_type:this.cur_type,report:this.report,dp_err_sen:this.dp_err_sen}),["gt","gb","gd","sa"].includes(this.cur_type))return!1;let t=this.report.tabs;if(t&&t.length>0)for(let e=0,s=t.length;e0&&!this.report[s+"_skip"])for(let e=0,s=t.length>15?15:t.length;es.id===t[e].id);-1===s&&this.dp_err_sen.push(t[e])}}}if(this.dp_err_sen.length>0){let t=this.dp_err_sen.length;if("v"==this.cur_type)for(let e=0;e"),t["eng"]=s[1],t["kor"]=s[0]):(t["eng"]=s,t["kor"]=t.mean)}else if(["s","t","m","a","vm","va"].includes(this.cur_type))for(let e=0;e")?(s=s.replace(" ",""),t["eng"]=s.split("
")[1],t["kor"]=s.split("
")[0]):(t["eng"]=s,t["kor"]=t.mean)}else if(["gt","gb","gd"].includes(this.cur_type))for(let e=0;e ")?(t["eng"]=s.split("
 ")[0],t["kor"]=s.split("
 ")[1]):(t["eng"]=s,t["kor"]=s)}}},convFullMod(t){let e={256:"matching",128:"dictation",64:"popquiz",32:"writing",16:"writing_k",8:"speaking"};return e[t]||null},convFullNewMod(t){let e={1:"matching",2:"dictation",3:"popquiz",4:"writing",5:"writing_k",6:"speaking",7:"wordbingo",O:"paragraphorder",R:"readingquiz",B:"dictation",G:"grammerquiz",I:"wordinference",GT_1:"GT_1",GT_2:"GT_2",GB_1:"GB_1",GB_2:"GB_2",GB_3:"GB_3",GB_4:"GB_4",GD_1:"GD_1",GD_2:"GD_2",GD_3:"GD_3",X:"상세내용",SBA:"sa"};return e[t]||null},moduleIndex(t){let e={listening:0,wordbingo:7,dictation:2,wordinference:"I",matching:1,popquiz:3,speaking:6,writing:4,writing_k:5,paragraphorder:"O",readingquiz:"R",blankinference:"B",grammerquiz:"G",storybook:"E",storybook_a:"SBA",GT_1:"GT_1",GT_2:"GT_2",GB_1:"GB_1",GB_2:"GB_2",GB_3:"GB_3",GB_4:"GB_4",GD_1:"GD_1",GD_2:"GD_2",GD_3:"GD_3"};return e[t]||null},openSaveOptionDialog(){this.$store.dispatch("soundEffectPlay","click_button"),["gt","gb","gd"].includes(this.cur_type)?this.cur_item.recent.wrong_grammar_ids&&this.cur_item.recent.wrong_grammar_ids.length>0?this.is_grammar=!1:this.is_grammar=!0:["sm","sa"].includes(this.cur_type)&&(this.is_grammar=!1),this.saveOptDialog=!0},closeSaveOptionDialog(){this.is_grammar=!1,this.save_option_rg=null,this.$refs.set_save_btn.innerText="취소",this.$refs.set_save_btn.classList.remove("success--text"),this.saveOptDialog=!1},changeSaveOption(){this.$refs.set_save_btn.innerText="확인",this.$refs.set_save_btn.classList.add("success--text")},submitSaveOption(){"확인"==this.$refs.set_save_btn.innerText&&(0==this.save_option_rg?this.windowPrint():1==this.save_option_rg?(this.$parent.loading_value=!0,this.$parent.mode="report_error_print"):2==this.save_option_rg&&this.onDown()),this.closeSaveOptionDialog()},openReportMessageDialog(){const t={cur_item:this.cur_item,cur_type:this.cur_type,report:this.report,dp_module_score:this.dp_module_score,dp_err_sen:this.dp_err_sen};this.$parent.$refs["report-message-dialog"].open("daily",t)},compareResult(){return new Promise(async(t,e)=>{const s={result:!1,update:[]};try{if(console.log("compareResult",{ur_id:this.cur_item.recent.id,cur_item:this.cur_item,recent:this.cur_item.recent,html_data:this.html_data}),!this.cur_item||!this.html_data)return void t();const e={right:0,half:0};if(this.html_data){const t=new DOMParser,s={};for(let[a,i]of Object.entries(this.html_data)){if(["wrong_bank_ids","wrong_grammar_ids","ing","undefined"].includes(a))continue;if(this.report[a+"_skip"])continue;let o=JSON.parse(i);if(o)for(let i=0,n=o.length;i0){const t=+l.i||+l.id||null;t&&!r.includes(t)&&(s[a]||(s[a]=[]),s[a].push(i))}}}if(Object.values(s).flat().length>0){for(let[t,e]of Object.entries(this.html_data)){if(["wrong_bank_ids","wrong_grammar_ids","ing","undefined"].includes(t))continue;let a=JSON.parse(e);if(a){if(s[t]){s[t].reverse();for(let e=0,i=s[t].length;e0?JSON.stringify(a):null}}Ns.collection("users").doc(this.cur_item.user_id).collection("schedules").doc(this.cur_item.schedule_id).collection("Bookunits").doc(this.cur_item.getFBBookUnitId).update(this.html_data)}}const a=+this.cur_item.real_cnt||0,i=+this.cur_item.question_cnt||0;if(a>0&&a!==i&&await this.$store.dispatch("updateReport",{ur_id:this.cur_item.recent.id,question_cnt:a,half_cnt:e.half}).then(t=>{200==t.status&&t.data.success&&(this.cur_item.question_cnt=a,this.report.info.question_cnt=a,this.report.info.avg=Math.round(t.data.avg),this.report.info.error_rate=Math.round(+this.cur_item.wrong_cnt/+this.cur_item.question_cnt*100),s.result=!0,s.update.push({key:"tot_question_cnt",before:i,after:a}))}),this.cur_item.question_cnt>0){const t=+this.cur_item.question_cnt-+this.cur_item.wrong_cnt;t!==e.right&&await this.$store.dispatch("updateReport",{ur_id:this.cur_item.recent.id,right_cnt:e.right,half_cnt:e.half}).then(t=>{200==t.status&&t.data.success&&(this.report.info.avg=Math.round(t.data.avg),this.report.info.wrong_cnt=this.cur_item.question_cnt-e.right,this.report.info.error_rate=Math.round(+this.report.info.wrong_cnt/+this.cur_item.question_cnt*100),s.result=!0,s.update.push({key:"wrongcnt",before:this.cur_item.wrong_cnt,after:this.report.info.wrong_cnt}))}).catch(t=>{console.error(t)})}}catch(a){console.error(a)}finally{s.result&&(console.log("재채점 완료"),this.$store.dispatch("sendMailForDev",{type:"Result/Index.vue UpdateReport",ur_id:this.cur_item.recent.id,compareRes:s,base_data:this.cur_item,html_data:this.html_data,uid:this.cur_item.user_id,uname:this.cur_item.name})),t()}})},getRelIds(){return new Promise((t,e)=>{this.$axios.get(`${this.$host}/v2/result/${this.$cid}/user/${this.cur_item.user_id}/unitrecord/${this.cur_item.recent.id}`).then(e=>{t(e)}).catch(t=>{e(t)})})}},beforeDestroy(){this.report.base_load_interval&&window.clearInterval(this.report.base_load_interval),this.report.html_load_cnt=0,this.report.base_load_cnt=0,window.removeEventListener("resize",this.onResize),window.onresize=null}},da=ca,ha=(s("6cba"),Object(u["a"])(da,Bs,Ts,!1,null,null,null)),ua=ha.exports,_a={name:"login",components:{Dialogs:st["a"],preFont:et["a"],report:ua,preCautions:at["a"],StudentDetailDialog:ws,LoadingDialog:bt["a"],ReportMessageDialog:gt},data(){return{sortState:{currentHeader:null,state:0},previousHeader:null,clientWidth:0,clientHeight:0,detail_button_text:{bookList:{text:"교재목록"},progress:{text:"진도확인"},calendar:{text:"학습일지"}},isDelSchedule:!1,loading_value:!1,loading_message:"잠시만 기다려주세요.",currentItem:"",detailType:"",detailDialog:!1,tab:null,tabs:3,subtitle_text:"재원생",user:this.$storage.get("user"),componentKey:0,datatable_component:0,datatable_component_pause:0,datatable_component_quit:0,overflow_component:0,overflow_component_pause:0,overflow_component_quit:0,option_component:0,option_component_pause:0,option_component_quit:0,expanded:[],expanded_pause:[],expanded_quit:[],search:"",search_pause:"",search_quit:"",select_id:"",select_id_class:"",select_del_class_id:"",select_row:!1,sel_list:[{text:"학생 수정",value:"0",disabled:!1},{text:"휴원 처리",value:"1"},{text:"퇴원 처리",value:"2"}],sel_list_pause:[{text:"재원 처리",value:"0"},{text:"퇴원 처리",value:"1"}],sel_list_quit:[{text:"재원 처리",value:"0"},{text:"학생 삭제",value:"1"}],class_sel_list:[],class_selected_value:!1,common_headers:[{text:"조회",value:"data-table-expand",align:"center",sortable:!1},{text:"클래스",value:"class_name",align:"left",sortable:!0},{text:"이름",value:"name",align:"left",sortable:!0},{text:"아이디",value:"loginid",align:"left",sortable:!0},{text:"학년",value:"grade",align:"left",sortable:!0}],headers_arr:[{text:"등록일",value:"postdate",align:"left",sortable:!0}],headers_arr_pause:[{text:"휴원일",value:"pausedate",align:"left",sortable:!0}],headers_arr_quit:[{text:"퇴원일",value:"quitdate",align:"left",sortable:!0}],common_detail_header:[{text:"상세조회",value:"detail-list",align:"center",sortable:!1}],items:[],items_pause:[],items_quit:[],filteredItems:["전체"],hide_default_footer:!1,tmp_tot_cnt:0,class_popup:0,class_tooltip:0,sortby:void 0,sortdesc:void 0,sortby_p:void 0,sortdesc_p:void 0,sortby_q:void 0,sortdesc_q:void 0,today:(new Date).toISOString().substr(0,10),null_class:!1,s_options:{},p_options:{},q_options:{},check_sids:[],check_pids:[],check_qids:[],mode:"list"}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){this.tab="tab-"+(void 0!=this.$route.params.tab?this.$route.params.tab:1),this.headers_arr=[...this.common_headers,...this.headers_arr,...this.common_detail_header],this.headers_arr_pause=[...this.common_headers,...this.headers_arr_pause,...this.common_detail_header],this.headers_arr_quit=[...this.common_headers,...this.headers_arr_quit,...this.common_detail_header],this.mode="list",this.s_options.itemsPerPage=this.getPageListNumberOfStorage(this.$route.path,"s_options"),this.p_options.itemsPerPage=this.getPageListNumberOfStorage(this.$route.path,"p_options"),this.q_options.itemsPerPage=this.getPageListNumberOfStorage(this.$route.path,"q_options")},watch:{items(t){this.class_sel_list=["전체",...new Set(this.items.map(t=>t.class_name))]},items_pause(t){this.class_sel_list=["전체",...new Set(this.items_pause.map(t=>t.class_name))]},items_quit(t){this.class_sel_list=["전체",...new Set(this.items_quit.map(t=>t.class_name))]},mode(t){this.setHiddenDialog(t)},clientWidth(t){this.handleResizeDetailBtnTextChange(t)},s_options(){this.check_sids=[],this.updatePageListNumberOfStorage(this.$route.path,"s_options",this.s_options.itemsPerPage)},p_options(){this.check_pids=[],this.updatePageListNumberOfStorage(this.$route.path,"p_options",this.p_options.itemsPerPage)},q_options(){this.check_qids=[],this.updatePageListNumberOfStorage(this.$route.path,"q_options",this.q_options.itemsPerPage)},tab(t,e){let s=document.getElementsByClassName("active_sort");while(s.length>0)s[0].classList.remove("active_sort");this.sortState.state=0,this.sortState.currentHeader=null,this.class_selected_value=null,"tab-1"===t&&this.items.length>0?this.class_sel_list=["전체",...new Set(this.items.map(t=>t.class_name))]:"tab-2"===t&&this.items_pause.length>0?this.class_sel_list=["전체",...new Set(this.items_pause.map(t=>t.class_name))]:"tab-3"===t&&this.items_quit.length>0&&(this.class_sel_list=["전체",...new Set(this.items_quit.map(t=>t.class_name))])}},computed:{chkSelect_S(){let t=!0;return"tab-1"==this.tab&&this.check_sids.length>0&&(t=!1,1==this.check_sids.length?this.sel_list[0].disabled=!1:this.check_sids.length>1&&(this.sel_list[0].disabled=!0)),t},chkSelect_P(){let t=!0;return"tab-2"==this.tab&&this.check_pids.length>0&&(t=!1),t},chkSelect_Q(){let t=!0;return"tab-3"==this.tab&&this.check_qids.length>0&&(t=!1),t},...Object(tt["b"])(["getGradeText"])},mounted(){void 0==this.$route.params.dialog||"success"!=this.$route.params.dialog&&"modify_success"!=this.$route.params.dialog||("success"==this.$route.params.dialog?this.openAlert("학생이 신규 등록되었습니다."):"modify_success"==this.$route.params.dialog&&this.openAlert("학생 정보가 수정되었습니다.")),Tr.$on("close_event",()=>{0==this.class_popup&&(this.class_popup+=1,this.check_student_cnt()),this.overflow_component+=1,this.overflow_component_pause+=1,this.overflow_component_quit+=1}),this.check_student_cnt(),this.getStudent(),window.addEventListener("resize",this.handleResize),this.handleResizeDetailBtnTextChange(window.innerWidth),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100)},methods:{getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],customSort(t,e,s){let a="s"==t?"":"_"+t;this["sortby"+a]=e,this["sortdesc"+a]=s},handleResize(){this.clientWidth=window.innerWidth,this.clientHeight=window.innerHeight},handleResizeDetailBtnTextChange(t){t<1100?(this.detail_button_text.bookList.text="교재",this.detail_button_text.progress.text="진도",this.detail_button_text.calendar.text="일지"):(this.detail_button_text.bookList.text="교재목록",this.detail_button_text.progress.text="진도확인",this.detail_button_text.calendar.text="학습일지")},setHiddenDialog(t){const e=document.querySelectorAll(".v-overlay--active"),s=document.querySelector(".v-dialog--active"),a=document.querySelector(".v-content__wrap");e&&s&&a&&this.detailDialog&&("report"===t?(a.style.overflow="hidden",e[0].style.display="none",e[1].style.display="none",s.style.display="none"):"report_error_print"===t?(a.style.overflow="hidden",s.style.display="none"):(a.style.overflow="auto",e[0].style.display="block",s.style.display="block"))},sendReportOpenEvent(t){"SV"===t.type?this.openDialog("sv_review"):this.openReport(t.type,t)},openReport(t,e){this.$store.dispatch("soundEffectPlay","click_button"),this.loading_value=!0,this.$nextTick(()=>{if(this.$forceUpdate(),e.user_info=this.currentItem,e.user_id=this.currentItem.id,e.classname=this.currentItem.class_name,"X"==t){const t=e.mock_infos.right_group,s=e.mock_infos.select_nums,a=e.mock_infos.point_group;if("0"!=e.mock_infos.is_regular){e.avg=0;for(let i=0,o=t.length;i{this.mode="report",this.loading_value=!1}).catch(t=>{this.mode="list",console.log(t,"err"),this.loading_value=!1})})},downloadList(t){this.$store.dispatch("soundEffectPlay","click_button");const e={s:"items",p:"items_pause",q:"items_quit"};if(0===this[e[t]].length)return this.openAlert("fail_download_student_null"),!1;window.open(`${this.$host}/studentdownload.php?cid=${this.$cid}&type=${t}&tid=${this.$id}_${this.$uclass}`)},customCloseDialog(){this.class_popup+=1,this.closeDialog(),this.check_student_cnt()},changetab(t){this.check_sids=[],this.check_pids=[],this.check_qids=[],1==t?this.subtitle_text="재원생":2==t?(this.subtitle_text="휴원생",0==this.datatable_component_pause&&this.getStudent("p")):3==t&&(this.subtitle_text="퇴원생",0==this.datatable_component_quit&&this.getStudent("q")),this.overflow_component+=1,this.overflow_component_pause+=1,this.overflow_component_quit+=1,this.expanded=[],this.expanded_pause=[],this.expanded_quit=[],this.tab="tab-"+t},push_class(){this.$router.push({name:"user-class-oper"})},push_student_oper(){if(this.$store.dispatch("soundEffectPlay","click_button"),this.null_class)return this.openDialog("null_class"),!1;this.$router.push({name:"user-student-oper"})},check_student_cnt(){let t=new Promise((t,e)=>{0==this.class_popup?this.$axios.get(`${this.$host}/class/${this.$cid}/classcnt`).then(e=>{204==e.status?(this.openDialog("null_class"),this.null_class=!0):(this.class_popup+=1,t())}).catch(t=>{e(t)}):t()});t.then(()=>{let t=`${this.$host}/user/${this.$cid}/getstudent/cnt?tid=${this.$id}_${this.$uclass}`;this.$axios.get(t).then(t=>{200==t.status&&0==this.tmp_tot_cnt&&(this.tmp_tot_cnt=parseInt(t.data.student_cnt)+parseInt(t.data.student_quit_cnt))}).catch(t=>{console.log(t)})}).catch(t=>{console.log(t)})},getStudent(t="s"){const e=`${this.$host}/user/${this.$cid}/getstudent?type=${t}&tid=${this.$id}_${this.$uclass}`;let s=[];this.$axios.get(e).then(t=>{if(200==t.status){s=[];for(let e=0,a=t.data.length;e{s=[],console.log(t)}).finally(()=>{"s"==t?this.items=s:"p"==t?(this.items_pause=s,this.datatable_component_pause++):"q"==t&&(this.items_quit=s,this.datatable_component_quit++)})},toggleClassRow(t,e){let s=null;"s"==e?s=this.expanded:"p"==e?s=this.expanded_pause:"q"==e&&(s=this.expanded_quit),s.length>0&&s[0].uid==t.uid?(this.select_id="",s.pop()):(this.select_id=t.uid,""==t.sub_data?this.getSubData(this.select_id).then(a=>{if(200==a.status){const i={birthdate:a.data.birthdate||"",parent_name:a.data.parent_name||"",parent_phone:a.data.parent_phone||"",school:a.data.school||""};"s"==e&&(i.dup_class=a.data.dup_class||"",i.phone=a.data.phone||""),t.sub_data=i,s.pop(),s.push(t)}}).catch(t=>{console.log(t)}):(s.pop(),s.push(t)))},openStudentDetailDialog(t,e){this.detailDialog=!0,this.detailType=e,this.currentItem=t},getSubData(t){return new Promise((e,s)=>{let a=`${this.$host}/user/${this.$cid}/getstudent/sub/${t}`;this.$axios.get(a).then(t=>{e(t)}).catch(t=>{s(t)})})},select_row_event(t){if(0==t){const t=+this.check_sids[0].uid,e=this.items.find(e=>+e.uid===t);if(e){const t={uid:+e.uid,loginid:e.loginid,grade:e.grade,uname:e.name,phone:e.phone,class_name:e.class_name};if(e.sub_data){const s=e.sub_data;t.parent_name=s.parent_name,t.parent_phone=s.parent_phone,t.phone=s.phone,t.school=s.school,t.birthdate=s.birthdate,this.$router.push({name:"user-student-oper",params:t})}else this.getSubData(e.uid).then(e=>{if(200===e.status){const s=e.data;t.parent_name=s.parent_name,t.parent_phone=s.parent_phone,t.phone=s.phone,t.school=s.school,t.birthdate=s.birthdate,this.$router.push({name:"user-student-oper",params:t})}}).catch(t=>{console.log(t)})}}else 1==t?this.openDialog("student_pause_confirm"):2==t&&this.openDialog("student_quit_confirm")},select_row_event_pause(t){0==t?this.openDialog("student_recovery_confirm"):1==t&&this.openDialog("student_quit_confirm")},select_row_event_quit(t){0==t?this.openDialog("student_recovery_confirm"):1==t&&this.openDialog("student_del_confirm")},handleClassChange(t){this.clearAC(),this.clearPAC(),this.clearQAC(),this.class_selected_value=t,"전체"===t&&(this.class_selected_value=null),"tab-1"===this.tab?this.filteredItems=this.items.filter(e=>e.class_name===t):"tab-2"===this.tab?this.filteredItems=this.items_pause.filter(e=>e.class_name===t):this.filteredItems=this.items_quit.filter(e=>e.class_name===t)},studentPause:function(){const t=this.check_sids.map(t=>t.uid);this.$axios.post(`${this.$host}/user/${this.$cid}/studentpause`,{uid:t}).then(e=>{if(200==e.status){let e=Object.values(t);for(let t=0,s=e.length;ts.uid==e[t]);-1!=a&&(s=this.items[a],s.isSelected=!1,this.items.splice(a,1)),this.datatable_component_pause<=1&&0==t&&this.getStudent("p"),s.pausedate=(new Date).toISOString().substr(0,10).replace(/-/g,"."),this.items_pause.unshift(s),t==this.check_sids.length-1&&(this.expanded=[],this.closeDialog(),this.changetab(2),setTimeout(()=>{this.openAlert("student_pause_success")},0))}}}).catch(t=>{console.log(t)})},studentQuit(){let t,e;"tab-1"==this.tab?(e="live",t=this.check_sids.map(t=>t.uid)):"tab-2"==this.tab&&(e="pause",t=this.check_pids.map(t=>t.uid)),this.$axios.post(`${this.$host}/user/${this.$cid}/studentquit`,{place:e,uid:t}).then(e=>{if(200==e.status){let e=Object.values(t);for(let t=0,s=e.length;ts.uid==e[t]);-1!=s&&(a=this.items[s],a.isSelected=!1,this.items.splice(s,1)),this.datatable_component_quit<=1&&0==t&&this.getStudent("q")}else if("tab-2"==this.tab){let s=this.items_pause.findIndex(s=>s.uid==e[t]);-1!=s&&(a=this.items_pause[s],a.isSelected=!1,this.items_pause.splice(s,1)),this.datatable_component_pause<=1&&0==t&&this.getStudent("p")}a.quitdate=(new Date).toISOString().substr(0,10).replace(/-/g,"."),this.items_quit.unshift(a),t==s-1&&(this.select_row=!1,this.expanded=[],this.closeDialog(),this.changetab(3),setTimeout(()=>{this.openAlert("student_quit_success")},0))}}}).catch(t=>{console.log(t)})},studentRecovery(){let t,e;"tab-2"==this.tab?(e="pause",t=this.check_pids.map(t=>t.uid)):"tab-3"==this.tab&&(e="quit",t=this.check_qids.map(t=>t.uid)),this.$axios.post(`${this.$host}/user/${this.$cid}/recoverystudent`,{place:e,uid:t}).then(e=>{if(200==e.status){this.getStudent();let e=Object.values(t);for(let t=0,s=e.length;ts.uid==e[t]);-1!=s&&this.items_pause.splice(s,1)}else if("tab-3"==this.tab){let s=this.items_quit.findIndex(s=>s.uid==e[t]);-1!=s&&this.items_quit.splice(s,1)}t==s-1&&(this.closeDialog(),this.changetab(1),setTimeout(()=>{this.openAlert("student_recovery_success")},0))}}}).catch(t=>{console.log(t)})},deleteStudent(){const t=this.check_qids.map(t=>t.uid);this.$axios.post(`${this.$host}/user/${this.$cid}/delstudent`,{uid:t}).then(e=>{if(200==e.status){let e=Object.values(t);for(let t=0,s=e.length;ts.uid==e[t]);-1!=a&&this.items_quit.splice(a,1),t==s-1&&(this.select_row=!1,this.expanded_quit=[],this.datatable_component_quit+=1,this.overflow_component_quit+=1,this.check_qids=[],this.closeDialog(),setTimeout(()=>{this.openAlert("student_del_success")},0))}}}).catch(t=>{console.log(t)})},delDupClassConfirm(t){this.select_del_class_id=t,this.openDialog("del_dup_class")},delDupClass(){this.$axios.post(`${this.$host}/class/${this.$cid}/deldupclass`,{uid:this.select_id,class_id:this.select_del_class_id}).then(t=>{if(this.closeDialog(),200==t.status){if("tab-1"==this.tab){let t=this.items.findIndex(t=>t.uid==this.select_id);if(-1!=t){let e=this.items[t].sub_data.dup_class.findIndex(t=>t.class_id=this.select_del_class_id);-1!=e&&this.items[t].sub_data.dup_class.splice(e,1)}}else if("tab-2"==this.tab){let t=this.items_quit.findIndex(t=>t.uid==this.select_id);if(-1!=t){let e=this.items_quit[t].sub_data.dup_class.findIndex(t=>t.class_id=this.select_del_class_id);-1!=e&&this.items_quit[t].sub_data.dup_class.splice(e,1)}}this.datatable_component+=1}else this.openAlert("error")}).catch(t=>{console.log(t)})},selectStudent(t,e){let s,a,i;s="s"==t?this.items:"p"==t?this.items_pause:this.items_quit,a=+this[t+"_options"].itemsPerPage,i=+this[t+"_options"].page;let o=(i-1)*a,n=a*i-1;s.length!!t||"",t=>!!t.trim()||""]},on:{click:function(e){return t.select_grade()}},model:{value:t.form.grade,callback:function(e){t.$set(t.form,"grade",e)},expression:"form.grade"}})],1)],1),e("div",{staticClass:"padding-divider"}),e(U["a"],{attrs:{align:"center",justify:"center"}},[e(j["a"],{staticClass:"pt-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"uname"}},[t._v("\n 이름 "),e("span",{staticClass:"red--text"},[t._v("*")])]),e(X["a"],{staticStyle:{margin:"3px 0 0 0"},attrs:{autocomplete:"off",id:"uname",name:"uname",type:"text",outlined:"",dense:"",required:"","hide-details":"",color:"success",rules:[t=>!!t||"",t=>!!t.trim()||""]},model:{value:t.form.uname,callback:function(e){t.$set(t.form,"uname",e)},expression:"form.uname"}})],1),e(j["a"],{staticClass:"pt-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"phone"}},[t._v("연락처")]),e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:["###-###-####","###-####-####"],expression:"['###-###-####', '###-####-####']"}],staticStyle:{margin:"3px 0 0 0"},attrs:{id:"phone",rules:"add"==t.mode?t.addRules.phone:t.modifyRules.phone,name:"phone",autocomplete:"off",outlined:"",dense:"","hide-details":"",type:"text",color:"success",placeholder:"숫자로만 입력하세요."},on:{keyup:function(e){return t.keyupPhone(e,"u")}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1)],1),e("div",{staticClass:"padding-divider"}),e(U["a"],{attrs:{align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"loginid"}},[t._v("\n 아이디 "),e("span",{staticClass:"red--text"},[t._v("*")])]),e(X["a"],{staticStyle:{margin:"3px 0 0 0"},attrs:{autocomplete:"off",id:"loginid",name:"loginid",outlined:"",dense:"",required:"",type:"text",color:"success","error-messages":t.loginid_error_msg,rules:[t=>!!t||"",t=>!!t.trim()||""]},model:{value:t.form.loginid,callback:function(e){t.$set(t.form,"loginid",e)},expression:"form.loginid"}})],1),e(j["a"],{staticClass:"py-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"password"}},[t._v("\n 비밀번호 "),e("span",{staticClass:"red--text"},[t._v("*")])]),e(X["a"],{staticClass:"security-input",class:""==t.form.password?"nnfont":"msfont",staticStyle:{margin:"3px 0 0 0"},attrs:{autocomplete:"off",id:"password",name:"password",outlined:"",dense:"",required:"",type:"text",color:"success",placeholder:"add"==t.mode?"":"변경 시 기재하여 주세요.","error-messages":t.pw_error_msg,rules:"add"==t.mode?t.addRules.password:t.modifyRules.password},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1),e(U["a"],{attrs:{align:"center",justify:"center"}},[e(j["a"],{staticClass:"pt-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"school"}},[t._v("학교명")]),e(X["a"],{staticStyle:{margin:"3px 0 0 0"},attrs:{autocomplete:"off",id:"school",name:"school",outlined:"",dense:"","hide-details":"",type:"text",color:"success"},model:{value:t.form.school,callback:function(e){t.$set(t.form,"school",e)},expression:"form.school"}})],1),e(j["a"],{staticClass:"pt-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"birthdate"}},[t._v("생년월일")]),e(ot["a"],{ref:"dp_dialog",refInFor:!0,staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.form.birthdate,width:"290px",transition:!1},on:{"update:returnValue":function(e){return t.$set(t.form,"birthdate",e)},"update:return-value":function(e){return t.$set(t.form,"birthdate",e)}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticStyle:{margin:"3px 0 0 0"},attrs:{autocomplete:"off",id:"birthdate",name:"birthdate",clearable:!0,"clear-icon":"mdi-close-circle",outlined:"",dense:"","hide-details":"",readonly:"",type:"text",color:"success"},on:{"click:clear":t.clearDate},model:{value:t.form.birthdate,callback:function(e){t.$set(t.form,"birthdate",e)},expression:"form.birthdate"}},s))]}}],null,!0),model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm},on:{change:function(e){return t.changeBirth(t.date)}},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.menu=!1}}},[e("b",[t._v("취소")])])],1)],1)],1)],1),e("div",{staticClass:"padding-divider"}),e(U["a"],{attrs:{align:"center",justify:"center"}},[e(j["a"],{staticClass:"pt-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"parent_name"}},[t._v("학부모 이름")]),e(X["a"],{staticStyle:{margin:"3px 0 0 0"},attrs:{id:"parent_name",name:"parent_name",outlined:"",autocomplete:"off",dense:"",type:"text","hide-details":"",color:"success"},model:{value:t.form.parent_name,callback:function(e){t.$set(t.form,"parent_name",e)},expression:"form.parent_name"}})],1),e(j["a"],{staticClass:"pt-0",attrs:{cols:"10",sm:"9",md:"5",lg:"4",xl:"3"}},[e("label",{attrs:{for:"parent_phone"}},[t._v("\n 학부모 연락처 "),e("span",{staticClass:"red--text"},[t._v("*")])]),e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:["###-###-####","###-####-####"],expression:"['###-###-####', '###-####-####']"}],staticStyle:{margin:"3px 0 0 0"},attrs:{id:"parent_phone",name:"parent_phone",outlined:"",dense:"","hide-details":"",autocomplete:"off",type:"text",color:"success",placeholder:"숫자로만 입력하세요.",required:"",rules:"add"==t.mode?t.addRules.parent_phone:t.modifyRules.parent_phone},on:{keyup:function(e){return t.keyupPhone(e,"p")}},model:{value:t.form.parent_phone,callback:function(e){t.$set(t.form,"parent_phone",e)},expression:"form.parent_phone"}})],1)],1),e("div",{staticClass:"padding-divider"}),e("div",{staticClass:"text-center mb-8",staticStyle:{width:"100%"}},[e(L["a"],{staticClass:"mr-4 mt-2 px-12",staticStyle:{width:"150px"},attrs:{disabled:"add"==t.mode?!t.valid:!t.valid_oper,depressed:"",color:"success"},on:{click:t.validate}},[t._v("\n "+t._s("add"==t.mode?"등록":"수정")+"\n ")])],1)],1)],1)])])}))],2)],1)],1)],1),e("Dialogs",[e("div",{staticClass:"radio-dialog",attrs:{slot:"student_select_class"},slot:"student_select_class"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("클래스")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{key:t.student_select_class_group_key,staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:function(e){return t.radioChange("class",e)}},model:{value:t.student_select_class_group,callback:function(e){t.student_select_class_group=e},expression:"student_select_class_group"}},t._l(t.class_list,(function(t,s){return e(nt["a"],{key:s,staticClass:"custom-radio",attrs:{label:t.name,value:t,color:"success"}})})),1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:function(e){return t.radioSubmit("class")}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"select_class_btn cursor"},[t._v("취소")])])])],1)],1),e("div",{staticClass:"radio-dialog",attrs:{slot:"student_select_grade"},slot:"student_select_grade"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("학년 ")]),e("span",{staticClass:"fw-500 black--text",staticStyle:{"font-size":"0.9rem"}},[t._v("(매년 1월 1일 자동 상향)")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:function(e){return t.radioChange("grade",e)}},model:{value:t.student_select_grade_group,callback:function(e){t.student_select_grade_group=e},expression:"student_select_grade_group"}},t._l(t.grades,(function(t,s){return e(nt["a"],{key:"grade-radio-"+s,staticClass:"custom-radio",attrs:{label:t,value:t,color:"success"}})})),1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:function(e){return t.radioSubmit("grade")}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"select_grade_btn cursor"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"student_back"},slot:"student_back"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성 중인 내용이 있습니다."),e("br"),t._v("뒤로 가시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.back}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"student_confirm"},slot:"student_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("학생을 "+t._s("add"==t.mode?"등록":"수정")+"하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:"",disabled:t.submitDisabled},on:{click:t.studentSubmit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"duplicate_id"},slot:"duplicate_id"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("중복된 아이디가 있습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"add_student_error"},slot:"add_student_error"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("오류 코드 : "+t._s(t.error_code))]),e("br"),e("small",{staticClass:"grey--text"},[e("b",[t._v("관리자에게 문의해주세요.")])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)])],1)},ya=[];window.timeout1;var va={name:"studentoper",components:{Dialogs:st["a"],preFont:et["a"]},directives:{mask:Nt["mask"]},data(){return{mask:"###########",tab:null,tabs:2,valid:!0,valid_oper:!0,disabled:!1,date:(new Date).toISOString().substr(0,10),class_list:[],tmp:"",mode:"add",uclass_err_text:!1,loginid_error_msg:"",pw_error_msg:"",form:{uclass:"",uclass_id:"",grade:"",uname:"",phone:"",loginid:"",password:"",school:"",birthdate:"",parent_name:"",parent_phone:""},origin_form:{},oper_form:{},student_select_class_group:1,student_select_grade_group:1,student_select_class_group_key:0,error_code:"",addRules:{phone:[t=>""===t||t.length>=12&&t.length<14],parent_phone:[t=>t.length>=12&&t.length<14],class:[t=>!!t||""],password:[t=>!!t||"4~16자 이상으로 입력하세요.",t=>!!t.trim()||"4~16자 이상으로 입력하세요.",t=>!!(t.length>=4&&t.length<=16)||"4~16자 이상으로 입력하세요."]},modifyRules:{class:[],phone:[t=>""===t||t.length>=12&&t.length<14],password:[],parent_phone:[t=>t.length>=12&&t.length<14]},to:"",move_page_status:0,menu:!1,submitDisabled:!1,phone_cases:["010","011","016","017","019"],grades:["초등학교 1학년","초등학교 2학년","초등학교 3학년","초등학교 4학년","초등학교 5학년","초등학교 6학년","중학교 1학년","중학교 2학년","중학교 3학년","고등학교 1학년","고등학교 2학년","고등학교 3학년","기타"]}},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)return"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s(),!1;{let e=this.editingCheck();if(e)return this.openDialog("move_page"),!1;"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},created(){const t=this.$route.params;if(Object.keys(t).length>0){this.mode="modify";const e=Object.keys(this.form);for(let s=0,a=e.length;s=4&&t.length<=16||0==t.length;"add"==this.mode?this.pw_error_msg=""!=t.replace(/ /g,"")&&e?"":"4~16자 이상으로 입력하세요.":"modify"==this.mode&&(this.pw_error_msg=e?"":"4~16자 이상으로 입력하세요.")}},computed:{...Object(tt["b"])(["getUclass","getGradeCode"]),computedDateFormatted(){return this.formatDate(this.date)}},mounted(){Tr.$on("close_event",t=>{if(1==t.status&&(this.tmp=null,this.student_select_grade_group=null,this.student_select_class_group=null,t.name)){const e=t.name.split("_")[2];let s=document.getElementsByClassName(`select_${e}_btn`)[0];s.innerText="취소",s.classList.remove("success--text")}});let t=()=>{if(void 0!=this.$route.params.operuid)for(let t=0;t{if(200==e.status){for(let[t,s]of Object.entries(e.data))this.class_list.push({id:s.id,name:s.name});this.uclass||this.class_list.splice(0,1),t(),this.student_select_class_group_key+=1}else console.log("no_class")}).catch(t=>{console.log(t)})},methods:{movePage(){this.move_page_status=1,this.$router.push({name:this.to})},back:function(){this.move_page_status=1,this.$router.push({name:"user-student",params:{tab:this.tmp}})},validate(){this.$refs.form[0].validate()&&this.studentDupChk()},backbtn:function(t){this.tmp=t;let e=this.editingCheck();e?this.openDialog("student_back"):(this.$store.dispatch("soundEffectPlay","click_button"),this.move_page_status=1,this.$router.push({name:"user-student",params:{tab:t}}))},select_class(){"add"==this.mode?this.openDialog("student_select_class"):this.uclass_err_text=!0},select_grade(){this.openDialog("student_select_grade")},radioChange(t,e){let s=document.getElementsByClassName(`select_${t}_btn`)[0];s.innerText="확인",s.classList.add("success--text"),this.tmp=e},radioSubmit(t){this.$nextTick(()=>{let e=document.querySelector(`.select_${t}_btn`);"취소"==e.innerText?this.closeDialog(!0):"확인"==e.innerText&&(this.closeDialog(),"class"==t?(this.form.uclass=this.tmp.name,this.form.uclass_id=this.tmp.id):"grade"==t&&(this.form.grade=this.tmp),this.student_select_class_group+=1,e.innerText="취소",e.classList.remove("success--text"))})},studentDupChk(){this.$axios.post(this.$host+"/user/dupchk-user",{uid:this.$route.params.uid||void 0,loginid:this.form.loginid}).then(t=>{200==t.status?this.openDialog("student_confirm"):202==t.status&&this.openDialog("duplicate_id")}).catch(t=>{console.log(t)})},studentSubmit(){this.submitDisabled=!0;let t=this.deepClone(this.form);t.mode=this.mode,t.class_id=+t.uclass_id,t.class_name=t.uclass,t.grade=this.getGradeCode(t.grade),t.phone=this.removeHyphen(t.phone),t.parent_phone=this.removeHyphen(t.parent_phone),t.uclass=this.$store.state.UCLASS_STUDENT,t.id_change_status=this.form.loginid==this.origin_form.loginid?0:1,"modify"==this.mode&&(t.uid=this.$route.params.uid),this.$axios.post(`${this.$host}/user/${this.$cid}/${this.mode}student`,t).then(t=>{this.closeDialog(),200==t.status?(this.move_page_status=1,this.$router.push({name:"user-student",params:{dialog:"modify"==this.mode?"modify_success":"success"}})):202==t.status?this.openDialog("duplicate_id"):(this.error_code=t.status,this.openDialog("add_student_error",!0)),this.submitDisabled=!1}).catch(t=>{console.log(t),this.closeDialog(),this.submitDisabled=!1})},formatDate(t){if(!t)return null;let[e,s,a]=t.split("-"),i=`${e}-${s}-${a}`;return i},keyupPhone(t,e){const s=t.target.value;if(1==s.length&&"0"!==s||"0"!==s.charAt(0)||s.length>2&&!this.phone_cases.includes(s.substring(0,3)))return this.form["u"==e?"phone":"parent_phone"]="",!1},editingCheck(){const t=this.form.uclass+this.form.grade+this.form.uname+this.form.phone+this.form.loginid+this.form.password+this.form.school+this.form.birthdate+this.form.parent_name+this.form.parent_phone!="";return t&&(this.$store.state.editing_status=!0),t},modifyCheck(){window.timeout1&&clearTimeout(window.timeout1),window.timeout1=setTimeout(()=>{const t=this.deepClone(this.form);t.phone=this.removeHyphen(t.phone),t.parent_phone=this.removeHyphen(t.parent_phone);const e=JSON.stringify(t)!==JSON.stringify(this.origin_form);let s=!1;""!=this.form.loginid.trim()&&""!=this.form.uname.trim()&&""!=this.form.parent_phone.trim()&&(s=!0),this.valid_oper=e&&s&&this.valid},0)},clearDate(){this.date="",this.form.birthdate=""},changeBirth(t){this.$refs.dp_dialog[0].save(this.form.birthdate),setTimeout(()=>{this.form.birthdate=t},250)}},beforeDestroy(){window.timeout1&&clearTimeout(window.timeout1),this.allBusDestroy()}},xa=va,ka=(s("3878"),Object(u["a"])(xa,fa,ya,!1,null,null,null)),wa=ka.exports,Ca=s("ce7e"),Sa=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"student-excel",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",{staticClass:"pos-rel"},[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("학생 일괄등록")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v(" 엑셀파일로 학생을 일괄 등록합니다.")])]),e(L["a"],{staticClass:"right-0",attrs:{id:"excel_btn",right:"",depressed:"",absolute:"",small:"",color:"success"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.downloadSample()}}},[e("b",[t._v("엑셀 양식 다운로드")])])],1),e(Ca["a"],{staticClass:"my-2"}),e("vue-dropzone",{ref:"myVueDropzone",staticStyle:{"border-width":"1px",background:"#f5fbff"},attrs:{id:"dropzone",options:t.dropzoneOptions},on:{"vdropzone-complete":t.afterComplete,"vdropzone-success":t.uploadSuccess}}),t.excel_data.length>0?e(Et["a"],{ref:"excelform",attrs:{"lazy-validation":"",id:"excelform"},on:{submit:t.formSubmit}},[e(G["a"],{staticClass:"custom-table border-ede thin-t thin-b mt-2",scopedSlots:t._u([{key:"default",fn:function(){return[e("colgroup",[e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}}),e("col",{attrs:{width:"10%"}})]),e("thead",[e("tr",{staticClass:"grey lighten-4"},[e("th",{staticClass:"text-left"},[t._v("클래스")]),e("th",{staticClass:"text-left"},[t._v("학년")]),e("th",{staticClass:"text-left"},[t._v("이름")]),e("th",{staticClass:"text-left"},[t._v("연락처")]),e("th",{staticClass:"text-left"},[t._v("아이디")]),e("th",{staticClass:"text-left"},[t._v("비밀번호")]),e("th",{staticClass:"text-left"},[t._v("학교명")]),e("th",{staticClass:"text-left"},[t._v("생년월일")]),e("th",{staticClass:"text-left"},[t._v("학부모 이름")]),e("th",{staticClass:"text-left"},[t._v("학부모 연락처")])])]),e("tbody",{key:t.form_body_key},t._l(t.excel_data,(function(s,a){return e("tr",{key:"r-"+a},t._l(s,(function(s,i){return e("td",{key:"c-"+i},[e("input",{attrs:{type:"hidden"},domProps:{value:t.tkey}}),0==i?e(X["a"],{attrs:{id:"s-"+a+"-"+i,name:"classes[]",solo:"","single-line":"",dense:"",flat:"","hide-details":"",placeholder:"클래스",error:t.excel_data[a]["error_class"],"background-color":t.excel_data[a]["error_class"]?"red--text":"white"},on:{"update:error":function(e){return t.setFieldError(e,"s-"+a+"-"+i)},focus:function(e){return t.focusField("class",""+a,""+i,t.excel_data[a]["error_class"])}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):1==i?e(X["a"],{attrs:{id:"s-"+a+"-"+i,name:"grades[]",solo:"","single-line":"",dense:"",flat:"","hide-details":"",placeholder:"학년",error:t.excel_data[a]["error_grade"],"background-color":t.excel_data[a]["error_grade"]?"red--text":"white"},on:{focus:function(e){return t.focusField("grade",""+a,""+i,t.excel_data[a]["error_grade"])}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):2==i?e(X["a"],{attrs:{id:"s-"+a+"-"+i,name:"names[]",rules:t.nameRules,required:"",solo:"","single-line":"",dense:"",flat:"","hide-details":"",error:t.excel_data[a]["error_name"],"background-color":t.excel_data[a]["error_name"]?"red--text":"white",placeholder:"필수항목"},on:{"update:error":function(e){return t.setFieldError(e,"s-"+a+"-"+i)},focus:function(e){return t.focusField("name",""+a,""+i,t.excel_data[a]["error_name"])}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):3==i?e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:t.mask,expression:"mask"}],attrs:{id:"s-"+a+"-"+i,name:"phones[]",rules:t.phoneRules,required:"",placeholder:"숫자로만 입력",solo:"","single-line":"",dense:"",flat:"","hide-details":""},on:{keyup:function(e){return t.keyupPhone(e,a,i)}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):4==i?e(X["a"],{ref:`s-${a}-${i}`,refInFor:!0,attrs:{id:"s-"+a+"-"+i,name:"loginids[]",rules:t.loginidRules,required:"",solo:"","single-line":"",dense:"",flat:"","hide-details":"",error:t.excel_data[a]["error_id"],"background-color":t.excel_data[a]["error_id"]?"red--text":"white",placeholder:"필수항목"},on:{"update:error":function(e){return t.setFieldError(e,"s-"+a+"-"+i)},focus:function(e){return t.focusField("id",""+a,""+i,t.excel_data[a]["error_id"])}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):5==i?e(X["a"],{attrs:{id:"s-"+a+"-"+i,name:"passes[]",rules:t.passRules,required:"",solo:"","single-line":"",dense:"",flat:"","hide-details":"",error:t.excel_data[a]["error_pw"],"background-color":t.excel_data[a]["error_pw"]?"red--text":"white",placeholder:"필수항목"},on:{"update:error":function(e){return t.setFieldError(e,"s-"+a+"-"+i)},focus:function(e){return t.focusField("pw",""+a,""+i,t.excel_data[a]["error_pw"])}},scopedSlots:t._u([{key:"default",fn:function(){return[e("input",{attrs:{type:"text",value:"test"}})]},proxy:!0}],null,!0),model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):6==i?e(X["a"],{attrs:{id:"s-"+a+"-"+i,name:"schools[]",solo:"","single-line":"",dense:"",flat:"","hide-details":"",placeholder:"학교명"},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):7==i?e(X["a"],{attrs:{id:"s-"+a+"-"+i,name:"births[]",solo:"","single-line":"",dense:"",flat:"","hide-details":"",readonly:"",rules:t.birthRules,placeholder:"생년월일"},on:{"update:error":function(e){return t.setFieldError(e,"s-"+a+"-"+i)},click:function(e){return t.birthClick(a,i)}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):8==i?e(X["a"],{attrs:{id:"s-"+a+"-"+i,name:"parentnames[]",solo:"","single-line":"",dense:"",flat:"","hide-details":"",rules:t.parentnameRules,placeholder:"학부모 이름"},on:{"update:error":function(e){return t.setFieldError(e,"s-"+a+"-"+i)}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):9==i?e(X["a"],{directives:[{name:"mask",rawName:"v-mask",value:t.mask,expression:"mask"}],attrs:{id:"s-"+a+"-"+i,name:"parentphones[]",solo:"","single-line":"",dense:"",flat:"","hide-details":"",required:"",rules:t.parentphoneRules,placeholder:"숫자로만 입력",error:t.excel_data[a]["error_pp"],"background-color":t.excel_data[a]["error_pp"]?"red--text":"white"},on:{"update:error":function(e){return t.setFieldError(e,"s-"+a+"-"+i)},focus:function(e){return t.focusField("pp",""+a,""+i,t.excel_data[a]["error_pp"])},keyup:function(e){return t.keyupPhone(e,a,i)}},model:{value:t.excel_data[a][i],callback:function(e){t.$set(t.excel_data[a],i,e)},expression:"excel_data[key1][key2]"}}):t._e()],1)})),0)})),0)]},proxy:!0}],null,!1,2063725338)}),e("div",{staticClass:"text-center w-100 pa-5"},[e(L["a"],{attrs:{color:"success",type:"button","min-width":"100",depressed:""},on:{click:function(e){return t.openDialogMethod()}}},[e("b",{staticClass:"subtitle-1"},[t._v("등록")])])],1),e(L["a"],{staticClass:"d-none",attrs:{id:"submit-btn",type:"submit"}})],1):t._e(),e("pre-cautions",{attrs:{type:0,data:t.$data}})],1)],1),e(ot["a"],{ref:"dp_dialog",staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.rtval,width:"290px",transition:!1},on:{"update:returnValue":function(e){t.rtval=e},"update:return-value":function(e){t.rtval=e}},model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm},on:{change:function(e){t.$refs.dp_dialog.save(t.birthdate),t.changeDP(t.birthdate)}},model:{value:t.birthdate,callback:function(e){t.birthdate=e},expression:"birthdate"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.menu=!1}}},[e("b",[t._v("취소")])])],1)],1),e("Dialogs",[e("div",{attrs:{slot:"add_student_multiple"},slot:"add_student_multiple"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("학생을 등록하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:"",type:"submit"},on:{click:t.triggerForm}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)])],1)},$a=[],Aa=s("92c3"),Da=s.n(Aa),Pa=(s("1e3f"),{name:"studentexcel",components:{vueDropzone:Da.a,Dialogs:st["a"],preFont:et["a"],preCautions:at["a"]},directives:{mask:Nt["mask"]},data:function(){return{mask:"###########",tkey:1,menu:!1,rtval:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),birthdate:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),open_dp_model:"",dropzoneOptions:{url:this.$host+"/uploadstudentexcel",thumbnailWidth:150,thumbnailheight:106,maxFilesize:10,chunking:!0,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json, text/html"},acceptedFiles:"text/csv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/haansoftxlsx",dictDefaultMessage:'
Drag and drop Files Here to Upload.

Choose Files
'},excel_data:[],valid:!0,nameRules:[t=>t&&t.length<25&&t.length>1||""],phoneRules:[t=>!t&&t.length<12&&t.length>9&&new RegExp(/^01([0|1|6|7|8|9])-?([0-9]{3,4})-?([0-9]{4})$/).test(t)||""],loginidRules:[t=>t&&t.length>3&&t.length<25&&new RegExp(/^[A-Za-z0-9_]+$/).test(t)||""],passRules:[t=>!!t||"",t=>{let e=/^[a-z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]*$/,s=!1,a=!1;if(t&&t.length>=4&&t.length<=20&&(a=!0),e.test(t)){let e=/[0-9]/g.test(t),a=/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]+/g.test(t),i=/[a-z]/g.test(t);e&&a&&(s=!0),e&&i&&(s=!0),i&&a&&(s=!0),i&&e&&a&&(s=!0)}return!!(t&&a&&s)}],birthRules:[t=>!t||new RegExp(/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/).test(t)||""],parentnameRules:[t=>!t||t.length<25&&t.length>1||""],parentphoneRules:[t=>!t||t.length<12&&t.length>9&&new RegExp(/^01([0|1|6|7|8|9])-?([0-9]{3,4})-?([0-9]{4})$/).test(t)],form_body_key:0,to:"",move_page_status:0}},created:function(){},mounted(){this.$refs.myVueDropzone.setOption("url",`${this.$host}/uploadstudentexcel?c=${this.$cid}`)},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)return"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s(),!1;{let e=this.excel_data.length>0?1:0;if(""!=e||0!=e)return this.openDialog("move_page"),!1;"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},watch:{menu(t){t&&this.$store.dispatch("soundEffectPlay","after_popup")}},methods:{downloadSample(){this.$axios({url:this.$host+"/studentexcelsample",method:"GET",responseType:"blob",headers:{Accept:"application/vnd.ms-excel"}}).then(t=>{const e=window.URL.createObjectURL(new Blob([t.data])),s=document.createElement("a");s.href=e,s.setAttribute("download","example.xlsx"),document.body.appendChild(s),s.click()})},afterComplete(t,e){console.log(t,e),this.editingCheck()},uploadSuccess(t,e){if(console.log(t,e),e&&e.length>0){for(let t=0,s=e.length;t{let a=document.getElementById(t.target.id);t.preventDefault();let i=function(t){let e=this.elements[t+"[]"],s=[];if(e&&e.length)for(let a=0,i=e.length;an["loginids"].indexOf(t)!==e);if(l.length>0)for(let t=0,h=n["loginids"].length;t=4&&n["passes"][t].length<=16||(r+=1,this.excel_data[t]["error_pw"]=!0,this.excel_data[t][5]="4~16자",this.form_body_key+=1,this.closeDialog());let c=0;for(let t=0,h=n["grades"].length;t{let e=0,s=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/;for(let a=0,i=t.pdata["loginids"].length;a{if(console.log(t),200==t.status)this.move_page_status=1,this.$router.push({name:"user-assignclass"});else{if(t.data.already_id.length>0)for(let e=0,s=t.data.already_id.length;es[4]==t.data.already_id[e]);-1!=s&&(this.excel_data[s]["error_id"]=!0,this.excel_data[s][4]="중복 아이디",this.form_body_key+=1)}if(t.data.null_class.length>0)for(let e=0,s=t.data.null_class.length;es[0]==t.data.null_class[e]);-1!=s&&(this.excel_data[s]["error_class"]=!0,this.excel_data[s][0]="유효하지 않은 클래스",this.form_body_key+=1)}this.closeDialog()}}).catch(t=>{console.log(t)})})},focusField(t,e,s,a){a&&(this.excel_data[e][s]="",this.excel_data[e]["error_"+t]=!1,this.form_body_key+=1,this.$nextTick(()=>{document.getElementById(`s-${e}-${s}`).focus()}))},movePage(){this.move_page_status=1,this.$router.push({name:this.to})},birthClick(t,e){this.menu=!0,this.open_dp_model=t+"@"+e},changeDP(){let t=this.open_dp_model.split("@")[0],e=this.open_dp_model.split("@")[1];this.excel_data[t][e]=this.birthdate,this.form_body_key+=1},keyupPhone(t,e,s){(1==t.target.value.length&&"0"!==t.target.value||"0"!==t.target.value.charAt(0))&&(this.excel_data[e][s]=""),this.tkey+=1},editingCheck(){console.log(this.excel_data),this.excel_data&&this.excel_data.length>0&&(this.$store.state.editing_status=!0)}},beforeDestroy(){this.allBusDestroy()}}),Ba=Pa,Ta=(s("cf4c"),Object(u["a"])(Ba,Sa,$a,!1,null,null,null)),Ea=Ta.exports,Ia=s("1800"),za=function(){var t=this,e=t._self._c;return e(U["a"],{attrs:{id:"user-alignclass",justify:"center",align:"stretch"}},[e(j["a"],{staticClass:"pa-0 pr-0",attrs:{cols:"6",xs:"12",sm:"6",md:"6",lg:"6"}},[e("preFont"),e("div",{staticClass:"bg-white h-100"},[e("h3",{staticClass:"grey lighten-4 text-center py-2",staticStyle:{"border-bottom":"thin solid #edeeef !important",height:"3rem"}},[e("b",{staticStyle:{"font-size":"1rem"}},[t._v("클래스")])]),e(R["a"],{key:"class-0",staticClass:"border-ede thin-b assign-class-table-left over-y-scroll",staticStyle:{height:"calc(100vh - 6.5rem - 3rem)"},attrs:{"items-per-page":9999,headers:t.headers_arr,items:t.items,"mobile-breakpoint":10,"hide-default-header":!0,"hide-default-footer":!0,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":t.item_key,"no-data-text":"클래스를 먼저 생성해주세요.","disable-pagination":""},on:{"click:row":t.toggleClassRow},scopedSlots:t._u([{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a}){return[e(q["a"],{directives:[{name:"show",rawName:"v-show",value:a,expression:"isExpanded"}],staticClass:"info--text",on:{click:function(t){return s(!a)}}},[t._v("mdi-menu-down")]),e(q["a"],{directives:[{name:"show",rawName:"v-show",value:!a,expression:"!isExpanded"}],on:{click:function(t){return s(!a)}}},[t._v("mdi-menu-right")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"info--text font-weight-bold text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.tname",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.tname)+" 선생님 ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",staticStyle:{"border-bottom":"thin solid #edeeef !important"},attrs:{colspan:t.headers_arr.length+1}},[e(G["a"],{scopedSlots:t._u([{key:"default",fn:function(){return[Number(s.class_id)>0?e("tbody",[e("tr",[e("td"),e("td",{staticClass:"before-doticon font-weight-bold text-left text-usn"},[t._v("\n 수업 요일\n ")]),e("td",{staticClass:"text-left text-usn"},[t._v("\n "+t._s(s.sub_data.lesson_day_bit)+"\n ")])]),e("tr",[e("td",[e(q["a"],{attrs:{color:"transparent"}},[t._v("mdi-play")])],1),e("td",{staticClass:"before-doticon font-weight-bold text-left text-usn"},[t._v("\n 생성일\n ")]),e("td",{staticClass:"text-left text-usn"},[t._v("\n "+t._s(s.sub_data.postdate)+"\n ")])])]):e("tbody",[e("tr",[e("td",{attrs:{rowspan:"2"}},[e(q["a"],{attrs:{color:"transparent"}},[t._v("mdi-play")])],1),e("td",{staticClass:"before-doticon grey--text",attrs:{colspan:"2"}},[t._v("\n 배정된 클래스가 없습니다.\n ")])])])]},proxy:!0}],null,!0)})],1)]}}])})],1)],1),e(j["a"],{staticClass:"pa-0 pl-1 height-inherit",attrs:{cols:"6",xs:"12",sm:"6",md:"6",lg:"6"}},[e("div",{staticClass:"bg-white pos-rel assign-class-table-right",staticStyle:{width:"100%",height:"calc(100vh - 6.5rem)"}},[e("div",{staticStyle:{"padding-bottom":"-48px"}},[e("h3",{staticClass:"text-center grey lighten-4 py-2",staticStyle:{"border-bottom":"thin solid #edeeef !important",height:"3rem"}},[e("b",{staticStyle:{"font-size":"1rem"}},[t._v("재원생")]),t._v(" \n "),e("b",{directives:[{name:"show",rawName:"v-show",value:null!=t.select_class_id,expression:"select_class_id != null"}],staticClass:"danger--text",staticStyle:{"font-size":"1rem"}},[t._v(t._s(t.items_2.length))])]),e(Ss["a"],{key:t.items_2_key,staticClass:"py-0",attrs:{flat:""}},[t.items_2.length>0?e(Ds["a"],{staticClass:"assign-class-item-group",staticStyle:{height:"calc(100vh - 6.5rem - 3rem - 53px)"},attrs:{multiple:""},model:{value:t.settings,callback:function(e){t.settings=e},expression:"settings"}},t._l(t.items_2,(function(s,a){return e($s["a"],{key:s.user_id,staticClass:"border-ede thin-b height-40px",class:{"border-ede thin-t":0==a},on:{click:function(e){return e.stopPropagation(),t.checkUser(s)}},scopedSlots:t._u([{key:"default",fn:function({active:a,toggle:i}){return[e(Ia["a"],[e(ce["a"],{attrs:{color:"info"},model:{value:s.model,callback:function(e){t.$set(s,"model",e)},expression:"user.model"}})],1),e(As["a"],[e(As["b"],[e(U["a"],{staticClass:"ma-0"},[e(j["a"],{staticClass:"pa-0",staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},attrs:{cols:"5"}},[t._v("\n "+t._s(s.uname)+"\n ")]),e(j["a"],{staticClass:"pa-0",staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},attrs:{cols:"5"}},[t._v("\n "+t._s(s.loginid)+"\n ")]),e(j["a"],{staticClass:"pa-0",attrs:{cols:"2"}},[t._v("\n "+t._s(t.gradetxt(s.grade))+"\n ")])],1)],1)],1)]}}],null,!0)})})),1):0!=t.expanded.length?e(Ds["a"],{attrs:{multiple:""}},[e($s["a"],[e(As["a"],[e(As["b"],{staticClass:"grey--text lighten-4 text-center"},[t._v("\n 배정된 학생이 없습니다.\n ")])],1)],1)],1):t._e()],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.items_2.length>0,expression:"items_2.length > 0"}],staticClass:"w-100 assign-class-button",staticStyle:{height:"53px"}},[00},staticStyle:{"border-left":"unset","border-bottom":"unset !important","border-top":"thin solid #edeeef","border-right":"thin solid #edeeef",height:"100% !important"},style:0==t.select_user_id.length?"":"border-top: thin solid #fe8425 !important;",attrs:{block:"",outlined:0==t.select_user_id.length,"x-large":"",tile:"",depressed:"",disabled:0==t.select_user_id.length,color:"#fe8425"},on:{click:function(e){return t.openDialogClasslist("MOVE")}}},[t._v("\n 클래스 이동\n ")])],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"6",xs:"6",sm:"6",md:"6",lg:"6"}},[e(L["a"],{staticClass:"font-weight-bold fs-1rem",staticStyle:{"border-left":"unset","border-bottom":"unset","border-right":"unset","border-top":"thin solid #edeeef",height:"100% !important"},style:0==t.select_user_id.length?"":"border-top: thin solid #fe8425 !important;",attrs:{block:"",outlined:"","x-large":"",tile:"",color:"#fe8425",disabled:0==t.select_user_id.length},on:{click:function(e){return t.openDialogClasslist("DUPL")}}},[t._v("\n 중복 수강\n ")])],1)],1):e(U["a"],{staticClass:"w-100 mgauto h-100"},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"12",xs:"12",sm:"12",md:"12",lg:"12"}},[e(L["a"],{staticClass:"font-weight-bold fs-1rem",class:{"white--text":t.select_user_id.length>0},staticStyle:{"border-left":"unset","border-bottom":"unset","border-right":"unset",height:"100% !important","border-top":"thin solid #edeeef"},attrs:{block:"","x-large":"",tile:"",depressed:"",color:"#fe8425",outlined:0==t.select_user_id.length,disabled:0==t.select_user_id.length},on:{click:function(e){return t.openDialogClasslist("MOVE")}}},[t._v("\n 클래스 배정\n ")])],1)],1)],1)])]),e("Dialogs",[e("div",{key:t.change_class_id_key,staticClass:"radio-dialog",attrs:{slot:"class_list"},slot:"class_list"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v(t._s("MOVE"==t.post_target?"클래스 이동":"중복 수강"))])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{key:t.change_class_id_key2,staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},model:{value:t.change_class_id,callback:function(e){t.change_class_id=e},expression:"change_class_id"}},t._l(t.radioClassGroup,(function(s,a){return e(nt["a"],{key:a,staticClass:"custom-radio",class:"DUPL"==t.post_target&&0==a?"d-none":"d-flex",attrs:{value:s.class_id,label:""+s.name,color:"success"}})})),1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:function(e){t.post_target,t.postMoveUserInClass()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"select_grade_btn cursor"},[t._v(" 확인 ")])])])],1)],1)])],1)},Oa=[],Na={name:"assign-class",components:{Dialogs:st["a"],preFont:et["a"]},data(){return{expanded:[],select_class_id:null,headers_arr:new Array({text:"반명",value:"name",align:"start",sortable:!0},{text:"선생님",value:"tname",align:"start",sortable:!0}),items:[],items_per_page:1==this.$store.state.is_mobile?99999:10,hide_default_footer:1==this.$store.state.is_mobile,item_key:"class_key",items_2:[],items_2_key:0,select_user_id:[],post_target:null,change_class_id:null,change_class_id_key:0,change_class_id_key2:0,settings:[]}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},watch:{expanded(t,e){this.items_2_key+=1,t.length>0?(this.select_class_id=t[0].class_id,this.getStudentInClass()):(this.items_2.splice(0,this.items_2.length),this.select_class_id=null),this.select_user_id.splice(0,this.select_user_id.length)},change_class_id(t,e){console.log(t,e)}},methods:{toggleClassRow(t){this.expanded.length>0&&this.expanded[0].class_id==t.class_id?this.expanded.pop():this.expanded.splice(0,1,t)},getStudentInClass(){const t=this.select_class_id;this.$axios.get(`${this.$host}/class/${this.$cid}/getstudent/${t}`).then(t=>{if(200==t.status){if(t.data.length>0)for(var[e,s]of(this.items_2.splice(0,this.items_2.length),Object.entries(t.data))){let s=Object.assign(t.data[e],{user_key:e},{model:!1});this.items_2.push(s)}}else 204==t.status&&this.items_2.splice(0,this.items_2.length)}).catch(t=>{console.log(t)})},openDialogClasslist(t){this.openDialog("class_list"),this.post_target=t},postMoveUserInClass(t){if(null===this.post_target)return!1;if(0===this.select_user_id.length)return!1;if(null===this.select_class_id)return!1;if(null===this.change_class_id)return!1;const e={old_class_id:this.select_class_id,change_class_id:this.change_class_id,user_id_group:this.select_user_id,mode:this.post_target};this.$axios.post(`${this.$host}/class/${this.$cid}/changeclass`,e).then(t=>{200==t.status&&(this.updated=this.select_user_id,this.select_user_id.splice(0,this.select_user_id.length),this.getStudentInClass(),this.change_class_id=null,this.items_2_key+=1,this.change_class_id_key+=1,this.change_class_id_key2+=1,this.closeDialog())}).catch(t=>{console.log(t)})},checkUser(t){let e=t.user_id,s=this.select_user_id.findIndex(t=>t==e);-1==s?(t.model=!0,this.select_user_id.push(e)):(t.model=!1,this.select_user_id.splice(s,1))},gradetxt(t){let e="기타";switch(t){case"e1":e="초1";break;case"e2":e="초2";break;case"e3":e="초3";break;case"e4":e="초4";break;case"e5":e="초5";break;case"e6":e="초6";break;case"m1":e="중1";break;case"m2":e="중2";break;case"m3":e="중3";break;case"h1":e="고1";break;case"h2":e="고2";break;case"h3":e="고3";break;default:e="기타";break}return e},getClass(){this.$axios.get(`${this.$host}/class/${this.$cid}/getclassroom?by=name`).then(t=>{if(200==t.status){let e=Object.values(t.data);for(let t=0,s=e.length;t{console.log(t)})}},computed:{radioClassGroup(){console.log("radio");let t=[];for(var e=0,s=this.items.length;e{this.post_target=null})},beforeDestroy(){this.allBusDestroy()}},La=Na,Ma=(s("9053"),Object(u["a"])(La,za,Oa,!1,null,null,null)),ja=Ma.exports,Ra=function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-3 h-100",class:["lesson-schedule","lesson-bookprint"].includes(t.$route.name)?"":"white"},[e("router-view")],1)},qa=[],Fa={},Ua=Object(u["a"])(Fa,Ra,qa,!1,null,null,null),Ha=Ua.exports,Ga=s("e0c7"),Wa=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"h-100",attrs:{id:"lessonschedulevue",justify:"center",align:"stretch"}},[e("SelectBookTypeDialog",{ref:"select_book_type",on:{selectBookType:t.selectBookType}}),e(j["a"],{staticClass:"pa-0 pr-1",attrs:{cols:"12",xs:"12",sm:"3",md:"3",lg:"3"}},[e("preFont"),e("div",{class:["bg-white",t.select_class_status?"mb-1 screen-90-height":"h-100"],staticStyle:{"overflow-x":"hidden"},style:t.select_class_status?"height: calc(93vh - 6.5rem)":""},[e("select-header",{ref:"select_header",attrs:{data:t.$data}}),e(U["a"],{staticClass:"over-y-scroll",staticStyle:{height:"calc(100% - 3rem)"}},[t.select_class_status||t.search_students?e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},["string"==typeof t.class_students?e(Ss["a"],{staticClass:"py-0",attrs:{dense:"",disabled:!0}},[e(Ds["a"],[e($s["a"],{staticClass:"border-ede thin-b text-center",staticStyle:{height:"45px"}},[e("div",{staticClass:"text-center w-100 grey--text"},[t._v("\n "+t._s(t.class_students)+"\n ")])])],1)],1):e(Ss["a"],{key:"student-list",staticClass:"py-0",attrs:{dense:""}},[e(Ds["a"],{attrs:{multiple:""},model:{value:t.class_students_settings,callback:function(e){t.class_students_settings=e},expression:"class_students_settings"}},t._l(t.search_students&&t.isNameSearch?t.search_students:t.class_students,(function(s,a){return e($s["a"],{key:"class_students_key_"+a,ref:"class_students_"+a,refInFor:!0,staticStyle:{"border-bottom":"1px solid lightgray"},attrs:{id:"class_students_"+a,"active-class":"info--text"},on:{click:function(e){return t.changeStudentCheckbox(s.id,s)}},scopedSlots:t._u([{key:"default",fn:function({active:i}){return[t.search_students&&t.isNameSearch?e(Ia["a"],[e(q["a"],[t._v("mdi-menu-right")])],1):e(Ia["a"],[e(ce["a"],{attrs:{color:"info"},on:{click:function(e){t.show_schedule_status&&t.changeModeConfirm(s,a)}},model:{value:i,callback:function(t){i=t},expression:"active"}})],1),e(As["a"],[e(As["b"],[e("span",{staticClass:"fs-1rem",class:s.id==t.select_user_schedule?"success--text":"",domProps:{innerHTML:t._s(s.color_text||s.text)}}),t.isNameSearch&&t.search_students?e("span",{staticClass:"fs-1rem"},[t._v("\n "+t._s(`(${s.class_name})`)+"\n ")]):t._e()])],1),e("div",{staticClass:"pos-abs h-100 d-flex",staticStyle:{right:"0","z-index":"1"},on:{click:function(e){return e.stopPropagation(),t.showUserScheduleConfirm(a,s)}}},[e("div",{staticClass:"pos-rel d-flex align-center"},[e("span",{staticStyle:{"font-size":"0.8rem"},style:{display:t.bookCheckText,color:t.select_user_schedule==s.id?"#1bd05b":"#d3d3d3"}},[t._v("\n 교재확인\n ")]),e(q["a"],{staticStyle:{"margin-top":"-1px"},style:t.select_user_schedule==s.id?"color: #1bd05b;":"color: #d3d3d3;",attrs:{id:"schedule_icon_"+a,ripple:!1},on:{click:function(e){return e.stopPropagation(),t.showUserScheduleConfirm(a,s)}}},[t._v("\n mdi-chevron-right\n ")])],1)])]}}],null,!0)})})),1)],1)],1):e(j["a"],{staticClass:"text-center"},[e("span",{staticClass:"grey--text"},[t._v("\n "+t._s(t.isNameSearch?"학생 이름을 검색하세요.":"클래스를 선택하세요.")+"\n ")])])],1)],1),e(U["a"],{directives:[{name:"show",rawName:"v-show",value:t.select_class_status,expression:"select_class_status"}],staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[e(j["a"],{staticClass:"py-0 px-0",attrs:{"align-self":"center"}},[e("b",{staticClass:"mr-2 fw-600"},[t._v("수업 요일")]),e("span",[t._v(t._s(t.class_item_lesson_day))])])],1)],1),e(j["a"],{staticClass:"pa-0 height-inherit",attrs:{cols:"12",xs:"12",sm:"6",md:"6",lg:"6"}},[""!=t.select_user_schedule||t.show_schedule_status?""!=t.select_user_schedule?e("div",{class:["bg-white",t.show_schedule_status?"mb-1 height-calc-schedule-top":"h-100"]},[e(Ga["a"],{staticClass:"justify-center title grey lighten-4 pos-rel",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[t.show_schedule_status?e("div",{staticClass:"pt-2 pb-1 pos-abs",staticStyle:{left:"16px"}},[e(ce["a"],{staticClass:"mt-0",attrs:{"hide-details":"",color:"info",ripple:!1},on:{click:t.allCheckScheduleList},model:{value:t.all_check,callback:function(e){t.all_check=e},expression:"all_check"}})],1):t._e(),e("b",{staticClass:"nnfont fs-1rem"},[t._v("\n "+t._s(t.show_schedule_status?"스케쥴 교재 목록":"")+"\n ")]),e("span",{staticClass:"pos-abs translate-y cursor fw-400",staticStyle:{"font-size":"0.9rem !important",right:"8px"},on:{click:t.closeSchedule}},[t._v("\n 닫기\n ")])]),t.show_schedule_status?e(U["a"],{staticClass:"w-100 mgauto pos-rel over-y-hidden",staticStyle:{height:"calc(100% - (2.5 * 1.2rem))"},attrs:{id:"schedule_row"}},[e(R["a"],{staticClass:"h-100",attrs:{id:"schedule_table",headers:t.book_header,items:t.schedule_items,"mobile-breakpoint":10,"items-per-page":t.schedule_items_per_page,"item-key":"sid","show-select":"","single-select":!1,"hide-default-header":"","hide-default-footer":"","fixed-header":"","no-data-text":"등록된 교재가 없습니다."},on:{"click:row":function(e){return t.clickScheduleRow(e,"click_row")},"item-selected":function(e){return t.clickScheduleRow(e.item,"item_selected")}},scopedSlots:t._u([{key:"item.bookname",fn:function({item:s}){return[e("div",{staticClass:"pos-rel"},[e("span",{staticClass:"cursor"},[t._v("\n "+t._s(s.bookname)+"\n ")]),t.booknameTag(s)?e("span",{staticClass:"ml-1 fw-400 custom-tag cursor",class:t.booknameTag(s)},[t._v("\n "+t._s(t.booknameTag(s).toUpperCase())+"\n ")]):t._e(),3===+s.category&&1===+s.booktype||50===+s.booktype?t._e():e("div",{staticClass:"d-inline-block pos-abs translate-y",staticStyle:{right:"-16px"}},[e(q["a"],{staticClass:"pos-rel",staticStyle:{"margin-top":"-1px"},style:{color:t.select_user_schedule==s.id?"#1bd05b":"#d3d3d3"},attrs:{ripple:!1},on:{click:function(e){return e.stopPropagation(),t.showScheduleOption(s)}}},[t._v("\n mdi-chevron-right\n ")])],1)])]}}],null,!0),model:{value:t.schedule_table,callback:function(e){t.schedule_table=e},expression:"schedule_table"}})],1):t._e(),e("input",{key:t.temp_key,attrs:{type:"hidden"},domProps:{value:t.temp_key}})],1):t._e():e("div",{class:["bg-white",0==t.selectStudents.length?"h-100":"mb-1 screen-90-height"],style:0!=t.selectStudents.length?"height: calc(93vh - 6.5rem)":""},[e(Ga["a"],{staticClass:"justify-center title grey lighten-4 pos-rel h-3rem",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[t.selectStudents.length>0&&["course","school"].includes(t.sel_book_type)?e("button",{staticClass:"pos-abs translate-y",staticStyle:{left:"4px",cursor:"pointer"},on:{click:function(e){return t.reSelectBookType()}}},[e("i",{staticClass:"v-icon mdi mdi-arrow-left theme--light"})]):t._e(),e("b",{staticClass:"nnfont fs-1rem"},[t._v("\n "+t._s(t.selectStudents.length>0&&t.sel_book_type?"교재 목록":"")+"\n ")]),t.selectStudents.length>0&&"school"==t.sel_book_type&&5==t.tab?e(L["a"],{staticClass:"pos-abs translate-y",staticStyle:{right:"8px"},attrs:{icon:"",depressed:""},on:{click:function(e){return t.getBookList(5)}}},[e(q["a"],[t._v(" mdi-refresh ")])],1):t._e()],1),e(U["a"],{directives:[{name:"show",rawName:"v-show",value:t.selectStudents.length>0&&t.sel_book_type,expression:"selectStudents.length > 0 && sel_book_type"}],staticClass:"w-100 mgauto"},t._l(t.tabs,(function(s,a){return e(j["a"],{key:"custom-tab-"+a,staticClass:"pa-0 pos-rel",style:{order:t.tabsOrder(a+1)}},[e("button",{staticClass:"custom-tab-btn w-100 d-flex align-center justify-center",class:t.tab==a+1?"success--text fw-700":"grey--text",staticStyle:{"padding-top":"2px"},style:t.tab==a+1?"border-bottom: 2px solid #1bd05b;":"",attrs:{id:"tab"+(a+1)},on:{click:function(e){return t.selectTab(a+1)}}},[t._v("\n "+t._s(s)+"\n "),"course"==t.sel_book_type&&a+1===2||"course"!=t.sel_book_type&&a+1===1?e(Bt["a"],{staticClass:"ml-1",attrs:{color:t.tab==a+1?"#ff1717":"#ffabab","text-color":"white","x-small":"",pill:""}},[e("span",{staticClass:"white--text",staticStyle:{"margin-top":"-2px"}},[t._v(" NEW ")])]):t._e()],1),"free"==t.sel_book_type&&t.tab==a+1?[t.conditionByTutorial("t"+(a+4))?e("ctooltip",{attrs:{arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, 0)",tool_top:"0px",tool_left:"50%",tool_translate:"translate(-50%, -80%)",tutorial_key:"t"+(a+4)}}):t._e()]:t._e()],2)})),1),""==t.select_user_schedule&&t.selectStudents.length>0&&t.sel_book_type?[t._l(t.tabs,(function(s,a){return[t.tab==a+1?e(U["a"],{key:"stab_"+(a+1),staticClass:"w-100 mgauto pos-rel align-start over-y-scroll schedule-item-wrap",staticStyle:{height:"calc(93vh - 6.5rem - 3.1rem - 3rem)"},attrs:{id:"stab-"+(t.tab+1)}},[e(U["a"],{staticClass:"w-100 mgauto border-ede thin-b"},[e(j["a"],{staticClass:"px-0 py-1 pl-4",attrs:{xs:"6",sm:"6",md:"4"}},[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pa-0 pr-1",attrs:{cols:"6"}},[e(F["a"],{key:"ov-grade-"+(a+1),staticClass:"custom-filter",attrs:{items:t.grade_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"success","persistent-placeholder":!0},on:{change:function(e){"list"==t.sub_mode?t.getBookList(t.tab,t.select_grade[a+1],t.select_sort[a+1]):t.getFolderBook(t.select_folder)}},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticClass:"mx-0"},[t._v("\n "+t._s(t.gradeLabel)+"\n ")])]},proxy:!0},{key:"append",fn:function(){return[e(q["a"],{attrs:{color:"white"}},[t._v(" mdi-menu-down ")])]},proxy:!0}],null,!0),model:{value:t.select_grade[a+1],callback:function(e){t.$set(t.select_grade,a+1,e)},expression:"select_grade[i + 1]"}})],1),e(j["a"],{staticClass:"pa-0 pr-1",attrs:{cols:"6"}},[e(F["a"],{key:"ov-sort-"+a,staticClass:"custom-filter",attrs:{items:t.sort_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"#ffa025","persistent-placeholder":!0},on:{change:function(e){"list"==t.sub_mode?t.getBookList(t.tab,t.select_grade[a+1],t.select_sort[a+1]):t.getFolderBook(t.select_folder)}},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"mx-0"},[t._v(" 정렬 ")])]},proxy:!0},{key:"append",fn:function(){return[e(q["a"],{attrs:{color:"white"}},[t._v(" mdi-menu-down ")])]},proxy:!0}],null,!0),model:{value:t.select_sort[a+1],callback:function(e){t.$set(t.select_sort,a+1,e)},expression:"select_sort[i + 1]"}})],1)],1)],1),e(j["a"],{staticClass:"px-0 py-1",attrs:{xs:"0",sm:"0",md:"4"}}),e(j["a"],{staticClass:"pl-0 pr-3 py-1",attrs:{xs:"6",sm:"6",md:"4"}},[e(X["a"],{staticClass:"c-search-input float-left",attrs:{"append-icon":t.search?"":"mdi-magnify",id:"search",placeholder:"교재명",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":"mdi-close-circle",color:"success"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),"object"==typeof t.book_items[t.tab]?[e(R["a"],{key:t.datatable_component,ref:"v-data-table-"+(a+1),refInFor:!0,staticClass:"book_table",class:"list"==t.sub_mode?"d-block":"d-none",staticStyle:{height:"calc(100% - 9px - 2.5rem)"},attrs:{id:"default_table",headers:t.book_header,items:t.book_items[t.tab],"mobile-breakpoint":10,"items-per-page":t.items_per_page[t.tab],"item-key":"id","show-select":"","single-select":!0,"hide-default-header":"","hide-default-footer":"","fixed-header":"","no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.",search:t.search,"custom-filter":t.filterBookList},on:{"click:row":function(e){return t.clickClassRow(e)},"item-selected":function(e){return t.clickClassRow(e.item)}},scopedSlots:t._u([{key:"item.data-table-select",fn:function({item:s}){return[-1!=s.id.indexOf("folder")?e(q["a"],{staticStyle:{cursor:"pointer"},attrs:{color:"yellow"}},[t._v("\n mdi-folder-open\n ")]):e(Ye["a"],{attrs:{color:"info",value:s.isSelected},on:{input:function(e){return t.selectBook(s)}}})]}},{key:"item.bookname",fn:function({item:s}){return[e("div",{staticClass:"pos-rel h-100",class:`tab${t.tab}-${s.grade} tab${t.tab}-span`},[e("span",{staticClass:"pos-abs translate-y cursor",style:{color:4==s.category&&s.tmp_academy_name?"#c1c1c1":""}},[e("span",{domProps:{innerHTML:t._s(s.search_bookname||s.bookname)}}),t.booknameTag(s)?e("span",{staticClass:"ml-1 fw-400 custom-tag",class:t.booknameTag(s)},[t._v("\n "+t._s(t.booknameTag(s).toUpperCase())+"\n ")]):t._e(),4==s.category&&s.tmp_academy_name?e("span",{staticClass:"ml-1 fw-300",staticStyle:{color:"#e5e5e5"}},[t._v("\n - "+t._s(s.tmp_academy_name)+"\n ")]):t._e()]),+s.total_cnt>0&&![43,50].includes(+s.booktype)?e("div",{staticClass:"pos-abs translate-y h-100 cursor",staticStyle:{"z-index":"1",right:"0",width:"39px"},on:{click:function(e){return e.stopPropagation(),t.setForm(s)}}},[e(q["a"],{staticClass:"translate-a",attrs:{color:4==s.category&&s.tmp_academy_name?"#c1c1c1":"#d2d2d2"}},[t._v("\n mdi-chevron-right\n ")])],1):t._e()])]}}],null,!0),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}),t.select_folder&&"folder"==t.sub_mode?e(R["a"],{key:"folder-"+t.datatable_component,staticClass:"book_table",staticStyle:{height:"calc(100% - (2.5rem + 8px))"},attrs:{id:"folder_table",headers:t.book_header,items:t.select_folder.in_item,"mobile-breakpoint":10,"items-per-page":9999,"item-key":"id","show-select":"","single-select":!0,"hide-default-header":"","hide-default-footer":"","fixed-header":"","no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.",search:t.search,"custom-filter":t.filterBookList},on:{"click:row":function(e){return t.clickClassRow(e)},"item-selected":function(e){return t.clickClassRow(e.item)}},scopedSlots:t._u([{key:"no-results",fn:function(){return[e("div",{staticClass:"w-100 mgauto text-center border-ede thin-b d-inline-flex align-center",staticStyle:{width:"calc(100% + 32px) !important","margin-left":"-16px !important"},on:{click:function(e){return t.clickClassRow({id:"back"})}}},[e("div",{staticClass:"float-left cursor",staticStyle:{width:"55px"}},[e(q["a"],{staticClass:"cursor",staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")])],1),e("div",{staticClass:"px-4 py-2 float-left cursor d-flex align-center",staticStyle:{height:"39px",color:"#000000de"}},[t._v("\n "+t._s(t.select_folder.bookname)+"\n ")]),e("div",{staticStyle:{clear:"both"}})]),e(U["a"],{staticClass:"w-100 mgauto text-center"},[e(j["a"],{staticClass:"px-4 py-3 grey--text"},[t._v("\n 등록된 교재가 없습니다.\n ")])],1)]},proxy:!0},{key:"item.data-table-select",fn:function({item:s}){return["back"==s.id?e(q["a"],{staticClass:"cursor",staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")]):"null"==s.id?void 0:e(Ye["a"],{attrs:{color:"info",value:s.isSelected},on:{input:function(e){return t.selectBook(s)}}})]}},{key:"item.bookname",fn:function({item:s}){return["null"==s.id?e(U["a"],{staticClass:"w-100 mgauto text-center"},[e(j["a"],{staticClass:"pl-2 pr-4 py-3 grey--text",staticStyle:{"margin-left":"-30.5px"}},[t._v("\n 등록된 교재가 없습니다.\n ")])],1):e("div",{staticClass:"pos-rel h-100",class:`tab${t.tab}-${s.grade} tab${t.tab}-span`},[e("span",{staticClass:"pos-abs translate-y cursor",style:{color:4==s.category&&s.tmp_academy_name?"#c1c1c1":""}},[t._v("\n "+t._s(s.bookname)+"\n "),t.booknameTag(s)?e("span",{staticClass:"ml-1 fw-400 custom-tag",class:t.booknameTag(s)},[t._v("\n "+t._s(t.booknameTag(s).toUpperCase())+"\n ")]):t._e(),4==s.category&&s.tmp_academy_name?e("span",{staticClass:"ml-1 fw-300",staticStyle:{color:"#e5e5e5"}},[t._v("\n - "+t._s(s.tmp_academy_name)+"\n ")]):t._e()]),+s.total_cnt>0?e("div",{staticClass:"pos-abs translate-y h-100 cursor",staticStyle:{"z-index":"1",right:"0",width:"39px"},on:{click:function(e){return e.stopPropagation(),t.setForm(s)}}},[e(q["a"],{staticClass:"translate-a",attrs:{color:4==s.category&&s.tmp_academy_name?"#c1c1c1":"#d2d2d2"}},[t._v("\n mdi-chevron-right\n ")])],1):t._e()])]}}],null,!0),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}}):t._e(),e(U["a"],{staticClass:"w-100 mgauto text-center pos-abs border-ede thin-b",staticStyle:{top:"37px",display:"none"},attrs:{id:"null_book_"+(a+1)}},[e(j["a"],{staticClass:"px-4 py-3 grey--text"},[t._v("\n 등록된 교재가 없습니다.\n ")])],1)]:"null"==t.book_items[t.tab]?[e("div",{staticClass:"pos-rel w-100"},[e(U["a"],{staticClass:"w-100 mgauto text-center pos-abs border-ede thin-b"},[e(j["a"],{staticClass:"px-4 py-3 grey--text"},[t._v("\n 등록된 교재가 없습니다.\n ")])],1)],1)]:[e(U["a"],{staticClass:"w-100 h-100 mgauto",attrs:{id:"loading_book_"+a}},[e(j["a"],{attrs:{cols:"12"}}),e(j["a"],{staticClass:"text-center",staticStyle:{"align-self":"center"},attrs:{cols:"12"}},[e(Ps["a"],{attrs:{indeterminate:"",size:90,width:7,color:"#1bd05b"}},[e("h3",{staticClass:"title"},[t._v("Loading")])])],1),e(j["a"],{attrs:{cols:"12"}})],1)]],2):t._e()]}))]:t._e(),e("input",{key:t.temp_key,attrs:{type:"hidden"},domProps:{value:t.temp_key}})],2),""!=t.select_user_schedule?e(U["a"],{staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[""!=t.select_user_schedule&&t.show_schedule_status?e(j["a"],{staticClass:"pa-0 h-100",attrs:{"align-self":"center"}},[e(L["a"],{staticClass:"fs-1rem",staticStyle:{height:"100% !important"},attrs:{color:t.schedule_table.length>0?"red white--text":"white grey--text",depressed:"",block:"",tile:"",ripple:!1},on:{click:function(e){t.schedule_table.length>0&&t.openDialog("del_schedule")}}},[e("b",[t._v(" 스케쥴 삭제 ")])])],1):t._e()],1):t._e(),t.selectStudents.length>0?e(U["a"],{staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[t.selBookItems.length>0?e(j["a"],{staticClass:"py-0 px-1",attrs:{"align-self":"center"}},[e("b",{staticClass:"mr-2"},[t._v("교재 정보")]),t.origin_selected[0]?[t.origin_selected[0].publisher?e("span",[t._v("\n 제작자 "+t._s(t.origin_selected[0].publisher)+"\n ")]):t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:t.origin_selected[0].publisher,expression:"origin_selected[0].publisher"}],staticClass:"grey--text"},[t._v("\n |\n ")]),t.origin_selected[0].publishdate?e("span",[t._v("\n 제작년도 "+t._s(t.origin_selected[0].publishdate)+"\n ")]):t._e(),e("span",{directives:[{name:"show",rawName:"v-show",value:t.origin_selected[0].publishdate,expression:"origin_selected[0].publishdate"}],staticClass:"grey--text"},[t._v("\n |\n ")]),e("span",[t._v(" 학습일차 레슨 "+t._s(t.origin_selected[0].unit_cnt||1)+" ")])]:t._e()],2):t._e()],1):t._e()],1),e(j["a"],{staticClass:"pa-0 pl-1 height-inherit",attrs:{cols:"12",xs:"12",sm:"3",md:"3",lg:"3"}},[e("div",{class:["bg-white",t.selBookItems.length>0&&t.new_set_option?"mb-1 over-y-scroll screen-90-height":"h-100 pos-rel"],style:t.selBookItems.length>0&&t.new_set_option?"height: calc(93vh - 6.5rem)":""},[e(Ga["a"],{staticClass:"justify-center grey lighten-4 h-3rem",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e("b",{staticClass:"nnfont fs-1rem"},[t._v("\n "+t._s(t.selBookItems.length>0&&t.new_set_option?"학습 상세설정":"")+"\n ")])]),t.new_set_option||t.close_sd_status||""!=t.show_schedule_status?t._e():e("div",{staticClass:"pos-abs translate-y w-100 text-center grey--text fs-1rem"},[t._v("\n 교재 선택 후,"),e("br"),t._v("\n 스케쥴을 설정하세요.\n ")]),t.selBookItems.length>0&&t.new_set_option?e("section",{staticClass:"schedule_right_opt"},[e("div",{staticClass:"w-100 h-100 mgauto pos-rel d-flex flex-column"},["course"!=t.sel_book_type&&3===+t.selected[0].category&&1===+t.selected[0].booktype?e("div",{staticClass:"pos-abs translate-y w-100 text-center grey--text fs-1rem"},[t._v("\n 듣기평가는"),e("br"),t._v("\n 설정할 내용이 없습니다.\n ")]):"course"==t.sel_book_type&&43===+t.selected[0].booktype&&t.selected[0].grade.includes("m")&&t.isOnlySpecialUnit?e("div",{staticClass:"pos-abs translate-y w-100 text-center grey--text fs-1rem"},[t._v("\n Review 강의는"),e("br"),t._v("\n 설정할 내용이 없습니다.\n ")]):[t._l(["v","m","a"],(function(s,a){return[t.getSettingOption[s].status?[e("div",{key:"mod-header-"+a,staticClass:"pa-2 my-1 pos-rel",staticStyle:{height:"3.5vh"}},[e("b",{staticClass:"pos-abs translate-y",staticStyle:{"font-size":"1.05rem"},style:{color:t.getSettingOption[s].color},domProps:{textContent:t._s(t.getSettingOption[s].text)}})]),e(U["a"],{key:"mod-body-"+a,staticClass:"w-100 mgauto pos-rel",style:{flex:43===+t.selected[0].booktype&&"m"===s&&t.selected[0].grade.includes("e")?2:1}},[t.isImmutableSettings({type:s,getSettingOption:t.getSettingOption})?[e(j["a"],{staticClass:"w-100 pos-abs translate-y text-center grey--text fs-1rem"},[50===+t.selected[0].booktype?[t._v("\n 스토리북 심화학습은"),e("br"),t._v("\n 문제풀이 과정으로 필수입니다.\n ")]:43===+t.selected[0].booktype?[t.selected[0].grade.includes("e")?[t._v("\n 복습 강의는"),e("br"),t._v("\n 설정할 내용이 없습니다.\n ")]:t.selected[0].grade.includes("m")?void 0:t._e()]:31===+t.selected[0].booktype?[t._v("\n 듣기 학습은"),e("br"),t._v("\n 설정할 내용이 없습니다.\n ")]:t._e()],2)]:t._l(t.getSettingOption[s].modules,(function(a,i){return e(j["a"],{key:`v-mod-${i}-${t.setting_key}`,style:{padding:""+(6===t.getSettingOption[s].col?i%2===0?"0 3px 6px 12px":"0 12px 6px 3px":"0 16px 6px 16px")},attrs:{cols:t.getSettingOption[s].col}},[e(L["a"],{style:{height:"100%",border:"thin solid "+(1==a.status?t.getSettingOption[s].color:"#e9e9e9"),color:""+(1==a.status?t.getSettingOption[s].color:"#e9e9e9")},attrs:{ripple:!1,small:"",block:"",depressed:"",outlined:""},on:{click:function(e){return t.changeModule(t.getSettingOption[s],a)}}},[e("b",{staticClass:"fs-1rem"},[t._v(t._s(a.text))])])],1)}))],2),e("div",{key:"mod-divider-"+a,staticClass:"pos-rel px-2",staticStyle:{height:"13px","margin-bottom":"-6px"}},[e(Ca["a"],{staticClass:"pos-abs translate-y mgauto",staticStyle:{width:"90%","border-color":"#edeeef"}})],1)]:t._e()]})),[e("div",{staticClass:"px-2 pt-2 pb-1 pos-rel",attrs:{cols:"12"}},[e(ce["a"],{staticClass:"mt-0",attrs:{dense:"","hide-details":"",label:"",color:"info"},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"fs-1rem black--text",staticStyle:{"margin-left":"-2px"}},[t._v("\n 어휘 학습 시 이미지 표기\n ")])]},proxy:!0}],null,!1,2327991017),model:{value:t.opt1,callback:function(e){t.opt1=e},expression:"opt1"}}),e(ce["a"],{staticClass:"mt-0",attrs:{dense:"","hide-details":"",label:"",color:"info"},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"fs-1rem black--text",staticStyle:{"margin-left":"-2px"}},[t._v("\n 학년별 추천 학습과정\n ")])]},proxy:!0}],null,!1,1102994145),model:{value:t.opt3,callback:function(e){t.opt3=e},expression:"opt3"}})],1)]]],2)]):t._e()],1),e(U["a"],{directives:[{name:"show",rawName:"v-show",value:t.selBookItems.length>0&&t.new_set_option,expression:"selBookItems.length > 0 && new_set_option"}],staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[e(j["a"],{staticClass:"pa-0 pos-rel",staticStyle:{height:"100%"},attrs:{"align-self":"center"}},[e(L["a"],{staticClass:"fs-1rem",staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",color:"success"},on:{click:function(e){return t.openSettingDialog()}}},[t._v("\n 수업 스케쥴 설정\n ")]),t.conditionByTutorial("t10")?e("ctooltip",{attrs:{arrow_direction:"arrow-right",tool_top:"50%",tool_left:"0",tool_translate:"translate(-105%, -50%)",tutorial_key:"t10"}}):t._e()],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"recommend_confirm"},slot:"recommend_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("현재 학습 설정을 권장합니다.")]),e("br"),e("b",[t._v("그래도 수정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.continueEve}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("수정")])])])],1)],1),e("div",{attrs:{slot:"reject_writing"},slot:"reject_writing"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("영작하기 단계는 필수 학습단계입니다.")]),e("br"),e("b",[t._v("해제할 수 없습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"reject_vm_listening"},slot:"reject_vm_listening"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("리스닝 단계는 필수 학습단계입니다.")]),e("br"),e("b",[t._v("해제할 수 없습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"reject_cnt"},slot:"reject_cnt"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("최소 "+t._s(2===t.now_min_cnt?1:5-t.now_min_cnt)+"개 이상 모듈이\n 설정되어야 합니다.")]),e("br"),e("b",[t._v("더 이상 해제할 수 없습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"reject_solo_listening"},slot:"reject_solo_listening"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("리스닝 학습은 단독으로 설정할 수 없습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"already_story"},slot:"already_story"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("동일한 교재가 스케쥴로 지정되어 있습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100 dialog-onebtn",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"add_success"},slot:"add_success"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",["F"==t.user.product_type?[t._v("\n 이제 학생앱으로 학습을 확인하세요.\n ")]:[t._v(" 수업 스케쥴 설정을 완료하였습니다. ")]],2)])]),e(M["a"],{key:t.cakey,staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:function(e){return t.addScheduleSuccess()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"show_schedule"},slot:"show_schedule"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v(t._s(t.select_user_name)+" 학생의 배포된")]),e("br"),e("b",[t._v("스케쥴 교재를 확인하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.showUserSchedule}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"change_mode"},slot:"change_mode"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v(t._s(t.select_user_name2)+"학생의 스케쥴을")]),e("br"),e("b",[t._v("설정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.changeBookMode}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"del_schedule"},slot:"del_schedule"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("선택한 스케쥴을 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 스케쥴은 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.delSchedule}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"c4_allbook"},slot:"c4_allbook"},[e(M["b"],{staticClass:"black text-center py-8 pos-rel",staticStyle:{opacity:"0.75"}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"white--text"},[t._v("\n 다른 학원의 수업자료를 무상 공유해드립니다."),e("br"),t._v("\n 배정된 담당자를 통해 문의하세요!\n ")])]),e(L["a"],{staticClass:"pos-abs",staticStyle:{top:"8px",right:"8px"},attrs:{icon:"",small:"",depressed:"",ripple:!1},on:{click:t.closeDialog}},[e(q["a"],{attrs:{color:"white"}},[t._v(" mdi-close ")])],1)],1)],1),e("div",{attrs:{slot:"selectSampleOpt"},slot:"selectSampleOpt"},[e(M["c"],{staticClass:"justify-start text-center pb-0 pt-8 px-11"},[e("h3",{staticClass:"title"},[e("b",[t._v("교재 양식 다운로드")])])]),e(M["b"],{staticClass:"over-y-scroll px-10 mt-4",staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},model:{value:t.filesample_opt,callback:function(e){t.filesample_opt=e},expression:"filesample_opt"}},[t.select_form_item&&+t.select_form_item.words_cnt>0?e(nt["a"],{staticClass:"custom-radio",attrs:{label:"단어",value:"word",color:"success"}}):t._e(),t.select_form_item&&2!=+t.select_form_item.booktype_s?e(nt["a"],{staticClass:"custom-radio",attrs:{label:"문장",value:"sentence",color:"success"}}):t._e()],1)],1),e(M["a"],{staticClass:"justify-end px-12 pb-8 pt-2"},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_open_btn",staticClass:"cursor",class:t.filesample_opt?"success--text":"black--text",on:{click:function(e){t.filesample_opt?t.setFormApi():t.closeDialog()}}},[t._v("\n "+t._s(t.filesample_opt?"확인":"취소")+"\n ")])])])],1)]),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"920",persistent:"",transition:!1,"no-click-animation":!0},on:{"click:outside":t.closeSettingDialog},model:{value:t.setting_dialog,callback:function(e){t.setting_dialog=e},expression:"setting_dialog"}},[t.selected[0]?e(it["a"],{attrs:{id:"setting_dialog"}},[e(M["b"],{staticClass:"text-center py-4"},[e(U["a"],{staticClass:"pos-rel w-100 mgauto"},[e(j["a"],{staticClass:"px-3 pt-0 pb-0 mb-4 pos-rel align-center",attrs:{cols:"12"}},[e("div",{staticClass:"pos-abs translate-y",staticStyle:{left:"calc(12px + 2.5%)"}},[t.show_schedule_mode?t._e():e(hs["a"],{staticClass:"mt-0 py-0 d-inline-block pos-rel",staticStyle:{top:"1px"},attrs:{color:"info",inset:"","hide-details":"",flat:"",dense:"",ripple:!1},on:{change:function(e){return t.changeAllUnitsSwitch(e)}},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"fs-1rem",class:t.all_units_switch?"info--text":"",staticStyle:{"margin-top":"-2px"}},[t._v("\n 단원 전체\n ")])]},proxy:!0}],null,!1,3425016177),model:{value:t.all_units_switch,callback:function(e){t.all_units_switch=e},expression:"all_units_switch"}})],1),e("h3",{staticClass:"title success--text custom-top d-inline-block px-12 py-2",staticStyle:{"background-color":"#f5f5f5","border-radius":"50px"}},[e("b",[t._v("수업 스케쥴")]),e("span",{staticClass:"black--text fw-300",staticStyle:{"font-size":"90%"}},[t._v("\n - "+t._s(t.selected[0].bookname)+"\n ")])])]),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[e("div",{staticClass:"w-100",staticStyle:{"border-bottom":"thin dashed #bdbdbd"}})]),e(j["a"],{staticClass:"py-0",staticStyle:{height:"42.5vh","overflow-x":"hidden","overflow-y":"auto"},attrs:{cols:t.isNonDetailSetting?12:8}},[t._l(t.selected[0].units,(function(s,a){return[e("div",{key:"units-row-"+a,staticClass:"w-100 mgauto border-ede thin-b align-center d-flex py-3"},[e("div",{staticStyle:{flex:"0.05"}},[e("div",{staticClass:"dotted mt-1"})]),e(ce["a"],{staticClass:"ma-0 pa-0",staticStyle:{flex:"0.05"},attrs:{dense:"","hide-details":"",color:"info",ripple:!1,disabled:t.show_schedule_mode},on:{change:function(e){return t.exceptUnit("change",s)}},model:{value:s.check,callback:function(e){t.$set(s,"check",e)},expression:"item.check"}}),50===+t.selected[0].booktype?e(Bt["a"],{staticClass:"px-2",attrs:{color:t.selected[0].color,"x-small":"",pill:""}},[e("span",{staticClass:"white--text"},[t._v(" No. "+t._s(s.no)+" ")])]):t._e(),e("span",{staticClass:"black--text cursor text-left pl-2",staticStyle:{flex:"0.9"},on:{click:function(e){!t.show_schedule_mode&&t.exceptUnit("click",s)}}},[t.search?e("span",{domProps:{innerHTML:t._s(s.name.replace(new RegExp(t.search,"gi"),"$&"))}}):[t._v("\n "+t._s(s.name)+"\n ")],e("span",{staticClass:"grey--text"},[t._v("\n "+t._s(s.subtitle)+"\n ")])],2)],1)]}))],2),e(j["a"],{directives:[{name:"show",rawName:"v-show",value:!t.isNonDetailSetting,expression:"!isNonDetailSetting"}],staticClass:"py-0 border-ede thin-l",attrs:{cols:"4"}},[e(U["a"],[t._l([0,1],(function(s){return[e(j["a"],{directives:[{name:"show",rawName:"v-show",value:1!=s||1!=t.select_option,expression:"idx == 1 && select_option == 1 ? false : true"}],key:"option-col-"+s,staticStyle:{height:"18vh"},attrs:{cols:"12"}},[e("div",{staticClass:"gmfont cursor h-100 d-flex justify-center flex-column br-4",style:t.select_option==s?"border: 2px solid #1bd05b;":"border: 1px solid #d4d4d4;",on:{click:function(e){return t.clickScheduleType(s)}}},[e("div",{staticClass:"d-flex justify-center flex-column",staticStyle:{"min-height":"40px"}},[e("span",{staticClass:"fw-500 ls-m-2",staticStyle:{"font-size":"1.75rem"},style:t.select_option==s?"color: #1bd05b;":"color: #dcdcdc;"},[t._v("\n "+t._s(0==s?"단원별 설정":"분할 설정")+"\n ")])]),e("span",{staticClass:"fw-500 ls-m-1 fs-1rem",style:t.select_option==s?"color: #989898;":"color: #dcdcdc;"},[t._v("\n "+t._s(0==s?"원본 교재의 단원에 맞게 학습":"지문 분할하여 여러 차시에 학습")+"\n ")])])])]})),e(j["a"],{directives:[{name:"show",rawName:"v-show",value:1==t.select_option,expression:"select_option == 1"}],staticStyle:{height:"18vh"},attrs:{cols:"12"}},[e("div",{staticClass:"gmfont cursor h-100 d-flex justify-center flex-column br-4",staticStyle:{border:"2px solid #1bd05b"}},[e("div",{staticClass:"fw-500 ls-m-2 pos-rel d-flex justify-space-between align-center",staticStyle:{"font-size":"1.75rem",color:"#1bd05b",margin:"-3px 0 3px 0"}},[e(q["a"],{staticStyle:{left:"8px"},attrs:{"x-large":"",ripple:!1,color:"success",disabled:!t.selected[0].units||!t.selected[0].units.some(t=>t.check)},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),!t.show_schedule_mode&&t.changeSentenceNum("left")}}},[t._v("\n mdi-chevron-left\n ")]),e("span",{staticClass:"usn mt-1"},[t._v("\n "+t._s(t.select_sentence_num)+"개\n ")]),e(q["a"],{staticStyle:{right:"8px"},attrs:{"x-large":"",ripple:!1,color:"success",disabled:!t.selected[0].units||!t.selected[0].units.some(t=>t.check)},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),!t.show_schedule_mode&&t.changeSentenceNum("right")}}},[t._v("\n mdi-chevron-right\n ")])],1),e("span",{staticClass:"fw-500 ls-m-1 fs-1rem",staticStyle:{color:"#989898"}},[t._v("\n 지문 분할하여 여러 차시에 학습\n ")])])]),e(j["a"],{staticClass:"pt-1 pb-0",staticStyle:{height:"6.5vh"},attrs:{cols:"12"}},[e(U["a"],{staticClass:"w-100 h-100 mgauto align-center"},[e(j["a"],{staticClass:"text-left pa-0 align-self-center",attrs:{cols:"6"}},[e("h2",{staticClass:"custom gmfont h-100 text-center fw-500",staticStyle:{"line-height":"1.5","border-right":"1px solid #eeeeee"}},[e("span",{staticClass:"ls-m-1",staticStyle:{color:"#bfbfbf","font-size":"90%"}},[t._v("\n "+t._s(t.selected[0]&&2==+t.selected[0].booktype_m?"전체 단어":"전체 지문")+"\n ")]),e("br"),e("b",{staticClass:"success--text pos-rel",staticStyle:{top:"1px"}},[t._v(t._s(t.selected[0].total_cnt)+"개")])])]),e(j["a"],{staticClass:"text-right pa-0 align-self-center",attrs:{cols:"6"}},[e("h2",{staticClass:"custom gmfont h-100 text-center fw-500",staticStyle:{"line-height":"1.5"}},[e("span",{staticClass:"ls-m-1",staticStyle:{color:"#bfbfbf","font-size":"90%"}},[t._v("\n 학습 차시\n ")]),e("br"),e("b",{staticClass:"success--text pos-rel",staticStyle:{top:"1px"}},[t._v("\n "+t._s(t.unit_cnt)+t._s(0==t.select_option?"단원":"차시")+"\n ")])])])],1)],1)],2)],1)],1)],1),e(M["a"],{staticClass:"pa-0",attrs:{id:"org_action"}},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},style:t.show_schedule_mode?"background-color: #1bd05b;":t.checkAllView?"background-color: #f5f5f5;":"background-color: #1bd05b;",attrs:{id:"org_action_btn","x-large":"",text:"",disabled:!t.show_schedule_mode&&t.checkAllView},on:{click:function(e){t.show_schedule_mode?t.setting_dialog=!1:t.newSetOption()}}},[e("h3",{staticClass:"title-1 custom"},[e("b",{staticStyle:{"font-size":"95%"},style:t.show_schedule_mode?"color: white;":t.checkAllView?"color: #9e9e9e;":"color: white;"},[t._v("\n "+t._s(t.show_schedule_mode?"확인":"적용")+"\n ")])])])],1),t.warning_dialog?e("div",{staticClass:"pos-abs",attrs:{id:"from-right-slide-dialog"}},[e(M["b"],{staticClass:"text-center pa-0",attrs:{id:"dialog-new-text"}},[e("div",{staticClass:"pos-abs rd-arrow"},[e(L["a"],{attrs:{"x-large":"",icon:"",ripple:!1},on:{click:t.warningFalse}},[e(q["a"],[t._v("mdi-arrow-left")])],1)],1),e("div",{staticClass:"w-100 mgauto pt-4"},[e("div",{staticClass:"px-8 pt-3 pb-0",attrs:{id:"wd_top"}},[e("h3",{staticClass:"title success--text"},[e("b",[t._v("수업 스케쥴")])]),e("div",{staticStyle:{"border-bottom":"thin dashed #bdbdbd",width:"100%","margin-top":"12px","margin-bottom":"36px"}})]),e("div",{staticClass:"pos-rel",attrs:{id:"wd_bot"}},[e("h3",{staticClass:"title grey--text w-100 fw-400",staticStyle:{"line-height":"1.3"}},[t._v("\n 분할 설정 시,"),e("br"),t._v("\n 어휘 및 심화학습은 제공하지 않습니다.\n ")]),e("h3",{staticClass:"title grey--text w-100 fw-400 pos-abs",attrs:{id:"question_sub_text"}},[e("b",{staticClass:"black--text"},[t._v("분할 설정")]),t._v("을 하시겠습니까?\n ")])])])]),e(M["a"],{staticClass:"text-center pa-0",attrs:{id:"dialog-new-actions"}},[e(U["a"],{staticClass:"w-100 mgauto",attrs:{justify:"center"}},[e(j["a"],{staticClass:"pa-0"},[e(L["a"],{staticClass:"subtitle-1",staticStyle:{"border-radius":"0px",height:"100% !important"},attrs:{color:"success",block:"",depressed:"",large:"",ripple:!1},on:{click:t.newSetOneOption}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"fw-700 ls-m-1"},[t._v("분할 설정")])])])],1)],1)],1)],1):t._e()],1):t._e()],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"490",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.dup_dialog,callback:function(e){t.dup_dialog=e},expression:"dup_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title black--text"},[e("b",[t._v("\n "+t._s(t.selectStudents.length>1?"선택 학생 중 ":"")+"\n 동일한 교재가 배포되어 있습니다.\n ")]),e("br"),e("b",[t._v("추가로 설정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){t.dup_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.submitSchedule}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)],1),e(ot["a"],{attrs:{origin:"center center","content-class":"cover-dialog",scrollable:"",persistent:!1,transition:!1,"no-click-animation":!0},model:{value:t.image_dialog,callback:function(e){t.image_dialog=e},expression:"image_dialog"}},[e(it["a"],{staticClass:"mgauto"},[e("img",{staticStyle:{height:"40vh","max-height":"40vh"},attrs:{src:`https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy/img/cover/${t.image_category}/${t.image_cover}`}})])],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"920",persistent:"",transition:!1,"no-click-animation":!0},on:{"click:outside":t.deleteStoryBookDialogClose},model:{value:t.deleteStoryBookDialog,callback:function(e){t.deleteStoryBookDialog=e},expression:"deleteStoryBookDialog"}},[t.delStoryBook?e(it["a"],{attrs:{id:"setting-dialog"}},[e(M["b"],{staticClass:"text-center py-4"},[e(U["a"],{staticClass:"pos-rel w-100 mgauto"},[e(j["a"],{staticClass:"px-3 pt-0 pb-0 mb-4 pos-rel align-center",attrs:{cols:"12"}},[e("div",{staticClass:"pos-abs translate-y",staticStyle:{left:"calc(12px + 2.5%)"}},[e(hs["a"],{staticClass:"mt-0 py-0 d-inline-block pos-rel",staticStyle:{top:"1px"},attrs:{color:"info",inset:"","hide-details":"",flat:"",dense:"",ripple:!1},on:{change:function(e){return t.changeAllUnitsSwitch(e,"deleteStory")}},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"fs-1rem",class:t.all_units_switch?"info--text":"",staticStyle:{"margin-top":"-2px"}},[t._v("\n 교재 전체\n ")])]},proxy:!0}],null,!1,636033269),model:{value:t.all_units_switch,callback:function(e){t.all_units_switch=e},expression:"all_units_switch"}})],1),e("h3",{staticClass:"title success--text custom-top d-inline-block px-12 py-2",staticStyle:{"background-color":"#f5f5f5","border-radius":"50px"}},[e("b",[t._v("수업 스케쥴")]),e("span",{staticClass:"black--text fw-300",staticStyle:{"font-size":"90%"}},[t._v("\n - "+t._s(t.delStoryBook.bookname)+"\n ")])])]),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[e("div",{staticClass:"w-100",staticStyle:{"border-bottom":"thin dashed #bdbdbd"}})]),e(j["a"],{staticClass:"py-0",staticStyle:{height:"42.5vh","overflow-x":"hidden","overflow-y":"auto"},attrs:{cols:"12"}},t._l(t.delStoryBook.units,(function(s,a){return e("div",{key:"units-row-"+a,staticClass:"w-100 mgauto border-ede thin-b align-center d-flex py-3"},[e("div",{staticStyle:{flex:"0.05"}},[e("div",{staticClass:"dotted mt-1"})]),e(ce["a"],{staticClass:"ma-0 pa-0",staticStyle:{flex:"0.05"},attrs:{dense:"","hide-details":"",color:"info",ripple:!1},on:{change:function(e){return t.deleteStoryBookCheck(e,s,"change")}},model:{value:s.check,callback:function(e){t.$set(s,"check",e)},expression:"item.check"}}),e(Bt["a"],{staticClass:"px-2",attrs:{color:t.delStoryBook.color,"x-small":"",pill:""}},[e("span",{staticClass:"white--text"},[t._v("\n No.\n "+t._s(s.cover_path.split("-")[1].replace(".png",""))+"\n ")])]),e("span",{staticClass:"black--text cursor text-left pl-2",staticStyle:{flex:"0.9"},on:{click:function(e){return t.deleteStoryBookCheck(e,s,"click")}}},[t._v("\n "+t._s(s.schedule_name)+"\n\n "),e("span",{staticClass:"grey--text"},[t._v("\n "+t._s(s.subtitle)+"\n ")])])],1)})),0)],1)],1),e(M["a"],{staticClass:"pa-0",attrs:{id:"org_action"}},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},style:{backgroundColor:t.delStoryBookCheck?"red":"#f5f5f5"},attrs:{id:"org_action_btn","x-large":"",text:"",disabled:!t.delStoryBookCheck},on:{click:function(e){return t.openDialog("del_schedule")}}},[e("h3",{staticClass:"title-1 custom"},[e("b",{staticStyle:{"font-size":"95%"},style:{color:t.delStoryBookCheck?"white":"#9e9e9e"}},[t._v("\n 삭제\n ")])])])],1)],1):t._e()],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e()],1)},Ya=[],Ja=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"select-header-page"}},[e(Ga["a"],{staticClass:"justify-space-around title grey lighten-4 border-ede thin-b pos-rel h-3rem pa-0",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[t.data.isNameSearch?t._e():e(kt["a"],{staticClass:"c-select-class-box nnfont",staticStyle:{"max-width":"56.5%"},attrs:{items:t.class_items,solo:"",flat:"",dense:"",rounded:"",outlined:"","hide-details":"",label:"Class","append-icon":"mdi-chevron-down","no-data-text":"클래스를 먼저 생성해주세요."},on:{change:t.getStudentInClass},scopedSlots:t._u(["lesson-schedule"==t.route_name?{key:"selection",fn:function({item:s}){return[e("span",{staticClass:"fs-1rem text-ellipsis",staticStyle:{"margin-left":"25px"}},[t._v("\n "+t._s(s.text)+"\n ")])]}}:null],null,!0),model:{value:t.selected_class,callback:function(e){t.selected_class=e},expression:"selected_class"}}),"lesson-schedule"!=t.route_name||null==t.selected_class||t.data.isNameSearch?t.data.isNameSearch?e(X["a"],{staticClass:"c-search-input small-icon",staticStyle:{"max-width":"56.5%"},attrs:{clearable:!!t.keyword,"append-icon":t.keyword?"":"mdi-magnify","clear-icon":t.keyword?"mdi-close-circle":"",id:"search",placeholder:"이름",color:"success",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",autocomplete:"off"},on:{keydown:t.searchAllName,"click:clear":t.searchClear},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}):t._e():e(ce["a"],{staticClass:"ma-0 pa-0 pos-abs translate-y",staticStyle:{left:"7%"},attrs:{dense:"","hide-details":"",color:"info",ripple:!1},on:{click:t.allSelectStudent},model:{value:t.check,callback:function(e){t.check=e},expression:"check"}}),e("div",{staticClass:"d-flex align-center"},[e("label",{staticClass:"search-label ma-0",attrs:{for:"name-search-toggle"}},[t._v("이름 검색")]),e(hs["a"],{staticClass:"ma-0",class:t.data.isNameSearch?"active":"",attrs:{id:"name-search-toggle",dense:"",inset:"",ripple:!1,"hide-details":""},model:{value:t.data.isNameSearch,callback:function(e){t.$set(t.data,"isNameSearch",e)},expression:"data.isNameSearch"}})],1)],1)],1)},Va=[],Qa={name:"SelectHeader",props:["data"],data(){return{user:this.$storage.get("user"),route_name:this.$route.name,class_obj:{},getStudentPromise:null,check:!1,selected_class:null,class_items:[],all_students:[],keyword:null,first_students:null,before_students:null,after_students:null}},watch:{"data.isNameSearch"(t){this.data.search_students=null,this.keyword=null},"data.search_select_student"(t){this.searchStudentClear(),t&&(console.log(t,"v vvvvvv"),this.selected_class=t.class_id,this.getStudentInClass(t.class_id))}},created(){let t=`${this.$host}/class/${this.$cid}/getclassroom?by=name`;+this.user.uclass{if(200==t.status&&t.data)for(let e=0,s=t.data.length;e{console.log(t)})},mounted(){this.getStudent()},methods:{searchClear(){this.data.search_students=null,this.keyword=null,this.data.class_students_settings="",this.data.select_student=""},searchStudentClear(){this.data.isNameSearch=!1,this.data.search_students=null,this.keyword=null},async getStudentInClass(t){if(console.log(t,"val"),this.keyword=null,this.first_students=null,this.before_students=null,this.after_students=null,this.data.select_class_id=t,"lesson-schedule"==this.route_name){await this.clearLessonStudents(!0);let t=Object.values(this.class_items);for(let e=0,s=t.length;ee==t);this.data.permission=-1!=e?9:1}this.getStudentPromise=new Promise((e,s)=>{if(this.class_obj[+t])return this.data.class_students=this.class_obj[+t],void e();this.$axios.get(`${this.$host}/class/${this.$cid}/getstudent/${+t}`).then(s=>{if(200==s.status&&s.data){this.data.class_students=[];for(let t=0,e=s.data.length;t{s(t)})}),this.getStudentPromise.then(()=>{this.data.select_class_status=!0,this.data.class_item_lesson_day=this.class_items.find(e=>e.value==t).lesson_day}).catch(t=>{console.log(t)})},allSelectStudent(){if("object"==typeof this.data.class_students)if(this.check)this.data.class_students_settings=[],this.data.selectStudents=[];else for(let t=0,e=this.data.class_students.length;tt.text.match(this.keyword));if(t.length>0){const e=new RegExp(this.keyword,"g");for(let s=0,a=t.length;se.id===t[s].id);-1!=a&&(this.data.class_students[a].color_text=t[s].text.replace(e,`${this.keyword}`))}this.data.list_key++,this.$nextTick(()=>{for(let e=0,s=this.data.class_students.length;et.text.match(this.keyword));const t=this.after_students.length;if(t>0){const e=new RegExp(this.keyword,"g");for(let t=0,s=this.after_students.length;t${this.keyword}`);1===t?(this.data.class_students_settings=0,this.$parent.clickStudent(this.after_students[0])):(this.data.class_students_settings="",this.data.select_student="")}this.data.class_students=this.after_students}else this.before_students&&(this.data.class_students=this.deepClone(this.before_students)),this.data.class_students_settings="",this.data.select_student=""},async clearLessonStudents(t=!1){return new Promise(e=>{for(let s=0,a=this.data.class_students.length;s{if(200==t.status){e=[];for(let s=0,a=t.data.length;s{e=[],console.log(t)}).finally(()=>{this.all_students=e})},searchAllName(t){if(13===t.keyCode||"Enter"===t.key)if(this.keyword&&""!==this.keyword.replace(/ /g,"")){const t=this.all_students.filter(t=>t.text.match(this.keyword));if(t.length>0){const e=new RegExp(this.keyword,"g");for(let s=0,a=t.length;s${this.keyword}`);this.data.search_students=t,this.data.list_key++}else this.openAlert("검색결과가 존재하지 않습니다.")}else this.searchClear()}}},Xa=Qa,Ka=(s("f529"),Object(u["a"])(Xa,Ja,Va,!1,null,null,null)),Za=Ka.exports,ti=s("32fa");const ei=20,si=30,ai={1:"t4",2:"t5",3:"t6",4:"t7",5:"t8"},ii=["lesson","test","v","m","a","vm","va","gt","gb","gd"];var oi={name:"lesson-schedule",components:{ctooltip:Lt["a"],preFont:et["a"],LoadingDialog:bt["a"],SelectHeader:Za,SelectBookTypeDialog:ti["a"]},data(){return{user:this.$storage.get("user"),search:"",settings:[],isNameSearch:!1,select_class_status:!1,class_item_lesson_day:"",class_students:[],search_students:null,search_select_student:null,select_class:"",select_class_id:"",selectStudents:[],class_students_settings:[],select_grade:{1:null,2:null,3:null,4:null,5:null},select_sort:{1:null,2:null,3:null,4:null,5:null},last_select_grade:null,last_select_sort:null,select_user_schedule:"",select_user_name:"",tab:null,tabs:Object.freeze([]),item_length:{1:0,2:0,3:0,4:0},items_per_page:{1:ei,2:200,3:ei,4:ei,5:ei},schedule_items_per_page:si,history_tab:[1],gradeLabel:"학년",grade_items:Object.freeze([{text:"전체",value:"all"},{text:"초1",value:"e1"},{text:"초2",value:"e2"},{text:"초3",value:"e3"},{text:"초4",value:"e4"},{text:"초5",value:"e5"},{text:"초6",value:"e6"},{text:"중1",value:"m1"},{text:"중2",value:"m2"},{text:"중3",value:"m3"},{text:"고1",value:"h1"},{text:"고2",value:"h2"},{text:"고3",value:"h3"}]),sort_items:Object.freeze([{text:"가나다순",value:"alphabet"},{text:"최근 제작순",value:"recent"},{text:"교재 유형순",value:"booktag"}]),book_header:Object.freeze([{text:"bookname",value:"bookname",align:"left",sortable:!1}]),book_items:[],selBookItems:[],selected:[],origin_selected:[],first_status:0,ftmp1:"",ftmp2:"",select_option:0,select_sentence_num:15,opt1:!0,opt2:!0,opt3:!1,total_cnt:0,unit_cnt:0,unit_cnt_arr:[],unit_view_num:0,cur_sel_id:"",checkAllView:!0,datatable_component:0,temp_key:0,popup_status:!1,cakey:0,add_s_status:!1,dup_dialog:!1,dup_after_warning:!1,dup_res:!1,warning_dialog:!1,setting_dialog:!1,new_set_option:!1,close_sd_status:!0,real_select_option:0,schedule_table:[],schedule_items:[],show_schedule_status:!1,tmp_item:null,tmp_idx:null,select_user_name2:"",image_dialog:!1,image_category:"",image_cover:"",now_category:"",sub_mode:"list",select_folder:null,all_units_switch:!0,select_form_item:null,filesample_opt:null,show_schedule_mode:!1,loading_value:!1,loading_message:"잠시만 기다려주세요.",now_min_cnt:0,sel_book_type:null,setting_key:0,isNonDetailSetting:!1,deleteStoryBookDialog:!1,delStoryBook:null,isOnlySpecialUnit:!1,user_storybook:[],all_check:!1}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){const t={0:{id:0,text:"리스닝",status:1},1:{id:1,text:"문장조합",status:1},2:{id:2,text:"딕테이션",status:1},3:{id:3,text:"문장찾기",status:1},4:{id:4,text:"영작하기",status:1},5:{id:5,text:"영작하기",status:1},6:{id:6,text:"스피킹",status:1},7:{id:7,text:"워드빙고",status:1},I:{id:"I",text:"어휘추론",status:1},O:{id:"O",text:"문단배열",status:1},R:{id:"R",text:"독해점검",status:1},G:{id:"G",text:"문법점검",status:1}},e={lesson:[1,2,3,4],test:[1,2,5,6],v:[0,7,2,"I"],m:[1,3,6,5],a:["O","R",2,"G"],vm:[0,7,2,3],va:[0,2,6,5]},s=["lesson","test","v","m","a","vm","va"];for(let a=0,i=s.length;a{if(1==t.status){this.add_s_status&&(this.resetCommonData(),this.add_s_status=!1),this.warning_dialog=!1,this.unit_view_num=0,this.filesample_opt=null;for(let t=0,e=this.unit_cnt_arr.length;t{document.getElementById("loading-wrapper").style.display="none"},100)},watch:{class_students(t){if(this.search_select_student&&"string"!==typeof t){const e=this.$refs["select_header"];e.getStudentPromise&&e.getStudentPromise.then(()=>{t.forEach((t,e)=>{t.id===this.search_select_student.id&&(this.selectStudents=[],this.class_students_settings.push(e),this.changeStudentCheckbox(this.search_select_student.id))})})}},class_students_settings(t){this.isNameSearch&&this.search_students||t.length>0&&!this.sel_book_type&&this.$refs.select_book_type.showPopup()},setting_dialog(t){t?this.show_schedule_mode||(this.select_sentence_num=15):this.show_schedule_mode=!1},select_option(t){let e=this.selected[0];e&&(0==t?e.units.every(t=>t.check)&&(this.checkAllCntView(),this.unit_cnt=e&&e.unit_cnt||0):1==t&&e.units.every(t=>t.check)&&(this.checkAllView=!1),this.changeSentenceNum())},dup_dialog(t){t||(this.dup_after_warning=!1)},opt3(t){if(this.resetSettings(),t){const t=this.selected[0],e=t.grade.charAt(0),s={};switch(e){case"e":(2===+t.category||4===+t.category&&1===+t.booktype)&&(s["test"]=[0,1]);break;case"m":1===+t.category?0===+t.booktype?(s["v"]=[2],s["lesson"]=[1,3],s["test"]=[0]):22===+t.booktype&&(s["vm"]=[2],s["va"]=[0,2]):2===+t.category?11===+t.booktype?(s["v"]=[2],s["m"]=[2]):(s["lesson"]=[1,3],s["test"]=[0,3]):4===+t.category&&(1===+t.booktype?(s["vm"]=[2],s["lesson"]=[3],s["test"]=[0,1]):22===+t.booktype&&(s["va"]=[0,1]));break;case"h":1===+t.category?0===+t.booktype?(s["v"]=[2],s["lesson"]=[0,1,3],s["test"]=[0,3]):22===+t.booktype&&(s["vm"]=[2],s["va"]=[0,2]):2===+t.category?11===+t.booktype?(s["v"]=[1,2],s["m"]=[2,3],s["a"]=[2]):s["vm"]=[1,2]:3===+t.category?11===+t.booktype?(s["v"]=[2],s["m"]=[2,3],s["a"]=[2]):(s["vm"]=[1,2],s["lesson"]=[1,3],s["test"]=[0,3]):4===+t.category&&(1===+t.booktype?s["vm"]=[1,2]:11===+t.booktype?(s["v"]=[2],s["m"]=[2,3],s["a"]=[2]):22===+t.booktype&&(s["vm"]=[2],s["va"]=[0,2]));break}for(let a in s)s[a].forEach(t=>{this[a+"_settings"][t].status=0})}},sub_mode(t){this.opt3=!1,this.selected[0]&&(this.selected[0].isSelected=!1),"folder"==t?(this.search="",this.getFolderBook(this.select_folder)):"list"==t&&this.getBookList(5,this.select_grade["3"],this.select_sort["3"]),this.selected=[],this.selBookItems=[]},selBookItems(t,e){1===e.length&&0===t.length&&this.resetSettings()},sel_book_type(t){const e=[{text:"가나다순",value:"alphabet"},{text:"최근 제작순",value:"recent"}];"course"===t?(this.tabs=Object.freeze(["핵심 영상강의","심화 스토리북","필수 주요구문","기본 영어단어","실전 듣기평가"]),this.sort_items=Object.freeze([...e])):(this.tabs=Object.freeze(["멤버십","교과서","수능/모의고사","영어듣기평가","만든교재"]),this.sort_items=Object.freeze([...e,{text:"교재 유형순",value:"booktag"}]))},tab(t){if("course"===this.sel_book_type&&2===t){this.gradeLabel="레벨";const t=[{text:"전체",value:"all"}];for(let e=1;e<=16;e++)t.push({text:`Lv. ${e}단계`,value:e});this.grade_items=Object.freeze([{text:"전체",value:"all"},{text:"초1",value:"e1"},{text:"초2",value:"e2"},{text:"초3",value:"e3"},{text:"초4",value:"e4"},{text:"초5",value:"e5"},{text:"초6",value:"e6"},{text:"중1",value:"m1"},{text:"중2",value:"m2"},{text:"중3",value:"m3"},{text:"고1",value:"h1"},{text:"고2",value:"h2"},{text:"고3",value:"h3"}])}else this.gradeLabel="학년",this.grade_items=Object.freeze([{text:"전체",value:"all"},{text:"초1",value:"e1"},{text:"초2",value:"e2"},{text:"초3",value:"e3"},{text:"초4",value:"e4"},{text:"초5",value:"e5"},{text:"초6",value:"e6"},{text:"중1",value:"m1"},{text:"중2",value:"m2"},{text:"중3",value:"m3"},{text:"고1",value:"h1"},{text:"고2",value:"h2"},{text:"고3",value:"h3"}]);"school"===this.sel_book_type&&this.book_items[t]&&setTimeout(()=>{const t=document.getElementById("default_table");if(!t)return;const e=t.getElementsByClassName("v-data-table__wrapper")[0];if(!e)return;const s=window.scroll_container.isEqualNode(e),a=window.scroll_container.isSameNode(e);s&&a||this.setScroll()},100)},show_schedule_status(t){t&&(this.tab=1)},search(t){""===t&&(this.select_folder&&"folder"==this.sub_mode?this.select_folder.in_item.forEach(t=>{t.search_bookname=null}):this.book_items[this.tab].forEach(t=>{t.search_bookname=null}))}},computed:{getSettingOption(){const t={status:!1,text:"",modules:{},col:12};let e={v:{...t,color:"#fe9017"},m:{...t,color:"#1bd05b"},a:{...t,color:"#5bc7ff"}};const s=this.selected[0],a=(t,s,a,i,o)=>{e[t].status=s,e[t].text=a,e[t].modules_name=i,e[t].modules=this[i+"_settings"],e[t].col=o};switch(console.log(s),+s.booktype){case 0:case 1:+s.words_cnt>0?(a("v",!0,"어휘 학습","vm",6),a("m",!0,(3===+s.category?"지":"본")+"문 학습","lesson",6),a("a",!0,"심화 학습","test",6)):(a("v",!1,null,null,null),a("m",!0,"학습 과정","lesson",12),a("a",!0,"시험 과정","test",12));break;case 11:a("v",!0,"어휘 학습","v",6),a("m",!0,(3===+s.category?"지":"본")+"문 학습","m",6),a("a",!0,"심화 학습","a",6);break;case 22:a("v",!1,null,null,null),a("m",!0,"학습 과정","vm",12),a("a",!0,"시험 과정","va",12);break;case 31:a("v",!0,"어휘 학습","vm",6),a("m",!0,([1,3].includes(+s.category)?"지":"본")+"문 학습","lesson",6),4===+s.category?a("a",!0,"듣기 학습",null,null):a("a",!0,"심화 학습","test",6);break;case 43:{console.log(this),console.log(s);let t=!1;if(s.grade.includes("e")){const e=s.units.filter(t=>t.check);t=e.every(t=>(+t.seq+1)%3===0)}else if(s.grade.includes("m")){const e=s.units.filter(t=>t.check);t=e.every(t=>t.name.includes("- Review"))}this.setGrammarModules({selBook:s,onlySpecialUnit:t}),a("v",!0,"이론 학습","gt",6),a("m",!0,"기본 학습","gb",6),a("a",!0,"심화 학습","gd",6);break}case 50:a("v",!1,null,null,null),a("m",!0,"기본 학습","sm",12),a("a",!0,"심화 학습","sa",12);break;default:break}return e},chkCategory(){let t=!1,e=this.selected[0];return 1==e.booktype_m?t=1:2==e.booktype_s?t=2:3==e.booktype_m&&1==e.booktype_s?t=4:1===+e.category&&0===+e.booktype||0==e.booktype_m&&["2","3"].includes(e.category)||1==e.booktype_s&&4==e.category&&e.words_cnt>0?t=3:43===+e.booktype&&(t=5),this.now_category=t,t},bookCheckText:function(){const t={xs:"none",sm:"none",md:"block",lg:"block",xl:"block"};return t[this.$vuetify.breakpoint.name]},tabsOrder(){return t=>"course"===this.sel_book_type?5===t?2:t:3===t?2:t},booknameTag(){return t=>{let e=!1;return t.id==this.selBookItems[0]&&this.new_set_option&&this.select_option>1||4==t.category&&t.tmp_academy_name||([11,43,50].includes(+t.booktype)||(3===+t.category||1===+t.category)&&31===+t.booktype?e="hot":1==t.booktype_s||[1,2,3].includes(+t.category)&&0===+t.booktype?e="new":22===+t.booktype&&(e="voca")),e}},delStoryBookCheck(){return this.delStoryBook.units.some(t=>t.check)},isImmutableSettings(){return t=>{let e=!1;const s=this.selected[0],{type:a,getSettingOption:i}=t;return 50!==+s.booktype||"a"!==a||i[a].modules?(43===+s.booktype&&["v","a"].includes(a)&&!i[a].modules||4===+s.category&&31===+s.booktype&&"a"===a)&&(e=!0):e=!0,e}}},methods:{getBookList(t,e=null,s=null){console.log("getBookList",e,s);let a=t;if("course"===this.sel_book_type?(t=1,2!==this.tab&&(this.book_items[1]=[],this.book_items[2]=[],this.book_items[3]=[],this.book_items[4]=[],this.book_items[5]=[])):1===t?(t=2,a=1):[2,3].includes(t)||(4===t?t+=1:t-=1),"course"===this.sel_book_type){const t=[];for(let e=1;e<=16;e++){let s="";e<=4?s="e3":e<=6?s="e4":e<=8?s="e5":e<=10?s="e6":e<=12?s="m1":e<=14?s="m2":e<=16&&(s="m3"),t.push({id:"admin-storybook-"+e,bookname:"내공백서 스토리북 Lv. "+e,color:this.$store.state.storybook_color[e],category:1,new_category:1,grade:s,publishdate:"",publisher:"내공스터디",total_cnt:0,unit_cnt:26,unit_per_cnt:0,origin_upc:0,cover:"",booktype:50,booktype_m:5,booktype_s:0,words_cnt:0,tmp_academy_name:null,folder_id:null,isSelected:!1,unit_names:Jt["c"][e]})}if(2===this.tab&&(e||s))return"recent"===s&&t.reverse(),this.book_items[2]="all"===e||null===e?[...t]:t.filter(t=>t.grade===e),this.last_select_grade=e,void(this.last_select_sort=s);this.book_items[2]=[...t]}this.last_select_grade=e,this.last_select_sort=s,this.loading_value=!0,this.opt3=!1,this.selected=[],this.selBookItems=[],this.selected[0]&&(this.selected[0].isSelected=!1);let i=`${this.$host}/book/getlist/${t}`;4==t&&(i+="/"+this.$cid),i+="?",4==t&&(i+="&type=schedule"),e&&"all"!=e&&(i+="&grade="+e),s&&(i+="&sort="+s);const o=[42,43,53,54,64,65,77,78,90,91];this.$axios.get(i).then(e=>{if(200==e.status){2===t&&(this.book_items[2]=[]),this.book_items[a]=[];let s=Object.values(e.data);for(let e=0,i=s.length;e{console.log(t),this.book_items[a]=[],this.loading_value=!1,this.setScroll()})},getFolderBook(t){this.loading_value=!0,this.select_folder=t,t.in_item=[],t.in_item.push({id:"back",bookname:t.bookname,grade:"folder"});let e=`${this.$host}/book/${t.folder_id}/getfolderbook/book?`;this.select_grade["3"]&&"all"!=this.select_grade["3"]&&(e+="&grade="+this.select_grade["3"]),this.select_sort["3"]&&(e+="&sort="+this.select_sort["3"]),this.$axios.get(e).then(e=>{if(200==e.status){let s=Object.values(e.data.rows);for(let e=0,a=s.length;e{console.log(e),t.in_item.push({id:"null"}),this.datatable_component++,this.loading_value=!1})},changeStudentCheckbox(t,e=null){if(this.isNameSearch&&this.search_students&&e)return void(this.search_select_student=e);let s=this.selectStudents.findIndex(e=>e==t);-1==s?(this.show_schedule_status&&(this.select_user_schedule="",this.select_user_name="",this.schedule_table=[],this.all_check=!1,this.show_schedule_status=!1),this.selectStudents.push(t)):-1!=s&&(this.selectStudents.splice(s,1),0==this.selectStudents&&this.resetCommonData())},changeGrade(t,e){this.selected[0]&&(this.selected[0].isSelected=!1);let s=document.getElementsByClassName(`tab${t}-span`),a=document.getElementsByClassName(`tab${t}-${e}`),i=document.getElementsByClassName(`tab${t}-folder`);const o=document.getElementById("null_book_"+t),n=(t,e)=>{const s=Object.values(t);for(let a=0,i=s.length;a{let a=!0;if(3==t.category&&1===+t.booktype&&(a=!1),!t.units&&a)this.$axios.get(`${this.$host}/book/${t.id}/unit`).then(a=>{if(200==a.status){let s=0,i=0;a.data.forEach((t,e)=>{t.no=e+1,t.check=!0,s+=+t.sentences_cnt,i+=+t.words_cnt}),t.units=a.data,t.total_cnt=2==t.booktype_m&&2==t.booktype_s?i:s,e()}else 204==a.status?e():s(a)}).catch(t=>{s(t)});else{if(a){let e=0,s=0;t.units.forEach(t=>{t.check=!0,e+=+t.sentences_cnt,s+=+t.words_cnt}),t.total_cnt=2==t.booktype_m&&2==t.booktype_s?s:e}e()}});e.then(()=>{if(t.isSelected)return this.selected=[],this.selBookItems=[],this.total_cnt=0,t.isSelected=!1,!1;this.selected[0]&&(this.selected[0].isSelected=!1),this.selected=[],this.selBookItems=[],this.origin_selected=[],this.selected.push(t),this.selBookItems.push(t.id),this.origin_selected=this.deepClone(this.selected),this.total_cnt=parseInt(t.total_cnt),this.unit_cnt=parseInt(t.unit_cnt),t.isSelected=!0,1===+t.category&&[43,50].includes(+t.booktype)&&(this.isNonDetailSetting=!0),this.select_option=0,this.new_set_option=!1,this.checkAllView=!1,0==this.selected[0].total_cnt&&0==this.selected[0].unit_cnt?(this.setting_dialog=!1,this.new_set_option=!0):this.setting_dialog=!0}).catch(t=>{console.error(t)})},continueEve(){this.first_status=1,this.closeDialog(),this.changeModule(this.ftmp1,this.ftmp2)},async changeModule(t,e){if(0==this.first_status)return this.ftmp1=t,this.ftmp2=e,this.openDialog("recommend_confirm"),!1;if(this.conditionByTutorial("t9")&&(await this.$store.dispatch("updateTutorial",["t9"]),this.$nextTick(()=>{this.$forceUpdate()})),e.status=+!e.status,!e.status){const s=t.modules.filter(t=>0==t.status).map(t=>t.status);if(["v","vm","va","new_v"].includes(t.modules_name)&&1===t.modules[0].status&&3===s.length)return e.status=+!e.status,this.openDialog("reject_solo_listening"),!1;if(this.now_min_cnt=4,["gt","gb","gd"].includes(t.modules_name)&&(this.now_min_cnt=t.modules.length),s.length===this.now_min_cnt)return e.status=+!e.status,this.openDialog("reject_cnt"),!1}this.setting_key++},changeSentenceNum(t){if(this.show_schedule_mode)return!1;if("left"==t){if(this.select_sentence_num-5<=0)return!1;this.select_sentence_num-=5}else if("right"==t){if(this.select_sentence_num+5>100)return!1;this.total_cnt>this.select_sentence_num&&(this.select_sentence_num+=5)}let e=this.selected[0];if(e.words_cnt>0&&2!=e.booktype_m)if(e.unit_per_cnt){let t=0;if(this.select_option){let s=e.unit_per_cnt.split(",");for(let e=0;et.check).length;else this.select_option?this.unit_cnt=isFinite(Math.ceil(e.total_cnt/this.select_sentence_num))?Math.ceil(e.total_cnt/this.select_sentence_num):0:this.unit_cnt=e.units.filter(t=>t.check).length},setPostData(){return new Promise(t=>{const e=this.selected[0],s={books_id:this.selBookItems,class_id:this.select_class_id>0?this.select_class_id:null,users_id:[...this.selectStudents],booktype:e.booktype,type:this.real_select_option,sentence_cnt:0==this.real_select_option?"null":this.select_sentence_num,naming:1==this.real_select_option?this.select_sentence_num:"",img_use:+this.opt1,auto_exam:+this.opt2,words_cnt:e.words_cnt?e.words_cnt:0,dup_res:this.dup_res?this.dup_res:null,bookname:e.bookname,category:e.category,grade:e.grade,user_storybook:[]};if(50===e.booktype){e.total_cnt=0,s.books_id=e.units.filter(t=>t.check);for(let t=0,e=s.users_id.length;t!t.check);t&&t.length>0&&(t=t.map(t=>+t.seq),s.except_units=t)}let a=[];switch(+e.booktype){case 0:case 1:a=+e.words_cnt>0?["vm","lesson","test"]:["lesson","test"];break;case 11:a=["v","m","a"];break;case 22:a=["vm","va"];break;case 31:a=[1,3].includes(+e.category)?["vm","lesson","test"]:["vm","lesson"];break;case 43:a=["gt","gb","gd"],e.grade.includes("e")&&this.isOnlySpecialUnit?a=["gb"]:e.grade.includes("m")&&this.isOnlySpecialUnit&&(a=[]);break;case 50:a=["sm"];break}for(let i=0,o=a.length;i{if(this.dup_res=e.data,200==e.status)if(50===t.booktype){const e=this.dup_res.student;Object.entries(e).forEach(([e,s])=>{const a=t.user_storybook.findIndex(t=>+t.user_id===+e),i=s.every(t=>t);i?-1!==a&&t.user_storybook.splice(a,1):(t.user_storybook[a].books=t.user_storybook[a].books.filter(t=>-1===s.findIndex(e=>+e===+t.book_id)),0===t.user_storybook[a].books.length&&t.user_storybook.splice(a,1))}),0===t.user_storybook.length?this.openDialog("already_story",!1,"end"):(this.user_storybook=Object.freeze([...t.user_storybook]),this.submitSchedule())}else 1==this.selected[0].booktype_m&&1==this.select_option?this.dup_after_warning=!0:this.dup_after_warning=!1,this.dup_dialog=!0;else 50===t.booktype&&(this.user_storybook=Object.freeze([...t.user_storybook])),this.submitSchedule()}).catch(t=>{console.log(t)})},async submitSchedule(){this.dup_dialog&&(this.dup_dialog=!1);const t=await this.setPostData();t.user_storybook=[...this.user_storybook];const e=50===t.booktype?"addscheduleforstory":"addschedule";await this.$axios.post(`${this.$host}/schedule/${this.$cid}/${e}`,t).then(async t=>{200==t.status&&(this.closeDialog(!0),this.conditionByTutorial("t10")&&(await this.$store.dispatch("updateTutorial",["t10"]),this.$nextTick(()=>{this.$parent.$parent.$parent.$parent.layout_ctooltip++,this.$forceUpdate()})),setTimeout(()=>{this.add_s_status=!0,this.openDialog("add_success",!1,"end")},250))}).catch(t=>{console.log(t)})},customCloseDialog(){let t=this.selected.findIndex(t=>t.id==this.cur_sel_id);-1!=t&&this.selected.splice(t,1),this.closeDialog()},clickClassRow(t){if(-1!=t.id.indexOf("folder"))this.select_folder=t,this.sub_mode="folder";else if("back"==t.id)this.search="",this.select_folder=!1,this.sub_mode="list";else{if("null"==t.id)return!1;{if(4==t.category&&t.tmp_academy_name)return this.openDialog("c4_allbook",!1,"end"),this.selected=[],this.tutorialUpdate("t8"),!1;this.conditionByTutorial(ai[t.new_category])&&this.tutorialUpdate(ai[t.new_category]),this.cur_sel_id=t.id;let e=this.selected.findIndex(e=>e.id==t.id);-1==e?(this.selected.length>0&&(this.selected[0]&&(this.selected[0].isSelected=!1),this.selected=[],this.unit_cnt_arr=[],this.selBookItems=[]),this.unit_cnt=t.unit_cnt,this.unit_cnt_arr.push(`${t.id}::${t.unit_cnt}//1`),this.selectBook(t)):(this.selected[0]&&(this.selected[0].isSelected=!1),this.total_cnt=0,this.selected=[],this.unit_cnt_arr=[],this.selBookItems=[],this.new_set_option=!1,this.close_sd_status=!1)}}},openSettingDialog(){this.dupScheduleChk(),this.unit_cnt_arr[0]&&(this.unit_cnt_arr[0]=this.unit_cnt_arr[0].replace("//0","//1")),this.checkAllCntView()},unitCntCheck(t){let e=this.unit_cnt_arr.length;"left"==t?this.unit_view_num>0&&(this.unit_view_num-=1):"right"==t&&this.unit_view_num0===Number(t.split("//")[1]));-1==e&&(t=!1),this.checkAllView=t},addScheduleSuccess(){this.resetCommonData(),setTimeout(()=>{this.add_s_status=!1,this.closeDialog(!0),this.cakey+=1},250)},async tutorialUpdate(t){this.conditionByTutorial(t)&&(await this.$store.dispatch("updateTutorial",[t]),this.$forceUpdate(),this.$parent.$parent.$parent.$parent.layout_ctooltip+=1)},selectTab(t){this.$store.dispatch("soundEffectPlay","click_button"),this.sub_mode="list";const e=this.history_tab.length,s={1:null,2:null,3:null,4:null,5:null};this.select_grade=Object.assign({},s),this.select_sort=Object.assign({},s),this.selected[0]&&(this.selected[0].isSelected=!1),this.history_tab[e-1]!=t&&this.history_tab.push(t),"course"==this.sel_book_type?(!this.book_items[1]||this.last_select_grade||this.last_select_sort)&&this.getBookList(1):(!this.book_items[t]||[1,2].includes(t)&&(this.last_select_grade||this.last_select_sort))&&this.getBookList(t),this.tab=t,setTimeout(()=>{this.temp_key++,this.datatable_component++},300),this.conditionByTutorial(ai[this.history_tab[e-1]])&&this.tutorialUpdate(ai[this.history_tab[e-1]]),this.$nextTick(()=>{this.selBookItems=[],this.selected=[],document.getElementById("null_book_"+t)&&(document.getElementById("null_book_"+t).style.display="none")})},warningFalse(){document.getElementById("from-right-slide-dialog").classList.remove("open"),setTimeout(()=>{this.warning_dialog=!1},500)},dupAfter(){this.dup_dialog=!1;let t=document.getElementById("setting_dialog").offsetWidth,e=document.getElementById("setting_dialog").offsetHeight,s=document.getElementById("org_action_btn").offsetHeight,a=document.getElementById("lesson_btn").getBoundingClientRect();this.warning_dialog=!0,setTimeout(()=>{let i=document.getElementById("wd_top").offsetHeight;document.getElementById("wd_bot").style.height=e-s-i-52+"px";let o=document.getElementById("from-right-slide-dialog");o.classList.add("open"),o.style.width=t+"px",o.style.height=e+"px",document.getElementById("dialog-new-text").style.height=e-s+1+"px",document.getElementById("dialog-new-actions").style.height=s+"px",document.getElementById("question_sub_text").style.top=a.height+20+"px"},200)},newSetOption(){console.log("newSetOption"),this.new_set_option=!0,this.real_select_option=this.select_option,this.setting_dialog=!1},newSetOneOption(){this.all_units_switch=!0,this.new_set_option=!0,this.warning_dialog=!1,this.real_select_option=this.select_option,this.setting_dialog=!1},closeSettingDialog(){this.selected[0].isSelected=!1,this.selected[0].unit_per_cnt=this.selected[0].origin_upc,this.all_units_switch=!0,this.selected=[],this.unit_cnt_arr=[],this.selBookItems=[],this.new_set_option=!1,this.select_option=0,this.close_sd_status=!1,this.isNonDetailSetting=!1,this.setting_dialog=!1},showUserScheduleConfirm(t,e){this.select_user_schedule==e.id?(this.select_user_schedule="",this.select_user_name="",this.show_schedule_status=!1):(this.select_user_name=e.text,this.tmp_item=e,this.openDialog("show_schedule"))},noShowUserSchedule(){this.select_user_name="",this.select_user_schedule="",this.show_schedule_status=!1,this.closeDialog()},showUserSchedule(){this.$axios.get(`${this.$host}/book/${this.tmp_item.id}/getschbook`).then(t=>{if(200==t.status){this.schedule_items=[],this.schedule_table=[],this.all_check=!1;for(let e of Object.values(t.data.rows))if(void 0!==e.length){const t=e[0].level;let s={sid:"storybook_"+t,bookname:"내공백서 스토리북 Lv. "+t,color:this.$store.state.storybook_color[t],category:1,booktype:50,type:0,units:e};this.schedule_items.push(s)}else{let t={sid:e.schedule_id,bookname:e.schedule_name,category:e.category,grade:e.grade,booktype:e.booktype,booktype_m:Math.floor(Number(e.booktype)/10),booktype_s:Number(e.booktype)%10,type:e.type,sentence_cnt:e.sentence_cnt,except_unit_seq:e.except_unit_seq,tot_unit_cnt:e.tot_unit_cnt,units:e.units};this.schedule_items.push(t)}}else 204==t.status&&(this.schedule_items=[]);this.resetCommonData(),this.all_check=!1,this.selectStudents=[],this.class_students_settings=[],this.select_user_schedule=this.tmp_item.id,this.show_schedule_status=!0,this.closeDialog(),setTimeout(()=>{this.setScroll()},0)}).catch(t=>{console.log(t)})},clickScheduleRow(t,e){const s=()=>{this.$nextTick(()=>{let e=this.schedule_table.findIndex(e=>e.sid===t.sid);-1!==e?this.schedule_table.splice(e,1):this.schedule_table.push(t)})};if(50===t.booktype)return this.schedule_table=[],this.delStoryBook=t,this.all_check=!1,void(this.deleteStoryBookDialog=!0);setTimeout(()=>{this.$nextTick(()=>{this.all_check=this.schedule_items.length===this.schedule_table.length})},10),"click_row"==e&&s()},delSchedule(){let t=null,e=null;if(this.all_check){e="all",t=[];for(let e=0;et.schedule_id)):t.push(this.schedule_items[e].sid)}else this.schedule_table&&this.schedule_table.length>0?(e="schedule",t=this.schedule_table.map(t=>t.sid)):0===this.schedule_table.length&&this.delStoryBook&&(e="storybook",t=this.delStoryBook.units.filter(t=>t.check).map(t=>t.schedule_id));null!==t&&0!==t.length?this.$axios.post(`${this.$host}/schedule/${this.$cid}/user/${this.select_user_schedule}/delscheduleuser`,{sid:t}).then(s=>{200==s.status&&("all"===e?(this.all_check=!1,this.schedule_items=[],this.schedule_table=[],this.closeDialog()):"schedule"===e?(t.forEach(t=>{const e=this.schedule_items.findIndex(e=>e.sid==t);-1!=e&&this.schedule_items.splice(e,1),this.schedule_table=[]}),this.closeDialog()):"storybook"===e&&(t.forEach(t=>{const e=this.delStoryBook.units.findIndex(e=>+e.schedule_id===+t);if(-1!=e&&this.delStoryBook.units.splice(e,1),0===this.delStoryBook.units.length){const t=this.delStoryBook.sid,e=this.schedule_items.findIndex(e=>e.sid==t);-1!=e&&this.schedule_items.splice(e,1)}}),this.deleteStoryBookDialogClose()),setTimeout(()=>{this.openAlert("schedule_del_success")},200))}).catch(t=>{console.log(t)}):this.closeDialog()},closeSchedule(){this.resetCommonData(),this.selectStudents=[],this.class_students_settings=[],this.all_units_switch=!0,this.schedule_table=[],this.select_user_schedule="",this.close_sd_status=!0,this.show_schedule_status=!1},resetCommonData(){console.log("resetCommonData"),this.opt1=!0,this.opt2=!0,this.opt3=!1,this.resetSettings(),this.selBookItems=[],this.selected[0]&&(this.selected[0].isSelected=!1),this.selected=[],this.new_set_option=!1,this.select_option=0,this.unit_cnt_arr=[],this.select_sentence_num=15,this.unit_view_num=0,this.total_cnt=0,this.unit_cnt=0},changeModeConfirm(t,e){event.stopPropagation(),this.select_user_name2=t.text,this.tmp_item=t,this.tmp_idx=e,this.openDialog("change_mode")},changeBookMode(){this.changeStudentCheckbox(this.tmp_item.id),this.$refs["class_students_"+this.tmp_idx][0].isActive=!0,this.class_students_settings.push(this.tmp_idx),this.closeDialog()},setForm(t){this.select_form_item=t,this.openDialog("selectSampleOpt")},setFormApi(){if(!this.select_form_item)return!1;window.open(`${this.$host}/makebookexcel.php?bid=${this.select_form_item.id}&type=${this.filesample_opt}`),setTimeout(()=>{this.select_form_item=null,this.filesample_opt=null,this.closeDialog("selectSampleOpt")},1e3)},exceptUnit(t,e){let s=this.selected[0];"click"==t&&(e.check=!e.check,this.$forceUpdate());let a=0;s.units&&(a=+s.units[0].seq);let i=+e.seq-a,o=0;o=2==s.booktype_m&&2==s.booktype_s?+e.words_cnt:+e.sentences_cnt;let n=s.unit_per_cnt?s.unit_per_cnt.split(","):null;if(e.check){if(s.unit_per_cnt){let t=s.origin_upc.split(",");n.splice(i,1,t[i]),s.unit_per_cnt=n.join(",")}s.total_cnt+=o,0===+this.select_option?this.unit_cnt+=1:this.changeSentenceNum()}else e.check||(s.unit_per_cnt&&(n.splice(i,1,0),s.unit_per_cnt=n.join(",")),s.total_cnt-=o,0===+this.select_option?this.unit_cnt-=1:this.changeSentenceNum());s.units.every(t=>!t.check)?this.checkAllView=!0:(this.checkAllView=!1,this.all_units_switch=!1),s.units.every(t=>t.check)&&(this.all_units_switch=!0)},changeAllUnitsSwitch(t,e=null){if(e)"deleteStory"===e&&this.delStoryBook.units.forEach(e=>{e.check=t});else{const e=this.selected[0];if(e.units&&e.units.length>0){let s=0;if(e.units.forEach(e=>{e.check=t,s++}),this.checkAllView=!t,t)e.total_cnt=this.origin_selected[0].total_cnt,e.unit_per_cnt=e.origin_upc,1==this.select_option?this.changeSentenceNum():this.unit_cnt=s;else{if(e.unit_per_cnt){let t=e.unit_per_cnt.split(",");t&&(e.unit_per_cnt=t.map(t=>0).join(","))}e.total_cnt=0,this.unit_cnt=0}}}},showScheduleOption(t){if(t){this.unit_cnt=+t.tot_unit_cnt,this.select_option=+t.type,this.select_sentence_num=t.sentence_cnt;let e=0,s=0;t.units.forEach(t=>{t.check&&(e+=+t.sentences_cnt,s+=+t.words_cnt)}),t.total_cnt=2==t.booktype_m&&2==t.booktype_s?s:e,this.selected=[t],this.setting_dialog=!0,this.show_schedule_mode=!0}},resetSettings(){ii.forEach(t=>{this[t+"_settings"]&&this[t+"_settings"].forEach(t=>{t.status=1})})},reSelectBookType(){this.book_items=[],this.sub_mode="list",this.select_folder=!1,this.sel_book_type=null,this.search="";const t={1:null,2:null,3:null,4:null,5:null};this.select_grade=Object.assign({},t),this.select_sort=Object.assign({},t),this.last_select_grade=null,this.last_select_sort=null,this.tab=1,this.resetCommonData(),this.$refs.select_book_type.showPopup()},selectBookType(t){this.sel_book_type=t,this.getBookList(1),this.tab=1},clickScheduleType(t){this.$store.dispatch("soundEffectPlay","click_button"),"course"===this.sel_book_type&&[1,2].includes(this.tab)&&1===t?this.openAlert("coursebook_option_only_unit"):this.select_option=this.show_schedule_mode?this.select_option:t},deleteStoryBookCheck(t,e,s){"click"===s&&(t=!e.check),e.check=t,this.all_units_switch=this.delStoryBook.units.every(t=>t.check)},deleteStoryBookDialogClose(){this.deleteStoryBookDialog=!1,this.delStoryBook.units.forEach(t=>{t.check=!0}),this.delStoryBook=null,this.all_units_switch=!0},setItemLength(){window.timeout1=window.setTimeout(()=>{const t=this.book_items;for(let e in t)t[e]&&(this.item_length[e]=t[e].length)},10)},setScroll(){setTimeout(()=>{let t="default_table";this.show_schedule_status&&(t="schedule_table"),window.scroll_container=void 0,console.log("setScroll",t,window.scroll_container),window.cnt=0,this.setscroll_timeout=window.setInterval(()=>{console.log("interval",window.cnt),document.getElementById(t)||window.clearInterval(this.setscroll_timeout),console.log(document.getElementById(t)),document.getElementById(t)&&(window.scroll_container=document.getElementById(t).getElementsByClassName("v-data-table__wrapper")[0]),void 0!==window.scroll_container&&(window.clearInterval(this.setscroll_timeout),this.show_schedule_status||this.setItemLength(),window.scroll_container.onscroll=this.onScroll),window.cnt+=1,window.cnt>=200&&(window.clearInterval(this.setscroll_timeout),window.cnt=void 0)},50)},200)},onScroll(){console.log("onScroll");let t=window.scroll_container;if(t.scrollTop+t.clientHeight>=t.scrollHeight-2){if(this.show_schedule_status){if(this.schedule_items.length{window.load_timeout=null},1200)}},setGrammarModules(t){const{selBook:e,onlySpecialUnit:s}=t;this.isOnlySpecialUnit=s,this.gt_settings=[{id:1,text:"단어점검",status:1},{id:2,text:"이론점검",status:1}],this.gb_settings=[{id:1,text:"기본학습 1",status:1},{id:2,text:"기본학습 2",status:1},{id:3,text:"기본학습 3",status:1},{id:4,text:"기본학습 4",status:1}],this.gd_settings=[{id:1,text:"심화학습 1",status:1},{id:2,text:"심화학습 2",status:1}],e.grade.includes("e")?s&&(this.gt_settings=null,this.gd_settings=null):e.grade.includes("m")&&(s?(this.gt_settings=null,this.gb_settings=null,this.gd_settings=null):this.gb_settings.splice(2,2))},filterBookList(t,e,s){const a=t.match(new RegExp(e,"gi")),i=s.unit_names&&s.unit_names.match(new RegExp(e,"gi"));return a&&(s.search_bookname=t.replace(new RegExp(e,"gi"),"$&")),a||i},allCheckScheduleList(){this.all_check?this.schedule_table=[]:this.schedule_table=[...this.schedule_items]}},beforeDestroy(){this.allBusDestroy(),window.timeout1&&clearTimeout(window.timeout1),this.setscroll_timeout&&window.clearInterval(this.setscroll_timeout)}},ni=oi,li=(s("92ad"),Object(u["a"])(ni,Wa,Ya,!1,null,null,null)),ri=li.exports,ci=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white h-100",staticStyle:{"overflow-y":"scroll"},attrs:{id:"bookmakingvue",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3 h-100",attrs:{color:"white"}},[e("preFont"),e("div",{staticClass:"pos-rel"},[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("교재 만들기")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v(" 온라인 학습 교재를 "+t._s(t.subtitle_text)+"합니다.")]),e("small",{staticClass:"red--text ml-1 cursor",on:{click:t.getTemporary}},[e("span",{staticStyle:{"text-decoration":"underline"}},[t._v("임시 저장")]),e(q["a"],{staticStyle:{"margin-top":"-1px"},attrs:{small:"",color:"red"}},[t._v("\n mdi-chevron-right\n ")])],1)]),e("input",{attrs:{type:"hidden"},domProps:{value:t.hidden_key}})]),t.bank_mode?[e("bank-making2")]:e("div",[e(J["a"],{key:t.vt,staticClass:"elevation-0",attrs:{"background-color":"white",color:"success",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e("div",{staticClass:"w-100"},t._l(t.tabs,(function(s,a){return e("a",{key:"tabs-item-"+a,staticClass:"v-tab custom_tab float-left h-100",class:0===a?"v-tab--active":"",attrs:{id:"custom_tab_"+a},on:{click:function(e){return t.clickTab(a)}}},[e("span",[t._v(t._s(s))])])})),0),e("div",{staticClass:"pos-abs right-0"},["tab-1"===t.tab?e(L["a"],{staticClass:"mr-1",attrs:{right:"",depressed:"",small:"",color:"info"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.downloadHwp()}}},[e("b",[t._v(" 한글 양식 다운로드 ")])]):t._e(),["tab-0","tab-1"].includes(t.tab)?e(L["a"],{staticClass:"right-0",attrs:{right:"",depressed:"",small:"",color:"tab-0"==t.tab?"danger":"success"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),"tab-0"==t.tab?t.openManual():t.openDialog("selectSampleOpt")}}},[e("b",[t._v("\n "+t._s("tab-0"==t.tab?"초간단 매뉴얼 영상":"엑셀 양식 다운로드")+"\n ")])]):t._e()],1),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s,a){return e(Y["a"],{key:"tabitem-"+a,attrs:{value:"tab-"+a,transition:!1,"reverse-transition":!1}},[e("pre-cautions",{attrs:{type:s,data:t.$data}}),"서식 생성"==s?e("div",{staticClass:"newstep-format-wrap py-3"},[e("div",{staticClass:"pa-6 d-flex pos-rel",staticStyle:{"background-color":"#f5f9fa","justify-content":"center",gap:"10vw"}},[t._l(0==t.format_select_bookkind?3:2,(function(s,a){return e("div",{key:"step-"+a,staticClass:"d-flex justify-center align-center cursor",staticStyle:{"flex-direction":"column","z-index":"2"},on:{click:function(e){return t.moveNewStep(a)}}},[e("div",{staticClass:"mb-1 d-flex justify-center align-center pos-rel",staticStyle:{"border-radius":"50%",width:"3rem",height:"3rem"},style:t.newStepColor(a)},[e(q["a"],{staticStyle:{"font-size":"1.5rem"},attrs:{color:t.newStepColor(a).iconColor}},[0===a?[t._v("\n mdi-information\n ")]:1===a?[t._v("\n mdi-notebook\n ")]:2===a?[t._v("\n mdi-message-reply\n ")]:t._e()],2),2===a?e(q["a"],{staticClass:"pos-abs",staticStyle:{"font-size":"1.5rem","margin-top":"-4px"},attrs:{color:t.newStepColor(a).iconColorA}},[t._v("\n mdi-alpha-a\n ")]):t._e()],1),e("span",{staticClass:"usn",style:{color:t.newStepColor(a).color}},[0===a?[t._v("교재 정보")]:1===a&&2!=t.format_select_booktype?[t._v("문장 입력")]:1===a&&2==t.format_select_booktype?[t._v("단어 입력")]:2===a?[t._v("단어 추출")]:t._e()],2)])})),e("div",{staticClass:"pos-abs",style:{width:0==t.format_select_bookkind?"calc(20vw + 9rem)":"calc(10vw + 5rem)",height:"2px",backgroundColor:"#dbe9f3",top:"calc(24px + 1.5rem)"}})],2)]):t._e(),"직접 생성"==s?e("div",{staticClass:"pb-0"},[e("info-table",{attrs:{tab:"direct",data:t.$data,editingCheck:t.editingCheck}}),e("div",{staticClass:"input_wrap direct_wrap"},[e("input-section",{attrs:{tab:"direct",tab_num:a,data:t.$data,addTextRow:t.addTextRow,editingCheck:t.editingCheck,delUnit:t.delUnit,rowType:"input"}}),e("count-info",{attrs:{tab:"direct",data:t.$data,makeBookPreview:t.makeBookPreview,makeBookConfirm:t.makeBookConfirm,temporarySave:t.temporarySave}})],1)],1):"서식 생성"==s?e("div",{staticClass:"py-0",attrs:{id:"format-main-wrap"}},[0===t.newstep.format?e("div",{staticClass:"d-block",attrs:{id:"format_title_section"}},[e("info-table",{attrs:{tab:"format",data:t.$data,editingCheck:t.editingCheck}}),e("count-info",{attrs:{tab:"format",data:t.$data,makeBookPreview:t.makeBookPreview,makeBookConfirm:t.makeBookConfirm,temporarySave:t.temporarySave,formatSubmitEvent:t.formatSubmitEvent,formatDismatch:t.formatDismatch}})],1):1===t.newstep.format?[e(U["a"],[e(j["a"],{staticClass:"pos-rel py-0"},[e(Tt["a"],{key:"file-input-"+t.file_input_key,staticClass:"d-none",attrs:{id:"fileinput","hide-details":"",outlined:"","prepend-icon":"",clearable:!1,"single-line":"",accept:".png, .jpg, .jpeg"},on:{change:t.chooseOcrImage}}),!t.format_textarea&&t.format_tabs[t.format_tab_idx].step<=1?e(L["a"],{staticClass:"pos-abs mr-3",staticStyle:{top:"8px",right:"8px",padding:"0 8px","z-index":"2"},attrs:{depressed:"",color:"info"},on:{click:t.clickInstead}},[e(q["a"],{attrs:{small:""}},[t._v("mdi-upload")]),e("span",{staticStyle:{"margin-top":"-1px"}},[t._v("문자인식 (OCR)")])],1):t._e(),e("div",{staticClass:"vue-dropzone",staticStyle:{"border-width":"1px",height:"calc(15 * 1rem)",background:"#f5fbff"}},[e(wt["a"],{staticClass:"custom-textarea pt-0 mt-0",attrs:{id:"format_textarea","hide-details":"","no-resize":"",rows:"7",disabled:t.format_textarea_readonly},on:{paste:function(e){return t.formatPasteEvent("format")},input:t.formatTextareaEvent},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticClass:"black--text fs-1rem"},[0===t.format_tabs[t.format_tab_idx].step?[t._v("\n 본문 내용을 편집하지 마시고,\n "),e("span",{staticClass:"info--text"},[t._v(" 복사(Ctrl+C)")]),t._v("하여\n "),e("span",{staticClass:"info--text"},[t._v("\n 붙여넣기(Ctrl+V)")]),t._v("\n 하세요.\n "),e("br"),e("span",{staticClass:"grey--text"},[t._v("(우선 영어 본문 전체를 붙여넣기\n 하세요.)")])]:1===t.format_tabs[t.format_tab_idx].step?[t._v("\n 이제 본문 해석을\n "),e("span",{staticClass:"info--text"},[t._v(" 복사(Ctrl+C)")]),t._v("하여\n "),e("span",{staticClass:"info--text"},[t._v("\n 붙여넣기(Ctrl+V)")]),t._v("\n 하세요.\n "),e("br"),e("span",{staticClass:"grey--text"},[t._v("(영어 본문 문장 갯수에 맞게\n 입력해주세요.)")])]:t.format_tabs[t.format_tab_idx].step>1?[t._v("\n 새로운 유닛을 추가하여\n "),e("span",{staticClass:"info--text"},[t._v(" 복사(Ctrl+C)")]),t._v("하여\n "),e("span",{staticClass:"info--text"},[t._v("\n 붙여넣기(Ctrl+V)")]),t._v("\n 하세요.\n "),e("br"),e("span",{staticClass:"grey--text"},[t._v("(하단의 유닛추가 버튼을 눌러주세요.)")])]:t._e()],2)]},proxy:!0}],null,!0),model:{value:t.format_textarea,callback:function(e){t.format_textarea=e},expression:"format_textarea"}})],1),e(L["a"],{staticClass:"d-none pos-abs",staticStyle:{bottom:"20px",right:"20px"},attrs:{depressed:"",id:"format_apply_btn",color:"info"},on:{click:t.formatApply}},[t._v("\n 적용\n ")]),e(L["a"],{staticClass:"d-none white--text pos-abs",staticStyle:{bottom:"20px",right:"20px"},attrs:{depressed:"",id:"format_back_btn",color:"#f36521"},on:{click:t.formatBack}},[t._v("\n 실행취소\n ")])],1)],1),e("div",{staticClass:"d-block input_wrap format_wrap",attrs:{id:"format_tab_section"}},[e("input-section",{attrs:{tab:"format",tab_num:a,data:t.$data,addTextRow:t.addTextRow,editingCheck:t.editingCheck,delUnit:t.delUnit,rowType:"input",formatDismatch:t.formatDismatch,wrap_key:t.wrap_key}}),e("count-info",{attrs:{tab:"format",data:t.$data,makeBookPreview:t.makeBookPreview,makeBookConfirm:t.makeBookConfirm,temporarySave:t.temporarySave,formatSubmitEvent:t.formatSubmitEvent,formatDismatch:t.formatDismatch}})],1)]:2===t.newstep.format?[e("div",{staticClass:"d-block input_wrap format_wrap",attrs:{id:"format_tab_section"}},[e("input-section",{attrs:{tab:"format",tab_num:a,data:t.$data,addTextRow:t.addTextRow,editingCheck:t.editingCheck,delUnit:t.delUnit,rowType:"word",formatDismatch:t.formatDismatch}}),e("count-info",{attrs:{tab:"format",data:t.$data,makeBookPreview:t.makeBookPreview,makeBookConfirm:t.makeBookConfirm,temporarySave:t.temporarySave,formatSubmitEvent:t.formatSubmitEvent,formatDismatch:t.formatDismatch}})],1)]:t._e()],2):"파일 생성"!=s||t.extra_format_mode?"파일 생성"==s&&t.extra_format_mode?e("div",{staticClass:"py-0"},[e("div",{staticClass:"d-none pb-3",attrs:{id:"extra_format_title"}},[e("info-table",{attrs:{tab:"extra_format",data:t.$data,editingCheck:t.editingCheck}})],1),e(U["a"],[e(j["a"],{staticClass:"pos-rel py-0"},[e("div",{staticClass:"vue-dropzone pos-rel",staticStyle:{"border-width":"1px",height:"calc(15 * 1rem)",background:"#f5fbff",padding:"16px 3rem"}},[e(wt["a"],{staticClass:"custom-textarea pt-0 mt-0",attrs:{id:"format_textarea","hide-details":"","no-resize":"",rows:"7",readonly:t.extra_format_textarea_readonly},on:{paste:function(e){return t.formatPasteEvent("extra")},input:t.formatTextareaEvent},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticClass:"black--text fs-1rem"},[0!==t.extra_format_apply_cnt[t.getTabIdx("extra_format")]&&t.extra_format_apply_cnt[t.getTabIdx("extra_format")]?[t._v("\n 현재 유닛에서\n "),e("span",{staticClass:"info--text"},[t._v("수정")]),t._v("이 필요한\n 경우, 재차\n "),e("span",{staticClass:"info--text"},[t._v("붙여넣기")]),t._v("\n 해주세요.\n "),e("br"),e("span",{staticClass:"grey--text"},[t._v("(영어, 해석 셀을 전체 드래그하여 붙여\n 넣으세요.)")])]:[t._v("\n 교재 내용을"),e("span",{staticClass:"info--text"},[t._v("\n 복사(Ctrl+C)")]),t._v("하여\n "),e("span",{staticClass:"info--text"},[t._v("\n 붙여넣기(Ctrl+V)")]),t._v("\n 하세요.\n "),e("br"),e("span",{staticClass:"grey--text"},[t._v("(영어, 해석 셀을 전체 드래그하여 붙여\n 넣으세요.)")])]],2)]},proxy:!0}],null,!0),model:{value:t.extra_format_textarea,callback:function(e){t.extra_format_textarea=e},expression:"extra_format_textarea"}}),t.extra_format_textarea_readonly?t._e():e(q["a"],{staticClass:"cursor pos-abs translate-y",staticStyle:{left:"0"},attrs:{size:"3rem",color:"#9e9e9e"},on:{click:t.extraBack}},[t._v("\n mdi-chevron-left\n ")])],1),t.extra_format_textarea?e(L["a"],{staticClass:"d-none pos-abs",staticStyle:{bottom:"8px",right:"20px"},attrs:{depressed:"",id:"extra_format_apply_btn",color:"info"},on:{click:t.extraFormatApply}},[t._v("\n 적용\n ")]):t._e()],1)],1),e("div",{staticClass:"d-none input_wrap extra_format_wrap",attrs:{id:"extra_format_tab_section"}},[e("input-section",{attrs:{tab:"extra_format",tab_num:a,data:t.$data,addTextRow:t.addTextRow,editingCheck:t.editingCheck,delUnit:t.delUnit,rowType:"input"}}),e("count-info",{attrs:{tab:"extra_format",data:t.$data,makeBookPreview:t.makeBookPreview,makeBookConfirm:t.makeBookConfirm,temporarySave:t.temporarySave}})],1)],1):t._e():e("div",{staticClass:"py-0 over-y-scroll",staticStyle:{"overflow-x":"hidden"}},[e("div",[e("vue-dropzone",{ref:"myVueDropzone",refInFor:!0,staticClass:"pa-4",staticStyle:{"border-width":"1px",height:"calc(15 * 1rem)",background:"#f5fbff"},attrs:{id:"dropzone",options:t.dropzoneOptions},on:{"vdropzone-complete":t.afterComplete,"vdropzone-success":t.uploadSuccess,"vdropzone-file-added":t.addFile,"vdropzone-drag-over":t.dropzoneOver,"vdropzone-drag-leave":t.dropzoneLeave}}),e("div",{staticClass:"pos-abs",staticStyle:{left:"50%",transform:"translate(-50%, -6.5rem)"},attrs:{id:"dropzone-btn-wrap"},on:{dragover:t.dropzoneOver}},[e(L["a"],{staticClass:"mr-2",attrs:{depressed:"",color:"info"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.extra_format_mode=!t.extra_format_mode}}},[e("b",[t._v("한글서식 붙여넣기")])]),e(L["a"],{attrs:{depressed:"",color:"success"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.onClickDropzone()}}},[e("b",[t._v("엑셀양식 업로드")])])],1)],1),"iron7788"!=t.admin.id&&"irondev"!=t.admin.id?e("div",{staticClass:"d-none",attrs:{id:"file_title"}},[e("info-table",{attrs:{tab:"file",data:t.$data,Division:t.Division,DivisionApply:t.DivisionApply,editingCheck:t.editingCheck}})],1):t._e(),e("div",{staticClass:"d-none input_wrap file_wrap",attrs:{id:"file_tab_section"}},[e("input-section",{attrs:{tab:"file",tab_num:a,data:t.$data,addTextRow:t.addTextRow,editingCheck:t.editingCheck,delUnit:t.delUnit,rowType:t.file_view}}),e("count-info",{attrs:{tab:"file",data:t.$data,makeBookPreview:t.makeBookPreview,makeBookConfirm:t.makeBookConfirm,temporarySave:t.temporarySave}})],1)])],1)})),1)],1)],1)],2)],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e("Dialogs",[t._l(["null_book_name","null_input","add_unit_warning","change_unit_warning","fileErrorExist"],(function(s,a){return e("div",{key:"oneBtn-"+a,attrs:{slot:s},slot:s},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},["null_book_name"==s?[e("b",[t._v("교재명을 입력해주세요.")])]:"null_input"==s?[e("b",[t._v("입력되지 않은 셀이 있습니다.")])]:"add_unit_warning"==s?[e("b",[t._v("영어, 해석 데이터를 입력하신 뒤,")]),e("br"),e("b",[t._v("유닛을 추가해주세요.")])]:"change_unit_warning"==s?[e("b",[t._v("영어, 해석 데이터가 일치되도록 수정 후")]),e("br"),e("b",[t._v("유닛 이동해주세요.")])]:"fileErrorExist"==s?[e("b",{staticStyle:{"word-break":"keep-all"}},[t._v(t._s(t.file_error_msg))])]:t._e()],2)]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1)})),e("div",{attrs:{slot:"del_unit_confirm"},slot:"del_unit_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("교재 내용이 모두 입력되어 있습니다.")]),e("br"),e("b",[t._v("그래도 정말 삭제하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 w-50",staticStyle:{"border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.newDelUnit.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"del_temp_confirm"},slot:"del_temp_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("임시저장 글을 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 글은 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-50 dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){t.closeDialog(),t.openDialog("tempDataDialog")}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 w-50",staticStyle:{"border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.temporaryDelete.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"make_book_confirm"},slot:"make_book_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("교재를 생성하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-50 dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.makeBook(t.sel_type)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("생성")])])]),e(L["a"],{staticClass:"ml-0 w-50",staticStyle:{"border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-50 dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 w-50",staticStyle:{"border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"move_tab"},slot:"move_tab"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성 중인 내용이 있습니다.")]),e("br"),e("b",[t._v("이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-50 dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{key:t.moveTabKey,staticClass:"ml-0 w-50",staticStyle:{"border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:function(e){return t.moveTab()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"extracting_give_up"},slot:"extracting_give_up"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("추출된 단어를 무시하고, 정말 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-50 dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 w-50",staticStyle:{"border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:t.fileStepChange}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"selectSampleOpt"},slot:"selectSampleOpt"},[e(M["c"],{staticClass:"justify-start text-center pb-0 pt-8 px-11"},[e("h3",{staticClass:"title"},[e("b",[t._v("다운로드")])])]),e(M["b"],{staticClass:"over-y-scroll px-10 mt-4",staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},model:{value:t.filesample_opt,callback:function(e){t.filesample_opt=e},expression:"filesample_opt"}},[e(nt["a"],{staticClass:"custom-radio",attrs:{label:"일반 양식",value:"normal",color:"success"}}),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"유닛별 양식",value:"unit",color:"success"}})],1)],1),e(M["a"],{staticClass:"justify-end px-12 pb-8 pt-2"},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_open_btn",staticClass:"cursor",class:t.filesample_opt?"success--text":"black--text",on:{click:function(e){t.filesample_opt?t.downloadSample():t.closeDialog()}}},[t._v("\n "+t._s(t.filesample_opt?"확인":"취소")+"\n ")])])])],1),t.tempData?e("div",{staticClass:"radio-dialog",attrs:{slot:"tempDataDialog"},slot:"tempDataDialog"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("임시 저장 ")]),e("b",{staticClass:"success--text ml-1"},[t._v(t._s(t.tempData.length))])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},model:{value:t.select_temp_id,callback:function(e){t.select_temp_id=e},expression:"select_temp_id"}},t._l(t.tempData,(function(t,s){return e(nt["a"],{key:"temp-item-radio-"+s,staticClass:"custom-radio",attrs:{color:"success",label:t.bookname,value:+t.id}})})),1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1}},[e("h3",{staticClass:"title-1"},[t.select_temp_id?e("b",{staticClass:"red--text mr-3 cursor",on:{click:function(e){t.closeDialog(),t.openDialog("del_temp_confirm")}}},[t._v("\n 삭제\n ")]):t._e(),e("b",{staticClass:"cursor",class:t.select_temp_id?"success--text":"취소",on:{click:function(e){t.select_temp_id?t.temporaryLoad():t.closeDialog("tempDataDialog")}}},[t._v("\n "+t._s(t.select_temp_id?"불러오기":"취소")+"\n ")])])])],1)],1):t._e(),t._l(["format_fail"],(function(s,a){return e("div",{key:`slot-${s}-${a}`,attrs:{slot:s},slot:s},[e(M["b"],{staticClass:"black text-center py-8",staticStyle:{opacity:"0.75"}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"white--text"},["format_fail"==s?[t._v("\n 분할에 실패하였습니다.\n ")]:t._e()],2)])])],1)}))],2),e(ot["a"],{attrs:{origin:"center center",persistent:!1,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":"60rem"},on:{"click:outside":function(e){t.format_popup=!1}},model:{value:t.format_popup,callback:function(e){t.format_popup=e},expression:"format_popup"}},[e("div",{staticClass:"pos-rel h-100"},[e("img",{staticStyle:{"border-radius":"4px"},attrs:{src:s("2a23"),width:"100%",height:"100%"}}),e("button",{staticClass:"pos-abs",staticStyle:{top:"1.3rem",right:"1.1rem",width:"2.5rem",height:"2.3rem","z-index":"1","background-color":"transparent"},on:{click:function(e){t.format_popup=!1}}})])]),e(ot["a"],{attrs:{origin:"center center",persistent:!1,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":"920px","content-class":"cropper-modal"},on:{"click:outside":function(e){t.cropper_modal=!1,t.file_input_key++}},model:{value:t.cropper_modal,callback:function(e){t.cropper_modal=e},expression:"cropper_modal"}},[e("div",{staticClass:"pos-rel bg-white pa-3 d-flex"},[e("div",{staticClass:"cropper-option-btns-wrap"},t._l(t.cropper_btns,(function(s,a){return e(L["a"],{key:"crop-opt-btn-"+a,staticClass:"cropper-option-btns",staticStyle:{height:"42px !important",background:"#0006"},attrs:{depressed:""},on:{click:function(e){return t.changeCropperOption(s.value)}}},[e(q["a"],{attrs:{color:"white"}},[t._v(t._s(s.icon))])],1)})),1),e("cropper",{ref:"cropper",staticClass:"cropper",attrs:{src:t.cropper_img}})],1),e("div",[e(L["a"],{staticStyle:{"border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{block:"",depressed:"","x-large":"",color:"success"},on:{click:t.cropperResult}},[t._v("\n 적용\n ")])],1)]),e("book-preview")],1)},di=[],hi=s("a2c1"),ui=(s("f7aa"),s("7630"),function(){var t=this,e=t._self._c;return e("div",{staticStyle:{width:"calc(100% + 24px)","margin-left":"-12px"},attrs:{id:"frame_wrap"}},[e("iframe",{staticStyle:{width:"100%",height:"100%",border:"0"},attrs:{id:"bank_frame",name:"bank_frame",src:"https://intro.tabstudy.co.kr/super/questionbankcreatetemp.html"}}),e("form",{attrs:{name:"bank_form"}},[e("input",{attrs:{type:"hidden",id:"cid",name:"cid"},domProps:{value:t.$cid}})])])}),_i=[],pi={data(){return{}},created(){},mounted(){window.addEventListener("message",this.mListener)},methods:{mListener(t){let e=document.getElementById("bank_frame");"onload"==t.data.key&&e.contentWindow.postMessage({key:"cid",value:this.$cid},"*")}},beforeDestroy(){console.log("destroy"),window.removeEventListener("message",this.mListener)}},mi=pi,gi=(s("bc61"),Object(u["a"])(mi,ui,_i,!1,null,"0a74cb6f",null)),bi=gi.exports,fi=function(){var t=this,e=t._self._c;return t.data?e(ot["a"],{attrs:{persistent:!0,"content-class":"preview-modal",width:"106.66vh"},model:{value:t.preview_modal,callback:function(e){t.preview_modal=e},expression:"preview_modal"}},[e("div",{staticClass:"pos-rel",staticStyle:{height:"calc(2rem + 4px)","z-index":"2"}},[e(L["a"],{staticClass:"pos-abs fab-btn",attrs:{fab:"",depressed:""},on:{click:function(e){t.preview_modal=!1}}},[e(q["a"],[t._v(" mdi-close ")])],1)],1),e("div",{staticClass:"h-80vh white root-wrap"},[e("div",{staticClass:"header h-10 d-flex pos-rel align-center"},[e("img",{attrs:{src:s("3951")}}),e("div",{staticClass:"divider"}),t._v("\n   \n\n "),e("span",{attrs:{id:"title"}},[t._v("\n 내신과 영어 실력을 동시에, 내신 공략 내공스터디!\n ")])]),e("div",{staticClass:"main d-flex"},[e("div",{staticClass:"left-side white"},[e("div",[e("div",[e(hs["a"],{attrs:{"hide-details":"",disabled:!0,label:"최근 학습 내역"}})],1),e("div",[e(hs["a"],{attrs:{"hide-details":"",disabled:!0,label:"학습중인 교재"}})],1),e("div",[e(hs["a"],{attrs:{"hide-details":"",disabled:!0,label:"북마크 교재"}})],1)]),e("div",{staticClass:"divider"}),e("div",[e("div",[e("div",[t._v("나의 학습 스케쥴")]),e("div",[e(q["a"],{attrs:{size:"1.5rem"}},[t._v("mdi-chevron-right")])],1)]),e("div",[e("div",[t._v("학습 진행률")]),e("div",[t._v("0 / "+t._s(t.data.units?t.data.units.length:0)+"단원")])]),e("div",[e("div",[t._v("재학습")]),e("div",[t._v("\n "+t._s(1===+t.user_info.is_restudy?"최대 3회":"무제한")+"\n ")])]),e("div")]),e("div",{staticClass:"divider"}),e("div",[e("div",[e("div",[t._v("선택된 교재 정보")]),e("div",[e(q["a"],{attrs:{size:"1.5rem",color:"#1bd05b"}},[t._v("mdi-chevron-right")])],1)]),e("div",[e("div",[t._v("제작자")]),e("div",{staticClass:"text-ellipsis",staticStyle:{"max-width":"70%","padding-right":"5%"}},[t._v("\n "+t._s(t.data.publisher)+"\n ")])]),e("div",[e("div",[t._v("제작년도")]),e("div",{staticClass:"text-ellipsis",staticStyle:{"max-width":"70%","padding-right":"5%"}},[t._v("\n "+t._s(t.data.publishdate)+"\n ")])]),e("div",[e("div",[t._v("학습일자")]),e("div",{staticClass:"text-ellipsis",staticStyle:{"max-width":"70%","padding-right":"5%"}},[t._v("\n "+t._s(t.data.units?t.data.units.length:0)+"일\n ")])])])]),e("div",{staticClass:"right-side white"},[e("div",{staticClass:"tab-wrapper d-flex"},[e("div",[t._v("내공스터디")]),e("div",[t._v("교과서")]),e("div",[t._v("듣기/모의고사")]),e("div",{staticClass:"active fw-700"},[t._v("만든교재")])]),e("div",{staticClass:"grade-wrapper"},[e("div",[e("span",[t._v("학년")])]),e("div",t._l(t.grades,(function(s,a){return e("div",{key:"grade-div-"+a,class:s.value!==t.data.grade&&("all"!==s.value||"etc"!==t.data.grade&&t.data.grade)?"":"active"},[t._v("\n "+t._s(s.text)+"\n ")])})),0)]),e("div",{staticClass:"book-list-wrapper"},[e("div",{staticClass:"row book"},[e("div",[e(q["a"],{attrs:{color:"#2196f3"}},[t._v("mdi-menu-down")])],1),e("div",[e(q["a"],{attrs:{color:"#2196f3"}},[t._v(" mdi-heart-outline ")])],1),e("div",{staticClass:"d-flex"},[e("div",[e("div",{staticClass:"book-title"},[t._v("\n "+t._s(t.data.bookname||"교재명을 입력하세요.")+"\n ")]),+t.data.booktype?e("div",{staticClass:"book-subtitle",class:"type-"+ +t.data.booktype},[1===+t.data.booktype?[t._v(" NEW ")]:2===+t.data.booktype?[t._v(" VOCA ")]:t._e()],2):t._e()]),e("div",[e("div",{staticClass:"custom-progress"},[t._v("  0%  ")])])])]),t._l(t.data.units,(function(s,a){return e("div",{key:"unit-row-"+a,staticClass:"row unit",class:"type-"+ +t.data.booktype},[e("div"),e("div",[e(q["a"],[t._v("mdi-menu-right")])],1),e("div",{staticClass:"d-flex align-center"},[e("div",{staticClass:"d-flex align-center"},[e("span",[t._v("\n "+t._s(""!=s.model?s.model:s.text)+"  \n ")]),""==s.model?e("span",{staticClass:"ml-1",staticStyle:{"font-size":"0.8rem",color:"#d3d3d3"}},[t._v("\n 유닛명을 입력하세요.  \n ")]):t._e(),2!==+t.data.booktype?e("div",{staticClass:"d-flex shadow pos-rel"},[e(q["a"],{attrs:{color:"black",size:"1.5rem"}},[t._v("mdi-play-circle-outline")]),t._v("\n 쉐도우\n ")],1):t._e()]),e("div",{staticClass:"btn-group d-flex align-center"},[[0,2].includes(+t.data.booktype)?[e("div",[e("div",[t._v("학습하기")])]),e("div",[e("div",[t._v("시험보기")])])]:1===+t.data.booktype?[e("div",[e("div",[t._v("어휘학습")])]),e("div",[e("div",[t._v("본문학습")])]),e("div",[e("div",[t._v("심화학습")])])]:t._e()],2)])])}))],2)])]),e("div",{staticClass:"footer h-10 d-flex justify-center align-center"},[e("span",{staticClass:"grey--text fw-700"},[t._v("\n "+t._s(t.user_info&&t.user_info.cname?t.user_info.cname:"내공스터디")+"\n ")])])])]):t._e()},yi=[],vi={name:"book-preview",data(){return{user_info:null,preview_modal:!1,data:null,grades:[{text:"전체",value:"all"},{text:"초1",value:"e1"},{text:"초2",value:"e2"},{text:"초3",value:"e3"},{text:"초4",value:"e4"},{text:"초5",value:"e5"},{text:"초6",value:"e6"},{text:"중1",value:"m1"},{text:"중2",value:"m2"},{text:"중3",value:"m3"},{text:"고1",value:"h1"},{text:"고2",value:"h2"},{text:"고3",value:"h3"}]}},props:{},watch:{},created(){},mounted(){this.user_info=this.$storage.get("user"),Tr.$on("preview_modal",(t,e)=>{this.preview_modal=t,this.data=e,console.log(e)})},beforeDestroy(){this.allBusDestroy()}},xi=vi,ki=(s("1cc6"),s("d508"),Object(u["a"])(xi,fi,yi,!1,null,"56a8658d",null)),wi=ki.exports,Ci=function(){var t=this,e=t._self._c;return e(G["a"],{staticClass:"info_tbl",scopedSlots:t._u([{key:"default",fn:function(){return[e("tr",[e("td"),e("td",{staticClass:"text-center"},[t._v("교재명")]),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data[t.tab+"_bookname"],expression:"data[`${tab}_bookname`]"}],staticClass:"w-100",attrs:{type:"text",placeholder:"교재명을 입력하세요."},domProps:{value:t.data[t.tab+"_bookname"]},on:{input:function(e){e.target.composing||t.$set(t.data,t.tab+"_bookname",e.target.value)}}})])]),e("tr",[e("td"),e("td",{staticClass:"text-center"},[t._v("학년")]),e("td",[e("custom-menu-select",{attrs:{tab:t.tab,"item-name":"select_grade",item:t.data[t.tab+"_select_grade"],items:t.book_grade,clearIcon:!0,placeholder:"학년을 선택하세요"},on:{setSelectItem:t.setSelectItem}})],1)]),"file"==t.tab?e("tr",[e("td"),e("td",{staticClass:"text-center"},[t._v("문항 분할")]),e("td",{staticClass:"pos-rel"},[e(X["a"],{staticClass:"float-left text-right no-padding-input",staticStyle:{width:"23%"},attrs:{dense:"",solo:"",outlined:"","single-line":"","hide-details":"",flat:"",filled:"",readonly:"",color:"warning","prepend-inner-icon":"mdi-chevron-left","append-icon":"mdi-chevron-right",disabled:"unit"==t.data.uploadFileType},on:{"click:append":function(e){return t.Division("file","next")},"click:prepend-inner":function(e){return t.Division("file","prev")}},model:{value:t.data[t.tab+"_division_num"],callback:function(e){t.$set(t.data,t.tab+"_division_num",e)},expression:"data[`${tab}_division_num`]"}}),e(L["a"],{staticClass:"float-left ml-3",attrs:{depressed:"",color:"info",disabled:"unit"==t.data.uploadFileType},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.DivisionApply("file")}}},[t._v("\n 분할\n ")]),"unit"==t.data.uploadFileType?e("div",{staticClass:"d-inline-block pos-abs translate-y ml-4"},[e(q["a"],{staticClass:"mt-2px",attrs:{small:"",color:"primary"}},[t._v("\n mdi-information-outline\n ")]),e("span",{staticClass:"primary--text"},[t._v("\n 유닛별 양식에서는 이미 분할되어 있습니다.\n ")])],1):t._e(),e("div",{staticStyle:{clear:"both"}})],1)]):t._e(),e("tr",[e("td"),e("td",{staticClass:"text-center"},[t._v("제작자")]),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data[t.tab+"_publisher"],expression:"data[`${tab}_publisher`]"}],staticClass:"w-100",attrs:{type:"text",placeholder:"제작자를 입력하세요."},domProps:{value:t.data[t.tab+"_publisher"]},on:{input:function(e){e.target.composing||t.$set(t.data,t.tab+"_publisher",e.target.value)}}})])]),e("tr",[e("td"),e("td",{staticClass:"text-center"},[t._v("제작년도")]),e("td",[e("custom-menu-select",{attrs:{tab:t.tab,"item-name":"publishdate",item:t.data[t.tab+"_publishdate"],items:t.year_items,clearIcon:!0,placeholder:"연도를 선택하세요"},on:{setSelectItem:t.setSelectItem}})],1)]),"oper"!=t.tab&&"direct"==t.tab?e("tr",[e("td"),e("td",{staticClass:"text-center"},[t._v("교재유형")]),e("td",[e("div",{staticClass:"w-100"},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":"",row:"",dense:""},model:{value:t.data[t.tab+"_select_booktype"],callback:function(e){t.$set(t.data,t.tab+"_select_booktype",e)},expression:"data[`${tab}_select_booktype`]"}},[e(nt["a"],{staticClass:"mr-0 fs-1rem",attrs:{label:"일반 교재",value:"0",color:"success"}}),"format"!=t.tab?e(nt["a"],{staticClass:"ml-4 mr-0 fs-1rem",attrs:{label:"단어 교재",value:"2",color:"success"}}):t._e()],1)],1)])]):t._e(),"oper"!=t.tab&&"direct"!=t.tab?e("tr",[e("td"),e("td",{staticClass:"text-center"},[t._v("교재구분")]),e("td",[e("div",{staticClass:"w-100"},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":"",row:"",dense:""},on:{change:t.updateBookType},model:{value:t.data[t.tab+"_select_bookkind"],callback:function(e){t.$set(t.data,t.tab+"_select_bookkind",e)},expression:"data[`${tab}_select_bookkind`]"}},[e(nt["a"],{staticClass:"mr-0 fs-1rem",attrs:{label:"문장 + 단어 교재",value:"0",color:"success"}}),e(nt["a"],{staticClass:"ml-4 mr-0 fs-1rem",attrs:{label:"문장 교재",value:"1",color:"success"}}),"direct"!=t.tab?e(nt["a"],{staticClass:"ml-4 mr-0 fs-1rem",attrs:{label:"단어 교재",value:"2",color:"success"}}):t._e()],1)],1)])]):t._e(),"file"==t.tab&&"unit"==t.data.uploadFileType&&2==t.data.file_select_booktype||"format"==t.tab&&2==t.data.format_select_booktype||"extra_format"==t.tab&&2==t.data.extra_format_select_booktype||"oper"==t.tab&&t.data.popquiz_type?e("tr",[e("td"),e("td",{staticClass:"text-center"},[e("b",[t._v("객관식 보기 출제")])]),e("td",[e("div",{staticClass:"w-100"},["direct"!=t.tab?e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":"",row:"",dense:""},model:{value:t.data[t.tab+"_popquiz_type"],callback:function(e){t.$set(t.data,t.tab+"_popquiz_type",e)},expression:"data[`${tab}_popquiz_type`]"}},t._l(["all","unit"],(function(t,s){return e(nt["a"],{key:"unit-type-radio-"+s,staticClass:"fs-1rem",class:"all"==t?"mr-4":"mr-0",attrs:{label:"all"==t?"교재 전체":"유닛 내에서만 출제",value:t,color:"success"}})})),1):"oper"==t.tab?e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":"",row:"",dense:""},model:{value:t.data.oper_popquiz_type,callback:function(e){t.$set(t.data,"oper_popquiz_type",e)},expression:"data.oper_popquiz_type"}},t._l(["all","unit"],(function(t,s){return e(nt["a"],{key:"unit-type-radio-"+s,staticClass:"fs-1rem",class:"all"==t?"mr-4":"mr-0",attrs:{label:"all"==t?"교재 전체":"유닛 내에서만 출제",value:t,color:"success"}})})),1):t._e()],1)])]):t._e()]},proxy:!0}])})},Si=[],$i=s("e449"),Ai=function(){var t=this,e=t._self._c;return e($i["a"],{attrs:{"content-class":"custom-menu-listbox","offset-y":"","max-height":"304px"},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(L["a"],t._g(t._b({staticClass:"custom-select-btn text-left pa-0",staticStyle:{"text-indent":"0"},style:{color:t.item?"black":"#d3d3d3"},attrs:{dark:"",block:"",text:"",ripple:!1},scopedSlots:t._u([{key:"default",fn:function(){return[e("span",{staticClass:"fs-1rem",domProps:{innerHTML:t._s(t.setText)}}),e(q["a"],[t._v(" mdi-menu-down ")]),t.item&&t.clearIcon?e(q["a"],{staticClass:"pos-abs",staticStyle:{right:"0"},attrs:{color:"success"},on:{click:function(e){return t.clearSelectedValue(e)}}},[t._v("\n mdi-close-circle\n ")]):t._e()]},proxy:!0}],null,!0)},"v-btn",a,!1),s))]}}])},[e(Ss["a"],t._l(t.items,(function(s,a){return e($s["a"],{key:a,on:{click:function(e){return t.listItemClick(s)}}},[e(As["b"],[t._v("\n "+t._s(s.text||s)+"\n ")])],1)})),1)],1)},Di=[],Pi={name:"CustomMenuSelect",props:["tab","item-name","item","items","clearIcon","placeholder"],data(){return{}},mounted(){},computed:{setText(){let t="";return this.item?t="select_grade"==this.itemName?this.item.text:this.item:this.placeholder&&(t=this.placeholder),t}},methods:{clearSelectedValue(t){t.stopPropagation(),this.$emit("setSelectItem",this.itemName,"")},listItemClick(t){this.$emit("setSelectItem",this.itemName,t)}}},Bi=Pi,Ti=Object(u["a"])(Bi,Ai,Di,!1,null,null,null),Ei=Ti.exports,Ii={name:"BookMakingInfoTable",props:["tab","data","DivisionApply","Division","editingCheck"],components:{customMenuSelect:Ei},data(){return{book_grade:[{text:"초등학교 1학년",value:"e1"},{text:"초등학교 2학년",value:"e2"},{text:"초등학교 3학년",value:"e3"},{text:"초등학교 4학년",value:"e4"},{text:"초등학교 5학년",value:"e5"},{text:"초등학교 6학년",value:"e6"},{text:"중학교 1학년",value:"m1"},{text:"중학교 2학년",value:"m2"},{text:"중학교 3학년",value:"m3"},{text:"고등학교 1학년",value:"h1"},{text:"고등학교 2학년",value:"h2"},{text:"고등학교 3학년",value:"h3"},{text:"기타",value:"etc"}],year_items:[]}},computed:{},created(){let t=(new Date).toLocaleDateString().split(".")[0];for(let e=Number(t);e>=1980;e--)this.year_items.push(e+"년")},mounted(){},methods:{setSelectItem(t,e){this.data[`${this.tab}_${t}`]=e,this.editingCheck(this.tab)},updateBookType(){const t=this.data[this.tab+"_select_bookkind"];"0"==t||"1"==t?this.data[this.tab+"_select_booktype"]="0":"2"==t&&(this.data[this.tab+"_select_booktype"]="2")}}},zi=Ii,Oi=Object(u["a"])(zi,Ci,Si,!1,null,null,null),Ni=Oi.exports,Li=function(){var t=this,e=t._self._c;return e(U["a"],{key:t.data.wrap_key,staticClass:"bookrow"},[e(j["a"],{staticClass:"pb-0",class:{"pt-0":"format"==t.tab&&2===t.data.newstep.format},attrs:{cols:"12"}},[e(J["a"],{staticClass:"elevation-0 pos-rel input-tabs",attrs:{dark:"","show-arrows":"",color:"success","background-color":"white"},model:{value:t.data[t.tab+"_tab"],callback:function(e){t.$set(t.data,t.tab+"_tab",e)},expression:"data[`${tab}_tab`]"}},[e(Q["a"],{staticClass:"d-none"}),"oper"==t.tab&&t.data.sen_count>0&&t.data.word_count>0||"file"==t.tab&&0===+t.data.file_select_bookkind?e($i["a"],{attrs:{"offset-y":""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(L["a"],t._g(t._b({staticClass:"pos-rel bg-success",staticStyle:{width:"69.125px",height:"39px !important",top:"1px"},attrs:{color:"success",dark:"",disabled:"file"==t.tab}},"v-btn",a,!1),s),[e("span",{style:"oper"==t.tab?"margin-left: -6px;":""},[t._v("\n "+t._s("input"==t.data[t.tab+"_view"]?"문장":"단어")+"\n ")]),"oper"==t.tab?e(q["a"],{staticClass:"pos-abs",staticStyle:{right:"-14px"}},[t._v("\n mdi-menu-down\n ")]):t._e()],1)]}}],null,!1,1040412111)},[e(Ss["a"],t._l(t.selOperTypes,(function(s,a){return e($s["a"],{key:a},[e(As["b"],{staticClass:"cursor",on:{click:function(e){return t.changeOperView(s.value)}}},[t._v("\n "+t._s(s.text)+"\n ")])],1)})),1)],1):t._e(),"format"==t.tab&&"word"==t.rowType?[t._l(t.data[t.tab+"_tabs"],(function(s,a){return["add"!=s.text?e(W["a"],{key:`${t.tab}-tab-${a}`,staticClass:"booktab",attrs:{href:`#${t.tab}-tab-${a}`},on:{click:function(e){return e.preventDefault(),t.changeTab(t.tab,s.text)}},model:{value:s[a],callback:function(e){t.$set(s,a,e)},expression:"item[x]"}},["add"!=s.text?e("span",{staticClass:"mr-1 fs-0875 mt-2px"},[t._v("\n "+t._s(s.model||s.text)+"\n ")]):t._e()]):t._e()]}))]:t._l(t.data[t.tab+"_tabs"],(function(s,a){return e(W["a"],{key:`${t.tab}-tab-${a}`,staticClass:"booktab",class:"oper"==t.tab&&"delete"==s.status?"d-none":"",attrs:{href:`#${t.tab}-tab-${a}`},on:{click:function(e){return t.changeTab(t.tab,s.text)}},model:{value:s[a],callback:function(e){t.$set(s,a,e)},expression:"item[x]"}},[["file","oper"].includes(t.tab)||"add"!=s.text?[e("span",{staticClass:"mr-1 fs-0875 mt-2px"},[t._v("\n "+t._s(s.text)+"\n ")]),t.data[t.tab+"_tabs"].length>(["file","oper"].includes(t.tab)?1:2)&&t.getTabIdx(t.tab)==a?e(q["a"],{staticClass:"mt-2px",attrs:{small:""},on:{click:function(e){return e.preventDefault(),t.delUnit(e,t.tab)}}},[t._v("\n mdi-close-circle\n ")]):t._e()]:[e(q["a"],{staticClass:"mr-1 mt-2px",attrs:{small:""}},[t._v("mdi-plus-circle")]),e("span",{staticClass:"grey--text fs-0875 mt-2px"},[t._v(" 유닛추가 ")])]],2)})),t._l(t.data[t.tab+"_tabs"],(function(s,a){return e(Y["a"],{key:`${t.tab}-tab-${a}`,attrs:{value:`${t.tab}-tab-${a}`,transition:!1,"reverse-transition":!1}},[e("div",{staticClass:"bookwrap"},["format"==t.tab&&"word"==t.rowType||"oper"==t.tab&&"word"==t.data.oper_view||"file"==t.tab&&"word"==t.data.file_view?t._e():[e(U["a"],{staticClass:"input-nowrap"},[e("div",{staticClass:"float-left text-center px-3 pb-0",staticStyle:{width:"69.125px"}},[e("span",{staticClass:"fs-0875"},[t._v("유닛명")])]),e("div",{staticClass:"float-left mb-0 pr-3",staticStyle:{"border-left":"thin solid #e2e7f2"}}),e("div",{staticClass:"float-left mb-0 pr-3",staticStyle:{width:"calc(100% - 82.125px)"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:s.model,expression:"item.model"}],staticClass:"w-100 ph-grey ph-875",attrs:{id:`${t.tab}-unit-name-${t.tab_num}-${a}`,type:"text",placeholder:"유닛명을 입력하세요."},domProps:{value:s.model},on:{input:function(e){e.target.composing||t.$set(s,"model",e.target.value)}}})]),e("div",{staticStyle:{clear:"both"}})]),e(Ca["a"],{staticClass:"my-3",staticStyle:{"border-top":"thin solid #e2e7f2"}})],t._l(t.data[`${t.tab}_${t.rowType}_row`][a],(function(s,i){return e(U["a"],{key:`${t.tab}_${t.rowType}_row_${i}`,staticClass:"input-row mb-2"},[e("small",{staticClass:"px-3 text-right",staticStyle:{"padding-top":"3px"}},[t._v("\n "+t._s(t.pad(i+1,3))+"\n ")]),e("div",{staticClass:"pr-1"},[e("input",{directives:[{name:"model",rawName:"v-model",value:s.eng,expression:"item.eng"}],staticClass:"file-custom-input",class:"format"==t.tab?"format-step-"+t.data.format_tabs[t.data.format_tab_idx].step:"",style:"format"==t.tab&&[0].includes(t.data.format_tabs[t.data.format_tab_idx].step)?"background-color: #e9e9e9;":"",attrs:{id:`${t.tab}_eng_${a}_${i}`,type:"text",autocomplete:"off",placeholder:t.getPlaceholder("eng",i),maxlength:t.setMaxLength(t.tab),disabled:"format"==t.tab&&[0].includes(t.data.format_tabs[t.data.format_tab_idx].step)},domProps:{value:s.eng},on:{input:[function(e){e.target.composing||t.$set(s,"eng",e.target.value)},function(e){return t.inputEvent(t.tab,a,i,e,"eng")}],blur:t.inputBlur}})]),e("div",{staticClass:"pl-2 pr-0"},["direct"==t.tab?e("input",{directives:[{name:"model",rawName:"v-model",value:s.kor,expression:"item.kor"}],staticClass:"file-custom-input",attrs:{id:`${t.tab}_kor_${a}_${i}`,type:"text",autocomplete:"off",placeholder:t.getPlaceholder("kor",i),maxlength:t.setMaxLength(t.tab)},domProps:{value:s.kor},on:{input:[function(e){e.target.composing||t.$set(s,"kor",e.target.value)},function(e){return t.inputEvent(t.tab,a,i,e,"eng")}],keyup:function(e){return t.directKeyup("direct",a,i,e,"eng")},blur:t.inputBlur}}):e("input",{directives:[{name:"model",rawName:"v-model",value:s.kor,expression:"item.kor"}],staticClass:"file-custom-input",class:"format"==t.tab?"format-step-"+t.data.format_tabs[t.data.format_tab_idx].step:"",style:"format"==t.tab&&[0,1].includes(t.data.format_tabs[t.data.format_tab_idx].step)?"background-color: #e9e9e9;":"",attrs:{id:`${t.tab}_kor_${a}_${i}`,type:"text",autocomplete:"off",placeholder:t.getPlaceholder("kor",i),maxlength:t.setMaxLength(t.tab),disabled:"format"==t.tab&&[0,1].includes(t.data.format_tabs[t.data.format_tab_idx].step)},domProps:{value:s.kor},on:{input:[function(e){e.target.composing||t.$set(s,"kor",e.target.value)},function(e){return t.inputEvent(t.tab,a,i,e,"eng")}],blur:t.inputBlur}})]),e("div",{staticClass:"text-center"},[e(L["a"],{directives:[{name:"show",rawName:"v-show",value:i>0,expression:"y > 0"}],staticClass:"pos-rel translate-y input-close-btn",attrs:{fab:"","x-small":"",dark:"",outlined:"",color:"black",tabindex:"-1",id:`${t.tab}_close_${a}_${i}`},on:{click:function(e){return t.rowDelClick(t.tab,a,i)}}},[e(q["a"],{staticClass:"white--text"},[t._v(" mdi-close ")])],1)],1)])})),["extra_format","oper"].includes(t.tab)?t._e():e(U["a"],{staticClass:"add-row"},[e("div"),e("div",{staticClass:"pr-1"},[e(L["a"],{staticClass:"float-right add-row-btn",style:t.addRowDisabled(t.tab)?"background: #e9e9e9; border-color: #e9e9e9;":"",attrs:{fab:"","x-small":"",outlined:"",elevation:"0",disabled:t.addRowDisabled(t.tab)},on:{click:function(e){t.addTextRow(!0,t.rowType),t.data.wrap_key++}}},[e(q["a"],{attrs:{color:"white"}},[t._v("mdi-plus")])],1)],1),e("div")])],2)])}))],2)],1)],1)},Mi=[],ji={name:"BookMakingInputSection",props:["tab","tab_num","data","addTextRow","editingCheck","delUnit","rowType","formatDismatch"],data(){return{e_pattern:/[0-9a-zA-Z~!@#$%^&*()\-\_=+\\\|\[\]{};:'",.<>/?`\ ]/g,selOperTypes:[{text:"문장",value:"input"},{text:"단어",value:"word"}]}},watch:{},computed:{checkDataCount(){return(t,e="input")=>{let s=0;for(let a in this.data[`${t}_${e}_row`])s+=this.data[`${t}_${e}_row`][a].length;return s}},previewDisabled(){return t=>{let e=!0;const s=this.data.tab.replace("tab-",""),a=this.data.tabs_obj[this.data.tabs[+s]];return(a==t||"file"==a&&"extra_format"==t)&&(e=!this.data[t+"_input_row"].some(t=>t.some(t=>""!=t.eng.replace(/ /g,"")&&""!=t.kor.replace(/ /g,"")))),e}},setMaxLength(){return t=>0===+this.data[t+"_select_booktype"]?1e3:250},getTabIdx(){return t=>+this.data[t+"_tab"].replace(t+"-tab-","")},getPlaceholder(){return(t,e)=>"eng"==t?0===+e?"format"==this.tab&&"word"==this.rowType?"단어":"영어":"":"kor"==t?"format"==this.tab?1===this.data.format_tabs[this.data.format_tab_idx].step?"본문 해석을 붙여넣기 하세요.":"해석":0===+e?"format"==this.tab&&"word"==this.rowType?"뜻":"해석":"":void 0},addRowDisabled(){return t=>{let e=!1;const s=this.data[t+"_tab_idx"];if("format"===t){const a=this.data[t+"_tabs"][s].step;[0,1].includes(a)&&(e=!0)}return e}}},created(){this.rowType=this.rowType||"input"},methods:{pad(t,e){return t+="",t.length>=e?t:new Array(e-t.length+1).join("0")+t},async inputEvent(t,e,s,a,i){const o=this,n=this.rowType||"input";await function(){if("eng"==i){const a=o.data[`${t}_${n}_row`][e][s].eng;o.e_pattern.test(a)||(o.data[`${t}_${n}_row`][e][s].eng=a.replace(/[^0-9a-zA-Z~!@#$%^&*()\-\_=+\\\|\[\]{};:'",.<>/?`\ ]/g,""),document.getElementById(`${t}_eng_${e}_${s}`).value=document.getElementById(`${t}_eng_${e}_${s}`).value.replace(/[^0-9a-zA-Z~!@#$%^&*()\-\_=+\\\|\[\]{};:'",.<>/?`\ ]/g,""),o.data.hidden_key+=1)}"format"==t&&o.formatDismatch()}(),this.editingCheck(this.tab)},inputBlur(){setTimeout(()=>{this.editingCheck(this.tab)},1)},directKeyup(t,e,s,a,i=""){if(13==a.keyCode&&s==this.data.direct_input_row[e].length-1){let t=new Promise(t=>{this.addTextRow(!1),t(!0)});t.then(()=>{document.getElementById(`direct_eng_${e}_${s+1}`).focus()})}},changeTab(t,e){if(this.$store.dispatch("soundEffectPlay","click_button"),"oper"!=t){const e=document.querySelector(`.${t}_wrap`),s=e.getBoundingClientRect().height;s>this.data.wrapMinHeight&&(this.data.wrapMinHeight=s,e.style.minHeight=this.data.wrapMinHeight+"px")}if("format"==t){const t=this.data.format_tab_idx;if(1===this.data.format_tabs[t].step||this.data.format_dismatch)return"add"==e?this.openDialog("add_unit_warning"):this.openDialog("change_unit_warning"),!1}if("add"==e){const e=this.data[t+"_tabs"].length;if("format"==t)for(let t=0;t{t.selected=!1});const s=this.data[t+"_tabs"][e-2].text.split(" ");let a={text:`${s[0]} ${+s[1]+1}`,model:"",selected:!0};"format"==t&&(a.step=0),this.data[t+"_tabs"][e-1]=a,this.data[t+"_input_row"].push([{eng:"",kor:""}]),"format"==t&&(this.data[t+"_word_row"].push([]),this.editingCheck("format"))}},rowDelClick(t,e,s){this.$store.dispatch("soundEffectPlay","click_button");const a=this.rowType||"input";this.data[`${t}_${a}_row`][e].splice(s,1),"format"==t&&this.formatDismatch(),"oper"==t&&this.editingCheck(),this.data.wrap_key++},changeOperView(t){this.data.oper_view=t,this.data.oper_tab="oper-tab-0",this.data.wrap_key++}}},Ri=ji,qi=Object(u["a"])(Ri,Li,Mi,!1,null,null,null),Fi=qi.exports,Ui=function(){var t=this,e=t._self._c;return e(U["a"],[e(j["a"],{staticClass:"py-0",attrs:{cols:"12"}},[e("div",{staticClass:"py-3 px-0 text-right pos-rel",staticStyle:{border:"thin solid #e2e7f2","border-top":"unset",background:"#f8f8f9"}},[e("div",{staticClass:"add-row type1"},["format"==t.tab&&1===t.data.newstep.format?e("div",{staticClass:"d-inline-block red--text pl-3",staticStyle:{"white-space":"nowrap"}},[t.data.format_tabs[t.data.format_tab_idx].step>1&&t.data.format_dismatch?[2===t.data.format_dismatch_last?[t._v("\n 영어, 해석 데이터를 입력해주세요.\n ")]:1===t.data.format_dismatch_last?[t._v("\n 입력하신 컨텐츠가 일치하지 않습니다.\n ")]:t._e(),t._v("\n "+t._s(t.data.format_dismatch_text)+" 확인해주세요.\n ")]:t._e()],2):"format"==t.tab&&2===t.data.newstep.format?e("div",{staticClass:"d-inline-block red--text pl-3",staticStyle:{"white-space":"nowrap"}},[t.data.format_tabs[t.data.format_tab_idx].step>1&&t.data.format_dismatch_word?[2===t.data.format_dismatch_last?[t._v("\n 단어, 뜻 데이터를 입력해주세요.\n ")]:1===t.data.format_dismatch_last?[t._v("\n 입력하신 컨텐츠가 일치하지 않습니다.\n ")]:t._e(),t._v("\n "+t._s(t.data.format_dismatch_text)+" 확인해주세요.\n ")]:t._e()],2):"file"==t.tab&&1===+t.data.newstep.file?e("div",{staticClass:"d-inline-block pl-3",staticStyle:{"white-space":"nowrap"}},[e("div",{staticClass:"d-inline-block cursor success--text pos-abs",staticStyle:{left:"12px","z-index":"1"},on:{click:t.fileStepChange}},[e(q["a"],{attrs:{color:"success",size:"1rem"}},[t._v(" mdi-chevron-left ")]),t._v("\n 문장 입력\n ")],1)]):e("div"),"oper"!=t.tab?e("div",{staticClass:"pos-rel"},[e("span",{staticClass:"pos-abs cursor grey--text temporary-text",on:{click:function(e){return t.temporarySave(t.tab)}}},[t._v("\n 임시 저장\n ")])]):e("div"),"format"!=t.tab||0!=t.data.newstep.format?e("div",{key:"input-count-info-"+t.data.wrap_key,staticClass:"pr-3"},[e("span",{staticClass:"grey--text pr-1"},[t._v("전체")]),e("span",{staticClass:"pr-2 fw-700"},[t._v(t._s(t.data[t.tab+"_tabs"].length-(["file","oper"].includes(t.tab)?0:1))+"차시")]),"oper"!=t.tab?[e("span",{staticClass:"grey--text pr-1"},[t._v(t._s("format"==t.tab&&2===t.data.newstep.format||"file"==t.tab&&1===t.data.newstep.file?"단어":"문항"))]),e("span",{staticClass:"fw-700"},[t._v(t._s(t.checkDataCount(t.tab,"format"==t.tab&&2===t.data.newstep.format||"file"==t.tab&&1===t.data.newstep.file?"word":"input"))+"개\n ")])]:"oper"==t.tab?[e("span",{staticClass:"grey--text pr-1"},[t._v("\n "+t._s("input"==t.data.oper_view?"문항":"단어")+"\n ")]),e("span",{staticClass:"fw-700"},[t._v(t._s(t.checkDataCount("oper",t.data.oper_view))+"개")])]:t._e()],2):e("div",[t._v(" ")]),e("div")])])]),["format","oper"].includes(t.tab)?"format"==t.tab?e(j["a"],{staticClass:"py-2 px-0",attrs:{cols:"12"}},[2===+t.data.newstep.format&&t.data.remainWords[t.data.format_tab_idx]&&t.data.remainWords[t.data.format_tab_idx].length>0?e("div",{staticClass:"add-row type2"},[e("div"),e("div",{staticClass:"d-flex justify-center",staticStyle:{gap:"1rem"}},[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",outlined:"",disabled:t.previewDisabled("format")},on:{click:function(e){return e.stopPropagation(),t.makeBookPreview("format")}}},[t._v("\n 미리 보기\n ")]),e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",outlined:""},on:{click:function(e){return e.stopPropagation(),t.addWord.apply(null,arguments)}}},[t._v("\n 단어 추가\n ")]),e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",disabled:t.formatSubmitDisabled},on:{click:function(e){return e.stopPropagation(),t.formatSubmitEvent.apply(null,arguments)}}},[t._v("\n 교재 생성\n ")])],1)]):e("div",{staticClass:"add-row type1"},[e("div"),e("div",{staticClass:"text-right pr-1"},[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",outlined:"",disabled:t.previewDisabled("format")},on:{click:function(e){return e.stopPropagation(),t.makeBookPreview("format")}}},[t._v("\n 미리 보기\n ")])],1),e("div",{staticClass:"pl-2"},[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",disabled:t.formatSubmitDisabled},on:{click:function(e){return e.stopPropagation(),t.formatSubmitEvent.apply(null,arguments)}}},[0===t.data.newstep.format&&2!=t.data.format_select_booktype?[t._v(" 문장 입력 ")]:t._e(),0===t.data.newstep.format&&2==t.data.format_select_booktype?[t._v(" 단어 입력 ")]:1===t.data.newstep.format&&0==t.data.format_select_bookkind?[t._v("\n 단어 추출\n ")]:2===t.data.newstep.format||1===t.data.newstep.format&&(1==t.data.format_select_bookkind||2==t.data.format_select_bookkind)?[t._v("\n 교재 생성\n ")]:t._e(),0===t.data.newstep.format||1===t.data.newstep.format&&0==t.data.format_select_bookkind?e(q["a"],{staticClass:"pos-abs",staticStyle:{right:"0"}},[t._v("\n mdi-chevron-right\n ")]):t._e()],2)],1)])]):"oper"==t.tab?e(j["a"],{staticClass:"px-0 py-2 text-center",attrs:{cols:"12"}},[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{depressed:"",color:"success",disabled:t.data[t.tab+"Disabled"]},on:{click:function(e){return t.operSubmitConfirm()}}},[t._v("\n 수정\n ")])],1):t._e():e(j["a"],{staticClass:"py-2 px-0",attrs:{cols:"12"}},["file"==t.tab&&1===+t.data.newstep.file&&t.data.remainWords[t.data.file_tab_idx]&&t.data.remainWords[t.data.file_tab_idx].length>0?e("div",{staticClass:"add-row type2"},[e("div"),e("div",{staticClass:"d-flex justify-center",staticStyle:{gap:"1rem"}},[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",outlined:"",disabled:t.previewDisabled(t.tab)},on:{click:function(e){return e.stopPropagation(),t.makeBookPreview(t.tab)}}},[t._v("\n 미리 보기\n ")]),e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",outlined:""},on:{click:function(e){return e.stopPropagation(),t.addWord.apply(null,arguments)}}},[t._v("\n 단어 추가\n ")]),e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",disabled:t.data[t.tab+"_disabled"]},on:{click:function(e){return e.stopPropagation(),t.makeBookConfirm(t.tab)}}},[t._v("\n 교재 생성\n ")])],1)]):e("div",{staticClass:"add-row type1"},[e("div"),e("div",{staticClass:"text-right pr-1"},[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",outlined:"",disabled:t.previewDisabled(t.tab)},on:{click:function(e){return e.stopPropagation(),t.makeBookPreview(t.tab)}}},[t._v("\n 미리 보기\n ")])],1),e("div",{staticClass:"pl-2"},["file"==t.tab&&0===+t.data.file_select_bookkind?[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",disabled:t.data[t.tab+"_disabled"]},on:{click:function(e){return e.stopPropagation(),t.makeBookConfirm(t.tab)}}},[0===+t.data.newstep.file?[t._v("\n 단어 추출\n "),e(q["a"],{staticClass:"pos-abs",staticStyle:{right:"0"}},[t._v("\n mdi-chevron-right\n ")])]:[t._v(" 교재 생성 ")]],2)]:[e(L["a"],{staticClass:"my-6",staticStyle:{width:"150px"},attrs:{color:"success",depressed:"",disabled:t.data[t.tab+"_disabled"]},on:{click:function(e){return e.stopPropagation(),t.makeBookConfirm(t.tab)}}},[t._v("\n 교재 생성\n ")])]],2)])])],1)},Hi=[],Gi={name:"CountInfo",props:["tab","data","makeBookPreview","makeBookConfirm","temporarySave","operSubmitConfirm","formatSubmitEvent","formatDismatch"],data(){return{}},computed:{checkDataCount(){return(t,e="input")=>{let s=0;for(let a in this.data[`${t}_${e}_row`])s+=this.data[`${t}_${e}_row`][a].length;return s}},previewDisabled(){return t=>{let e=!0;const s=this.data.tab.replace("tab-",""),a=this.data.tabs_obj[this.data.tabs[+s]];return(a==t||"file"==a&&"extra_format"==t)&&(e=!this.data[t+"_input_row"].some(t=>t.some(t=>""!=t.eng.replace(/ /g,"")&&""!=t.kor.replace(/ /g,"")))),e}},formatSubmitDisabled(){let t=!0;const e=this.data.newstep.format;return 0===e?t=!this.data.format_bookname||!this.data.format_select_grade:1===e?t=this.data.format_disabled||this.data.format_dismatch:2===e&&(t=this.data.format_disabled||this.data.format_dismatch||this.data.format_dismatch_word),t}},methods:{fileStepChange(){this.openDialog("extracting_give_up")},addWord(){const t=this.tab,e=this.data[t+"_tab_idx"],s=this.data.remainWords[e];if(1===s.length&&null===s[0])this.openAlert("add_word_max");else{s.sort(()=>Math.random()-.5);let a=this.data[t+"_word_row"][e];for(let t=0,e=a.length;t/?`\ ]/g,moveTabKey:0,bank_mode:!1,tab:null,tabs:["서식 생성","파일 생성","직접 생성"],tabs_obj:{"서식 생성":"format","파일 생성":"file","직접 생성":"direct"},subtitle_text:"",vt:0,to:"",move_page_status:0,wrap_key:0,direct_bookname:"",direct_tab:"direct-tab-0",direct_tabs:[{text:"Unit 1",model:"",selected:!0},{text:"add",model:""}],direct_input_row:[[{eng:"",kor:""}]],direct_date:null,direct_menu:!1,direct_subtitle:"",direct_publisher:"",direct_publishdate:"",format_publishdate:"",file_publishdate:"",extra_format_publishdate:"",direct_book:[{}],format_book:[],file_book:[],formatPaste:!1,tmp_textarea:"",format_textarea:"",format_textarea_readonly:!1,format_bookname:"",format_division_num:"",format_last_division_num:"",format_tab:"format-tab-0",format_tab_idx:0,format_tab_watch:!0,format_tabs:[{text:"Unit 1",model:"",step:0,selected:!0},{text:"add",model:""}],format_input_row:[[{eng:"",kor:""}]],format_word_row:[[]],format_publisher:"",format_date:null,format_menu:!1,format_popup:!1,format_dismatch:!1,format_dismatch_word:!1,format_dismatch_last:0,format_dismatch_text:"",dropzoneOptions:{url:this.$host+"/uploadbookexcel",thumbnailWidth:150,thumbnailheight:150,maxFilesize:2,chunking:!0,headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json, text/html"},acceptedFiles:"text/csv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/haansoftxlsx",dictDefaultMessage:'
Drag and drop Files Here to Upload.
(엑셀파일의 첫번째 시트만 인식되며, 첫번째 행은 업로드 제외됩니다.)



',init:function(){this.on("sending",(function(t,e,s){s.append("bookname",t.name)}))}},extra_format_mode:!1,bookmaking_excel_data:[],file_bookname:"",file_division_num:"",file_last_division_num:"",file_tab:"file-tab-0",file_tab_idx:0,file_tabs:[{text:"Unit 1",model:"",selected:!0}],file_input_row:[[{eng:"",kor:""}]],file_word_row:[[]],file_unitper_sen:0,file_publisher:"",file_date:null,file_menu:!1,extra_formatPaste:!1,extra_format_textarea:"",extra_format_textarea_readonly:!1,extra_format_bookname:"",extra_format_last_division_num:"",extra_format_tab:"extra_format-tab-0",extra_format_tabs:[{text:"Unit 1",model:"",selected:!0},{text:"add",model:""}],extra_format_input_row:[[{eng:"",kor:""}]],extra_format_publisher:"",extra_format_date:null,extra_format_menu:!1,extra_format_apply_cnt:[],loading_value:!1,loading_message:"잠시만 기다려주세요.",sel_type:"",book_grade:[{text:"초등학교 1학년",value:"e1"},{text:"초등학교 2학년",value:"e2"},{text:"초등학교 3학년",value:"e3"},{text:"초등학교 4학년",value:"e4"},{text:"초등학교 5학년",value:"e5"},{text:"초등학교 6학년",value:"e6"},{text:"중학교 1학년",value:"m1"},{text:"중학교 2학년",value:"m2"},{text:"중학교 3학년",value:"m3"},{text:"고등학교 1학년",value:"h1"},{text:"고등학교 2학년",value:"h2"},{text:"고등학교 3학년",value:"h3"},{text:"기타",value:"etc"}],admin:{id:this.$storage.get("user").loginid,book_category:[{text:"내공스터디",value:"1"},{text:"교과서",value:"2"},{text:"듣기/모의고사",value:"3"}],direct:{book_grade_select:"",book_category_select:""},format:{},file:{bookname:"",tabs:"",input_row:"",book_total_sentence:"",book_total_unit:"",book_unitper_sen:"",publisher:"",publishdate:"",subtitle:"",grade_select:"",category_select:""},url_status:0},direct_select_grade:"",format_select_grade:"",file_select_grade:"",extra_format_select_grade:"",direct_disabled:!0,format_disabled:!0,file_disabled:!0,extra_format_disabled:!0,hidden_key:0,year_items:[],move_tab_num:"",direct_select_booktype:"0",format_select_booktype:"0",file_select_booktype:"0",extra_format_select_booktype:"0",direct_select_bookkind:"0",format_select_bookkind:"0",file_select_bookkind:"0",extra_select_bookkind:"0",extra_format_select_bookkind:"0",filesample_opt:null,file_error_msg:null,uploadFileType:null,file_popquiz_type:null,format_popquiz_type:null,extra_format_popquiz_type:null,preview_data:null,tempData:null,temp_id:null,select_temp_id:null,cropper_modal:!1,cropper_img:null,cropper_btns:[{value:"x2",icon:"mdi-arrow-all",alt:"확대"},{value:"xh",icon:"mdi-arrow-up-down",alt:"세로 넓히기"},{value:"xw",icon:"mdi-arrow-left-right",alt:"가로 넓히기"},{value:"center",icon:"mdi-image-filter-center-focus",alt:"가운데 이동"},{value:"rotate",icon:"mdi-reload",alt:"90도 회전"}],file_input_key:0,newstep:{now:0,format:0,file:0,top:0},extracting_words:!1,wrapMinHeight:0,file_view:"input",remainWords:[],temporary_loading:!1}},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)return"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s(),!1;{const e=this.tab.replace("tab-","");let a=this.tabs_obj[this.tabs[+e]];"file"==a&&(a=this.extra_format_mode?"extra_format":"file");const i=["direct","format","file","extra_format"],o=i.findIndex(t=>t===a);for(let t=0,s=i.length;t1?1:0;"file"!==e&&(s=this[e+"_tabs"].length>2?1:0);let a=1!=s?this[e+"_tabs"].some(t=>""!=t.model):1,n=this[e+"_input_row"].length>1?1:0,l=1!=n?this[e+"_input_row"][0].some(t=>""!=t.eng||""!=t.kor):1,r=(this[e+"_bookname"]?1:0)+(this[e+"_publisher"]?1:0)+(this[e+"_publishdate"]?1:0)+(this[e+"_select_grade"]?1:0)+s+(a?1:0)+n+(l?1:0);if(["format","extra_format"].includes(e)&&(r+=this[e+"_textarea"]?1:0),""!=r||0!=r)return this.openDialog("move_page"),!1}"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},created(){this.tab="tab-0"},watch:{extracting_words(t){t&&this.openAlert("각 유닛별 주요 단어를 추출 중입니다.")},format_textarea(t){const e=document.getElementById("format_apply_btn"),s=document.getElementById("format_back_btn"),a=this.format_tabs[this.getTabIdx("format")].step;""!==t.replace(/ /g,"")?(e.classList.replace("d-none","d-block"),s.classList.replace("d-block","d-none")):(e.classList.replace("d-block","d-none"),a>0&&s.classList.replace("d-none","d-block"))},extra_format_select_booktype(t){2===+t&&(this.extra_format_popquiz_type="all")},format_select_booktype(t){2===+t&&(this.format_popquiz_type="all")},file_select_booktype(t){2===+t&&"unit"==this.uploadFileType&&(this.file_popquiz_type="all")},tab(t){this.sel_type="",this.subtitle_text=this.tabs[t.substr(t.length-1)];const e=this.tabs_obj[this.subtitle_text];this.tabType=e,this[e+"_bookname"]="",this[e+"_publisher"]="",this[e+"_publishdate"]="",this[e+"_select_grade"]="",this[e+"_input_row"]=[[{eng:"",kor:""}]],this[e+"_disabled"]=!0,this.extra_format_disabled=!0,this[e+"_tab"]=e+"-tab-0",this[e+"_date"]=null,this[e+"_menu"]=!1,this[e+"_book"]="direct"==e?[{}]:[],this.wrap_key=0,this.newstep={now:0,format:0,file:0,top:0},this.wrapMinHeight=0;const s=document.getElementsByClassName("input_wrap");for(let i=0,o=s.length;i{let t=document.getElementById("dropzone");t&&(t.style.display="block"),t=document.getElementById("dropzone-btn-wrap"),t&&(t.style.display="block");const e=document.getElementById("file_title");e&&e.classList.replace("d-block","d-none");const s=document.getElementById("file_tab_section");s&&s.classList.replace("d-block","d-none");const a=document.getElementById("extra_format_apply_btn");a&&a.classList.replace("d-block","d-none");const i=document.getElementById("extra_format_title");i&&i.classList.replace("d-block","d-none");const o=document.getElementById("extra_format_tab_section");o&&o.classList.replace("d-block","d-none"),this.$refs.myVueDropzone&&this.$refs.myVueDropzone[0].enable()},0);else if("직접 생성"==this.subtitle_text)this.direct_tabs=[{text:"Unit 1",model:"",selected:!0},{text:"add",model:""}],this.direct_subtitle="";else if("서식 생성"==this.subtitle_text){a.addEventListener("scroll",this.formatScroll),this.formatPaste=!1,this.tmp_textarea="",this.format_textarea="",this.format_textarea_readonly=!1,this.format_tab_idx=0,this.format_tab_watch=!0,this.format_tabs=[{text:"Unit 1",model:"",step:0,selected:!0},{text:"add",model:""}],this.format_dismatch=!1,this.format_dismatch_word=!1,this.format_dismatch_text="",this.format_word_row=[[]];const t=document.getElementById("format_apply_btn");t&&t.classList.replace("d-block","d-none");const e=document.getElementById("format_back_btn");e&&e.classList.replace("d-block","d-none")}},direct_menu(t){t&&this.$nextTick(()=>{this.setPickerMenu("direct")})},format_menu(t){t&&this.$nextTick(()=>{this.setPickerMenu("format")})},file_menu(t){t&&this.$nextTick(()=>{this.setPickerMenu("file")})},direct_bookname(){this.editingCheck("direct")},format_bookname(){this.editingCheck("format")},file_bookname(){this.editingCheck("file")},extra_format_bookname(){this.editingCheck("extra_format")},direct_tab(t){const e=+t.split("-")[2];this.direct_tabs.forEach(t=>{t.selected=!1}),this.direct_tabs[e].selected=!0},file_tab(t){const e=+t.split("-")[2];this.file_tab_idx=e,this.file_tabs.forEach(t=>{t.selected=!1}),this.file_tabs[e].selected=!0},format_tab(t,e){const s=+t.split("-")[2];let a=!1;for(let i=0;i{this.format_tab=e,setTimeout(()=>{this.format_tab_watch=!0},1)});else{this.format_tab_idx=s;const t=document.getElementById("format_back_btn"),e=document.getElementById("format_apply_btn");""===this.format_textarea?(this.format_textarea_readonly=this.format_tabs[s].step>1,t&&(0===this.format_tabs[s].step?t.classList.replace("d-block","d-none"):t.classList.replace("d-none","d-block"))):e&&(this.format_tabs[s].step>1?e.classList.replace("d-block","d-none"):e.classList.replace("d-none","d-block")),this.format_tab_watch=!0}},newstep:{handler(){this.wrapMinHeight=0},deep:!0},wrapMinHeight(t,e){if(t!=e){const e=document.querySelector(".input_wrap"),s=e.getBoundingClientRect().height;(s>this.wrapMinHeight||0===t)&&(this.wrapMinHeight=0===t?t:s,e.style.minHeight=this.wrapMinHeight+"px")}}},computed:{getTabIdx(){return t=>+this[t+"_tab"].replace(t+"-tab-","")},getRowsCnt(){return(t,e="input")=>this[`${t}_${e}_row`].length>1?this[`${t}_${e}_row`].reduce((t,e)=>"object"==typeof t?t.length+e.length:t+e.length):this[`${t}_${e}_row`][0].length},checkDataCount(){return(t,e="input")=>{let s=0;for(let a in this[`${t}_${e}_row`])s+=this[`${t}_${e}_row`][a].length;return s}},previewDisabled(){return t=>{let e=!0;const s=this.tab.replace("tab-",""),a=this.tabs_obj[this.tabs[+s]];return(a==t||"file"==a&&"extra_format"==t)&&(e=!this[t+"_input_row"].some(t=>t.some(t=>""!=t.eng.replace(/ /g,"")&&""!=t.kor.replace(/ /g,"")))),e}},newStepColor(){return t=>{let e="",s="",a="",i="",o="";return this.newstep.formatt&&(e="#29ace1",s="#1a91bf",a=s,i="white"),{backgroundColor:e,border:"2px solid "+s,color:a,iconColor:i,iconColorA:o}}},setMaxLength(){return t=>0===+this[t+"_select_booktype"]?1e3:250}},mounted(){Tr.$on("close_event",t=>{1==t.status&&("selectSampleOpt"==t.name&&(this.filesample_opt=null),"tempDataDialog"==t.name&&(this.select_temp_id=null))}),"tab-0"==this.tab&&(this.format_popup=!0)},methods:{formatDate(t){if(!t)return null;let e=t.split("-")[0],s=e+"년";return s},save(t,e){this.$refs[t+"_menu"][0].save(e),this.$refs.picker.activePicker="YEAR",this[t+"_menu"]=!1},pad(t,e){return t+="",t.length>=e?t:new Array(e-t.length+1).join("0")+t},setPickerMenu(t){this.$refs[t+"_picker"][0].activePicker="YEAR",setTimeout(()=>{let t=document.querySelectorAll(".v-menu__content");if(t&&1==t.length){let t=document.querySelector(".v-date-picker-years .active");t.scrollIntoView()}else for(let e=0;e{["format","file","extra_format"].includes(t)&&(a=this[t+"_tabs"].length),this[t+"_tabs"].some((n,l)=>"add"==n.text?(i(!1),!0):(this[`${t}_${e}_row`][l].some(t=>{let e=t.eng||"false"==t.eng.toString()?t.eng.toString():t.eng,a=t.kor?t.kor.toString():t.kor;if(!e||!a||""==e.replace(/ /g,"")||""==a.replace(/ /g,""))return this.openDialog("null_input"),s=!0,o(!0),!0}),1==s?(o(!0),!0):void(l==a-1&&i(!1))))})},process_data(t){return Vi=[],Qi=[],Xi=[],new Promise((e,s)=>{try{const s="file"===t?this[t+"_tabs"].length:this[t+"_tabs"].length-1;"direct"!==t&&(this[t+"_last_division_num"]=s);for(let e=0;e0&&0===+this.file_select_bookkind)&&(Xi[e]=this[t+"_word_row"]?this[t+"_word_row"][e].length:0)}e()}catch(a){console.log(a),s(a)}})},addbook(t,e){return new Promise((s,a)=>{const i="file"===t?this[t+"_tabs"].length:this[t+"_tabs"].length-1,o={type:t,bookname:this[t+"_bookname"],category:4,total_cnt:this.getRowsCnt(t),unit_cnt:i,grade:this[t+"_select_grade"].value?this[t+"_select_grade"].value:"",publisher:this[t+"_publisher"],publishdate:this[t+"_publishdate"],booktype:e.booktype,popquiz_type:this.file_popquiz_type};this.temp_id&&(o.temp_id=this.temp_id),this.$axios.post(`${this.$host}/book/${this.$cid}/addbook`,o).then(t=>{200==t.status&&s(t.data)}).catch(t=>{a(t)})})},addunit(t,e,s){return new Promise((a,i)=>{let o={type:e,book_id:t,booktype:s.booktype,name:"adminfile"!=e?Vi:this.admin.file.tabs,sentences_cnt:Qi,words_cnt:Xi};this.$axios.post(this.$host+"/book/addunit",o).then(t=>{200==t.status&&a(t.data)}).catch(t=>{i(t)})})},addsentences(t,e){return new Promise((s,a)=>{let i="iron7788"!=this.admin.id?0:1;this.$axios.post(this.$host+"/book/addsentences",{type:e,loginid:this.$storage.get("user").loginid,unit_id:t,unit_row:this[e+"_input_row"],super:i}).then(t=>{200==t.status&&s(t.data)}).catch(t=>{a(t)})})},addwords(t,e){return new Promise((s,a)=>{let i="iron7788"!=this.admin.id?0:1,o="";o=("format"==e||"file"==e)&&0===+this[e+"_select_booktype"]?this[e+"_word_row"]:this[e+"_input_row"],this.$axios.post(this.$host+"/book/addwords",{type:e,loginid:this.$storage.get("user").loginid,unit_id:t,unit_row:o,super:i}).then(t=>{200==t.status&&s(t.data)}).catch(t=>{a(t)})})},makeBookPreview(t){this.preview_data=null;const e=new Promise((e,s)=>{const a=this[t+"_tabs"].filter(t=>!("add"==t.text&&""==t.model));if(this.preview_data={bookname:this[t+"_bookname"],units:a,grade:this[t+"_select_grade"]?this[t+"_select_grade"].value:null,publisher:this[t+"_publisher"],publishdate:this[t+"_publishdate"],booktype:this[t+"_select_booktype"]},"format"==t){const e=this.getRowsCnt(t,"word");e>0&&(this.preview_data.booktype=1)}e()});e.then(()=>{Tr.$emit("preview_modal",!0,this.preview_data)})},async makeBookConfirm(t){if(""==this[t+"_bookname"].replace(/ /g,""))return this.openDialog("null_book_name"),!1;let e="input";"file"===t&&1===this.newstep.file&&(e="word"),this.null_check(t,e).then(async e=>{if(0==e){if(this.sel_type=t,"file"==t&&0===+this.file_select_bookkind&&0===this.newstep.file&&this.file_input_row.length>0){this.extracting_words=!0,await this.pickWords("file"),this.extracting_words=!1;const t=document.getElementById("file_title");return t.classList.replace("d-block","d-none"),this.newstep.file=1,this.file_view="word",this.setScroll("file"),!1}this.openDialog("make_book_confirm")}}).catch(t=>{console.log(t)})},async makeBook(t){this.closeDialog(),this.loading_value=!0;const e={booktype:0===+this[t+"_select_booktype"]?0:22,sentences_cnt:this.getRowsCnt(t),words_cnt:0};if("format"==t||"file"==t){const s=this.getRowsCnt(t,"word");s>0&&(e.words_cnt=s,e.booktype=1)}this.process_data(t).then(()=>this.addbook(t,e)).then(s=>this.addunit(s,t,e)).then(s=>{if("format"==t||"file"==t||"extre_format"==t){if(0===+this[t+"_select_bookkind"])return e.words_cnt>0&&this.addwords(s,t),this.addsentences(s,t);if(1===+this[t+"_select_bookkind"])return this.addsentences(s,t);if(2===+this[t+"_select_bookkind"])return this.addwords(s,t)}else{if("0"==this[t+"_select_booktype"])return this.addsentences(s,t);if("2"==this[t+"_select_booktype"])return this.addwords(s,t)}}).then(()=>{this.loading_value=!1,this.move_page_status=1,this.$router.push({name:"lesson-booklist",params:{dialog:"success",tab:2}})}).catch(()=>{this.loading_value=!1})},rowDelClick(t,e,s,a="input"){this.$store.dispatch("soundEffectPlay","click_button"),this[`${t}_${a}_row`][e].splice(s,1),"format"==t&&this.formatDismatch(),this.wrap_key++},inputEvent(t,e,s,a,i,o="input"){if("eng"==i){const a=this[`${t}_${o}_row`][e][s].eng;this.e_pattern.test(a)||(this[`${t}_${o}_row`][e][s].eng=a.replace(/[^0-9a-zA-Z~!@#$%^&*()\-\_=+\\\|\[\]{};:'",.<>/?`\ ]/g,""),document.getElementById(`${t}_eng_${e}_${s}`).value=document.getElementById(`${t}_eng_${e}_${s}`).value.replace(/[^0-9a-zA-Z~!@#$%^&*()\-\_=+\\\|\[\]{};:'",.<>/?`\ ]/g,""),this.hidden_key+=1)}"format"==t&&this.formatDismatch()},formatPasteEvent(t){"format"===t?(this.formatPaste=!0,setTimeout(()=>{if(this.format_textarea){let t=this.format_textarea;this.format_textarea=t.replace(/\.\"/gi,'".').replace(/\.\'/gi,"'.")}this.formatPaste=!1},0)):"extra"===t&&(this.extra_formatPaste=!0)},formatTextareaEvent(t){if(this.formatPaste){const e=document.getElementById("format_apply_btn");e.classList.replace("d-none","d-block");const s=document.getElementById("format_back_btn");s.classList.replace("d-block","d-none"),this.format_textarea=t.replace(/\“|\”/gi,'"').replace(/\‘|\’/gi,"'"),this.formatPaste=!1}else if(this.extra_formatPaste){let e=[],s="";if(t.match(/\t/gi)){if(""!=this.extra_format_textarea){let a=t.replace(this.extra_format_textarea,"");a=a.replace(/(^\s*)|(\s*$)/gi,""),a=a.split("\n"),s=a;for(let t=0,i=s.length;t{const t=document.getElementById("extra_format_apply_btn");t.classList.replace("d-none","d-block")},100),this.extra_formatPaste=!1}},async pickWords(t){return new Promise(async e=>{let s="";if("format"===t&&1===this.format_tabs[this.format_tab_idx].step)return e(),!1;this.remainWords=[];const a=(t,e)=>new Promise((a,i)=>{this.remainWords[e]=[],this.$axios.post("https://e49n33s5yk.apigw.ntruss.com/pick_words/001/jFaGL8M1hM/json",s).then(s=>{let i=s.data.data;if(s.data.result&&i.length>0){const s=[];for(let t=0,e=i.length;t0){s.sort((t,e)=>e-t);for(let t=0,e=s.length;te.spelling.length-t.spelling.length);for(let t=0,a=i.length;t2&&(a=[l[0],l[1]].join(n)),n=",",l=a.split(n),l.length>2&&(a=[l[0],l[1]].join(n)),i[t].kor=a,i[t].eng=s,delete i[t].spelling,delete i[t].meaning,t<25?o.push(i[t]):this.remainWords[e].push(i[t])}o.sort(()=>Math.random()-.5),this[t+"_word_row"][e]=o,console.log("remainWords:",this.remainWords[e]),a()}else a()}).catch(t=>{i(t)})});await this[t+"_input_row"].reduce(async(e,i,o)=>{if(await e,this[t+"_input_row"][o]){let e="";const a=this[t+"_input_row"][o];for(let t=0,s=a.length;t{setTimeout(()=>{this.$axios.post(this.apiHOST+"/sentences/split",t).then(t=>{if(t.data.result){const a=t.data.data,i=t.data.data_kor,o=this.format_tab.split("-")[2];if(0===this.format_tabs[o].step){if(0===a.length)return s("eng"),!1;this.format_input_row[o]=[];for(let t=0;t0){for(let t=0;t{s(t)})},0)});e.then(()=>{this.wrap_key++,this.format_textarea="",this.loading_value=!1}).catch(t=>{["eng","kor"].includes(t)?(this.file_error_msg=("eng"==t?"본문":"해석")+"을 입력해 주세요.",this.openDialog("fileErrorExist")):(console.error(t),this.format_textarea="",this.format_textarea_readonly=!1,this.openAlert("fail_division")),this.loading_value=!1})},extraFormatApply(){this.$store.dispatch("soundEffectPlay","click_button"),this.loading_value=!0,setTimeout(()=>{let t=this.extra_format_textarea.split("\n");while(-1!=t.lastIndexOf(""))t.splice(t.lastIndexOf(""),1);const e=this.getTabIdx("extra_format");this.extra_format_input_row[e]=[];let s=this.extra_format_textarea.split("\n");s.splice(s.lastIndexOf(""),1);for(let a=0,i=s.length;a{this.extra_format_apply_cnt[e]?this.extra_format_apply_cnt[e]++:this.extra_format_apply_cnt.push(1),this.loading_value=!1,this.wrap_key++},0)},0)},formatBack(){this.$store.dispatch("soundEffectPlay","click_button");const t=document.getElementById("format_back_btn"),e=this.format_tab_idx;if([1,3].includes(this.format_tabs[e].step))this.format_input_row[e]=[{eng:"",kor:""}],this.format_textarea="",this.format_textarea_readonly=!1,t.classList.replace("d-block","d-none"),this.format_tabs[e].step=0;else if(2===this.format_tabs[e].step){for(let t=0;t=5?this[t+"_division_num"]=i-5+"개":i-5==0&&(this[t+"_division_num"]="전체"):"next"==e&&i+5<=s&&(this[t+"_division_num"]=i+5+"개")}},DivisionApply(t){this.loading_value=!0,setTimeout(()=>{const e=parseInt(this[t+"_division_num"].replace("개","")),s=this.getRowsCnt(t);this[t+"_last_division_num"]=e;let a="";if(a="iron7788"!=this.admin.id?this.bookmaking_excel_data:this.file_input_row,1==isFinite(s/e)){this[t+"_tabs"]=[{text:"Unit 1",model:""}];let i=Math.ceil(s/e);for(let o=0;o{const e=window.URL.createObjectURL(new Blob([t.data])),s=document.createElement("a");s.href=e,s.setAttribute("download","sentence_sample.hwp"),document.body.appendChild(s),s.click()}).catch(t=>{console.log(t)})},openManual(){window.open("https://youtu.be/elqygTGoVIg")},onClickDropzone(){document.getElementById("dropzone").click()},downloadSample(){this.filesample_opt&&this.$axios({url:`${this.$host}/sentencesample?type=${this.filesample_opt}`,method:"GET",responseType:"blob",headers:{Accept:"application/vnd.ms-excel"}}).then(t=>{const e=window.URL.createObjectURL(new Blob([t.data])),s=document.createElement("a");s.href=e,s.setAttribute("download","unit"==this.filesample_opt?"unit_sample.xlsx":"contents_sample.xlsx"),document.body.appendChild(s),s.click(),this.filesample_opt=null,this.closeDialog()}).catch(t=>{console.error(t),this.filesample_opt=null,this.closeDialog()})},addFile(t){console.log(t),this.loading_value=!0},afterComplete(t,e){if("success"==t.status){const t=document.getElementById("file_title");t.classList.replace("d-none","d-block")}this.loading_value=!1},uploadSuccess(t,e){setTimeout(()=>{const t=e.type,s=e.rows;if(this.uploadFileType=t,"normal"==t)this.file_tabs=[{text:"Unit 1",model:""}],this.file_input_row=[[]],s.length>0&&(this.bookmaking_excel_data=s,s.forEach(t=>{this.file_input_row[0].push({eng:t[0],kor:t[1]})}),this.$refs.myVueDropzone[0].disable());else if("unit"==t){if(e.error_idx.length>0)return this.file_error_msg=JSON.stringify(e.error_idx)+"행의 유닛번호와 유닛명이 일치하지 않습니다.",this.openDialog("fileErrorExist"),!1;this.file_tabs=[],this.file_input_row=[],e.unit_infos.forEach(t=>{this.file_tabs.push({text:t.unit_name,model:t.unit_name})});for(let t=0;t0?this.openDialog("del_unit_confirm"):this.newDelUnit())},newDelUnit(){const t=+this.tab.split("-")[1];let e=this.tabs_obj[this.tabs[t]];"file"==e&&this.extra_format_mode&&(e="extra_format");const s=this.getTabIdx(e),a=/^Unit\s+(\d+)$/,i=this[e+"_tabs"][s].text.match(a);let o=i?+i[1]:null;for(let n=s+1;n1?1:0;if("file"!==t&&(l=this[t+"_tabs"].length>2?1:0),""!=t){if(e=1!=l?this[t+"_tabs"].some(t=>""!=t.model):1,a=this[t+"_input_row"].length>1?1:0,s=1!=a?this[t+"_input_row"][0].some(t=>""!=t.eng||""!=t.kor):1,i=(this[t+"_bookname"]?1:0)+(this[t+"_publisher"]?1:0)+(this[t+"_publishdate"]?1:0)+(this[t+"_select_grade"]?1:0)+l+(e?1:0)+a+(s?1:0),n=(this[t+"_bookname"]?1:0)+(this[t+"_select_grade"]?1:0)+(this[t+"_input_row"][0][0].eng?1:0)+(this[t+"_input_row"][0][0].kor?1:0),"format"===t){let t=!0;for(let e=0;e0)}this.$store.state.editing_status=o>0},setTabElement(t){let e=document.getElementsByClassName("custom_tab");for(const a of e)a.classList.remove("v-tab--active");let s=document.getElementById("custom_tab_"+t);s.classList.add("v-tab--active")},clickTab(t){let e=this.tab.split("-")[1];if(this.tab!="tab-"+t){const s=this.tabs_obj[this.tabs[e]];this.editingCheck(s),this.$store.state.editing_status?(this.move_tab_num=t,this.openDialog("move_tab")):(this.tab="tab-"+t,this.setTabElement(t))}},moveTab(){this.moveTabKey+=1,this.closeDialog(),this.setTabElement(this.move_tab_num),this.select_temp_id=null,this.temp_id=null,this.tab="tab-"+this.move_tab_num},bankMode(){this.bank_mode=!this.bank_mode},formatDismatch(){this.format_dismatch=!1,this.format_dismatch_word=!1,this.format_dismatch_text="",this.format_dismatch_last=0;const t=2===this.newstep.format?this.format_word_row:this.format_input_row;let e=[];for(let s=0,a=t.length;s0){e=[...new Set(e)];for(let t=0,s=e.length;t{this.loading_value=!1,200===t.status?(this.tempData=t.data,this.openDialog("tempDataDialog")):204===t.status&&this.openAlert("temporary_null_data")}).catch(t=>{console.error(t),this.loading_value=!1})},temporarySave(t){const e=this[t+"_bookname"];if(""===e.replace(/ /g,""))return this.openDialog("null_book_name"),!1;const s=this.$storage.get("user"),a={temp_id:this.temp_id,academy_id:+s.academy_id,user_id:+s.id,tabtype:t,bookname:e,grade:this[t+"_select_grade"]?this[t+"_select_grade"].value:null,publisher:this[t+"_publisher"]||null,publishdate:this[t+"_publishdate"]||null,booktype:this[t+"_select_booktype"]||null,division_num:this[t+"_division_num"]||null,tabs:this[t+"_tabs"]||null,input_row:this[t+"_input_row"]||null};if("format"==t){a.dropzone=this.format_textarea,a.step=this.newstep[t],a.etc={};const e=this.getRowsCnt("format","word");e>0&&(a.etc.word_row=this.format_word_row||null),a.etc.remainWords=this.remainWords}else if("file"==t){a.step=this.newstep[t],a.etc={uploadFileType:this.uploadFileType};const e=this.getRowsCnt("file","word");e>0&&(a.etc.word_row=this.file_word_row||null),a.etc.remainWords=this.remainWords}else"extra_format"==t&&(a.dropzone=this.extra_format_textarea,a.etc={apply_cnt:this.extra_format_apply_cnt});this.$axios.post(this.$host+"/book/temporarysave",a).then(t=>{200===t.status&&(this.temp_id=+t.data,this.openAlert("temporary_save_success"))}).catch(t=>{console.error(t)})},async temporaryLoad(){if(this.temporary_loading=!0,!this.select_temp_id)return!1;if(this.temp_id===this.select_temp_id)return this.closeDialog("tempDataDialog"),this.openAlert("temporary_load_current"),!1;setTimeout(()=>{this.loading_value=!0},0);const t=this.tempData.find(t=>+t.id===+this.select_temp_id);if(!t)return!1;const e=t.tabtype,s=this.tabs.findIndex(t=>"direct"==e&&"직접 생성"==t||"format"==e&&"서식 생성"==t||["file","extra_format"].includes(e)&&"파일 생성"==t?t:void 0);this.tab="tab-"+s,await this.setTabElement(s),await this.$nextTick(()=>{if(this[e+"_bookname"]=t.bookname,this[e+"_select_grade"]=this.book_grade.find(e=>e.value==t.grade),this[e+"_publisher"]=t.publisher,this[e+"_publishdate"]=t.publishdate,this[e+"_select_booktype"]=t.booktype,"format"==e){if(t.dropzone&&(this.formatPasteEvent("format"),this.formatTextareaEvent(t.dropzone)),t.etc){const e=JSON.parse(t.etc);e.word_row&&(this.format_word_row=e.word_row),e.remainWords&&(this.remainWords=e.remainWords)}this.newstep.format=+t.step}else if("file"==e){if(t.etc){const e=JSON.parse(t.etc);this.uploadFileType=e.uploadFileType,e.word_row&&(this.file_word_row=e.word_row),e.remainWords&&(this.remainWords=e.remainWords)}this.file_division_num="5개",this.newstep.file=+t.step,this.file_view=1===+t.step?"word":"input",this.wrap_key++}else if("extra_format"==e&&(t.dropzone&&(this.formatPasteEvent("extra"),this.formatTextareaEvent(t.dropzone)),t.etc)){const e=JSON.parse(t.etc);this.extra_format_apply_cnt=e.apply_cnt}["file","extra_format"].includes(e)&&(this.extra_format_mode="file"!==e,setTimeout(()=>{const t=document.getElementById(e+"_title");t.classList.replace("d-none","d-block");const s=document.getElementById(e+"_tab_section");s.classList.replace("d-none","d-block");let a=document.getElementById("dropzone");a&&(a.style.display="none"),a=document.getElementById("dropzone-btn-wrap"),a&&(a.style.display="none")},100)),this[e+"_tabs"]=JSON.parse(t.tabs),this[e+"_tabs"].forEach((t,s)=>{t.selected&&(this[e+"_tab"]=`${e}-tab-${s}`)}),this[e+"_input_row"]=JSON.parse(t.input_row),this.editingCheck(e),"format"===e&&this.formatDismatch()}),this.temp_id=this.select_temp_id,this.closeDialog("tempDataDialog"),this.openAlert("temporary_load_success"),setTimeout(()=>{this.loading_value=!1,this.temporary_loading=!1},0)},temporaryDelete(){this.$axios.post(this.$host+"/book/temporarydelete",{temp_id:this.select_temp_id}).then(t=>{200===t.status&&(this.select_temp_id=null,this.temp_id=null,this.closeDialog(),this.openAlert("temporary_del_success"))}).catch(t=>{console.error(t)})},clickInstead(){document.getElementById("fileinput").click()},resize(t=1,e=1){let s;this.$refs.cropper.setCoordinates([({coordinates:a,imageSize:i})=>(s=a,{width:a.width*t,height:a.height*e}),({coordinates:t,imageSize:e})=>({left:s.left+(s.width-t.width)/2,top:s.top+(s.height-t.height)/2})])},center(){this.$refs.cropper.setCoordinates(({coordinates:t,imageSize:e})=>({left:e.width/2-t.width/2,top:e.height/2-t.height/2}))},rotate(t){this.$refs.cropper.rotate(t)},chooseOcrImage(t){if(t){const e=new FileReader;e.readAsDataURL(t),e.addEventListener("load",()=>{this.cropper_img=e.result}),this.cropper_modal=!0}},changeCropperOption(t){"x2"==t?this.resize(2,2):"xh"==t?this.resize(1,2):"xw"==t?this.resize(2,1):"center"==t?this.center():"rotate"==t&&this.rotate(90)},cropperResult(){this.loading_value=!0;const t=this.$refs.cropper.getResult().canvas,e=()=>{this.loading_value=!1,this.cropper_img=null,this.file_input_key++};this.$axios.post(this.$host+"/book/visionai",{dataURL:t.toDataURL()}).then(t=>{if(200===t.status){const e=t.data.responses[0];if(e&&e.fullTextAnnotation){const t=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/;t.test(e.fullTextAnnotation.text)?this.format_textarea=e.fullTextAnnotation.text:this.format_textarea=e.fullTextAnnotation.text.replace(/\n/g," "),this.formatPasteEvent("format"),this.formatTextareaEvent(this.format_textarea)}else this.openAlert("fail_ocr_regonition");this.cropper_modal=!1}e()}).catch(t=>{console.error(t),e()})},dropzoneOver(){const t=document.getElementById("dropzone-btn-wrap");t.style.display="none"},dropzoneLeave(){const t=document.getElementById("dropzone-btn-wrap");t.style.display="block"},extraBack(){this.$store.dispatch("soundEffectPlay","click_button"),this.extra_format_textarea="",this.extra_format_mode=!this.extra_format_mode,this.extra_format_apply_cnt=[],this.extra_format_input_row=[[{eng:"",kor:""}]],this.extra_format_tabs=[{text:"Unit 1",model:"",selected:!0},{text:"add",model:""}];const t=document.getElementById("extra_format_title");t.classList.replace("d-block","d-none");const e=document.getElementById("extra_format_tab_section");e.classList.replace("d-block","d-none")},async formatSubmitEvent(){const t=this.newstep.format;0===t?(this.newstep.format=1,this.setScroll("format")):1===t&&0==this.format_select_bookkind?(this.extracting_words=!0,await this.pickWords("format"),setTimeout(()=>{this.newstep.format=2,this.extracting_words=!1,this.format_tab="format-tab-0",this.setScroll("format")},500)):2!==t&&(1!==t||1!=this.format_select_bookkind&&2!=this.format_select_bookkind)||this.makeBookConfirm("format")},moveNewStep(t){if(this.newstep.format>t){this.newstep.format=t;const e=document.getElementById("bookmakingvue");e.scrollTo(0,0)}},setScroll(t){const e=document.getElementById("bookmakingvue"),s=document.getElementById("headerdefault"),a=document.getElementsByClassName("caution-col format")[0];if("format"==t)setTimeout(()=>{e.scrollTo(0,0),this.newstep.top=e.scrollTop+a.getBoundingClientRect().bottom-s.getBoundingClientRect().height,2===this.newstep.format&&e.scrollTo(0,this.newstep.top)},0);else if("file"==t){const t=document.getElementById("bookmakingvue");t.scrollTo(0,0),setTimeout(()=>{const e=document.getElementById("file_tab_section"),s=document.getElementById("headerdefault");t.scrollTo(0,e.getBoundingClientRect().top-s.getBoundingClientRect().height)},0)}},formatScroll(t){if(this.newstep.format>0){const e=t.target,s=e.children[0],a=e.scrollTop,i=document.getElementsByClassName("newstep-format-wrap")[0],o=document.getElementById("format-main-wrap"),n=document.getElementById("app"),l=window.getComputedStyle(n).zoom;0!==this.newstep.top&&a>this.newstep.top?(i.setAttribute("style",`position: fixed; z-index: 10; width: ${s.getBoundingClientRect().width/l-24}px; top: ${e.getBoundingClientRect().top}px; padding: 12px 0; background-color: white;`),o.setAttribute("style",`margin-top: ${i.getBoundingClientRect().height}px;`)):(i.setAttribute("style",""),o.setAttribute("style",""))}},fileStepChange(){this.closeDialog(),this.newstep.file=0,this.file_view="input",this.wrap_key++;const t=document.getElementById("file_title");t.classList.replace("d-none","d-block"),this.setScroll("file")}},beforeDestroy(){this.allBusDestroy()}},Zi=Ki,to=(s("a213"),Object(u["a"])(Zi,ci,di,!1,null,null,null)),eo=to.exports,so=s("71d9"),ao=s("2a7f"),io=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"white",attrs:{id:"booklistvue",align:"center",justify:"center"}},[e(j["a"],{staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3 h-100",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("교재 목록")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 ls-m-1"},[e("small",[t._v("온라인 학습 교재 목록을 확인합니다.")])])]),e(J["a"],{staticClass:"elevation-0 main-tabs",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),e(W["a"],{key:1,attrs:{href:"#tab-1",ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v("스케쥴 교재")])]),e(W["a"],{key:2,attrs:{href:"#tab-2",ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v("만든 교재")])]),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?[e("div",{staticClass:"py-2 pos-rel"},[e("select-box",{key:t.schedule.key.overflow,attrs:{items:t.schedule.sel_list,disabled:t.chkSelect_S,itemDisabled:"customdisabled"},on:{change:function(e){return t.selectRowEvent(e,"schedule")}}}),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",placeholder:"스케쥴명 검색",id:"search",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},on:{keydown:function(e){return t.search_keyword(e,"schedule")},"click:append":function(e){return t.search_icon_click(e,"schedule")}},model:{value:t.schedule.search,callback:function(e){t.$set(t.schedule,"search",e)},expression:"schedule.search"}}),"list"==t.mode?e(L["a"],{staticClass:"float-right btn-in-menu",attrs:{color:"success",elevation:"0"},on:{click:function(e){return t.openDialog("add_folder_confirm")}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-plus")]),t._v(" "),e("b",[t._v("폴더 생성")])],1):t._e(),"folder"==t.mode?[e(L["a"],{staticClass:"float-right btn-in-menu white--text",attrs:{color:"red",dense:"",depressed:""},on:{click:function(e){return t.openDialog("del_folder_confirm")}}},[e(q["a"],{staticStyle:{"margin-top":"-1px"},attrs:{dark:"",small:""}},[t._v("mdi-trash-can")]),t._v(" 폴더 삭제\n ")],1),e("div",{staticClass:"float-right grey--text pos-abs translate-y",staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},style:{right:t.folderNameRight+"px"}},[e(q["a"],{staticClass:"mr-2",attrs:{small:"",color:"grey"}},[t._v("mdi-folder-open")]),e("div",{staticClass:"d-inline-block",staticStyle:{"margin-top":"-4px"}},[t._v("\n "+t._s(t.select_folder_name)+"\n ")])],1)]:t._e(),e("div",{staticStyle:{clear:"both"}})],2),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.schedule.key.datatable,staticClass:"schedule_table",attrs:{headers:t.schedule.headers_arr,items:t.schedule.items,"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.schedule.hide_default_footer,"single-expand":!0,"show-expand":!0,expanded:t.s_expanded,"item-key":"id","expand-icon":"mdi-menu-down","no-data-text":"등록된 교재가 없습니다.","no-results-text":"검색된 교재가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},options:t.s_options,page:t.schedule.page,"items-per-page":t.schedule.items_per_page,"sort-by":t.schedule.sortby,"sort-desc":t.schedule.sortdesc,"server-items-length":t.schedule.items_length,"show-select":""},on:{"update:expanded":function(e){t.s_expanded=e},"click:row":t.toggleClassRow,"update:options":function(e){t.s_options=e},"toggle-select-all":function(e){return t.selectAllBook("s",e)}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"schedule",defaultProps:s,on:a,hasFolder:!0,items:t.schedule.items},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.s_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.s_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-select",fn:function({item:s}){return["folder"!=s.category&&"back"!=s.id?e(Ye["a"],{attrs:{color:"info",value:s.isSelected},on:{input:function(e){return t.selectBook("s",s)}}}):t._e()]}},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a,item:i}){return["folder"==i.category?e("div",{staticClass:"folder-hover"},[a?t._e():e(q["a"],{attrs:{color:"yellow"}},[t._v("\n mdi-folder-open\n ")])],1):"back"==i.id?e("div",[a?t._e():e(q["a"],{staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")])],1):e("div",[e(q["a"],{on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i)}}},[t._v("\n "+t._s(a?"mdi-menu-down":"mdi-menu-right")+"\n ")])],1)]}},{key:"item.booktype",fn:function({item:s}){return[s.id.includes("folder")?s.id.includes("folder")||s.id.includes("back")?e("span",{class:"back"==s.id?"grey--text ntr":"ntr"},[t._v("\n "+t._s(s.bookname)+"\n ")]):t._e():e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(2===+s.booktype_m?"단어":"일반")+" 교재\n ")])]}},{key:"item.bookname",fn:function({item:s}){return[s.id.includes("folder")?t._e():e("span",[t._v("\n "+t._s(s.bookname)+"\n ")])]}},{key:"item.total_cnt",fn:function({item:s}){return[s.id.includes("folder")?t._e():e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(t.getUnitCnt(s))+"\n ")])]}},{key:"item.sentence_cnt",fn:function({item:s}){return["folder"!=s.category&&"back"!=s.id?e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.sentence_cnt)+"개\n ")]):t._e()]}},{key:"item.postdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.postdate)+"\n ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.schedule.headers_arr.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return["folder"!=s.category?t._l(t.getTrLength(s),(function(a){return e("tr",{key:"expanded-tr-"+a},[e("td"),e("td"),e("td",{staticClass:"text-left"},[1==a||a==t.getTrLength(s)?e("div",{staticClass:"dotted float-right"}):t._e()]),e("td",{staticClass:"text-left",staticStyle:{"vertical-align":"middle"}},[e(U["a"],[e(j["a"],{staticClass:"py-0 pos-rel",attrs:{cols:"2"}},[e("b",{staticClass:"mr-2 text-usn"},[1===a?[t._v("\n 교재 설정\n ")]:a===t.getTrLength(s)?[t._v("\n 배포 인원\n ")]:t._e()],2)]),e(j["a"],{staticClass:"py-0",staticStyle:{"white-space":"normal"},attrs:{cols:"10"}},[t._l(t.getTrLength(s)-1,(function(i){return[a==i?e("span",{key:`col-span-${a}-${i}`,staticClass:"text-usn",domProps:{innerHTML:t._s(t.getColSapnContent(s,i))}}):t._e()]})),a===t.getTrLength(s)?["string"==typeof s.sub_data.users?e("span",{staticClass:"grey--text text-usn"},[t._v("\n "+t._s(s.sub_data.users)+"\n ")]):"object"==typeof s.sub_data.users?e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.sub_data.users.length)+"명\n "+t._s(t.getScheduleUsers(s))+"\n ")]):t._e()]:t._e()],2)],1)],1),e("td",{staticClass:"px-0"},[a==t.getTrLength(s)?e(L["a"],{attrs:{text:"",depressed:"",tile:"",block:"",color:"grey"},on:{click:function(e){return t.addStudent(s.sub_data.users)}}},[e(q["a"],{staticClass:"mr-1",attrs:{small:"",color:"grey"}},[t._v("mdi-plus-circle")]),t._v("\n 인원추가\n ")],1):t._e()],1)])})):t._e()]},proxy:!0}],null,!0)})],1)]}}],null,!0),model:{value:t.check_sids,callback:function(e){t.check_sids=e},expression:"check_sids"}})],1)]:2==s?[e("div",{staticClass:"py-2 pos-rel"},[e("select-box",{key:t.book.key.overflow,attrs:{items:t.book.sel_list,buttonClass:"c-edit-overflow-btn border-info",disabled:t.chkSelect_B,itemDisabled:"customdisabled"},on:{change:function(e){return t.selectRowEvent(e,"book")}}}),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",placeholder:"교재명 검색",id:"search",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},on:{keydown:function(e){return t.search_keyword(e,"book")},"click:append":function(e){return t.search_icon_click(e,"book")}},model:{value:t.book.search,callback:function(e){t.$set(t.book,"search",e)},expression:"book.search"}}),"list"==t.mode?e(L["a"],{staticClass:"float-right btn-in-menu",attrs:{color:"success",elevation:"0"},on:{click:function(e){return t.openDialog("add_folder_confirm")}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-plus")]),t._v(" "),e("b",[t._v("폴더 생성")])],1):t._e(),"folder"==t.mode?[e(L["a"],{staticClass:"float-right btn-in-menu white--text",attrs:{color:"red",dense:"",depressed:""},on:{click:function(e){return t.openDialog("del_folder_confirm")}}},[e(q["a"],{staticStyle:{"margin-top":"-1px"},attrs:{dark:"",small:""}},[t._v("mdi-trash-can")]),t._v(" 폴더 삭제\n ")],1),e("div",{staticClass:"float-right grey--text pos-abs translate-y",staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},style:{right:t.folderNameRight+"px"}},[e(q["a"],{staticClass:"mr-2",attrs:{small:"",color:"grey"}},[t._v("mdi-folder-open")]),e("div",{staticClass:"d-inline-block",staticStyle:{"margin-top":"-4px"}},[t._v("\n "+t._s(t.select_folder_name)+"\n ")])],1)]:t._e(),e("div",{staticStyle:{clear:"both"}})],2),e("div",{staticClass:"bg-white height-inherit"},[e(R["a"],{key:t.book.key.datatable,staticClass:"book_table",attrs:{headers:t.book.headers_arr,items:t.book.items,"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.book.hide_default_footer,"single-expand":!0,"show-expand":!0,expanded:t.b_expanded,"item-key":"id","expand-icon":"mdi-menu-down","no-data-text":"등록된 교재가 없습니다.","no-results-text":"검색된 교재가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},options:t.b_options,page:t.book.page,"items-per-page":t.book.items_per_page,"sort-by":t.book.sortby,"sort-desc":t.book.sortdesc,"server-items-length":t.book.items_length,"show-select":""},on:{"update:expanded":function(e){t.b_expanded=e},"click:row":t.toggleClassRow,"update:options":function(e){t.b_options=e},"toggle-select-all":function(e){return t.selectAllBook("b",e)}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"book",defaultProps:s,on:a,hasFolder:!0,items:t.book.items},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.b_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.b_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-select",fn:function({item:s}){return["folder"!=s.category&&"back"!=s.id?e(Ye["a"],{attrs:{color:"info",value:s.isSelected},on:{input:function(e){return t.selectBook("b",s)}}}):t._e()]}},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a,item:i}){return["folder"==i.category?e("div",{staticClass:"folder-hover"},[a?t._e():e(q["a"],{attrs:{color:"yellow"}},[t._v("\n mdi-folder-open\n ")])],1):"back"==i.id?e("div",[a?t._e():e(q["a"],{staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")])],1):e("div",[e(q["a"],{directives:[{name:"show",rawName:"v-show",value:a,expression:"isExpanded"}],on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i)}}},[t._v("mdi-menu-down")]),e(q["a"],{directives:[{name:"show",rawName:"v-show",value:!a,expression:"!isExpanded"}],on:{click:function(e){e.stopPropagation(),s(!a),t.toggleClassRow(i)}}},[t._v("mdi-menu-right")])],1)]}},{key:"item.booktype",fn:function({item:s}){return[s.id.includes("folder")?s.id.includes("folder")||"back"==s.id?e("span",{staticClass:"text-usn",class:"back"==s.id?"grey--text ntr":"ntr"},[t._v("\n "+t._s(s.bookname)+"\n ")]):t._e():e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(2==+s.booktype_m?"단어 교재":"일반 교재")+"\n ")])]}},{key:"item.bookname",fn:function({item:s}){return[s.id.includes("folder")?t._e():e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.bookname)+"\n "),e("span",{domProps:{innerHTML:t._s(t.setBookTag(s))}})])]}},{key:"item.total_cnt",fn:function({item:s}){return[s.id.match("folder")?t._e():e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(t.getUnitCnt(s))+"\n ")])]}},{key:"item.sentence_cnt",fn:function({item:s}){return["folder"!=s.category&&"back"!=s.id?e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.sentence_cnt)+"개\n ")]):t._e()]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.book.headers_arr.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return["folder"!=s.category?t._l(s.popquiz_type?4:3,(function(a){return e("tr",{key:"expanded-tr-"+a},[e("td"),e("td"),e("td",{staticClass:"text-left"},[a<=3||4==a&&s.popquiz_type?e("div",{staticClass:"dotted float-right"}):t._e()]),e("td",{staticClass:"text-left",staticStyle:{"vertical-align":"middle"}},[e(U["a"],[e(j["a"],{staticClass:"py-0",attrs:{cols:"2"}},[e("b",{staticClass:"mr-2 text-usn"},[1==a?[t._v("학년")]:2==a?[t._v("제작자")]:3==a?[t._v("제작년도")]:4==a&&s.popquiz_type?[t._v("객관식 보기 출제")]:t._e()],2)]),e(j["a"],{staticClass:"py-0",staticStyle:{"white-space":"normal"},attrs:{cols:"10"}},[e("span",{staticClass:"mr-2 text-usn"},[1==a?[t._v("\n "+t._s(t.getGradeText(s.sub_data.grade))+"\n ")]:2==a?[t._v("\n "+t._s(s.sub_data.publisher)+"\n ")]:3==a?[t._v("\n "+t._s(s.sub_data.publishdate)+"\n ")]:4==a&&s.popquiz_type?[t._v("\n "+t._s("all"==s.popquiz_type?"교재 전체":"유닛 내에서만 출제")+"\n ")]:t._e()],2)])],1)],1)])})):t._e()]},proxy:!0}],null,!0)})],1)]}}],null,!0),model:{value:t.check_bids,callback:function(e){t.check_bids=e},expression:"check_bids"}})],1)]:t._e(),e("pre-cautions",{attrs:{type:s,data:t.$data}})],2)})),1)],1)],1)],1),e("Dialogs",[e("div",{attrs:{slot:"add_folder_confirm"},slot:"add_folder_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"mt-6 mb-5 title"},[e("b",[t._v("생성할 폴더명을 입력해주세요.")])]),e("div",{staticStyle:{width:"80%",margin:"0 auto"}},[e(X["a"],{ref:"add_folder_name_field",staticClass:"text-center c-folder-input",attrs:{dense:"",filled:"","single-line":"",solo:"",flat:"",clearable:!0,color:"success",type:"text",rules:t.add_folder_rules,required:""},model:{value:t.add_folder_name,callback:function(e){t.add_folder_name=e},expression:"add_folder_name"}})],1)]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"50%"},attrs:{"x-large":"",text:""},on:{click:t.addFolder}},[e("h3",{staticClass:"title-1"},[e("b",{class:["success--text"]},[t._v("생성")])])]),e(L["a"],{staticClass:"ml-0",staticStyle:{width:"50%","border-left":"thin solid #edeeef","border-bottom-left-radius":"0px","border-top-left-radius":"0px"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"duplicate_folder_name"},slot:"duplicate_folder_name"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("중복된 폴더명이 있습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{staticClass:"radio-dialog",attrs:{slot:"move_folder"},slot:"move_folder"},[e(M["c"],{staticClass:"justify-start text-center flex"},[e("h3",{staticClass:"title"},[e("b",[t._v(t._s("schedule"==t.tabtype?"스케쥴":"교재")+" 이동")])]),e("div",{staticStyle:{"margin-left":"4px"},on:{click:t.setSortScheduleMove}},t._l(["up","down"],(function(s){return e("div",{key:"sort-icon-"+s,class:`no-position sort_icon_${s} move_modal_sort_icon_${s}`,attrs:{id:`${t.tabtype}_move_modal_sort_icon_${s}`}})})),0)]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{key:t.mfg_key,staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.select_move_folder},model:{value:t.move_folder_group,callback:function(e){t.move_folder_group=e},expression:"move_folder_group"}},t._l("tab-1"==t.tab?t.schedule.all_folder:t.book.all_folder,(function(t,s){return e(nt["a"],{key:"fradioitem-"+s,staticClass:"custom-radio",attrs:{label:t.text,value:t.value,color:"success"}})})),1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.moveFolderSubmit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"move_folder_btn cursor"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"del_book_confirm"},slot:"del_book_confirm"},[e(M["b"],{staticClass:"text-center py-6 del-confirm-dialog"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},["schedule"==t.tabtype?[e("b",{attrs:{id:"del_title"}},[t._v("\n "+t._s(t.check_sids.length>1?t.check_sids.length+"개 항목":t.getName("schedule"))+"\n 삭제하시겠습니까?\n ")])]:"book"==t.tabtype?[e("b",{attrs:{id:"del_title"}},[t._v("\n "+t._s(t.check_bids.length>1?t.check_bids.length+"개 항목":t.getName("book"))+"\n 삭제하시겠습니까?\n ")])]:t._e(),e("b",{attrs:{id:"del_subtitle"}},[t._v("\n 삭제하려면 "),e("strong",[t._v('"진짜삭제"')]),t._v("를 입력하세요.\n ")]),e("input",{attrs:{id:"del_input",type:"text",autocomplete:"off"},domProps:{value:t.del_confirm_text},on:{input:t.delConfirmInput}})],2)])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t del-confirm-dialog"},[e(L["a"],{staticClass:"dialog-twobtn left",class:"disabled-"+("진짜삭제"!==t.del_confirm_text),attrs:{"x-large":"",text:"",disabled:"진짜삭제"!==t.del_confirm_text},on:{click:t.delBook}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"del_folder_confirm"},slot:"del_folder_confirm"},[e(M["b"],{staticClass:"text-center py-6 del-confirm-dialog"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",{attrs:{id:"del_title"}},[t._v(" "+t._s(t.getName("folder"))+" 삭제하시겠습니까? ")]),e("b",{attrs:{id:"del_subtitle"}},[t._v("\n 삭제하려면 "),e("strong",[t._v('"진짜삭제"')]),t._v("를 입력하세요.\n ")]),e("input",{attrs:{id:"del_input",type:"text",autocomplete:"off"},domProps:{value:t.del_confirm_text},on:{input:t.delConfirmInput}})])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t del-confirm-dialog"},[e(L["a"],{staticClass:"dialog-twobtn left",class:"disabled-"+("진짜삭제"!==t.del_confirm_text),attrs:{"x-large":"",text:"",disabled:"진짜삭제"!==t.del_confirm_text},on:{click:t.delFolder}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"full_dialog_close_confirm"},slot:"full_dialog_close_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("변경사항은 저장되지 않습니다.")]),e("br"),e("b",[t._v("취소하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){t.closeDialog(!0),t.select_class=null,t.change_cnt=0,t.change_plus_cnt=0,t.change_minus_cnt=0,t.full_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"full_dialog_submit_confirm"},slot:"full_dialog_submit_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("변경사항을 저장하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.addScheduleStudentSubmit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1)]),e(ot["a"],{staticStyle:{"box-shadow":"unset"},attrs:{transition:!1,fullscreen:"","hide-overlay":"",transition:"dialog-bottom-transition"},model:{value:t.full_dialog,callback:function(e){t.full_dialog=e},expression:"full_dialog"}},[e(it["a"],[e(so["a"],{attrs:{dark:"",color:"success",elevation:"0"}},[e(L["a"],{staticClass:"ml-3",attrs:{icon:"",dark:""},on:{click:t.closeCheck}},[e(q["a"],[t._v("mdi-close")])],1),e(ao["a"],[t._v("인원 설정")])],1),e(M["b"],{staticClass:"pa-0 grey lighten-3 height-calc-main"},[e(U["a"],{staticClass:"w-100 h-100 mgauto"},[e(j["a"],{staticClass:"pa-0 pr-1 h-100",attrs:{cols:"4"}},[e(H["a"],{staticClass:"h-100",attrs:{color:"white"}},[e(Ga["a"],{staticClass:"justify-center title grey lighten-4",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e("div",{staticClass:"mgauto text-center grey lighten-2 py-1 px-12",staticStyle:{"border-radius":"50px"}},[e("span",{staticClass:"nnfont"},[e("small",[e("b",{staticClass:"black--text"},[t._v("현재 인원 ")])]),e("b",{staticClass:"success--text"},[t._v(t._s(t.schedule.now_user?t.schedule.now_user.length:0)+"명")])])])]),e(U["a"],{staticClass:"w-100 mgauto height-full-dialog-item1 over-y-scroll"},[e(j["a"],{staticClass:"pa-0"},[e(Ss["a"],{attrs:{flat:"",subheader:"",dense:""}},[e(Ds["a"],{attrs:{multiple:"","active-class":""},model:{value:t.now_users_settings,callback:function(e){t.now_users_settings=e},expression:"now_users_settings"}},t._l(t.schedule.now_user,(function(s,a){return e($s["a"],{key:"now-user-list-"+a,staticClass:"border-b-1-ng",scopedSlots:t._u([{key:"default",fn:function({active:a}){return[e(Ia["a"],[e(ce["a"],{attrs:{outlined:"",color:"info"},on:{change:function(e){return t.minusScheduleStudent(s,"checkbox")}},model:{value:s.model,callback:function(e){t.$set(s,"model",e)},expression:"item.model"}})],1),e(As["a"],{on:{click:function(e){return t.minusScheduleStudent(s,"row")}}},[e(As["b"],[t._v(t._s(s.name))])],1)]}}],null,!0)})})),1)],1)],1)],1)],1)],1),e(j["a"],{staticClass:"pa-0 px-1 h-100",attrs:{cols:"4"}},[e(H["a"],{staticClass:"h-100",attrs:{color:"white"}},[e(Ga["a"],{staticClass:"justify-center title grey lighten-4 px-12",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e(kt["a"],{staticClass:"class_v_select nnfont",staticStyle:{"font-size":"smaller",width:"100px",height:"35px !important"},attrs:{outlined:"","hide-details":"",flat:"",rounded:"","single-line":"",solo:"",dense:"",label:"인원추가",items:t.schedule.class_items},on:{change:t.getStudentInClass},scopedSlots:t._u([{key:"selection",fn:function({item:s}){return[e("span",{staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(s.text))])]}}]),model:{value:t.select_class,callback:function(e){t.select_class=e},expression:"select_class"}})],1),e(U["a"],{staticClass:"w-100 mgauto height-full-dialog-item1 over-y-scroll"},[0==t.class_item_select_status?e(j["a"],{staticClass:"text-center"},[e("span",{staticClass:"grey--text"},[t._v("클래스를 선택하세요.")])]):e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},["string"==typeof t.schedule.class_students?e(Ss["a"],{staticClass:"py-0",attrs:{dense:""}},[e(Ds["a"],[e($s["a"],{staticStyle:{"border-bottom":"1px solid lightgray"},attrs:{"active-class":"info--text"}},[t._v("\n "+t._s(t.schedule.class_students)+"\n ")])],1)],1):e(Ss["a"],{staticClass:"py-0",attrs:{dense:""}},[e(Ds["a"],{model:{value:t.class_students_settings,callback:function(e){t.class_students_settings=e},expression:"class_students_settings"}},t._l(t.schedule.class_students,(function(s,a){return e($s["a"],{key:"class_students_key_"+a,staticClass:"list-action-button border-b-1-ng",staticStyle:{height:"49px"},attrs:{id:"class_students_"+a,"active-class":"info--text"},on:{click:function(e){return t.addScheduleStudent(s)}},scopedSlots:t._u([{key:"default",fn:function({active:a}){return[e(As["a"],[e(As["b"],[t._v(t._s(s.text))])],1),e(Ia["a"],[e(L["a"],{class:s.model?"light-grey grey--text":"success white--text",attrs:{depressed:"",rounded:""}},[e("b",[t._v("추가")])])],1)]}}],null,!0)})})),1)],1)],1)],1)],1)],1),e(j["a"],{staticClass:"pa-0 pl-1 h-100",attrs:{cols:"4"}},[e(H["a"],{staticClass:"h-100 grey lighten-4"},[e(Ga["a"],{staticClass:"justify-center title grey lighten-4",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e("h4",{staticClass:"nnfont"},[e("small",[e("b",[t._v("인원 변동")])])])]),e(U["a"],{staticClass:"w-100 mgauto border-t-1-ng pb-2 height-full-dialog-right grey lighten-3 over-y-scroll"},[e(j["a"],{staticClass:"pa-0 white"},[e(Ss["a"],{staticClass:"pb-0",attrs:{flat:"",subheader:"",dense:""}},[e(Ds["a"],{model:{value:t.now_users_settings,callback:function(e){t.now_users_settings=e},expression:"now_users_settings"}},t._l(t.schedule.update_now_user,(function(s,a){return e($s["a"],{key:"update-now-user-list-"+a,staticClass:"border-b-1-ng",staticStyle:{height:"49px"},style:{backgroundColor:t.getTypeColor(s.type)},scopedSlots:t._u([{key:"default",fn:function({active:a}){return[e(As["a"],[e(As["b"],[t._v(t._s(s.name))])],1),e(Ia["a"],{directives:[{name:"show",rawName:"v-show",value:"add"==s.type||"minus"==s.type,expression:"\n item.type == 'add' || item.type == 'minus'\n "}]},[e(L["a"],{attrs:{icon:""}},[e(q["a"],{attrs:{small:"",color:"black"}},[t._v("\n "+t._s("add"==s.type?"mdi-plus":"mdi-minus")+"\n ")])],1)],1)]}}],null,!0)})})),1)],1)],1)],1),e(U["a"],{staticClass:"w-100 mgauto text-center justify-center",staticStyle:{height:"48px"}},[e(Ga["a"],{staticClass:"justify-center title grey lighten-4"},[e("div",{staticClass:"mgauto text-center grey lighten-2 py-1 px-12",staticStyle:{"border-radius":"50px"}},[e("span",{staticClass:"nnfont"},[e("small",[e("b",{staticClass:"black--text"},[t._v("최종 인원 ")])]),e("b",{staticClass:"success--text"},[t._v(t._s(t.schedule.now_user.length+t.change_plus_cnt-t.change_minus_cnt)+"명")])])])])],1),e(U["a"],{staticClass:"w-100 mgauto",staticStyle:{height:"7vh"}},[e(L["a"],{staticClass:"success",staticStyle:{height:"100% !important"},attrs:{depressed:"",tile:"",block:"",disabled:!(t.change_cnt>0)},on:{click:function(e){return t.openDialog("full_dialog_submit_confirm")}}},[e("b",{class:t.change_cnt>0?"white--text":"grey--text"},[t._v("확인")])])],1)],1)],1)],1)],1)],1)],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e()],1)},oo=[],no={name:"lesson-booklist",components:{preFont:et["a"],preCautions:at["a"],LoadingDialog:bt["a"]},data(){return{mode:"list",tab:null,tabtype:"schedule",tabs:2,label:"항목 선택",schedule:{search:"",sel_list:[{text:"스케쥴 이동",value:"0",customdisabled:!1},{text:"스케쥴 삭제",value:"1"}],headers_arr:[{text:"조회",value:"data-table-expand",align:"center",sortable:!1},{text:"교재 유형",value:"booktype",align:"left",sortable:!0},{text:"교재명",value:"bookname",align:"left",sortable:!0},{text:"학습일차",value:"total_cnt",align:"left",sortable:!0},{text:"전체 문항",value:"sentence_cnt",align:"left",sortable:!0},{text:"생성일",value:"postdate",align:"left",sortable:!0}],items:[],items_length:0,hide_default_footer:!1,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0,all_folder:[],select_row:!1,select_id:"",select_category:"",select_fid:"",add_student_group:0,class_items:[],class_students:[],select_class_students:[],move_tmp:"",now_user:"",update_now_user:"",origin_user_row:0,key:{overflow:0,datatable:0,add_student:0,asd:0}},book:{search:"",sel_list:[{text:"교재 이동",value:"0",customdisabled:!1},{text:"교재 수정",value:"1",customdisabled:!1},{text:"교재 삭제",value:"2"}],headers_arr:[{text:"조회",value:"data-table-expand",align:"center",sortable:!1},{text:"교재 유형",value:"booktype",align:"left",sortable:!0},{text:"교재명",value:"bookname",align:"left",sortable:!0},{text:"학습일차",value:"total_cnt",align:"left",sortable:!0},{text:"전체 문항",value:"sentence_cnt",align:"left",sortable:!0},{text:"생성일",value:"postdate",align:"left",sortable:!0}],items:[],items_length:0,hide_default_footer:!1,all_folder:[],select_row:!1,select_id:"",select_category:"",select_fid:"",page:1,items_per_page:10,sortby:void 0,sortdesc:void 0,key:{overflow:0,datatable:0}},s_expanded:[],b_expanded:[],s_options:{},b_options:{},add_folder_name:"",add_folder_rules:[t=>!!t||""],select_folder_name:"",move_folder_group:0,tmpnum:0,tmpnum2:0,mfg_key:0,full_dialog:!1,select_class:"",class_students_settings:"",class_item_select_status:!1,now_users_settings:[],change_student_key:0,submit_disabled:!0,change_cnt:0,change_plus_cnt:0,change_minus_cnt:0,new_modules_names:{0:"리스닝",1:"문장조합",2:"딕테이션",3:"문장찾기",4:"영작하기",5:"영작하기",6:"스피킹",7:"워드빙고",I:"어휘추론",O:"문단배열",R:"독해점검",B:"빈칸추론",G:"문법점검",GT_0:"이론영상",GT_1:"단어점검",GT_2:"이론점검",GB_1:"기본학습 1",GB_2:"기본학습 2",GB_3:"기본학습 3",GB_4:"기본학습 4",GD_1:"심화학습 1",GD_2:"심화학습 2",E:"동화보기",SBA:"심화학습"},SAC:!1,BAC:!1,check_sids:[],check_bids:[],loading_value:!1,loading_message:"잠시만 기다려주세요.",before_load:!1,before_enter_page:1,api_load:!1,api_load_2:!1,del_confirm_text:"",schedule_desc:!1,book_desc:!1}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){if(this.$route.params.before){const t=this.$route.params.before;this.tab="tab-2",this.mode=t.mode,this.book.page=t.page,this.book.items_per_page=t.items_per_page,this.book.select_fid=t.fid,this.book.sortby=t.sortby,this.book.sortdesc=t.sortdesc,this.select_folder_name=t.folder_name,this.before_enter_page=t.before_enter_page}else this.mode="list";this.getFolder("schedule"),this.getFolder("book"),this.schedule.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"schedule"),this.book.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"book"),this.$route.params.tab&&(this.tab="tab-2")},mounted(){"success"==this.$route.params.dialog&&this.openAlert("create_book_success"),Tr.$on("close_event",t=>{1==t.status&&(this[this.tabtype].key.overflow+=1,this[this.tabtype].key.add_student+=1),this.del_confirm_text=""})},computed:{...Object(tt["b"])(["getGradeText"]),getTypeColor(){return t=>{let e="#ffffff";return"add"==t?e="#ddffdd":"minus"==t&&(e="#fee8e9"),e}},folderNameRight(){const t={xs:100,sm:104,md:108,lg:112,xl:120};return t[this.$vuetify.breakpoint.name]},chkSelect_S(){let t=!0;return"tab-1"==this.tab&&this.check_sids.length>0&&(t=!1),t},chkSelect_B(){let t=!0;return"tab-2"==this.tab&&this.check_bids.length>0&&(t=!1),t},setBookTag(){return t=>{let e="";const s=+t.booktype_m,a=+t.booktype_s;return 2===s?e='VOCA':0===s&&1===a&&(e='NEW'),e}},getName(){return t=>{let e="";const s=t.charAt(0),a={xs:19,sm:20,md:21,lg:22,xl:17},i=a[this.$vuetify.breakpoint.name];if("folder"===t){const t=this[this.tabtype].all_folder.find(t=>t.value===this[this.tabtype].select_fid);if(t&&t.text){const s=t.text.length>i?t.text.substring(0,i)+"...":t.text;e=`${s}${this.isEndWithConsonant(s)?"을":"를"}`}}else if(this[`check_${s}ids`].length>0){const a=this[t].items.find(t=>+t.id===+this[`check_${s}ids`][0].id);if(a&&a.bookname){const t=a.bookname.length>i?a.bookname.substring(0,i)+"...":a.bookname;e=`${t}${this.isEndWithConsonant(t)?"을":"를"}`}}return e}},getTrLength(){return t=>{let e=4;const s=+t.category,a=+t.booktype,i=t.sub_data;return 3===s&&1===a?e=2:i.v_modules&&i.v_modules.length>0&&(e=5),e}},getScheduleUsers(){return t=>{const e=t.sub_data.users.map(t=>t.name);return`(${e.join(", ")})`}},getColSapnContent(){return(t,e)=>{console.log(t,e);const s=+t.category,a=+t.booktype,i=t.sub_data,o=`이미지 ${1!==+i.img_use?"미":""}표기`,n=t=>i[t+"_modules"].length,l=t=>i[t+"_modules_text"].join(" - ");switch(a){case 0:case 1:if(3===s&&1===a)return"듣기학습";if(i.v_modules&&i.v_modules.length>0){if(1===e)return`어휘 ${n("v")}단계 (${l("v")})`;if(2===e){let t="";return 1===s?t="문장":2===s?t="본문":3===s&&(t="지문"),`${t} ${n("study")}단계 (${l("study")})`}if(3===e)return`심화 ${n("test")}단계 (${l("test")})`;if(4===e)return""+o}else{if(1===e)return`학습 ${n("study")}단계 (${l("study")})`;if(2===e)return`시험 ${n("test")}단계 (${l("test")})`;if(3===e)return""+o}break;case 11:if(1===e)return`어휘 ${n("v")}단계 (${l("v")})`;if(2===e)return`본문 ${n("m")}단계 (${l("m")})`;if(3===e)return`심화 ${n("a")}단계 (${l("a")})`;if(4===e)return""+o;break;case 22:if(1===e)return`학습 ${n("study")}단계 (${l("study")})`;if(2===e)return`시험 ${n("test")}단계 (${l("test")})`;if(3===e)return""+o;break;case 31:if(1===e)return`어휘 ${n("v")}단계 (${l("v")})`;if(2===e){let t="";return t=[1,3].includes(s)?"지문":"본문",`${t} ${n("study")}단계 (${l("study")})`}if(3===e)return[1,3].includes(s)?`심화 ${n("test")}단계 (${l("test")})`:"듣기학습";if(4===e)return""+o;break;case 43:if(1===e)return`이론 ${n("v")}단계 (${l("v")})`;if(2===e)return`기본 ${n("m")}단계 (${l("m")})`;if(3===e)return`심화 ${n("a")}단계 (${l("a")})`;if(4===e)return""+o;break;case 50:if(1===e)return`동화 ${n("v")}단계 (${l("v")})`;if(2===e)return`기본 ${n("m")}단계 (${l("m")})`;if(3===e)return`심화 ${n("a")}단계 (${l("a")})`;if(4===e)return""+o;break}}},getUnitCnt(){return t=>{if("back"===t.id)return;let e="차시";const s=+t.category;return 2===s?e=0===+t.type?"단원":"차시":3===s?e=1===+t.booktype?"차시":"문제":4===s&&(e="차시"),`${t.total_cnt}${e}`}}},watch:{tab(t){!this.before_load&&this.$route.params.before||(this.mode="list");const e=document.getElementById(this.tabtype+"_move_modal_sort_icon_up"),s=document.getElementById(this.tabtype+"_move_modal_sort_icon_down");e&&s&&(e.style="",s.style=""),this.tabtype="tab-1"==t?"schedule":"book"},s_options:{handler(){this.schedule.page=this.s_options.page,this.schedule.items_per_page=this.s_options.itemsPerPage,this.schedule.sortby=this.schedule.sortby,this.schedule.sortdesc=this.schedule.sortdesc,this.getAllBook(),this.tmpnum+=1,this.clearAllCheck("s"),this.schedule.items.forEach(t=>{t.isSelected=!1}),this.updatePageListNumberOfStorage(this.$route.path,"schedule",this.s_options.itemsPerPage)},deep:!0},b_options:{handler(){this.book.page=this.b_options.page,this.book.items_per_page=this.b_options.itemsPerPage,this.book.sortby=this.book.sortby,this.book.sortdesc=this.book.sortdesc,this.getAllBook(),this.tmpnum2+=1,this.clearAllCheck("b"),this.updatePageListNumberOfStorage(this.$route.path,"book",this.b_options.itemsPerPage)},deep:!0},mode(t){const e=this[this.tabtype].all_folder;"schedule"===this.tabtype?(this.check_sids=[],this.schedule.key.datatable++):(this.check_bids=[],this.book.key.datatable++);let s=e.findIndex(t=>"movelist"==t.value);"list"==t?-1!=s&&e.splice(0,1):"folder"==t&&-1==s&&e.unshift({text:"목록으로 이동",value:"movelist"})},check_bids(t){this.book.sel_list[1].customdisabled=t.length>1}},methods:{getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],isEndWithConsonant:dt["c"],getFolder(t){this.$axios.get(`${this.$host}/book/${this.$cid}/getfolder/${t}`).then(e=>{if(204==e.status)this[t].sel_list[0].customdisabled=!0;else if(200==e.status){this[t].all_folder=[];let s=Object.values(e.data);for(let e=0,a=s.length;e{console.log(t)})},getAllBook(){if(this.api_load_2)return;this.api_load_2=!0,this.loading_value=!0;const t=this.tabtype,e=this[t].page,s=this[t].items_per_page,a=this[t].sortby||void 0,i=this[t].sortdesc||void 0,o=this[t].search;let n=(+e-1)*s,l=s,r=a,c=i,d=null;"folder"==this.mode&&(d=this[t].select_fid,l=+l-1,n=0==+n?n:+n-1);let h=this.$host+"/book/";h+="list"==this.mode?this.$cid+"/adminbooklist":d+"/getfolderbook",h+=`/${t}/${n}/${l}`,void 0!=r&&(h+=`/${r}/${1==c?"desc":"asc"}`),""!=o&&(h+="?keyword="+o),this.$axios.get(h).then(e=>{if(200==e.status){if(this[t].items=[],this[t].items_length=e.data.records,"folder"==this.mode&&this[t].items.push({id:"back",bookname:this.select_folder_name,total_cnt:"",sentence_cnt:"",type:"",category:"back",postdate:"",booktype_m:"",booktype_s:""}),"schedule"==this.tabtype){let t=Object.values(e.data.rows);for(let e=0,s=t.length;e{const s=Object.entries(e);for(let a=0,i=s.length;a{this.ntrColspan("schedule")})}else if("book"==t){let t=Object.values(e.data.rows);for(let e=0,s=t.length;e{this.ntrColspan("book")})}}else 204==e.status&&(this[t].items=[],this[t].items_length=0,"folder"==this.mode&&(this[t].items_length=1,this[t].items.push({id:"back",bookname:this.select_folder_name,total_cnt:"",sentence_cnt:"",type:"",category:"back",postdate:""}),this.$nextTick(()=>{this.ntrColspan(t)})));setTimeout(()=>{this.api_load_2=!1,this.loading_value=!1},500)}).catch(e=>{console.log(e),this[t].items=[],"folder"==this.mode&&(this[t].items_length=1,this[t].items.push({id:"back",bookname:this.select_folder_name,total_cnt:"",sentence_cnt:"",type:"",category:"back",postdate:""}),this.$nextTick(()=>{this.ntrColspan(t)})),setTimeout(()=>{this.api_load_2=!1,this.loading_value=!1},500)})},ntrColspan(t){setTimeout(()=>{let e,s=document.getElementsByClassName(t+"_table")[0];if(s&&s.getElementsByTagName("tbody")&&(e=s.getElementsByTagName("tbody")[0]),e){let s=e.getElementsByClassName("ntr");if(s)for(let e=0,a=s.length;e=this[t].headers_arr.length+1&&(o.removeChild(i),a.setAttribute("colspan","2"))}}},200)},toggleClassRow(t){const e=this.tabtype;if("back"==t.id)return this.mode="list",this[e].items=[],this[e].search="",this[e].select_fid="",this[e].page=this.before_enter_page,this.getAllBook(),!1;if("folder"==t.category)return this.clearAllCheck(e),this.mode="folder",this[e].select_fid=t.id.replace("folder",""),this.select_folder_name=t.bookname,this[e].search="",this.before_enter_page=this[e].page,this[e].page=1,this.getAllBook(),!1;const s=e.charAt(0);if(this[s+"_expanded"]&&this[s+"_expanded"].length>0&&this[s+"_expanded"][0].id==t.id)this[e].select_id="",this[s+"_expanded"].pop();else if(this[e].select_id=t.id,"schedule"===e)if(""==t.sub_data.users){let e=new Promise((t,e)=>{this.$axios.get(`${this.$host}/book/${this.$cid}/getstudent/${this.schedule.select_id}`).then(e=>{204==e.status?t(204):200==e.status&&t(e.data)}).catch(t=>{e(t)})});e.then(e=>{if(204==e)t.sub_data.users="인원을 추가해주세요.";else{let s=[],a=Object.values(e);for(let t=0,e=a.length;t{console.log(t)})}else this.s_expanded.pop(),this.s_expanded.push(t);else if("book"===e){let e=null;e=t.toggleStatus?new Promise(t=>t()):new Promise(e=>{this.$axios.get(`${this.$host}/book/${t.id}/getexceptbook`).then(s=>{200==s.status&&(t.popquiz_type=s.data.popquiz_type),t.toggleStatus=!0,e()}).catch(t=>{console.log(t)})}),e.then(()=>{this.b_expanded.pop(),this.b_expanded.push(t)})}},addStudent(t){0==this.schedule.class_items.length&&this.$axios.get(`${this.$host}/class/${this.$cid}/getclassroom?tid=${this.$id}_${this.$uclass}`).then(t=>{if(200==t.status){let e=Object.values(t.data);for(let t=0,s=e.length;t{console.log(t)}),"string"==typeof t?(this.schedule.now_user=[],this.schedule.update_now_user=[]):"object"==typeof t&&(t.forEach(t=>{t.model=!0}),this.schedule.now_user=t,this.schedule.update_now_user=this.deepClone(t)),this.schedule.class_students=[],this.schedule.select_class_students=[],this.full_dialog=!0},select_student(t,e){let s=document.getElementsByClassName("select_student_btn")[0],a=document.getElementById("add_s_btn_"+t);if(a.classList.contains("grey--text"))this.schedule.select_class_students.push(e.value+"::"+e.text),a.classList.remove("light-grey"),a.classList.remove("grey--text"),a.classList.add("success"),a.classList.add("white--text");else{let t=this.schedule.select_class_students.findIndex(t=>t==e.value);-1!=t&&this.schedule.select_class_students.splice(t,1),a.classList.remove("success"),a.classList.remove("white--text"),a.classList.add("light-grey"),a.classList.add("grey--text")}this.schedule.select_class_students.length>0&&(s.innerText="확인",s.classList.add("success--text"))},getStudentInClass(t){let e=Object.values(this.schedule.class_items);for(let a=0,i=e.length;a{if(200==t.status){this.schedule.class_students=[];let e=Object.values(t.data);for(let t=0,s=e.length;tt.id==s.user_id);-1==a&&this.schedule.class_students.push({text:s.uname,value:s.user_id,id:s.user_id,model:!1})}this.class_item_select_status=!0}else 204==t.status&&(this.schedule.class_students="학생을 배정해주세요.")}).catch(t=>{this.schedule.class_students=[],console.log(t)})},addFolder(){if(""==this.add_folder_name.replace(/ /g,""))return this.$refs.add_folder_name_field.focus(),!1;this.$axios.post(`${this.$host}/book/${this.$cid}/addfolder/${this.tabtype}`,{name:this.add_folder_name}).then(t=>{200==t.status?(this.add_folder_name="",this[this.tabtype].sel_list[0].customdisabled=!1,this.schedule.key.datatable+=1,this.getFolder(""+this.tabtype),this.closeDialog()):202==t.status&&(this.closeDialog(),this.openDialog("duplicate_folder_name"))}).catch(t=>{console.log(t)})},select_move_folder(t){let e=document.getElementsByClassName("move_folder_btn")[0];e.innerText="확인",e.classList.add("success--text"),this.move_tmp=t},moveFolderSubmit(){let t=this.tabtype,e=document.getElementsByClassName("move_folder_btn")[0];if("취소"==e.innerText)this[t].key.overflow+=1,this.closeDialog();else if("확인"==e.innerText){let s="schedule"==t?this.check_sids:this.check_bids;s=s.map(t=>t.id),console.log(this.check_bids),console.log(s);let a=new Promise((e,a)=>{this.$axios.post(`${this.$host}/book/${this.$cid}/movefolder/${t}`,{folder_id:this.move_tmp,item_id:s}).then(t=>{200==t.status&&e(t)}).catch(t=>{a(t)})});a.then(()=>{if(this.closeDialog(),this.move_folder_group+=1,this[t].select_row=!1,this.s_expanded=[],this.b_expanded=[],this.clearAllCheck("s"),this.clearAllCheck("b"),this[t].key.overflow+=1,e.innerText="취소",e.classList.remove("success--text"),"movelist"!=this.move_tmp){let e=this[t].all_folder.find(t=>t.value==this.move_tmp);this["schedule"==t?"s_expanded":"b_expanded"].pop(),this.mode="folder",this[t].select_fid=this.move_tmp,this.select_folder_name=e.text}else this.mode="list",this[t].select_fid="",this.select_folder_name="",this["schedule"==t?"s_expanded":"b_expanded"].pop();this.getAllBook()}).catch(t=>{console.log(t)})}},delBook(){let t=this.tabtype,e="schedule"==t?this.check_sids:this.check_bids;e=e.map(t=>t.id),this.$axios.post(`${this.$host}/book/${this.$cid}/del${t}`,{item_id:e}).then(e=>{200==e.status&&(this.closeDialog(!0),this.s_expanded=[],this.b_expanded=[],this.clearAllCheck("s"),this.clearAllCheck("b"),this[t].key.datatable+=1,this[t].key.overflow+=1)}).catch(t=>{console.log(t)})},delFolder(){if(!this[this.tabtype].select_fid)return this.openAlert("error"),!1;this.$axios.post(`${this.$host}/book/${this.$cid}/delfolder/${this.tabtype}`,{folder_id:this[this.tabtype].select_fid}).then(t=>{200==t.status&&(this.mode="list",this[this.tabtype].key.datatable+=1,this.getFolder(""+this.tabtype),this.closeDialog(!0))}).catch(t=>{console.log(t)})},selectRowEvent(t,e){if(0==t)this.openDialog("move_folder");else if(1==t){if("schedule"==e)this.openDialog("del_book_confirm");else if("book"==e){let t="";t=this.book.items.find(t=>+t.id===+this.check_bids[0].id),this.$router.push({name:"lesson-booklist-oper",params:{mode:this.mode,id:this.check_bids[0].id,item:t||"",page:this.book.page,items_per_page:this.book.items_per_page,sortby:this.book.sortby,sortdesc:this.book.sortdesc,popquiz_type:this.book.popquiz_type,tabtype:this.tabtype,fid:this.book.select_fid,folder_name:this.select_folder_name,before_enter_page:this.before_enter_page}})}}else 2==t&&this.openDialog("del_book_confirm")},search_keyword(t){if(13==t.keyCode){const t=this.tabtype.charAt(0);this[`check_${t}ids`]=[],1!=this[this.tabtype].page?this[this.tabtype].page=1:1==this[this.tabtype].page&&this.getAllBook()}},search_icon_click(){const t=this.tabtype.charAt(0);this[`check_${t}ids`]=[],1!=this[this.tabtype].page?this[this.tabtype].page=1:1==this[this.tabtype].page&&this.getAllBook()},excludeStudent(t){this.$axios.post(`${this.$host}/schedule/${this.$cid}/excludeuser`,{sid:this.schedule.select_id,uid:t}).then(e=>{if(200==e.status){let e=this.schedule.now_user.findIndex(e=>e.id==t);-1!=e&&this.schedule.now_user.splice(e,1)}}).catch(t=>{console.log(t)})},addScheduleStudent(t){if(t.model=!t.model,t.model)this.schedule.update_now_user.push({id:t.id,name:t.text,model:t.modele,type:"add"}),this.change_cnt+=1,this.change_plus_cnt+=1;else{let e=this.schedule.update_now_user.findIndex(e=>e.id==t.id);-1!=e&&(this.schedule.update_now_user.splice(e,1),this.change_cnt-=1,this.change_plus_cnt-=1)}this.change_student_key+=1},minusScheduleStudent(t,e){"checkbox"==e?event.stopPropagation():"row"==e&&(t.model=!t.model);let s=this.schedule.update_now_user.findIndex(e=>e.id==t.id);t.model?-1!=s&&(this.schedule.update_now_user[s].type="",this.change_cnt-=1,this.change_minus_cnt-=1):-1!=s&&(this.schedule.update_now_user[s].type="minus",this.change_cnt+=1,this.change_minus_cnt+=1)},closeCheck(){let t=this.schedule.update_now_user.filter(t=>"add"==t.type||"minus"==t.type);t.length>0?this.openDialog("full_dialog_close_confirm"):(this.select_class=null,this.change_cnt=0,this.change_plus_cnt=0,this.change_minus_cnt=0,this.full_dialog=!1)},addScheduleStudentSubmit(){let t=[],e=[];this.schedule.update_now_user.forEach(s=>{"add"==s.type?t.push(s.id):"minus"==s.type&&e.push(s.id)}),this.$axios.post(`${this.$host}/schedule/${this.$cid}/moduser`,{sid:this.schedule.select_id,add_uids:t,del_uids:e}).then(t=>{if(200==t.status){let t=this.schedule.items.findIndex(t=>t.id==this.schedule.select_id);this.schedule.items[t].sub_data.users=[],this.schedule.update_now_user.forEach(e=>{e.type&&"minus"==e.type||this.schedule.items[t].sub_data.users.push({id:e.id,name:e.name})}),this.select_class=null,this.change_cnt=0,this.change_plus_cnt=0,this.change_minus_cnt=0,this.closeDialog(),this.full_dialog=!1}}).catch(t=>{console.log(t),this.closeDialog(),this.openAlert("error")})},customSort(t,e,s){this.clearAllCheck(t),this[t].sortby=e,this[t].sortdesc=s},getBankModule(t){let e="",s="",a="",i=[],o=[],n=[];if(43===+t.booktype){if(t.v_mod){const s="GT",a=t.v_mod.split("_")[1].split("");a.forEach(t=>{i.push(this.new_modules_names[`${s}_${t}`])}),e=a}if(t.m_mod){const e="GB",a=t.m_mod.split("_")[1].split("");a.forEach(t=>{o.push(this.new_modules_names[`${e}_${t}`])}),s=a}if(t.a_mod){const e="GD",s=t.a_mod.split("_")[1].split("");s.forEach(t=>{n.push(this.new_modules_names[`${e}_${t}`])}),a=s}}else if(50===+t.booktype){if(t.v_mod&&(e=[t.v_mod],i.push(this.new_modules_names[t.v_mod])),t.m_mod){const e=t.m_mod.split("");e.forEach(t=>{o.push(3==t?"단어점검":this.new_modules_names[t])}),s=e}t.a_mod&&(a=[t.a_mod],n.push(this.new_modules_names[t.a_mod]))}else t.v_mod&&(e=t.v_mod.split(""),t.v_mod.split("").forEach(e=>{3==e&&([2,3].includes(+t.category)&&0==t.booktype||4==t.category&&1==t.booktype)?i.push("팝퀴즈"):i.push(this.new_modules_names[e])})),t.m_mod&&(s=t.m_mod.split(""),t.m_mod.split("").forEach(t=>{o.push(this.new_modules_names[t])})),t.a_mod&&(a=t.a_mod.split(""),t.a_mod.split("").forEach(t=>{"2"==t?n.push("빈칸추론"):n.push(this.new_modules_names[t])}));return{v_modules:e,m_modules:s,a_modules:a,v_modules_text:i,m_modules_text:o,a_modules_text:n}},getStudyModule(t){let e,s,a,i="";if("folder"!=t.id){let o="",n="",l=t.booktype?Math.floor(Number(t.booktype)/10):0;if(2==l)e=[],s=[],a=[],i=[],t.m_mod&&(e=t.m_mod.split(""),t.m_mod.split("").forEach(t=>{"3"==t?a.push("팝퀴즈"):a.push(this.new_modules_names[t])})),t.a_mod&&(s=t.a_mod.split(""),t.a_mod.split("").forEach(t=>{"5"==t?i.push("라이팅"):i.push(this.new_modules_names[t])}));else{o=parseInt(t.study_modules).toString(2).padStart(10,"0").split(""),n=parseInt(t.test_modules).toString(2).padStart(9,"0").split("");let l=[];o.forEach((function(t,e){"1"==t&&l.push(e)})),e=l,l=[],n.forEach((function(t,e){"1"==t&&l.push(e)})),s=l,l=[],e.forEach(t=>{let e="";0==t?e="리스닝":1==t?e="문장조합":2==t?e="딕테이션":3==t?e="문장찾기":4==t||5==t?e="영작하기":6==t?e="스피킹":7==t&&(e="워드빙고"),l.push(e)}),a=l,l=[],s.forEach(t=>{let e="";0==t?e="문장조합":1==t?e="딕테이션":2==t?e="문장찾기":3==t||4==t?e="영작하기":5==t&&(e="스피킹"),l.push(e)}),i=l}}return{study_modules:e,test_modules:s,study_modules_text:a,test_modules_text:i}},getExceptionModule(t){switch(console.log(t),+t.booktype){case 43:break;case 50:break}},selectBook(t,e){e.isSelected=!e.isSelected;const s=this[`check_${t}ids`].findIndex(t=>t.id==e.id);-1===s?this[`check_${t}ids`].push(e):this[`check_${t}ids`].splice(s,1)},selectAllBook(t,e){this[`check_${t}ids`]=[],e.items.forEach(s=>{["folder","back"].includes(s.category)||(s.isSelected=e.value,e.value&&this[`check_${t}ids`].push(s))})},clearAllCheck(t){["s","schedule"].includes(t)?(this.SAC=!1,this.check_sids=[]):["b","book"].includes(t)&&(this.BAC=!1,this.check_bids=[])},delConfirmInput(t){this.del_confirm_text=t.target.value},setSortScheduleMove(){const t=this.tabtype,e=this[t+"_desc"],s=document.getElementById(t+"_move_modal_sort_icon_up"),a=document.getElementById(t+"_move_modal_sort_icon_down");"schedule"===t?this.schedule_desc=!this.schedule_desc:this.book_desc=!this.book_desc,e?(a.style.borderTop="7px solid black",s.style.borderBottom="7px solid #bbb","schedule"===t?this.schedule.all_folder=this.schedule.all_folder.sort((t,e)=>t.text>e.text?-1:(t.text,e.text?1:0)):this.book.all_folder=this.book.all_folder.sort((t,e)=>t.text>e.text?-1:(t.text,e.text?1:0))):(s.style.borderBottom="7px solid black",a.style.borderTop="7px solid #bbb","schedule"===t?this.schedule.all_folder=this.schedule.all_folder.sort((t,e)=>t.textt.text0?1:0}-w${t.word_count>0?1:0}`,attrs:{tab:"oper",tab_num:1,data:t.$data,addTextRow:t.addTextRow,editingCheck:t.editingCheck,delUnit:t.delUnit,rowType:t.oper_view}}),e("count-info",{attrs:{tab:"oper",data:t.$data,operSubmitConfirm:t.operSubmitConfirm}})],1)],1)])],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e("Dialogs",[e("div",{attrs:{slot:"null_book_name"},slot:"null_book_name"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("교재명을 입력해주세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"null_input"},slot:"null_input"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("입력되지 않은 셀이 있습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("b",[t._v("확인")])])],1)],1),e("div",{attrs:{slot:"del_unit_warning"},slot:"del_unit_warning"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("입력된 내용이 남아 있습니다.")]),e("br"),e("b",[t._v("내용을 모두 지우고 삭제하세요.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("b",[t._v("확인")])])],1)],1),e("div",{attrs:{slot:"del_unit_confirm"},slot:"del_unit_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("입력된 내용이 남아 있습니다.")]),e("br"),e("b",[t._v("삭제하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:t.newDelUnit}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("삭제")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"oper_book_confirm"},slot:"oper_book_confirm"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("교재를 수정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.operSubmit.apply(null,arguments)}}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"success--text"},[t._v("수정")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title"},[e("b",[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)])],1)},uo=[];let _o=[];var po={name:"lesson-booklistoper",components:{LoadingDialog:bt["a"],infoTable:Ni,inputSection:Fi,countInfo:Ji},data(){return{book_id:"",tab:"tab-2",wrap_key:0,vt:0,bookwrap:0,booktype:"",booktype_m:"",booktype_s:"",oper_bookid:"",oper_bookname:"",oper_total_unit:"",oper_total_row:"",oper_tab:"oper-tab-0",origin_tabs:[],oper_tabs:[],oper_tabcheck_arr:[],oper_input_row:[[{id:"",seq:"",eng:"",kor:"",status:""}]],oper_word_row:[[]],oper_book:[{}],oper_check_arr:[],operDisabled:!0,oper_unit_del_arr:[],direct_del_modal_visible:!1,oper_publisher:null,oper_select_grade:null,unit_cnt:0,loading_value:!1,loading_message:"잠시만 기다려주세요.",del_status:0,oper_publishdate:null,origin_input_row:null,origin_word_row:null,origin_bookname:null,origin_publisher:null,origin_select_grade:null,origin_publishdate:null,move_page_status:0,to:"",popquiz_type:null,oper_popquiz_type:null,book_grade:[{text:"초등학교 1학년",value:"e1"},{text:"초등학교 2학년",value:"e2"},{text:"초등학교 3학년",value:"e3"},{text:"초등학교 4학년",value:"e4"},{text:"초등학교 5학년",value:"e5"},{text:"초등학교 6학년",value:"e6"},{text:"중학교 1학년",value:"m1"},{text:"중학교 2학년",value:"m2"},{text:"중학교 3학년",value:"m3"},{text:"고등학교 1학년",value:"h1"},{text:"고등학교 2학년",value:"h2"},{text:"고등학교 3학년",value:"h3"},{text:"기타",value:"etc"}],sen_count:0,word_count:0,oper_view:"input"}},beforeRouteLeave(t,e,s){this.to=t.name;const a=document.getElementById("loading-wrapper");return 1===this.move_page_status?("index"==t.name&&this.$storage.get("user").is_mobile?(a.style.display="block",setTimeout(()=>{s()},100)):s(),!1):this.operDisabled?void("index"==t.name&&this.$storage.get("user").is_mobile?(a.style.display="block",setTimeout(()=>{s()},100)):s()):(this.openDialog("move_page"),!1)},created(){this.book_id=this.$route.params.id||"",this.book_id||this.$router.push({name:"lesson-booklist"})},mounted(){if(""!=this.book_id){this.loading_value=!0;let t="getsentence",e=this.$route.params.item;console.log(this.$route.params),this.booktype_m=e.booktype_m||0,this.booktype_s=e.booktype_s||0,this.booktype=`${this.booktype_m}${this.booktype_s}`,this.booktype_m&&2==this.booktype_m&&(t+="?word=1"),this.$axios.get(`${this.$host}/book/${this.book_id}/${t}`).then(t=>{if(200==t.status){const e=t.data.sentence,s=t.data.word;this.sen_count=e.flat().length||0,this.word_count=s.flat().length||0;let a=t.data.book_info[0];this.popquiz_type=a.popquiz_type,this.oper_popquiz_type=a.popquiz_type,this.oper_bookid=a.id,this.oper_bookname=a.bookname,this.oper_total_unit=a.unit_cnt,this.oper_publisher=a.publisher,this.oper_select_grade=this.getGradeItem(a.grade),a.publishdate?this.oper_publishdate=a.publishdate:this.oper_publishdate=null,this.origin_bookname=a.bookname,this.origin_publisher=a.publisher,this.origin_select_grade=this.cloneValue("oper_select_grade"),this.origin_publishdate=this.cloneValue("oper_publishdate");for(let[i,o]of Object.entries(t.data.unit_info[0])){const t={idx:i,id:o.id,text:o.name,model:o.name,status:"",seq:o.seq};this.oper_tabs.push(t)}if(this.origin_tabs=this.cloneValue("oper_tabs"),this.oper_input_row=[],this.booktype_m&&2==this.booktype_m){const e=t.data.word;this.setRows(e,"word","input")}else{const e=t.data.sentence;if(this.setRows(e,"sentence","input"),t.data.word){const e=t.data.word;this.setRows(e,"word","word")}}this.origin_input_row=this.cloneValue("oper_input_row"),this.origin_word_row=this.cloneValue("oper_word_row")}setTimeout(()=>{this.loading_value=!1},1e3)}).catch(t=>{console.log(t),setTimeout(()=>{this.loading_value=!1},1e3)})}},watch:{oper_bookname(){this.editingCheck()},oper_publisher(){this.editingCheck()},oper_popquiz_type(){this.editingCheck()},oper_tabs:{handler(){this.editingCheck()},deep:!0}},computed:{getTabIdx(){return t=>+this[t+"_tab"].replace(t+"-tab-","")},checkDataCount(){return(t,e="input")=>{let s=0;for(let a in this[`${t}_${e}_row`])s+=this[`${t}_${e}_row`][a].length;return s}},checkUnitCnt(){return()=>{let t=0;for(let e of this.oper_tabs)""!=e["status"]&&"update"!=e["status"]||"btn"==e.id||t++;return t}}},methods:{pad(t,e){return t+="",t.length>=e?t:new Array(e-t.length+1).join("0")+t},getGradeItem(t){return this.book_grade.find(e=>e.value===t)},cloneValue(t){return this.deepClone(this[t])},setRows(t,e,s){for(let a=0,i=t.length;a{e=this.oper_tabs.length,this.oper_tabs.some((i,o)=>"btn"==i.id?(s(!1),!0):(this.oper_input_row[o].some((e,s)=>{if(""==e.eng.replace(/ /g,"")||""==e.kor.replace(/ /g,""))return this.openDialog("null_input"),t=!0,a(!0),!0}),1==t?(a(!0),!0):void(o==e-1&&s(!1))))})},process_data(){return _o=[],new Promise(async t=>{await this.checkDiffRows("input_row"),await this.checkDiffRows("word_row");for(let e=0,s=this.oper_tabs.length;e{this.$axios.post(`${this.$host}/book/${this.$cid}/operbook`,{book_id:this.oper_bookid,booktype:""==this.booktype?0:this.booktype,bookname:this.oper_bookname,origin_bookname:this.origin_bookname,grade:this.oper_select_grade.value,publisher:this.oper_publisher,publishdate:this.oper_publishdate,popquiz_type:this.oper_popquiz_type,unit_name_arr:_o,origin_input_row:this.origin_input_row,origin_word_row:this.origin_word_row}).then(e=>{200==e.status&&(this.move_page_status=1,t(e))}).catch(t=>{e(t)})})},operSubmitConfirm(){if(""==this.oper_bookname.replace(/ /g,""))return this.openDialog("null_book_name"),!1;this.null_check().then(t=>{0==t&&this.openDialog("oper_book_confirm")}).catch(t=>{console.log(t)})},operSubmit(){this.loading_value=!0,this.unit_cnt=this.checkUnitCnt(),this.process_data().then(()=>this.operBook()).then(t=>{this.loading_value=!1,200==t.status&&this.$router.push({name:"lesson-booklist",params:{ref:"oper",before:this.$route.params}})}).catch(t=>{this.loading_value=!1,console.log(t)})},checkDiffRows(t){return new Promise(e=>{let s=this["oper_"+t],a=this["origin_"+t];for(let t=0,i=a.length;t0?this.openDialog("del_unit_confirm"):this.newDelUnit())},newDelUnit(){let t="oper";const e=this.getTabIdx(t);this[t+"_tabs"][e].status="delete";const s=this[`origin_${this.oper_view}_row`],a=this[`oper_${this.oper_view}_row`];if(a[e]){for(let t=0,o=a[e].length;t0)}},beforeDestroy(){this.allBusDestroy()}},mo=po,go=(s("327b"),Object(u["a"])(mo,ho,uo,!1,null,null,null)),bo=go.exports,fo=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"height-inherit",attrs:{id:"bookprintvue",justify:"center",align:"stretch"}},[e("input",{attrs:{type:"hidden"},domProps:{value:"h_"+t.hidden_key}}),e("img",{attrs:{src:"https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy/img/bg/test_print_bg_2.png?v="+t.img_fp,width:"0",height:"0"}}),e("div",{style:{display:"none",backgroundImage:`url(${t.print_bg})`},attrs:{id:"here_scalearea"}}),e("preFont"),e("SelectBookTypeDialog",{ref:"select_book_type",on:{selectBookType:t.selectBookType}}),[e("BookTable",{ref:"booktable",attrs:{data:t.$data,goBack:t.goBack},on:{windowPrint:t.windowPrint,addSelectUnit:t.addSelectUnit,addSelectAllUnit:t.addSelectAllUnit,framePostMessage:t.framePostMessage,movePage:t.movePage}}),e("SelectedInfo",{attrs:{data:t.$data},on:{confGoPreview:t.confGoPreview,framePostMessage:t.framePostMessage,chkMainSentence:t.chkMainSentence,changeWidthRate:t.changeWidthRate,windowPrint:t.windowPrint,exceptUnit:t.exceptUnit,nameInput:t.nameInput}})],t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message,progressPercent:"preview"==t.mode?t.loading_percent:0,isStory:t.select_story_book.length>0&&[2,3].includes(+t.print_option_rg)}}):t._e(),e("Dialogs",[e("div",{staticClass:"radio-dialog",attrs:{slot:"setPrintOption"},slot:"setPrintOption"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("유형 선택")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.changePrintOpt},model:{value:t.print_option_rg,callback:function(e){t.print_option_rg=e},expression:"print_option_rg"}},[t.select_story_book.length>0?[e(nt["a"],{staticClass:"custom-radio",attrs:{label:"동화",value:"2",color:"success"}}),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"동화 문제",value:"3",color:"success"}})]:t._e(),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"단어",value:"0",color:"success"}}),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"문장",value:"1",color:"success"}})],2)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitPrintOpt}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"mobile_print"},slot:"mobile_print"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("모바일 전용 서비스 개선중으로 PC로 이용해주시기 바랍니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"c4_allbook"},slot:"c4_allbook"},[e(M["b"],{staticClass:"black text-center py-8 pos-rel",staticStyle:{opacity:"0.75"}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"white--text"},[t._v("\n 다른 학원의 수업자료를 무상 공유해드립니다."),e("br"),t._v("\n 배정된 담당자를 통해 문의하세요!\n ")])]),e(L["a"],{staticClass:"pos-abs",staticStyle:{top:"8px",right:"8px"},attrs:{icon:"",small:"",depressed:"",ripple:!1},on:{click:t.closeDialog}},[e(q["a"],{attrs:{color:"white"}},[t._v(" mdi-close ")])],1)],1)],1),e("div",{attrs:{slot:"go_back"},slot:"go_back"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("선택한 항목은 삭제됩니다.")]),e("br"),e("b",[t._v("이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"50%"},attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0",staticStyle:{width:"50%","border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:function(e){return t.initPage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{staticClass:"radio-dialog",attrs:{slot:"setFairyPrintOption"},slot:"setFairyPrintOption"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("출력 설정")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:function(e){return t.changePrintOpt("fairy")}},model:{value:t.fairy_print_opt,callback:function(e){t.fairy_print_opt=e},expression:"fairy_print_opt"}},[e(nt["a"],{staticClass:"custom-radio",attrs:{label:"전체 출력",value:"0",color:"success"}}),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"해당 페이지 출력",value:"1",color:"success"}})],1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:function(e){return t.submitPrintOpt("fairy")}}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_fairy_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1)])],2)},yo=[],vo=s("bfb5"),xo=s("b4b9"),ko={name:"lesson-bookprint",components:{LoadingDialog:bt["a"],SelectBookTypeDialog:ti["a"],BookTable:vo["a"],SelectedInfo:xo["a"],preFont:et["a"]},data(){return{user:this.$storage.get("user"),mode:"list",tab:null,tabs:4,loading_value:!1,loading_message:"잠시만 기다려주세요.",loading_percent:1,book_type:"",select_books:[],datatable_component:0,item_key:"id",expanded:[],book_items:[],select_folder:{},select_folder_id:void 0,folder_book_items:{},folder_open_status:!1,select_units:[],all_sentence:[],origin_sentence:[],print_send_data:[],print_send_data_main:[],left_width:"5",right_width:"5",nowpage:0,maxpage:0,printpage:["0"],all_sentence_arr:{1:{rows:{}}},select_row:!1,select_id:"",check:[],subcheck:[],preview_name:"제목을 입력해주세요.",printbookid:[],printbookname:[],printunitname:[],fontSize:12,avatarSize:28,rowpadding:2,leftrate:"calc((100% - 34px) / 2)",rightrate:"calc((100% - 34px) / 2)",toggle_exclusive_1:0,toggle_exclusive_2:0,toggle_exclusive_3:1,toggle_exclusive_4:1,preview_width:2,thumb_labels:["3:7","4:6","5:5","6:4","7:3"],logostatus:!0,cnamestatus:!0,mainsentence:!1,countstatus:!1,print_complete_status:0,page_cnt:0,tab_val:1,tabcol:0,progressColor:"#1bd05b",hidden_key:0,print_bg:"",autotext_key:0,full_screen:!1,last_scale:!1,last_pa_width:!1,select_new_book:[],select_story_book:[],null_fairy_question:[],print_option_rg:null,fairy_view:void 0,current_width:void 0,current_height:void 0,print_mode:"book",sel_key:0,fairy_print_opt:null}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created:function(){let t=new Date,e=t.getFullYear(),s=1+t.getMonth();s=s>=10?s:"0"+s;let a=t.getDate();a=a>=10?a:"0"+a;let i=t.getHours();this.img_fp=e+s+a+i},mounted(){this.datatable_component+=1,Tr.$on("close_event",t=>{console.log(t),1==t.status&&(this.fairy_print_opt=null,this.$refs.set_fairy_btn&&(this.$refs.set_fairy_btn.innerText="취소",this.$refs.set_fairy_btn.classList.remove("success--text")))})},watch:{toggle_exclusive_1(){this.initPrintPage()},toggle_exclusive_2(){this.initPrintPage()},toggle_exclusive_3(){this.initPrintPage()},toggle_exclusive_4(){this.initPrintPage()},logostatus(t){this.framePostMessage({key:"logo_status",value:t})},cnamestatus(t){this.framePostMessage({key:"cname_status",value:t})},mode(t){"preview"==t?this.preview_name="제목을 입력해주세요.":(window.removeEventListener("resize",this.printResizeEvent),this.print_resize_event=void 0,this.print_option_rg=null)},"$store.state.user.zoom_status"(){const t=this.mode,e=this.print_mode,s=this.print_option_rg;"preview"===t&&"book"===e&&[2,3].includes(+s)&&this.fairyResizeEvent(),this.initPrintPage()}},computed:{BookCheckCnt(){return t=>{let e=0;for(let s=0,a=t.sub_data.length;s{let s=0;const a=this.folder_book_items[t][e].sub_data;for(let i=0,o=a.length;ie.id==t.id);if(-1==i){const i=t.sub_data;console.log(i);let o={};if(Object.values(i).forEach(t=>{t.disable||(t.check=!0,o[t.seq]={id:t.id,name:t.name})}),o){if(this.select_books.push({category:this.tab_val,id:t.id,name:t.bookname,booktype_m:t.booktype_m,booktype_s:t.booktype_s,units:o,folder_id:t.folder_id}),(e||s)&&(this[`select_${a}_book`].push(...Object.values(o).map(t=>t.id)),s)){const e=+t.id.split("-")[1];e>10&&this.null_fairy_question.push(...Object.values(o).map(t=>t.id))}t.check=!0}}else if(t.check)Object.values(this.select_books[i].units).forEach(i=>{if(e||s){let e=this[`select_${a}_book`].findIndex(t=>t==i.id);if(-1!=e&&this[`select_${a}_book`].splice(e,1),s){const e=+t.id.split("-")[1];if(e>10){let t=this.null_fairy_question.findIndex(t=>t==i.id);-1!=t&&this.null_fairy_question.splice(t,1)}}}}),this.select_books.splice(i,1),t.sub_data.map(t=>t.check=!1),t.check=!1;else{const o=t.sub_data;Object.values(o).forEach(o=>{if(!o.disable&&!o.check&&(o.check=!0,this.select_books[i].units[o.seq]={id:o.id,name:o.name},e||s)){let e=this[`select_${a}_book`].findIndex(t=>t==o.id);if(-1==e&&this[`select_${a}_book`].push(o.id),s){const e=+t.id.split("-")[1];if(e>10){let t=this.null_fairy_question.findIndex(t=>t==o.id);-1==t&&this.null_fairy_question.push(o.id)}}}}),t.check=!0,this.sel_key++}},addSelectUnit(t,e){const s=1==t.booktype_s||[1,2,3].includes(+t.category)&&0===+t.booktype_m&&0===+t.booktype_s,a=5===+t.booktype_m&&0===+t.booktype_s;let i="";s?i="new":a&&(i="story");let o=this.select_books.findIndex(e=>e.id==t.id);if(-1==o){let o={};if(o[e.seq]={id:e.id,name:e.name},e.check=!0,this.select_books.push({category:t.category,id:t.id,name:t.bookname,booktype_m:t.booktype_m,booktype_s:t.booktype_s,units:o,folder_id:t.folder_id}),(s||a)&&(this[`select_${i}_book`].push(e.id),a)){const s=+t.id.split("-")[1];s>10&&this.null_fairy_question.push(e.id)}}else if(e.check){if(delete this.select_books[o].units[e.seq],s||a){const s=this[`select_${i}_book`].findIndex(t=>t==e.id);if(-1!=s&&this[`select_${i}_book`].splice(s,1),a){const s=+t.id.split("-")[1];if(s>10){const t=this.null_fairy_question.findIndex(t=>t==e.id);-1!=t&&this.null_fairy_question.splice(t,1)}}}e.check=!1;let n=Object.keys(this.select_books[o].units).length;n!=t.sub_data.length&&(t.check=!1,0==n&&this.select_books.splice(o,1))}else{let n="";if(Object.entries(this.select_books[o].units).forEach(t=>{const[s,a]=t;a.id==e.id&&(n=s)}),!n){if(this.select_books[o].units[e.seq]={id:e.id,name:e.name},(s||a)&&(this[`select_${i}_book`].push(e.id),a)){const s=+t.id.split("-")[1];s>10&&this.null_fairy_question.push(e.id)}e.check=!0,Object.keys(this.select_books[o].units).length==t.sub_data.length&&(t.check=!0)}}},selectBookType(t){this.book_type=t,this.tab_val=1,this.$nextTick(()=>{this.$refs.booktable.getBookList(this.print_mode,this.book_type,this.tab_val)})},chkMainSentence(){this.framePostMessage({key:"main_sentence",value:this.mainsentence})},getPrevCount(t){let e=0;for(let s=t-1;s>=0;--s)e+=this.all_sentence_arr[s].length;return e},clearFolderBooks(){this.folder_open_status=!1;let t=document.getElementsByClassName("grade_items");setTimeout(()=>{for(var[e,s]of Object.entries(t))0!=e?(s.classList.remove("success"),s.style.color="black"):(s.classList.add("success"),s.style.color="white")},100)},setFolderBooks(t){if(this.folder_book_items[t.folder_id.toString()]&&this.folder_book_items[t.folder_id.toString()].length>0)return this.select_folder_id=t.folder_id.toString(),this.select_folder=t,this.folder_open_status=!0,!1;this.$axios.get(`${this.$host}/book/${t.folder_id}/getfolderbook/book`).then(e=>{if(200==e.status){this.folder_book_items[t.folder_id.toString()]=[];for(let s=0,a=e.data.length;se.id==t.id);if(-1!=n){let l=o[n].sub_data.findIndex(t=>t.id==e.id);if(-1!=l&&(o[n].sub_data[l].check=!1,s||a)){let s=this[`select_${i}_book`].findIndex(t=>t==e.id);if(-1!=s&&this[`select_${i}_book`].splice(s,1),a){const s=+t.id.split("-")[1];if(s>10){let t=this.null_fairy_question.findIndex(t=>t==e.id);-1!=t&&this.null_fairy_question.splice(t,1)}}}o[n].sub_data.filter(t=>t.check).length!=o[n].sub_data.length&&(o[n].check=!1);let r=this.select_books.findIndex(e=>e.id==t.id);-1!=r&&(Object.entries(this.select_books[r].units).forEach(t=>{const[s,a]=t;a.id==e.id&&delete this.select_books[r].units[s]}),0==Object.keys(this.select_books[r].units).length&&this.select_books.splice(r,1))}},confGoPreview(){this.insertSelectUnits(),this.select_new_book.length>0||this.select_story_book.length>0?this.openDialog("setPrintOption"):(this.mode="preview",this.topNavBarChange(),setTimeout(()=>{this.initPrintPage()},300))},messageListener(t){for(let[e,s]of Object.entries(t.data))if("maxpage"==e)this.maxpage=s,this.loading_value=!1;else if("main_sentence"==e)s?this.initPrintPage():(this.openAlert("null_main_sentence"),this.mainsentence=!1);else if("percent"==e)this.loading_percent=+s,this.framePostMessage({key:"set_percent",value:!0});else if("zoom"==e)this.full_screen=s;else if("print"==e){if("F"===this.user.product_type)if(0===this.user.print_cnt)this.openAlert("free_print_exhausted");else if(this.user.print_cnt>0&&[0,1].includes(+this.print_option_rg)){const t=this.$storage.get("user");let e;t.print_cnt-=1,this.$storage.set("user",t),this.$store.commit("setUser",t),this.$store.dispatch("updateAcademy",{print_cnt:this.user.print_cnt}),e=+this.user.print_cnt>0?`출력 가능한 횟수가 ${this.user.print_cnt}회 남았습니다.`:"출력 가능한 횟수가 모두 소진되었습니다. (10회)",this.openAlert(e)}document.title="내공스터디 관리자"}},printResizeEvent(){let t=document.getElementById("parent_col").getBoundingClientRect().height;if(1==this.$storage.get("user").zoom_status&&(t/=.901),this.current_height.toFixed(0)!=window.innerHeight.toFixed(0))this.framePostMessage({key:"resize",value:t});else if(this.current_height==t)return!1;this.current_height=t},fairyResizeEvent(){const t=document.getElementById("parent_col"),e=document.getElementById("book_frame_wrap");if(t&&e){const s=t.getBoundingClientRect().width,a=t.getBoundingClientRect().height,i=getComputedStyle(t),o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),n=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=1==this.$store.state.user.zoom_status?.901:1,r={width:1.414285714285714*(a-n)/l,height:(a-n)/l},c={width:(s-o)/l,height:(s-o)/1.414285714285714/l};s>a?r.width>c.width?(e.style.width=c.width+"px",e.style.height=c.height+"px",this.fairy_view="horizontal"):(e.style.width=r.width+"px",e.style.height=r.height+"px",this.fairy_view="vertical"):s<=a&&(c.height>r.height?(e.style.width=r.width+"px",e.style.height=r.height+"px",this.fairy_view="vertical"):(e.style.width=c.width+"px",e.style.height=c.height+"px",this.fairy_view="horizontal")),this.current_width=e.style.width.replace("px",""),this.current_height=e.style.height.replace("px",""),console.log({key:"resize",value:{view:this.fairy_view,width:this.current_width,height:this.current_height,zoom_status:this.$store.state.user.zoom_status}}),this.framePostMessage({key:"resize",value:{view:this.fairy_view,width:this.current_width,height:this.current_height,zoom_status:this.$store.state.user.zoom_status}})}},movePage(t){this.$store.dispatch("soundEffectPlay","click_button"),"left"==t?this.nowpage>0&&this.nowpage--:"right"==t&&this.nowpage!=this.maxpage-1&&this.nowpage++,this.framePostMessage({key:"move_page",value:t,now:this.nowpage})},windowPrint(t=null){const e=12===this.$refs.booktable.isStoryBookFairy;if(e&&t){this.framePostMessage({key:"print",value:{res:!0,option:t}}),this.fairy_print_opt=null;let e="";for(let t=0,s=this.book_items[4].length;t1&&(e+=`외 ${this.select_story_book.length-1}권`),document.title=e}else{if("F"===this.user.product_type&&0===this.user.print_cnt)return this.openAlert("free_print_exhausted"),!1;document.title=this.preview_name,this.framePostMessage({key:"print",value:!0})}},changePrintOpt(t=""){let e="set_btn";"fairy"===t&&(e="set_fairy_btn"),this.$refs[""+e].innerText="확인",this.$refs[""+e].classList.add("success--text")},submitPrintOpt(t=""){let e="set_btn",s="setPrintOption";if("fairy"===t&&(e="set_fairy_btn",s="setFairyPrintOption"),"확인"==this.$refs[""+e].innerText)if("fairy"===t)this.windowPrint(this.fairy_print_opt);else{if(this.select_story_book.length>0&&[2,3].includes(+this.print_option_rg)){const t=this.select_books.every(t=>5===t.booktype_m&&0===t.booktype_s);if(!1===t)return this.openAlert("except_fairy_print"),!1}if(this.select_story_book.length>0&&3===+this.print_option_rg&&this.null_fairy_question.length>0)return this.openAlert("except_fairy_question_print"),!1;this.mode="preview",this.topNavBarChange(),setTimeout(()=>{this.initPrintPage()},300)}this.$refs[""+e].innerText="취소",this.$refs[""+e].classList.remove("success--text"),this.closeDialog(s)},initPrintPage(){this.current_height=document.getElementById("parent_col").getBoundingClientRect().height,1===this.$storage.get("user").zoom_status&&(this.current_height=this.current_height/.901),this.loading_value=!0,this.loading_percent=1,this.nowpage=0,this.full_screen=!1;let t=[];if(this.mainsentence)for(let i of this.print_send_data)t.push({info:i.info,unit_id:i.unit_id,rows:i.rows.map(t=>{if("1"==t.main)return t}).filter(t=>void 0!=t)});else for(let i of this.print_send_data)t.push(i);if(0==this.toggle_exclusive_2)for(let i=0,o=t.length;it.seq-e.seq);else if(1==this.toggle_exclusive_2)for(let i=0,o=t.length;i.5-Math.random());else if(2==this.toggle_exclusive_2)for(let i=0,o=t.length;it[t.word?"word":"sentence"].toLowerCase()e[t.word?"word":"sentence"].toLowerCase()?1:0);const e={name:this.user.cname,logo:this.user.clogo};"book"===this.print_mode&&"preview"===this.mode&&[2,3].includes(+this.print_option_rg)?(this.fairyResizeEvent(),window.addEventListener("resize",this.fairyResizeEvent)):window.addEventListener("resize",this.printResizeEvent),window.addEventListener("message",this.messageListener);const s=document.getElementById("print_form"),a=t=>JSON.stringify(t);s.target="print_iframe",s.print_data.setAttribute("value",a(t)),s.question_type.setAttribute("value",a(this.toggle_exclusive_1)),s.text_type.setAttribute("value",a(this.toggle_exclusive_3)),s.line_type.setAttribute("value",a(this.toggle_exclusive_4)),s.main_sentence.setAttribute("value",a(this.mainsentence)),s.left_width.setAttribute("value",a(this.left_width)),s.right_width.setAttribute("value",a(this.right_width)),s.preview_name.setAttribute("value",a(this.preview_name)),s.cname_status.setAttribute("value",a(this.cnamestatus)),s.count_status.setAttribute("value",a(this.countstatus)),s.logo_status.setAttribute("value",a(this.logostatus)),s.academy_info.setAttribute("value",a(e)),s.select_units.setAttribute("value",a(this.select_units)),s.print_type.setAttribute("value",a(this.print_option_rg)),s.new_book_ids.setAttribute("value",a(this.select_new_book)),s.data_sort.setAttribute("value",a(this.toggle_exclusive_2)),s.current_width.setAttribute("value",a(this.current_width)),s.current_height.setAttribute("value",a(this.current_height)),s.fairy_view.setAttribute("value",a(this.fairy_view)),s.zoom_status.setAttribute("value",a(this.$store.state.user.zoom_status)),s.submit()},framePostMessage(t){const e=document.getElementById("print_iframe");e.contentWindow.postMessage(t,"*")},changeWidthRate(t){let e=this.thumb_labels[t].split(":")[0],s=this.thumb_labels[t].split(":")[1];if(`${e}:${s}`==`${this.left_width}:${this.right_width}`)return!1;this.left_width=e,this.right_width=s,this.initPrintPage()},goBack(){this.select_books.length>0?this.openDialog("go_back"):this.initPage()},initPage(){this.closeDialog("go_back"),this.book_type="",this.select_units=[],this.select_books=[],this.book_items=[],this.datatable_component=0,this.tab_val=1,this.sel_key=0,this.folder_open_status=!1,this.select_folder_id=void 0,this.select_folder={},this.select_new_book=[],this.select_story_book=[],this.null_fairy_question=[],this.folder_book_items=[],this.loading_percent=1,this.$refs.select_book_type.type_popup=!0},insertSelectUnits(){this.select_units=[],this.select_books.forEach(t=>{Object.values(t.units).forEach(e=>{let s=2==t.booktype_m?e.id+"_2":e.id;this.select_units.push(s)})})},nameInput(t){this.preview_name=t.target.value,setTimeout(()=>{let t=35;document.querySelector(".auto-text.clip")&&(t=document.querySelector(".auto-text.clip").style.fontSize),this.framePostMessage({key:"preview_name",value:{text:this.preview_name,size:t}})},0)}},beforeDestroy(){console.log("beforeDestroy"),window.removeEventListener("resize",this.printResizeEvent),window.removeEventListener("resize",this.fairyResizeEvent),window.removeEventListener("message",this.messageListener),this.allBusDestroy()}},wo=ko,Co=(s("a849"),Object(u["a"])(wo,fo,yo,!1,null,null,null)),So=Co.exports,$o=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"height-inherit bg-default testvue",attrs:{id:"bookprintvue",justify:"center",align:"stretch"}},[e("img",{attrs:{src:"https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy/img/bg/test_print_bg_2.png?v="+t.img_fp,width:"0",height:"0"}}),e("div",{staticStyle:{display:"none",transform:"scale(1)"},style:{backgroundImage:"url("+t.print_bg+")"},attrs:{id:"here_scalearea"}}),e("preFont"),e("SelectBookTypeDialog",{ref:"select_book_type",on:{selectBookType:t.selectBookType}}),[e("BookTable",{ref:"booktable",attrs:{data:t.$data,goBack:t.goBack,mListener:t.mListener,onResize:t.onResize},on:{addSelectUnit:t.addSelectUnit,addSelectAllUnit:t.addSelectAllUnit,movePage:t.movePage}}),e("SelectedInfo",{ref:"selectinfo",attrs:{data:t.$data,toggleChange:t.toggleChange,changeOption:t.changeOption},on:{windowPrint:t.windowPrint,openUnitList:t.openUnitList,exceptUnit:t.exceptUnit,goPreview:t.goPreview,changeWidthRate:t.changeWidthRate,testCheck:t.testCheck,nameInput:t.nameInput}})],e("ctooltip",{attrs:{wrap_display:t.info_tooltip_display,wrap_position:"fixed",arrow_direction:"arrow-down",arrow_left:"48.5%",arrow_color:"custom_black",arrow_translate:"translate(-50%, -1px)",tool_top:t.info_tooltip_top,tool_left:t.info_tooltip_left,tool_color:"custom_black",tool_translate:"translate(-50%, -110%)",text:t.info_tooltip_text}}),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message,progressPercent:"preview"==t.mode?t.loading_percent:0}}):t._e(),e("Dialogs",[e("div",{attrs:{slot:"err_popup"},slot:"err_popup"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[0!=t.err_status&&0==t.err_status.split("_")[1]?[e("b",[t._v("객관식 문제를 만들 문항 수가 부족합니다.")])]:0!=t.err_status&&1==t.err_status.split("_")[1]?[e("b",[t._v("출제 가능 문항보다 선택 문항이 많습니다.")]),t.word_arrange.check?[e("br"),e("small",{staticClass:"grey--text"},[e("b",[t._v("(낱말배열 객관식 유형은 최대 "+t._s(t.s_wa_n_cnt)+"개까지\n 가능합니다.)")])])]:t._e()]:t._e()],2)]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"test_option",id:"test_option_div"},slot:"test_option"},[e(M["b"],{staticClass:"text-center py-8"},[e(U["a"],{staticClass:"w-100 mgauto px-11",staticStyle:{"align-items":"center"}},[e(j["a"],{staticClass:"text-left pr-0",attrs:{cols:"4"}},[e("h3",{staticClass:"title-1"},[e("b",[t._v("선택 문항 수")])])]),e(j["a"],{staticClass:"text-left pl-0",attrs:{cols:"8"}},[e("h3",{staticClass:"success--text title"},[e("b",[t._v(t._s(t.test_unit_cnt)+"개")])])])],1),e(U["a"],[0!=t.err_status?e(j["a"],{staticClass:"text-left py-0",attrs:{cols:"8",offset:"4"}},[e("h2",{staticClass:"red--text"},[2==t.err_status?e("small",[t._v("(객관식 문제를 만들 문항 수가 부족합니다.)")]):t.test_unit_cnt1&&t.nowpage0&&t.circle_width>0?e(Ps["a"],{attrs:{indeterminate:!1,rotate:-90,size:t.circle_size,value:t.status.circle_total?100:0,width:t.circle_width,color:"#27d1ac"},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"text-center"},[e("h2",{staticClass:"black--text",style:`font-size:${t.circle_font}px; font-weight:900;`},[t._v("\n "+t._s(t.status.circle_total)+"\n ")]),e("span",{staticClass:"black--text",style:`font-size:${.55*t.circle_font}px;`},[t._v("\n 전체 인원\n ")])])]},proxy:!0}],null,!0)}):t._e()],1),e("div",{attrs:{id:"circle-col-2"}},[t.circle_size>0&&t.circle_width>0?e(Ps["a"],{attrs:{indeterminate:!1,rotate:-90,size:t.circle_size,value:t.status.circle_lp_rate,width:t.circle_width,color:"#27d1ac"},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"text-center"},[e("h2",{staticClass:"black--text",style:`font-size:${t.circle_font}px; font-weight:900;`},[t._v("\n "+t._s(t.status.circle_lp)+"\n ")]),e("span",{staticClass:"black--text",style:`font-size:${.55*t.circle_font}px;`},[t._v("\n 학습 인원\n ")])])]},proxy:!0}],null,!0)}):t._e()],1),e("div",{attrs:{id:"circle-col-3"}},[t.circle_size>0&&t.circle_width>0?e(Ps["a"],{attrs:{indeterminate:!1,rotate:-90,size:t.circle_size,value:t.status.circle_avg,width:t.circle_width,color:"#27d1ac"},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"text-center"},[e("h2",{staticClass:"black--text",style:`font-size:${t.circle_font}px; font-weight:900;`},[t._v("\n "+t._s(Number(t.status.circle_avg).toFixed(0))+"\n ")]),e("span",{staticClass:"black--text",style:`font-size:${.55*t.circle_font}px;`},[t._v("\n 평균 점수\n ")])])]},proxy:!0}],null,!0)}):t._e()],1)])],1)],1)],1),e(M["a"],{key:t.key.card_action,staticClass:"pa-0 d-block"},[e(U["a"],{staticClass:"w-100 mgauto cursor",staticStyle:{"border-top":"thin solid #e0e0e0 !important"},style:"s"==t.status.sel_row?"background: #eaffda;":"background: white;",on:{click:function(e){return t.toggleRow("s")}}},[e(j["a"],{staticClass:"pa-3 pl-8 h-100",attrs:{cols:"7","align-self":"center"}},[e("b",{class:"s"==t.status.sel_row?"success--text":""},[t._v("학습 인원")])]),e(j["a"],{staticClass:"text-center",attrs:{cols:"3","align-self":"center"}},["s"==t.status.sel_row?[e("b",{staticClass:"success--text",staticStyle:{"font-size":"medium"}},[t._v("\n "+t._s(t.status.study_cnt)+"\n ")]),e("b",{staticStyle:{"font-size":"smaller"}},[t._v("\n / "+t._s(t.status.circle_total)+"\n ")])]:t._e()],2),e(j["a"],{staticClass:"text-center",attrs:{cols:"2","align-self":"center"}},[e(q["a"],{class:"s"==t.status.sel_row?"success--text":""},[t._v("mdi-chevron-right")])],1)],1)],1)],1)],1),e(j["a"],{staticClass:"studyview-right over-y-scroll h-100",attrs:{cols:"6"}},["s"==t.status.sel_row?[e(U["a"],{staticClass:"w-100 mgauto",attrs:{justify:"center"}},[e(te["a"],{attrs:{mandatory:""},model:{value:t.toggle_exclusive,callback:function(e){t.toggle_exclusive=e},expression:"toggle_exclusive"}},[e(L["a"],{staticClass:"ls-m-2",staticStyle:{height:"calc(2.5 * 1rem) !important"},attrs:{"active-class":"success"},on:{click:t.getStatus}},[t._v("\n "+t._s("s"==t.status.sel_row?"학습":"평가")+"\n 인원 "),e("span",{staticClass:"cnt"},[t._v(t._s("s"==t.status.sel_row?t.status.study_cnt:0)+"명")])]),e(L["a"],{staticClass:"ls-m-2",staticStyle:{height:"calc(2.5 * 1rem) !important"},attrs:{"active-class":"success"},on:{click:t.getStatus}},[t._v("\n "+t._s("s"==t.status.sel_row?"미학습":"미평가")+"\n 인원 "),e("span",{staticClass:"cnt"},[t._v(t._s("s"==t.status.sel_row?t.status.nonstudy_cnt:0)+"명")])])],1)],1),e(U["a"],{staticClass:"w-100 mgauto mt-2"},[e(R["a"],{key:t.key.status_table,attrs:{headers:t.status.headers,items:t.status.items,"hide-default-header":"","hide-default-footer":"","no-data-text":"조회 가능한 기록이 없습니다.","no-results-text":"조회 가능한 기록이 없습니다.",page:t.status.page,"items-per-page":t.status.items_per_page,"sort-by":t.status.sortby,"sort-desc":t.status.sortdesc},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"status",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"item.class_name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.class_name)+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.avg",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(0==t.toggle_exclusive?Number(s.avg).toFixed(2)+"점":"-")+"\n ")])]}}],null,!0)})],1)]:[e(U["a"],{staticClass:"w-100 mgauto h-100"},[e(j["a"],{staticClass:"text-center grey--text",staticStyle:{"align-self":"center"}},[e("span",{staticStyle:{"font-size":"1rem"}},[t._v("오픈 준비 중입니다.")])])],1)]],2)],1):2==s?e("div",{staticClass:"w-100 mgauto studyview-screen-90",staticStyle:{height:"calc(100vh - 6.5rem - 92px)"}},[e(U["a"],{staticClass:"w-100 mgauto mt-2",staticStyle:{"align-items":"center"}},[e(j["a"],{staticClass:"pa-0 pb-2",attrs:{cols:"1"}},[e(L["a"],{staticClass:"mx-2",attrs:{fab:"",dark:"","x-small":"",depressed:"",color:"#f2f3f5"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.key.realtime_table+=1}}},[e(q["a"],{attrs:{color:"black"}},[t._v("mdi-refresh")])],1)],1),e(j["a"],{staticClass:"pa-0 pb-2",attrs:{cols:"11"}},[e("div",{staticClass:"float-right"},[e(L["a"],{staticClass:"mr-1 white--text btn-in-menu",class:0==t.toggle_exclusive2?"success":"grey lighten-1",attrs:{depressed:"",tile:""},on:{click:function(e){0==t.toggle_exclusive2?t.$store.dispatch("soundEffectPlay","click_button"):t.changeToggle(0)}}},[t._v("\n 2일 전\n ")]),e(L["a"],{staticClass:"mr-1 white--text btn-in-menu",class:1==t.toggle_exclusive2?"success":"grey lighten-1",attrs:{depressed:"",tile:""},on:{click:function(e){1==t.toggle_exclusive2?t.$store.dispatch("soundEffectPlay","click_button"):t.changeToggle(1)}}},[t._v("\n 어제\n ")]),e(L["a"],{staticClass:"white--text btn-in-menu",class:2==t.toggle_exclusive2?"success":"grey lighten-1",attrs:{depressed:"",tile:""},on:{click:function(e){2==t.toggle_exclusive2?t.$store.dispatch("soundEffectPlay","click_button"):t.changeToggle(2)}}},[t._v("\n 오늘\n ")])],1),e(ot["a"],{ref:"rtdatedialog",refInFor:!0,staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.realtime_date,transition:!1,"no-click-animation":!0,width:"290px"},on:{"update:returnValue":function(e){t.realtime_date=e},"update:return-value":function(e){t.realtime_date=e}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"float-right mr-1 c-date-picker grey--text",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),outlined:"","single-line":"","hide-details":"",readonly:""},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},s))]}}],null,!0),model:{value:t.menu2,callback:function(e){t.menu2=e},expression:"menu2"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,max:t.getToday()},on:{change:function(e){t.$refs.rtdatedialog[0].save(t.realtime_date),t.selectRTDate()}},model:{value:t.realtime_date,callback:function(e){t.realtime_date=e},expression:"realtime_date"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.menu2=!1}}},[e("b",[t._v("취소")])])],1)],1)],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{key:t.key.realtime_table,staticClass:"w-100",attrs:{headers:t.realtime.headers,items:t.realtime.items,"hide-default-header":"","no-data-text":"조회 가능한 기록이 없습니다.","no-results-text":"조회 가능한 기록이 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},options:t.realtime_options,"server-items-length":Number(t.realtime.items_length),page:t.realtime.page,"items-per-page":t.realtime.items_per_page,"sort-by":t.realtime.sortby,"sort-desc":t.realtime.sortdesc},on:{"update:options":function(e){t.realtime_options=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"realtime",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function({options:s}){return[e("DataTableItemsPerPage",{attrs:{options:t.realtime_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.realtime_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]}},{key:"item.type",fn:function({item:s}){return[e("span",{class:t.getTypeText(s).color+"--text test-usn"},[t._v("\n "+t._s(t.getTypeText(s).text)+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.schedule_name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[5===+s.booktype_m&&0===+s.booktype_s?[t._v("\n 내공백서 스토리북 Lv. "+t._s(s.level)+"\n ")]:[t._v("\n "+t._s(s.schedule_name)+"\n ")]],2)]}},{key:"item.unit",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(t.setUnitName(s))+"\n ")])]}},{key:"item.avg",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(Number(s.avg).toFixed(2))+"점\n ")])]}},{key:"item.postdate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.postdate)+"\n ")])]}}],null,!0)})],1),e("pre-cautions",{attrs:{type:s,data:t.$data}})],1):t._e()],1)})),1)],1)],1)],1)],1)},Ho=[],Go={name:"studyview",components:{preFont:et["a"],preCautions:at["a"]},data(){return{subtitle:"학습현황을 간편",tab:null,tabs:2,date:(new Date).toISOString().substr(0,10),today:"",yday:"",_2ago:"",menu1:!1,menu2:!1,fill:{gradient:["#bbda83","#a0d98c","#7bda8e"]},toggle_exclusive:0,toggle_exclusive2:2,realtime_date:(new Date).toISOString().substr(0,10),key:{card_text:0,card_action:"card_action0",status_table:"status_table0",realtime_table:"realtime_table0",toggle_exclusive2:0},status:{sel_day:(new Date).toLocaleDateString().slice(0,-1),sel_row:"s",sel_row_on:!0,sel_date:"",circle_lp:0,circle_lp_rate:0,circle_ex:0,circle_ex_rate:0,circle_avg:0,circle_avg_rate:0,circle_total:0,items_length:0,page:1,items_per_page:1e3,sortby:void 0,sortdesc:void 0,headers:[{text:"인원",value:"num",align:"left",sortable:!1},{text:"클래스",value:"class_name",align:"left",sortable:!0},{text:"이름",value:"name",align:"left",sortable:!0},{text:"학습점수",value:"avg",align:"left",sortable:!0}],items:[],study_cnt:0,nonstudy_cnt:0},status_options:{},realtime:{sel_date:"",headers:[{text:"No.",value:"num",align:"left",sortable:!1},{text:"구분",value:"type",align:"left",sortable:!0},{text:"이름",value:"name",align:"left",sortable:!0},{text:"교재명",value:"schedule_name",align:"left",sortable:!0},{text:"차시",value:"unit",align:"left",sortable:!0},{text:"점수",value:"avg",align:"left",sortable:!0},{text:"학습 날짜",value:"postdate",align:"left",sortable:!0}],items:[],items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0},realtime_options:{},circle_size:0,circle_width:0,circle_font:0,sel_class:"all",class_list:[],first_api:!1}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){this.today=this.getToday(),this.yday=this.getToday(-1),this._2ago=this.getToday(-2),this.realtime.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"realtime")},mounted(){this.status.sel_row="s",this.key.status_table+=1,this.getNewStatus(),setTimeout(()=>{this.setCircleSize(),window.onresize=this.setCircleSize,document.getElementById("loading-wrapper").style.display="none"},125)},watch:{menu1(t){t&&this.$store.dispatch("soundEffectPlay","after_popup")},menu2(t){t&&this.$store.dispatch("soundEffectPlay","after_popup")},realtime_options:{handler(){this.realtime.page=this.realtime_options.page,this.realtime.items_per_page=this.realtime_options.itemsPerPage,this.updatePageListNumberOfStorage(this.$route.path,"realtime",this.realtime_options.itemsPerPage),this.realtime.sortby?void 0!==this.realtime.sortdesc&&void 0!==this.realtime_options.sortBy[0]&&void 0!==this.realtime_options.sortDesc[0]&&this.getRealTime():this.getRealTime()},deep:!0},toggle_exclusive(t){this.key.status_table+=1}},computed:{computedDateFormatted(){return"tab-1"==this.tab?this.today==this.formatDate(this.date)?"Today":this.formatDate(this.date):"tab-2"==this.tab?this.formatDate(this.realtime_date):void 0}},methods:{getTypeText:dt["b"],setUnitName:dt["e"],setStoryBookUnitName:dt["d"],getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],changeTab(t){this.$store.dispatch("soundEffectPlay","click_button"),1==t?this.subtitle="학습현황을 간편":2==t&&(this.subtitle="학습내역을 실시간")},formatDate(t){if(!t)return null;let[e,s,a]=t.split("-"),i="";if("tab-1"==this.tab){let[t,o,n]=this.today;o=o<10?"0"+o:o,n=n<10?"0"+n:n;let l=0;t==e&&(l+=1),o==s&&(l+=1),n==a&&(l+=1),3==l?(i="Today",this.status.sel_day=`${e}-${s}-${a}`):(i=`${e}-${s}-${a}`,this.status.sel_day=`${e}-${s}-${a}`),this.key.card_text+=1}else i=`${e}-${s}-${a}`;return i},toggleRow(t){this.$store.dispatch("soundEffectPlay","click_button"),this.status.sel_row=t,this.toggle_exclusive=0,this.status.headers[3].text=("s"==t?"학습":"평가")+" 점수",this.key.status_table=this.key.status_table.replace("status_table","")+1},getStatus(){this.$store.dispatch("soundEffectPlay","click_button");let t=`${this.$host}/academy/${this.$cid}/getstatus/${this.status.sel_row}/${this.toggle_exclusive}`;const e=this.status.sortby,s=this.status.sortdesc;void 0!=e&&void 0!=s&&(t+=`/${e}/${1==s?"desc":"asc"}`),t+=`?tid=${this.$id}_${this.$uclass}&classroom=${this.sel_class}`,""!=this.status.sel_date&&(t+="&sel_date="+this.status.sel_date),this.status.items=[],this.$axios.get(t).then(t=>{if(200==t.status){const e=t.data;if(this.status.circle_avg=e.avg&&e.avg>0?e.avg:0,"s"==this.status.sel_row){let t=0;if("all"===this.sel_class){t=+e.nonstudy_cnt;for(let s=0,a=e.study.length;s{console.log(t),this.first_api||(this.first_api=!0)})},getRealTime(){const t=(this.realtime.page-1)*this.realtime.items_per_page,e=this.realtime.items_per_page,s=this.realtime.sortby,a=this.realtime.sortdesc;let i=`${this.$host}/academy/${this.$cid}/getrealtime/${t}/${e}`;void 0!=s&&void 0!=a&&(i+=`/${s}/${1==a?"desc":"asc"}`),i+=`?tid=${this.$id}_${this.$uclass}`,this.realtime.sel_date&&(i+="&sel_date="+this.realtime.sel_date),this.$axios.get(i).then(t=>{if(200==t.status){this.realtime.items=[],this.realtime.items_length=t.data.cnt?t.data.cnt:0;let e=Object.entries(t.data.rows);for(let t=0,s=e.length;t{this.realtime.items=[],console.log(t)})},selectDate(t){this.today==t?this.status.sel_date="":this.status.sel_date=t,this.getStatus()},selectRTDate(t){this.realtime_options.page=1,this.realtime_date==this.today?(this.realtime.sel_date=this.getToday(),2!=this.toggle_exclusive2&&(this.key.realtime_table+=1),this.toggle_exclusive2=2):this.realtime_date==this.yday?(this.realtime.sel_date=this.getToday(-1),1!=this.toggle_exclusive2&&(this.key.realtime_table+=1),this.toggle_exclusive2=1):this.realtime_date==this._2ago?(this.realtime.sel_date=this.getToday(-2),0!=this.toggle_exclusive2&&(this.key.realtime_table+=1),this.toggle_exclusive2=0):(this.toggle_exclusive2="date",this.realtime.sel_date=this.realtime_date,this.key.realtime_table+=1)},changeToggle(t){this.$store.dispatch("soundEffectPlay","click_button"),this.realtime_options.page=1,this.toggle_exclusive2=t,0==t?this.realtime_date=this._2ago:1==t?this.realtime_date=this.yday:2==t?this.realtime_date=this.today:this.toggle_exclusive2="date",this.realtime.sel_date=this.realtime_date,this.key.realtime_table+=1},customSort(t,e,s){this[t].sortby=e,this[t].sortdesc=s},setCircleSize(){let t=document.getElementById("circle-row"),e=document.getElementById("circle-col-1");if(t&&e){let s=window.getComputedStyle(e),a=t.clientHeight;a-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom);const i=.049645*t.clientWidth*2,o=(t.clientWidth-i)/3;let n=a>o?o:a;isNaN(n)||(this.circle_size=n,this.circle_width=Math.round(n/8)>=15?15:Math.round(n/8),this.circle_font=Math.round(n/5)>=30?30:Math.round(n/5))}},async getNewStatus(){this.class_list=[{id:"all",name:"전체 클래스"}],await this.$store.dispatch("getClassRoom",{by:"name"}).then(t=>{200===t.status&&t.data.length>0&&(this.class_list=[...this.class_list,...t.data])}).catch(t=>{console.error(t)}),await this.getStatus()}},beforeDestroy(){this.allBusDestroy(),window.onresize=null}},Wo=Go,Yo=(s("4b7e"),Object(u["a"])(Wo,Uo,Ho,!1,null,null,null)),Jo=Yo.exports,Vo=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"h-100",class:[["list","batch_period_report"].includes(t.mode)?"white":"bg-default","mode-"+t.mode,"batch_period_report"==t.mode?"over-y-hidden":""],attrs:{id:"reportviewvue",justify:"center"}},[e(j["a"],{directives:[{name:"show",rawName:"v-show",value:["list","batch_period_report"].includes(t.mode),expression:"['list', 'batch_period_report'].includes(mode)"}],staticClass:"py-0 white printnone",class:"batch_period_report"==t.mode?"h-100":"",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("레포트 조회")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3"},[e("small",[t._v("온라인 학습\n "+t._s(t.tab?"tab-1"==t.tab||"tab-3"==t.tab?"일일":"학습 기간":"")+"성적표를 조회합니다.")])])]),e("div",[e(J["a"],{staticClass:"elevation-0",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"],{key:"tab_slider_"+t.key.tsn}),t._l(["일일 레포트","기간 레포트","레벨 테스트"],(function(s,a){return e(W["a"],{key:"tab-"+a,attrs:{ripple:!1,href:"#tab-"+(a+1)},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",{domProps:{textContent:t._s(""+s)}})])})),"tab-1"==t.tab&&t.conditionByTutorial("t17")?e("ctooltip",{attrs:{arrow_direction:"arrow-left",tool_top:"50%",tool_left:"0",tool_translate:"translate(90%, -35%)",tutorial_key:"t17"}}):t._e(),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:"tab-item-"+s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?e("div",{attrs:{id:"tab-1"}},[e("div",{staticClass:"py-2"},[e("select-box",{key:t.overflow_component_daily,attrs:{items:t.daily.sel_list,id:"option_select_3",buttonClass:"mg-left",disabled:t.chkSelect_D},on:{change:function(e){return t.selectRowEvent(s,e)}}}),e("div",{staticClass:"float-left ml-3 optiondiv"},[e(F["a"],{key:t.key.daily.classlist,staticClass:"c-class-overflow-btn",attrs:{items:t.classlist,id:"option_select_1",label:"클래스","append-icon":"mdi-chevron-down",dense:"",solo:"",rounded:"","single-line":"",flat:"","hide-details":"","x-small":"",color:"info","persistent-placeholder":!0},on:{change:function(e){return t.classChange(e,"daily")}}})],1),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",id:"search",placeholder:"이름 검색",dense:"",solo:"",rounded:"",flat:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},on:{keydown:function(e){return t.search(e,"daily")},"click:append":function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.search(e,"daily")}},model:{value:t.daily.keyword,callback:function(e){t.$set(t.daily,"keyword",e)},expression:"daily.keyword"}}),e("div",{staticClass:"float-right"},t._l(["어제","오늘"],(function(s,a){return e(L["a"],{key:"daily-btn-"+a,staticClass:"mr-1 white--text btn-in-menu",class:t.daily.toggle_exclusive==a?"success":"grey lighten-1",attrs:{depressed:"",tile:"",height:"35"},on:{click:function(e){t.daily.toggle_exclusive!=a&&t.toggleExc(a,"daily")}}},[t._v("\n "+t._s(s)+"\n ")])})),1),e("div",{staticClass:"d-inline-block float-right"},[e(ot["a"],{ref:"dailySDdialog",refInFor:!0,staticClass:"daily-dialog",staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.daily.sdate,width:"290px",transition:!1},on:{"update:returnValue":function(e){return t.$set(t.daily,"sdate",e)},"update:return-value":function(e){return t.$set(t.daily,"sdate",e)}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"float-left mr-1 c-date-picker sdate",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),"hide-details":"",solo:"",outlined:"",readonly:"",flat:"","single-line":""},model:{value:t.dailySDateFormatted,callback:function(e){t.dailySDateFormatted=e},expression:"dailySDateFormatted"}},s))]}}],null,!0),model:{value:t.daily.smenu,callback:function(e){t.$set(t.daily,"smenu",e)},expression:"daily.smenu"}},[e(ba["a"],{staticClass:"daily-picker",attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,"allowed-dates":t.dailyAllowed,max:t.getEndDate},on:{change:function(e){t.$refs.dailySDdialog[0].save(t.daily.sdate),t.dateChange(e,"daily")},"update:picker-date":t.getReportDays},model:{value:t.daily.sdate,callback:function(e){t.$set(t.daily,"sdate",e)},expression:"daily.sdate"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.daily.smenu=!1}}},[e("b",[t._v("취소")])])],1)],1),e("b",{staticClass:"float-left mt-2 mr-1 grey--text"},[t._v(" ~ ")]),e(ot["a"],{ref:"dailyEDdialog",refInFor:!0,staticClass:"daily-dialog",staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.daily.edate,width:"290px",transition:!1},on:{"update:returnValue":function(e){return t.$set(t.daily,"edate",e)},"update:return-value":function(e){return t.$set(t.daily,"edate",e)}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"float-left mr-1 c-date-picker",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),"hide-details":"",solo:"",outlined:"",readonly:"",flat:"","single-line":""},model:{value:t.dailyEDateFormatted,callback:function(e){t.dailyEDateFormatted=e},expression:"dailyEDateFormatted"}},s))]}}],null,!0),model:{value:t.daily.emenu,callback:function(e){t.$set(t.daily,"emenu",e)},expression:"daily.emenu"}},[e(ba["a"],{staticClass:"daily-picker",attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,"allowed-dates":t.dailyAllowed,max:t.getEndDate},on:{change:function(e){t.$refs.dailyEDdialog[0].save(t.daily.edate),t.dateChange(e,"daily")},"update:picker-date":t.getReportDays},model:{value:t.daily.edate,callback:function(e){t.$set(t.daily,"edate",e)},expression:"daily.edate"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.daily.emenu=!1}}},[e("b",[t._v("취소")])])],1)],1)],1),e("div",{staticStyle:{clear:"both"}})],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.dailyTableResize,expression:"dailyTableResize"}],staticClass:"w-100",attrs:{headers:t.daily.headers,items:t.daily.items,"single-expand":!0,"show-expand":!0,expanded:t.daily.expanded,"item-key":"unit_record_id","expand-icon":"mdi-menu-down","no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"조회 가능한 레포트가 없습니다.","header-props":{sortIcon:null},"footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,options:t.daily_options,"server-items-length":t.daily.items_length,page:t.daily.page,"items-per-page":t.daily.items_per_page,"sort-by":t.daily.sortby,"sort-desc":t.daily.sortdesc,"show-select":""},on:{"update:expanded":function(e){return t.$set(t.daily,"expanded",e)},"update:options":function(e){t.daily_options=e},"click:row":t.toggleClassRow,"toggle-select-all":function(e){return t.selectAllReport("d",e)}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{items:t.daily.items,type:"daily",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.daily_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.daily_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a}){return[e(q["a"],{on:{click:function(t){return t.stopPropagation(),s(!a)}}},[t._v("\n "+t._s(a?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.data-table-select",fn:function({item:s}){return[e(Ye["a"],{attrs:{color:"info",value:s.isSelected},on:{input:function(e){return t.selectReport(e,"d",s)}}})]}},{key:"item.classname",fn:function({item:s}){return[e("span",{staticClass:"text-usn",domProps:{textContent:t._s(s.classname)}})]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"text-usn",domProps:{textContent:t._s(s.name)}})]}},{key:"item.schedule_name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[5===+s.booktype_m&&0===+s.booktype_s?[t._v("\n 내공백서 스토리북 Lv. "+t._s(s.level)+"\n ")]:[t._v("\n "+t._s(s.schedule_name||s.bookname)+"\n ")]],2)]}},{key:"item.tot_studytime",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.tot_studytime)+"분\n ")])]}},{key:"item.unitnum",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(t.setUnitName(s))+"\n ")])]}},{key:"item.avg",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(Number(s.avg).toFixed(2))+"점\n ")])]}},{key:"item.view",fn:function({item:s}){return[e("div",{staticClass:"pos-rel d-flex-center",staticStyle:{gap:"8px"}},[t._l(s.view_btn,(function(a,i){return["span"==a.btn_type?[e("span",{key:`btn_${i}_${a.label}`,class:a.class?a.class:null,style:a.style?a.style:null},[t._v("\n "+t._s(a.label)+"\n "),e(q["a"],{staticStyle:{color:"#9e9e9e !important","margin-top":"-2px"},attrs:{size:"1rem"}},[t._v("\n mdi-chevron-down\n ")])],1)]:[e(L["a"],{key:`btn_${i}_${a.label}`,class:a.class?a.class:null,style:a.style?a.style:null,attrs:{depressed:"",rounded:"",small:"",color:a.color?a.color:null},on:{click:function(e){return e.stopPropagation(),t.openReport(a.report_type,s)}}},[t._v("\n "+t._s(a.label)+"\n ")])]]}))],2)]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.daily.headers.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return[e("colgroup",[e("col"),e("col"),e("col"),e("col"),e("col"),e("col"),e("col"),e("col"),e("col")]),e("tbody",{staticClass:"expanded_table"},[t._l(s.sub_rows,(function(a,i){return[e("tr",{key:"expanded_table_tr_"+i},[e("td",{staticStyle:{"border-bottom":"unset !important"},attrs:{colspan:"2"}}),e("td",{staticStyle:{"border-bottom":"unset !important"}}),e("td",{staticClass:"text-right",staticStyle:{"vertical-align":"middle","border-bottom":"unset !important"}},[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"text-left",attrs:{colspan:"2"}},[e("div",{staticClass:"float-left mr-6",staticStyle:{width:"96px"}},[e("b",{class:t.setTypeColor(a.type)+"--text"},[t._v("\n "+t._s(a.history_text)+"\n ")])]),e("div",{staticClass:"float-left",staticStyle:{width:"calc(100% - 120px)"}},[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(a.postdate)+"\n ")])])]),e("td",{staticClass:"text-left text-usn"},[t._v("\n "+t._s(a.studytime)+"분\n ")]),e("td",{staticClass:"text-left text-usn"},["-"==a.avg?[t._v("\n -점\n ")]:[t._v("\n "+t._s(0!=a.avg?s.unit_record_id.includes("MOCK")?parseFloat(a.score).toFixed(2):parseFloat(a.avg).toFixed(2):0)+"점\n ")]],2),e("td",[1==s.schedule_type&&1==s.type_v||s.new_mock?[a.button?["V"==a.type?e(L["a"],{staticClass:"white--text",attrs:{color:"warning",depressed:"",rounded:"",small:""},on:{click:function(e){return e.stopPropagation(),t.openReport("v",s,a.su_seq)}}},[t._v("어휘")]):["S","M"].includes(a.type)?e(L["a"],{attrs:{color:"success",depressed:"",rounded:"",small:""},on:{click:function(e){return e.stopPropagation(),t.openReport("S"==a.type?"study":"m",s,a.su_seq)}}},[t._v("\n "+t._s(3==s.category||1==s.category?"지문":"본문")+"\n ")]):"T"==a.type||"A"==a.type?e(L["a"],{staticClass:"white--text ra_btn",attrs:{color:"info2",depressed:"",rounded:"",small:""},on:{click:function(e){return e.stopPropagation(),t.openReport("T"==a.type?"test":"a",s,a.su_seq)}}},[t._v("심화")]):"X"==a.type?e(L["a"],{staticClass:"white--text ra_btn",attrs:{color:"info2",depressed:"",rounded:"",small:""},on:{click:function(e){return e.stopPropagation(),t.openReport("x",s)}}},[t._v("듣기")]):s.new_mock?e(L["a"],{staticClass:"white--text ra_btn",attrs:{color:"success",depressed:"",rounded:"",small:""},on:{click:function(e){return e.stopPropagation(),t.openReport("x",s,a.id)}}},[t._v("평가")]):t._e()]:e("span",[t._v(" - ")])]:t._e()],2)])]}))],2)]},proxy:!0}],null,!0)})],1)]}}],null,!0),model:{value:t.check_daily_report,callback:function(e){t.check_daily_report=e},expression:"check_daily_report"}})],1),t.conditionByTutorial("t16")?e("ctooltip",{attrs:{wrap_position:"fixed",arrow_direction:"arrow-up",arrow_right:t.t16_arrow_right,arrow_translate:"translate(50%, 1px)",tool_top:t.t16_tool_top,tool_left:t.t16_tool_left,tool_translate:"translate(-100%, 10%)",tutorial_key:"t16"}}):t._e()],1):2==s?e("div",[e("div",{staticClass:"py-2"},[e("select-box",{key:t.overflow_component_period,attrs:{items:t.period.sel_list,id:"option_select_4",buttonClass:"mg-left",disabled:t.chkSelect_P},on:{change:function(e){return t.selectRowEvent(s,e)}}}),e("div",{staticClass:"float-left ml-3 optiondiv"},[e(F["a"],{key:t.key.period.classlist,staticClass:"c-class-overflow-btn",attrs:{items:t.classlist,id:"option_select_2",label:"클래스","append-icon":"mdi-chevron-down",dense:"",solo:"",rounded:"","single-line":"",flat:"","hide-details":"","x-small":"",color:"info","persistent-placeholder":!0},on:{change:function(e){return t.classChange(e,"period")}}})],1),e(X["a"],{staticClass:"c-search-input float-left ml-3",attrs:{"append-icon":"mdi-magnify",id:"psearch",placeholder:"이름 검색",dense:"",solo:"",rounded:"",flat:"","single-line":"","hide-details":"",color:"success"},on:{keydown:function(e){return t.search(e,"period")},"click:append":function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.search(e,"period")}},model:{value:t.period.keyword,callback:function(e){t.$set(t.period,"keyword",e)},expression:"period.keyword"}}),e("div",{staticClass:"float-right"},t._l(["지난달","이번달"],(function(s,a){return e(L["a"],{key:"period-btn-"+a,staticClass:"mr-1 white--text btn-in-menu",class:t.period.toggle_exclusive==a?"success":"grey lighten-1",attrs:{height:"35",depressed:"",tile:""},on:{click:function(e){t.period.toggle_exclusive!=a&&t.toggleExc(a,"period")}}},[t._v("\n "+t._s(s)+"\n ")])})),1),e(ot["a"],{ref:"period_eddialog",refInFor:!0,staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.period.eddate,transition:!1,width:"290px"},on:{"update:returnValue":function(e){return t.$set(t.period,"eddate",e)},"update:return-value":function(e){return t.$set(t.period,"eddate",e)}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"float-right mr-1 c-date-picker",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),"hide-details":"",solo:"",outlined:"",readonly:"",flat:"","single-line":""},model:{value:t.periodEDateFormatted,callback:function(e){t.periodEDateFormatted=e},expression:"periodEDateFormatted"}},s))]}}],null,!0),model:{value:t.period.edmenu,callback:function(e){t.$set(t.period,"edmenu",e)},expression:"period.edmenu"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,max:t.getEndDate},on:{change:function(e){t.$refs.period_eddialog[0].save(t.period.eddate),t.dateChange(e,"period","ed")}},model:{value:t.period.eddate,callback:function(e){t.$set(t.period,"eddate",e)},expression:"period.eddate"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.period.edmenu=!1}}},[e("b",[t._v("취소")])])],1)],1),e("b",{staticClass:"float-right mt-2 mr-1 grey--text"},[t._v(" ~ ")]),e(ot["a"],{ref:"period_sddialog",refInFor:!0,staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.period.sddate,transition:!1,width:"290px"},on:{"update:returnValue":function(e){return t.$set(t.period,"sddate",e)},"update:return-value":function(e){return t.$set(t.period,"sddate",e)}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"float-right mr-1 c-date-picker",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),"hide-details":"",solo:"",outlined:"",readonly:"",flat:"","single-line":""},model:{value:t.periodSDateFormatted,callback:function(e){t.periodSDateFormatted=e},expression:"periodSDateFormatted"}},s))]}}],null,!0),model:{value:t.period.sdmenu,callback:function(e){t.$set(t.period,"sdmenu",e)},expression:"period.sdmenu"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,max:t.getEndDate},on:{change:function(e){t.$refs.period_sddialog[0].save(t.period.sddate),t.dateChange(e,"period","sd")}},model:{value:t.period.sddate,callback:function(e){t.$set(t.period,"sddate",e)},expression:"period.sddate"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.period.sdmenu=!1}}},[e("b",[t._v("취소")])])],1)],1),e("div",{staticStyle:{clear:"both"}})],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.periodTableResize,expression:"periodTableResize"}],staticClass:"w-100",attrs:{headers:t.period.headers,items:t.period.items,"single-expand":!0,"show-expand":!0,expanded:t.period.expanded,"item-key":"uid","expand-icon":"mdi-menu-down","no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"조회 가능한 레포트가 없습니다.","header-props":{sortIcon:null},"footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,options:t.period_options,"server-items-length":t.period.items_length,page:t.period.page,"items-per-page":t.period.items_per_page,"sort-by":t.period.sortby,"sort-desc":t.period.sortdesc,"show-select":""},on:{"update:expanded":function(e){return t.$set(t.period,"expanded",e)},"update:options":function(e){t.period_options=e},"click:row":t.toggleClassRow,"toggle-select-all":function(e){return t.selectAllReport("p",e)}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{items:t.period.items,type:"period",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.period_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.period_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.data-table-select",fn:function({item:s}){return[e(Ye["a"],{attrs:{color:"info",value:s.isSelected},on:{input:function(e){return t.selectReport(e,"p",s)}}})]}},{key:"item.data-table-expand",fn:function({item:e}){return[t._v("\n "+t._s(e.rank)+"\n ")]}},{key:"item.classname",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.classname)+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("div",{staticClass:"pos-rel d-inline-block"},[e("span",{staticClass:"text-usn name-span"},[t._v("\n "+t._s(s.name)+"\n ")])])]}},{key:"item.studycnt",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.studycnt)+"회 ")])]}},{key:"item.tot_studytime",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.tot_studytime)+"분\n ")])]}},{key:"item.errorrate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.errorrate)+"% ")])]}},{key:"item.studyrate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.studyrate)+"문항 ")])]}},{key:"item.avg",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(parseFloat(s.avg).toFixed(2))+"점\n ")])]}},{key:"item.view",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[e(L["a"],{staticStyle:{height:"2.358rem !important"},attrs:{size:"sm",color:"success",depressed:""},on:{click:function(e){return t.toggleClassPeriodRow(s)}}},[t._v("\n 조회\n ")])],1)]}}],null,!0),model:{value:t.check_period_report,callback:function(e){t.check_period_report=e},expression:"check_period_report"}}),t.conditionByTutorial("t18")&&""!=t.period.tool_top_18?e("ctooltip",{attrs:{wrap_position:"fixed",arrow_direction:"arrow-up",arrow_left:"48.5%",arrow_translate:"translate(-50%, 1px)",tool_top:t.period.tool_top_18,tool_left:t.period.tool_left_18,tool_translate:"translate(-50%, 50%)",tutorial_key:"t18"}}):t._e()],1)],1):3==s?e("div",[e("div",{staticClass:"py-2"},[e(X["a"],{staticClass:"c-search-input float-left",attrs:{"append-icon":"mdi-magnify",id:"lsearch",placeholder:"이름 검색",dense:"",solo:"",rounded:"",flat:"","single-line":"","hide-details":"",color:"success"},on:{keydown:function(e){return t.search(e,"level")},"click:append":function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.search(e,"level")}},model:{value:t.level.keyword,callback:function(e){t.$set(t.level,"keyword",e)},expression:"level.keyword"}}),e("div",[e("div",{staticClass:"float-right level-right-wrap"},[e(L["a"],{staticClass:"mr-1 white--text btn-in-menu",class:0==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:"",height:"35"},on:{click:function(e){0!=t.month_toggle&&t.levelMonthToggle(0)}}},[t._v("\n 두달 전\n ")]),e(L["a"],{staticClass:"mr-1 white--text btn-in-menu",class:1==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:"",height:"35"},on:{click:function(e){1!=t.month_toggle&&t.levelMonthToggle(1)}}},[t._v("\n 지난달\n ")]),e(L["a"],{staticClass:"white--text btn-in-menu",class:2==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:"",height:"35"},on:{click:function(e){2!=t.month_toggle&&t.levelMonthToggle(2)}}},[t._v("\n 이번달\n ")])],1),e(X["a"],{staticClass:"float-right mr-1 date-field c-date-picker",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),"hide-details":"",outlined:"",flat:"","single-line":"",disabled:""},model:{value:t.levelComputedDateFormatted,callback:function(e){t.levelComputedDateFormatted=e},expression:"levelComputedDateFormatted"}}),e("div",{staticStyle:{clear:"both"}})],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{staticClass:"w-100",attrs:{headers:t.level.headers,items:t.level.items,"item-key":"id","no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"조회 가능한 레포트가 없습니다.","header-props":{sortIcon:null},"footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,options:t.level_options,"server-items-length":t.level.items_length,page:t.level.page,"items-per-page":t.level.items_per_page,"sort-by":t.level.sortby,"sort-desc":t.level.sortdesc},on:{"update:options":function(e){t.level_options=e},"click:row":t.toggleClassRow,"toggle-select-all":function(e){return t.selectAllReport("l",e)}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{items:t.level.items,type:"level",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.level_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.level_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item.view",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[e(L["a"],{staticStyle:{height:"2.358rem !important"},attrs:{size:"sm",color:"success",depressed:""},on:{click:function(e){return t.openLevelTestReport(s)}}},[t._v("\n 조회\n ")])],1)]}}],null,!0)})],1),t.conditionByTutorial("t18")&&""!=t.level.tool_top_18?e("ctooltip",{attrs:{wrap_position:"fixed",arrow_direction:"arrow-up",arrow_left:"48.5%",arrow_translate:"translate(-50%, 1px)",tool_top:t.level.tool_top_18,tool_left:t.level.tool_left_18,tool_translate:"translate(-50%, 50%)",tutorial_key:"t18"}}):t._e()],1):t._e(),e("pre-cautions",{attrs:{type:s,data:t.$data}})],1)})),1)],2)],1)],1)],1),"batch_period_report"==t.mode?e("batch-period-report",{ref:"batch_period_report",attrs:{data:t.$data}}):t._e(),"leveltest-report"!==t.mode?e("report",{directives:[{name:"show",rawName:"v-show",value:!["list","period_report"].includes(t.mode),expression:"!['list', 'period_report'].includes(mode)"}],ref:"report"}):t._e(),"leveltest-report"===t.mode?e("LevelTestReport",{attrs:{item:t.select_leveltest}}):t._e(),"report_error_print"===t.mode&&["report","leveltest-report"].includes(t.prevMode)?e("t-print",{attrs:{cur_item:"leveltest-report"===t.prevMode?t.select_leveltest:t.$refs.report.cur_item,resize_cnt:t.resize_cnt}}):t._e(),"period_report"==t.mode?e(j["a"],{staticClass:"pa-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12",id:"period_report"}},[["md","lg","xl"].includes(t.$vuetify.breakpoint.name)?e(L["a"],{staticClass:"pos-abs pa-0 printnone",staticStyle:{"min-width":"calc((2.5 * 1rem)) !important",height:"unset !important","min-height":"calc((2.5 * 1rem)) !important",top:"12px",right:"12px","z-index":"1"},attrs:{depressed:"",color:"white"},on:{click:function(e){return t.fullScreen("period_report")}}},[t.period_full_screen?e(q["a"],{staticClass:"ma-2"},[t._v(" mdi-arrow-collapse-all ")]):e(q["a"],{staticClass:"ma-2"},[t._v("\n mdi-arrow-expand-all\n ")])],1):t._e(),e("div",{staticClass:"w-100 mgauto grey darken-2 over-y-scroll",attrs:{id:"period_report_top_row"}},[e("div",{staticClass:"pos-rel",attrs:{id:"a4_parent"}},[e("div",{staticClass:"pos-rel",staticStyle:{width:"210mm",height:"297mm",left:"50%","transform-origin":"center top"},attrs:{id:"period_a4"}},[e("div",{staticClass:"w-100 h-100 mgauto",staticStyle:{"background-size":"100%"},attrs:{id:"period_report_top_sub"}},[e("img",{staticClass:"pos-abs",staticStyle:{"z-index":"-1"},attrs:{src:s("d62b"),width:"100%",height:"100%"}}),e(U["a"],{staticClass:"w-100 mgauto",staticStyle:{height:"29mm"},attrs:{id:"period_print_bg"}},[e(j["a"],{staticClass:"pa-0 text-center mgauto pos-rel",attrs:{cols:"12"}},[e("div",{staticClass:"pos-abs",staticStyle:{bottom:"0px",left:"50%",transform:"translate(-50%, 0)"}},[e(It["a"],{staticStyle:{margin:"0 auto"},attrs:{src:s("1838"),"lazy-src":s("1838"),height:"43.2",contain:""}})],1)])],1),e("section",{staticClass:"w-100",staticStyle:{"margin-top":"9mm",height:"43.5856mm"},attrs:{id:"period_report_info_section"}},[e(U["a"],{staticClass:"w-100 mgauto h-100"},[e(j["a"],{staticClass:"pr-2 py-0 pcol h-100",staticStyle:{"padding-left":"35px"},attrs:{cols:"6",sm:"6"}},[e("div",{staticClass:"new-infotable h-100 pa-2 d-flex flex-column"},[e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("클래스")])]),e("div",[e("span",[t._v(t._s(t.period.su_classname))])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("이름")])]),e("div",[e("span",[t._v(t._s(t.period.su_name))])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("학습 기간")])]),e("div",[e("span",[t._v(t._s(`${t.period.sddate} ~ ${t.period.eddate}`))])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("종합 점수")])]),e("div",[e("span",[t._v(t._s(t.period.su_avg)+" 점")])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("학습 횟수")])]),e("div",[e("span",[t._v(t._s(t.period.su_studycnt)+"회")])])])])]),e(j["a"],{staticClass:"pl-2 pr-8 py-0 pcol h-100",attrs:{cols:"6",sm:"6"}},[e("div",{staticStyle:{height:"100%"},attrs:{id:"diagram_chart"}},[e("v-chart",{attrs:{options:t.radar,initOptions:t.chart_init,autoresize:!1}})],1)])],1)],1),e("section",{staticClass:"w-100",staticStyle:{"margin-top":"8.1mm",height:"30.8mm"},attrs:{id:"period_report_circle_section"}},[e("div",{staticClass:"pt-0 px-8 py-0 tmp h-100"},[e(U["a"],{key:t.circle_row,staticClass:"w-100 h-100 mgauto",attrs:{id:"period-circle-row"}},[e("div",{staticClass:"float-left text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 12px"},attrs:{id:"period-circle-col"}},[t.period.circle_size>0&&t.period.circle_width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500; position: relative;",attrs:{rotate:"0",size:t.period.circle_size,value:t.period.su_avg,width:t.period.circle_width,color:"success"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(t.period.su_avg)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("점")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 종합 점수\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.period.circle_size>0&&t.period.circle_width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.period.circle_size,value:t.period.su_studyrate,width:t.period.circle_width,color:"#97f1b8"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(t.period.su_studyrate)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("개")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 학습 문항\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.period.circle_size>0&&t.period.circle_width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.period.circle_size,value:t.period.su_wrongcnt,width:t.period.circle_width,color:"#7cece2"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(t.period.su_wrongcnt)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("개")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 오답 문항\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.period.circle_size>0&&t.period.circle_width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.period.circle_size,value:t.period.su_errorrate,width:t.period.circle_width,color:"#80cbec"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(t.period.su_errorrate)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("%")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 오답률\n ")])],1),e("div",{staticClass:"float-left pl-0 pr-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.period.circle_size>0&&t.period.circle_width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.period.circle_size,value:t.period.su_studytime,width:t.period.circle_width,color:"#95bbef"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(t.period.su_studytime)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("분")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 학습 시간\n ")])],1),e("div",{staticStyle:{clear:"both"}})])],1)]),e("section",{staticClass:"w-100",staticStyle:{"margin-top":"8.2mm",height:"53.1137mm"},attrs:{id:"period_report_spark_section"}},[e(U["a"],{staticClass:"w-100 h-100 mgauto px-8"},[e("div",{staticClass:"w-100 h-100"},[e("v-chart",{key:t.sparkkey,staticStyle:{width:"100%",height:"100%"},attrs:{options:t.spark,initOptions:t.chart_init,autoresize:!0}}),e("div",{staticClass:"pos-rel",staticStyle:{color:"grey",top:"-15.9%","font-size":"0.875rem","padding-left":"calc(5% - 23px)","padding-right":"calc(3% - 18px)"},attrs:{id:"spark_sub_text"}},[e("span",{staticStyle:{"font-size":"13.5px"}},[t._v("(점)")]),e("span",{staticClass:"float-right",staticStyle:{"font-size":"13.5px"}},[t._v("(회)")])])],1)])],1),e("section",{staticClass:"w-100 px-8",staticStyle:{"margin-top":"8.2mm",height:"81.5496mm","margin-bottom":"3.8505mm"},attrs:{id:"period_report_error_section"}},[e(U["a"],{staticClass:"w-100 h-100 mgauto mainerrorrow pb-0 thin-a br-4"},[t.period.select_item&&t.period.select_item.new_wrong_sen_arr.length>0?e(j["a"],{staticClass:"py-0 px-2 h-100",attrs:{cols:"12"}},t._l(t.period.select_item.new_wrong_sen_arr,(function(s,a){return e("div",{key:"period_wrong_sen_"+a,staticClass:"px-2 py-1 row-wrap",class:a!=t.period.select_item.new_wrong_sen_arr.length?"border-ede thin-b":""},[e("div",{ref:"w_sent_"+a,refInFor:!0,staticClass:"float-left pos-rel translate-y wrong-col",on:{mouseover:function(e){return t.setPointer("w_sent_"+a)},click:function(e){return t.showDetail(a)}}},[e("b",{staticClass:"text-usn",staticStyle:{"font-size":"13.5px"},domProps:{innerHTML:t._s(s.sen)}})]),e("div",{ref:"w_mean_"+a,refInFor:!0,staticClass:"float-left pos-rel translate-y wrong-col",on:{mouseover:function(e){return t.setPointer("w_mean_"+a)},click:function(e){return t.showDetail(a)}}},[e("span",{staticClass:"grey--text text-usn",staticStyle:{"font-size":"13.5px"}},[t._v(t._s(s.mean))])]),e("div",{staticStyle:{clear:"both"}})])})),0):e(j["a"],{staticClass:"py-0 px-0 d-flex align-center justify-center",staticStyle:{height:"100%"},attrs:{cols:"12"}},[e("div",{staticClass:"px-2 py-2 text-center grey--text null_errsen",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden","font-size":"13.5px"}},[t._v("\n 오답 문항이 없습니다.\n ")])])],1)],1),e("section",{staticStyle:{height:"21.3mm",display:"block"},attrs:{id:"period_report_footer_section"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"88.6%",height:"100%"}},[e(j["a"],{staticClass:"pa-0 pos-rel h-100",attrs:{cols:"6"}},[e("img",{staticClass:"pos-abs translate-y mt-n3",staticStyle:{"max-height":"35px"},attrs:{src:t.$storage.get("user").clogo?""+t.$storage.get("user").clogo:s("3951")}})]),e(j["a"],{staticClass:"pa-0 text-right h-100 pos-rel",attrs:{cols:"6"}},[e("h3",{staticClass:"black--text pos-abs translate-y mt-n3",staticStyle:{"font-size":"15px",right:"0"}},[t._v("\n "+t._s(t.$storage.get("user").cname)+"\n ")])])],1)],1)],1)])])]),e(U["a"],{staticClass:"printnone custom-footer w-100 mgauto",attrs:{id:"period_report_bottom_row"}},[e(j["a"],{staticClass:"pa-0 pos-rel",attrs:{cols:"6"}},[e(L["a"],{staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",color:"success"},on:{click:function(e){return t.openReportMessageDialog()}}},[e("span",{staticClass:"white--text chrome-font fs-1rem"},[t._v("메시지 발송")])]),t.conditionByTutorial("t19")?e("ctooltip",{attrs:{arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, 0)",tool_top:"0",tool_left:"50%",tool_translate:"translate(-50%, -170%)",tutorial_key:"t19"}}):t._e()],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"6"}},[e(L["a"],{staticStyle:{border:"thin solid #1bd05b !important",height:"100% !important"},attrs:{block:"",depressed:"",tile:"",outlined:""},on:{click:t.openSaveOptionDialog}},[e("span",{staticClass:"success--text chrome-font fs-1rem"},[t._v("레포트 저장")])])],1)],1)],1):t._e(),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e("Dialogs",[e("div",{attrs:{slot:"null_report"},slot:"null_report"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v(t._s(t.null_status_txt)+" 전입니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["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}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"mobile_print"},slot:"mobile_print"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("PC로 이용해주시기 바랍니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"mobile_filedown"},slot:"mobile_filedown"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("디바이스 내 다운로드 폴더에 저장되었습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"print_yet"},slot:"print_yet"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("오픈 준비 중입니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"gt_review"},slot:"gt_review"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("\n 복습 차시는 강의영상 학습으로"),e("br"),t._v("\n 레포트가 존재하지 않습니다.\n ")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["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}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"sv_review"},slot:"sv_review"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v(" 동화학습은 레포트가 존재하지 않습니다. ")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["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}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"multi_print"},slot:"multi_print"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("선택된 "+t._s(t.multi_print_text)+" 기준으로")]),e("br"),e("b",[t._v("오답노트를 출력하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.multiWrongPrint}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)]),e(ot["a"],{attrs:{"max-width":t.dialogWidth,transition:!1},on:{"click:outside":function(e){t.detail_dialog=!1}},model:{value:t.detail_dialog,callback:function(e){t.detail_dialog=e},expression:"detail_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"py-4 text-center black--text title"},[e(U["a"],[e(j["a"],{staticClass:"text-center",attrs:{cols:"12"}},[e("h3",{staticClass:"text-usn",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_sentences)}}),e("div",{staticClass:"border-ede thin-t my-2"}),e("h3",{staticClass:"text-usn grey--text",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_mean)}})])],1)],1)],1)],1),e(ot["a"],{attrs:{origin:"center center",persistent:!1,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":380},on:{"click:outside":t.closeWrongNoteDialog},model:{value:t.wrongnote_dialog,callback:function(e){t.wrongnote_dialog=e},expression:"wrongnote_dialog"}},[e(it["a"],{staticClass:"radio-dialog"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v(" 오답노트 출력 ("+t._s(t.check_period_report.length)+"명) ")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.changeWrongNoteOption},model:{value:t.wrongnote_option,callback:function(e){t.wrongnote_option=e},expression:"wrongnote_option"}},[t.wrongnote_lengths.V>0?e(nt["a"],{staticClass:"custom-radio",attrs:{label:"어휘학습 기준",value:"0",color:"success"}}):t._e(),t.wrongnote_lengths.M>0?e(nt["a"],{staticClass:"custom-radio",attrs:{label:"기본학습 기준",value:"1",color:"success"}}):t._e(),t.wrongnote_lengths.A>0?e(nt["a"],{staticClass:"custom-radio",attrs:{label:"심화학습 기준",value:"2",color:"success"}}):t._e(),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"전체학습 기준",value:"3",color:"success"}})],1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitWrongNote}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_wrongnote_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1)],1),e(ot["a"],{attrs:{origin:"center center",persistent:!1,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":380},on:{"click:outside":t.closeSaveOptionDialog},model:{value:t.saveOptDialog,callback:function(e){t.saveOptDialog=e},expression:"saveOptDialog"}},[e(it["a"],{staticClass:"radio-dialog"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("레포트 저장")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.changeSaveOption},model:{value:t.save_option_rg,callback:function(e){t.save_option_rg=e},expression:"save_option_rg"}},[e(nt["a"],{staticClass:"custom-radio",attrs:{label:"레포트 출력",value:"0",color:"success"}}),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"파일저장",value:"2",color:"success"}})],1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitSaveOption}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_save_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1)],1),"reportview_error_print"==t.mode?e("div",{staticClass:"py-0 pt-3 col-sm-12 col-md-12 col-lg-12 col-12 report_error_print",attrs:{id:"result-component-col"}},[e("t-print2",{attrs:{cur_item:t.cur_item,resize_cnt:t.resize_cnt}})],1):t._e(),e("report-message-dialog",{ref:"report-message-dialog"})],1)},Qo=[],Xo=s("9ca8"),Ko=(s("ef97"),s("8ee0"),function(){var t=this,e=t._self._c;return e(j["a"],{staticClass:"py-0 pt-3",class:[t.inMode,"recommendbooks"==t.inMode?"pb-3":"pb-0"],style:"reportview_error_print"==t.$parent.mode?"padding-top: 0 !important":"",attrs:{id:"result-component-col",cols:"12",sm:"12",md:"12",lg:"12"}},["report"==t.inMode?e("div",{staticClass:"h-100 printnone"},[e("div",{staticClass:"component printnone",attrs:{id:"result-wrapper"}},[e(J["a"],{attrs:{id:"result-list","background-color":"grey lighten-4",color:"success",light:"",grow:"","hide-slider":!0},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(W["a"],{key:"result-tab-0",staticClass:"first-tab",class:"bg-success",attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("b",{staticClass:"tab-title fs-105rem"},[t._v("Report")])]),t._l(t.tabs,(function(s,a){return e(W["a"],{key:"result-tab-"+(a+1),attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tab,expression:"tab == 0"}],staticClass:"under-line",class:"bg-success"}),e("b",{staticClass:"tab-title fs-105rem",class:t.tab==a+1?"fw-700":""},[t._v("\n "+t._s(s)+"\n ")])])})),e(V["a"],{class:{"bg-grey":0==t.tab},staticStyle:{"overflow-y":"auto"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Y["a"],{key:"result-tab-item-0",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[e(Cs["a"],{staticClass:"pa-0",attrs:{fluid:""}},[e(U["a"],[e(j["a"],{staticClass:"vertical-helf py-0 pl-0 pr-1",attrs:{cols:"6"}},[e(it["a"],{staticClass:"elevation-0",attrs:{height:"100%"}},[e(U["a"],{staticClass:"before-divider divider-bottom row-20per"},[e(j["a"],{staticClass:"pl-6 fs-105rem",attrs:{cols:"12"}},[e("span",[t._v("레포트 정보")]),e(q["a"],{attrs:{color:"black",size:"1.5rem"}},[t._v("mdi-chevron-right")])],1)],1),e(U["a"],{staticClass:"before-divider divider-bottom row-40per",staticStyle:{height:"40%"}},[e(j["a"],{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("f07b"),"lazy-src":s("f07b"),transition:!1}}),e("div",{staticClass:"divider"})],1),e(j["a"],{staticClass:"col-start",attrs:{cols:"8"}},[e("h3",{staticClass:"title"},[t._v(t._s(t.item.name))]),e("span",{staticClass:"grey--text text--darken-1"},[t._v("\n "+t._s(t.item.select_grade_kor)+"\n ")])])],1),e(U["a"],{staticClass:"row-40per",staticStyle:{height:"40%"}},[e(j["a"],{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[e(It["a"],{attrs:{height:"11vh",width:"11vh",contain:"",src:s("6628"),"lazy-src":s("6628"),transition:!1}}),e("div",{staticClass:"divider"})],1),e(j["a"],{staticClass:"col-start",attrs:{cols:"8"}},[e("h3",{staticClass:"title"},[t._v(t._s(t.item.postdate)+" 응시")]),e("span",{staticClass:"grey--text text--darken-1"},[t._v("\n "+t._s(t.item.min_studytime)+"분 소요\n ")])])],1)],1)],1),e(j["a"],{staticClass:"vertical-helf pl-0 pt-0 pr-0 pb-0",attrs:{cols:"6"}},[e(it["a"],{staticClass:"elevation-0",attrs:{height:"100%"}},[e(U["a"],{staticClass:"row-20per"},[e(j["a"],{staticClass:"before-divider divider-bottom pl-6 fs-105rem",attrs:{cols:"12"}},[t._v("\n 레벨 결과\n "),e(q["a"],{attrs:{color:"black",size:"1.5rem"}},[t._v("mdi-chevron-right")])],1)],1),e(U["a"],{staticClass:"border-ede row-80per align-center",attrs:{id:"circle-row"}},[e(j["a"],{staticClass:"text-center h-100",attrs:{id:"circle-col",cols:"6"}},[t.circle_size>1?e(Ps["a"],{style:`font-size:${t.circle_font}px; font-weight:500;`,attrs:{indeterminate:!1,rotate:.3,size:t.circle_size,value:t.item.measure_grade_percent,width:t.circle_width,color:"success"}},[e("span",{staticClass:"success--text",staticStyle:{"line-height":"1.1"},domProps:{innerHTML:t._s(t.item.measure_grade.replace(" ","
"))}})]):t._e()],1),e(j["a"],{staticClass:"d-flex flex-column justify-center",staticStyle:{height:"80%","border-left":"1px solid #ededed",gap:"1.2rem","padding-left":"1.5rem"},attrs:{cols:"6"}},[e("div",[e("h3",{staticClass:"title add-left-bar"},[t._v("\n 해당 학년 평균 레벨\n ")]),e("h3",{staticClass:"title success--text",staticStyle:{"padding-left":"calc(0.25rem + 5px)"}},[t._v("\n "+t._s(t.item.grade_avg)+"\n ")])]),e("div",[e("h3",{staticClass:"title add-left-bar"},[t._v("\n 해당 학년 평균 시간\n ")]),e("h3",{staticClass:"title success--text",staticStyle:{"padding-left":"calc(0.25rem + 5px)"}},[t._v("\n "+t._s(t.item.studytime_avg)+"분\n ")])])])],1)],1)],1)],1),e(U["a"],[e(j["a"],{staticClass:"vertical-helf px-0 pb-0 pt-1",attrs:{cols:"12"}},[e(it["a"],{staticClass:"elevation-0",attrs:{height:"100%"}},[e(U["a"],{staticClass:"row-20per"},[e(j["a"],{staticClass:"before-divider divider-bottom pl-6 fs-105rem justify-space-between",staticStyle:{"padding-right":"3rem"},attrs:{cols:"12"}},[e("div",{staticClass:"d-inline-flex"},[e("span",[t._v("유형별 분석")]),e(q["a"],{attrs:{color:"black",size:"1.5rem"}},[t._v("mdi-chevron-right")])],1),e("div",{staticClass:"d-inline-flex",staticStyle:{gap:"1rem"}},[e("span",[e("b",{staticClass:"info2--text"},[t._v(" ■ ")]),t._v("\n 나의 레벨\n ")]),e("span",[e("b",{staticClass:"warning--text"},[t._v(" ■ ")]),t._v("\n 학년 평균\n ")])])])],1),e(U["a"],{staticClass:"row-80per padding-x-10per pos-rel d-flex"},t._l(["vocabulary","listening","reading","writing","speaking"],(function(s,a){return e("div",{key:"type_analysis_"+a,staticClass:"d-flex flex-column justify-center align-center h-100",style:"width: 20%; padding: 2rem 1rem;"},[e("div",{staticClass:"w-100 d-flex text-center white--text justify-center",staticStyle:{flex:"1",padding:"1rem",gap:"1rem"}},[e("div",{staticClass:"pos-rel w-100 h-100",staticStyle:{"background-color":"#f5f5f5","max-width":"80px"}},[e("div",{staticClass:"info2 w-100 pos-abs",staticStyle:{bottom:"0"},style:`height: ${t.item[s]}%;`},[e("span",{style:t.setScoreSpanPos(t.item[s])},[t._v("\n "+t._s(t.item[s])+"점\n ")])])]),e("div",{staticClass:"pos-rel w-100 h-100",staticStyle:{"background-color":"#f5f5f5","max-width":"80px"}},[e("div",{staticClass:"warning w-100 pos-abs",staticStyle:{bottom:"0"},style:`height: ${t.item[s+"_avg"]}%;`},[e("span",{style:t.setScoreSpanPos(t.item[s+"_avg"])},[t._v("\n "+t._s(t.item[s+"_avg"])+"점\n ")])])])]),e("div",{staticClass:"w-100 text-center"},[t._v("\n "+t._s(t.typeKor(s))+" 영역\n ")])])})),0)],1)],1)],1)],1)],1),t._l(t.tabs,(function(s,a){return e(Y["a"],{key:"result-tab-item-"+(a+1),attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[e(Ss["a"],{staticClass:"py-0",attrs:{flat:""}},[e(Ds["a"],{attrs:{mandatory:""},model:{value:t.model,callback:function(e){t.model=e},expression:"model"}},[t.html_data?t._l(t.html_data,(function(s,i){return e($s["a"],{key:`result-tab-item-${a+1}-${i}`,staticClass:"border-ede thin-b",attrs:{ripple:!1}},[e(U["a"],{staticClass:"pa-0 w-100 mgauto",attrs:{dense:""}},[e(j["a"],{staticClass:"pa-0",attrs:{cols:"1"}},[e(As["a"],{staticClass:"py-3 d-block"},[e("div",{staticClass:"number-wrap",domProps:{textContent:t._s(+i+1)}})])],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"1"}},[e(As["a"],{staticClass:"py-3 d-block",staticStyle:{"max-height":"54px","padding-left":"10%"}},["speaking"===s.type?[s.right&&1===+s.right?e("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`o-${a+1}-${i}`}}):e("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`x-${a+1}-${i}`}})]:[s.right&&"true"===s.right?e("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`o-${a+1}-${i}`}}):e("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:`x-${a+1}-${i}`}})]],2)],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"9"}},[e(As["a"],{staticStyle:{padding:"10px 0","min-height":"54px"}},[e(As["b"],{staticStyle:{"white-space":"normal"},domProps:{innerHTML:t._s(s.docTag)}})],1)],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"1"}},["speaking"===s.type?e(U["a"],{staticClass:"speaking-ops-row",staticStyle:{height:"100%","margin-left":"-34%","margin-right":"-10%"},attrs:{dense:"","no-gutters":""}},[e(j["a"],{staticClass:"end-col",attrs:{cols:"6"}}),e(j["a"],{staticClass:"end-col",staticStyle:{display:"flex","justify-content":"center","align-items":"center"},attrs:{cols:"6"}},[e("div",{staticClass:"cap-wrapper"},[e("circular-audio-player",{attrs:{id:s.id,audio_src:`${t.$host}/speaking/${t.$cid}/leveltest/${t.item.id}/${s.id}`}})],1)])],1):t._e()],1)],1)],1)})):t._e()],2)],1)],1)}))],2)],2)],1),e(U["a"],{staticClass:"printnone custom-footer w-100 mgauto"},[t.item.user_id?e(j["a"],{staticClass:"pa-0 pos-rel",attrs:{cols:"6"}},[e(L["a"],{staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",color:"success"},on:{click:t.getPersonalizedBook}},[e("span",{staticClass:"white--text fs-1rem"},[t._v("맞춤 교재")])])],1):t._e(),e(j["a"],{staticClass:"pa-0",attrs:{cols:t.item.user_id?6:12}},[e(L["a"],{staticClass:"white",staticStyle:{border:"thin solid #1bd05b !important",height:"100% !important"},attrs:{block:"",depressed:"",tile:"",outlined:""},on:{click:t.openSaveOptionDialog}},[e("span",{staticClass:"success--text fs-1rem"},[t._v("출력하기")])])],1)],1)],1):"recommendbooks"==t.inMode?[e("div",{staticClass:"component printnone",staticStyle:{height:"100% !important"},attrs:{id:"result-wrapper"}},[e("div",{staticClass:"v-tabs"},[e("div",{staticClass:"v-item-group v-tabs-bar d-flex justify-center align-center",staticStyle:{background:"#33dce3"}},[e(q["a"],{staticClass:"white--text pos-abs cursor",staticStyle:{left:"1rem"},on:{click:function(e){t.inMode="report"}}},[t._v("\n mdi-chevron-left\n ")]),e("span",{staticClass:"white--text"},[t._v(" 레벨테스트 맞춤 교재 ")])],1)]),e("div",{staticClass:"w-100 bg-white",staticStyle:{height:"calc(100vh - 6.5rem - 24px - 52px)","overflow-y":"auto"},attrs:{id:"recommend_books_body"}},[t.personBooks.length>0?e(U["a"],{staticClass:"w-100 mgauto"},t._l(t.personBooks,(function(s,a){return e(j["a"],{key:"person-book-col-"+a,staticStyle:{height:"calc(27vh + 24px)","border-bottom":"1px solid #e0e0e0"},style:{borderRight:a%2==0?"1px solid #e0e0e0":""},attrs:{cols:6}},[e(U["a"],{staticClass:"h-100"},[e(j["a"],{staticClass:"py-0 d-flex justify-center align-center",attrs:{cols:"6"}},[e("img",{staticStyle:{height:"24.3vh",width:"17.1vh"},attrs:{src:s.cover_path}})]),e(j["a"],{staticClass:"py-0 d-flex flex-column justify-center",staticStyle:{gap:"1.25rem"},attrs:{cols:"6"}},[e("h3",{staticClass:"fw-600 ls-m-1"},[t._v("\n "+t._s(s.bookname)+"\n ")]),e("div",{staticClass:"d-flex flex-column",staticStyle:{gap:"0.4rem"}},[e("div",{staticClass:"d-flex"},[e("span",{staticClass:"grey--text",staticStyle:{flex:"0.3"}},[t._v("출판사")]),e("span",{staticStyle:{flex:"0.7"}},[t._v(t._s(s.publisher))])]),e("div",{staticClass:"d-flex"},[e("span",{staticClass:"grey--text",staticStyle:{flex:"0.3"}},[t._v("출판연도")]),e("span",{staticStyle:{flex:"0.7"}},[t._v(t._s(s.publishdate))])]),e("div",{staticClass:"d-flex"},[e("span",{staticClass:"grey--text",staticStyle:{flex:"0.3"}},[t._v("학습일자")]),e("span",{staticStyle:{flex:"0.7"}},[t._v(t._s(s.unit_cnt)+"일")])])]),e("div",[e(L["a"],{attrs:{depressed:"",color:"success",disabled:!t.item.user_id},on:{click:function(e){t.setting_dialog=!0,t.selectBookIdx=a}}},[e("div",{staticClass:"d-flex"},[t._v("\n 이 교재 스케쥴 설정\n "),e(q["a"],{staticClass:"ml-1",attrs:{small:""}},[t._v(" mdi-chevron-right ")])],1)])],1)])],1)],1)})),1):e(U["a"],{staticClass:"w-100 h-100 mgauto d-flex align-center justify-center"},[e("span",{staticClass:"grey--text text--darken-1 fs-1rem"},[t._v("레벨테스트 결과, 해당되는 맞춤교재가 없습니다.")])])],1)])]:t._e(),e("div",{staticClass:"pos-abs component",staticStyle:{display:"none",width:"210mm",height:"296mm",left:"0"},attrs:{id:"result-wrapper-print"}},[e("img",{staticClass:"pos-abs result_print_bg",staticStyle:{display:"block"},attrs:{src:s("a5bc"),width:"100%",height:"100%"}}),e("div",{staticClass:"pos-rel title_wrap",staticStyle:{height:"9.7%"}},[e("div",{staticClass:"pos-abs w-100 text-center",staticStyle:{bottom:"0"}},[e("img",{staticClass:"pos-abs title_img",staticStyle:{display:"block"},attrs:{id:"leveltest_report_title",src:s("987f"),width:"240"}})])]),e("div",{staticStyle:{"margin-top":"63px",height:"19.76%"}},[e("div",{staticClass:"float-left",staticStyle:{height:"100%",width:"38%","margin-left":"44px"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"100%",height:"100%"},attrs:{id:"dp-circle-row"}},[e(j["a"],{staticClass:"text-center",staticStyle:{"align-self":"center !important"},attrs:{id:"dp-circle-col",cols:"12"}},[e(Ps["a"],{style:"font-size: 28.8px; font-weight:500;",attrs:{indeterminate:!1,rotate:.3,size:180,value:t.item.measure_grade_percent,width:20,color:"#50dd65"}},[e("span",{staticClass:"success--text",domProps:{innerHTML:t._s(t.item.measure_grade.replace(/ /,"
"))}})])],1)],1)],1),e("div",{staticClass:"float-left daily_print_info",staticStyle:{height:"100%","margin-left":"28px",width:"47.6%",padding:"11px 14px 0 12px","font-size":"13.5px"}},[e("div",{staticStyle:{height:"38px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 클래스\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px"}},[t.item.class_name?[t._v("\n "+t._s(t.item.class_name)+"\n ")]:[t._v("\n "+t._s(t.item.user_id?"미배정":"미등록생")+"\n ")]],2)]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 이름\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px"}},[t._v("\n "+t._s(t.item.name)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 응시\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px",width:"calc(100% - 12px)","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[t._v("\n "+t._s(t.item.select_grade_kor)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 시간\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px",width:"calc(100% - 12px)","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[t._v("\n "+t._s(t.item.min_studytime)+"분\n ")])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticStyle:{height:"38px","margin-top":"2px"}},[e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"30.4%"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white"}},[t._v("\n 학습일\n ")])]),e("div",{staticClass:"pos-rel float-left",staticStyle:{height:"100%",width:"69.6%"}},[e("span",{staticClass:"pos-abs translate-y",staticStyle:{"margin-left":"12px"}},[t._v("\n "+t._s(t.item.postdate)+"\n ")])]),e("div",{staticStyle:{clear:"both"}})])]),e("div",{staticStyle:{clear:"both"}})]),e("div",{staticClass:"daily_print_analysis",staticStyle:{"margin-top":"82px","font-size":"14.4px"},style:{height:"23%"}},t._l(["vocabulary","listening","reading","writing","speaking"],(function(s,a){return e(U["a"],{key:"dp_module_cnt_"+a,staticClass:"mgauto",staticStyle:{width:"88.6%"},style:{height:"19.2%",marginBottom:"0.2% !important"}},[e("div",{staticClass:"float-left pos-rel",staticStyle:{width:"35.8%",height:"100%"}},[e("b",{staticClass:"pos-abs translate-a",staticStyle:{"text-shadow":"1px 0.5px 0px #57d084","font-weight":"800 !important",color:"white","margin-top":"1px"}},[t._v("\n "+t._s(t.typeKor(s))+" 영역\n ")])]),e("div",{staticClass:"float-left pos-rel",staticStyle:{width:"32.5%"}},[e("span",{staticClass:"pos-abs translate-a w-100 text-center"},[t._v("\n "+t._s(Math.round(t.item[s]))+" / 100\n ")])]),e("div",{staticClass:"float-left pos-rel",staticStyle:{width:"31.7%"}},[e("span",{staticClass:"pos-abs translate-a fw-700 red--text"},[t._v("\n "+t._s(t.getGrade(t.item[s]))+"\n ")])]),e("div",{staticStyle:{clear:"both"}})])})),1),e("div",{staticClass:"pos-rel",style:{height:"19.8%",marginTop:"57px"}},[e("div",{staticClass:"mgauto",staticStyle:{width:"88%",height:"100%",padding:"1.5%"}},[e("div",{staticClass:"white",staticStyle:{height:"100%",width:"100%"}},[t.item.wrong_contents.length>0?t._l(t.item.wrong_contents,(function(s,a){return e("div",{key:"dp_err_sen_"+a,staticStyle:{"font-size":"13px"},attrs:{id:"err_sen_"+a}},[e("div",{staticClass:"text-align-justify"},[e("span",{staticStyle:{"word-break":"break-word"},domProps:{innerHTML:t._s(s.content)}})]),e("div",{staticClass:"grey--text text-align-justify"},[e("span",{staticStyle:{"word-break":"break-word"},domProps:{innerHTML:t._s(s.mean)}})])])})):[e("div",{staticClass:"px-2 py-2 text-center pos-rel",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","font-size":"13px",height:"100%","background-color":"white"}},[e("span",{staticClass:"pos-abs translate-a",staticStyle:{color:"#d3d3d3","font-size":"13px"}},[t._v("\n 오답 문항이 없습니다.\n ")])])]],2)])]),e("div",{staticStyle:{"margin-top":"26px",height:"7.3%"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"88.6%",height:"100%"}},[e(j["a"],{staticClass:"pa-0 pos-rel",attrs:{cols:"6"}},[e("img",{staticClass:"pos-abs translate-y",staticStyle:{"max-height":"35px","margin-top":"-6px"},attrs:{src:t.$storage.get("user").clogo?""+t.$storage.get("user").clogo:s("3951")}})]),e(j["a"],{staticClass:"pa-0 text-right pos-rel",attrs:{cols:"6"}},[e("h3",{staticClass:"black--text pos-abs translate-y",staticStyle:{"font-size":"15px",right:"0","margin-top":"-6px"}},[t._v("\n "+t._s(t.$storage.get("user").cname)+"\n ")])])],1)],1)]),e(ot["a"],{attrs:{origin:"center center",persistent:!1,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":380},on:{"click:outside":t.closeSaveOptionDialog},model:{value:t.saveOptDialog,callback:function(e){t.saveOptDialog=e},expression:"saveOptDialog"}},[e(it["a"],{staticClass:"radio-dialog"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("레포트 저장")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.changeSaveOption},model:{value:t.save_option_rg,callback:function(e){t.save_option_rg=e},expression:"save_option_rg"}},t._l(["레포트 출력","틀린 문제 출력","메시지 발송"],(function(t,s){return e(nt["a"],{key:"radio-option-"+s,staticClass:"custom-radio",attrs:{label:t,value:s,color:"success"}})})),1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitSaveOption}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_save_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1)],1),t.personBooks?e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"920",persistent:"",transition:!1,"no-click-animation":!0},on:{"click:outside":t.closeScheduleSettings},model:{value:t.setting_dialog,callback:function(e){t.setting_dialog=e},expression:"setting_dialog"}},[e(it["a"],{attrs:{id:"setting_dialog"}},[e(M["b"],{staticClass:"text-center py-4"},[e(U["a"],{staticClass:"pos-rel w-100 mgauto"},[e(j["a"],{staticClass:"px-3 pt-0 pb-0 mb-4 pos-rel align-center",attrs:{cols:"12"}},[e("div",{staticClass:"pos-abs translate-y",staticStyle:{left:"calc(12px + 2.5%)"}}),e("span",{staticClass:"title custom-top d-inline-block py-2",staticStyle:{"background-color":"#f5f5f5","border-radius":"50px","font-weight":"700",padding:"0 7rem"}},[t._v("\n 학습 상세설정\n ")])]),e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},[e("div",{staticClass:"w-100",staticStyle:{"border-bottom":"thin dashed #bdbdbd"}})]),e(j["a"],{staticClass:"d-flex align-center justify-center",staticStyle:{"overflow-x":"hidden","overflow-y":"auto","min-height":"43vh"}},[t._l(["v","m","a"],(function(s,a){return[t.getSettingOption[s].status?[e(j["a"],{key:"mod-body-"+a,staticClass:"w-100 h-100 d-flex flex-column mgauto pos-rel align-center",staticStyle:{"max-height":"100%",gap:"0.6rem"}},[e("div",{staticClass:"my-1 pos-rel d-flex w-100",staticStyle:{padding:"0.5rem 0"}},[e("b",{staticClass:"pos-abs translate-y",staticStyle:{"font-size":"1.05rem"},style:{color:t.getSettingOption[s].color},domProps:{textContent:t._s(t.getSettingOption[s].text)}})]),t.isImmutableSettings({type:s,getSettingOption:t.getSettingOption})?[e(j["a"],{staticClass:"w-100 pos-abs translate-y text-center grey--text fs-1rem"},[t.selBook&&50===+t.selBook.booktype?[t._v("\n 스토리북 심화학습은"),e("br"),t._v("\n 문제풀이 과정으로 필수입니다.\n ")]:t.selBook&&43===+t.selBook.booktype?[[t._v("\n 복습 강의는"),e("br"),t._v("\n 설정할 내용이 없습니다.\n ")]]:t._e()],2)]:t._l(t.getSettingOption[s].modules,(function(a,i){return e(U["a"],{key:`v-mod-${i}-${t.setting_key}`,staticClass:"h-100 w-100",attrs:{cols:t.getSettingOption[s].col}},[e(L["a"],{style:{height:"100%",border:"thin solid "+(1==a.status?t.getSettingOption[s].color:"#e9e9e9"),color:""+(1==a.status?t.getSettingOption[s].color:"#e9e9e9")},attrs:{ripple:!1,small:"",block:"",depressed:"",outlined:""},on:{click:function(e){return t.changeModule(t.getSettingOption[s],a)}}},[e("b",{staticClass:"fs-1rem"},[t._v(t._s(a.text))])])],1)}))],2)]:t._e()]})),t.selBook&&3===+t.selBook.category&&1===+t.selBook.booktype?e("div",{staticClass:"fs-105rem"},[t._v("\n 듣기평가는"),e("br"),t._v("설정할 내용이 없습니다.\n ")]):43===+t.selBook.booktype&&t.selBook.grade.includes("m")&&t.isOnlySpecialUnit?e("div",{staticClass:"fs-105rem"},[t._v("\n Review 강의는"),e("br"),t._v("\n 설정할 내용이 없습니다.\n ")]):t._e()],2)],1),t.selBook&&3===+t.selBook.category&&1===+t.selBook.booktype?t._e():e(U["a"],{staticClass:"pos-rel w-100",staticStyle:{gap:"2rem",padding:"0 24px","margin-left":"-7px"}},[e(ce["a"],{staticClass:"mt-0",attrs:{dense:"","hide-details":"",label:"",color:"info"},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"fs-1rem black--text"},[t._v("\n 어휘 학습 시 이미지 표기\n ")])]},proxy:!0}],null,!1,1775291443),model:{value:t.opt1,callback:function(e){t.opt1=e},expression:"opt1"}}),e(ce["a"],{staticClass:"mt-0",attrs:{dense:"","hide-details":"",label:"",color:"info"},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"fs-1rem black--text",staticStyle:{"margin-left":"-2px"}},[t._v("\n 학년별 추천 학습과정\n ")])]},proxy:!0}],null,!1,1030941921),model:{value:t.opt3,callback:function(e){t.opt3=e},expression:"opt3"}})],1)],1),e(M["a"],{staticClass:"pa-0",attrs:{id:"org_action"}},[e(U["a"],{staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[e(j["a"],{staticClass:"pa-0 pos-rel h-100",attrs:{"align-self":"center"}},[e(L["a"],{staticClass:"fs-1rem",staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",color:"success"},on:{click:function(e){return t.settingSchedule()}}},[t._v("\n 수업 스케쥴 설정\n ")])],1)],1)],1)],1)],1):t._e(),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"490",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.add_success_dialog,callback:function(e){t.add_success_dialog=e},expression:"add_success_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"black--text title"},[e("b",[t._v(" 수업 스케쥴 설정을 완료하였습니다. ")])])]),e(M["a"],{key:t.cakey,staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:function(e){return t.addScheduleSuccess()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"490",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.recommend_confirm_dialog,callback:function(e){t.recommend_confirm_dialog=e},expression:"recommend_confirm_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"black--text title"},[e("b",[t._v("현재 학습 설정을 권장합니다.")]),e("br"),e("b",[t._v("그래도 수정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){t.recommend_confirm_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.continueEve}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("수정")])])])],1)],1)],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"490",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.dup_dialog,callback:function(e){t.dup_dialog=e},expression:"dup_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title black--text"},[e("b",[t._v(" 동일한 교재가 배포되어 있습니다. ")]),e("br"),e("b",[t._v("추가로 설정하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){t.dup_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.submitSchedule}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"490",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.reject_cnt_dialog,callback:function(e){t.reject_cnt_dialog=e},expression:"reject_cnt_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"black--text title"},[e("b",[t._v("최소 "+t._s(2===t.now_min_cnt?1:5-t.now_min_cnt)+"개 이상 모듈이\n 설정되어야 합니다.")]),e("br"),e("b",[t._v("더 이상 해제할 수 없습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100",staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef"},attrs:{"x-large":"",text:""},on:{click:function(e){t.reject_cnt_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"490",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.already_story_dialog,callback:function(e){t.already_story_dialog=e},expression:"already_story_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"black--text title"},[e("b",[t._v("동일한 교재가 스케쥴로 지정되어 있습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100 dialog-onebtn",attrs:{"x-large":"",text:""},on:{click:function(e){t.already_story_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)],1),e(ot["a"],{attrs:{origin:"center center",scrollable:"","max-width":"490",persistent:"",transition:!1,"no-click-animation":!0},model:{value:t.reject_solo_listening_dialog,callback:function(e){t.reject_solo_listening_dialog=e},expression:"reject_solo_listening_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"black--text title"},[e("b",[t._v("리스닝 학습은 단독으로 설정할 수 없습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"w-100 dialog-onebtn",attrs:{"x-large":"",text:""},on:{click:function(e){t.reject_solo_listening_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)],1)],2)}),Zo=[];const tn=["lesson","test","v","m","a","vm","va","gt","gb","gd"];var en={props:["item"],components:{IconReportO:Fs,IconReportX:Js,CircularAudioPlayer:na},data(){return{tab:0,tabs:["상세 조회"],html_data:null,inMode:"report",circle_size:0,circle_width:0,circle_font:0,setting_dialog:!1,saveOptDialog:!1,save_option_rg:null,personBooks:null,selectBookIdx:null,opt1:!0,opt3:!1,gt_settings:null,gb_settings:null,gd_settings:null,settings:[],setting_key:0,user_storybook:[],dup_dialog:!1,dup_after_warning:!1,dup_res:!1,warning_dialog:!1,add_success_dialog:!1,recommend_confirm_dialog:!1,reject_cnt_dialog:!1,already_story_dialog:!1,reject_solo_listening_dialog:!1,now_min_cnt:0,real_select_option:0,cakey:0,first_status:0,ftmp1:"",ftmp2:""}},computed:{selBook(){return!(!this.personBooks||null===this.selectBookIdx)&&this.personBooks[this.selectBookIdx]},isImmutableSettings(){return t=>{let e=!1;const s=this.personBooks&&this.selectBookIdx?this.personBooks[this.selectBookIdx]:[],{type:a,getSettingOption:i}=t;return 50!==+s.booktype||"a"!==a||i[a].modules?43===+s.booktype&&["v","a"].includes(a)&&!i[a].modules&&(e=!0):e=!0,e}},getSettingOption(){const t={status:!1,text:"",modules:{},col:12};let e={v:{...t,color:"#fe9017"},m:{...t,color:"#1bd05b"},a:{...t,color:"#5bc7ff"}};if(this.selBook&&3===+this.selBook.category&&1===+this.selBook.booktype)return e;const s=this.selBook,a=(t,s,a,i,o)=>{e[t].status=s,e[t].text=a,e[t].modules_name=i,e[t].modules=this[i+"_settings"],e[t].col=o};switch(+s.booktype){case 0:case 1:a("v",!0,"어휘 학습","vm",6),a("m",!0,"본문 학습","lesson",6),a("a",!0,"심화 학습","test",6);break;case 11:a("v",!0,"어휘 학습","v",6),a("m",!0,(3===+s.category?"지":"본")+"문 학습","m",6),a("a",!0,"심화 학습","a",6);break;case 22:a("v",!1,null,null,null),a("m",!0,"학습 과정","vm",12),a("a",!0,"시험 과정","va",12);break;case 43:{console.log(this),console.log(s);let t=!1;this.setGrammarModules({selBook:s,onlySpecialUnit:t}),a("v",!0,"이론 학습","gt",6),a("m",!0,"기본 학습","gb",6),a("a",!0,"심화 학습","gd",6);break}case 50:a("v",!1,null,null,null),a("m",!0,"기본 학습","sm",12),a("a",!0,"심화 학습","sa",12);break;default:break}return e},setScoreSpanPos(){return t=>{let e="width: 100%; position: absolute; top: 0; left: 50%;";return e+=+t<=17?"transform: translate(-50%, -125%); color: black;":"transform: translate(-50%, 25%);",e}},typeKor(){return t=>{const e={vocabulary:"단어",listening:"듣기",reading:"읽기",writing:"쓰기",speaking:"말하기"};return e[t]}},getGrade(){return t=>{let e="";return t<0||"skip"==t?e="Skip":t>=90?e="Perfect!":t>=80&&t<90?e="Great!":t>=70&&t<80?e="Good!":t>=60&&t<70?e="Pass!":t<60&&(e="Try Harder!"),e}}},created(){const t={0:{id:0,text:"리스닝",status:1},1:{id:1,text:"문장조합",status:1},2:{id:2,text:"딕테이션",status:1},3:{id:3,text:"문장찾기",status:1},4:{id:4,text:"영작하기",status:1},5:{id:5,text:"영작하기",status:1},6:{id:6,text:"스피킹",status:1},7:{id:7,text:"워드빙고",status:1},I:{id:"I",text:"어휘추론",status:1},O:{id:"O",text:"문단배열",status:1},R:{id:"R",text:"독해점검",status:1},G:{id:"G",text:"문법점검",status:1}},e={lesson:[1,2,3,4],test:[1,2,5,6],v:[0,7,2,"I"],m:[1,3,6,5],a:["O","R",2,"G"],vm:[0,7,2,3],va:[0,2,6,5]},s=["lesson","test","v","m","a","vm","va"];for(let a=0,i=s.length;a{this.setCircleSize(),window.onresize=this.setCircleSize,this.$nextTick(()=>{let t=document.querySelector("#circle-col").getElementsByTagName("svg");if(t=t[0],t){let e=t.childNodes[0];e.classList.remove("v-progress-circular__underlay"),e.setAttribute("stroke","#f5f5f5")}})}),this.topNavBarChange(),Tr.$on("close_event",t=>{1==t.status&&(this.add_success_dialog&&(this.resetCommonData(),this.add_success_dialog=!1),this.warning_dialog=!1,this.unit_view_num=0,this.filesample_opt=null,this.cakey+=1,["recommend_confirm","reject_cnt","show_schedule"].includes(t.name)||(this.new_set_option=!1,this.select_option=0))})},methods:{continueEve(){this.first_status=1,this.recommend_confirm_dialog=!1,this.changeModule(this.ftmp1,this.ftmp2)},addScheduleSuccess(){this.resetCommonData(),this.add_success_dialog=!1,this.cakey+=1},settingSchedule(){this.dupScheduleChk()},setPostData(){return new Promise(t=>{const e=this.selBook,s={books_id:[e.id],class_id:this.item.class_id?this.item.class_id:null,users_id:this.item.user_id?[this.item.user_id]:null,booktype:+e.booktype,type:this.real_select_option,img_use:+this.opt1,dup_res:this.dup_res?this.dup_res:null,bookname:e.bookname,category:+e.category,grade:e.grade?e.grade:null,user_storybook:[]};if(50===+e.booktype){e.total_cnt=0,s.books_id=[...e.storyBooks];for(let t=0,e=s.users_id.length;t{if(this.dup_res=e.data,200==e.status)if(50===t.booktype){const e=this.dup_res.student;Object.entries(e).forEach(([e,s])=>{const a=t.user_storybook.findIndex(t=>+t.user_id===+e),i=s.every(t=>t);i?-1!==a&&t.user_storybook.splice(a,1):(t.user_storybook[a].books=t.user_storybook[a].books.filter(t=>-1===s.findIndex(e=>+e===+t.book_id)),0===t.user_storybook[a].books.length&&t.user_storybook.splice(a,1))}),0===t.user_storybook.length?this.already_story_dialog=!0:(this.user_storybook=Object.freeze([...t.user_storybook]),this.submitSchedule())}else 1==this.selBook.booktype_m&&1==this.select_option?this.dup_after_warning=!0:this.dup_after_warning=!1,this.dup_dialog=!0;else 50===t.booktype&&(this.user_storybook=Object.freeze([...t.user_storybook])),this.submitSchedule()}).catch(t=>{console.log(t)}),console.groupEnd()},async submitSchedule(){console.group("---submitSchedule"),this.dup_dialog&&(this.dup_dialog=!1);const t=await this.setPostData();console.log(t),t.user_storybook=[...this.user_storybook];const e=50===+t.booktype?"addscheduleforstory":"addschedule";await this.$axios.post(`${this.$host}/schedule/${this.$cid}/${e}`,t).then(async t=>{200==t.status&&(this.setting_dialog&&(this.setting_dialog=!1),setTimeout(()=>{this.add_success_dialog=!0},250),console.log("success"))}).catch(t=>{console.log(t)}),console.groupEnd()},resetSettings(){tn.forEach(t=>{this[t+"_settings"]&&this[t+"_settings"].forEach(t=>{t.status=1}),["a","m","v"].includes(t)&&50===+this.selBook.booktype&&this.getSettingOption[t].modules&&this.getSettingOption[t].modules.forEach(t=>{t.status=1})})},setGrammarModules(t){const{onlySpecialUnit:e}=t;this.isOnlySpecialUnit=e,this.gt_settings=[{id:1,text:"단어점검",status:1},{id:2,text:"이론점검",status:1}],this.gb_settings=[{id:1,text:"기본학습 1",status:1},{id:2,text:"기본학습 2",status:1},{id:3,text:"기본학습 3",status:1},{id:4,text:"기본학습 4",status:1}],this.gd_settings=[{id:1,text:"심화학습 1",status:1},{id:2,text:"심화학습 2",status:1}],this.selBook.grade.includes("e")?e&&(this.gt_settings=null,this.gd_settings=null):this.selBook.grade.includes("m")&&(e?(this.gt_settings=null,this.gb_settings=null,this.gd_settings=null):this.gb_settings.splice(2,2))},async changeModule(t,e){if(0==this.first_status)return this.ftmp1=t,this.ftmp2=e,this.recommend_confirm_dialog=!0,!1;if(console.log(t,e,"changeModule"),e.status=+!e.status,!e.status){const s=t.modules.filter(t=>0==t.status).map(t=>t.status);if(["v","vm","va","new_v"].includes(t.modules_name)&&1===t.modules[0].status&&3===s.length)return e.status=+!e.status,console.log("reject_solo_listening"),this.reject_solo_listening_dialog=!0,!1;if(this.now_min_cnt=4,["gt","gb","gd"].includes(t.modules_name)&&(this.now_min_cnt=t.modules.length),s.length===this.now_min_cnt)return e.status=+!e.status,this.reject_cnt_dialog=!0,!1}this.setting_key++},resetCommonData(){console.log("resetCommonData"),this.opt1=!0,this.opt3=!1,this.resetSettings(),this.selectBookIdx=null,this.new_set_option=!1,this.select_option=0,this.unit_cnt=0},closeScheduleSettings(){this.resetCommonData(),this.setting_dialog=!1},setCircleSize(){let t=document.querySelector("#circle-row"),e=document.querySelector("#circle-col"),s=window.getComputedStyle(e),a=t.offsetHeight,i=t.offsetWidth;a-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),i-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight);let o=a>i?i:a;isNaN(o)||(this.circle_size=.8*o,this.circle_width=Math.round(o/9*.8),this.circle_font=Math.round(o/6*.8))},getHtmlData(){Ns.collection("academy").doc(this.$cid).collection("leveltest").doc(this.item.user_id?"user":"admin").collection(this.item.user_id||this.item.name).doc(this.item.id).get().then(t=>{const e=t.data(),s=new DOMParser,a={},i=Object.entries(e);for(let o=0;o{console.log(t)})},openSaveOptionDialog(){this.$store.dispatch("soundEffectPlay","click_button"),this.saveOptDialog=!0},closeSaveOptionDialog(){this.save_option_rg=null,this.$refs.set_save_btn.innerText="취소",this.$refs.set_save_btn.classList.remove("success--text"),this.saveOptDialog=!1},changeSaveOption(){this.$refs.set_save_btn.innerText="확인",this.$refs.set_save_btn.classList.add("success--text")},submitSaveOption(){"확인"==this.$refs.set_save_btn.innerText&&(0==this.save_option_rg?this.windowPrint():1==this.save_option_rg?(this.$parent.loading_value=!0,this.$parent.mode="report_error_print"):2==this.save_option_rg&&this.openReportMessageDialog()),this.closeSaveOptionDialog()},getPersonalizedBook(){null===this.personBooks?this.$axios.get(`${this.$host}/leveltest/1/recommendbooks/${this.item.id}`).then(t=>{200===t.status&&(this.personBooks=Object.freeze(t.data),this.inMode="recommendbooks")}).catch(t=>{console.log(t)}):this.inMode="recommendbooks"},openReportMessageDialog(){const t={cur_item:this.item};this.$parent.$refs["report-message-dialog"].open("leveltest",t)},windowPrint(t=null){return this.$store.state.is_mobile?(this.openDialog("mobile_print"),!1):"yet"==t?(this.openDialog("print_yet"),!1):(this.$store.dispatch("soundEffectPlay","click_button"),document.getElementsByClassName("tab-title")[0].click(),document.getElementById("result-wrapper-print").style.display="block",this.$nextTick(()=>{let t=document.getElementById("dp-circle-col").getElementsByTagName("svg");t=t[0];let e=t.childNodes[0];e.classList.remove("v-progress-circular__underlay"),e.setAttribute("stroke","#f5f5f5");let s="",a=!1,i=0;for(let o=0,n=this.item.wrong_contents.length;os&&(a=o)}a&&this.item.wrong_contents.splice(a,this.item.wrong_contents.length-a)}),void setTimeout(()=>{const t=()=>{const t=window.open("","_blank","width=1,height=1");t.addEventListener("afterprint",()=>{t.close()}),t.document.head.innerHTML=document.head.innerHTML,t.document.body.innerHTML=document.body.innerHTML,t.document.getElementById("result-wrapper-print").style.transformOrigin="0 0",t.document.getElementById("result-wrapper-print").style.transform="scale(88%)",setTimeout(()=>{t.print(),setTimeout(()=>{t.close()},200)},200)};let e=navigator.userAgent.toLowerCase();-1!=e.indexOf("safari")&&-1==e.indexOf("chrome")?t():window.print(),document.getElementById("circle-col").style.width="100%",document.getElementById("result-wrapper-print").style.display="none"},200))}},watch:{opt3(t){if(this.resetSettings(),t){const t=this.selBook,e=t.grade.charAt(0),s={};switch(e){case"e":(2===+t.category||4===+t.category&&1===+t.booktype)&&(s["test"]=[0,1]);break;case"m":1===+t.category?0===+t.booktype?(s["v"]=[2],s["lesson"]=[1,3],s["test"]=[0]):22===+t.booktype&&(s["vm"]=[2],s["va"]=[0,2]):2===+t.category?11===+t.booktype?(s["v"]=[2],s["m"]=[2]):(s["lesson"]=[1,3],s["test"]=[0,3]):4===+t.category&&(1===+t.booktype?(s["vm"]=[2],s["lesson"]=[3],s["test"]=[0,1]):22===+t.booktype&&(s["va"]=[0,1]));break;case"h":1===+t.category?0===+t.booktype?(s["v"]=[2],s["lesson"]=[0,1,3],s["test"]=[0,3]):22===+t.booktype&&(s["vm"]=[2],s["va"]=[0,2]):2===+t.category?11===+t.booktype?(s["v"]=[1,2],s["m"]=[2,3],s["a"]=[2]):s["vm"]=[1,2]:3===+t.category?11===+t.booktype?(s["v"]=[2],s["m"]=[2,3],s["a"]=[2]):(s["vm"]=[1,2],s["lesson"]=[1,3],s["test"]=[0,3]):4===+t.category&&(1===+t.booktype?s["vm"]=[1,2]:11===+t.booktype?(s["v"]=[2],s["m"]=[2,3],s["a"]=[2]):22===+t.booktype&&(s["vm"]=[2],s["va"]=[0,2]));break}for(let a in s)s[a].forEach(t=>{this[a+"_settings"][t].status=0})}}},beforeDestroy(){window.onresize=null}},sn=en,an=(s("6f42"),Object(u["a"])(sn,Ko,Zo,!1,null,"fa557192",null)),on=an.exports,nn=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pa-0 height-inherit printnone",attrs:{cols:"12",xs:"12",sm:"8",md:"8",lg:"8"}},[e("div",{staticClass:"grey darken-2 h-100"},[e(U["a"],{staticClass:"w-100 h-100 mgauto pos-rel",attrs:{id:"printrow"}},[e("form",{staticClass:"d-none",attrs:{id:"print_form",name:"print_form",action:t.$host+"/testprint.php",method:"POST"}},[e("input",{attrs:{type:"hidden",id:"ref",name:"ref",value:"testprint"}}),e("input",{attrs:{type:"hidden",id:"res_data",name:"res_data",value:""}}),e("input",{attrs:{type:"hidden",id:"uids",name:"uids"},domProps:{value:t.select_units}}),e("input",{attrs:{type:"hidden",id:"user",name:"user"},domProps:{value:JSON.stringify(t.$storage.get("user"))}}),e("input",{attrs:{type:"hidden",name:"title"},domProps:{value:t.preview_name}}),e("input",{attrs:{type:"hidden",name:"fontsize"},domProps:{value:t.fontSize}}),e("input",{attrs:{type:"hidden",name:"rowpadding"},domProps:{value:t.rowpadding}}),e("input",{attrs:{type:"hidden",name:"lr_rate"},domProps:{value:t.leftrate+":"+t.rightrate}}),e("input",{attrs:{type:"hidden",name:"logostatus"},domProps:{value:t.logostatus}}),e("input",{attrs:{type:"hidden",name:"cnamestatus"},domProps:{value:t.cnamestatus}}),e("input",{attrs:{type:"hidden",name:"answer_sheet"},domProps:{value:t.answer_sheet}}),e("input",{attrs:{type:"hidden",name:"countstatus"},domProps:{value:t.countstatus}}),e("input",{attrs:{type:"hidden",name:"exceptstatus"},domProps:{value:t.exceptstatus}}),e("input",{attrs:{type:"hidden",name:"is_grammar"},domProps:{value:t.is_grammar}}),e("input",{attrs:{type:"hidden",name:"is_storybook"},domProps:{value:t.is_storybook}}),t.is_grammar?[t._l(t.save,(function(t,s){return[e("input",{key:"hidden-grammar-"+s,attrs:{type:"hidden",name:s},domProps:{value:t.val}})]}))]:[t._l(t.save,(function(s,a){return[t._l(s,(function(i,o){return[e("input",{key:`hidden-grammar-${a}-${o}`,attrs:{type:"hidden",name:t.short_name[a][o]},domProps:{value:s[o]}})]}))]}))]],2),e("div",{staticClass:"grey darken-2 h-100 py-1",staticStyle:{width:"inherit",position:"absolute",top:"0px",left:"0px","z-index":"4",display:"none"},attrs:{id:"tmploading"}},[e("div",{staticClass:"mgauto pos-rel w-100 h-100"},[e("div",{staticClass:"pos-abs translate-a",staticStyle:{width:"210mm",height:"297mm",margin:"0px auto",background:"white","transform-origin":"top left"}})])]),e(L["a"],{staticClass:"pos-abs printnone print-arrow",staticStyle:{bottom:"10px",left:"10px","z-index":"3"},attrs:{fab:"",small:"",disabled:t.nowpage<=1,color:"success"},on:{click:function(e){return t.movePage("left")}}},[e(q["a"],[t._v("mdi-chevron-left")])],1),e(L["a"],{staticClass:"pos-abs printnone print-arrow",staticStyle:{bottom:"10px",left:"60px","z-index":"3"},attrs:{fab:"",small:"",disabled:!(t.maxpage>1&&t.nowpagethis.normal_page_num?" (답안지)":"")},printDisabled(){const t=this.preview_name,e=!t||""==t.replace(/ /g,"");return e}},methods:{mListener(t){if(t.data.maxpage)setTimeout(()=>{this[t.data.type+"_page_num"]=t.data.maxpage,this.$forceUpdate(),this.print_complete_status=1,this.root.loading_value=!1;let e=document.getElementById("tmploading");e.style.display="none",console.timeEnd("init"),this.maxpage=t.data.maxpage},0);else if(t.data.nowpage)this.nowpage=t.data.nowpage;else if(t.data.loading_percent){if(this.loading_percent=t.data.loading_percent,this.loading_percent>=100&&200===this.api_code){let t=document.getElementById("tmploading");t.style.display="none",this.root.loading_value=!1}this.$forceUpdate()}else if(t.data.window_print)document.title="내공스터디 관리자";else if(t.data.resubmit){let t=document.print_form;t.target="test_iframe",t.submit()}},preSubmit(){this.nowpage=1,this.print_complete_status=0,this.loading_value=!0,this.loading_percent=1},changeOption(t){document.getElementById("test_iframe").contentWindow.postMessage({key:t,value:this[t]?1:0},"*")},movePage(t){this.$store.dispatch("soundEffectPlay","click_button"),document.getElementById("test_iframe").contentWindow.postMessage({key:"movepage",value:t},"*")},fullScreen(){console.log("fullScreen3");let t=document.getElementsByClassName("printarea"),e=document.getElementById("test_wrapper"),s=t[0];if(this.full_screen){e.style.overflowY="unset";for(let[e,s]of Object.entries(t))s.style.width=this.last_pa_width,s.getElementsByClassName("scalearea")[0].style.transform="scale("+this.last_scale+")"}else{e.style.overflowY="scroll";const a=this.$store.state.user.zoom_status;if(0===a){let e="";for(let[a,i]of Object.entries(t))i.style.width="100%",this.$nextTick(()=>{e=s.getBoundingClientRect().width/793.70078739,i.getElementsByClassName("scalearea")[0].style.transform="scale("+e+")"})}else 1===a&&Object.values(t).forEach(t=>{t.style.width="100%";let e=t.getBoundingClientRect().width/.901/793.70078739;t.getElementsByClassName("scalearea")[0].style.transform=`scale(${e})`})}this.full_screen=!this.full_screen},nameInput(t){this.preview_name=t.target.value.replace(/ /g," "),document.querySelectorAll(".auto-text.clip")[0].innerText=t.target.value,this.autotext_key+=1,t.target.value.substr(0,17).length>=17&&this.openAlert("max_preview_name"),document.getElementById("test_iframe").contentWindow.postMessage({key:"preview_name",value:this.preview_name},"*")},getThumbLabels(t){return this.thumb_labels[t]},changeWidthRate(t){let e=this.thumb_labels[t].split(":")[0],s=this.thumb_labels[t].split(":")[1];this.leftrate=""+10*parseInt(e),this.rightrate=""+10*parseInt(s),this.$nextTick(()=>{this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate(),document.print_form.submit()})})},toggleChange(t,e){console.log(t,e),"type"==t?this.setPage():"font-size"==t?(0==e?(this.question_indent=-8,this.textIndent=-14):1==e?(this.question_indent=-8,this.textIndent=-17):2==e&&(this.question_indent=-9,this.textIndent=-19),this.fontSize=10+2*+e,this.avatarSize=this.fontSize+16):"line-height"==t&&(this.rowpadding=e),this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate(),document.print_form.submit()})},setPage(){let t=document.getElementById("tmploading");t.style.display="block",this.cur_item&&(["GT","GB","GD"].includes(this.cur_item.type)?this.is_grammar=!0:("daily"==this.cur_item.from&&"SA"===this.cur_item.recent.type||"total"==this.cur_item.from&&"SA"===this.cur_item.type)&&(this.is_storybook=!0)),this.$axios.post(this.$host+"/book/geterrorquestion",{item:this.cur_item,type:this.toggle_type,from:this.cur_item.from}).then(e=>{this.api_code=e.status,200==e.status?(this.print_bg=`'${this.$cdn}/img/bg/test_print_bg_1.png?v=${+new Date}'`,this.$nextTick(()=>{this.$forceUpdate();let t=document.print_form;t.target="test_iframe",t.res_data.setAttribute("value",JSON.stringify(e.data)),t.submit(),this.initPrintPage()})):(this.openAlert("null_sentence"),setTimeout(()=>{this.root.loading_value=!1,this.root.mode="report"},2e3),t.style.display="none")}).catch(e=>{console.log(e),t.style.display="none",this.root.loading_value=!1,this.root.mode="report"})},initPrintPage(){console.time("init"),this.loading_value=!0,this.loading_percent=1,this.print_complete_status=0;let t=document.getElementById("tmploading"),e=document.getElementsByClassName("printarea");t&&(t.childNodes[0]&&(t.childNodes[0].style.width=e[0].style.width),t.childNodes[0].childNodes[0]&&(t.childNodes[0].childNodes[0].style.transform=`scale(${e[0].getBoundingClientRect().height/1.414*.2645833333/210}) translate(-50%, -50%)`));let s=()=>new Promise(t=>{e.length>1&&(this.maxpage=e.length),this.calcHeight(),this.topNavBarChange(),t()});setTimeout(()=>{s().then(()=>{this.first_height||(this.first_height=e[0].getBoundingClientRect().height)})},100)},calcHeight(){let t=document.getElementById("printarea0");if(t){const e=this.$storage.get("user").zoom_status;let s=1;if(0===e)t.style.width=t.getBoundingClientRect().height/1.414+"px",this.last_pa_width=t.style.width,s=.2645833333*t.getBoundingClientRect().width/210,this.last_scale=s;else if(1===e){const e=(t.getBoundingClientRect().height/.901).toFixed(3);t.style.width=e/1.414+"px",this.last_pa_width=t.style.width,s=e/1.414*.2645833333/210,this.last_scale=s}let a=document.getElementById("scalearea_0");a.childNodes[1].style.height="calc(100% - 256px)",a.style.transform=`scale(${s})`,a.style.opacity="1",this.full_screen=!1,this.first_height=t.getBoundingClientRect().height}},windowPrint(){if(this.$store.state.is_mobile)this.openDialog("mobile_print");else{this.$store.dispatch("soundEffectPlay","click_button");let t=document.getElementsByClassName("clip")[0].style.fontSize,e=document.getElementsByClassName("clip")[0].innerText;document.title=this.preview_name,document.getElementById("test_iframe").contentWindow.postMessage({key:"window_print",value:{fontsize:t,text:e,url:null,postdata:null}},"*")}}},beforeDestroy(){window.removeEventListener("message",this.mListener)}},dn=cn,hn=Object(u["a"])(dn,nn,ln,!1,null,null,null),un=hn.exports,_n=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"pa-0 height-inherit printnone",attrs:{cols:"12",xs:"12",sm:"8",md:"8",lg:"8"}},[e("div",{staticClass:"grey darken-2 h-100"},[e(U["a"],{staticClass:"w-100 h-100 mgauto pos-rel",attrs:{id:"printrow"}},[e("form",{staticClass:"d-none",attrs:{id:"print_form",name:"print_form",action:t.$host+"/testprint.php",method:"POST"}},[e("input",{attrs:{type:"hidden",id:"ref",name:"ref",value:"testprint"}}),e("input",{attrs:{type:"hidden",id:"res_data",name:"res_data",value:""}}),e("input",{attrs:{type:"hidden",id:"uids",name:"uids"},domProps:{value:t.select_units}}),e("input",{attrs:{type:"hidden",id:"user",name:"user"},domProps:{value:JSON.stringify(t.$storage.get("user"))}}),e("input",{attrs:{type:"hidden",name:"title"},domProps:{value:t.preview_name}}),e("input",{attrs:{type:"hidden",name:"fontsize"},domProps:{value:t.fontSize}}),e("input",{attrs:{type:"hidden",name:"rowpadding"},domProps:{value:t.rowpadding}}),e("input",{attrs:{type:"hidden",name:"lr_rate"},domProps:{value:t.leftrate+":"+t.rightrate}}),e("input",{attrs:{type:"hidden",name:"logostatus"},domProps:{value:t.logostatus}}),e("input",{attrs:{type:"hidden",name:"cnamestatus"},domProps:{value:t.cnamestatus}}),e("input",{attrs:{type:"hidden",name:"answer_sheet"},domProps:{value:t.answer_sheet}}),e("input",{attrs:{type:"hidden",name:"countstatus"},domProps:{value:t.countstatus}}),e("input",{attrs:{type:"hidden",name:"exceptstatus"},domProps:{value:t.exceptstatus}}),e("input",{attrs:{type:"hidden",name:"is_grammar"},domProps:{value:t.is_grammar}}),e("input",{attrs:{type:"hidden",name:"is_storybook"},domProps:{value:t.is_storybook}}),t.is_grammar?t._l(t.save,(function(t,s){return e("input",{key:"hidden-grammar-"+s,attrs:{type:"hidden",name:s},domProps:{value:t.val}})})):[t._l(t.save,(function(s,a){return t._l(s,(function(i,o){return e("input",{key:`hidden-grammar-${a}-${o}`,attrs:{type:"hidden",name:t.short_name[a][o]},domProps:{value:s[o]}})}))}))]],2),e("div",{staticClass:"grey darken-2 h-100 py-1",staticStyle:{width:"inherit",position:"absolute",top:"0px",left:"0px","z-index":"4",display:"none"},attrs:{id:"tmploading"}},[e("div",{staticClass:"mgauto pos-rel w-100 h-100"},[e("div",{staticClass:"pos-abs translate-a",staticStyle:{width:"210mm",height:"297mm",margin:"0px auto",background:"white"}})])]),e(L["a"],{staticClass:"pos-abs printnone",staticStyle:{bottom:"10px",left:"10px","z-index":"3"},attrs:{fab:"",small:"",disabled:t.nowpage<=1,color:"success"},on:{click:function(e){return t.movePage("left")}}},[e(q["a"],[t._v("mdi-chevron-left")])],1),e(L["a"],{staticClass:"pos-abs printnone",staticStyle:{bottom:"10px",left:"60px","z-index":"3"},attrs:{fab:"",small:"",disabled:!(t.maxpage>1&&t.nowpagethis.normal_page_num?" (답안지)":"")},printDisabled(){const t=this.preview_name,e=!t||""==t.replace(/ /g,"");return e}},methods:{mListener(t){if(t.data.maxpage)setTimeout(()=>{this[t.data.type+"_page_num"]=t.data.maxpage,this.$forceUpdate(),this.print_complete_status=1,this.root.loading_value=!1;let e=document.getElementById("tmploading");e.style.display="none",console.timeEnd("init"),this.maxpage=t.data.maxpage},0);else if(t.data.nowpage)this.nowpage=t.data.nowpage;else if(t.data.loading_percent){if(this.loading_percent=t.data.loading_percent,this.loading_percent>=100&&200===this.api_code){let t=document.getElementById("tmploading");t.style.display="none",this.root.loading_value=!1}this.$forceUpdate()}else if(t.data.window_print)document.title="내공스터디 관리자";else if(t.data.resubmit){let t=document.print_form;t.target="test_iframe",t.submit()}},preSubmit(){this.nowpage=1,this.print_complete_status=0,this.loading_value=!0,this.loading_percent=1},changeOption(t){document.getElementById("test_iframe").contentWindow.postMessage({key:t,value:this[t]?1:0},"*")},movePage(t){this.$store.dispatch("soundEffectPlay","click_button"),document.getElementById("test_iframe").contentWindow.postMessage({key:"movepage",value:t},"*")},fullScreen(){console.log("fullScreen2");let t=document.getElementsByClassName("printarea"),e=document.getElementById("test_wrapper"),s=t[0];if(this.full_screen){e.style.overflowY="unset";for(let[e,s]of Object.entries(t))s.style.width=this.last_pa_width,s.getElementsByClassName("scalearea")[0].style.transform="scale("+this.last_scale+")"}else{e.style.overflowY="scroll";const a=this.$store.state.user.zoom_status;if(0===a){let e="";for(let[a,i]of Object.entries(t))i.style.width="100%",this.$nextTick(()=>{e=s.getBoundingClientRect().width/793.70078739,i.getElementsByClassName("scalearea")[0].style.transform="scale("+e+")"})}else 1===a&&Object.values(t).forEach(t=>{t.style.width="100%";let e=t.getBoundingClientRect().width/.901/793.70078739;t.getElementsByClassName("scalearea")[0].style.transform=`scale(${e})`})}this.full_screen=!this.full_screen},nameInput(t){this.preview_name=t.target.value.replace(/ /g," "),document.querySelectorAll(".auto-text.clip")[0].innerText=t.target.value,this.autotext_key+=1,t.target.value.substr(0,17).length>=17&&this.openAlert("max_preview_name"),document.getElementById("test_iframe").contentWindow.postMessage({key:"preview_name",value:this.preview_name},"*")},getThumbLabels(t){return this.thumb_labels[t]},changeWidthRate(t){let e=this.thumb_labels[t].split(":")[0],s=this.thumb_labels[t].split(":")[1];this.leftrate=""+10*parseInt(e),this.rightrate=""+10*parseInt(s),this.$nextTick(()=>{this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate(),document.print_form.submit()})})},toggleChange(t,e){console.log(t,e),"type"==t?this.setPage():"font-size"==t?(0==e?(this.question_indent=-8,this.textIndent=-14):1==e?(this.question_indent=-8,this.textIndent=-17):2==e&&(this.question_indent=-9,this.textIndent=-19),this.fontSize=10+2*+e,this.avatarSize=this.fontSize+16):"line-height"==t&&(this.rowpadding=e),this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate(),document.print_form.submit()})},setPage(){let t=document.getElementById("tmploading");t.style.display="block",this.$axios.post(this.$host+"/book/geterrorquestion2",{item:this.cur_item,type:this.toggle_type}).then(e=>{this.api_code=e.status,200==e.status?(this.print_bg=`'${this.$cdn}/img/bg/test_print_bg_1.png?v=${+new Date}'`,this.$nextTick(()=>{this.$forceUpdate();let t=document.print_form;t.target="test_iframe",t.res_data.setAttribute("value",JSON.stringify(e.data)),t.submit(),this.initPrintPage()})):(this.openAlert("null_sentence"),setTimeout(()=>{this.root.loading_value=!1,this.root.mode="list"},2e3),t.style.display="none")}).catch(e=>{console.log(e),t.style.display="none",this.root.loading_value=!1,this.root.mode="report"})},initPrintPage(){console.time("init"),this.root.loading_value=!0,this.loading_percent=1,this.print_complete_status=0;let t=document.getElementById("tmploading"),e=document.getElementsByClassName("printarea");t&&(t.childNodes[0]&&(t.childNodes[0].style.width=e[0].style.width),t.childNodes[0].childNodes[0]&&(t.childNodes[0].childNodes[0].style.transform=`scale(${e[0].getBoundingClientRect().height/1.414*.2645833333/210}) translate(-50%, -50%)`));let s=()=>new Promise(t=>{e.length>1&&(this.maxpage=e.length),this.calcHeight(),this.topNavBarChange(),t()});setTimeout(()=>{s().then(()=>{this.first_height||(this.first_height=e[0].getBoundingClientRect().height)})},100)},calcHeight(){let t=document.getElementById("printarea0");if(t){const e=this.$storage.get("user").zoom_status;let s=1;if(0===e)t.style.width=t.getBoundingClientRect().height/1.414+"px",this.last_pa_width=t.style.width,s=.2645833333*t.getBoundingClientRect().width/210,this.last_scale=s;else if(1===e){const e=(t.getBoundingClientRect().height/.901).toFixed(3);t.style.width=e/1.414+"px",this.last_pa_width=t.style.width,s=e/1.414*.2645833333/210,this.last_scale=s}let a=document.getElementById("scalearea_0");a.childNodes[1].style.height="calc(100% - 256px)",a.style.transform=`scale(${s})`,a.style.opacity="1"}this.full_screen=!1,this.first_height=t.getBoundingClientRect().height},windowPrint(){if(this.$store.state.is_mobile)this.openDialog("mobile_print");else{this.$store.dispatch("soundEffectPlay","click_button");let t=document.getElementsByClassName("clip")[0].style.fontSize,e=document.getElementsByClassName("clip")[0].innerText;document.title=this.preview_name,document.getElementById("test_iframe").contentWindow.postMessage({key:"window_print",value:{fontsize:t,text:e,url:null,postdata:null}},"*")}}},beforeDestroy(){window.removeEventListener("message",this.mListener)}},gn=mn,bn=(s("392f6"),Object(u["a"])(gn,_n,pn,!1,null,null,null)),fn=bn.exports,yn=function(){var t=this,e=t._self._c;return e("div",t._l(t.reports,(function(a,i){return e(U["a"],{key:"report-wrap-"+i},[e(j["a"],{staticClass:"pa-0 white",attrs:{cols:"12",id:"period_report"}},[e("div",{staticClass:"period_report_top_row w-100 mgauto grey darken-2",attrs:{id:"period_report_top_row"}},[e("div",{staticClass:"pos-rel a4_parent",attrs:{id:"a4_parent"}},[e("div",{staticClass:"pos-rel period_a4",staticStyle:{width:"210mm",height:"297mm",left:"50%","transform-origin":"center top"},attrs:{id:"period_a4"}},[e("div",{staticClass:"w-100 h-100 mgauto",staticStyle:{"background-size":"100%"},attrs:{id:"period_report_top_sub"}},[e("img",{staticClass:"pos-abs",staticStyle:{"z-index":"-1"},attrs:{src:s("d62b"),width:"100%",height:"100%"}}),e(U["a"],{staticClass:"w-100 mgauto",staticStyle:{height:"29mm"},attrs:{id:"period_print_bg"}},[e(j["a"],{staticClass:"pa-0 text-center mgauto pos-rel",attrs:{cols:"12"}},[e("div",{staticClass:"pos-abs",staticStyle:{bottom:"0px",left:"50%",transform:"translate(-50%, 0)"}},[e("img",{staticStyle:{height:"43.2px"},attrs:{src:s("1838")}})])])],1),e("section",{staticClass:"w-100",staticStyle:{"margin-top":"9mm",height:"43.5856mm"},attrs:{id:"period_report_info_section"}},[e(U["a"],{staticClass:"w-100 mgauto h-100"},[e(j["a"],{staticClass:"pr-2 py-0 pcol h-100",staticStyle:{"padding-left":"35px"},attrs:{cols:"6",sm:"6"}},[e("div",{staticClass:"new-infotable h-100 pa-2 d-flex flex-column"},[e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("클래스")])]),e("div",[e("span",[t._v(t._s(a.classname))])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("이름")])]),e("div",[e("span",[t._v(t._s(a.name))])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("학습 기간")])]),e("div",[e("span",[t._v("\n "+t._s(`${t.data.period.sddate} ~ ${t.data.period.eddate}`)+"\n ")])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("종합 점수")])]),e("div",[e("span",[t._v(t._s(t.newAvg(a.avg))+" 점")])])]),e("div",{staticClass:"d-flex"},[e("div",[e("b",[t._v("학습 횟수")])]),e("div",[e("span",[t._v(t._s(a.studycnt)+"회")])])])])]),e(j["a"],{staticClass:"pl-2 pr-8 py-0 pcol h-100",attrs:{cols:"6",sm:"6"}},[e("div",{staticStyle:{height:"100%"},attrs:{id:"diagram_chart"}},[e("v-chart",{key:t.chartKey,attrs:{options:a.radar,initOptions:t.data.chart_init,autoresize:!1}})],1)])],1)],1),e("section",{staticClass:"w-100",staticStyle:{"margin-top":"8.1mm",height:"30.8mm"},attrs:{id:"period_report_circle_section"}},[e("div",{staticClass:"pt-0 px-8 py-0 tmp h-100"},[e(U["a"],{staticClass:"w-100 h-100 mgauto",attrs:{id:"period-circle-row"}},[e("div",{staticClass:"float-left text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 12px"},attrs:{id:"period-circle-col"}},[t.circle.size>0&&t.circle.width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500; position: relative;",attrs:{rotate:"0",size:t.circle.size,value:t.newAvg(a.avg),width:t.circle.width,color:"success"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(t.newAvg(a.avg))+"\n "),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("점")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 종합 점수\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.circle.size>0&&t.circle.width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.circle.size,value:a.studyrate,width:t.circle.width,color:"#97f1b8"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(a.studyrate)+"\n "),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("개")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 학습 문항\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.circle.size>0&&t.circle.width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.circle.size,value:t.newWrongCnt(a.wrongcnt),width:t.circle.width,color:"#7cece2"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(t.newWrongCnt(a.wrongcnt))+"\n "),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("개")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 오답 문항\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.circle.size>0&&t.circle.width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.circle.size,value:a.errorrate,width:t.circle.width,color:"#80cbec"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(a.errorrate)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("%")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 오답률\n ")])],1),e("div",{staticClass:"float-left pl-0 pr-3 text-center period-circle-col pos-rel",staticStyle:{width:"20%",height:"100%",padding:"1% 0 1% 0"}},[t.circle.size>0&&t.circle.width>0?e(Ps["a"],{style:"font-size: 13.5px; font-weight:500;",attrs:{rotate:"0",size:t.circle.size,value:a.tot_studytime,width:t.circle.width,color:"#95bbef"}},[e("span",{staticClass:"black--text",staticStyle:{"font-size":"13.5px"}},[t._v("\n "+t._s(a.tot_studytime)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("분")])])]):t._e(),e("br"),e("div",{staticStyle:{"font-size":"13.5px","margin-top":"1%"}},[t._v("\n 학습 시간\n ")])],1),e("div",{staticStyle:{clear:"both"}})])],1)]),e("section",{staticClass:"w-100",staticStyle:{"margin-top":"8.2mm",height:"53.1137mm"},attrs:{id:"period_report_spark_section"}},[e(U["a"],{staticClass:"w-100 h-100 mgauto px-8"},[e("div",{staticClass:"w-100 h-100"},[e("v-chart",{key:t.chartKey,staticStyle:{width:"100%",height:"100%"},attrs:{options:a.spark,initOptions:t.data.chart_init,autoresize:!0}}),e("div",{staticClass:"pos-rel",staticStyle:{color:"grey",top:"-15.9%","font-size":"0.875rem","padding-left":"calc(5% - 23px)","padding-right":"calc(3% - 18px)"},attrs:{id:"spark_sub_text"}},[e("span",{staticStyle:{"font-size":"13.5px"}},[t._v("(점)")]),e("span",{staticClass:"float-right",staticStyle:{"font-size":"13.5px"}},[t._v("(회)")])])],1)])],1),e("section",{staticClass:"w-100 px-8",staticStyle:{"margin-top":"8.2mm",height:"81.5496mm","margin-bottom":"3.8505mm"},attrs:{id:"period_report_error_section"}},[e(U["a"],{staticClass:"w-100 h-100 mgauto mainerrorrow pb-0 thin-a br-4"},[a.new_wrong_sen_arr.length>0?e(j["a"],{staticClass:"py-0 px-2 h-100",attrs:{cols:"12"}},t._l(a.new_wrong_sen_arr,(function(s,i){return e("div",{key:"period_wrong_sen_"+i,staticClass:"px-2 py-1 row-wrap",class:i!=a.new_wrong_sen_arr.length?"border-ede thin-b":""},[e("div",{ref:"w_sent_"+i,refInFor:!0,staticClass:"float-left pos-rel translate-y wrong-col"},[e("b",{staticClass:"text-usn",staticStyle:{"font-size":"13.5px"},domProps:{innerHTML:t._s(s.sen)}})]),e("div",{ref:"w_mean_"+i,refInFor:!0,staticClass:"float-left pos-rel translate-y wrong-col"},[e("span",{staticClass:"grey--text text-usn",staticStyle:{"font-size":"13.5px"}},[t._v(t._s(s.mean))])]),e("div",{staticStyle:{clear:"both"}})])})),0):e(j["a"],{staticClass:"py-0 px-0 d-flex align-center justify-center",staticStyle:{height:"100%"},attrs:{cols:"12"}},[e("div",{staticClass:"px-2 py-2 text-center grey--text null_errsen",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden","font-size":"13.5px"}},[t._v("\n 오답 문항이 없습니다.\n ")])])],1)],1),e("section",{staticStyle:{height:"21.3mm",display:"block"},attrs:{id:"period_report_footer_section"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"88.6%",height:"100%"}},[e(j["a"],{staticClass:"pa-0 pos-rel h-100",attrs:{cols:"6"}},[e("img",{staticClass:"pos-abs translate-y mt-n3",staticStyle:{"max-height":"35px"},attrs:{src:t.data.user.clogo?""+t.data.user.clogo:s("3951")}})]),e(j["a"],{staticClass:"pa-0 text-right h-100 pos-rel",attrs:{cols:"6"}},[e("h3",{staticClass:"black--text pos-abs translate-y mt-n3",staticStyle:{"font-size":"15px",right:"0"}},[t._v("\n "+t._s(t.data.user.cname)+"\n ")])])],1)],1)],1)])])])])],1)})),1)},vn=[],xn=s("c4e3"),kn=s.n(xn),wn=s("0083"),Cn=s.n(wn),Sn=s("21a6"),$n={name:"BatchPeriodReport",props:["data"],components:{"v-chart":Xo["a"]},data(){return{reports:this.data.check_period_report,circle:{size:null,font:null,width:null},chartKey:0}},mounted(){this.setPeriodCircleSize(),window.onresize=this.setPeriodCircleSize,this.initData()},computed:{newAvg(){return t=>Number(parseFloat(Number(t)).toFixed(1))},newWrongCnt(){return t=>Number(t)}},methods:{async initData(){for(let e=0,s=this.reports.length;e{this.data.loading_value=!1,setTimeout(()=>{this.windowPrint()},500)},500):2===+t&&this.onDown("period")},setPeriodCircleSize(){for(let n=0,l=this.reports.length;ne.getBoundingClientRect().height*a?(s.style.top="50%",s.style.transform="translate(0, -50%)"):(s.style.top="unset",s.style.transform="unset")}else{let a=t.getBoundingClientRect().height/1122.515625;e.style.transform="translate(-50%, 0) scale("+a+")",s.style.height=e.getBoundingClientRect().height+"px"}}let t=document.getElementById("period-circle-row"),e=document.getElementById("period-circle-col"),s=window.getComputedStyle(e),a=t.offsetHeight-20,i=t.offsetWidth;a-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),i-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight);let o=a>i?i:a;isNaN(o)||(this.circle.size=o,this.circle.width=Math.round(o/9),this.circle.font=Math.round(o/6))},setRadar(t){return new Promise(e=>{const s=this.deepClone(this.data.radar);s.series[0].data[0].value=[];const a=this.reports[t],i=["V","EC","speaking","RC"];for(let t=0;t<4;t++)s.series[0].data[0].value[t]=a.module[i[t]];a.radar=s,e()})},setSpark(t){return new Promise(e=>{const s=this.reports[t];if(s.all_scores){const t=this.deepClone(this.data.spark),e=[],a=Object.values(s.all_scores);for(let s=0,i=a.length;st[0]),t.series.data=e.map(t=>t[1]),s.spark=t,this.chartKey++}e()})},windowPrint(){if(this.data.user.is_mobile)this.openDialog("mobile_print");else if("batch_period_report"==this.data.mode){this.$store.dispatch("soundEffectPlay","click_button");const e=()=>{const t=window.open("","_blank","width=1,height=1");t.addEventListener("afterprint",()=>{t.close()}),t.document.head.innerHTML=document.head.innerHTML,t.document.body.innerHTML=document.body.innerHTML,t.document.getElementById("period_report").style.transformOrigin="0 0",t.document.getElementById("period_report").style.transform="scale(88%)",setTimeout(()=>{t.print(),setTimeout(()=>{t.close()},200)},200)};var t=navigator.userAgent.toLowerCase();-1!=t.indexOf("safari")&&-1==t.indexOf("chrome")?e():window.print(),document.body.classList.remove("batch_period_report"),this.data.mode="list"}},async onDown(t){const e=this.data.period.sddate.replace(/\-/g,""),s=this.data.period.eddate.replace(/\-/g,""),a=(t,e)=>new Promise((s,a)=>{this.$axios.post(`${this.$host}/result/${this.$cid}/uploadreport`,{image:t.toDataURL(),filename:e}).then(t=>{s(t)}).catch(t=>{a(t)})}),i=[];for(let o=0,n=this.reports.length;onew Promise(async t=>{const e=l.querySelector("#period-circle-row").getElementsByTagName("svg"),s=["#1bd05b","#97f1b8","#7cece2","#80cbec","#95bbef"];let a=0;for await(const i of e){const t=i.parentNode;t.style.position="relative",i.setAttribute("width",t.getBoundingClientRect().width/2),i.setAttribute("height",t.getBoundingClientRect().height/2),i.style.width=null,i.style.height=null,i.style.transform="translate(0, 0)",i.childNodes[1].setAttribute("stroke",s[a]),i.childNodes[1].setAttribute("caret-color",s[a]),a++;const e=l.querySelector("#diagram_chart").getElementsByTagName("svg");for(const s of e)s.setAttribute("font-family",window.getComputedStyle(s,null).getPropertyValue("font-family")),s.setAttribute("font-size","13px"),s.replaceWith(s);const o=l.querySelector("#period_report_spark_section").getElementsByTagName("svg");for(const s of o)s.setAttribute("font-family",window.getComputedStyle(s,null).getPropertyValue("font-family")),s.setAttribute("font-size","12px"),s.replaceWith(s)}t()}))(),await(()=>new Promise(t=>{ra()(l,{scale:2}).then(async e=>{this.data.user.is_mobile||n>1?await a(e,c):r=e.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream"),t()})}))(),await(()=>new Promise(t=>{if(this.data.user.is_mobile)window.parent.postMessage({action:"filedown",link:"https://ng.irontrain.co.kr"==this.$host?"http://106.10.52.151/images/periodreport/"+c:"https://api.tabstudy.co.kr/media/images/periodreport/"+c},"*");else if(n>1){if(i.push(c),o===n-1){let t=new kn.a,a=t.folder(`${e}_${s}_기간레포트`),o=0;for(let n=0,l=i.length;n{if(i)throw i;a.file(c,n,{binary:!0}),o++,o===l&&t.generateAsync({type:"blob"}).then(t=>{Object(Sn["saveAs"])(t,`${e}_${s}_기간레포트.zip`)})})}}}else{let t=document.createElement("a");t.href=r,t.download=c,t.click()}t()}))()}this.data.user.is_mobile&&this.openDialog("mobile_filedown"),this.data.loading_value=!1,document.body.classList.remove("batch_period_report"),this.data.mode="list"}},beforeDestroy(){console.log("beforeDestroy")}},An=$n,Dn=Object(u["a"])(An,yn,vn,!1,null,null,null),Pn=Dn.exports,Bn={name:"reportview",components:{Dialogs:st["a"],"v-chart":Xo["a"],LoadingDialog:bt["a"],ctooltip:Lt["a"],preFont:et["a"],report:ua,TPrint:un,TPrint2:fn,preCautions:at["a"],ReportMessageDialog:gt,BatchPeriodReport:Pn,LevelTestReport:on},data(){return{user:null,loading_value:!1,loading_message:"잠시만 기다려주세요.",mode:"list",prevMode:null,tab:null,tabs:3,classlist:[{text:"전체",value:-1}],type:"today",key:{tsn:0,daily:{classlist:0,checkbox:0},period:{classlist:0,checkbox:0}},daily:{keyword:"",sdate:"",edate:"",smenu:!1,emenu:!1,allowed:[],toggle_exclusive:1,headers:[{text:"조회",value:"data-table-expand",align:"center",sortable:!1},{text:"클래스",value:"classname",align:"left",sortable:!0},{text:"이름",value:"name",align:"left",sortable:!0},{text:"교재명",value:"schedule_name",align:"left",sortable:!1},{text:"차시",value:"unitnum",align:"left",sortable:!1},{text:"학습 시간",value:"tot_studytime",align:"left",sortable:!1},{text:"종합 점수",value:"avg",align:"left",sortable:!1},{text:"레포트 조회",value:"view",align:"center",sortable:!1}],items:[],expanded:[],items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0,select_class:"",select_item:"",select_recent:"",sel_list:[{text:"어휘학습 기준",value:"0",disabled:!0},{text:"기본학습 기준",value:"1",disabled:!0},{text:"심화학습 기준",value:"2",disabled:!0},{text:"전체학습 기준",value:"3",disabled:!0}],wrong_ids:{}},sortable_period_header:["classname","name","tot_studytime","errorrate","avg"],period:{keyword:"",toggle_exclusive:1,sdmenu:!1,edmenu:!1,sddate:"",eddate:"",headers:[{text:"No.",value:"data-table-expand",align:"center",sortable:!1},{text:"클래스",value:"classname",align:"left",sortable:!0},{text:"이름",value:"name",align:"left",sortable:!0},{text:"학습횟수",value:"studycnt",align:"left",sortable:!1},{text:"학습량",value:"studyrate",align:"left",sortable:!1},{text:"학습 시간",value:"tot_studytime",align:"left",sortable:!0},{text:"오답률",value:"errorrate",align:"left",sortable:!0},{text:"종합 점수",value:"avg",align:"left",sortable:!0},{text:"레포트 조회",value:"view",align:"center",sortable:!1}],items:[],expanded:[],items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0,select_class:"",su_uid:"",su_classname:"",su_name:"",su_errorrate:0,su_wrongcnt:0,su_studycnt:0,su_studyrate:0,su_studytime:0,su_avg:0,circle_size:0,circle_width:0,circle_font:0,wrong_sen_arr:[],tool_top_18:"",tool_left_18:"",select_item:"",word_ids:[],sentence_ids:[],sen_word_ids:[],deep_sentence_ids:[],deep_word_ids:[],wrong_ids:{V:{words:[],sentences:[],bank:[],grammar:[]},M:{words:[],sentences:[],bank:[],grammar:[]},A:{words:[],sentences:[],bank:[],grammar:[]}},sel_list:[{text:"오답노트 출력",value:"0",disabled:!0},{text:"메시지 발송",value:"1",disabled:!1},{text:"레포트 저장",value:"2",disabled:!1}]},level:{keyword:"",toggle_exclusive:1,menu:!1,date:"",canvas:"",_tmonth:"",_lmonth:"",_2month:"",headers:[{text:"No.",value:"no",align:"center",sortable:!1},{text:"클래스",value:"class_name",align:"left"},{text:"이름",value:"name",align:"left",sortable:!0},{text:"학년",value:"select_grade",align:"left",sortable:!0},{text:"응시 시간",value:"studytime",align:"left",sortable:!0},{text:"응시 일자",value:"postdate",align:"left",sortable:!0},{text:"레벨 결과",value:"measure_grade",align:"left",sortable:!0},{text:"레포트 조회",value:"view",align:"center",sortable:!1}],items:[],expanded:[],items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0,select_class:"",su_uid:"",su_classname:"",su_name:"",su_errorrate:0,su_wrongcnt:0,su_studycnt:0,su_studyrate:0,su_studytime:0,su_avg:0,circle_size:0,circle_width:0,circle_font:0,wrong_sen_arr:[],tool_top_18:"",tool_left_18:"",select_item:"",word_ids:[],sentence_ids:[],sen_word_ids:[],deep_sentence_ids:[],deep_word_ids:[],wrong_ids:{V:{words:[],sentences:[],bank:[],grammar:[]},M:{words:[],sentences:[],bank:[],grammar:[]},A:{words:[],sentences:[],bank:[],grammar:[]}},sel_list:[{text:"오답노트 출력",value:"0",disabled:!0},{text:"메시지 발송",value:"1",disabled:!1},{text:"레포트 저장",value:"2",disabled:!1}]},month_options:{},month_toggle:2,month_btn_key:0,chart_init:{renderer:"svg"},radar:{radar:{name:{textStyle:{color:"#000",borderRadius:3,padding:[0,0,0,0],fontFamily:"Apple SD Gothic Neo",fontSize:13}},nameGap:10,indicator:[{name:"어휘",max:100},{name:"영작",max:100},{name:"말하기",max:100},{name:"독해",max:100}],center:["50%","50%"],radius:"60%",splitArea:{areaStyle:{color:["rgba(250,250,250,0)","rgba(247, 248, 249, 1)"]}}},series:[{type:"radar",showSymbol:!1,areaStyle:{color:"#fa3a4f",opacity:.3},label:{fontSize:10},data:[{value:[0,0,0,0,0],symbol:"none"}],lineStyle:{color:"#fa3a4f",width:3},animation:!1}]},sparkkey:0,sparkdata:[],spark:{xAxis:{data:"",axisLine:{show:!1},axisTick:{lineStyle:{width:0}}},yAxis:{axisLine:{show:!1},axisTick:{lineStyle:{width:0}},splitNumber:5,splitLine:{show:!0},min:0,max:100},textStyle:{color:"grey",fontFamily:"Apple SD Gothic Neo"},lineStyle:{color:"#ff6c92"},grid:{left:"5%",top:25,right:"4%",bottom:35},series:{type:"line",showSymbol:!1,data:"",animation:!1,smooth:!0,lineStyle:{width:3}}},circle_row:0,hide_default_footer:!1,daily_options:{},period_options:{},level_options:{},select_uid:"",select_sid:"",select_bid:"",kkey:0,err_info_text:!1,sort_chk:"",set_defs:!1,null_status_txt:null,detail_dialog:!1,detail_sentences:"",detail_mean:"",period_last_scale:!1,period_last_bp:"",period_full_screen:!1,report_bg:"",get_html_status:!1,last_m_cnt:0,t16_arrow_right:"-1000px",t16_tool_top:"-1000px",t16_tool_left:"-1000px",print_option_rg:null,print_word:[],print_sentence:[],print_readingquiz:[],grammar_type:{},DAC:!1,DAC_icon:"mdi-checkbox-marked",PAC:!1,PAC_icon:"mdi-checkbox-marked",check_daily_report:[],check_period_report:[],check_level_report:[],overflow_component_daily:0,overflow_component_period:0,resize_cnt:0,cur_item:{},get_days_list:[],saveOptDialog:!1,save_option_rg:null,last_save_option:null,multi_print_text:"",wrongnote_dialog:!1,wrongnote_option:null,wrongnote_lengths:{},apiDelay:!1}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){this.user=this.$storage.get("user"),document.body.classList.add("reportview");const t=this.$dayjs();this.daily.sdate=t.format("YYYY-MM-DD"),this.daily.edate=t.format("YYYY-MM-DD"),this.period.sddate=t.format("YYYY-MM-01"),this.period.eddate=t.format("YYYY-MM-DD"),this.level.date=t.format("YYYY-MM"),this.period.origin_wrong_ids=this.deepClone(this.period.wrong_ids);for(const e of["daily","period","level"])this[e].items_per_page=this.getPageListNumberOfStorage(this.$route.path,e)},mounted(){this.conditionByTutorial("t15")&&this.$store.dispatch("updateTutorial",["t15"]);let t=`${this.$host}/class/${this.$cid}/getclassroom?by=name`;+this.user.uclass{if(200==t.status){let e=Object.values(t.data);for(let t=0,s=e.length;t{console.log(t)}),setTimeout(()=>{document.getElementById("loading-wrapper").style.display="none"},100),Tr.$on("close_event",t=>{1==t.status&&(this.print_option_rg=null,this.$refs.set_btn&&(this.$refs.set_btn.innerText="취소",this.$refs.set_btn.classList.remove("success--text")))})},computed:{levelComputedDateFormatted(){const[t,e]=this.level.date.split("-");return`${t}-${e}`},periodSDateFormatted(){return this.formatDate(this.period.sddate)},periodEDateFormatted(){return this.formatDate(this.period.eddate)},dailySDateFormatted(){return this.formatDate(this.daily.sdate)},dailyEDateFormatted(){return this.formatDate(this.daily.edate)},getEndDate(){return this.$dayjs().format("YYYY-MM-DD")},dialogWidth(){const t={xs:"220px",sm:"400px",md:"650px",lg:"950px",xl:"1300px"};return t[this.$vuetify.breakpoint.name]},dialogFontSize(){const t={xs:"1rem",sm:"1rem",md:"1.1rem",lg:"1.2rem",xl:"1.3rem"};return t[this.$vuetify.breakpoint.name]},chkSelect_D(){let t=!0;return"tab-1"==this.tab&&this.check_daily_report.length>0&&(t=!1,this.checkOverflowBtnDisabled("daily")),t},chkSelect_P(){let t=!0;return"tab-2"==this.tab&&this.check_period_report.length>0&&(t=!1,this.checkOverflowBtnDisabled("period")),t}},watch:{mode(t,e){this.prevMode=e;let s=["list","report","period_report","report_error_print","batch_period_report"];for(let a=0,i=s.length;a{this.setPeriodCircleSize()},0)},tab(t){if("tab-1"==t){if(this.type="today",this.clearPAC(),this.period.items.length>0)for(let e=0;e0))for(let e=0;e0&&this.daily.expanded[0].unit_record_id==t.unit_record_id?(this.select_id="",this.daily.expanded.pop()):(this.select_id=t.unit_record_id,this.daily.expanded.pop(),this.daily.expanded.push(t))},checkReport(t,e){const s=t.findIndex(t=>t.type==e);return s>=0},setViewButton(t){const e=+t.booktype,s=+t.category,a=+t.schedule_type;let i=[];const o={warning:"border: thin solid #fe9017 !important",success:"border: thin solid #1bd05b !important",info2:"border: thin solid #5bc7ff !important"};if(null!=t.mockexam_id){const e=t.new_mock?"조회":"평가",s=t.new_mock?"grey--text cursor":"success",a=t.new_mock?"font-size: 90%":"";return i.push({label:e,class:s,style:a,report_type:t.new_mock?void 0:"x",btn_type:t.new_mock?"span":void 0}),i}if(1===a&&1===+t.type_v)return i.push({label:"조회",class:"grey--text cursor",style:"font-size: 90%",btn_type:"span"}),i;const n=a=>{const n={S:["본문","success","study"],T:["심화","info2","test"],V:["어휘","warning","v"],M:["본문","success","m"],A:["심화","info2","a"],VM:["학습","success","vm"],VA:["시험","info2","va"],SV:["동화","warning","sv"],SM:["기본","success","sm"],SA:["실전","info2","sa"],GT:["이론","warning","gt"],GB:["기본","success","gb"],GD:["심화","info2","gd"],X:["듣기","info2","x"]};a.forEach(a=>{const l=this.checkReport(t.sub_rows,a);let r=n[a][0];const c=n[a][1],d=n[a][2],h=l?c+" white--text":c+"--text white";0===e&&(+t.words_cnt>0?1===s&&"S"===a&&(r="문장"):"S"===a?r="학습":"T"===a&&(r="시험")),["S","M"].includes(a)&&(3===s||1===s&&31===e)&&(r="지문");const u={label:r,class:h,style:l?"":o[c],report_type:d};i.push(u)})};return 22===e?n(["VM","VA"]):50===e?n(["SV","SM","SA"]):43===e?n(["GT","GB","GD"]):31===e?n(["V","S",[1,3].includes(s)?"T":"X"]):11===e&&0===a?n(["V","M","A"]):1===e&&0===a||0===e&&0===a&&+t.words_cnt>0?n(["V","S","T"]):n(["S","T"]),i},setTypeColor(t){let e="";switch(t){case"S":case"M":case"GB":case"SM":e="success";break;case"T":case"A":case"GD":case"X":case"VA":case"SA":e="info2";break;case"V":case"GT":case"SV":e="warning";break;default:e="success";break}return e},setTypeText(t){let e="";const s=Object.freeze({S:"학습",T:"시험",V:"어휘",M:"본문",A:"심화",GD:"심화",X:"듣기",GT:"이론",GB:"기본",SM:"기본",SV:"동화",SA:"실전"});return e=s[t.type],"S"===t.type&&1==t.category&&0==t.schedule_type?e="문장":"M"===t.type&&3==t.category&&(e="지문"),e},getReport(){if(this.apiDelay)return;this.apiDelay=!0;const t="tab-1"==this.tab?"daily":"period";let e=+this[t].items_per_page,s=(this[t].page-1)*e;const a=this[t].sortby,i=this[t].sortdesc,o=this[t].keyword;this.clearDAC(),this.clearPAC(),"F"==this.user.product_type&&(0==s?e-=1:s-=1);const n="tab-1"==this.tab?"getreportnew":"getperiodreport";let l=`${this.$host}/result/${this.$cid}/${n}/${s}/${e}`;void 0!=a&&void 0!=i&&(l+=`/${a}/${1==i?"desc":"asc"}`),""!=this.type&&(l+="?type="+this.type),""!=o&&(l+="&keyword="+o),""!==this[t].select_class&&(l+="&class="+this[t].select_class),"tab-1"==this.tab?"seldate"==this.type&&(l+=`&sd=${this.daily.sdate}&ed=${this.daily.edate}`):"tab-2"==this.tab&&"seldate"==this.type&&(l+=`&sd=${this.period.sddate}&ed=${this.period.eddate}`),l+=`&done=1&tid=${this.$id}_${this.$uclass}`;let r=new Promise((t,e)=>{this.$axios.get(l).then(s=>{if(200==s.status){if("tab-1"==this.tab){this.daily.items=[],this.daily.items_length=s.data.records;let t=Object.values(s.data.rows);for(let e=0,s=t.length;e0&&this.$nextTick(()=>{if(document.querySelectorAll(".info2.white--text")[0]){let t=document.querySelectorAll(".info2.white--text")[0];if(t){let e=t.getBoundingClientRect();this.t16_arrow_right="24px",this.t16_tool_top=e.top+e.height+"px",this.t16_tool_left=e.right+"px"}this.$forceUpdate()}else if(document.querySelectorAll(".info2--text")[0]){let t=document.querySelectorAll(".info2--text")[0];if(t){let e=t.getBoundingClientRect();this.t16_arrow_right="24px",this.t16_tool_top=e.top+e.height+"px",this.t16_tool_left=e.right+"px"}this.$forceUpdate()}})}else if("tab-2"==this.tab){this.period.items=[],this.period.items_length=s.data.records;let t=Object.values(s.data.rows);for(let e=0,s=t.length;e0?Math.floor(s.tot_studytime):0,errorrate:0==s.error_rate?0:Math.round(s.error_rate),wrongcnt:s.wrong_sen,avg:s.avg_score,module:s.module,wrong_ids:s.wrong_ids||null};this.period.items.push(a),"sample"==s.user_id&&this.$nextTick(()=>{let t=document.getElementsByClassName("name-span");if(t.length>0){let e=t[0].getBoundingClientRect().bottom,s=t[0].getBoundingClientRect().left,a=t[0].getBoundingClientRect().right;this.period.tool_top_18=e+"px",this.period.tool_left_18=s+(a-s)/2+"px"}})}}t()}else 204==s.status&&e("null")}).catch(t=>{e(t)})});r.then(()=>{setTimeout(()=>{this.$forceUpdate()},100)}).catch(t=>{console.error(t),"tab-1"==this.tab?(this.daily.items=[],this.daily.items_length=0):"tab-2"==this.tab&&(this.period.items=[],this.period.items_length=0)}).finally(()=>{this.apiDelay=!1})},search(t,e){13!=event.keyCode&&"click"!=event.type||(this[e].page=1,"level"===e?this.getLevelTest():this.getReport())},classChange(t,e){this[e].page=1,this[e].select_class=-1==t?"":t,this.getReport()},toggleExc(t,e){this.$store.dispatch("soundEffectPlay","click_button"),this[e].page=1,this[e].toggle_exclusive=t;const s=this.$dayjs();"daily"==e?(this.clearDAC(),0==t?(this.type="yday",this.daily.sdate=s.add(-1,"day").format("YYYY-MM-DD"),this.daily.edate=s.add(-1,"day").format("YYYY-MM-DD")):1==t&&(this.type="today",this.daily.sdate=s.format("YYYY-MM-DD"),this.daily.edate=s.format("YYYY-MM-DD"))):"period"==e&&(this.clearPAC(),0==t?(this.type="lmonth",this.period.sddate=s.add(-1,"month").set("date",1).format("YYYY-MM-DD"),this.period.eddate=s.add(-1,"month").endOf("month").format("YYYY-MM-DD")):1==t?(this.type="tmonth",this.period.sddate=s.set("date",1).format("YYYY-MM-DD"),this.period.eddate=s.format("YYYY-MM-DD")):this.period.toggle_exclusive="date"),this.getReport()},dateChange(t,e){"daily"==e?this.clearDAC():this.clearPAC(),this[e].page=1,this.type="seldate",this.getReport();const s=this.$dayjs();if("daily"==e)this.daily.sdate==s.format("YYYY-MM-DD")&&this.daily.edate==s.format("YYYY-MM-DD")?this.daily.toggle_exclusive=1:this.daily.sdate==s.add(-1,"day").format("YYYY-MM-DD")&&this.daily.edate==s.add(-1,"day").format("YYYY-MM-DD")?this.daily.toggle_exclusive=0:this.daily.toggle_exclusive="date";else if("period"==e){const t=s.set("date",1).format("YYYY-MM-DD"),e=s.add(-1,"month").set("date",1).format("YYYY-MM-DD"),a=s.add(-1,"month").endOf("month").format("YYYY-MM-DD");this.period.sddate==t&&this.period.eddate==s.format("YYYY-MM-DD")?this.period.toggle_exclusive=1:this.period.sddate==e&&this.period.eddate==a?this.period.toggle_exclusive=0:this.period.toggle_exclusive="date"}},getModuleName(t){let e={256:"matching",128:"dictation",64:"popquiz",32:"writing",16:"writing_k",8:"speaking",1:"matching",2:"dictation",3:"popquiz",4:"writing",5:"writing_k",6:"speaking",7:"wordbingo",O:"paragraphorder",R:"readingquiz",B:"dictation",G:"grammerquiz",I:"wordinference"};return e[t]||null},getHtmlData(t,e,s){return new Promise(a=>{const i=[];let o=this.period.select_item.uid;o||(o=this.check_period_report[this.check_period_report.length-1].uid),Ns.collection("users").doc(o).collection("schedules").doc(t).collection("Bookunits").doc(e).get().then(t=>{const e=t.data();let o=new DOMParser;if(e){const t=Object.entries(e);for(let e=0,a=t.length;e+t.id===+s.i);if(-1===e){let e=l[t].replace(/]*class=['"][^'"]*\bc_o\b[^'"]*['"][^>]*>/gi,"").replace(/light-blue--text/gi,"");if("wordbingo"===a&&e.match(/\/g)&&!s.e){const t=e.split("
");e=t[1],s.e=t[0].replace(/(<([^>]+)>)/gi,"")}i.push({id:+s.i,sen:e,mean:this.decodeMixedEncoding(s.e)})}}}}}a(i)}).catch(t=>{console.error(t)})})},getWrongIds(t,e,s){return new Promise(a=>{const i={},o="daily"===t?e.user_id:e.uid,n="daily"===t?s.schedule_id:s.split("//")[0];let l="";"daily"===t?(l=`${e.books_id}-${e.dist_seq}-${e.schedule_type}-`,1===+e.schedule_type&&1==e.type_v?l+=""+e.unit_seq:l+=""+(+e.schedule_type>0?e.unit_seq:e.unit_id),l+="-"+s.type.toUpperCase()):"period"===t&&(l=s.split("//")[1]),Ns.collection("users").doc(o).collection("schedules").doc(n).collection("Bookunits").doc(l).get().then(t=>{const e=t.data();if(e){const t=Object.entries(e);for(let e=0,s=t.length;e{console.error(t)})})},setWrongSen(t){return new Promise(async(e,s)=>{if(t){t.new_wrong_sen_arr||(t.new_wrong_sen_arr=[]);const s=e=>{const s=t.new_wrong_sen_arr.findIndex(t=>+t.id===+e.id);-1===s&&t.new_wrong_sen_arr.length<10&&(""===e.mean&&e.sen.match(/\/g)&&console.log(e.sen),t.new_wrong_sen_arr.push(Object.freeze(e)))};if(t.fb_rows)for(let e=0,a=t.fb_rows.length;e=10)break;const a=t.fb_rows[e],i=[];if(a.module_skip){const t=a.module_skip.split(",");for(let e=0,s=t.length;e0?a.unit_seq:a.unit_id),n+="-"+a.type.toUpperCase();const l=await this.getHtmlData(o,n,i);for(let t=0,e=l.length;t0&&t.new_wrong_sen_arr.length<10){const e=JSON.parse(JSON.stringify(t.wrong_sen_arr));for(let t=0,a=e.length;t{let a=`${this.$host}/result/${this.$cid}/user/${t.uid}/getperiodsubdata`;""!=this.type&&(a+="?type="+this.type),"seldate"==this.type&&(a+=`&sd=${this.period.sddate}&ed=${this.period.eddate}`),this.$axios.get(a).then(t=>{e(t)}).catch(t=>{s(t)})})},async toggleClassPeriodRow(t){this.period.select_item=t,this.$store.dispatch("soundEffectPlay","click_button"),this.loading_value=!0,this.period_last_scale=!1,this.period.su_uid=t.uid,this.period.su_classname=t.classname,this.period.su_name=t.name,this.period.su_errorrate=Math.round(t.errorrate),this.period.su_wrongcnt=Number(t.wrongcnt),this.period.su_studycnt=t.studycnt,this.period.su_studyrate=t.studyrate,this.period.su_studytime=t.tot_studytime,this.period.su_avg=Number(parseFloat(t.avg).toFixed(1)),this.radar.series[0].data[0].value=[];let e=["V","EC","speaking","RC"];for(let s=0;s<4;s++)this.radar.series[0].data[0].value[s]=t.module[e[s]];if(!t.all_scores){const e=await this.getPeriodSubData(t);if(!e||200!==e.status)return console.error(e),this.loading_value=!1,!1;{const s=e.data;t.all_scores=s.allscore,t.fb_rows=s.fb_rows,t.wrong_sen_arr=s.wrong_sen_arr}}if(t.all_scores){this.sparkdata=[];const e=Object.values(t.all_scores);for(let t=0,s=e.length;tt[0]),this.spark.series.data=this.sparkdata.map(t=>t[1]),this.sparkkey++}t.new_wrong_sen_arr||await this.setWrongSen(t),this.circle_row++,this.mode="period_report",this.topNavBarChange(),setTimeout(()=>{this.setPeriodCircleSize(),window.onresize=this.setPeriodCircleSize,this.conditionByTutorial("t18")&&this.$store.dispatch("updateTutorial",["t18"]),this.loading_value=!1},100)},selDate(t){this.$refs.datedialog[0].save(t)},setPeriodCircleSize(){if(console.log("setPeriodCircleSize"),this.tab>0&&"period_report"!=this.mode)return!1;if(!this.period_last_scale||this.period_last_bp!=this.$vuetify.breakpoint.name){this.period_last_bp=this.$vuetify.breakpoint.name;let t=document.getElementById("period_report_top_row"),e=document.getElementById("period_a4"),s=document.getElementById("a4_parent");const a=this.$store.state.user.zoom_status;if(["xs","sm"].includes(this.$vuetify.breakpoint.name)){let i;1==a?(console.log("zoom 1"),i=t.getBoundingClientRect().width/.901/793.7007):(console.log("zoom 0"),i=t.getBoundingClientRect().width/793.7007),e.style.transform=`translate(-50%, 0) scale(${i})`,this.period_last_scale=i,s.style.height=1==a?e.getBoundingClientRect().height/.901+"px":e.getBoundingClientRect().height+"px",t.getBoundingClientRect().height>e.getBoundingClientRect().height*i?(s.style.top="50%",s.style.transform="translate(0, -50%)"):(s.style.top="unset",s.style.transform="unset")}else{let i;i=1==a?t.getBoundingClientRect().height/.901/1122.515625:t.getBoundingClientRect().height/1122.515625,e.style.transform=`translate(-50%, 0) scale(${i})`,this.period_last_scale=i,s.style.height=1==a?e.getBoundingClientRect().height/.901+"px":e.getBoundingClientRect().height+"px"}this.period_full_screen&&(this.period_full_screen=!1)}let t=document.getElementById("period-circle-row"),e=document.getElementById("period-circle-col"),s=window.getComputedStyle(e),a=t.offsetHeight-20,i=t.offsetWidth;a-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),i-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight);let o=a>i?i:a;isNaN(o)||(this.period.circle_size=o,this.period.circle_width=Math.round(o/9),this.period.circle_font=Math.round(o/6))},openReport(t,e,s=null){console.log("openReport",t,e),this.conditionByTutorial("t16")&&this.$store.dispatch("updateTutorial",["t16"]),this.$store.dispatch("soundEffectPlay","click_button");let a=this.deepClone(e);this.loading_value=!0,this.$nextTick(()=>{this.$forceUpdate();let i=new Promise((i,o)=>{a.user_info={id:e.user_id,text:e.name,class_name:e.classname},a.urid=e.unit_record_id,a.unit_id=e.unit_id||0,a.unit=e.unit_seq||0,a.unit_name=e.unit_name,a.bid=e.books_id;let n=t.toLowerCase();if("study"==t?t="S":"test"==t&&(t="T"),"gt"==t&&(this.$basicGrammarBooks.includes(+a.bid)&&(+a.unit+1)%3===0||this.$middleGrammarBooks.includes(+a.bid)&&a.unit_name.match("Review")))return void o("gt_review");if("sv"==t)return void o("sv_review");let l=e.sub_rows.filter(e=>{let a;return a=!("x"==t.toLowerCase()&&!e.type)&&(null==s?e.type.toLowerCase()===t.toLowerCase():e.type.toLowerCase()===t.toLowerCase()&&e.su_seq==s),a});if("x"==t.toLowerCase()&&0===l.length&&e.sub_rows&&e.sub_rows.length>0&&(a.new_mock?l=e.sub_rows:l.push(e.sub_rows[e.sub_rows.length-1])),l&&l.length>0){let r;if(a.new_mock){const t=l.findIndex(t=>t.id==s);r=l[t]}else r=l[l.length-1];if(a.recent=r,(r.unit_record_id||r.rid)&&(a.urid=r.unit_record_id),a.avg=Math.round(r.avg),a.skip=r.skip,a.new_skip=r.new_skip,a.question_cnt=+r.tot_question_cnt,a.wrong_cnt=+r.tot_wrong_cnt,a.error_rate=isNaN(Math.round(100/a.question_cnt*a.wrong_cnt))?0:Math.round(100/a.question_cnt*a.wrong_cnt),a.studytime=r.studytime,a.studydate=r.postdate,"x"==t)if(a.new_mock){console.log(r);let t=a.sub_rows.findIndex(t=>t.id==a.recent.id),e=a.recent.select_nums.split(","),s=a.right_group.split(","),i=a.point_group.split(","),o=a.recent.wrong_nums;if(o=null==o?s.map((t,s)=>{if(e[s]!=t)return s+1}).filter(t=>void 0!=t):JSON.parse(o),"0"==a.recent.is_regular){let e=a.sub_rows[t-1].wrong_nums;if(null==e){let i=a.sub_rows[t-1].select_nums.split(",");e=s.map((t,e)=>{if(i[e]!=t)return e+1}).filter(t=>void 0!=t)}else e=JSON.parse(e);s=s.map((t,s)=>{if(e.includes(s+1))return t}).filter(t=>void 0!=t),i=i.map((t,s)=>{if(e.includes(s+1))return t}).filter(t=>void 0!=t)}a.mock_infos={right_group:s,select_nums:e,point_group:i};const n=e.length;a.unit_name=a.recent.history_text,a.wrong_cnt=o.length,a.question_cnt=n,a.error_rate=Math.round(a.wrong_cnt/n*100),a.avg=Math.round(+r.score),a.studytime||(a.studytime=r.studytime)}else{a.mock_infos={right_group:e.right_group.split(","),select_nums:r.select_nums?r.select_nums.replace(/\[|\]/,"").split(","):null,point_group:a.point_group.split(",")},a.question_cnt=e.right_group.split(",").length;let t=0;a.wrong_cnt=0;for(let e=0,s=a.question_cnt;e0&&""!=r[n+"_modules"][0]._mod){let t="";for(let e=0,s=r[n+"_modules"].length;e{200===t.status?(a.modules_score=t.data,i(3)):204===t.status&&(console.log("null_module_2"),i("null_module"))}).catch(t=>{console.error(t),o(1)}):i(4)}else o(2)});i.then(e=>{this.$refs.report.openReport(t,a,e).then(()=>{this.mode="report",this.loading_value=!1}).catch(t=>{console.error(t),this.loading_value=!1})}).catch(e=>{console.error(e),this.mode="list",this.null_status_txt=this.getKorType(t,a),this.loading_value=!1,["gt_review","sv_review"].includes(e)?this.openAlert(e):this.openDialog("null_report")})})},async openLevelTestReport(t){await this.$axios.get(`${this.$host}/leveltest/1/getrecord/${t.id}`).then(t=>{const e=t.data;e.from="leveltest",this.select_leveltest=e,this.mode="leveltest-report"}).catch(t=>{console.error(t)})},getKorType(t,e=null){console.log(t,e),t=t.toLowerCase();let s="학습",a={s:"학습",study:"학습",t:"시험",test:"시험",v:"어휘학습",m:"본문학습",a:"심화학습",vm:"학습",va:"시험",gt:"이론학습",gb:"기본학습",gd:"심화학습",x:"듣기평가",sm:"기본학습"};return s=a[t]?a[t]:s,["s","m"].includes(t)&&(3==e.category||1==e.category&&31==e.booktype)?s="지문학습":0===+e.booktype_m&&0===+e.booktype_s&&(4!==+e.category||100!==+e.category)||(4===+e.category||100===+e.category)&&0===+e.booktype_m&&1===+e.booktype_s?"s"==t?s="본문학습":"t"==t&&(s="심화학습"):4!==+e.category&&100!==+e.category||3!==+e.booktype_m||1!==+e.booktype_s||("t"==t?s="듣기학습":"s"==t&&(s="본문학습")),s},async windowPrint(t){if(this.$store.state.is_mobile)this.openDialog("mobile_print");else if("yet"==t)this.openDialog("print_yet");else if("period_report"==this.mode){document.getElementById("period_report_top_row").scrollTo(0,0),this.$store.dispatch("soundEffectPlay","click_button");const t=()=>{const t=window.open("","_blank","width=1,height=1");t.addEventListener("afterprint",()=>{t.close()}),t.document.head.innerHTML=document.head.innerHTML,t.document.body.innerHTML=document.body.innerHTML,t.document.getElementById("period_report").style.transformOrigin="0 0",t.document.getElementById("period_report").style.transform="scale(88%)",setTimeout(()=>{t.print(),setTimeout(()=>{t.close()},200)},200)};var e=navigator.userAgent.toLowerCase();-1!=e.indexOf("safari")&&-1==e.indexOf("chrome")?t():window.print(),this.conditionByTutorial("t19")&&(await this.$store.dispatch("updateTutorial",["t19"]),this.$forceUpdate(),this.$parent.$parent.$parent.$parent.layout_ctooltip+=1)}},customSort(t,e,s){this[t].sortby=e,this[t].sortdesc=s},onDown(t){let e="",s="",a="";if(this.user.is_mobile||(this.loading_value=!0),"period"==t){document.getElementById("period_report_top_row").scrollTo(0,0),a=document.getElementById("period_a4");let t=this.period.select_item.name?this.period.select_item.name.replace(/ /g,"_"):"",e=this.period.sddate?this.period.sddate.split("-"):"",i=this.period.eddate?this.period.eddate.split("-"):"",o="",n="";""!=e&&(o=e[0].substr(2,2)+e[1]+e[2]),""!=i&&(n=i[0].substr(2,2)+i[1]+i[2]),s=`${this.$cid}_${t}_${o}_${n}_기간레포트.jpg`}let i=t=>new Promise(e=>{a.style.display="block",setTimeout(()=>{if("period"==t){let t=document.getElementById("period-circle-row").getElementsByTagName("svg"),e=["#1bd05b","#97f1b8","#7cece2","#80cbec","#95bbef"];for(let s=0,a=t.length;s{e(t)},0)},0)}),o=t=>new Promise(t=>{ra()(a,{scale:2}).then(a=>{this.user.is_mobile?this.$axios.post(`${this.$host}/result/${this.$cid}/uploadreport`,{image:a.toDataURL(),filename:s}).then(t=>{console.log(t.status)}).catch(t=>{console.log(t),this.user.is_mobile||(this.loading_value=!1)}):e=a.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream"),t()})}),n=()=>new Promise(a=>{if(this.user.is_mobile)"period"==t&&window.parent.postMessage({action:"filedown",link:"https://ng.irontrain.co.kr"==this.$host?"http://106.10.52.151/images/periodreport/"+s:"https://api.tabstudy.co.kr/media/images/periodreport/"+s},"*");else{let t=document.createElement("a");t.href=e,t.download=s,t.click()}a()});this.$store.state.is_mobile&&this.$store.dispatch("soundEffectPlay","click_button"),i(t).then(t=>o(t)).then(()=>n()).then(()=>{this.$store.state.is_mobile&&this.openDialog("mobile_filedown"),this.user.is_mobile||(this.loading_value=!1)})},setPointer(t){let e=this.$refs[t][0],s=e.childNodes[0];s.offsetWidth>e.offsetWidth?e.classList.contains("cursor")||e.classList.add("cursor"):e.classList.contains("cursor")&&e.classList.remove("cursor")},showDetail(t){let e="w_sent_"+t,s="w_mean_"+t,a=this.$refs[e][0],i=this.$refs[s][0],o=a.childNodes[0],n=i.childNodes[0];(o.offsetWidth>a.offsetWidth||n.offsetWidth>i.offsetWidth)&&(this.detail_sentences=o.textContent,this.detail_mean=n.textContent,this.detail_dialog=!0)},fullScreen(t){if("period_report"==t){let t=document.getElementById("period_report_top_row"),e=document.getElementById("period_a4");if(this.period_full_screen)e.style.transform="translate(-50%, 0px) scale("+this.period_last_scale+")";else{let s=t.getBoundingClientRect().width/793.70078739;e.style.transform="translate(-50%, 0px) scale("+s+")"}this.period_full_screen=!this.period_full_screen}},periodTableResize(){"tab-2"==this.tab&&setTimeout(()=>{let t=document.getElementsByClassName("name-span");if(t.length>0){let e=t[0].getBoundingClientRect().bottom,s=t[0].getBoundingClientRect().left,a=t[0].getBoundingClientRect().right;this.period.tool_top_18=e+"px",this.period.tool_left_18=s+(a-s)/2+"px"}},300)},dailyTableResize(){this.conditionByTutorial("t16")&&this.daily.items.length>0&&this.$nextTick(()=>{if(document.querySelectorAll(".info2.white--text")[0]){let t=document.querySelectorAll(".info2.white--text")[0];if(t){let e=t.getBoundingClientRect();this.t16_arrow_right="24px",this.t16_tool_top=e.top+e.height+"px",this.t16_tool_left=e.right+"px"}this.$forceUpdate()}else if(document.querySelectorAll(".info2--text")[0]){let t=document.querySelectorAll(".info2--text")[0];if(t){let e=t.getBoundingClientRect();this.t16_arrow_right="24px",this.t16_tool_top=e.top+e.height+"px",this.t16_tool_left=e.right+"px"}this.$forceUpdate()}})},nameKeyUp(){},dailyAllowed(t){return-1!==this.daily.allowed.indexOf(t)},async pushCheckReport(t,e){return new Promise(async s=>{if("daily"===t&&e&&"X"!==e.type&&e.sub_rows){const t=e.sub_rows,s=Array.from(new Set(t.map(t=>t.type)));for(let e=0,a=s.length;et.type.toLowerCase()===s[e].toLowerCase()&&1===+t.done);if(0===a.length)continue;const i=a[a.length-1].history_id,o=t.findIndex(t=>+t.history_id===+i);-1!==o&&(t[o].isLast=!0)}}s(e)})},async spliceCheckReport(t,e,s){return new Promise(e=>{this[`check_${t}_report`].splice(s,1),e()})},setWrongIds(t,e){switch(e.type){case"V":case"M":case"A":case"VM":case"VA":case"S":case"T":{const s=e.type.toLowerCase(),a=["V","VM","VA"].includes(e.type)?"word":"sentence";if(e[`wrong_${a}s_ids`]&&("string"===typeof e[`wrong_${a}s_ids`]&&(e[`wrong_${a}s_ids`]=JSON.parse(e[`wrong_${a}s_ids`])),e[`wrong_${a}s_ids`].length>0&&(e[`wrong_${a}s_ids`]=e[`wrong_${a}s_ids`].map(t=>+t),this.daily.wrong_ids[s]||(this.daily.wrong_ids[s]=[]),this.daily.wrong_ids[s]=[...this.daily.wrong_ids[s],...e[`wrong_${a}s_ids`]],this.daily.wrong_ids[s]=Array.from(new Set(this.daily.wrong_ids[s])))),e.wrong_bank_ids){"string"===typeof e.wrong_bank_ids&&(e.wrong_bank_ids=JSON.parse(e.wrong_bank_ids));const a=`${s}_bank::${t.books_id}`;this.daily.wrong_ids[a]||(this.daily.wrong_ids[a]=[]),this.daily.wrong_ids[a]=[...this.daily.wrong_ids[a],...e.wrong_bank_ids],this.daily.wrong_ids[a]=Array.from(new Set(this.daily.wrong_ids[a]))}break}case"SM":e.wrong_words_ids&&("string"===typeof e.wrong_words_ids&&(e.wrong_words_ids=JSON.parse(e.wrong_words_ids)),e.wrong_words_ids.length>0&&(e.wrong_words_ids=e.wrong_words_ids.map(t=>+t),this.daily.wrong_ids.sm_w||(this.daily.wrong_ids.sm_w=[]),this.daily.wrong_ids.sm_w=[...this.daily.wrong_ids.sm_w,...e.wrong_words_ids],this.daily.wrong_ids.sm_w=Array.from(new Set(this.daily.wrong_ids.sm_w)))),e.wrong_sentences_ids&&("string"===typeof e.wrong_sentences_ids&&(e.wrong_sentences_ids=JSON.parse(e.wrong_sentences_ids)),e.wrong_sentences_ids.length>0&&(e.wrong_sentences_ids=e.wrong_sentences_ids.map(t=>+t),this.daily.wrong_ids.sm||(this.daily.wrong_ids.sm=[]),this.daily.wrong_ids.sm=[...this.daily.wrong_ids.sm,...e.wrong_sentences_ids],this.daily.wrong_ids.sm=Array.from(new Set(this.daily.wrong_ids.sm))));break;case"GT":case"GB":case"GD":case"SA":if("string"===typeof e.wrong_grammar_ids&&(e.wrong_grammar_ids=JSON.parse(e.wrong_grammar_ids)),e.wrong_grammar_ids&&e.wrong_grammar_ids.length>0){const t=e.type.toLowerCase();this.daily.wrong_ids[t]||(this.daily.wrong_ids[t]=[]),this.daily.wrong_ids[t]=[...this.daily.wrong_ids[t],...e.wrong_grammar_ids],this.daily.wrong_ids[t]=Array.from(new Set(this.daily.wrong_ids[t]))}break}},async selectReport(t,e,s){try{this.loading_value=!s.isSelected;const t=e.toUpperCase(),a="d"==e?"daily":"period";let i=this[a].items;s.isSelected=!s.isSelected,"d"===e&&(s=await this.pushCheckReport(a,s));const o=i.filter(t=>t.isSelected);this[`check_${a}_report`]=[...o],s.isSelected?(this[t+"AC"]=!0,this[t+"AC_icon"]=o.length===i.length?"mdi-checkbox-marked":"mdi-minus-box"):0==o.length?(this[t+"AC"]=!1,this[t+"AC_icon"]=""):(this[t+"AC"]=!0,this[t+"AC_icon"]="mdi-minus-box");const n=this[`check_${a}_report`];if("d"==e){if(this.daily.wrong_ids={},n.length>0)for(let e=0,l=n.length;et.isLast);for(let e=0,i=a.length;e0))for(let e=0,s=n.length;e{this.loading_value=!1},250)}catch(a){console.error(a),setTimeout(()=>{this.loading_value=!1},250)}},async selectAllReport(t,e){try{this.loading_value=!0;const e=t.toUpperCase(),s="d"==t?"daily":"period",a=this[s].items;if(this[e+"AC"]){this[`clear${e}AC`](),this[`check_${s}_report`]=[];for(let t=0,e=a.length;t0)for(let t=0,e=i.length;tt.isLast);for(let t=0,i=a.length;t0))for(let t=0,e=i.length;t{this.loading_value=!1},250)}catch(s){console.error(s),setTimeout(()=>{this.loading_value=!1},250)}},clearDAC(){this.DAC=!1,this.DAC_icon="",this.check_daily_report=[],this.daily.wrong_ids={}},clearPAC(){this.PAC=!1,this.PAC_icon="",this.check_period_report=[],this.period.wrong_ids=this.deepClone(this.period.origin_wrong_ids)},selectRowEvent(t,e){if(console.log(t,e),1===t||2===t&&0===+e){this.cur_item.from=1==t?"daily":"period",this.cur_item["wrong_words_ids"]=[],this.cur_item["wrong_sentences_ids"]=[],this.cur_item.select_option=e,this.cur_item.wrong_ids=this[1==t?"daily":"period"].wrong_ids;const s=["어휘학습","기본학습","심화학습"];if(this.multi_print_text=s[e],1===t)this.openDialog("multi_print");else{const t=Object.keys(this.period.wrong_ids);for(let e=0,s=t.length;e{if(200===t.status){for(let e=0,s=t.data.length;e{console.error(t),this.loading_value=!1})},openSaveOptionDialog(){this.$store.dispatch("soundEffectPlay","click_button"),this.saveOptDialog=!0},closeSaveOptionDialog(){this.save_option_rg=null,this.$refs.set_save_btn.innerText="취소",this.$refs.set_save_btn.classList.remove("success--text"),this.saveOptDialog=!1},changeSaveOption(){this.$refs.set_save_btn.innerText="확인",this.$refs.set_save_btn.classList.add("success--text")},async submitSaveOption(){if("확인"==this.$refs.set_save_btn.innerText)if(this.last_save_option=this.save_option_rg,"list"==this.mode){this.loading_value=!0;for await(const t of this.check_period_report)t.new_wrong_sen_arr||await this.setWrongSen(t);this.mode="batch_period_report"}else 0==this.save_option_rg?(this.closeSaveOptionDialog(),setTimeout(()=>{this.windowPrint()},500)):2==this.save_option_rg&&this.onDown("period");this.closeSaveOptionDialog()},changeWrongNoteOption(){this.$refs.set_wrongnote_btn.innerText="확인",this.$refs.set_wrongnote_btn.classList.add("success--text")},closeWrongNoteDialog(){this.wrongnote_lengths={},this.wrongnote_dialog=!1},submitWrongNote(){"확인"==this.$refs.set_wrongnote_btn.innerText&&(this.cur_item.select_option=this.wrongnote_option,this.multiWrongPrint()),this.closeWrongNoteDialog()},async openReportMessageDialog(){this.conditionByTutorial("t19")&&await this.$store.dispatch("updateTutorial",["t19"]);const t=this.period.select_item,e=t.all_scores.map(t=>+t.avg);console.log(t);const s={user_id:"sample"===t.uid?t.uid:+t.uid,name:t.name,classname:t.classname,wrongcnt:+t.wrongcnt,studycnt:+t.studycnt,errorrate:+t.errorrate,studyrate:+t.studyrate,studytime:+t.tot_studytime,sddate:this.period.sddate,eddate:this.period.eddate,wrong_arr:t.new_wrong_sen_arr,avg:this.period.su_avg,info_modules:t.module,all_scores:e};this.$refs["report-message-dialog"].open("period",s)},checkOverflowBtnDisabled(t){const e=this[t],s=Object.entries(e.wrong_ids);if(console.log(s,"ent_ids"),"daily"==t){e.sel_list[0].disabled=!0,e.sel_list[1].disabled=!0,e.sel_list[2].disabled=!0;const t={0:["v","gt","v_bank"],1:["m","gb","vm","s","sm","sm_w"],2:["a","gd","a_bank","va","t","sa"]};for(let a=0,i=s.length;a0&&(t[0].includes(i)||t[0].includes(n)?e.sel_list[0].disabled=!1:t[1].includes(i)||t[1].includes(n)?e.sel_list[1].disabled=!1:(t[2].includes(i)||t[2].includes(n))&&(e.sel_list[2].disabled=!1))}e.sel_list[3].disabled=e.sel_list[0].disabled&&e.sel_list[1].disabled&&e.sel_list[2].disabled}else if("period"==t){e.sel_list[0].disabled=!0;const t=["V","M","A"],s=[!0,!0,!0],a=["words","sentences","bank","grammar"];for(let i=0,o=t.length;i0&&(s[i]=!1)}}e.sel_list[0].disabled=!s.some(t=>!t)}},async batchMessageSend(t){const e=this[`check_${t}_report`];if("period"==t){const t=[];for await(const s of e){const e={};s.new_wrong_sen_arr||await this.setWrongSen(s),s.new_scores=s.all_scores.map(t=>+t.avg),e.user_id="sample"===s.uid?s.uid:+s.uid,e.name=s.name,e.classname=s.classname,e.wrongcnt=+s.wrongcnt,e.studycnt=+s.studycnt,e.errorrate=+s.errorrate,e.studyrate=+s.studyrate,e.studytime=+s.tot_studytime,e.sddate=this.period.sddate,e.eddate=this.period.eddate,e.wrong_arr=s.new_wrong_sen_arr,e.avg=Number(parseFloat(s.avg).toFixed(1)),e.info_modules=s.module,e.all_scores=s.new_scores,t.push(e)}this.$refs["report-message-dialog"].open("period",t)}},batchReportSave(){},getLevelTest(){if(this.apiDelay)return;this.apiDelay=!0,console.log(this.level_options);const t={0:"two_months_ago",1:"last_month",2:"this_month"};let e=`${this.$host}/leveltest/1/getrecordlist/${this.$cid}?`;e+="period="+t[this.month_toggle],e+="&page="+this.level.page,e+="&per_page="+this.level.items_per_page,this.level.sortby?(e+="&sort="+this.level.sortby,e+="&order="+(this.level.sortdesc?"desc":"asc")):(e+="&sort=postdate",e+="&order=desc"),this.level.keyword&&(e+="&keyword="+this.level.keyword),this.$axios.get(e).then(t=>{if(this.level.items=[],this.level.items_length=0,200===t.status){const{records:e,rows:s}=t.data;this.level.items_length=e;for(let t=0,a=s.length;t{console.error(t)}).finally(()=>{this.apiDelay=!1})}},beforeDestroy(){this.allBusDestroy(),window.onresize=null}},Tn=Bn,En=(s("53d9"),Object(u["a"])(Tn,Vo,Qo,!1,null,null,null)),In=En.exports,zn=function(){var t=this,e=t._self._c;return e("div",[e(U["a"],{staticClass:"white h-100",attrs:{id:"comment_root",justify:"center"}},[e(j["a"],{staticClass:"py-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("preFont"),e("div",{staticClass:"d-flex align-center"},[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("메시지 내역")])]),e("h3",{staticClass:"d-inline-block grey--text pl-3 align-self-end"},[e("small",[t._v(t._s(t.sub_title[t.tab]))])])]),e("div",[e(J["a"],{staticClass:"elevation-0",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"]),e(W["a"],{attrs:{ripple:!1,href:"#tab-0"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v("메시지 내역")])]),t.$uclass>21?e(W["a"],{attrs:{ripple:!1,href:"#tab-1"},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v("메시지 충전")])]):t._e(),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s,a){return e(Y["a"],{key:`tab-${s}-${a}`,attrs:{value:"tab-"+a,transition:!1,"reverse-transition":!1}},[0===a?e("comment-list",{attrs:{id:"tab-"+a,loading_value:t.loading_value},on:{changeLoadingValue:t.changeLoadingValue}}):1===a?e("message-charge",{attrs:{id:"tab-"+a}}):t._e(),e("pre-cautions",{attrs:{type:s,data:t.$data}})],1)})),1)],1)],1)],1)],1)],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e("Dialogs")],1)},On=[],Nn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"d-flex my-2 justify-space-between align-center"},[e("div",{staticClass:"d-flex"},[e(F["a"],{staticClass:"c-class-overflow-btn",attrs:{items:t.classlist,id:"option_select_1",label:"클래스","append-icon":"mdi-chevron-down",dense:"",solo:"",rounded:"","single-line":"",flat:"","hide-details":"","x-small":"",color:"info","persistent-placeholder":!0},on:{change:t.classChange}}),e(X["a"],{staticClass:"c-search-input ml-3",attrs:{"append-icon":"mdi-magnify",id:"search",placeholder:"이름 검색",dense:"",solo:"",rounded:"",flat:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},on:{keydown:t.searchKeyword,"click:append":function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.searchKeyword()}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),e("div",{staticClass:"d-flex gap-1 align-center"},[e(ot["a"],{ref:"sd_dialog",staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.s_date,transition:!1,width:"290px"},on:{"update:returnValue":function(e){t.s_date=e},"update:return-value":function(e){t.s_date=e}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"c-date-picker",attrs:{"hide-details":"",solo:"",outlined:"",readonly:"",flat:"","single-line":""},model:{value:t.sDateFormatted,callback:function(e){t.sDateFormatted=e},expression:"sDateFormatted"}},s))]}}]),model:{value:t.sd_menu,callback:function(e){t.sd_menu=e},expression:"sd_menu"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,max:t.$dayjs().format("YYYY-MM-DD")},on:{change:function(e){return t.$refs.sd_dialog.save(t.s_date)}},model:{value:t.s_date,callback:function(e){t.s_date=e},expression:"s_date"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.sd_menu=!1}}},[e("b",[t._v("취소")])])],1)],1),e("b",{staticClass:"grey--text"},[t._v(" ~ ")]),e(ot["a"],{ref:"ed_dialog",staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.e_date,transition:!1,width:"290px"},on:{"update:returnValue":function(e){t.e_date=e},"update:return-value":function(e){t.e_date=e}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"c-date-picker",attrs:{"hide-details":"",solo:"",outlined:"",readonly:"",flat:"","single-line":""},model:{value:t.eDateFormatted,callback:function(e){t.eDateFormatted=e},expression:"eDateFormatted"}},s))]}}]),model:{value:t.ed_menu,callback:function(e){t.ed_menu=e},expression:"ed_menu"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,max:t.$dayjs().format("YYYY-MM-DD")},on:{change:function(e){return t.$refs.ed_dialog.save(t.e_date)}},model:{value:t.e_date,callback:function(e){t.e_date=e},expression:"e_date"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.ed_menu=!1}}},[e("b",[t._v("취소")])])],1)],1),e(te["a"],{staticClass:"default-style",attrs:{mandatory:""},model:{value:t.toggle_exclusive,callback:function(e){t.toggle_exclusive=e},expression:"toggle_exclusive"}},[e(L["a"],{attrs:{"active-class":"success"}},[t._v(" 지난달 ")]),e(L["a"],{attrs:{"active-class":"success"}},[t._v(" 이번달 ")]),e(L["a"],{attrs:{"active-class":"success"}},[t._v(" 일주일 ")])],1)],1)]),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{staticClass:"w-100 half-padding fixed-table",attrs:{headers:t.headers,items:t.items,expanded:t.expanded,"item-key":t.item_key,"expand-icon":"mdi-menu-down","no-data-text":"메시지 내역이 없습니다.","no-results-text":"일치하는 메시지 내역이 없습니다.","header-props":{sortIcon:null},"footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-footer":!1,options:t.options,"server-items-length":t.items_length,page:t.page,"items-per-page":t.items_per_page,"sort-by":t.sortby,"sort-desc":t.sortdesc},on:{"update:expanded":function(e){t.expanded=e},"update:options":function(e){t.options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e}},scopedSlots:t._u([{key:"footer",fn:function(){return[e("DataTableItemsPerPage",{attrs:{options:t.options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]},proxy:!0},{key:"item",fn:function({index:s,item:a,headers:i}){return[e("tr",t._l(i,(function(i,o){return e("td",{key:`td-${s}-${o}`,class:["text-"+i.align,"view"==i.value?"except-ellipsis":""]},["studytype"==i.value?[a.studytype?e("span",{staticClass:"text-usn",class:a.studytype.color+"--text"},[t._v("\n "+t._s(a.studytype.text)+"\n ")]):t._e()]:"comment"==i.value?[e("span",{staticClass:"text-usn cursor comment info--text",on:{click:function(e){return t.openReportMessageDialog(a)}}},[t._v("\n "+t._s(a.comment)+"\n ")])]:"view"==i.value?[e("span",{staticClass:"text-usn"},[e(L["a"],{staticStyle:{height:"2.358rem !important"},attrs:{size:"sm",color:"success",depressed:""},on:{click:function(e){return t.openReportMessageDialog(a)}}},[t._v("\n 조회\n ")])],1)]:"bookname"==i.value?[e("span",{staticClass:"text-usn",staticStyle:{"white-space":"normal"}},[50===+a.booktype?[t._v("\n 내공백서 스토리북 Lv. "+t._s(a.level)+"\n ")]:[t._v("\n "+t._s(a[i.value])+"\n ")]],2)]:"unitname"==i.value?[50===+a.booktype?[t._v("\n "+t._s(t.setStoryBookUnitName(a.unitname,a.bookname))+"\n ")]:[t._v("\n "+t._s(a[i.value])+"\n ")]]:[t._v("\n "+t._s(a[i.value])+"\n ")]],2)})),0)]}}],null,!0)})],1),e("report-message-dialog",{ref:"report-message-dialog"})],1)},Ln=[],Mn={components:{ReportMessageDialog:gt},props:["loading_value"],data(){return{user:this.$storage.get("user"),classlist:[{text:"전체",value:-1}],headers:[{text:"No.",value:"no",align:"center",sortable:!1,width:"3.66%"},{text:"클래스",value:"classname",align:"left",sortable:!1,width:"8.094%"},{text:"이름",value:"name",align:"left",sortable:!1,width:"7.066%"},{text:"구분",value:"studytype",align:"left",sortable:!1,width:"6.46%"},{text:"교재명",value:"bookname",align:"left",sortable:!1,width:"17.73%"},{text:"차시",value:"unitname",align:"left",sortable:!1,width:"16.75%"},{text:"코멘트",value:"comment",align:"left",sortable:!1},{text:"발송일자",value:"postdate",align:"left",sortable:!1,width:"12.5%"},{text:"조회",value:"view",align:"center",sortable:!1,width:"6.86%",cellClass:"except-ellipsis"}],items:[],expanded:[],options:{},item_key:"rid",items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0,last_sortby:void 0,last_sortdesc:void 0,select_class:"",keyword:"",toggle_exclusive:null,sd_menu:!1,ed_menu:!1,s_date:"",e_date:""}},created(){this.toggle_exclusive=1,this.items_per_page=this.getPageListNumberOfStorage(this.$route.path)},mounted(){this.getClassRoom()},watch:{toggle_exclusive(t){const e=this.$dayjs();let s="",a=e;if(0===t){const t=e.set("month",e.month()-1);s=t.startOf("month"),a=t.endOf("month")}else 1===t?s=e.startOf("month"):2===t&&(s=e.subtract(7,"days"));this.s_date=s.format("YYYY-MM-DD"),this.e_date=a.format("YYYY-MM-DD")},s_date(){this.getCommentList()},e_date(){this.getCommentList()},options:{handler(){this.getCommentList()},deep:!0},items_per_page(t){this.updatePageListNumberOfStorage(this.$route.path,null,this.items_per_page)}},computed:{sDateFormatted(){return this.formatDate(this.s_date)},eDateFormatted(){return this.formatDate(this.e_date)}},methods:{setStoryBookUnitName:dt["d"],getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],formatDate(t){if(!t)return null;let[e,s,a]=t.split("-");return`${e}-${s}-${a}`},classChange(t){this.page=1,this.select_class=t>-1?t:"",this.getCommentList()},searchKeyword(t){13!=t.keyCode&&"click"!=t.type||(this.page=1,this.getCommentList())},getClassRoom(){const t={by:"name"};+this.user.uclass{if(200==t.status){let e=Object.values(t.data);for(let t=0,s=e.length;t{console.log(t)})},getCommentList(){if(!this.loading_value){this.$emit("changeLoadingValue",!0);const t=(this.options.page-1)*this.options.itemsPerPage,e=this.options.itemsPerPage,s={sd:this.s_date,ed:this.e_date};""!=this.select_class&&(s.class_id=this.select_class),""!=this.keyword&&(s.keyword=this.keyword),+this.user.uclass{if(200===t.status){const e=t.data.rows;this.items_length=+t.data.records,this.items=[];for(let t=0,s=e.length;t{this.$emit("changeLoadingValue",!1)},500)}).catch(t=>{console.log(t),this.items_length=0,this.items=[],this.$emit("changeLoadingValue",!1)})}},openReportMessageDialog(t){this.$refs["report-message-dialog"].open("resend",t)}}},jn=Mn,Rn=(s("2273"),Object(u["a"])(jn,Nn,Ln,!1,null,null,null)),qn=Rn.exports,Fn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-2"},[e("div",{attrs:{id:"message-charge-root"}},[e("div",{staticClass:"h-15"},[e("div",[t._v("상품 선택")]),e("div",{staticClass:"d-flex flex-column"},[e(lt["a"],{staticClass:"select-product-radio-group",attrs:{"hide-details":""},model:{value:t.product,callback:function(e){t.product=e},expression:"product"}},t._l(2,(function(s){return e(nt["a"],{key:s,attrs:{label:"Radio "+s,value:s},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticClass:"select-product-label"},[1==s?[e("b",[t._v("메시지 5,000건")]),e("br"),e("span",[t._v("\n (카카오톡 알림톡 건당 10원,\n "),e("span",{staticClass:"black--text"},[t._v("₩ 50,000원")]),t._v(")\n ")])]:2==s?[e("b",[t._v("메시지 11,000건")]),e("br"),e("span",[t._v("\n (카카오톡 알림톡 건당 10원\n "),e("span",{staticClass:"red--text"},[t._v("+ 1,000건 추가 적립")]),t._v(",\n "),e("span",{staticClass:"black--text"},[t._v("₩ 100,000원")]),t._v(")\n ")])]:t._e()],2)]},proxy:!0}],null,!0)})})),1)],1)]),e("div",[e("div",[t._v("사용 약관")]),e("div",{staticClass:"d-flex align-center justify-space-between terms-agree-wrap"},[e("span",[t._v("\n 내공스터디 사용약관 정책 ["),e("a",{staticClass:"terms-view",on:{click:function(e){t.terms_dialog=!0}}},[t._v("보기")]),t._v("]\n ")]),e("div",{staticClass:"d-flex align-center"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.product&&!t.checkbox,expression:"product && !checkbox"}],staticClass:"terms-agree-ment"},[t._v("\n 약관에 동의해주세요.\n ")]),e(ce["a"],{staticClass:"terms-agree-checkbox",attrs:{label:"약관 동의","hide-details":""},model:{value:t.checkbox,callback:function(e){t.checkbox=e},expression:"checkbox"}})],1)])]),e("div",[e("div",[t._v("최종 금액")]),e("div",{staticClass:"d-flex align-center"},[e("div",{staticClass:"d-flex align-center amount-wrap"},[e("span",{staticClass:"final-amount"},[t._v("\n "+t._s(t.final_amount.toLocaleString())+"원\n ")]),e("div",{staticClass:"division"}),e("span",{staticClass:"remain-message"},[t._v("\n 남은 메시지 수\n "+t._s(t.getRemainMessageCount)+"건\n ")])])])]),e("div",{staticClass:"d-flex justify-center"},[e(L["a"],{staticClass:"charge-submit-btn",attrs:{color:"success",depressed:"",disabled:!t.product||!t.checkbox},on:{click:function(e){t.info_dialog=!0}}},[t._v("\n 신청\n ")])],1)]),e(ot["a"],{attrs:{"content-class":"message-info-dialog",transition:!1},model:{value:t.info_dialog,callback:function(e){t.info_dialog=e},expression:"info_dialog"}},[e(it["a"],[e(M["b"],[e("div",[e("div",[t._v("계좌번호")]),e("div",[t._v("우리은행 1005-804-265162")])]),e("div",[e("div",[t._v("예금주명")]),e("div",[t._v("내공스터디")])]),e("div",[e("div",[t._v("신청금액")]),e("div",[t._v(t._s(t.final_amount.toLocaleString())+"원")])])]),e(M["a"],[e(L["a"],{attrs:{color:"success",block:"",depressed:""},on:{click:t.submitCharge}},[t._v("\n 메시지 충전신청\n ")])],1)],1)],1),e(ot["a"],{attrs:{"content-class":"message-term-dialog",transition:!1,width:"37rem"},model:{value:t.terms_dialog,callback:function(e){t.terms_dialog=e},expression:"terms_dialog"}},[e(it["a"],[e(M["c"],[e("span",[t._v(" 내공스터디 사용약관 정책 ")]),e("div",{staticClass:"d-flex align-center justify-center",on:{click:function(e){t.terms_dialog=!1}}},[e("svg",{attrs:{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z"}})])])]),e(M["b"],{staticClass:"term-modal-text",staticStyle:{color:"black","font-size":"1rem",width:"37rem",height:"45rem","overflow-y":"auto","white-space":"pre-wrap"}},[e("span",[t._v(t._s("제1조 (목적)\n\n본 약관은 내공스터디(회사)이 제공하는 지불/결제 수단 (이하 '내공캐쉬'라 함)을 사용함에 있어 회사와 회원 간에 내공캐쉬에대한 충전 이용에 관해서 상호 간 준수해야 할 사항을 규정함을 목적으로 합니다.\n\n제2조(용어의 정의)\n\n①'회원'이라 함은 본 약관에 동의하고 회사가 제공하는 내공캐쉬를 이용하는 고객을 말합니다.\n② 내공캐쉬: 내공캐쉬는 내공스터디 서비스 (컨텐츠 및 전자상거래)를 이용할 수 있는 인터넷상의 현금등가의 결제수단을 의미합니다.\n③ 충전: 내공캐쉬 일정액을 확보하기 위해 특정 지불수단을 이용하여 현금을 회사에 지불하고, 그 현금의 대가로 내공캐쉬가 적립됩니다. 결제수단을 이용해 내공캐쉬로 충전 시에는 현금\n10원당 내공캐쉬 10원으로 충전됩니다.\n④ 사용내역취소 (증액): 충전한 내공캐쉬로 유료서비스를 이용하는 중 장애나 기타 사유로 인해 정상적으로 서비스를 이용하지 못했을 경우, 장애신고를 통해 사용된 내공캐쉬를 결제하기 이전 상태로 다시\n되돌려 받는 것을 말합니다.\n⑤ 환불: 회사가제공하는 결제수단을 통하여 충전한 내공캐쉬를 현금으로 되돌려 받는 방법으로 결제가 이루어지지 않도록 하는 것을 말합니다. 위에서 정의한 용어 이외의 사항은 관계 법령 및 상관례에서 \n정하는 바에 따릅니다. \n\n제3조 (내공캐쉬의 사용) \n\n① 내공캐쉬는 내부 서비스나 컨텐츠, 제품을 이용 또는 구매하는 결제수단으로 이용되며, 내공캐쉬 충전/사용은 내공스터디ID가 있어야 가능합니다. \n② 내공캐쉬 사용 시 확인되지 않은 회원의 경우는 서비스 이용에 제한을 받으실 수 있습니다. \n③ 결제정보를 입력한 후에는회사가 회원의 이용 편의성과 결제수단의 본인확인 및 회원에 대한 청구로 인하여 회원의 결제정보를 보관하여도 무방한 것으로 간주하며, 이 때 회사는 회원의 정보에 대한 내용을 \n암호화하여 보관해야하며 본인의 동의없이 외부유출이 불가능합니다. \n④ 회사는 회원이 제1항에 따라 내공캐쉬를 충전하거나 사용한 경우 회원이 내공캐쉬 잔액을 확인할 수 있도록 하며, 회원은 내공캐쉬를 충전하거나 사용한 경우 즉시 내공캐쉬 잔액을 확인하고 이상이 있는\n경우에는 회사에 해당 사실을 통지하여야 합니다. 이 경우 회사는 해당 회원의 내공캐쉬 충전 또는 사용 내역을 확인하여 필요한 조치를 취합니다. \n⑤ 내공캐쉬를 이용할 수 있는 인터넷 서비스와 내공캐쉬를 사용하여 결제할 수 있는 유료 서비스는 회사에서정한 바에 따르며 회사의 정책에 따라 추가, 변경, 삭제될 수 있습니다. 제4조 (내공캐쉬의 차감)\n충전한 내공캐쉬에 대한 차감은 회사가 제공하는 유료서비스(컨텐츠, 제품, 문자)를 이용하는 시점에서 즉시 이루어집니다.\n\n제4조 (내공캐쉬의 차감)\n\n충전한 내공캐쉬에 대한 차감은 회사가 제공하는 유료서비스(컨텐츠, 제품, 문자)를 이용하는 시점에서 즉시 이루어집니다.\n\n제5조 (내공캐쉬의 사용제한)\n\n① 회원은 다음 각호에 해당하는 행위를 하여서는 아니되며, 이를 위반할 경우 회사는 당해 회원에 대하여 내공캐쉬 이용을 정지시킬 수 있습니다. \n 1. 타인의 ID 및 비밀번호를 부정하게 사용하는 경우 \n 2. 타인의 명의나 개인정보를 도용하여 서비스를 이용하는 경우 \n 3. 타인의 결제정보 등을 도용하거나 부정한 행위로 거래를 하는 경우\n 4. 회원의 내공캐쉬를 허용하지 아니한 곳에서 양도하는 경우 \n 5. 다른 회원의 내공캐쉬 사용을 저해하거나, 내공캐쉬 서비스 제공에 지장을 \n 초래하는 경우 \n 6. 본 약관에 위반하는 방법으로 내공캐쉬 서비스를 이용하는 경우 \n 7. 내공캐쉬가 사용되는 회사의 인터넷 서비스 이용약관에 위반하여 서비스를 \n 이용하는 경우 \n 8. 기타 법령에 위배되는 행위를 하는 경우 \n② 회사는내공캐쉬 이용을 제한할 경우 이용 제한 내용과 소명 절차를 회원이 지정한 전자우편, SMS 등으로 통지하여 회원이 소명할 수 있는 기회를 부여합니다. \n③ 내공캐쉬 잔액을 장기간 사용하지 않을 시 회사는회원의 보호차원에서 사용 중지를 할 수 있습니다. 회사에서는 사용 중지된 내공캐쉬를 회원이 언제든 사용을 원할 시, 회원 본인인증을 통하여 사용 가능토록 \n합니다. \n\n제6조 (내공캐쉬의 충전 방법) \n\n① 내공캐쉬 충전은 회사가 지정하는 결제수단을 통해 충전할 수 있으며 1회 충전당 최저 100,000원 또는 200,000원까지 충전할 수 있습니다. \n② 회사가 제공하는 시스템상의 장애에 의하여 충전이 정상적으로 이루어지지 못한 경우에 내공캐쉬로 재충전 받을 수 있습니다. \n\n제7조 (내공캐쉬의 충전 종류)\n\n① 내공캐쉬의 충전을 위해 다음과 같은 결제수단 및 방법이 제공됩니다. \n - 무통장 입금 : 충전할 금액을 선택하신 후 회사의 전용계좌로 입금하여 충전합니다. \n② 회사가 제공하는 결제수단은 회사의 운영방침에 따라 이용이 제한될 수 있습니다. \n\n제8조 (내공캐쉬 사용내역 취소 등) \n\n① 회원이 내공캐쉬를 사용해 캐쉬가 차감처리 된 이후에는 내공캐쉬의 사용 취소를 할 수\n없습니다. \n② 충전한 내공캐쉬로 서비스를 이용하는 중 장애나 기타 사유로 인해 정상적으로 서비스를 이용하지 못했을 경우 이미 차감된 내공캐쉬의 반환을 요청할 수 있습니다. \n③ 위 규정에도 불구하고, 서비스를 이용한 날로부터 \"10일\"이 경과한 후에는 사용내역 취소가 불가능합니다 (단, 내공스터디 관리자 페이지에서 내공캐쉬를 이용한 경우 전자상거래표준약관을 따릅니다.) \n\n제9조 (내공캐쉬의 환불) \n① 충전된 내공캐쉬는 잔액 (최초 유료구매 하신 문자 건수 - 사용 문자 건 차감)의 30% 환불 가능합니다. 이때 잔액이 1,000원이하의 경우에는 환불하지 않습니다. (이는 송금수수료 등 제반수수료 및 환불업무에\n투여되는 제반 업무비용이 최소 1,000원 이상이기 때문입니다) 다만, 충전 누계 금액의 80% 이상을 사용한 내공캐쉬의 잔액 환불을 요구받는 경우, 잔액의 전액 환불 가능합니다. \n② 회사가 제공한 결제수단을 이용하여 비용을 지불하고 내공캐쉬를 구입한 후 유료 서비스 또는 상품을 \"전혀 사용하지 않은 경우\" 구입일로부터 7일 이내에는 환불수수료 없이 환불 또는 결제 취소할 수 있습니다. \n③ 위의 ②항에도 불구하고 충전에 해당되는 결제수단으로 결제금액을 재환원하는 것으로 환불을 대신하는 경우, 위약금을 징수하지 않습니다. \n④ 다음 각 호의 경우 회사가 정한 절차에 따라 환불받을 수 있습니다.\n 1. 내공캐쉬를 충전했으나 내공캐쉬를 사용할 수 있는 서비스가 없어 그에 대한 책임이 전적 \n 으로 회사에 있는 경우 (단, 시스템의 정기점검 등 불가피한 경우는 제외) \n 2. 내공캐쉬 잔액이 있는 상태에서 회원이 변경된 약관에 동의하지 않는다는 이유로 탈퇴하고 \n 회사가 이를 정당하다고 판단하는 경우 \n 3. 기타 회원의 권리보호를 위하여 회사가 별도로 규정한 경우 \n⑤ 전항들의 규정에도 불구하고, 다음 각 호에 해당하는 내공캐쉬는 환불이 불가능합니다. \n 1. 타인으로부터 양도받은 내공캐쉬 \n 2. 정상적이지 않은 방법으로 충전한 내공캐쉬 \n \n제10조 (내공캐쉬의 양도)\n\n① 내공캐쉬는 원칙적으로 다른 회원에게 양도할 수 없습니다. 단, 양도할 만한 사정이 있음을 회원이 증명하고 정상적인 경우라고 인정되는 경우 회사는 양도하는 회원이 보유한 내공캐쉬 한도 내에서 양도를\n승낙할 수 있습니다 (단, 이 경우에도 제9조 제5항에 해당하는 캐쉬의 경우에는 양도되지 않습니다.) \n② 전항에 의하여 내공캐쉬를 양도하는 경우 회사는 이에 대한 책임을 지지 않습니다. \n③ 회원이 사망한 경우 사망한 회원의 내공캐쉬는 민법의 상속 일반규정에 따라 내공캐쉬의 형태로 양도되며, 양도받는 회원은 이와 관련된 사항을 증명해야 합니다. (단, 이 경우에도 제9조 제5항에 해당하는 \n캐쉬의 경우에는 양도되지 않습니다.)\n④ 내공캐쉬의 양도는 회사 고객센터 문의 또는 온라인 상담을 통해 신청합니다. \n\n제11조 (내공캐쉬의 소멸) \n① 내공캐쉬의 유효기간은 5만원권 12개월, 10만원권 18개월이며, 유효기간이 경과하는 동안 내공캐쉬를 단 한번도 적립하거나 사용하지 않은 경우 자동 소멸됩니다. 단, 유효기간 중 내공캐쉬의\n추가적인 적립 또는 사용이 있는 경우 다시 해당 일자를 기준으로 5만원권 12개월, 10만원권 18개월간 유효하게 됩니다. \n② 상기 1항에 의거 마지막으로 이용한 날로부터 내공캐쉬별 유효기간 경과 후 소멸된 내공캐쉬는 환불하지 않습니다.\n\n제12조 (손해배상) \n① 회사는 회사의 중대한 과실로 인하여 충전한 내공캐쉬가 소멸되는 등 회원이 서비스 이용 시 손해를 입는 경우 내공캐쉬 재충전 등 그에 상응하는 적절한 보상을 제공합니다. \n② 회사는 회원의 귀책사유나 ①항의 내용 외 발생하는 회원의 손실에 대해서는 일체 책임을 지지 않습니다. \n\n제13조 (면책조항) \n① 회사는 천재지변 또는 이에 준하는 불가항력으로 인하여 서비스를 제공할 수 없는 경우에는 서비스 제공에 관한 책임이 면제됩니다. \n② 회사는 회원의 귀책사유로 인한 서비스 이용의 장애에 대하여 책임을 지지 않습니다. \n③ 회사는 회원이 서비스를 이용하여 기대하는 수익을 상실한 것에 대하여 책임지지 않으며 그 밖의 서비스를 통하여 얻은 자료로 인한 손해에 관하여 책임을 지지 않습니다. \n④ 회사는 회원이 서비스에 게재한 정보, 자료, 사실의 신뢰도, 정확성의 내용에 관하여는 책임을 지지 않습니다. \n\n제14조 (재판권 및 준거법) \n① 이 약관에 명시되지 않은 사항이 관계법령에 규정되어 있을 경우에는 해당규정에 따릅니다. \n② 요금 등 서비스 이용으로 발생한 분쟁에 대해 소송이 제기될 경우 회사의 본사 소재지를 관할하는 법원을 전속 관할법원으로 합니다."))])])],1)],1)],1)},Un=[],Hn={data(){return{user:this.$storage.get("user"),product:null,checkbox:!1,final_amount:0,info_dialog:!1,terms_dialog:!1}},watch:{product(t){1===t?this.final_amount=5e4:2===t&&(this.final_amount=1e5)}},mounted(){},methods:{submitCharge(){this.$axios.post(`${this.$host}/academy/${this.$cid}/requestchargemessage`,{product:this.product}).then(t=>{this.info_dialog=!1,this.openAlert(200===t.status&&t.data?"send_charge_info":"error")}).catch(t=>{console.log(t),this.info_dialog=!1,this.showDialog("error","black")})}}},Gn=Hn,Wn=(s("1631"),Object(u["a"])(Gn,Fn,Un,!1,null,null,null)),Yn=Wn.exports,Jn={name:"comment",components:{Dialogs:st["a"],preFont:et["a"],LoadingDialog:bt["a"],preCautions:at["a"],CommentList:qn,MessageCharge:Yn},data(){return{user:this.$storage.get("user"),tab:null,tabs:2,sub_title:{"tab-0":"공지사항 및 학습 레포트를 알림톡으로 발송합니다.","tab-1":"학습 레포트를 발송할 메시지를 충전합니다."},send_method:!1,loading_value:!1,loading_message:"잠시만 기다려주세요.",parentPhone:{check:!1,list:[]}}},watch:{},created(){1!==this.$route.params.tab&&1!==+this.$route.query.tab||(this.tab="tab-1"),this.send_method=1===+this.user.auto_send},mounted(){},methods:{changeLoadingValue(t){this.loading_value=t},async checkSendMethod(t){if(t)if(this.parentPhone.check)this.parentPhone.list.length>0?(this.openAlert("fail_all_parent_phone"),setTimeout(()=>{this.send_method=!1},2e3)):this.changeSendMethod(!0);else{const t=await this.checkForAllParentsPhone();200===t.status&&(this.parentPhone.check=!0,t.data.rows.length>0?(this.parentPhone.list=t.data.rows,this.openAlert("fail_all_parent_phone"),setTimeout(()=>{this.send_method=!1},2e3)):this.changeSendMethod(!0))}else this.changeSendMethod(!1)},changeSendMethod(t){this.$axios.post(`${this.$host}/academy/${this.$cid}/updateinfo`,{auto_send:t?"on":"off"}).then(()=>{this.updateUser({auto_send:t?1:0})}).catch(t=>{console.log(t)})},checkForAllParentsPhone(){return new Promise((t,e)=>{this.$axios.get(`${this.$host}/academy/${this.$cid}/checkforallparentsphone`).then(e=>{t(e)}).catch(t=>{e(t)})})}}},Vn=Jn,Qn=(s("f8b4"),Object(u["a"])(Vn,zn,On,!1,null,null,null)),Xn=Qn.exports,Kn=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"h-100",attrs:{id:"individualtotalvue",justify:"center",align:"stretch"}},[e(j["a"],{staticClass:"pa-0 pr-1 height-inherit printnone",class:"list"==t.mode?"":"d-none",attrs:{cols:"12",xs:"12",sm:"3",md:"3",lg:"3"}},[e("preFont"),e("div",{class:["bg-white",t.select_class_status?"mb-1 height-calc-schedule-top add-btn":"h-100"]},[e("select-header",{ref:"subheader",attrs:{data:t.$data}}),e(U["a"],{staticClass:"w-100 mgauto over-y-scroll",staticStyle:{height:"calc(100% - 3rem)"}},[e(j["a"],{directives:[{name:"show",rawName:"v-show",value:!t.select_class_status&&!t.search_students,expression:"!select_class_status && !search_students"}],staticClass:"text-center"},[e("span",{staticClass:"grey--text"},[t._v("\n "+t._s(t.isNameSearch?"학생 이름을 검색하세요.":"클래스를 선택하세요.")+"\n ")])]),e(j["a"],{directives:[{name:"show",rawName:"v-show",value:t.select_class_status||t.search_students,expression:"select_class_status || search_students"}],staticClass:"pa-0",attrs:{cols:"12"}},["string"==typeof t.class_students?e(Ss["a"],{staticClass:"py-0",attrs:{dense:"",disabled:!0}},[e(Ds["a"],[e($s["a"],{staticClass:"border-ede thin-b",staticStyle:{height:"45px"},attrs:{"active-class":"info--text"}},[e("div",{staticClass:"grey--text text-center w-100 fs-1rem"},[t._v("\n "+t._s(t.class_students)+"\n ")])])],1)],1):e(Ss["a"],{staticClass:"py-0",attrs:{dense:""}},[e(Ds["a"],{attrs:{mandatory:t.listMandatory},model:{value:t.class_students_settings,callback:function(e){t.class_students_settings=e},expression:"class_students_settings"}},[t.class_students.length>0||t.search_students?t._l(t.search_students&&t.isNameSearch?t.search_students:t.class_students,(function(s,a){return e($s["a"],{key:"class_students_key_"+a,staticStyle:{"border-bottom":"1px solid lightgray"},attrs:{"active-class":"info--text"},on:{click:function(e){return t.clickStudent(s)}},scopedSlots:t._u([{key:"default",fn:function({active:a}){return[e(Ia["a"],[e(q["a"],[t._v("mdi-menu-right")])],1),e(As["a"],[e(As["b"],[e("span",{staticClass:"fs-1rem",domProps:{innerHTML:t._s(s.color_text||s.text)}}),t.isNameSearch&&t.search_students?e("span",{staticClass:"fs-1rem"},[t._v("\n "+t._s(`(${s.class_name})`)+"\n ")]):t._e()])],1)]}}],null,!0)})})):[e($s["a"],{staticStyle:{"border-bottom":"unset !important"},scopedSlots:t._u([{key:"default",fn:function({active:s}){return[e(As["a"],{staticClass:"text-center"},[e(As["b"],{staticClass:"fs-1rem grey--text"},[t._v("\n 검색 결과가 존재하지 않습니다.\n ")])],1)]}}],null,!0)})]],2)],1)],1)],1)],1),t.select_class_status?e(U["a"],{staticClass:"bg-white text-center w-100",staticStyle:{height:"calc(7vh - 4px)",margin:"0 auto"}},[e(j["a"],{staticClass:"pa-0",attrs:{"align-self":"center"}},[e("b",{staticClass:"mr-2 fw-600"},[t._v("수업 요일")]),e("span",[t._v(t._s(t.class_item_lesson_day))])])],1):t._e(),t.select_class_status?e(U["a"],{staticClass:"bg-white text-center w-100 mt-1",staticStyle:{height:"calc(7vh - 4px)",margin:"0 auto"}},[e(j["a"],{staticClass:"pa-0 h-100",attrs:{"align-self":"center"}},[e(L["a"],{staticClass:"w-100 fs-1rem",staticStyle:{height:"100% !important","border-radius":"0"},attrs:{color:"success",disabled:!(t.class_students.length>0&&"학생을 배정해주세요."!=t.class_students)},on:{click:t.classStudyProgress}},[t._v("\n 클래스 진도율 확인\n ")])],1)],1):t._e()],1),e(j["a"],{staticClass:"pa-2 height-inherit white over-y-scroll printnone",class:"list"==t.mode?"":"d-none",attrs:{cols:"12",xs:"12",sm:"9",md:"9",lg:"9"}},[e(J["a"],{staticClass:"elevation-0 h-100",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(Q["a"],{staticClass:"printnone"}),t._l(t.tabs,(function(s){return e(W["a"],{key:s,staticClass:"printnone",attrs:{href:"#tab-"+s,ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[1==s?e("span",[t._v("종합 분석")]):2==s?e("span",[t._v("교재 조회")]):3==s?e("span",[t._v("학습 일지")]):t._e()])})),e(V["a"],{staticClass:"individual-screen-90",staticStyle:{height:"calc(100% - 29px)","overflow-y":"scroll"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:"tabs-"+s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s&&""!=t.select_student?e("div",{staticClass:"scalearea bg-print pos-rel h-100 mb-6",attrs:{id:"tmp-tab-1"}},[e(U["a"],{staticClass:"w-100 mgauto print-top mb-2"},[e(j["a"],{attrs:{cols:"6",sm:"6",md:"6"}},[e(G["a"],{staticClass:"infotable h-100",staticStyle:{"border-bottom":"unset"},scopedSlots:t._u([{key:"default",fn:function(){return[e("tbody",{staticClass:"h-100"},[e("tr",[e("td",{staticClass:"fw-700 text-usn"},[t._v("클래스")]),e("td",{staticClass:"text-usn"},[t._v("\n "+t._s(t.select_student.class_name)+"\n ")])]),e("tr",[e("td",{staticClass:"fw-700 text-usn"},[t._v("이름")]),e("td",{staticClass:"text-usn"},[t._v(t._s(t.select_student.text))])]),e("tr",[e("td",{staticClass:"fw-700 text-usn"},[t._v("시작일")]),e("td",{staticClass:"text-usn"},[t._v("\n "+t._s(t.select_student.postdate.split(" ")[0]+" ~ ")+"\n ")])]),e("tr",[e("td",{staticClass:"fw-700 text-usn"},[t._v("종합 점수")]),e("td",{staticClass:"text-usn"},[t._v("\n "+t._s(t.select_student.totavg?parseFloat(t.select_student.totavg).toFixed(2):0)+"점\n ")])]),e("tr",[e("td",{staticClass:"fw-700 text-usn"},[t._v("학습 교재")]),e("td",{staticClass:"text-usn"},[t._v(t._s(t.endbookcnt)+"권 완료")])])])]},proxy:!0}],null,!0)})],1),e(j["a"],{staticClass:"pl-0",attrs:{cols:"6",sm:"6",md:"6"}},[e("div",{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.radarResize,expression:"radarResize"}],staticStyle:{border:"thin solid #edeeef","border-radius":"4px",height:"15.5vw","min-height":"202px","max-height":"302px"}},[e("v-chart",{attrs:{options:t.radar,initOptions:t.radar,autoresize:!0}})],1)])],1),e("section",{staticClass:"w-100",staticStyle:{margin:"12px 0 24px 0",height:"20%","max-height":"160px","min-height":"120px"},attrs:{id:"period_report_circle_section"}},[e("div",{staticClass:"pt-0 px-3 py-0 tmp h-100"},[e(U["a"],{key:t.circle_row,staticClass:"w-100 h-100 mgauto",staticStyle:{border:"thin solid #edeeef","border-radius":"4px"},attrs:{id:"period-circle-row"}},[e("div",{staticClass:"float-left text-center period-circle-col",staticStyle:{width:"20%",height:"100%",padding:"1.5% 0 1.5% 12px"},attrs:{id:"period-circle-col"}},[t.circle_size>0&&t.circle_width>0?e(Ps["a"],{style:`font-size:${t.circle_font}px; font-weight:500;`,attrs:{rotate:"0",size:t.circle_size,value:t.circle_totavg,width:t.circle_width,color:"success"}},[e("span",{staticClass:"black--text fs-1rem"},[t._v("\n "+t._s(t.circle_totavg)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("점")])])]):t._e(),e("br"),e("div",{staticClass:"fs-1rem",staticStyle:{"margin-top":"2.5%"}},[t._v("\n 종합 점수\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col",staticStyle:{width:"20%",height:"100%",padding:"1.5% 0 1.5% 0"}},[t.circle_size>0&&t.circle_width>0?e(Ps["a"],{style:`font-size:${t.circle_font}px; font-weight:500;`,attrs:{rotate:"0",size:t.circle_size,value:t.circle_tqc,width:t.circle_width,color:"#97f1b8"}},[e("span",{staticClass:"black--text fs-1rem"},[t._v("\n "+t._s(t.circle_tqc)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("개")])])]):t._e(),e("br"),e("div",{staticClass:"fs-1rem",staticStyle:{"margin-top":"2.5%"}},[t._v("\n 학습 문항\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col",staticStyle:{width:"20%",height:"100%",padding:"1.5% 0 1.5% 0"}},[t.circle_size>0&&t.circle_width>0?e(Ps["a"],{style:`font-size:${t.circle_font}px; font-weight:500;`,attrs:{rotate:"0",size:t.circle_size,value:t.circle_twc,width:t.circle_width,color:"#7cece2"}},[e("span",{staticClass:"black--text fs-1rem"},[t._v("\n "+t._s(t.circle_twc)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("개")])])]):t._e(),e("br"),e("div",{staticClass:"fs-1rem",staticStyle:{"margin-top":"2.5%"}},[t._v("\n 오답 문항\n ")])],1),e("div",{staticClass:"float-left px-3 text-center period-circle-col",staticStyle:{width:"20%",height:"100%",padding:"1.5% 0 1.5% 0"}},[t.circle_size>0&&t.circle_width>0?e(Ps["a"],{style:`font-size:${t.circle_font}px; font-weight:500;`,attrs:{rotate:"0",size:t.circle_size,value:t.circle_err,width:t.circle_width,color:"#80cbec"}},[e("span",{staticClass:"black--text fs-1rem"},[t._v("\n "+t._s(t.circle_err)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("%")])])]):t._e(),e("br"),e("div",{staticClass:"fs-1rem",staticStyle:{"margin-top":"2.5%"}},[t._v("오답률")])],1),e("div",{staticClass:"float-left pl-0 pr-3 text-center period-circle-col",staticStyle:{width:"20%",height:"100%",padding:"1.5% 0 1.5% 0"}},[t.circle_size>0&&t.circle_width>0?e(Ps["a"],{style:`font-size:${t.circle_font}px; font-weight:500;`,attrs:{rotate:"0",size:t.circle_size,value:t.circle_tst,width:t.circle_width,color:"#95bbef"}},[e("span",{staticClass:"black--text fs-1rem"},[t._v("\n "+t._s(t.circle_tst)),e("span",{staticClass:"grey--text",staticStyle:{"margin-left":"2px"}},[t._v("분")])])]):t._e(),e("br"),e("div",{staticClass:"fs-1rem",staticStyle:{"margin-top":"2.5%"}},[t._v("\n 학습 시간\n ")])],1),e("div",{staticStyle:{clear:"both"}})])],1)]),e("div",{staticClass:"px-3 mb-6"},[e(U["a"],{staticClass:"w-100 mgauto mainerrorrow border-ede thin-a br-4"},[e(j["a"],{staticClass:"py-0 px-0",attrs:{cols:"12"}},[e("div",{staticClass:"pa-2",staticStyle:{background:"#f7f8f9"}},[e("b",{staticClass:"text-usn fs-1rem"},[t._v("주요 오답 문항")]),e(q["a"],{staticClass:"ml-2 success--text cursor",on:{click:function(e){t.err_info_text=!t.err_info_text}}},[t._v("\n mdi-comment-question-outline\n ")]),e("span",{directives:[{name:"show",rawName:"v-show",value:t.err_info_text,expression:"err_info_text"}],staticClass:"grey--text ml-2 fs-1rem"},[t._v("\n 영문법 컨텐츠를 제외한 단어/문장의 주요 오답문항 10개가\n 표기됩니다.\n ")])],1)]),t.wrong_sen_arr&&t.wrong_sen_arr.length>0?e(j["a"],{staticClass:"py-0 px-0",attrs:{cols:"12"}},t._l(t.wrong_sen_arr,(function(s,a){return e("div",{key:"wsa_"+a,staticClass:"px-2 py-2 fs-1rem",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[e("div",{ref:"w_sent_"+a,refInFor:!0,staticClass:"float-left",staticStyle:{width:"50%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"},on:{mouseover:function(e){return t.setPointer("w_sent_"+a)},click:function(e){return t.showDetail(a)}}},[e("b",{staticClass:"text-usn fs-1rem"},[t._v(t._s(s.sen))])]),e("div",{ref:"w_mean_"+a,refInFor:!0,staticClass:"float-left",staticStyle:{width:"50%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"},on:{mouseover:function(e){return t.setPointer("w_mean_"+a)},click:function(e){return t.showDetail(a)}}},[e("span",{staticClass:"grey--text text-usn fs-1rem"},[t._v(t._s(s.mean))])]),e("div",{staticStyle:{clear:"both"}})])})),0):e(j["a"],{staticClass:"py-0 px-0",attrs:{cols:"12"}},[e("div",{staticClass:"px-2 py-2 text-center grey--text fs-1rem",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"}},[t._v("\n 오답 문항이 없습니다.\n ")])])],1)],1),e("div",{staticStyle:{"min-height":"24px"}})],1):""!=t.select_student&&2==s?e("div",{staticClass:"mb-6",attrs:{id:"tab-2"}},[t._l(["ing","end"],(function(s,a){return[e("div",{key:"tab-2-head-"+a,staticClass:"d-flex align-center justify-space-between",attrs:{id:s+"-head-wrap"}},[e("h4",{staticClass:"mt-4 pl-2 success--text",staticStyle:{"border-left":"3px solid #1bd05b"}},[0===+a?[t._v(" 학습중인 교재 ")]:1===+a?[t._v(" 학습완료 교재 ")]:t._e()],2)]),e(R["a"],{key:"tab-2-data-table-"+a,staticClass:"mt-2",attrs:{headers:t.book_headers,items:t.$data[s+"_items"],"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:t.$data[s+"_expanded"],"item-key":"table_key","expand-icon":"mdi-menu-down","no-data-text":"학습중인 교재가 없습니다.","no-results-text":"학습중인 교재가 없습니다.","hide-default-header":"","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},options:t.$data[s+"_options"],"server-items-length":t.$data[s+"_items_length"],page:t.$data[s+"_page"],"items-per-page":t.$data[s+"_items_per_page"],"sort-by":t.$data[s+"_sortby"],"sort-desc":t.$data[s+"_sortdesc"]},on:{"update:expanded":function(e){return t.$set(t.$data,s+"_expanded",e)},"click:row":function(e){return t.toggleClassRow(e,s)},"update:options":function(e){return t.$set(t.$data,s+"_options",e)},"update:page":function(e){return t.pageUpdate(e,s)}},scopedSlots:t._u([{key:"header",fn:function({props:t,on:s}){return[e("DataTableHeader",{attrs:{defaultProps:t,on:s}})]}},{key:"footer",fn:function({options:a}){return[e("DataTableItemsPerPage",{attrs:{options:t.$data[s+"_options"],"items-per-page":t.$data[s+"_items_per_page"]},on:{"update:options":function(e){return t.$set(t.$data,s+"_options",e)},"update:itemsPerPage":function(e){return t.$set(t.$data,s+"_items_per_page",e)},"update:items-per-page":function(e){return t.$set(t.$data,s+"_items_per_page",e)},"items-per-page-changed":t.itemsPerPageChanged}})]}},{key:"item.data-table-expand",fn:function({expand:a,isExpanded:i,item:o}){return[e(q["a"],{on:{click:function(e){e.stopPropagation(),a(!i),t.toggleClassRow(o,s)}}},[t._v("\n "+t._s(i?"mdi-menu-down":"mdi-menu-right")+"\n ")])]}},{key:"item.bookname",fn:function({item:s}){return[50===+s.booktype?[t._v("\n 내공백서 스토리북 Lv. "+t._s(s.level)+"\n ")]:[t._v("\n "+t._s(s.bookname)+"\n ")],[11,43,50].includes(+s.booktype)||[1,3].includes(+s.category)&&31===+s.booktype?e("span",{staticClass:"ml-1 fw-400 custom-tag hot"},[t._v("\n HOT\n ")]):1==s.booktype_s||[1,2,3].includes(+s.category)&&0===+s.booktype?e("span",{staticClass:"ml-1 fw-300 custom-tag new"},[t._v("\n NEW\n ")]):2==s.booktype_s?e("span",{staticClass:"ml-1 fw-300 custom-tag voca"},[t._v("\n VOCA\n ")]):t._e()]}},{key:"item.rate",fn:function({item:s}){return[e("div",{staticClass:"row-progress"},[e("div",{staticClass:"progress-wrap ing",class:"ing-pw-"+s.sid},[e("b",{staticClass:"under-text",class:{"grey--text text--lighten-1":!s.rate}},[t._v("  "+t._s(s.rate)+"%  ")]),e("div",{staticClass:"progress-gauge",style:`width:${s.rate}%`},[e("b",[t._v("  "+t._s(s.rate)+"%  ")])])])])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.book_headers.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return[e("tbody",{staticClass:"expanded_table"},t._l(s.sub_unit,(function(a,i){return e("tr",{key:"sub_item_ing_"+i},[e("td",{staticClass:"text-right",staticStyle:{"vertical-align":"middle","border-bottom":"unset !important"}},[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"text-left"},[1==s.type&&1==s.type_v?e("span",{staticStyle:{color:"#e3e3e3"}},[t._v("\n "+t._s(a.num)+")\n ")]):t._e(),e("span",{domProps:{innerHTML:t._s(50===+s.booktype?t.setStoryUnitName(s):a.name)}})]),e("td",{staticClass:"text-left"},[e(U["a"],{staticClass:"h-100",staticStyle:{"align-content":"center"},attrs:{dense:"","no-gutters":""}},["MOCK"==s.type&&s.sub_unit?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"12"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,color:a.id?"grey lighten-2":"success"}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(a.id?"평가완료":"듣기평가")+"\n ")])])],1)]:1==s.booktype_m&&0==s.type?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"voca"),color:t.setBtnColor(a,"voca")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"voca"))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"major"),color:t.setBtnColor(a,"major")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"major",s))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"advanced"),color:"1"===a.advanced_done||(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?"grey lighten-2":"info2"}},[(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?e("b",{staticClass:"subtitle-1 fw-700",staticStyle:{color:"#999da0"}},[t._v("심화")]):"0"===a.advanced_done&&a.advanced_cnt>0?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("재학습중")]):"0"===a.advanced_done&&0==a.advanced_cnt?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("학습중")]):e("b",{staticClass:"subtitle-1 fw-700"},[t._v("심화")])])],1)]:0==s.booktype_m&&0==s.type&&([0,1,2,3].includes(+s.category)||[4,100].includes(+s.category)&&+s.words_cnt>0)?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"voca"),color:t.setBtnColor(a,"voca")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"voca"))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"study"),color:t.setBtnColor(a,"study")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"study",s))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"test"),color:"1"===a.test_done||(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?"grey lighten-2":"info2"}},[(2==s.category||0===+s.category)&&"m3"==s.grade&&Number(a.seq)>=8?e("b",{staticClass:"subtitle-1 fw-700",staticStyle:{color:"#999da0"}},[t._v("심화")]):"0"===a.test_done&&a.test_cnt>0?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("재학습중")]):"0"===a.test_done&&0==a.test_cnt?e("b",{staticClass:"subtitle-1 fw-700"},[t._v("학습중")]):e("b",{staticClass:"subtitle-1 fw-700"},[t._v("심화")])])],1)]:2==s.booktype_m?t._l(["major","advanced"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"6"}},[e("div",{staticClass:"ml-2 mr-2 left-0 right-0"},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i,s))+"\n ")])])],1)])})):1==s.type&&1==s.type_v?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"12"}},[e("div",{staticClass:"ml-2 mr-2 left-0 right-0"},[["S","T","V","M","A"].includes(a.mode)?e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,t.getModeName(a.mode)),color:t.setBtnColor(a,t.getModeName(a.mode))}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,t.getModeName(a.mode),s))+"\n ")])]):"X"==a.mode.charAt(0)?e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"mock"),color:t.setBtnColor(a,"mock")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n 듣기\n ")])]):t._e()],1)])]:31===+s.booktype?[e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"voca"),color:t.setBtnColor(a,"voca")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"voca"))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"study"),color:t.setBtnColor(a,"study")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"study",s))+"\n ")])])],1),e(j["a"],{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[[1,3].includes(+s.category)?e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"test"),color:t.setBtnColor(a,"test")}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,"test",s))+"\n ")])]):e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,"mock"),color:"1"===a.mock_done||(2==s.category||0===+s.category)&&"m3"==s.grade&&+a.seq>=8?"grey lighten-2":"info2"}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("듣기")])])],1)]:4==s.booktype_m&&3==s.booktype_s?t._l(["grammar_theory","grammar_basics","grammar_deep"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i))+"\n ")])])],1)})):50===+s.booktype?t._l(["story_v","story_m","story_a"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"4"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i))+"\n ")])])],1)})):t._l(["study","test"],(function(i,o){return e(j["a"],{key:`btn-col-${+s.booktype}-${o}`,staticClass:"text-center pos-rel",attrs:{cols:"6"}},[e(L["a"],{staticClass:"white--text py-0 px-2 mgauto cursor-auto height-2rem float-right w-85",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:t.setBtnOutlined(a,i),color:t.setBtnColor(a,i)}},[e("b",{staticClass:"subtitle-1 fw-700"},[t._v("\n "+t._s(t.setBtnText(a,i,s))+"\n ")])])],1)}))],2)],1)])})),0)]},proxy:!0}],null,!0)})],1)]}}],null,!0)})]}))],2):""!=t.select_student&&3==s?[e("div",{staticClass:"mb-6",attrs:{id:"tab-3"}},[e(U["a"],{staticClass:"w-100 mgauto mt-2"},[e("div",{staticClass:"date-header-wrap"},[e("div",{staticClass:"current-year"},[t._v("\n "+t._s(t.v_calendar.split("-")[0])+"년\n ")]),e("h3",{staticClass:"my-2 text-center w-100"},[e(L["a"],{attrs:{icon:""},on:{click:function(e){return t.calendarMove("prev")}}},[e(q["a"],{attrs:{color:"info"}},[t._v("mdi-chevron-left")])],1),e("b",{staticClass:"px-6 info--text"},[t._v("\n "+t._s(t.full_month[parseInt(t.v_calendar.split("-")[1])-1])+"\n ")]),e(L["a"],{attrs:{icon:""},on:{click:function(e){return t.calendarMove("next")}}},[e(q["a"],{attrs:{color:"info"}},[t._v("mdi-chevron-right")])],1)],1)]),e(H["a"],{staticClass:"w-100",attrs:{height:"auto"}},[e(Ke["a"],{ref:"calendar",refInFor:!0,attrs:{type:"month",now:t.calendar.now,value:"2019-01-08"},on:{"click:day":t.clickDate},scopedSlots:t._u([{key:"day-label",fn:function(s){return[e(L["a"],{staticClass:"custom_slot_btn",attrs:{id:"btn::"+s.date,depressed:"","x-small":"",rounded:"",fab:"",ripple:!1}},[t._v("\n "+t._s(s.day)+"\n ")])]}}],null,!0),model:{value:t.v_calendar,callback:function(e){t.v_calendar=e},expression:"v_calendar"}})],1)],1),e(U["a"],{staticClass:"w-100 mgauto mt-4",staticStyle:{"padding-bottom":"3rem"}},[e(R["a"],{staticClass:"w-100",attrs:{headers:t.calendar_headers,items:t.calendar_items,"mobile-breakpoint":10,"server-items-length":t.calendar_items_length,"hide-default-header":"","hide-default-footer":"","no-data-text":t.calendar_no_data,"sort-by":t.sortby,"sort-desc":t.sortdesc},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"item.type",fn:function({item:s}){return[e("span",{class:t.getTypeText(s).color+"--text text-usn"},[t._v("\n "+t._s(t.getTypeText(s).text)+"\n ")])]}},{key:"item.bookname",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[5===+s.booktype_m&&0===+s.booktype_s?[t._v("\n 내공백서 스토리북 Lv. "+t._s(s.level)+"\n ")]:[t._v("\n "+t._s(s.bookname)+"\n ")]],2)]}},{key:"item.unit",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(t.setUnitName(s))+"\n ")])]}},{key:"item.studytime",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.studytime)+"분 ")])]}},{key:"item.studystatus",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.studystatus)+"\n ")])]}},{key:"item.studydate",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.studydate)+"\n ")])]}},{key:"item.report",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[s.report?[e(L["a"],{attrs:{color:"success",elevation:"0",small:""},on:{click:function(e){return e.stopPropagation(),t.openReport(s.type,s)}}},[t._v("\n 조회\n ")])]:[t._v(" - ")]],2)]}}],null,!0)})],1)],1)]:t._e()],2)})),1)],2)],1),e("report",{directives:[{name:"show",rawName:"v-show",value:"report"==t.mode||"report_error_print"==t.mode,expression:"mode == 'report' || mode == 'report_error_print'"}],ref:"report"}),"report_error_print"===t.mode?e("t-print",{attrs:{cur_item:t.$refs.report.cur_item,resize_cnt:t.resize_cnt}}):t._e(),e("div",{key:"progress-print-"+t.ppkey,staticStyle:{display:"none"},attrs:{id:"progress-print"}},[e("div",{staticClass:"pos-rel component",staticStyle:{width:"210mm",height:"296mm","margin-bottom":"1mm"},attrs:{id:"progress-wrapper"}},[e("img",{staticClass:"pos-abs result_print_bg",staticStyle:{display:"block"},attrs:{src:s("f51b"),width:"100%",height:"100%"}}),e("div",{staticClass:"pos-rel title_wrap",staticStyle:{height:"9.7%"}},[e("div",{staticClass:"pos-abs w-100 text-center",staticStyle:{bottom:"0"}},[e("img",{staticClass:"pos-abs title_img",staticStyle:{left:"278px",top:"-50px"},attrs:{src:s("cef4"),width:"240"}})])]),e("div",{staticClass:"pos-rel mgauto",staticStyle:{"border-bottom":"2px solid #283a50",width:"88.6%",height:"59px"}},[e("div",{staticClass:"text-center pos-abs white--text",staticStyle:{width:"15%",bottom:"0","background-color":"#283a50",padding:"2px 0","border-top-left-radius":"14px","font-size":"14px"}},[t._v("\n 진도율 분석\n ")]),e("b",{staticClass:"pos-abs translate-y",staticStyle:{right:"8px",top:"60%","font-size":"14px"},attrs:{id:"progress-class"}})]),e("div",{staticClass:"progress-list pos-rel mgauto",staticStyle:{"margin-top":"4px !important",width:"88.6%",height:"75.03%"}},t._l(14,(function(t){return e("div",{key:"list-item-wrap-"+t,staticClass:"list-item-wrap d-none"},[e("div"),e("div"),e("div")])})),0),e("div",{staticStyle:{"margin-top":"26px",height:"7.3%"}},[e(U["a"],{staticClass:"mgauto",staticStyle:{width:"88.6%",height:"100%"}},[e(j["a"],{staticClass:"pa-0 pos-rel",attrs:{cols:"6"}},[e("img",{staticClass:"pos-abs translate-y",staticStyle:{"max-height":"35px","margin-top":"-6px"},attrs:{src:t.user.clogo?""+t.user.clogo:s("3951")}})]),e(j["a"],{staticClass:"pa-0 text-right pos-rel",attrs:{cols:"6"}},[e("h3",{staticClass:"black--text pos-abs translate-y",staticStyle:{"font-size":"15px",right:"0","margin-top":"-6px"}},[t._v("\n "+t._s(t.user.cname)+"\n ")])])],1)],1)])]),e("Dialogs",[e("div",{attrs:{slot:"sv_review"},slot:"sv_review"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v(" 동화학습은 레포트가 존재하지 않습니다. ")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["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}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"del_schedule"},slot:"del_schedule"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("스케쥴 설정 교재를 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 스케쥴은 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.delSchedule}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"mobile_print"},slot:"mobile_print"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("PC로 이용해주시기 바랍니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"mobile_filedown"},slot:"mobile_filedown"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("디바이스 내 다운로드 폴더에 저장되었습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"print_yet"},slot:"print_yet"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("오픈 준비 중입니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"hide_book_confirm"},slot:"hide_book_confirm"},[e(M["b"],{staticClass:"text-center py-6 del-confirm-dialog"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",{attrs:{id:"del_title"}},[t._v("\n "+t._s(t.getHideBookName)+" 숨김\n "+t._s(t.hide_check_status?"해제":"처리")+"하시겠습니까?\n ")]),e("b",{attrs:{id:"del_subtitle"}},[t.hide_check_status?[t._v("\n 해제하시려면 "),e("strong",[t._v('"진짜해제"')]),t._v("를 입력하세요.\n ")]:[t._v("\n 숨기시려면 "),e("strong",[t._v('"진짜숨김"')]),t._v("을 입력하세요.\n ")]],2),e("input",{attrs:{id:"del_input",type:"text",autocomplete:"off"},domProps:{value:t.hide_confirm_text},on:{input:t.hideConfirmInput}})])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t del-confirm-dialog"},[e(L["a"],{staticClass:"dialog-twobtn left",class:"disabled-"+t.checkHideDisabled,attrs:{"x-large":"",text:"",disabled:t.checkHideDisabled},on:{click:t.hideIngBook}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])]),e(L["a"],{staticClass:"dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1)]),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e(ot["a"],{attrs:{"max-width":t.dialogWidth,transition:!1},on:{"click:outside":function(e){t.detail_dialog=!1}},model:{value:t.detail_dialog,callback:function(e){t.detail_dialog=e},expression:"detail_dialog"}},[e(it["a"],[e(M["b"],{staticClass:"py-4 text-center black--text title"},[e(U["a"],[e(j["a"],{staticClass:"text-center",attrs:{cols:"12"}},[e("h3",{staticClass:"text-usn",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_sentences)}}),e("div",{staticClass:"border-ede thin-t my-2"}),e("h3",{staticClass:"text-usn grey--text",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_mean)}})])],1)],1)],1)],1),e("report-message-dialog",{ref:"report-message-dialog"})],1)},Zn=[],tl={name:"analysis-individualtotal",components:{"v-chart":Xo["a"],preFont:et["a"],report:ua,LoadingDialog:bt["a"],SelectHeader:Za,ReportMessageDialog:gt,TPrint:un},data(){return{detail_dialog:!1,class_items:[],class_students:[],class_item_lesson_day:"",class_students_settings:"",select_class_status:!1,select_class_id:0,select_student:"",select_student_data:[],isNameSearch:!1,search_students:null,search_select_student:null,new_mockexam:{},user:this.$storage.get("user"),radar:{radar:{name:{textStyle:{color:"#000",borderRadius:3,padding:[1,1],fontFamily:"Apple SD Gothic Neo",fontSize:"1rem"}},nameGap:10,indicator:[{name:"어휘",max:100},{name:"영작",max:100},{name:"말하기",max:100},{name:"독해",max:100}],center:["50%","50%"],radius:"60%",splitArea:{areaStyle:{color:["rgba(250,250,250,0)","rgba(247, 248, 249, 1)"]}}},series:[{type:"radar",showSymbol:!1,areaStyle:{color:"#fa3a4f",opacity:.3},data:[{value:[0,0,0,0,0],symbol:"none"}],lineStyle:{color:"#fa3a4f",width:3},animation:!1}]},tab:null,tabs:3,endbookcnt:0,wrong_sen_arr:[],circle_row:0,circle_totavg:0,circle_tqc:0,circle_twc:0,circle_err:0,circle_tst:0,book_headers:[{text:"교재명",value:"bookname",align:"left",sortable:!1,search:!1},{text:"진도율",value:"rate",align:"left",sortable:!1,search:!1}],ing_items:[],end_items:[],ing_expanded:[],ing_options:{},ing_items_length:0,ing_page:1,ing_items_per_page:10,ing_sortby:void 0,ing_sortdesc:void 0,end_expanded:[],end_options:{},end_items_length:0,end_page:1,end_items_per_page:10,end_sortby:void 0,end_sortdesc:void 0,full_month:["January","February","March","April","May","June","July","August","September","October","November","December"],v_calendar:"",calendar:{now:"",value:""},calendar_headers:[{text:"No.",value:"num",align:"left",sortable:!1,search:!1},{text:"구분",value:"type",align:"left",sortable:!1,search:!1},{text:"교재명",value:"bookname",align:"left",sortable:!1,search:!1},{text:"단원",value:"unit",align:"left",sortable:!1,search:!1},{text:"학습 시간",value:"studytime",align:"left",sortable:!0,search:!1},{text:"학습 상태",value:"studystatus",align:"left",sortable:!0,search:!1},{text:"학습일",value:"studydate",align:"left",sortable:!0,search:!1},{text:"레포트",value:"report",align:"center",sortable:!1,search:!1}],calendar_items:[],calendar_items_length:0,calendar_no_data:"학습한 교재가 없습니다.",click_cnt:0,err_info_text:!1,detail_sentences:"",detail_mean:"",sortby:void 0,sortdesc:void 0,new_modules_names:{0:"리스닝",1:"문장조합",2:"딕테이션",3:"문장찾기",4:"영작하기",5:"영작하기",6:"스피킹",7:"워드빙고",I:"어휘추론",O:"문단배열",R:"독해점검",B:"빈칸추론",G:"문법점검"},circle_size:0,circle_width:0,circle_font:0,last_seldate:"",last_select_student:"",mode:"list",loading_value:!1,loading_message:"잠시만 기다려주세요.",ppkey:0,hide_book:null,hide_confirm_text:"",hide_check_status:!1,resize_cnt:0}},beforeRouteLeave(t,e,s){"index"==t.name&&this.user.is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){this.v_calendar=this.getToday(),this.calendar.now=this.getToday(),this.calendar.value=this.getToday(),this.ing_items_per_page=this.getPageListNumberOfStorage(this.$route.path,"ing"),this.end_items_per_page=this.getPageListNumberOfStorage(this.$route.path,"end")},mounted(){},watch:{class_students(t){if(this.search_select_student){const e=this.$refs["subheader"];e.getStudentPromise&&e.getStudentPromise.then(()=>{this.class_students_settings="",t.forEach((t,e)=>{t.id===this.search_select_student.id&&(this.class_students_settings=e,this.clickStudent(this.search_select_student,!0))})})}},tab(t){"tab-1"==t?""!=this.last_select_student&&this.last_select_student.id!=this.select_student.id&&this.clickStudent(this.select_student,!0):"tab-2"==t?""!=this.last_select_student&&this.last_select_student.id!=this.select_student.id&&(this.getBook("ing",1,10,null,null,null,this.select_student),this.getBook("end",1,10,null,null,null,this.select_student)):"tab-3"==t&&""!=this.select_student&&this.initCalEvent()},ing_options:{handler(){this.ing_page=this.ing_options.page,this.ing_items_per_page=this.ing_options.itemsPerPage,this.ing_sortby=this.ing_options.sortBy[0],this.ing_sortdesc=this.ing_options.sortDesc[0],this.getBook("ing",this.ing_page,this.ing_items_per_page,this.ing_sortby,this.ing_sortdesc,this.ing_keyword,this.select_student),this.updatePageListNumberOfStorage(this.$route.path,"ing",this.ing_options.itemsPerPage)},deep:!0},end_options:{handler(){this.end_page=this.end_options.page,this.end_items_per_page=this.end_options.itemsPerPage,this.end_sortby=this.end_options.sortBy[0],this.end_sortdesc=this.end_options.sortDesc[0],this.getBook("end",this.end_page,this.end_items_per_page,this.end_sortby,this.end_sortdesc,this.end_keyword,this.select_student),this.updatePageListNumberOfStorage(this.$route.path,"end",this.end_options.itemsPerPage)},deep:!0}},computed:{dialogWidth(){const t={xs:"220px",sm:"400px",md:"650px",lg:"950px",xl:"1300px"};return t[this.$vuetify.breakpoint.name]},dialogFontSize(){const t={xs:"1rem",sm:"1rem",md:"1.1rem",lg:"1.2rem",xl:"1.3rem"};return t[this.$vuetify.breakpoint.name]},listMandatory(){let t=!1;return""!=this.select_student&&(t=!0),t},checkHideDisabled(){return this.hide_check_status?"진짜해제"!==this.hide_confirm_text:"진짜숨김"!==this.hide_confirm_text},getHideBookName(){if(this.hide_book){const t={xs:19,sm:20,md:21,lg:22,xl:17},e=t[this.$vuetify.breakpoint.name];let s=this.hide_book.bookname.length>e?this.hide_book.bookname.substring(0,e)+"...":this.hide_book.bookname;return`${s}${this.isEndWithConsonant(s)?"을":"를"}`}return""},getModeName(){return t=>{const e={S:"study",T:"test",V:"voca",M:"major",A:"advanced"};return e[t]}},setStoryUnitName(){return t=>{let e="";return e=`${t.bookname} ${t.subtitle}`,console.log(t),e}},setBtnOutlined(){return(t,e)=>"0"===t[e+"_done"]&&t[e+"_cnt"]>0},setBtnColor(){return(t,e)=>{const s={voca:"warning",major:"success",study:"success",advanced:"info2",test:"info2",mock:"info2",grammar_theory:"warning",grammar_basics:"success",grammar_deep:"info2",story_v:"warning",story_m:"success",story_a:"info2"};return"1"===t[e+"_done"]?"grey lighten-2":s[e]}},setBtnText(){return(t,e,s=null)=>{let a="",i="";if(["test","advanced"].includes(e)?(i="시험",1===+s.type&&1===+s.type_v&&(i="심화")):i="학습","0"===t[e+"_done"])t[e+"_cnt"]>0?a=`재${i}중`:0==t[e+"_cnt"]&&(a=i+"중");else switch(e){case"study":a="학습",0===s.booktype_m&&0==s.type&&([0,1,2,3].includes(+s.category)||[4,100].includes(+s.category)&&s.words_cnt>0)?a=1===+s.category?"문장":3===+s.category?"지문":"본문":1==s.type&&1==s.type_v?1==s.category?(a="문장",31===+s.booktype&&(a="지문")):a=3==s.category?"지문":"본문":31===+s.booktype&&(a="본문",[1,3].includes(+s.category)&&(a="지문"));break;case"major":1==s.booktype_m&&0==s.type?a=3==s.category?"지문":"본문":2==s.booktype_m?a="학습":1==s.type&&1==s.type_v&&(a=1===+s.category?"문장":3===+s.category?"지문":"본문");break;case"test":case"advanced":a=1===+s.type&&1===+s.type_v||[1,3].includes(+s.category)&&31===+s.booktype?"심화":"시험";break;default:{const t={voca:"어휘",grammar_theory:"이론",grammar_basics:"기본",grammar_deep:"심화",story_v:"동화",story_m:"기본",story_a:"실전",test:"시험"};a=t[e];break}}return a}}},methods:{getTypeText:dt["b"],setUnitName:dt["e"],setStoryBookUnitName:dt["d"],isEndWithConsonant:dt["c"],getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],clickStudent(t,e=!1){if(this.isNameSearch&&this.search_students&&(this.search_select_student=t),!e&&""!=this.select_student&&this.select_student.id==t.id)return!1;this.end_expanded.pop(),this.ing_expanded.pop(),this.last_select_student=JSON.parse(JSON.stringify(this.select_student)),this.select_student=t,this.calendar_items=[];const s=this.$refs.subheader.class_items;console.log(s,"classa_items");let a=s.find(t=>t.value==this.select_class_id);this.select_student.class_name=a.text,"tab-2"==this.tab&&0!=this.click_cnt&&(this.getBook("ing",1,10,null,null,null,t),this.getBook("end",1,10,null,null,null,t)),this.click_cnt++;let i=new Promise((e,s)=>{this.$axios.get(`${this.$host}/result/${this.$cid}/getindividual?uid=${t.id}`).then(t=>{if(200==t.status){const s=t.data,a=this.select_student||this.search_select_student;a.totavg=s.score.totavg?parseFloat(s.score.totavg).toFixed(1):0,a.sum_question_cnt=s.score.sum_question_cnt||0,a.sum_wrong_cnt=s.score.sum_wrong_cnt||0,a.error_rate=s.score.error_rate?Math.round(s.score.error_rate):0,a.sum_studytime=s.score.sum_studytime?Math.floor(s.score.sum_studytime):0,a.diff_postdate=s.score.diff_pd,this.circle_totavg=+a.totavg,this.circle_tqc=+a.sum_question_cnt,this.circle_twc=+a.sum_wrong_cnt,this.circle_err=+a.error_rate,this.circle_tst=+a.sum_studytime,this.radar.series[0].data[0].value=[];let i=["V","EC","speaking","RC"];for(let t=0;t<4;t++)this.radar.series[0].data[0].value.push(s.module[i[t]]);this.endbookcnt=s.endbookcnt,this.wrong_sen_arr=JSON.parse(JSON.stringify(s.wrong_sen_arr)),e(!0)}}).catch(t=>{console.log(t)})});i.then(t=>{"tab-3"==this.tab&&this.initCalEvent(),this.circle_row+=1,setTimeout(()=>{this.setPeriodCircleSize(),window.onresize=this.setPeriodCircleSize,this.$nextTick(()=>{let t=document.getElementsByClassName("period-circle-col");for(let e=0;e{console.log(t)})},setPeriodCircleSize(){if(this.tab>0)return!1;if(!this.select_student)return!1;let t=document.getElementById("period-circle-row"),e=document.getElementById("period-circle-col"),s=window.getComputedStyle(e),a=t.offsetHeight-20,i=t.offsetWidth;a-=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),i-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight);let o=a>i?i:a;isNaN(o)||(this.circle_size=o,this.circle_width=Math.round(o/9),this.circle_font=Math.round(o/6))},calendarMove(t){this.$store.dispatch("soundEffectPlay","click_button"),"prev"==t?this.v_calendar=this.$dayjs(this.v_calendar).subtract(1,"month").format("YYYY-MM-DD"):"next"==t&&(this.v_calendar=this.$dayjs(this.v_calendar).add(1,"month").format("YYYY-MM-DD")),this.calendar_items=[],this.initCalEvent()},initCalEvent(){setTimeout(()=>{let t=document.querySelectorAll(".custom-event");if(t.length>0)for(let[e,s]of Object.entries(t))s.classList.remove("custom-event");if(this.select_student.diff_postdate.length>0){let t=this.v_calendar.split("-")[0]+"-"+this.v_calendar.split("-")[1],e=document.getElementsByClassName("v-calendar-weekly__week")[0].childNodes,s=0;for(let[i,o]of Object.entries(e)){if(0==i&&!o.classList.contains("v-outside"))break;o.classList.contains("v-outside")&&(s+=1)}let a=document.querySelectorAll(".custom_slot_btn");for(let i in this.select_student.diff_postdate)if(this.select_student.diff_postdate[i].diff_pd&&-1!=this.select_student.diff_postdate[i].diff_pd.indexOf(t)){let t=parseInt(this.select_student.diff_postdate[i].diff_pd.split("-")[2])-1;t+=s,a[t].classList.add("custom-event")}}},300)},clickCustomEvent(t){this.$store.dispatch("soundEffectPlay","click_button");let e=document.querySelectorAll(".custom_selected");for(let[a,i]of Object.entries(e))i.classList.remove("custom_selected");document.getElementById("btn::"+t)&&document.getElementById("btn::"+t).classList.add("custom_selected");let s=t=>{this.calendar_items=[],this.calendar_items_length=0,this.calendar_no_data=204==t?"학습 스케쥴이 삭제되었습니다.":"학습한 교재가 없습니다."};t?this.getDayReport(t):s()},getDayReport(t,e,s){let a=t=>{this.calendar_items=[],this.calendar_items_length=0,this.calendar_no_data=204==t?"학습 스케쥴이 삭제되었습니다.":"학습한 교재가 없습니다."},i=`${this.$host}/result/${this.$cid}/user/${this.select_student.id}/getdayreport`;e&&(i+=`/${e}/${s?"desc":"asc"}`),i+="?sd="+t,this.$axios.get(i).then(t=>{if(200==t.status){this.calendar_items=[],this.calendar_items_length=t.data.records?t.data.records:0;for(let[e,s]of Object.entries(t.data.rows)){let t={history_id:s.id,urid:s.id,unit_record_id:s.id,unit_cnt:s.unit_cnt,sid:s.schedule_id,schedule_id:s.schedule_id,bid:s.bid,type:s.type,bookname:s.schedule_name,category:s.category,schedule_type:s.schedule_type,type_v:s.type_v?s.type_v:0,unit:s.unit,unit_id:s.unit_id,unit_name:s.unit_name,done:s.done,done_cnt:s.done_cnt,studytime:s.tot_studytime?1*s.tot_studytime:0,studystatus:0==s.done?"학습 중":"학습 완료",studydate:s.lastdate,booktype_m:Math.floor(+s.booktype/10),booktype_s:+s.booktype%10,words_cnt:s.words_cnt?+s.words_cnt:"",recent:{done:s.done,su_seq:s.su_seq||null,old_modules:s.old_modules||null,new_modules:s.new_modules||null,v_mod:s.v_mod||null,a_mod:s.a_mod||null,m_mod:s.m_mod||null,su_name:s.su_name,history_text:s.history_text||""},report:!1,avg:s.avg?Math.round(+s.avg):0,question_cnt:+s.tot_question_cnt||0,wrong_cnt:+s.tot_wrong_cnt||0,skip:s.skip,new_skip:s.new_skip,dist_seq:s.dist_seq,modules_score:s.modules_score||null,from:"total",level:s.level||null};"F"==this.$store.state.user.product_type&&50===+s.booktype&&(t.bookname=s.bookname),"3"==t.category&&0==t.booktype_m&&1==t.booktype_s&&"0"==t.unit_cnt?t.new_mock=!0:t.new_mock=!1,0===+t.done?t.studystatus=(1*t.done_cnt>0?"재":"")+"학습 중":t.studystatus="학습 완료",t.error_rate=Math.round(100/t.question_cnt*t.wrong_cnt);let e=t.studytime/60,a=Math.trunc(e),i=e-a;if(t.studytime=i>.5?parseInt(e)+1:parseInt(e),"X"==t.type&&(t.mock_infos=s.mock_infos?s.mock_infos:null,"3"==t.category&&0==t.booktype_m&&1==t.booktype_s)){this.new_mockexam[t.bid]||(this.new_mockexam[t.bid]={}),this.new_mockexam[t.bid].point_group=t.mock_infos.point_group,this.new_mockexam[t.bid].right_group=t.mock_infos.right_group,this.new_mockexam[t.bid].rows||(this.new_mockexam[t.bid].rows=[]);const e=this.new_mockexam[t.bid].rows.findIndex(t=>t.mr_id==t.unit_record_id);e<0&&this.new_mockexam[t.bid].rows.push({mr_id:t.unit_record_id,select_nums:t.mock_infos.select_nums,schedule_id:t.mock_infos.mr_schedule_id})}4==t.booktype_m&&3==t.booktype_s&&"GT"==t.type&&(this.$basicGrammarBooks.includes(+t.bid)&&(+t.unit+1)%3===0||this.$middleGrammarBooks.includes(+t.bid)&&t.unit_name.match("Review"))?t.report=!1:1===+t.done&&(t.report=!0),this.calendar_items.push(t)}}else 204==t.status&&a(204)}).catch(t=>{console.log(t),a()})},clickDate(t){if(this.select_student.diff_postdate.length>0){let e=this.select_student.diff_postdate.findIndex(e=>e.diff_pd==t.date);this.clickCustomEvent(-1==e?null:t.date),this.last_seldate=t.date}},getBook(t,e,s,a,i,o,n){let l=(e-1)*s,r=s,c=`${this.$host}/book/${n.id}/get${t}book/${l}/${r}`;"ing"==t&&this.hide_check_status&&(c+="?hide=true"),this.$axios.get(c).then(e=>{if(200==e.status){this[t+"_items"]=[],this[t+"_items_length"]=e.data.records;let s=e.data.rows;for(let e=0,a=s.length;e{console.log(t)})},toggleClassRow(t,e){if("ing"==e){let t=document.querySelectorAll(".progress-wrap.ing");if(t&&t.length>0)for(let e=0;e0&&this[e+"_expanded"][0].sid==t.sid)this[e+"_expanded"].pop();else{if(""==t.sub_unit){let e=`${this.$host}/v2/book/${t.book_id}/schedule/${t.sid}/type/${t.type}/user/${this.select_student.id}`,s="?";const a="MOCK"==t.type?"MOCK":+t.type,i=t.booktype_m;1===a&&(s+=`tot_cnt=${+t.tot_cnt||0}&sen_cnt=${+t.sentence_cnt||0}`),1==i&&(s+="?"==s?"vma=1":"&vma=1"),"MOCK"===a&&(s+="?"==s?"mock=1":"&mock=1"),s+="&bt="+i,3!==+t.category&&1!==+t.category||31!==+t.booktype||(s+="&category=10"),this.$axios.get(`${e}${s}`).then(e=>{if(200==e.status){t.sub_unit=new Array;let s=1,i=Object.values(e.data);const o=i.findLastIndex(t=>1==+t.is_regular);let n=1,l=0;for(let e=0,r=i.length;e=o&&(+i[e].is_regular?i[e].name=n+"차 정규평가":i[e].name=l+"차 오답평가",l++,t.sub_unit.push(i[e]),e===r-1&&100!==+i[e].score&&t.sub_unit.push({name:l+"차 오답평가"}))):(i[e].num=s,t.sub_unit.push(i[e]),s++)}}).catch(t=>{console.log(t)})}this[e+"_expanded"].pop(),this[e+"_expanded"].push(t),"ing"==e&&document.getElementsByClassName(`${e}-pw-${t.sid}`)[0].classList.add("white")}},windowPrint(){window.print()},setPointer(t){let e=this.$refs[t][0],s=e.childNodes[0];s.offsetWidth>e.offsetWidth?e.classList.add("cursor"):e.classList.remove("cursor")},showDetail(t){let e="w_sent_"+t,s="w_mean_"+t,a=this.$refs[e][0],i=this.$refs[s][0],o=a.childNodes[0],n=i.childNodes[0];(o.offsetWidth>a.offsetWidth||n.offsetWidth>i.offsetWidth)&&(this.detail_sentences=o.textContent,this.detail_mean=n.textContent,this.detail_dialog=!0)},customSort(t,e,s){this.sortby=e,this.sortdesc=s,this.getDayReport(this.last_seldate,this.sortby,this.sortdesc)},delScheduleConfirm(t){this.select_del_sid=t,this.openDialog("del_schedule")},delSchedule(){this.select_del_sid&&this.$axios.post(`${this.$host}/schedule/${this.$cid}/user/${this.select_student.id}/delscheduleuser`,{sid:this.select_del_sid}).then(t=>{200==t.status&&this.closeDialog()}).catch(t=>{console.log(t)})},radarResize(){switch(this.$vuetify.breakpoint.name){case"xs":this.radar.radar.name.textStyle.fontSize=10;break;case"sm":this.radar.radar.name.textStyle.fontSize=10;break;case"md":this.radar.radar.name.textStyle.fontSize=11;break;case"lg":this.radar.radar.name.textStyle.fontSize=12.5;break;case"xl":this.radar.radar.name.textStyle.fontSize=14;break}},openReport(t,e){console.log("openReport-individualTotal",t,e),"SV"!==t?(this.$store.dispatch("soundEffectPlay","click_button"),this.loading_value=!0,this.$nextTick(()=>{if(this.$forceUpdate(),e.user_info=this.select_student,e.user_id=this.select_student.id,e.classname=this.select_student.class_name,"X"==t){const t=e.mock_infos.right_group,s=e.mock_infos.select_nums,a=e.mock_infos.point_group;if("0"!=e.mock_infos.is_regular){e.avg=0;for(let i=0,o=t.length;i{this.mode="report",this.loading_value=!1}).catch(t=>{console.error(t),this.loading_value=!1})})):this.openDialog("sv_review")},pageUpdate(t,e){this[e+"_expanded"]=[]},classStudyProgress(){this.$store.dispatch("soundEffectPlay","click_button"),this.ppkey++;const t=new Promise((t,e)=>{const s=this.class_students.map(t=>+t.value);if(!s)return e("uids null"),!1;const a=this.$host+"/schedule/getuserprogress";this.$axios.post(a,{uids:s}).then(e=>{t(e)}).catch(t=>{e(t)})});t.then(t=>{if(200===t.status){for(let n=0,l=t.data.length;n+t.id===+e.user_id);this.class_students[s].progress=+e.progress,this.class_students[s].progress_text=e.progress_text}const e=this.class_items.find(t=>+t.value===+this.select_class_id);e&&(document.getElementById("progress-class").innerText="클래스 : "+e.text);let s=document.getElementById("progress-print"),a=document.getElementById("progress-wrapper");const i=Math.ceil(this.class_students.length/14)-1;for(let t=0;t13&&(o=0);const s=document.getElementsByClassName("progress-list")[e],a=s.getElementsByClassName("list-item-wrap")[o];a.childNodes[0].innerText=this.class_students[t].text,a.childNodes[1].innerText=this.class_students[t].progress+"%",a.childNodes[2].innerText=""+this.class_students[t].progress_text,a.classList.remove("d-none"),o++}s.style.display="block",s.childNodes[s.childNodes.length-1].style.marginBottom="",setTimeout(()=>{const t=document.getElementById("individualtotalvue");t.classList.add("progress-mode");const e=()=>{const t=window.open("","_blank","width=1,height=1");t.addEventListener("afterprint",e=>{t.close()}),t.document.head.innerHTML=document.head.innerHTML,t.document.body.innerHTML=document.body.innerHTML,s.style.transformOrigin="0 0",s.style.transform="scale(88%)",setTimeout(()=>{t.print(),setTimeout(()=>{t.close()},200)},200)};var a=navigator.userAgent.toLowerCase();-1!=a.indexOf("safari")&&-1==a.indexOf("chrome")?e():window.print(),s.style.display="none",t.classList.remove("progress-mode")},200)}}).catch(t=>{console.log(t)})},hideIngBookConfirm(t,e){t.stopPropagation(),this.hide_book=e,this.hide_confirm_text="",this.openDialog("hide_book_confirm")},hideConfirmInput(t){this.hide_confirm_text=t.target.value},hideIngBook(){if(!this.hide_book)return;const t=+this.select_student.id;this.$axios.post(`${this.$host}/book/${t}/hideingbook`,{status:+this.hide_check_status,...this.hide_book}).then(()=>{this.hide_book=null,this.closeDialog(),this.getBook("ing",this.ing_page,this.ing_items_per_page,this.ing_sortby,this.ing_sortdesc,this.ing_keyword,this.select_student)}).catch(t=>{console.error(t)})},changeHideBookStatus(t){this.hide_check_status=t,this.getBook("ing",this.ing_page,this.ing_items_per_page,this.ing_sortby,this.ing_sortdesc,this.ing_keyword,this.select_student)}},beforeDestroy(){this.allBusDestroy(),window.onresize=null}},el=tl,sl=(s("5bc9"),s("d5c9"),s("33e3"),Object(u["a"])(el,Kn,Zn,!1,null,"2d7b2197",null)),al=sl.exports,il=s("8270"),ol=function(){var t=this,e=t._self._c;return e(U["a"],{staticClass:"h-100",attrs:{id:"counselvue",justify:"center",align:"stretch"}},[e(j["a"],{staticClass:"pa-0 pr-1 height-inherit printnone",attrs:{cols:"12",xs:"12",sm:"3",md:"3",lg:"3"}},[e("preFont"),e("div",{class:["bg-white",t.select_class_status?"mb-1 height-calc-schedule-top screen-90-height":"h-100"]},[e("select-header",{ref:"select_header",attrs:{data:t.$data}}),e(U["a"],{staticClass:"w-100 mgauto over-y-scroll",staticStyle:{height:"calc(100% - 3rem)"}},[t.select_class_status||t.search_students?e(j["a"],{staticClass:"pa-0",attrs:{cols:"12"}},["string"==typeof t.class_students?e(Ss["a"],{staticClass:"pa-0",attrs:{dense:"",disabled:!0}},[e(Ds["a"],[e($s["a"],{staticClass:"border-ede thin-b",staticStyle:{height:"45px"},attrs:{"active-class":"info--text"}},[e("div",{staticClass:"w-100 text-center grey--text fs-1rem"},[t._v("\n "+t._s(t.class_students)+"\n ")])])],1)],1):e(Ss["a"],{staticClass:"pa-0",attrs:{dense:""}},[e(Ds["a"],{model:{value:t.class_students_settings,callback:function(e){t.class_students_settings=e},expression:"class_students_settings"}},[t.class_students.length>0||t.search_students?t._l(t.search_students&&t.isNameSearch?t.search_students:t.class_students,(function(s,a){return e($s["a"],{key:"class_students_key_"+a,staticStyle:{"border-bottom":"thin solid #edeeef"},attrs:{"active-class":"info--text"},on:{click:function(e){return t.clickStudent(s)}},scopedSlots:t._u([{key:"default",fn:function({active:a}){return[e(Ia["a"],[e(q["a"],[t._v("mdi-menu-right")])],1),e(As["a"],[e(As["b"],[e("span",{staticClass:"fs-1rem",domProps:{innerHTML:t._s(s.color_text||s.text)}}),t.isNameSearch&&t.search_students?e("span",{staticClass:"fs-1rem"},[t._v("\n "+t._s(`(${s.class_name})`)+"\n ")]):t._e()])],1)]}}],null,!0)})})):[e($s["a"],{staticStyle:{"border-bottom":"unset !important"},scopedSlots:t._u([{key:"default",fn:function({active:s}){return[e(As["a"],{staticClass:"text-center"},[e(As["b"],{staticClass:"fs-1rem grey--text"},[t._v("\n 검색 결과가 존재하지 않습니다.\n ")])],1)]}}])})]],2)],1)],1):e(j["a"],{staticClass:"text-center"},[e("span",{staticClass:"grey--text"},[t._v("\n "+t._s(t.isNameSearch?"학생 이름을 검색하세요.":"클래스를 선택하세요.")+"\n ")])])],1)],1),t.select_class_status?e(U["a"],{staticClass:"bg-white text-center w-100",staticStyle:{height:"calc(7vh - 4px)",margin:"0 auto"}},[e(j["a"],{staticClass:"pa-0",attrs:{"align-self":"center"}},[e("b",{staticClass:"mr-2 fw-600"},[t._v("수업 요일")]),e("span",[t._v(t._s(t.class_item_lesson_day))])])],1):t._e()],1),e(j["a"],{staticClass:"pa-0 height-calc-main",class:t.select_student?"":"white",attrs:{cols:"12",xs:"12",sm:"9",md:"9",lg:"9"}},[e(Ga["a"],{staticClass:"justify-center title grey lighten-4 printnone h-3rem",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e("h4",{staticClass:"nnfont ls-m-1"},[e("b",{staticStyle:{"font-size":"1rem"}},[t._v("상담일지\n "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.select_student,expression:"select_student"}]},[t._v("("),e("span",{staticClass:"info--text"},[t._v(t._s(t.select_student.text))]),t._v(")")])])])]),t.select_student?e(U["a"],{staticClass:"w-100 mgauto pt-6 pb-4 thin-b white printnone",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e(j["a"],{staticClass:"py-0",attrs:{cols:"10",offset:"1"}},[e(wt["a"],{attrs:{color:"success",outlined:"","hide-details":"","no-resize":"",rows:"3",placeholder:9==t.permission?"상담일지를 작성하세요.":"담당반의 담당일지만 작성가능합니다.",disabled:!t.select_student||9!=t.permission},model:{value:t.counsel_content,callback:function(e){t.counsel_content=e},expression:"counsel_content"}}),e("div",{staticClass:"w-100 mt-2 text-right"},[e(L["a"],{attrs:{color:"success",depressed:"",disabled:!t.select_student||9!=t.permission||""==t.counsel_content.trim()},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.addCounsel()}}},[e("span",[t._v("등록")])])],1)],1)],1):e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{attrs:{cols:"12"}},[e("div",{staticClass:"text-center grey--text"},[t._v("학생을 선택해주세요.")])])],1),e(U["a"],{directives:[{name:"show",rawName:"v-show",value:t.select_student,expression:"select_student"}],staticClass:"w-100 mgauto height-counsel-min over-y-scroll mb-1",staticStyle:{"background-color":"#f8f9fd","min-height":"unset"}},[e(j["a"],{staticClass:"py-0",attrs:{cols:"10",offset:"1"}},t._l(t.origin_counsel,(function(s,a){return e(U["a"],{key:"counsel_"+a,staticClass:"w-100 mgauto",class:["row_id_"+s.id,12!=t.print_col||s.check_model?"d-flex":"d-none"]},[e(j["a"],{class:11==t.print_col?"d-block":"d-none",staticStyle:{"align-self":"center"},attrs:{cols:"1"}},[e(ce["a"],{staticClass:"d-inline-block mt-0 pt-0",attrs:{color:"success",dense:"","hide-details":""},model:{value:s.check_model,callback:function(e){t.$set(s,"check_model",e)},expression:"item.check_model"}})],1),e(j["a"],{class:[12!=t.print_col||s.check_model?"d-block":"d-none"],attrs:{cols:t.print_col}},[e(it["a"],{staticClass:"my-4",staticStyle:{border:"thin solid #edeeef"},attrs:{outlined:""}},[e(M["c"],[e($s["a"],{staticClass:"pl-2"},[e(il["a"],{staticClass:"mr-2",attrs:{color:"blue lighten-3",size:"32"}},[s.logo?e(It["a"],{staticClass:"elevation-6",attrs:{src:s.logo?`${t.$host}/media/images/selpic/${s.logo}`:"@/assets/images/default_profile.png"}}):e(q["a"],{attrs:{color:"blue darken-3"}},[t._v("\n mdi-account\n ")])],1),e(As["a"],[e(As["b"],[e("b",{staticClass:"text-usn"},[t._v(t._s(null===s.teacher_name?"삭제된 ":s.teacher_name)+"\n "+t._s("선생님"))])])],1),e(U["a"],{attrs:{align:"center",justify:"end"}},[e("small",{staticClass:"text-usn"},[t._v(t._s(s.postdate))]),e(L["a"],{staticClass:"delbtn ml-4 printnone",attrs:{depressed:"",small:"",outlined:"",color:"#c5c5c5",disabled:9!=t.permission},on:{click:function(e){return t.delConfirm(s.id)}}},[e(q["a"],{attrs:{small:""}},[t._v(" mdi-trash-can-outline ")])],1)],1)],1)],1),e(M["b"],{staticClass:"px-6"},[e("p",{staticClass:"text-usn",domProps:{innerHTML:t._s(s.content)}})])],1)],1)],1)})),1)],1),e(U["a"],{staticClass:"w-100 mgauto printnone"},[t.select_student?e(j["a"],{staticClass:"pa-0",staticStyle:{height:"calc(7vh - 4px)"},attrs:{cols:"6"}},[e(L["a"],{staticStyle:{height:"100% !important"},attrs:{disabled:t.print_btn_disabled,depressed:"",tile:"",block:"",color:"#ffd91a"},on:{click:t.openMessageDialog}},[e("span",{staticClass:"chrome-font fs-1rem",class:t.print_btn_disabled?"grey--text":"white--text"},[t._v("\n 상담일지 발송\n ")])])],1):t._e(),t.select_student?e(j["a"],{staticClass:"pa-0",staticStyle:{height:"calc(7vh - 4px)"},attrs:{cols:"6"}},[e(L["a"],{staticClass:"success",staticStyle:{height:"100% !important"},attrs:{disabled:t.print_btn_disabled,depressed:"",tile:"",block:""},on:{click:t.windowPrint}},[e("span",{staticClass:"chrome-font fs-1rem",class:t.print_btn_disabled?"grey--text":"white--text"},[t._v("\n 상담일지 출력\n ")])])],1):t._e()],1)],1),e("Dialogs",[e("div",{attrs:{slot:"del_counsel"},slot:"del_counsel"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("상담일지를 정말 삭제하시겠습니까?")]),e("small",{staticClass:"grey--text"},[e("b",[t._v("(삭제된 상담일지는 복구되지 않습니다.)")])])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return t.closeDialog(!0)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.delCounsel}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"move_page"},slot:"move_page"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("작성된 내용이 있습니다.")]),e("br"),e("b",[t._v("페이지를 이동하시겠습니까?")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){return e.stopPropagation(),t.closeDialog.apply(null,arguments)}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:function(e){return t.movePage()}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"mobile_print"},slot:"mobile_print"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("PC로 이용해주시기 바랍니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)]),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e("report-message-dialog",{ref:"report-message-dialog"})],1)},nl=[],ll={name:"analysis-counsel",components:{preFont:et["a"],SelectHeader:Za,ReportMessageDialog:gt,LoadingDialog:bt["a"]},data(){return{select_class_status:!1,select_student:"",isNameSearch:!1,class_students:[],class_item_lesson_day:"",class_students_settings:"",search_students:null,search_select_student:null,permission:0,chargeclass:[],origin_counsel:[],counsel_content:"",rightcol:0,to:"",move_page_status:0,print_btn_disabled:!0,print_col:11,loading_value:!1,loading_message:"잠시만 기다려주세요."}},beforeRouteLeave(t,e,s){if(this.to=t.name,1===this.move_page_status)return"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s(),!1;{let e=this.counsel_content?1:0;if(""!=e||0!=e)return this.openDialog("move_page"),!1;"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()}},created(){},mounted(){let t=parseInt(this.$storage.get("user").uclass);switch(t){case this.$store.state.UCLASS_ETC:case this.$store.state.UCLASS_TEACHER:this.permission=1,this.$axios.get(`${this.$host}/class/${this.$cid}/${this.$storage.get("user").id}/getchargeclass`).then(t=>{200==t.status?this.chargeclass=[...t.data]:204==t.status&&console.log("null")}).catch(t=>{console.log(t)});break;case this.$store.state.UCLASS_COUNSELOR:case this.$store.state.UCLASS_VICEPRESIDENT:case this.$store.state.UCLASS_PRESIDENT:this.permission=9;break;default:this.permission=0;break}},watch:{class_students(t){if(this.search_select_student){const e=this.$refs["select_header"];e.getStudentPromise&&e.getStudentPromise.then(()=>{this.class_students_settings="",t.forEach((t,e)=>{t.id===this.search_select_student.id&&(this.class_students_settings=e,this.clickStudent(this.search_select_student,!0))})})}},counsel_content(t){this.$store.state.editing_status=!!t},origin_counsel:{deep:!0,handler(t){let e=!1;for(let s=0,a=t.length;s{if(200==t.status){this.origin_counsel=[];for(let e of Object.entries(t.data)){let t={id:e[1].id,teacher_id:e[1].teacher_id,teacher_name:e[1].name,logo:e[1].logofile,content:e[1].counsel,postdate:e[1].postdate?e[1].postdate.split(" ")[0]:"",check_model:!1};this.origin_counsel.push(t)}}else 204==t.status&&(this.origin_counsel=[])}).catch(t=>{this.origin_counsel=[],console.log(t)})},addCounsel(){this.$axios.post(`${this.$host}/user/${this.$cid}/${this.select_student.id}/addcounsel`,{teacher_id:this.$storage.get("user").id,content:this.counsel_content}).then(t=>{if(200==t.status){let e={id:t.data,teacher_id:this.$storage.get("user").id,teacher_name:this.$storage.get("user").name,logo:this.$storage.get("user").logofile,content:this.counsel_content,postdate:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-")};e.content=e.content.replace(/(\r\n|\n)/g,"
");let s=e.postdate.split("-");e.postdate=s[0]+"-"+(s[1]<10?"0"+s[1]:s[1])+"-"+(s[2]<10?"0"+s[2]:s[2]),this.origin_counsel.unshift(e),this.counsel_content="",this.getCounsel()}}).catch(t=>{console.log(t)})},delConfirm(t){this.select_counsel_id=t,this.openDialog("del_counsel")},delCounsel(){this.$axios.post(`${this.$host}/user/${this.$cid}/delcounsel`,{id:this.select_counsel_id}).then(t=>{if(200==t.status){let t=this.origin_counsel.findIndex(t=>t.id==this.select_counsel_id);-1!=t&&this.origin_counsel.splice(t,1),this.closeDialog()}}).catch(t=>{console.log(t)})},movePage(){this.move_page_status=1,this.$router.push({name:this.to})},windowPrint(){if(this.$store.state.is_mobile)this.openDialog("mobile_print");else{let t=new Promise((t,e)=>{this.print_col=12;let s=document.getElementsByClassName("height-counsel-min")[0];s.scrollTo(0,0);let a=this.origin_counsel.filter(t=>t.check_model),i=0,o=1;for(let n=0,l=a.length;n=1181){let e=document.createElement("div");e.classList.add("pba"),e.style.pageBreakAfter="always",t.parentNode.insertBefore(e,t),i=t.getBoundingClientRect().height,o++}}document.body.style.cssText="height : "+296*o+"mm !important; background: #f8f9fd;",t()});t.then(()=>{window.print(),this.print_col=11;let t=document.getElementsByClassName("pba");if(t)for(let e=t.length-1;e>=0;e--)t[e].parentNode.removeChild(t[e]);document.body.style.height="",document.body.style.background=""})}},openMessageDialog(){const t=this.origin_counsel.filter(t=>t.check_model),e=this.$refs.select_header.class_items.find(t=>+t.value===+this.$refs.select_header.selected_class),s={user_id:+this.select_student.id,name:this.select_student.text,class_id:+e.value,class_name:e.text,content:t};this.$refs["report-message-dialog"].open("counsel",s)}},beforeDestroy(){this.allBusDestroy()}},rl=ll,cl=(s("0628"),Object(u["a"])(rl,ol,nl,!1,null,null,null)),dl=cl.exports,hl=function(){var t=this,e=t._self._c;return e(U["a"],{attrs:{id:"leaderboardvue",justify:"center"}},[e(j["a"],{directives:[{name:"show",rawName:"v-show",value:"list"==t.mode,expression:"mode == 'list'"}],staticClass:"py-0 white h-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[e("preFont"),e(H["a"],{staticClass:"pa-0 pt-3",attrs:{color:"white"}},[e("div",[e("div",{staticClass:"dotted mr-2"}),e("h2",{staticClass:"d-inline-block title"},[e("b",{staticClass:"menu-title"},[t._v("리더보드")])]),e("h3",{staticClass:"d-inline-block grey--text pl-2"},[e("small",[t._v(t._s(t.subtitle))])]),e("img",{staticClass:"printnone",attrs:{src:s("d3f7"),width:"0",height:"0"}}),e("img",{staticClass:"printnone",attrs:{src:s("517f"),width:"0",height:"0"}}),e("img",{staticClass:"printnone",attrs:{src:s("65cb"),width:"0",height:"0"}}),e("img",{staticClass:"printnone",attrs:{src:s("8559"),width:"0",height:"0"}})]),e("div",[e(J["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.tabResize,expression:"tabResize"}],staticClass:"elevation-0",attrs:{color:"success","background-color":"white",dark:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e("div",{attrs:{id:"open_div"}},[e(L["a"],{staticStyle:{"max-width":"120px"},attrs:{id:"open_btn",depressed:"",rounded:"",color:"#f2f3f5"},on:{click:function(e){return t.openDialog("set-open")}}},[e("span",{staticClass:"ml-1 mr-3",attrs:{id:"open_btn_text"}},[t._v("리더보드 설정")]),e(q["a"],{attrs:{color:"black"}},[t._v(" mdi-chevron-right ")])],1)],1),e(Q["a"]),t._l(["월간 레포트","누적 레포트","수상 이력"],(function(s,a){return[e(W["a"],{key:"tab-"+(a+1),attrs:{ripple:!1,href:"#tab-"+(a+1)},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",[t._v(t._s(s))])])]})),e(V["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.tabs,(function(s){return e(Y["a"],{key:s,attrs:{value:"tab-"+s,transition:!1,"reverse-transition":!1}},[1==s?e("div",[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"px-0 py-2",attrs:{cols:"12",sm:"5"}},[e(L["a"],{attrs:{depressed:"",rounded:"",color:"#f2f3f5"},on:{click:function(e){return t.openDialog("set-range")}}},[e("span",{staticClass:"mr-4 ml-1 grey--text"},[t._v(t._s(t.month.selclassname))]),e(q["a"],{attrs:{color:"grey"}},[t._v(" mdi-chevron-down ")])],1)],1),e(j["a"],{staticClass:"px-0 py-2",attrs:{cols:"12",sm:"7"}},[e("div",{staticClass:"float-right"},[e(L["a"],{staticClass:"mr-1 white--text btn-in-menu",class:0==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:"",height:"35"},on:{click:function(e){0!=t.month_toggle&&t.monthToggle(0)}}},[t._v("\n 두달 전\n ")]),e(L["a"],{staticClass:"mr-1 white--text btn-in-menu",class:1==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:"",height:"35"},on:{click:function(e){1!=t.month_toggle&&t.monthToggle(1)}}},[t._v("\n 지난달\n ")]),e(L["a"],{staticClass:"white--text btn-in-menu",class:2==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:"",height:"35"},on:{click:function(e){2!=t.month_toggle&&t.monthToggle(2)}}},[t._v("\n 이번달\n ")])],1),e(ot["a"],{ref:"monthdialog",refInFor:!0,staticStyle:{"box-shadow":"unset"},attrs:{"return-value":t.month.date,width:"290px",transition:!1},on:{"update:returnValue":function(e){return t.$set(t.month,"date",e)},"update:return-value":function(e){return t.$set(t.month,"date",e)}},scopedSlots:t._u([{key:"activator",fn:function({on:s}){return[e(X["a"],t._g({staticClass:"float-right mr-1 date-field c-date-picker",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),"hide-details":"",outlined:"",readonly:"",flat:"","single-line":""},model:{value:t.m_computedDateFormatted,callback:function(e){t.m_computedDateFormatted=e},expression:"m_computedDateFormatted"}},s))]}}],null,!0),model:{value:t.month.menu,callback:function(e){t.$set(t.month,"menu",e)},expression:"month.menu"}},[e(ba["a"],{attrs:{color:"success",scrollable:"","title-date-format":t.titleDateForm,type:"month",locale:"ko-kr",max:t.getToday()},on:{change:function(e){t.$refs.monthdialog[0].save(t.month.date),t.monthChange()}},model:{value:t.month.date,callback:function(e){t.$set(t.month,"date",e)},expression:"month.date"}},[e(L["a"],{attrs:{text:"",block:"",color:"black"},on:{click:function(e){t.month.menu=!1}}},[e("b",[t._v("취소")])])],1)],1),e(L["a"],{staticClass:"btn-in-menu float-right mr-1",attrs:{depressed:"",color:"success",outlined:""},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.downloadList(s)}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-down")]),t._v(" 목록\n 다운\n ")],1),e("div",{staticStyle:{clear:"both"}})],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{directives:[{def:P["b"],name:"resize",rawName:"v-resize",value:t.tableResize,expression:"tableResize"}],key:t.key.month.datatable,staticClass:"w-100",attrs:{headers:t.month.headers,items:t.month.items,"item-key":t.month.item_key,"no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"조회 가능한 레포트가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,options:t.month_options,"server-items-length":t.month.items_length,page:t.month.page,"items-per-page":t.month.items_per_page,"sort-by":t.month.sortby,"sort-desc":t.month.sortdesc},on:{"update:options":function(e){t.month_options=e},"click:row":t.toggleClassRow},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"month",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function({options:s}){return[e("DataTableItemsPerPage",{attrs:{options:t.month_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.month_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]}},{key:"item.rank",fn:function({item:s}){return[1==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/1st.png",width:"30"}}):2==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/2nd.png",width:"30"}}):3==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/3rd.png",width:"30"}}):e("span",[t._v("\n "+t._s(s.rank)+"\n ")])]}},{key:"item.class",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(t._s(s.class))])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"text-usn name-span"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.daycnt",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(t._s(s.daycnt)+"일")])]}},{key:"item.score",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(t._s(parseFloat(s.score).toFixed(2)))])]}}],null,!0)}),t.conditionByTutorial("t21")?e("ctooltip",{attrs:{wrap_position:"fixed",arrow_direction:"arrow-up",arrow_left:"48.5%",arrow_translate:"translate(-50%, 1px)",tool_top:t.tool_top_t21,tool_left:t.tool_left_t21,tool_translate:"translate(-50%, 70%)",tutorial_key:"t21"}}):t._e()],1)],1):2==s?e("div",[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"px-0 py-2",attrs:{cols:"12",sm:"5"}},[e(L["a"],{attrs:{depressed:"",rounded:"",color:"#f2f3f5"},on:{click:function(e){return t.openDialog("set-range")}}},[e("span",{staticClass:"mr-4 ml-1 grey--text"},[t._v(t._s(t.accrue.selclassname))]),e(q["a"],{attrs:{color:"grey"}},[t._v(" mdi-chevron-down ")])],1)],1),e(j["a"],{staticClass:"px-0 py-2",attrs:{cols:"12",sm:"7"}},[e(X["a"],{staticClass:"float-right mr-1 date-field c-date-picker",attrs:{placeholder:(new Date).toLocaleDateString().slice(0,-1).replace(/\. /g,"-"),"hide-details":"",outlined:"",flat:"","single-line":"",disabled:""},model:{value:t.ac_computedDateFormatted,callback:function(e){t.ac_computedDateFormatted=e},expression:"ac_computedDateFormatted"}}),e("b",{staticClass:"float-right px-1 mt-2 grey--text"},[t._v(" ~ ")]),e(X["a"],{staticClass:"float-right date-field grey lighten-3 c-date-picker",attrs:{"hide-details":"",outlined:"",flat:"","single-line":"",disabled:""}}),e(L["a"],{staticClass:"btn-in-menu float-right mr-1",attrs:{depressed:"",color:"success",outlined:""},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.downloadList(s)}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-down")]),t._v(" 목록\n 다운\n ")],1),e("div",{staticStyle:{clear:"both"}})],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{key:t.key.accrue.datatable,staticClass:"w-100",attrs:{headers:t.accrue.headers,items:t.accrue.items,"item-key":t.accrue.item_key,"no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"조회 가능한 레포트가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,options:t.accrue_options,"server-items-length":t.accrue.items_length,page:t.accrue.page,"items-per-page":t.accrue.items_per_page,"sort-by":t.accrue.sortby,"sort-desc":t.accrue.sortdesc},on:{"update:options":function(e){t.accrue_options=e},"click:row":t.toggleClassRow},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"accrue",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function({options:s}){return[e("DataTableItemsPerPage",{attrs:{options:t.accrue_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.accrue_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]}},{key:"item.rank",fn:function({item:s}){return[1==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/1st.png",width:"30"}}):2==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/2nd.png",width:"30"}}):3==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/3rd.png",width:"30"}}):e("span",[t._v("\n "+t._s(s.rank)+"\n ")])]}},{key:"item.class",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.class)+"\n ")])]}},{key:"item.name",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(s.name)+"\n ")])]}},{key:"item.daycnt",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v(" "+t._s(s.daycnt)+"일 ")])]}},{key:"item.score",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(parseFloat(s.score).toFixed(2))+"\n ")])]}}],null,!0)})],1)],1):3==s?e("div",[e(U["a"],{staticClass:"w-100 mgauto"},[e(j["a"],{staticClass:"py-2 px-0",attrs:{cols:"12",sm:"12",md:"12"}},[e(X["a"],{staticClass:"c-search-input float-left",attrs:{"append-icon":"mdi-magnify",id:"search",placeholder:"이름 검색",dense:"",solo:"",rounded:"",flat:"","single-line":"","hide-details":"",color:"success","background-color":"grey lighten-3"},on:{"click:append":function(e){return t.$store.dispatch("soundEffectPlay","click_button")}},model:{value:t.award.keyword,callback:function(e){t.$set(t.award,"keyword",e)},expression:"award.keyword"}}),e(L["a"],{staticClass:"btn-in-menu float-right",attrs:{depressed:"",color:"success",outlined:""},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.downloadList(s)}}},[e(q["a"],{attrs:{dark:"",small:""}},[t._v("mdi-arrow-down")]),t._v(" 목록\n 다운\n ")],1)],1)],1),e(U["a"],{staticClass:"w-100 mgauto"},[e(R["a"],{key:t.key.award.datatable,staticClass:"w-100",attrs:{headers:t.award.headers,items:t.award.items,"item-key":t.award.item_key,"single-expand":!0,"show-expand":!0,expanded:t.award.expanded,"expand-icon":"mdi-menu-down","no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"조회 가능한 레포트가 없습니다.","footer-props":{itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100],showFirstLastPage:!0,firstIcon:"mdi-chevron-double-left",lastIcon:"mdi-chevron-double-right"},"mobile-breakpoint":10,"hide-default-header":"","hide-default-footer":t.hide_default_footer,search:t.award.keyword,"sort-by":t.award.sortby,"sort-desc":t.award.sortdesc,options:t.award_options,page:t.award.page,"items-per-page":t.award.items_per_page},on:{"update:expanded":function(e){return t.$set(t.award,"expanded",e)},"click:row":t.toggleClassRow,"update:options":function(e){t.award_options=e}},scopedSlots:t._u([{key:"header",fn:function({props:s,on:a}){return[e("DataTableHeader",{attrs:{type:"award",defaultProps:s,on:a},on:{customSort:t.customSort}})]}},{key:"footer",fn:function({options:s}){return[e("DataTableItemsPerPage",{attrs:{options:t.award_options,"items-per-page":t.items_per_page},on:{"update:options":function(e){t.award_options=e},"update:itemsPerPage":function(e){t.items_per_page=e},"update:items-per-page":function(e){t.items_per_page=e},"items-per-page-changed":t.itemsPerPageChanged}})]}},{key:"item.data-table-expand",fn:function({expand:s,isExpanded:a}){return[e(q["a"],{directives:[{name:"show",rawName:"v-show",value:a,expression:"isExpanded"}],on:{click:function(t){return t.stopPropagation(),s(!a)}}},[t._v("mdi-menu-down")]),e(q["a"],{directives:[{name:"show",rawName:"v-show",value:!a,expression:"!isExpanded"}],on:{click:function(t){return t.stopPropagation(),s(!a)}}},[t._v("mdi-menu-right")])]}},{key:"item.award_cnt",fn:function({item:s}){return[e("span",{staticClass:"text-usn"},[t._v("\n "+t._s(parseInt(s.award_cnt))+"회\n ")])]}},{key:"expanded-item",fn:function({item:s}){return[e("td",{staticClass:"px-0",attrs:{colspan:t.award.headers.length+1}},[e(G["a"],{staticClass:"custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return[e("tbody",{staticClass:"expanded_table"},t._l(s.history,(function(s,a){return e("tr",[e("td"),e("td"),e("td",[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"text-usn"},[1==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/1st.png",width:"30"}}):2==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/2nd.png",width:"30"}}):3==s.rank?e("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:"//etltuzgdzyaa1067545.cdn.ntruss.com/vocatrain/assets/images/ranking/3rd.png",width:"30"}}):t._e()]),e("td",[t._v("\n "+t._s(s.year)+".\n "+t._s(s.month<10?"0"+s.month:s.month)+"\n ")])])})),0)]},proxy:!0}],null,!0)})],1)]}}],null,!0)})],1)],1):t._e(),e("pre-cautions",{attrs:{type:s,data:t.$data}})],1)})),1)],2)],1)])],1),"print_preview"==t.mode?e(j["a"],{attrs:{cols:"12"}},[e("div",{staticClass:"pa-0 pos-rel printland",staticStyle:{width:"29.7cm",height:"21cm"},attrs:{id:"certificate"}},[e("img",{staticStyle:{display:"block","max-width":"100%","max-height":"100%","object-fit":"contain",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},attrs:{id:"print_img",src:t.img_data_2}}),e("img",{staticClass:"cert_img w-100 h-100 printnone",style:t.month.select_user&&1==t.month.select_user.rank?"display: block;":"display: none;",attrs:{id:"certificate_img_1",src:s("d3f7")}}),e("img",{staticClass:"cert_img w-100 h-100 printnone",style:t.month.select_user&&2==t.month.select_user.rank?"display: block;":"display: none;",attrs:{id:"certificate_img_2",src:s("517f")}}),e("img",{staticClass:"cert_img w-100 h-100 printnone",style:t.month.select_user&&3==t.month.select_user.rank?"display: block;":"display: none;",attrs:{id:"certificate_img_3",src:s("65cb")}}),e("img",{staticClass:"cert_img w-100 h-100 printnone",style:t.month.select_user&&t.month.select_user.rank>3?"display: block;":"display: none;",attrs:{id:"certificate_img_4",src:s("8559")}}),e("div",{staticClass:"font-weight-bold fw-700 printnone",staticStyle:{"font-family":"'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif",position:"absolute",top:"48%",left:"40%","font-size":"70px","text-align":"center",width:"515px","white-space":"nowrap","overflow-x":"hidden","overflow-y":"visible !important",height:"120px"}},[t._v("\n "+t._s(t.month.select_user.name)+"\n ")]),e("div",{staticClass:"font-weight-bold printnone",staticStyle:{position:"absolute",top:"81.5%",left:"50.5%","font-size":"34.2px","text-align":"center",width:"306px","white-space":"nowrap",overflow:"hidden"}},[t._v("\n "+t._s(t.month.date.replace("년",". ").replace("월",""))+"\n ")]),e("div",{staticClass:"font-weight-bold printnone",staticStyle:{position:"absolute",top:"87.5%",left:"50.4%","font-size":"24px","text-align":"center",width:"309px","white-space":"nowrap",overflow:"hidden"}},[e("auto-text",{attrs:{minSize:14,size:24,text:""+t.$storage.get("user").cname,width:309,overflow:"clip"}})],1)])]):t._e(),"print"==t.mode?e(j["a"],{staticClass:"pa-0 white",attrs:{cols:"12",sm:"12",md:"12",lg:"12",id:"period_report"}},[e(U["a"],{staticClass:"w-100 mgauto mb-2 pb-0 border-ede thin-b over-y-scroll",attrs:{id:"leaderboard_img_row"}},[e(j["a"],{staticClass:"h-100"},[e("div",{staticClass:"h-100 w-100 pos-rel",attrs:{id:"here_leaderboard_img"}},[e("img",{staticStyle:{"max-width":"100%","max-height":"100%","object-fit":"contain",position:"relative",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},attrs:{src:t.img_data}})])])],1),e(U["a"],{key:t.month_btn_key,staticClass:"printnone w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[e("input",{attrs:{type:"hidden"},domProps:{value:t.month_btn_key}}),e(j["a"],{staticClass:"pa-0",attrs:{cols:"6"}},[e(L["a"],{staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",color:"#ffd91a"},on:{click:t.openMessageDialog}},[e("span",{staticClass:"white--text fs-1rem"},[t._v("우수상장 발송")])])],1),e(j["a"],{staticClass:"pa-0",attrs:{cols:"6"}},[e(L["a"],{ref:"save_btn",staticClass:"success",staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",outlined:""},on:{click:t.openSaveOptionDialog}},[e("span",{staticClass:"white--text fs-1rem"},[t._v("우수상장 출력")])])],1)],1)],1):t._e(),e("Dialogs",[e("div",{staticClass:"radio-dialog",attrs:{slot:"set-open"},slot:"set-open"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("리더보드 설정")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e("div",{staticClass:"d-flex align-center mb-3"},[e("label",{staticClass:"ml-4",staticStyle:{"font-size":"1.2rem",color:"#0009",flex:"0.4"}},[t._v("\n 순위 공개\n ")]),e(te["a"],{staticClass:"justify-end",staticStyle:{flex:"0.6"},attrs:{mandatory:"",value:t.rankopt.open},model:{value:t.rankopt.open,callback:function(e){t.$set(t.rankopt,"open",e)},expression:"rankopt.open"}},[e(L["a"],{style:1===+t.rankopt.open?"background-color: #1bd05b;":"",attrs:{color:1===+t.rankopt.open?"white":"",outlined:"",value:1}},[t._v("\n ON\n ")]),e(L["a"],{style:0===+t.rankopt.open?"background-color: red;":"",attrs:{color:0===+t.rankopt.open?"white":"",outlined:"",value:0}},[t._v("\n OFF\n ")])],1)],1),e("div",{staticClass:"d-flex align-center"},[e("label",{staticClass:"ml-4",staticStyle:{"font-size":"1.2rem",color:"#0009",flex:"0.4"}},[t._v("\n 순위팝업 설정\n ")]),e(te["a"],{staticClass:"justify-end",staticStyle:{flex:"0.6"},attrs:{mandatory:"",value:t.rankopt.popup},model:{value:t.rankopt.popup,callback:function(e){t.$set(t.rankopt,"popup",e)},expression:"rankopt.popup"}},[e(L["a"],{style:1===+t.rankopt.popup?"background-color: #1bd05b;":"",attrs:{color:1===+t.rankopt.popup?"white":"",outlined:"",value:1}},[t._v("\n ON\n ")]),e(L["a"],{style:0===+t.rankopt.popup?"background-color: red;":"",attrs:{color:0===+t.rankopt.popup?"white":"",outlined:"",value:0}},[t._v("\n OFF\n ")])],1)],1)]),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitOpenSet}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_open_btn",staticClass:"cursor",class:t.detectRankOpt?"success--text":""},[t._v("\n "+t._s(t.detectRankOpt?"확인":"취소")+"\n ")])])])],1)],1),e("div",{staticClass:"radio-dialog",attrs:{slot:"set-range"},slot:"set-range"},[e(M["c"],{staticClass:"justify-start headline text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("리더보드 범위")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.changeRangeSet},model:{value:t.rangesetting,callback:function(e){t.rangesetting=e},expression:"rangesetting"}},[e(nt["a"],{staticClass:"custom-radio",attrs:{label:"클래스 전체",value:"-1",color:"success"}}),t._l(t.classlist,(function(s,a){return e(nt["a"],{key:"radio_"+a,staticClass:"custom-radio",attrs:{label:s.text,value:s.value,color:"success"}},[t._v("\n "+t._s(s.name)+"\n ")])}))],2)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitRangeSet}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_range_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1),e("div",{attrs:{slot:"mobile_print"},slot:"mobile_print"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("모바일 전용 서비스 개선중으로 PC로 이용해주시기 바랍니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1),e("div",{attrs:{slot:"mobile_filedown"},slot:"mobile_filedown"},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("디바이스 내 다운로드 폴더에 저장되었습니다.")])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px",width:"100%"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("확인")])])])],1)],1)]),e(ot["a"],{attrs:{origin:"center center",persistent:!1,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":380},on:{"click:outside":t.closeSaveOptionDialog},model:{value:t.saveOptDialog,callback:function(e){t.saveOptDialog=e},expression:"saveOptDialog"}},[e(it["a"],{staticClass:"radio-dialog"},[e(M["c"],{staticClass:"justify-start text-center"},[e("h3",{staticClass:"title"},[e("b",[t._v("우수상장 출력")])])]),e(M["b"],{staticStyle:{"max-height":"167px"}},[e(lt["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":""},on:{change:t.changeSaveOption},model:{value:t.save_option_rg,callback:function(e){t.save_option_rg=e},expression:"save_option_rg"}},[e(nt["a"],{staticClass:"custom-radio",attrs:{label:"출력하기",value:"0",color:"success"}}),e(nt["a"],{staticClass:"custom-radio",attrs:{label:"파일저장",value:"2",color:"success"}})],1)],1),e(M["a"],{staticClass:"justify-end"},[e(L["a"],{attrs:{text:"",ripple:!1},on:{click:t.submitSaveOption}},[e("h3",{staticClass:"title-1"},[e("b",{ref:"set_save_btn",staticClass:"cursor"},[t._v("취소")])])])],1)],1)],1),t.loading_value?e("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}}):t._e(),e("report-message-dialog",{ref:"report-message-dialog"})],1)},ul=[],_l=s("5e33"),pl=s.n(_l),ml={name:"leaderboard",components:{Dialogs:st["a"],LoadingDialog:bt["a"],AutoText:pl.a,ctooltip:Lt["a"],preFont:et["a"],preCautions:at["a"],ReportMessageDialog:gt},data(){return{tab:null,tabs:3,subtitle:"월간 성적 우수자를 조회합니다.",type:"tmonth",mode:"list",classlist:[],rangesetting:null,cert_img:"",img_data:"",img_data_2:"",save_href:"",save_download:"",key:{month:{datatable:0},accrue:{datatable:0},award:{datatable:0}},month:{selclassid:"",selclassname:"클래스 전체",select_user:null,menu:!1,date:"",canvas:"",_tmonth:"",_lmonth:"",_2month:"",headers:[{text:"순위",value:"rank",align:"left",sortable:!0},{text:"클래스",value:"class",align:"left",sortable:!1},{text:"이름",value:"name",align:"left",sortable:!1},{text:"학습일",value:"daycnt",align:"left",sortable:!1},{text:"총합 점수",value:"score",align:"left",sortable:!1}],items:[],expanded:[],item_key:"rid",items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0},month_options:{},month_toggle:2,month_btn_key:0,accrue:{selclassid:"",selclassname:"클래스 전체",menu:!1,date:"",_tmonth:"",_lmonth:"",_2month:"",headers:[{text:"순위",value:"rank",align:"left",sortable:!0},{text:"클래스",value:"class",align:"left",sortable:!1},{text:"이름",value:"name",align:"left",sortable:!1},{text:"학습일",value:"daycnt",align:"left",sortable:!1},{text:"총합 점수",value:"score",align:"left",sortable:!1}],items:[],item_key:"rid",items_length:0,page:1,items_per_page:10,sortby:void 0,sortdesc:void 0},accrue_options:{},award:{keyword:"",headers:[{text:"순위",value:"rank",align:"left",sortable:!1},{text:"클래스",value:"class",align:"left",sortable:!1},{text:"이름",value:"name",align:"left",sortable:!1},{text:"수상 횟수",value:"award_cnt",align:"left",sortable:!1}],items:[],item_key:"uid",expanded:[],sortby:void 0,sortdesc:void 0},award_options:{},hide_default_footer:!1,loading_value:!1,loading_message:"잠시만 기다려주세요.",th_width:"",tool_top_t21:"-1000px",tool_left_t21:"-1000px",origin_rankopt:null,rankopt:{open:1,popup:0},saveOptDialog:!1,save_option_rg:null}},beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created:function(){document.body.classList.add("leaderboard");let t=this.getToday(),e=new Date((new Date).getFullYear(),(new Date).getMonth()+1);e=new Date(e-1),this.month.date=t.split("-")[0]+"년 "+t.split("-")[1]+"월",this.accrue.date=t,this.origin_rankopt={...this.rankopt},this.month.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"month"),this.accrue.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"accrue"),this.award.items_per_page=this.getPageListNumberOfStorage(this.$route.path,"award")},mounted(){this.conditionByTutorial("t20")&&this.$store.dispatch("updateTutorial",["t20"]).then(()=>{this.$parent.$parent.$parent.$parent.layout_ctooltip+=1});let t=`${this.$host}/class/${this.$cid}/getclassroom?by=name`;this.$axios.get(t).then(t=>{if(200==t.status)for(var[e,s]of Object.entries(t.data))if(0!=s.id||0!=Number(s.student_cnt)){let t={text:s.name,value:s.id};this.classlist.push(t)}}).catch(t=>{console.log(t)}),this.$axios.get(`${this.$host}/academy/${this.$cid}/getrankopt?v=2`).then(t=>{200==t.status&&(this.rankopt.open=+t.data.open_rank,this.rankopt.popup=+t.data.popup_rank,this.origin_rankopt={...this.rankopt})}).catch(t=>{console.log(t)});let e,s=new Date,a="";e=new Date(s.getFullYear(),s.getMonth(),1),a=new Date(e.setDate(e.getDate()-1)),0==a.getMonth()?this._2month=a.getFullYear()-1+"-12":this._2month=a.getFullYear()+"-"+(a.getMonth()<10?"0"+a.getMonth():a.getMonth()),e=new Date(s.getFullYear(),s.getMonth()+1,1),a=new Date(e.setDate(e.getDate()-1)),0==a.getMonth()?this._lmonth=a.getFullYear()-1+"-12":this._lmonth=a.getFullYear()+"-"+(a.getMonth()<10?"0"+a.getMonth():a.getMonth()),e=new Date(s.getFullYear(),s.getMonth()+2,1),a=new Date(e.setDate(e.getDate()-1)),0==a.getMonth()?this._tmonth=a.getFullYear()-1+"-12":this._tmonth=a.getFullYear()+"-"+(a.getMonth()<10?"0"+a.getMonth():a.getMonth()),Tr.$on("close_event",t=>{1==t.status&&(this.rankopt={...this.origin_rankopt},this.$refs.set_open_btn.innerText="취소",this.$refs.set_open_btn.classList.remove("success--text"))})},computed:{m_computedDateFormatted(){return this.formatDate(this.month.date)},ac_computedDateFormatted(){return this.formatDate(this.accrue.date)},detectRankOpt(){return JSON.stringify(this.rankopt)!==JSON.stringify(this.origin_rankopt)}},watch:{month:{deep:!0,handler(t){t.menu&&this.$store.dispatch("soundEffectPlay","after_popup")}},mode(t){if("list"==t){let t=document.getElementsByClassName("v-tabs-slider-wrapper");t&&(t[0].style.width="90px",t[0].style.left="0px","tab-2"==this.tab?t[0].style.left="90px":"tab-3"==this.tab&&(t[0].style.left="180px"))}},tab(t){"list"!=this.mode&&(this.mode="list"),"tab-1"==t?this.subtitle="월간 성적 우수자를 조회합니다.":"tab-2"==t?this.subtitle="누적 성적 우수자를 조회합니다.":"tab-3"==t&&(this.subtitle="성적우수자 수상 이력을 확인합니다.",0==this.award.items.length&&this.getBoard()),this.tabResize()},month_options:{handler(){this.month.page=this.month_options.page,this.month.items_per_page=this.month_options.itemsPerPage,this.month.sortby=this.month.sortby,this.month.sortdesc=this.month.sortdesc,this.getBoard(),this.updatePageListNumberOfStorage(this.$route.path,"month",this.month_options.itemsPerPage)},deep:!0},month_toggle(t){},accrue_options:{handler(){this.accrue.page=this.accrue_options.page,this.accrue.items_per_page=this.accrue_options.itemsPerPage,this.accrue.sortby=this.accrue.sortby,this.accrue.sortdesc=this.accrue.sortdesc,this.getBoard(),this.updatePageListNumberOfStorage(this.$route.path,"accrue",this.accrue_options.itemsPerPage)},deep:!0},award_options:{handler(){this.award.page=this.award_options.page,this.award.items_per_page=this.award_options.itemsPerPage,this.award.sortby=this.award.sortby,this.award.sortdesc=this.award.sortby,this.getBoard(),this.updatePageListNumberOfStorage(this.$route.path,"award",this.award_options.itemsPerPage)},deep:!0}},methods:{getPageListNumberOfStorage:dt["a"],updatePageListNumberOfStorage:dt["f"],changeOpenSet(t){this.$refs.set_open_btn.innerText="확인",this.$refs.set_open_btn.classList.add("success--text")},submitOpenSet(){"확인"==this.$refs.set_open_btn.innerText&&this.$axios.post(`${this.$host}/academy/${this.$cid}/updateinfo`,{opt:this.rankopt}).then(t=>{200===t.status&&(this.origin_rankopt={...this.rankopt}),this.openAlert("change_setting_success")}).catch(t=>{console.log(t)}),this.closeDialog("set-open")},changeRangeSet(t){(t||0==t)&&("tab-1"==this.tab?this.month.selclassid=t:"tab-2"==this.tab&&(this.accrue.selclassid=t),this.$refs.set_range_btn.innerText="확인",this.$refs.set_range_btn.classList.add("success--text"))},submitRangeSet(){if("확인"==this.$refs.set_range_btn.innerText){let t=this.classlist.findIndex(t=>t.value==("tab-1"==this.tab?this.month.selclassid:this.accrue.selclassid));-1!=t?"tab-1"==this.tab?(this.month.page=1,this.month.selclassname=this.classlist[t].text):(this.accrue.page=1,this.accrue.selclassname=this.classlist[t].text):"tab-1"==this.tab?(this.month.page=1,this.month.selclassname="클래스 전체"):(this.accrue.page=1,this.accrue.selclassname="클래스 전체"),this.getBoard()}this.closeDialog("set-range")},formatDate(t){if(!t)return null;let e,s,a,i="";return"tab-1"==this.tab?t.match("년")?(e=t.split("년 ")[0],s=t.split("년 ")[1].replace("월",""),i=`${e}년 ${s}월`):([e,s]=t.split("-"),i=`${e}년 ${s}월`):([e,s,a]=t.split("-"),i=`${e}-${s}-${a}`),i},titleDateForm:function(t){let e,s,a="";return t.match("년")?(e=t.split("년 ")[0],s=t.split("년 ")[1].replace("월",""),a=`${e}년 ${s}월`):([e,s]=t.split("-"),a=`${e}년 ${s}월`),a},monthChange(){this.type="select_ym",this.month.page=1,this.month.date==this._tmonth?(2!=this.month_toggle&&this.getBoard(),this.month_toggle=2):this.month.date==this._lmonth?(1!=this.month_toggle&&this.getBoard(),this.month_toggle=1):this.month.date==this._2month?(0!=this.month_toggle&&this.getBoard(),this.month_toggle=0):(this.month_toggle="date",this.getBoard())},monthToggle(t){this.$store.dispatch("soundEffectPlay","click_button"),this.month_toggle=t,this.month.page=1,0==t?(this.type="2month",this.month.date=this._2month):1==t?(this.type="lmonth",this.month.date=this._lmonth):2==t?(this.type="tmonth",this.month.date=this._tmonth):this.month_toggle="date",this.getBoard()},toggleClassRow(t){if("tab-1"==this.tab){this.$storage.get("user").is_mobile||(this.loading_value=!0),console.log(t),this.img_data="",this.img_data_2="",this.mode="print_preview",this.month.select_user=t,this.save_download="leaderboard_"+this.month.date.replace("년","_").replace("월","")+"_"+this.$cid+"_"+this.month.select_user.rank+".jpg",this.save_download=this.save_download.replace(/ /g,"");let e=new Promise(e=>{setTimeout(()=>{ra()(document.getElementById("certificate")).then(s=>{this.img_data=s.toDataURL("image/jpeg"),this.img_data_2=s.toDataURL("image/jpeg"),this.$storage.get("user").is_mobile?this.$axios.post(`${this.$host}/result/${this.$cid}/uploadboard/${t.uid}`,{image:s.toDataURL(),filename:this.save_download}).then(t=>{console.log(t.status)}).catch(t=>{console.log(t),this.$storage.get("user").is_mobile||(this.loading_value=!1)}):this.save_href=s.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream"),s.style.cssText="max-width: 100%; max-height: 100%; object-fit: contain; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%);",e()})},200)});e.then(()=>{this.conditionByTutorial("t21")&&this.$store.dispatch("updateTutorial",["t21"]).then(()=>{this.$forceUpdate(),this.$parent.$parent.$parent.$parent.layout_ctooltip+=1}),this.mode="print",this.$nextTick(()=>{this.save_download=this.save_download}),this.topNavBarChange(),this.$storage.get("user").is_mobile||(this.loading_value=!1)})}else{if("tab-2"==this.tab)return!1;"tab-3"==this.tab&&(this.tabResize(),this.award.expanded.length>0&&this.award.expanded[0].uid==t.uid?(this.select_id="",this.award.expanded.pop()):(this.select_id=t.uid,this.award.expanded.pop(),this.award.expanded.push(t),this.$nextTick(()=>{const t=document.querySelector(".expanded_table");let e=t.getElementsByTagName("tr");for(let s=0,a=e.length;s{if(this[t].items=[],this[t].items_length=200===e.status?e.data.records:0,200==e.status){if("tab-1"==this.tab){if("F"==this.$storage.get("user").product_type&&0==s){let t={uid:0,rank:1,class:"체험판 샘플",name:"홍길동",daycnt:3,score:100};this.month.items.push(t),this.month.items_length+=1,this.$nextTick(()=>{let t=document.getElementsByClassName("name-span");if(t.length>0){let e=t[0].getBoundingClientRect().bottom,s=t[0].getBoundingClientRect().left,a=t[0].getBoundingClientRect().right;this.tool_top_t21=e+"px",this.tool_left_t21=s+(a-s)/2+"px"}})}for(var[a,i]of Object.entries(e.data.rows)){let t={uid:i.user_id,rank:i.rank,class:i.classname?i.classname:"",name:i.name,daycnt:i.daycnt,score:i.tot_score};this.month.items.push(t)}this.$nextTick(()=>{let t=document.getElementsByClassName("name-span");if(t.length>0){let e=t[0].getBoundingClientRect().bottom,s=t[0].getBoundingClientRect().left,a=t[0].getBoundingClientRect().right;this.tool_top_t21=e+"px",this.tool_left_t21=s+(a-s)/2+"px"}})}else if("tab-2"==this.tab)for(var[a,i]of Object.entries(e.data.rows)){let t={rank:i.rank,class:i.classname?i.classname:"",name:i.name,daycnt:i.daycnt,score:i.tot_score};this.accrue.items.push(t)}else if("tab-3"==this.tab)for(var[a,i]of Object.entries(e.data.rows)){let t={uid:i.user_id,rank:i.rank,class:i.class_name?i.class_name:"",name:i.name,award_cnt:i.award_cnt,history:i.history};this.award.items.push(t)}}else if(204==e.status&&"tab-1"==this.tab&&"F"==this.$storage.get("user").product_type){let t={uid:0,rank:1,class:"체험판 샘플",name:"홍길동",daycnt:3,score:100};this.month.items.push(t),this.month.items_length=1,this.$nextTick(()=>{let t=document.getElementsByClassName("name-span");if(t.length>0){let e=t[0].getBoundingClientRect().bottom,s=t[0].getBoundingClientRect().left,a=t[0].getBoundingClientRect().right;this.tool_top_t21=e+"px",this.tool_left_t21=s+(a-s)/2+"px"}})}this.loading_value=!1}).catch(t=>{console.log(t),this.loading_value=!1})},awardClassChange(){this.getBoard()},windowPrint(){this.$store.state.is_mobile?this.openDialog("mobile_print"):(this.$store.dispatch("soundEffectPlay","click_button"),this.mode="print_preview",this.$nextTick(()=>{let t=document.getElementById("certificate").cloneNode(!0);t.setAttribute("id","clone_certificate"),document.body.appendChild(t),document.getElementById("app").style.display="none",window.print();let e=document.getElementById("clone_certificate");e.parentNode.removeChild(e),this.mode="print",document.getElementById("app").style.display="block"}))},onDown(){if(this.$storage.get("user").is_mobile)window.parent.postMessage({action:"filedown",link:"https://ng.irontrain.co.kr"==this.$host?"http://106.10.52.151/images/leaderboard/"+this.save_download:"https://api.tabstudy.co.kr/media/images/leaderboard/"+this.save_download},"*"),this.openDialog("mobile_filedown");else{this.$store.dispatch("soundEffectPlay","click_button");let t=document.createElement("a");t.href=this.save_href,t.download=this.save_download,t.click()}},customSort(t,e,s){this[t].sortby=e,this[t].sortdesc=s},tabResize(){setTimeout(()=>{let t=document.getElementById(this.tab),e=t.getElementsByClassName("v-data-table")[0],s=e.getElementsByTagName("thead")[0],a=s.getElementsByTagName("tr")[0],i=a.getElementsByTagName("th");["tab-1","tab-2"].includes(this.tab)?this.th_width=i[1].offsetWidth:(i[2].style.width=this.th_width+"px",i[3].style.width=this.th_width+"px")},0)},tableResize(){"tab-1"==this.tab&&this.$nextTick(()=>{let t=document.getElementsByClassName("name-span");if(t.length>0){let e=t[0].getBoundingClientRect().bottom,s=t[0].getBoundingClientRect().left,a=t[0].getBoundingClientRect().right;this.tool_top_t21=e+"px",this.tool_left_t21=s+(a-s)/2+"px"}})},downloadList(t){let e=`${this.$host}/leaderboarddownload.php?cid=${this.$cid}&idx=${t}`;1==t?(e+="&type="+this.type,""!==this.month.selclassid&&(e+="&class="+this.month.selclassid),"select_ym"==this.type&&(e+="&sym="+this.month.date)):2==t?""!==this.accrue.selclassid&&(e+="&class="+this.accrue.selclassid):3==t&&""!=this.award.keyword.replace(/ /g,"")&&(e+="&keyword="+this.award.keyword),window.open(e)},openSaveOptionDialog(){this.$store.dispatch("soundEffectPlay","click_button"),this.saveOptDialog=!0},closeSaveOptionDialog(){this.save_option_rg=null,this.$refs.set_save_btn.innerText="취소",this.$refs.set_save_btn.classList.remove("success--text"),this.saveOptDialog=!1},changeSaveOption(){this.$refs.set_save_btn.innerText="확인",this.$refs.set_save_btn.classList.add("success--text")},submitSaveOption(){"확인"==this.$refs.set_save_btn.innerText&&(0==this.save_option_rg?(this.closeSaveOptionDialog(),setTimeout(()=>{this.windowPrint()},500)):2==this.save_option_rg&&this.onDown()),this.closeSaveOptionDialog()},openMessageDialog(){console.log(this.month.select_user);const t={user_id:+this.month.select_user.uid,name:this.month.select_user.name,class_name:this.month.select_user.class,date:this.month.date,rank:this.month.select_user.rank+"위",base64:this.save_href};this.$refs["report-message-dialog"].open("leaderboard",t)}},beforeDestroy(){this.allBusDestroy(),document.body.classList.remove("leaderboard")}},gl=ml,bl=(s("2af8"),Object(u["a"])(gl,hl,ul,!1,null,null,null)),fl=bl.exports;i["a"].use(T["a"]);var yl=new T["a"]({mode:"hash",routes:[{name:"index",path:"/",meta:{layout:"layout-default"},component:()=>Promise.all([s.e("vendors"),s.e("chunk-06996f42")]).then(s.bind(null,"d504"))},{name:"login",path:"/login",meta:{layout:"layout-login"},component:s("a55b").default},{name:"setup",path:"/setup",meta:{layout:"layout-setup"},component:()=>Promise.all([s.e("vendors"),s.e("chunk-3fea6e11")]).then(s.bind(null,"da7d"))},{name:"join",path:"/join",meta:{layout:"layout-default"},component:()=>s.e("chunk-183b9727").then(s.bind(null,"c283"))},{name:"startpage",path:"/startpage",meta:{layout:"layout-default"},component:N,children:[{path:"",name:"startpage-index",component:xt},{path:"notice",name:"startpage-notice",component:xt},{path:"noticeoper",name:"startpage-notice-oper",component:Pt},{path:"manual",name:"startpage-manual",component:Zt},{path:"errorreport",name:"startpage-errorreport",component:re},{path:"paymentview",name:"startpage-paymentview",component:ge},{path:"admininfo",name:"startpage-admininfo",component:qt}]},{name:"user",path:"/user",meta:{layout:"layout-default"},component:xe,children:[{path:"",name:"user-index",component:Ae},{path:"teacher",name:"user-teacher",component:Ae},{path:"teacheroper",name:"user-teacher-oper",component:Ie},{path:"class",name:"user-class",component:je},{path:"classoper",name:"user-class-oper",component:We},{path:"student",name:"user-student",component:ga},{path:"studentoper",name:"user-student-oper",component:wa},{path:"studentexcel",name:"user-studentexcel",component:Ea},{path:"assignclass",name:"user-assignclass",component:ja}]},{name:"lesson",path:"/lesson",meta:{layout:"layout-default"},component:Ha,children:[{path:"",name:"lesson-index",component:ri},{path:"schedule",name:"lesson-schedule",component:ri},{path:"bookmaking",name:"lesson-bookmaking",component:eo},{path:"booklist",name:"lesson-booklist",component:co},{path:"booklistoper",name:"lesson-booklist-oper",component:bo},{path:"bookprint",name:"lesson-bookprint",component:So},{path:"testprint",name:"lesson-testprint",component:To},{path:"testmanaging",name:"lesson-testmanaging",component:Lo}]},{name:"analysis",path:"/analysis",meta:{layout:"layout-default"},component:Fo,children:[{path:"",name:"analysis-index",component:In},{path:"reportview",name:"analysis-reportview",component:In},{path:"studyview",name:"analysis-studyview",component:Jo},{path:"comment",name:"analysis-comment",component:Xn},{path:"individualtotal",name:"analysis-individualtotal",component:al},{path:"counsel",name:"analysis-counsel",component:dl},{path:"leaderboard",name:"analysis-leaderboard",component:fl}]},{path:"*",meta:{layout:"layout-notfound"}}]}),vl={cr:"",UCLASS_STUDENT_QUIT:10,UCLASS_STUDENT:19,UCLASS_ETC:20,UCLASS_TEACHER:21,UCLASS_COUNSELOR:22,UCLASS_VICEPRESIDENT:28,UCLASS_PRESIDENT:29,SMART_BIRTH:1,SMART_RATE:2,SMART_EVAL:3,NOTICE_ALL:11,NOTICE_NEWS:12,NOTICE_ROOM:13,HEAD_NOTICE:21,HEAD_UPDATE:22,HEAD_SERVER:23,NOTICE_RANGE_ALL:0,NOTICE_RANGE_STU:1,NOTICE_RANGE_PAR:2,user:{},uid:"",uname:"",uclass:"",uphone:"",ulogofile:"",is_mobile:"",cid:"",cname:"",clogo:"",now_users_cnt:"",first_logo_timestamp:"",first_profile_timestamp:"",message_cnt:0,is_random:"",is_skip:"",is_scoringnext:"",is_studentcontrol:"",is_sound:!0,init_sound:!1,editing_status:!1,join_cnt:0,storybook_color:{1:"#ff4273",2:"#ff4273",3:"#fe5d26",4:"#fe5d26",5:"#ffc74a",6:"#ffc74a",7:"#1fd583",8:"#1fd583",9:"#3a86ff",10:"#3a86ff",11:"#4169a1",12:"#4169a1",13:"#8b53da",14:"#8b53da",15:"#575757",16:"#575757"},isChannelTalkHide:!1},xl={getUclass_txt:()=>t=>{const e={10:"퇴원생",19:"재원생",20:"기타",21:"선생님",22:"상담실장",28:"부원장",29:"대표 원장"};return e[t]},getUclass:()=>t=>{const e={"퇴원생":10,"재원생":19,"기타":20,"선생님":21,"상담실장":22,"부원장":28,"대표 원장":29};return e[t]},getNtype_txt:()=>t=>{const e={1:"생일축하",2:"진도안내",3:"평가알람",11:"전체공지",12:"학원소식",13:"반별공지",21:"공지사항",22:"업데이트",23:"서버점검"};return e[t]},getGradeText:()=>t=>{const e={e1:"초등학교 1학년",e2:"초등학교 2학년",e3:"초등학교 3학년",e4:"초등학교 4학년",e5:"초등학교 5학년",e6:"초등학교 6학년",m1:"중학교 1학년",m2:"중학교 2학년",m3:"중학교 3학년",h1:"고등학교 1학년",h2:"고등학교 2학년",h3:"고등학교 3학년",etc:"기타"};return e[t]},getGradeCode:()=>t=>{const e={"초등학교 1학년":"e1","초등학교 2학년":"e2","초등학교 3학년":"e3","초등학교 4학년":"e4","초등학교 5학년":"e5","초등학교 6학년":"e6","중학교 1학년":"m1","중학교 2학년":"m2","중학교 3학년":"m3","고등학교 1학년":"h1","고등학교 2학년":"h2","고등학교 3학년":"h3","기타":"etc"};return e[t]},getUser(t){return t.user},conditionByTutorial(t){return e=>{let s=!1;if("F"===t.user.product_type&&1===t.user.tutorial.length){s=0==t.user.tutorial[0][e];const a=["t11","t15","t17","t18","t20","t21","t22","t23"];if(a.includes(e)){const a="t"+(+e.replace("t","")-1);s=s&&1==t.user.tutorial[0][a]}}return s}}},kl={checkref(t,e){t.cr=e.cr},setUser(t,e){console.log("setUser",e),t.user=e},save_user_info(t,e){t.user=e,t.uid=e.id,t.uname=e.name,t.is_mobile=e.is_mobile,t.is_sound="0"==e.is_sound,t.ulogofile=e.logofile,t.cid=e.academy_id,t.cname=e.cname,t.clogo=e.clogo,t.now_users_cnt=e.now_users_cnt,t.message_cnt=+e.message_cnt||0},initSound(t,e){t.init_sound=e},setUserLogoFile(t,e){t.ulogofile=e;var s=i["a"].prototype.$storage.get("user");s.ulogofile=t.ulogofile||"",i["a"].prototype.$storage.set("user",s)},setLogoFile(t,e){t.clogo=e;var s=i["a"].prototype.$storage.get("user");s.clogo=t.clogo||"",i["a"].prototype.$storage.set("user",s)},channelTalkHide(t,e){t.isChannelTalkHide=e}},wl={restoreState({commit:t},e){t("save_user_info",e)},fbGetAcademy({dispatch:t},e){let s=e.cid;Ns.collection("academy").doc(s).get().then(e=>{e.exists||t("fbSetAcademy",{ref:e.ref})})},fbSetAcademy(t){"ref"in t?(console.log("1"),t.ref.set({logo_timestamp:""})):"cid"in t&&(console.log("2"),Ns.collection("academy").doc(t.cid).set({logo_timestamp:""}))},fbRTGetLogo({state:t},e){const s=i["a"].prototype.$host;let o=e.cid;Ns.collection("academy").doc(o).onSnapshot(e=>{e.data()&&(""==t.first_logo_timestamp?t.first_logo_timestamp=e.data().logo_timestamp:t.first_logo_timestamp!=e.data().logo_timestamp&&a["a"].get(`${s}/academy/${t.cid}/getlogo`).then(e=>{200==e.status?t.clogo="data:image/jpg;base64,"+e.data:202==e.status?t.clogo="":204==e.status&&console.log("Not Found")}).catch(t=>{console.log(t)}))})},fbChangeLogo(t){"ref"in t?console.log("1"):"cid"in t&&(console.log("2"),Ns.collection("academy").doc(t.cid).set({logo_timestamp:(new Date).getTime()}))},fbGetUser({dispatch:t},e){let s=e.uid;Ns.collection("users").doc(s).get().then(e=>{e.exists||t("fbSetUser",{ref:e.ref})})},fbSetUser(t){"ref"in t?t.ref.set({profile_timestamp:""}):"uid"in t&&Ns.collection("users").doc(t.uid).set({profile_timestamp:""})},fbRTGetImage({state:t},e){const s=i["a"].prototype.$host;let o=e.uid;Ns.collection("users").doc(o).onSnapshot((function(e){e.data()&&(""==t.first_profile_timestamp?t.first_profile_timestamp=e.data().profile_timestamp:t.first_profile_timestamp!=e.data().profile_timestamp&&a["a"].get(`${s}/user/${t.cid}/${o}/getprofile`).then((function(e){200==e.status?t.ulogofile="data:image/"+e.data.type+";base64,"+e.data.data:202==e.status?t.ulogofile="":204==e.status&&console.log("Not Found")})).catch((function(t){console.log(t)})))}))},fbChangeProfile(t){"ref"in t?console.log("1"):"uid"in t&&(console.log("2"),Ns.collection("users").doc(t.uid).set({profile_timestamp:(new Date).getTime()}))},soundEffectPlay({commit:t,state:e},s){if(e.is_mobile&&e.is_sound){if(0===e.sound_effect)return;let a=document.getElementById("s_"+s);a&&a.currentTime>0&&!a.paused&&!a.ended&&a.readyState>2&&(a.pause(),a.currentTime=0),a.play(),"after_login"==s&&t("initSound",!0)}},updateAcademy({state:t},e){const s=i["a"].prototype.$host;a["a"].post(`${s}/academy/${t.cid}/update`,e).then(t=>t)},updateReport({state:t},e){return new Promise((t,s)=>{const o=i["a"].prototype.$host;a["a"].post(`${o}/v1/result/updatereport/${e.ur_id}`,e).then(e=>{t(e)}).catch(t=>{s(t)})})},sendMailForDev({state:t},e){const s=i["a"].prototype.$host;a["a"].post(s+"/sendmailfordev",{version:"admin-1.3.30",agent:navigator.userAgent,userInfo:{cid:t.cid,cname:t.cname,uid:e.uid,uname:e.uname},...e})},getClassRoom({state:t},e){return new Promise((s,o)=>{const n=i["a"].prototype.$host;let l=`${n}/class/${t.cid}/getclassroom?`;e.by&&(l+="by="+e.by),+t.user.uclass{s(t)}).catch(t=>{o(t)})})},updateTutorial({state:t},e){return new Promise((s,o)=>{const n=i["a"].prototype.$host;let l=1;724===+t.user.id&&23===e.length&&(l=0),a["a"].post(n+"/user/updatetutorial",{uid:t.user.id,type:e,uclass:t.user.uclass}).then(a=>{const o=i["a"].prototype.$storage.get("user");if(o){for(let s=0;s{o(t)})})}};i["a"].use(tt["a"]);const Cl=new tt["a"].Store({state:vl,getters:xl,mutations:kl,actions:wl});var Sl=s("7496"),$l=s("40dc9"),Al=s("a75b"),Dl=s("f774"),Pl=function(){var t=this,e=t._self._c;return e(Sl["a"],{attrs:{id:"default-layout"}},[-1==["","index","admin#","#"].indexOf(t.main_active)||-1==["","index","#","admin#"].indexOf(t.$now_main_active)||t.main_category[t.main_active]||"join"==t.$now_sub_active||""==t.main_active&&"login"==t.$now_sub_active?e(Dl["a"],{ref:"v_navigation_drawer",staticClass:"h-100",staticStyle:{overflow:"visible !important"},attrs:{id:"default-navigation-drawer","mini-variant":t.$vuetify.breakpoint.xsOnly,width:t.resizeWidth,color:"#f5f5f5",app:"",permanent:"",overflow:"",clipped:"",touchless:!0,"hide-overlay":""}},[e("button",{staticClass:"w-100 py-3 pr-3 text-left",class:t.getSelectedMenuIdx,staticStyle:{"border-left":"3px solid #1bd05b","background-color":"#0a1b2d",color:"white"},attrs:{id:"side_custom_menu"}},[e(q["a"],{staticClass:"pl-5",staticStyle:{color:"inherit"}},[t._v("\n "+t._s(""==t.main_active?t.sub_title_icon["startpage"]:t.sub_title_icon[t.main_active])+"\n ")]),e("h3",{staticClass:"d-inline-block",staticStyle:{"font-size":"104%"}},[e("b",{staticClass:"ml-3"},[t._v(t._s("내공 "+(""==t.main_active&&"login"==t.$now_sub_active?"초기화면":t.main_category[t.main_active])))])]),e(q["a"],{staticClass:"float-right",staticStyle:{color:"inherit"}},[t._v("\n mdi-chevron-down\n ")])],1),e("div",{key:"sub-menu-"+t.layout_ctooltip,ref:"side_custom_sub_menu",staticClass:"custom_show",attrs:{id:"side_custom_sub_menu"}},[t._l(t.sub_category[t.main_active]?t.sub_category[t.main_active]:t.sub_category["startpage"],(function(s,a){return e("div",{key:"sub-"+a,staticClass:"pos-rel",class:[a==t.sub_active?"selected-menu":"",t.getSelectedMenuIdxStatus(a,t.sub_active)]},[e(L["a"],{staticClass:"custom_router_link text-left",class:a==t.sub_active?"fw-400":"",staticStyle:{height:"calc(2.5rem + 12px) !important"},style:a==t.sub_active?"color: #1a2a3d; background: white;":"color: #dbdbdb; background: transparent;",attrs:{block:"",depressed:"",tile:"",ripple:!1},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.click_sub(t.main_active+"-"+a)}}},[e("div",{staticClass:"text-left d-block w-100 px-3"},[e(q["a"],{staticClass:"mr-4",staticStyle:{transition:"none"},attrs:{"x-small":"",color:a==t.sub_active?"#1a2a3d":"#dbdbdb"}},[t._v("\n mdi-record-circle-outline\n ")]),e("span",{staticClass:"fs-1rem text-left",staticStyle:{"letter-spacing":"-1px"}},[t._v(t._s(s))]),"schedule"==a||"testprint"==a?e("span",{staticClass:"custom-tag ml-1 fw-700",class:a!=t.sub_active?"grey--text text--darken-2":"success--text"},[t._v("\n HOT\n ")]):t._e(),"bookmaking"==a?e("span",{staticClass:"custom-tag ml-1 fw-700",class:a!=t.sub_active?"grey--text text--darken-2":"success--text"},[t._v("\n NEW\n ")]):t._e()],1)]),"학생 목록"===s&&"user-class"==t.$route.name?[t.conditionByTutorial("t2")?e("ctooltip",{attrs:{arrow_direction:"arrow-left",tool_top:"56%",tool_left:"55%",tool_translate:"translate(0, -50%)",tutorial_key:"t2"}}):t._e()]:"문제은행 출력"===s&&"/lesson/schedule"==t.$route.path?[t.conditionByTutorial("t11")?e("ctooltip",{attrs:{arrow_direction:"arrow-left",tool_top:"56%",tool_left:"85%",tool_translate:"translate(0, -50%)",tutorial_key:"t11"}}):t._e()]:"리더보드"===s&&"/analysis/reportview"==t.$route.path?[t.conditionByTutorial("t20")?e("ctooltip",{attrs:{arrow_direction:"arrow-left",tool_top:"56%",tool_left:"55%",tool_translate:"translate(0, -50%)",tutorial_key:"t20"}}):t._e()]:t._e()],2)})),e("div",{staticClass:"pos-rel",staticStyle:{visibility:"hidden"}},[e(L["a"],{staticClass:"custom_router_link hidden",attrs:{block:"",depressed:"",tile:""}})],1)],2),e("div",{staticClass:"pos-abs w-100 px-6",staticStyle:{bottom:"0px"}},[e("div",{staticClass:"screen-btn-wrap mb-3"},[e(L["a"],{class:0==t.user.zoom_status?"active screen-btn":"screen-btn",style:""+(0==t.user.zoom_status?"background-color: rgb(48, 63, 78) !important;":""),attrs:{large:"",disabled:0==t.user.zoom_status},on:{click:function(e){t.screen_dialog=!0}}},[t._v("\n 화면크기 크게\n ")]),e(L["a"],{class:1==t.user.zoom_status?"active screen-btn":"screen-btn",style:""+(1==t.user.zoom_status?"background-color: rgb(48, 63, 78) !important;":""),attrs:{large:"",disabled:1==t.user.zoom_status},on:{click:function(e){t.screen_dialog=!0}}},[t._v("\n 화면크기 보통\n ")])],1),"F"==t.user.product_type||1==t.user.franchise?e(L["a"],{staticClass:"text-center mb-3",class:0!=+t.getUser.print_cnt?"cursor-default":"cursor",staticStyle:{"background-color":"#1a2a3d",height:"3rem !important","background-position":"center","background-size":"100%"},style:{backgroundImage:"url("+t.printBtn+")"},attrs:{depressed:"",large:"",block:"",rounded:"",ripple:!1},on:{click:t.chkPrintCnt}},[e("b",{staticClass:"fw-400 ls-m-1 white--text",staticStyle:{"font-size":"0.95rem","margin-top":"-1px"}},[t._v("\n 체험판 출력 가능 횟수\n "),e("span",{staticStyle:{"font-weight":"100 !important"}},[e(q["a"],{staticStyle:{"margin-top":"-2px"},attrs:{small:""}},[t._v(" mdi-close ")]),t._v("\n "+t._s(+t.getUser.print_cnt)+"\n ")],1)])]):t._e(),"F"==t.user.product_type?e(L["a"],{staticClass:"text-center",staticStyle:{background:"#ffd600",height:"3rem !important"},attrs:{depressed:"",large:"",block:""},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.$router.push({name:"join"})}}},[e("b",{staticClass:"fw-700 ls-m-1",staticStyle:{"font-size":"1.1rem"}},[t._v("\n 내공스터디 정식 가입\n ")])]):t._e(),e(L["a"],{staticClass:"white--text text-center mt-1 mb-3 px-0",attrs:{text:"",depressed:"",large:"",block:"",ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[e("span",{staticStyle:{"text-transform":"lowercase"}},[t._v("\n 내공스터디 관리자 v."+t._s(t.app_version)+"\n ")]),e("div",{staticClass:"white ml-3 d-inline-flex",staticStyle:{"border-radius":"50px",padding:"2px"}},[e(q["a"],{staticStyle:{"font-size":"18px"},attrs:{color:"#1a2a3d"}},[t._v("\n mdi-autorenew\n ")])],1)])],1)]):t._e(),e($l["a"],{ref:"headerdefault",class:t.$route.name,style:"index"==t.$route.name?"":"border-bottom: thin solid #e5e5e5 !important;",attrs:{id:"headerdefault","clipped-left":"","fade-img-on-scroll":!1,color:"white",app:"",flat:"",elevation:"0"}},[e("div",{staticClass:"d-flex"},[e(ao["a"],{staticClass:"ml-0 pl-0 resize-width-logo h-100",staticStyle:{"align-items":"center","justify-content":"center"},style:"index"==t.$route.name?"background-color: white;":"background-color: #1a2a3d;"},[e("img",{staticClass:"cursor",attrs:{src:"index"==t.$route.name?s("4b67"):s("b60e"),id:"layout-logo"},on:{click:function(e){t.$now_main_active="index",t.goIndex()}}}),["analysis","index"].includes(t.$now_main_active)&&"leaderboard"==t.$now_sub_active?e("div",{staticClass:"pos-rel"},[t.conditionByTutorial("t22")?e("ctooltip",{attrs:{arrow_direction:"arrow-left",arrow_top:"55%",arrow_translate:"translate(0, -50%)",tool_top:"50%",tool_left:"50%",tool_translate:"translate(10%, -55%)",tutorial_key:"t22"}}):t._e()],1):t._e()]),e(Ca["a"],{staticClass:"py-2",staticStyle:{"border-color":"#e5e5e5"},attrs:{inset:"",vertical:""}}),e("div",{staticClass:"header-tabs h-100 pos-rel",staticStyle:{display:"flex","justify-content":"space-evenly"}},[e("input",{attrs:{type:"hidden"},domProps:{value:t.hidden_key}}),t._l(t.main_category,(function(s,a){return e("div",{key:"main-"+a,staticClass:"pos-rel"},[e(L["a"],{staticClass:"custom-tab-btn h-100 px-4 grey--text",class:"startpage"==a&&"join"==t.$now_sub_active?"top-nav-selected":"",staticStyle:{"border-bottom":"none",height:"calc(100% - 1px) !important","background-color":"white"},attrs:{depressed:"",tile:"",ripple:!1,id:"top_nav_"+a},on:{click:function(e){t.btnSoundCheck(),t.click_main(a+"-"+t.default_sub_category[a])}}},[e("h2",{staticClass:"nnfont"},[e("b",{staticStyle:{"font-size":"95%","letter-spacing":"-1px"}},[t._v("\n "+t._s(s)+"\n ")])])]),"lesson"==a&&["user","index"].includes(t.$now_main_active)&&"student"==t.$now_sub_active?[t.conditionByTutorial("t3")&&+t.user.now_users_cnt>0?e("ctooltip",{attrs:{arrow_direction:"arrow-up",arrow_left:"50%",arrow_translate:"translate(-50%, 1px)",tool_top:"100%",tool_left:"50%",tool_translate:"translate(-50%, -25%)",tutorial_key:"t3"}}):t._e()]:"analysis"==a&&["lesson","index"].includes(t.$now_main_active)&&["testmanaging","testprint"].includes(t.$now_sub_active)?[t.conditionByTutorial("t15")?e("ctooltip",{attrs:{arrow_direction:"arrow-up",arrow_left:"50%",arrow_translate:"translate(-50%, 1px)",tool_top:"100%",tool_left:"50%",tool_translate:"translate(-50%, -25%)",tutorial_key:"t15"}}):t._e()]:t._e()],2)})),e("button",{staticClass:"header-power pos-abs translate-y",staticStyle:{outline:"none",right:"-4px",width:"calc(2.5rem + 5px) !important",height:"calc(2.5rem + 5px) !important","margin-right":"1%"},on:{click:function(e){t.btnSoundCheck("power"),t.powerEvent()}}},[e("div",{staticClass:"d-inline-flex",staticStyle:{background:"rgb(245, 245, 245)","border-radius":"50px",padding:"4px"}},["index"==t.$route.name?e(q["a"],{attrs:{color:"grey"}},[t._v("\n mdi-power-standby\n ")]):e(q["a"],{attrs:{color:"grey"}},[t._v(" mdi-close ")])],1)]),e("button",{staticClass:"header-prevarrow pos-rel translate-y",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.prevEvent()}}},[e(q["a"],{staticClass:"pos-abs translate-y",attrs:{color:"black"}},[t._v("\n mdi-arrow-left\n ")])],1)],2)],1),"index"!=t.$route.name?e("div",{attrs:{id:"product-info-bar-wrap"}},[e("div",{staticClass:"product-info-bar d-flex justify-space-between align-center"},[e("div",{staticClass:"d-flex"},[e("span",[t._v("상품")]),e("div",{staticClass:"d-flex align-center",domProps:{innerHTML:t._s(t.getProductInfoTag)}})]),e("div",{staticClass:"d-flex align-center"},[t._v("\n 남은 메시지 수\n "),e("span",{staticClass:"success--text"},[t._v(" "+t._s(t.getRemainMessageCount)+"건 ")]),t.user.uclass>21?e(L["a"],{staticClass:"pa-0",staticStyle:{height:"60% !important"},attrs:{depressed:"",color:"#2d7aee"},on:{click:t.goChargePage}},[e("span",{},[t._v("메시지 충전")]),e("svg",{attrs:{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 16 16",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}})])]):t._e()],1)])]):t._e()]),e(Al["a"],{key:t.rvkey,staticClass:"bg-default",class:t.$route.name,staticStyle:{transition:"none"}},[e("router-view",{ref:"view"})],1),e(ot["a"],{attrs:{transition:!1,"content-class":"screen-dialog"},model:{value:t.screen_dialog,callback:function(e){t.screen_dialog=e},expression:"screen_dialog"}},[e(M["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("div",{staticClass:"d-flex flex-column"},[e("b",[t._v("화면 비율을 변경하시겠습니까?")])])])]),e(M["a"],{staticClass:"pa-0 border-ede thin-t"},[e(L["a"],{staticClass:"dialog-twobtn left",attrs:{"x-large":"",text:""},on:{click:function(e){t.screen_dialog=!1}}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("취소")])])]),e(L["a"],{staticClass:"ml-0 dialog-twobtn right",attrs:{"x-large":"",text:""},on:{click:t.changeScreenSize}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("확인")])])])],1)],1)],1)},Bl=[],Tl={components:{ctooltip:Lt["a"]},data(){return{app_version:"",top_tab:null,screen_dialog:!1,rvkey:0,drawer:null,main_category:{startpage:"초기화면",user:"학생관리",lesson:"수업준비",analysis:"성적분석"},user:this.$storage.get("user"),main_active:"",sub_category:{startpage:{notice:"공지사항",manual:"사용 설명서",errorreport:"문제 해결",paymentview:"이용료 조회",admininfo:"관리자 정보"},user:{teacher:"선생님 관리",class:"클래스 관리",student:"학생 목록",studentexcel:"학생 일괄등록",assignclass:"클래스 배정"},lesson:{schedule:"스케쥴 설정",bookmaking:"교재 만들기",booklist:"교재 목록",bookprint:"교재 출력",testprint:"문제은행 출력",testmanaging:"문제은행 관리"},analysis:{reportview:"레포트 조회",studyview:"간편 학습조회",individualtotal:"개인별 종합분석",counsel:"상담일지",leaderboard:"리더보드",comment:"메시지 내역"},exam:{autoschedule:"스케쥴 자동 생성",adminexam:"관리자 평가 생성",list:"진단평가 내역",report:"진단 레포트",analysis:"진단 종합분석"}},sub_active:"",sub_title_icon:{startpage:"mdi-home",user:"mdi-account-circle",lesson:"mdi-signal",analysis:"mdi-file-document-box-search-outline",exam:"mdi-pen"},default_sub_category:{startpage:"notice",user:"teacher",lesson:"schedule",analysis:"reportview",exam:"autoschedule"},showsublist:!0,custom_show_status:1,hidden_key:0,printBtn:s("c5f2"),layout_ctooltip:0}},watch:{$route(t,e){if("index"==t.name&&(this.top_tab=null),"join"==t.name){"index"!=this.$last_main_active&&"index"!=this.$last_sub_active?(this.main_active=this.$last_main_active||"startpage",this.sub_active=this.$last_sub_active||"admininfo",this.showsublist=!0):(this.main_active="startpage",this.sub_active="admininfo",this.showsublist=!0);const t=document.getElementById("top_nav_startpage");t.classList.remove("grey--text"),t.classList.add("top-nav-selected","black--text")}else{let e=t.name.split("-");this.main_active=e[0],this.sub_active=e[1],this.showsublist=!0}let s=document.getElementsByClassName("header-tabs")[0];"flex-end"==s.style.justifyContent&&this.topNavBarChange("space-evenly"),this.$nextTick(()=>{let t=document.querySelectorAll(".top-nav-selected");for(let e=0;et===this.sub_active)}return"menu-"+t},getSelectedMenuIdxStatus(){return(t,e)=>{let s="",a=0,i=0;if(this.sub_category&&this.main_active){const o=Object.keys(this.sub_category[this.main_active]);a=o.findIndex(e=>e===t),i=o.findIndex(t=>t===e),a===i-1?s="prev":a===i+1&&(s="next")}return s}},getProductInfoTag(){let t="";if("F"==this.user.product_type){const e=this.user.enddate?this.user.enddate.split(" ")[0]:"";t=`무료체험(체험일 ${e}까지)`}else if(1===+this.user.promotion_chk){const e=this.user.event_startdate?this.user.event_startdate.split(" ")[0]:"",s=this.user.event_enddate?this.user.event_enddate.split(" ")[0]:"";this.user.product_info.student_cnt;t=`프로모션(${e} ~ ${s})`}else{let e="",s="";const a="S"==this.user.product_type?"Standard":"Premium";if(this.user.payment_costday){e=this.user.payment_costday.split(" ")[0];const t=new Date(this.user.payment_costday+" 00:00:00"),a=t.getFullYear(),i=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1;t.setMonth(2),t.setDate(0);const o=t.getDate()<10?"0"+t.getDate():t.getDate();s=`${a}-${i}-${o}`}t=`월상품 ${a}(${e} ~ ${s})`}return t},getUser(){return this.$store.getters.getUser}},mounted(){if(this.$now_main_active&&"#"!=this.$now_main_active&&"index"!=this.$now_main_active){this.main_active=this.$now_main_active,this.sub_active=this.$now_sub_active;const t=document.getElementById("top_nav_"+this.main_active);t.classList.remove("grey--text"),t.classList.add("top-nav-selected","black--text")}"join"==this.$now_sub_active&&this.$nextTick(()=>{this.main_active="startpage",this.sub_active="admininfo";const t=document.getElementById("top_nav_startpage");t.classList.remove("grey--text"),t.classList.add("top-nav-selected","black--text")})},created:function(){if(this.app_version="1.3.30",!this.$storage.has("user"))return this.$router.push({name:"login"}),!1},methods:{changeScreenSize(){const t={column:"zoom_status",value:1==this.user.zoom_status?0:1};this.$axios.post(`${this.$host}/user/${this.$cid}/${this.$id}/setuseroption`,t).then(e=>{if(200===e.status){const e=document.querySelector("#app");let s=this.$storage.get("user");s.zoom_status=t.value,this.$storage.set("user",s),this.$store.commit("setUser",s),this.user=s,e&&(s.zoom_status?e.classList.add("ratio-90"):e.classList.remove("ratio-90")),this.screen_dialog=!1}})},powerEvent(){const t=this.$route.name.split("-").length;1==t?"index"==this.$router.history.current.name?this.openDialog("exit_admin"):"join"==this.$router.history.current.name&&this.$router.push({name:"index"}):2==t?this.$router.push({name:"index"}):3==t&&this.$router.push({name:`${this.main_active}-${this.sub_active}`})},prevEvent(){console.log("prevEvent",this.$route.name);const t=["lesson-testmanaging","lesson-bookprint","lesson-testprint","analysis-reportview","analysis-leaderboard","analysis-individualtotal","user-student"],e=()=>{let t=document.getElementsByClassName("header-tabs")[0];"flex-end"==t.style.justifyContent&&this.topNavBarChange("space-evenly")};if(-1!=t.indexOf(this.$route.name)){if(t.includes(this.$route.name))if(console.log("prevEvent:",this),this.$refs.view&&this.$refs.view.$children[0]){const t=this.$refs.view.$children[0].mode,s=this.$refs.view.$children[0].prevMode;["report","leveltest-report"].includes(t)?(this.$refs.view.$children[0].mode="list",e()):s?(this.$refs.view.$children[0].mode=s,"list"===s&&e()):(this.$refs.view.$children[0].mode="list",e())}else{let t=this.$children[0].$children[1].$children[0].$children[0],s=!!this.$children[0].$children[2].$children[0]&&this.$children[0].$children[2].$children[0].$children[0];t?"report_error_print"==t.mode?t.mode="report":(t.prevMode?t.mode=t.prevMode:t.mode="list",e()):s&&("report_error_print"==s.mode?s.mode="report":(s.prevMode?s.mode=s.prevMode:s.mode="list",e()))}else this.rvkey+=1,e();window.onresize=null}},async goIndex(){"index"!=this.$route.name&&(this.$store.state.editing_status||this.$store.dispatch("soundEffectPlay","click_button"),this.conditionByTutorial("t22")?(await this.$store.dispatch("updateTutorial",["t22"]),this.$router.push({name:"index"})):this.$router.push({name:"index"}))},st(t){let e=document.getElementById("side_custom_sub_menu"),s=document.getElementById("side_custom_menu");e.classList.contains("custom_show")?(e.classList.remove("custom_show"),e.classList.add("custom_close"),s.style.color="grey",this.custom_show_status=0):(e.classList.remove("custom_close"),e.classList.add("custom_show"),s.style.color="white",this.custom_show_status=1)},btnSoundCheck(t){this.$store.state.editing_status||("power"!=t||"index"!=this.$route.name)&&this.$store.dispatch("soundEffectPlay","click_button")},chkPrintCnt(){0==+this.getUser.print_cnt&&(this.$store.dispatch("soundEffectPlay","click_button"),this.$router.push({name:"join"}))},async click_sub(t){"user-student"==t&&["user","index"].includes(this.$now_main_active)&&"class"==this.$now_sub_active&&this.conditionByTutorial("t2")?(await this.$store.dispatch("updateTutorial",["t2"]),this.$router.push({name:t})):this.$router.push({name:t})},async click_main(t){"lesson-schedule"==t&&["user","index"].includes(this.$now_main_active)&&"student"==this.$now_sub_active&&this.conditionByTutorial("t3")?(await this.$store.dispatch("updateTutorial",["t3"]),this.$router.push({name:t})):this.$router.push({name:t})},goChargePage(){if("analysis-comment"==this.$route.name){const t=this.$refs.view.$children[0];t&&"tab-1"!=t.tab&&(t.tab="tab-1")}else this.$router.push({name:"analysis-comment",params:{tab:1}})}}},El=Tl,Il=(s("d823"),Object(u["a"])(El,Pl,Bl,!1,null,null,null)),zl=Il.exports,Ol=function(){var t=this,e=t._self._c;return e(Sl["a"],{staticClass:"over-y-hidden"},[e(Al["a"],{staticClass:"pos-rel",staticStyle:{padding:"0px !important"}},[e(Cs["a"],{staticClass:"fill-height bg pa-3",attrs:{fluid:""}},[t._t("default")],2),1===t.manual_error_notice||2===t.manual_error_notice&&t.$dayjs().format("YYYY-MM-DD H:m:s")<=t.occurrence_end_date?e("div",{staticClass:"pos-abs error-notice"},[e("img",{attrs:{src:t.manual_imgs[t.manual_error_notice]}}),e("div",{staticClass:"w-100 success d-flex align-center justify-end",staticStyle:{padding:"1% 10px"}},[e("div",{staticClass:"white--text cursor d-flex align-center",on:{click:function(e){t.manual_error_notice=0}}},[e(q["a"],{staticClass:"mr-1",attrs:{small:"",color:"white"}},[t._v(" mdi-close ")]),t._v("\n 닫기\n ")],1)])]):t._e()],1)],1)},Nl=[],Ll={data(){return{manual_error_notice:0,manual_imgs:{1:"https://kr.object.ncloudstorage.com/cdn-irontrain/common/images/error/ng_occurred_1.png",2:"https://kr.object.ncloudstorage.com/cdn-irontrain/common/images/error/ng_recovery_1.png"},occurrence_end_date:"2023-05-08 23:59:59"}},mounted(){this.getErrorNotice()},methods:{async getErrorNotice(){const t=await this.getManualErrorNotice();if(t&&400!=t&&200==t.status){const e=t.data.result;this.manual_error_notice=e.manual_error_notice,this.manual_imgs=e.manual_imgs,this.occurrence_end_date=e.occurrence_end_date}else{const t=await this.getManualErrorNoticeCF();if(t&&400!=t&&200==t.status){const e=t.data;this.manual_error_notice=e.manual_error_notice,this.manual_imgs=e.manual_imgs,this.occurrence_end_date=e.occurrence_end_date}}},getManualErrorNotice(){return new Promise(t=>{const e="https://super-api.irontrain.co.kr/common";this.$axios.get(e+"/manualerrornotice?service=ng",{timeout:2e3}).then(e=>{t(e)}).catch(e=>{console.log(e),t(400)})})},getManualErrorNoticeCF(){return new Promise(t=>{this.$axios.get("https://e49n33s5yk.apigw.ntruss.com/errornotice/v001/qMlXKqxEpY/json?service=ng").then(e=>{t(e)}).catch(e=>{console.log(e),t(400)})})}}},Ml=Ll,jl=(s("7a43"),Object(u["a"])(Ml,Ol,Nl,!1,null,null,null)),Rl=jl.exports,ql=function(){var t=this,e=t._self._c;return e(Sl["a"],{attrs:{id:"notfound-layout"}},[e("div",{staticClass:"w-100 h-100 pos-rel"},[e("div",{staticClass:"pos-abs translate-a"},[e("h1",{staticClass:"text-center fw-800",staticStyle:{"font-size":"80px"}},[t._v("404")]),e("h2",{staticClass:"text-center mt-n8",staticStyle:{"font-size":"25px"}},[t._v("Page Not Found")]),e("br"),e("p",{staticClass:"text-center",staticStyle:{"font-size":"14px"}},[t._v("\n The Page you are looking for doesn't exist or an other error occured. Go to\n "),e("router-link",{attrs:{to:"/"}},[t._v("Home Page.")])],1)])])])},Fl=[],Ul={},Hl=Object(u["a"])(Ul,ql,Fl,!1,null,null,null),Gl=Hl.exports,Wl=function(){var t=this,e=t._self._c;return e(Sl["a"],[e(Al["a"],{staticStyle:{padding:"0px !important"}},[e(Cs["a"],{staticClass:"fill-height",attrs:{fluid:""}},[t._t("default")],2)],1)],1)},Yl=[],Jl={},Vl=Jl,Ql=Object(u["a"])(Vl,Wl,Yl,!1,null,null,null),Xl=Ql.exports,Kl=function(){var t=this,e=t._self._c;return e("thead",{staticClass:"v-data-table-header"},[e("tr",[t.showSelect?e("th",[t.hasFolder?[e(Ye["a"],{attrs:{color:"info",ripple:!1,"on-icon":"mdi-checkbox-marked",value:t.getFolderListChecked||t.getFolderListIndeterminate,indeterminate:!t.getFolderListChecked&&t.getFolderListIndeterminate,"indeterminate-icon":"mdi-minus-box"},on:{input:t.on["toggle-select-all"]}})]:[e(Ye["a"],{attrs:{color:"info",ripple:!1,"on-icon":"mdi-checkbox-marked",value:t.defaultProps.everyItem||t.defaultProps.someItems,indeterminate:!t.defaultProps.everyItem&&t.defaultProps.someItems,"indeterminate-icon":"mdi-minus-box"},on:{input:t.on["toggle-select-all"]}})]],2):t._e(),t.showExpand?e("th",{attrs:{id:"th-expand"}},[e("span",[t._v(" 조회 ")])]):t._e(),t._l(t.setHeadersTh,(function(s){return e("th",{key:s.id,class:s.align?"text-"+s.align:""},[s.sortable?e("div",{staticClass:"cursor d-flex align-center",on:{click:function(e){return t.customSort(t.type,s.value)}}},[e("span",[t._v(t._s(s.text))]),e("div",{staticClass:"d-inline-flex flex-column ml-1",staticStyle:{gap:"2px"}},t._l(["up","down"],(function(a){return e("div",{key:"sort-icon-"+a,staticClass:"no-position",class:"sort_icon_"+a,attrs:{id:t.setSortBtnId(s.value,a)}})})),0)]):e("span",[t._v("\n "+t._s(s.text)+"\n ")])])}))],2)])},Zl=[],tr={name:"DataTableHeader",props:{defaultProps:{type:Object,default:()=>({})},showExpand:{type:Boolean,default:!1},showSelect:{type:Boolean,default:!1},selectValue:{type:Boolean,default:!1},type:{type:String,default:""},sortBy:{type:String,default:""},sortDesc:{type:String,default:""},on:{default:null},hasFolder:{type:Boolean,default:!1},items:{type:Array,default:()=>[]}},mounted(){this.setFirstColumn()},watch:{},computed:{setHeadersTh(){return this.defaultProps.headers.filter(t=>("data-table-select"===t.value?this.setData("showSelect",!0):"data-table-expand"===t.value&&this.setData("showExpand",!0),!["data-table-select","data-table-expand"].includes(t.value)))},setSortBtnId(){return(t,e)=>{let s=this.type?this.type+"_":"";return`${s}${t}_sort_icon_${e}`}},getFolderListChecked(){const t=this.items.filter(t=>!["folder","back"].includes(t.category)).length,e=this.items.filter(t=>t.isSelected&&!["folder","back"].includes(t.category)).length;return t>0&&e>0&&t===e},getFolderListIndeterminate(){const t=this.items.filter(t=>!["folder","back"].includes(t.category)).length,e=this.items.filter(t=>t.isSelected&&!["folder","back"].includes(t.category)).length;return t>0&&e>0}},methods:{setFirstColumn(){},setData(t,e){this[t]=e},customSort(t,e){const s=document.querySelectorAll(".active_sort");if(s)for(let i=0,o=s.length;i({itemsPerPageText:"표시 개수",itemsPerPageOptions:[10,30,50,100]})},itemsPerPage:{type:Number,default:10},options:{type:Object,default:null}},data(){return{isOpen:!1}},mounted(){document.addEventListener("click",this.closeOnOutsideClick)},computed:{currentItemsPerPage:{get(){return this.options?this.options.itemsPerPage:this.itemsPerPage},set(t){this.options?this.$emit("update:options",{...this.options,itemsPerPage:t}):this.$emit("update:itemsPerPage",t)}}},methods:{updateItemsPerPage(t){this.currentItemsPerPage=t,this.isOpen=!1},closeOnOutsideClick(t){this.$el.contains(t.target)||(this.isOpen=!1)}},beforeDestroy(){document.removeEventListener("click",this.closeOnOutsideClick)}},lr=nr,rr=(s("55c5"),Object(u["a"])(lr,ir,or,!1,null,"6a3e808a",null)),cr=rr.exports,dr=function(){var t=this,e=t._self._c;return e("div",{class:"float-left optiondiv "+(t.parentClass?t.parentClass:""),attrs:{id:"select-box-page"}},[e(F["a"],{key:t.key,staticClass:"select-box c-edit-overflow-btn border-info",class:`${t.buttonClass} ${t.disabled?"":"non-disabled"}`,attrs:{items:t.items,id:t.id,label:t.label,color:t.color,"persistent-placeholder":t.persistentPlaceholder,"item-disabled":t.itemDisabled,dense:"",solo:"",outlined:"","single-line":"","hide-details":"","x-small":""},on:{change:t.handleChange,mousedown:function(e){return e.stopPropagation(),t.handleMouseDown.apply(null,arguments)}}})],1)},hr=[],ur={name:"SelectBox",props:{id:{type:String,default:"option_select"},label:{type:String,default:"항목 선택"},persistentPlaceholder:{type:Boolean,default:!0},color:{type:String,default:"info"},parentClass:{type:String,default:""},key:Number,items:Array,buttonClass:String,disabled:Boolean,itemDisabled:String,onChange:Function},mounted(){this.setLabelName(),this.selectBox=document.querySelectorAll(".select-box"),window.addEventListener("animationend",t=>{this.animationEnd()})},data(){return{width:0,height:0,showAlert:!1,alertTimer:null,selectBox:null,isAnimationEnd:!1}},computed:{},methods:{animationEnd(){this.isAnimationEnd=!0},handleChange(t){this.$emit("change",t),this.key+=1},handleMouseDown(){this.disabled&&(this.openAlert("select_disabled"),this.changePointerEvents("none"),this.alertTimer=setTimeout(()=>{this.changePointerEvents("auto")},3e3))},setLabelName(){this.disabled?this.label="항목 선택":this.label="항목 설정"},changePointerEvents(t){this.selectBox.forEach(e=>{e.style.pointerEvents=t})}},watch:{disabled(t){this.setLabelName();const e=document.querySelectorAll(".v-select__slot");t?e.forEach(t=>{const e=t.closest(".select-box");e&&t.classList.remove("ripple")}):(this.selectBox&&this.changePointerEvents("auto"),e.forEach(t=>{const e=t.closest(".select-box");e&&(t.classList.remove("ripple-active"),t.classList.add("ripple"))}))},isAnimationEnd(t){if(t){const t=document.querySelectorAll(".v-select__slot");t&&t.forEach(t=>{const e=t.closest(".select-box");e&&t.classList.add("ripple-active")}),this.isAnimationEnd=!1}}},beforeDestroy(){window.removeEventListener("animationend",this.animationEnd)}},_r=ur,pr=(s("112f"),Object(u["a"])(_r,dr,hr,!1,null,null,null)),mr=pr.exports,gr=function(){var t=this,e=t._self._c;return t.visible?e("div",{staticClass:"notice-alert",domProps:{innerHTML:t._s(t.text)}}):t._e()},br=[],fr=s("d0c4"),yr={name:"NoticeAlert",props:{},created(){},mounted(){Tr.$on("alert",t=>{const e=fr["a"].black[t.name]?fr["a"].black[t.name].text:t.name;this.visible=!0,this.text=e,this.startTimer()})},data(){return{visible:!1,text:""}},methods:{startTimer(){setTimeout(()=>{this.visible=!1},3e3)}},watch:{}},vr=yr,xr=(s("a18e"),Object(u["a"])(vr,gr,br,!1,null,null,null)),kr=xr.exports;i["a"].component("layout-default",zl),i["a"].component("layout-login",Rl),i["a"].component("layout-setup",Xl),i["a"].component("layout-notfound",Gl),i["a"].component("Dialogs",st["a"]),i["a"].component("DataTableHeader",ar),i["a"].component("DataTableItemsPerPage",cr),i["a"].component("SelectBox",mr),i["a"].component("NoticeAlert",kr);var wr=s("2b27"),Cr=s.n(wr),Sr=s("99d1"),$r=s("5a0c"),Ar=s.n($r),Dr=(s("f20b"),s("8a39")),Pr=s("36e7");i["a"].use(Sr["a"],{prefix:"ng_",driver:"session",ttl:864e5}),i["a"].use(Cr.a),Ar.a.locale("ko");const Br=s("d758");Ar.a.extend(Br),Dr["a"]({Vue:i["a"],dsn:"https://b0b481c27023e0c46097f5995ab6ee47@o4504003601301504.ingest.sentry.io/4506822044418048",environment:"production",release:"1.3.30",integrations:[Object(Pr["a"])({levels:["error"]})],sendDefaultPii:!0,beforeSend:t=>"localhost"===window.location.hostname?null:t,enabled:!0});const Tr=new i["a"];i["a"].prototype.$axios=a["a"],i["a"].prototype.$dayjs=Ar.a,i["a"].prototype.$host="https://api.tabstudy.co.kr",i["a"].prototype.$cdn="https://etltuzgdzyaa1067545.cdn.ntruss.com/ngstudy",i["a"].prototype.$now_main_active="",i["a"].prototype.$now_sub_active="",i["a"].prototype.$last_main_active="",i["a"].prototype.$last_sub_active="",i["a"].prototype.$basicGrammarBooks=[39353,39354,39355,39356],i["a"].prototype.$middleGrammarBooks=[102017,102018,102019,102020,102021,102022],"https://api.tabstudy.co.kr"==i["a"].prototype.$host&&(window.onbeforeunload=function(t){return t=t||window.event,t&&i["a"].prototype.$external_move&&(t.returnValue="Any string"),"Any string"}),window.console.log("version update check..."),a["a"].get("/version.json?timestamp="+(new Date).getTime()).then(t=>{window.console.log("current_version :","1.3.30"," / server_version :",t.data.admin.app),t.data.admin.app>"1.3.30"&&caches.keys().then(t=>{for(const e of t)caches.delete(e)}).then(()=>{location.reload(!0)})}),yl.beforeEach((t,e,s)=>{if(i["a"].prototype.$storage.length>0){var a="";i["a"].prototype.$storage.driver&&i["a"].prototype.$storage.driver.ng_user&&(a=JSON.parse(i["a"].prototype.$storage.driver.ng_user).value);var o=new Date,n=new Date(a.payment_costday+" 23:59:59");if(n.setDate(n.getDate()+6),""!=a){if(0==Cl.state.join_cnt&&"F"==a.product_type&&a.enddate_status>0&&0==a.franchise)return Cl.state.join_cnt++,i["a"].prototype.$last_main_active="startpage",i["a"].prototype.$last_sub_active="admininfo",yl.push({name:"join"}),i["a"].prototype.$last_main_active="startpage",i["a"].prototype.$last_sub_active="admininfo",!1;if(-1==["login","index","join","setup"].indexOf(t.name)&&0==a.franchise&&("F"==a.product_type&&a.enddate_status>0||0==a.promotion_chk&&"F"!=a.product_type&&a.payment_cnt>1&&!a.payment_postdate&&+o>=+n||0==a.promotion_chk&&"F"!=a.product_type&&a.payment_cnt<=1&&!a.payment_postdate||0==a.promotion_chk&&"F"!=a.product_type&&a.payment_cnt<=1&&!a.payment_postdate&&+o>=+n||1==a.promotion_chk&&!a.event_first_postdate))return i["a"].prototype.$last_main_active="startpage",i["a"].prototype.$last_sub_active="admininfo",yl.push({name:"join"}),i["a"].prototype.$last_main_active="startpage",i["a"].prototype.$last_sub_active="admininfo",!1;if(-1!=["lesson-bookprint","lesson-testprint"].indexOf(t.name)&&1576==a.academy_id){let t=[18924,19742,19821,19924,20196,20647,20723,21433,32035,35165];if(29!=a.uclass&&!t.includes(+a.id))return void i["a"].config.mainOpenDialog("print_abuse",!0,"end")}}}if(t.name&&e.name)switch(Cl.state.editing_status=!1,t.name){case"join":i["a"].prototype.$last_main_active=-1==e.name.indexOf("-")?e.name:e.name.split("-")[0],i["a"].prototype.$last_sub_active=-1==e.name.indexOf("-")?e.name:e.name.split("-")[1],s();break;default:s();break}else s();i["a"].prototype.$now_main_active=location.href.split("/")[location.href.split("/").length-2],i["a"].prototype.$now_sub_active=location.href.split("/")[location.href.split("/").length-1],"index"==t.name&&(i["a"].prototype.$now_main_active="#",i["a"].prototype.$now_sub_active="")}),i["a"].config.mainOpenDialog=function(t,e,s){Tr.$emit("dialog",{status:!0,name:t,auto_close:e,sound_type:s})},i["a"].config.productionTip=!1;const Er="The .native modifier for v-on is only valid on components but it was used on
.";i["a"].config.warnHandler=function(t,e,s){t===Er&&(t=null,null,null)};const Ir=new i["a"]({data:{$id:"",$cid:"",$uclass:""}});i["a"].mixin({computed:{$id:{get(){return Ir.$data.$id},set(t){Ir.$data.$id=t}},$cid:{get(){return Ir.$data.$cid},set(t){Ir.$data.$cid=t}},$uclass:{get(){return Ir.$data.$uclass},set(t){Ir.$data.$uclass=t}},getRemainMessageCount(){return""+(this.$store.state.message_cnt.toLocaleString()||0)},conditionByTutorial(){return t=>this.$store.getters.conditionByTutorial(t)},setPointerEvents(){return"none"}},methods:{allBusDestroy(){Tr.$off("dialog"),Tr.$off("close_event"),Tr.$off("preview_modal")},closeDialog(t){Tr.$emit("dialog",!1),1==t&&Tr.$emit("close_event",{status:!0})},openDialog(t,e,s){Tr.$emit("dialog",{status:!0,name:t,auto_close:e,sound_type:s})},openAlert(t){Tr.$emit("alert",{name:t})},showDialog(t,e){Tr.$emit("dialog",{status:!0,name:t,mode:e})},titleDateForm(t){const[e,s,a]=t.split("-");return`${e}년 ${s}월 ${a}일`},getToday(t){var e,s,a,i=new Date;return t<0?i.setDate(i.getDate()-Math.abs(t)):t>0&&i.setDate(i.getDate()+Math.abs(t)),["ko","ko-kr"].includes(navigator.language.toLowerCase())?(i=i.toLocaleString("ko").split(". "),e=i[0],s=i[1]<10?"0"+i[1]:i[1],a=i[2]<10?"0"+i[2]:i[2]):(i=i.toLocaleString("en").split("/"),e=i[2].split(",")[0],s=i[0]<10?"0"+i[0]:i[0],a=i[1]<10?"0"+i[1]:i[1]),`${e}-${s}-${a}`},removeHyphen(t){return t.replace(/\-/g,"")},autoHyphen(t){return t&&(t=t.replace(/[^0-9]/g,"").replace(/^(\d{0,3})(\d{0,4})(\d{0,4})$/g,"$1-$2-$3").replace(/(\-{1,2})$/g,"")),t},deepClone(t){return JSON.parse(JSON.stringify(t))},topNavBarChange(t="flex-end"){const e=[];"flex-end"==t?e.push("flex-end","none","flex"):"space-evenly"==t&&e.push("space-evenly","block","none");let s=document.getElementsByClassName("header-tabs")[0];s.style.justifyContent=e[0];for(let a=0,i=s.childNodes.length;a{this.$axios.get(`${this.$host}/academy/${this.$cid}/checkremainmessagecount`).then(e=>{t(e)}).catch(e=>{t(e)})})},updateUser(t){if(t){const e=this.$storage.get("user"),s=Object.entries(t);for(let t=0,a=s.length;tt(S),store:Cl}).$mount("#app")},"5bc9":function(t,e,s){"use strict";s("8f06")},"5ce4":function(t,e,s){"use strict";var a=s("a523"),i=s("169a"),o=s("a722"),n=function(){var t=this,e=t._self._c;return e(o["a"],{attrs:{row:"","justify-center":""}},[e(i["a"],{staticStyle:{border:"1px solid red !important"},attrs:{persistent:"",content:"","content-class":t.setContentClass,transition:!1},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[e(a["a"],{attrs:{"fill-height":""}},[e(o["a"],{attrs:{column:"","justify-center":"","align-center":""}},[e("div",{staticClass:"pos-rel"},[e("svg",{staticStyle:{margin:"auto",background:"transparent",display:"block","shape-rendering":"auto"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"100px",height:"100px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[e("circle",{attrs:{cx:"50",cy:"50",fill:"none",stroke:t.progressPercent?t.setColor:t.progressColor,"stroke-width":"4",r:"38","stroke-dasharray":"164.93361431346415 56.97787143782138",transform:"rotate(38.4721 50 50)"}},[e("animateTransform",{attrs:{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}})],1)]),e("span",{staticClass:"percent-caption pos-abs translate-a",style:{color:t.progressPercent?t.setColor:"white"}},[t._v("\n "+t._s(t.progressPercent?t.progressPercent+"%":"")+"\n ")])]),null!=t.message&&"hide"!=t.message?e("h2",{staticClass:"my-6"},[t._v("\n "+t._s(t.message)+"\n ")]):t._e(),t.progressPercent?e("div",{staticClass:"progress"},[e("div",{staticClass:"progress-bar",style:`width:${t.progressPercent}%; background-color:${t.setColor}`})]):t._e()])],1)],1)],1)},l=[],r={name:"Loading",data(){return{color_array:Object.freeze(["#aa00ff","#9e10ff","#8f26fd","#823afd","#734efc","#6561fb","#5776fb","#498bfa","#3b9ff9","#2eb4f9","#1ec7f8","#1dc8e8","#1bc9d9","#1acac9","#18ccba","#17cbaa","#17cd9a","#15cd8a","#13ce7b","#0ed069","#0ed15c"])}},props:{value:{type:Boolean,default:!1},message:{type:String,default:null},progressColor:{type:String,default:"#1bd05b"},progressPercent:{type:Number,default:null},isStory:{type:Boolean,default:!1}},computed:{getPercent(){return this.progressPercent},setColor(){return this.$forceUpdate(),this.color_array[Math.ceil(this.progressPercent/5)]},setContentClass(){let t="centered-dialog";return this.progressPercent&&(t+=" repos_dialog"),this.isStory&&(t+=" story_dialog"),t}}},c=r,d=(s("0be3"),s("2877")),h=Object(d["a"])(c,n,l,!1,null,null,null);e["a"]=h.exports},"5dff":function(t,e,s){"use strict";s("476a")},"62df":function(t,e,s){},"640f":function(t,e,s){"use strict";s("afcc")},"64d4":function(t,e,s){"use strict";s("e97c")},"65cb":function(t,e,s){t.exports=s.p+"img/tiny_certi_03_1.74c11f9a.png"},6628:function(t,e,s){t.exports=s.p+"img/report2.e3f19843.png"},6993:function(t,e,s){},"6b49":function(t,e,s){},"6cba":function(t,e,s){"use strict";s("ed3e")},"6f42":function(t,e,s){"use strict";s("d829")},"6f4a":function(t,e,s){var a={"./daily_report_1.png":"7761","./daily_report_2.png":"1b2a","./daily_report_3.png":"8bf4","./daily_report_4.png":"018c"};function i(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=o,t.exports=i,i.id="6f4a"},7071:function(t,e,s){},"70cf":function(t,e,s){},7381:function(t,e,s){"use strict";var a=function(){var t=this;t._self._c;return t._m(0)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pos-abs usn",staticStyle:{width:"1px",height:"1px",color:"transparent"}},[e("span",{staticClass:"fw-300"},[t._v(".")]),e("span",{staticClass:"fw-400"},[t._v(".")]),e("span",{staticClass:"fw-500"},[t._v(".")]),e("span",{staticClass:"fw-600"},[t._v(".")]),e("span",{staticClass:"fw-700"},[t._v(".")]),e("span",{staticClass:"fw-800"},[t._v(".")]),e("span",{staticClass:"fw-900"},[t._v(".")]),e("span",{staticStyle:{"font-family":"'Inconsolata'","font-weight":"400"}},[t._v(".")]),e("span",{staticStyle:{"font-family":"'Inconsolata'","font-weight":"700"}},[t._v(".")]),e("span",{staticStyle:{"font-family":"'GmarketSans'","font-weight":"400"}},[t._v(".")]),e("span",{staticStyle:{"font-family":"'GmarketSans'","font-weight":"700"}},[t._v(".")]),e("span",{staticStyle:{"font-family":"'GmarketSans'","font-weight":"800"}},[t._v(".")])])}],o=s("2877"),n={},l=Object(o["a"])(n,a,i,!1,null,null,null);e["a"]=l.exports},7590:function(t,e,s){},7761:function(t,e,s){t.exports=s.p+"img/daily_report_1.964ca3a7.png"},7782:function(t,e,s){"use strict";s("0d41")},7837:function(t,e,s){"use strict";s("ff4b")},7895:function(t,e,s){"use strict";s("865c")},"7a43":function(t,e,s){"use strict";s("e0d36")},"7bdb":function(t,e,s){"use strict";var a=s("8336"),i=s("b0af"),o=s("99d9"),n=s("169a"),l=function(){var t=this,e=t._self._c;return e(n["a"],{attrs:{id:"custom_dialog",origin:"center center",persistent:t.persistent,scrollable:"",transition:!1,"no-click-animation":!0,"max-width":t.mw},on:{"click:outside":t.close_event},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},["exit_admin"==t.p_name?e(i["a"],[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"black--text title"},[e("b",[t._v("내공스터디 관리자를 종료하시겠습니까?")])])]),e(o["a"],{staticClass:"pa-0 border-ede thin-t thin-r"},[e(a["a"],{staticStyle:{"border-radius":"0","border-bottom-left-radius":"4px","border-right":"thin solid #edeeef",width:"50%"},attrs:{"x-large":"",text:""},on:{click:t.destroySS}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"success--text"},[t._v("종료")])])]),e(a["a"],{staticClass:"ml-0",staticStyle:{width:"50%","border-radius":"unset"},attrs:{"x-large":"",text:""},on:{click:t.closeDialog}},[e("h3",{staticClass:"title-1"},[e("b",{staticClass:"grey--text"},[t._v("취소")])])])],1)],1):e(i["a"],["print_abuse"==t.p_name?e(o["b"],{staticClass:"black text-center py-8",staticStyle:{opacity:"0.75"}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"white--text"},[t._v("\n 아이디 무단 사용방지를 위해"),e("br"),t._v("\n 해당메뉴는 사용할 수 없습니다.\n ")])])]):"black"==t.mode?e(o["b"],{staticClass:"black text-center py-8",staticStyle:{opacity:"0.75"}},[e("h3",{staticClass:"title"},[e("b",{staticClass:"white--text",domProps:{innerHTML:t._s(t.text)}})])]):t._t(t.p_name)],2)],1)},r=[],c=s("56d7"),d=s("d0c4");let h="";var u={data(){return{dialog:!1,mw:480,tmp:"",p_name:this.name,c_auto_close:this.auto_close,rto:this.to,persistent:!1,mode:"",text:""}},props:["name","to","auto_close"],created:function(){},watch:{dialog(t){t?setTimeout(()=>{let t=document.getElementsByClassName("v-overlay");0==t.length&&(document.getElementsByClassName("v-dialog__content--active")[0].style.background="rgba(0, 0, 0, 0.46)"),t=document.querySelector(".v-dialog .v-card__text"),t&&(t.style.backgroundColor="white")},100):document.getElementsByClassName("v-dialog__content--active")[0].style.background=""}},mounted(){c["bus"].$on("dialog",t=>{if(this.mode="",t&&t.mode){this.mode=t.mode;const e={black:{auto_close:!0,sound_type:"end"}},s=d["a"][t.mode][t.name];this.text=s.text,t.auto_close=s.auto_close||e[this.mode].auto_close,t.sound_type=s.sound_type||e[this.mode].sound_type}t&&"login_success"!=t.name&&"none"!=t.sound_type&&("end"==t.sound_type?this.$store.dispatch("soundEffectPlay","after_end_popup"):this.$store.dispatch("soundEffectPlay","after_popup"));let e=["notice_open_type","notice_open_range","teacher_class_change","class_teacher_change","student_select_class","student_select_grade","class_list","move_folder","reprint_opt","set-open","set-range","setPrintOption","setFairyPrintOption","selectSampleOpt","tempDataDialog","choose_phone"];if(e.includes(t.name)?this.mw="29rem":this.$store.state.is_mobile&&"change_img".includes(t.name)?this.mw=420:this.mw=480,1==this.dialog&&1==t.status)return!1;1!=t&&0!=t||(this.dialog=t),1!=t.status&&0!=t.status||(this.dialog=t.status),t.name&&(this.p_name=t.name),this.persistent=!1,t.auto_close&&(this.persistent=!0,h=setTimeout(()=>{switch(this.dialog=!1,t.name){case"login_success":this.$storage.get("user").configdate?this.$router.push({name:"index"}):this.$router.push({name:"setup"});break;default:break}t=null},2e3))})},methods:{close_event(){this.persistent||(this.dialog=!1),"login_success"==this.p_name?(null==this.$storage.get("user").configdate?this.$router.push({name:"setup"}):this.$router.push({name:"index"}),clearTimeout(h)):c["bus"].$emit("close_event",{status:!0,name:this.p_name})},destroySS(){this.$store.state.init_sound=!1,this.$storage.remove("user"),sessionStorage.removeItem("list_num"),this.$store.state.join_cnt=0,this.$store.state.is_mobile||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?window.parent.postMessage({action:"exit-app"},"*"):this.$router.push({name:"login"})}}},_=u,p=(s("bfc3"),s("2877")),m=Object(p["a"])(_,l,r,!1,null,null,null);e["a"]=m.exports},"7cf1":function(t,e,s){"use strict";s("83b4")},"7def":function(t,e,s){"use strict";s("7f3d")},"7e7d":function(t,e,s){},"7f3d":function(t,e,s){},8071:function(t,e,s){},"81d0":function(t,e,s){},8369:function(t,e,s){},"83b4":function(t,e,s){},8559:function(t,e,s){t.exports=s.p+"img/tiny_certi_04_1.d74c7b9d.png"},"865c":function(t,e,s){},"865e":function(t,e,s){"use strict";s("5430")},8803:function(t,e,s){"use strict";(function(t){var a=s("56d7"),i=s("5ce4"),o=s("051e"),n=s("7381"),l=s("ed00"),r=s("ea43");function c(){return{templatekey:0,prevMode:"",mode:"list",overflow_component:0,datatable_component:0,add_student_key:0,asd_key:0,search:"",keyword:"",expanded:[],sel_list:[{text:"문제은행 이동",value:"0",customdisabled:!1},{text:"문제은행 삭제",value:"1",customdisabled:!1}],headers_arr:[{text:"조회",value:"data-table-expand",sortable:!1},{text:"문제은행명",value:"testname",align:"left",sortable:!0},{text:"페이지수",value:"pagecnt",align:"left",sortable:!1},{text:"출제일",value:"postdate",align:"left",sortable:!0},{text:"재출력",value:"reprint",align:"center",sortable:!1},{text:"답안지",value:"answer_sheet",align:"center",sortable:!1}],items:[],items_per_page:10,hide_default_footer:!1,item_key:"id",select_row:!1,select_id:"",select_testname:"",select_folder_name:"",select_fid:"",options:{},page:1,sortby:void 0,sortdesc:void 0,items_length:0,add_folder_name:"",add_folder_rules:[t=>!!t||""],move_tmp:"",move_folder_group:0,all_folder:[],loading_value:!1,loading_message:"잠시만 기다려주세요.",loading_percent:0,all_sentence:[],origin_sentence:[],nowpage:1,maxpage:0,printpage:["0"],all_sentence_arr:{1:[]},preview_name:"",preview_name_disabled:!0,fontSize:12,avatarSize:30,rowpadding:2,question_indent:-8,textIndent:-17,leftrate:"50",rightrate:"50",toggle_exclusive_1:1,toggle_exclusive_2:2,preview_width:2,thumb_labels:["3:7","4:6","5:5","6:4","7:3"],logostatus:!0,cnamestatus:!0,shuffle_question:!1,widthRateDisabled:!1,reprint_opt_group:"",oper_check_all:!1,oper_preview_switch:!1,oper_preview_key:0,sel_que_cnt:"0개",w1:"",w1_disabled:!0,w2:"",w2_disabled:!0,m1:"",m1_disabled:!0,m2:"",m2_disabled:!0,w_check:!1,m_check:!1,oper_datatable_component:0,question_header:[{text:"dot",value:"dot",align:"left",sortable:!1},{text:"check",value:"check",align:"center",sortable:!1},{text:"question",value:"question",align:"center",sortable:!1},{text:"answer",value:"answer",align:"center",sortable:!1}],question_items:[],oper_tmp:[],AC:!1,check_ids:[],print_complete_status:0,print_disabled:!0,reprint_disabled:!0,err_status:1,input_que_cnt:0,answer_sheet:!1,exs_ml:0,print_bg:"",autotext_key:0,full_screen:!1,last_scale:!1,last_pa_width:!1,init_print_status:!1,img_fp:1,countstatus:!1,show:!1,exceptstatus:!1,is_grammar:!1,is_storybook:!1}}e["a"]={name:"lesson-booklist",components:{LoadingDialog:i["a"],customAutoText:o["a"],preFont:n["a"],preCautions:l["a"]},data:c,beforeRouteLeave(t,e,s){"index"==t.name&&this.$storage.get("user").is_mobile?(document.getElementById("loading-wrapper").style.display="block",setTimeout(()=>{s()},100)):s()},created(){let t=new Date,e=t.getFullYear(),s=1+t.getMonth();s=s>=10?s:"0"+s;let a=t.getDate();a=a>=10?a:"0"+a;let i=t.getHours();this.img_fp=e+s+a+i,this.getAllTestFolder(),this.mode=this.$route.params.returnmode?this.$route.params.returnmode:"list",this.page=this.$route.params.returnpage?this.$route.params.returnpage:1,this.items_per_page=this.$route.params.returnitems_per_page?this.$route.params.returnitems_per_page:10,this.sortby=this.$route.params.returnsortby?this.$route.params.returnsortby:void 0,this.sortdesc=this.$route.params.returnsortdesc?this.$route.params.returnsortdesc:void 0,this.keyword="",this.items_per_page=this.getPageListNumberOfStorage(this.$route.path)},mounted(){if(window.addEventListener("message",this.mListener),"success"==this.$route.params.dialog)if("F"==this.$storage.get("user").product_type){let t;t=+this.$storage.get("user").print_cnt>0?`출력 가능한 횟수가 ${this.$storage.get("user").print_cnt}회 남았습니다.`:"출력 가능한 횟수가 모두 소진되었습니다. (10회)",this.openAlert(t)}else this.openAlert("create_questionbank_success");a["bus"].$on("close_event",t=>{if(1==t.status){if("reprint_opt"==t.name){let t=document.getElementsByClassName("move_folder_btn")[0];t.innerText="취소",t.classList.remove("success--text"),this.reprint_opt_group=""}this.overflow_component+=1,this.add_student_key+=1}})},computed:{questionCountTag(){return(t,e)=>{let s="";if(t.unit_info&&e>=2&&e${a.bookname} (${a.name}${a.cnt>1?" 외 "+(a.cnt-1)+"개":""})`}else if(t.unit_info&&e==2+t.unit_info.length||!t.unit_info&&2==e){const e=t.sub_data;let a=0,i=0;s='',e.v_status>0?(a=+e.v1+ +e.mtv1,i=+e.v2+ +e.mtv2,s+=`단어 문제 수 / 객관식 ${a}개, 주관식 ${i}개`):e.s_status>0?(a=+e.w1+ +e.m1+ +e.word_arrange_new,i=+e.w2+ +e.m2+ +e.word_arrange+ +e.blank_inference+ +e.blank_inference_new,s+=`문장 문제 수 / 객관식 ${a}개, 주관식 ${i}개`):e.b_status>0?(a=+e.word_inference+ +e.paragraph_order+ +e.reading_quiz+ +e.grammar_quiz,s+=`변형 문제 수 / 객관식 ${a}개`):e.practical_status>0&&(s+=`실전 문제 수 / 실전문제 ${e.practical}개`)}else if(t.unit_info&&e==3+t.unit_info.length||!t.unit_info&&3==e){const e=t.sub_data;let a=0,i=0;s='',e.s_status>0&&e.v_status>0?(a=+e.w1+ +e.m1+ +e.word_arrange_new,i=+e.w2+ +e.m2+ +e.word_arrange+ +e.blank_inference+ +e.blank_inference_new,s+=`문장 문제 수 / 객관식 ${a}개, 주관식 ${i}개`):e.b_status>0?(a=+e.word_inference+ +e.paragraph_order+ +e.reading_quiz+ +e.grammar_quiz,s+=`변형 문제 수 / 객관식 ${a}개`):e.practical_status>0?s+=`실전 문제 수 / 실전문제 ${e.practical}개`:e.v_status>0&&(a=+e.v1+ +e.mtv1,i=+e.v2+ +e.mtv2,s+=`단어 문제 수 / 객관식 ${a}개, 주관식 ${+e.v2+ +e.mtv2}개`)}else if(t.unit_info&&e==4+t.unit_info.length||!t.unit_info&&4==e){const e=t.sub_data;let a=0,i=0;e.b_status>0?(a=+e.word_inference+ +e.paragraph_order+ +e.reading_quiz+ +e.grammar_quiz,s+=`변형 문제 수 / 객관식 ${a}개`):e.practical_status>0?s+=`실전 문제 수 / 실전문제 ${e.practical}개`:e.s_status>0?(a=+e.w1+ +e.m1+ +e.word_arrange_new,i=+e.w2+ +e.m2+ +e.word_arrange+ +e.blank_inference+ +e.blank_inference_new,s+=`문장 문제 수 / 객관식 ${a}개, 주관식 ${i}개`):e.v_status>0&&(a=+e.v1+ +t.data.mtv1,i=+e.v2+ +e.mtv2,s+=`단어 문제 수 / 객관식 ${a}개, 주관식 ${i}개`)}if(t.is_grammar&&(t.unit_info&&[2+t.unit_info.length,3+t.unit_info.length,4+t.unit_info.length].includes(e)||!t.unit_info&&[2,3,4].includes(e))){const a=t.sub_data,i=a.grammar_modules,o={gt:`이론 문제 수 / 단어점검 ${i.t1}개, 이론점검 ${i.t2}개`,gb:`기본 문제 수 / 기본학습1 ${i.b1}개, 기본학습2 ${i.b2}개, 기본학습3 ${i.b3}개, 기본학습4 ${i.b4}개`,gd:`심화 문제 수 / 심화학습1 ${i.d1}개`};s+=o[a.active_order[e-3]],s+=""}return""!=s.slice(-7)&&(s+=""),s}},folderNameRight(){let t;switch(this.$vuetify.breakpoint.name){case"xs":t=100;break;case"sm":t=104;break;case"md":t=108;break;case"lg":t=112;break;case"xl":t=120;break}return t}},watch:{preview_name(t){t&&""!=t.replace(/ /g,"")?this.print_disabled=!1:(document.querySelectorAll(".auto-text.clip")[0]&&(document.querySelectorAll(".auto-text.clip")[0].innerHTML=""),this.print_disabled=!0)},options:{handler(){this.clearAllCheck(),this.page=this.options.page,this.items_per_page=this.options.itemsPerPage,this.sortby=this.sortby,this.sortdesc=this.sortdesc,this.updatePageListNumberOfStorage(this.$route.path,null,this.options.itemsPerPage),"list"==this.mode?this.get_allbook():"folder"==this.mode&&this.getTestFolder()},deep:!0},shuffle_question(t){this.all_sentence=[];let e=null;if(t){let t=[...this.origin_sentence];t.sort(()=>.5-Math.random()),e=t}else e=this.origin_sentence;for(let[s,a]of Object.entries(e))if(["word_inference","paragraph_order","reading_quiz","blank_inference","grammar_quiz"].includes(a.type)){"blank_inference"==a.type&&(a.question_text="주어진 해석을 참고하여 영문장의 빈칸을 완성하세요.");let t=`${+s+1}question@@${a.question}${a.exs?"@@answernum@@"+a.answer:""}@@question_text@@${a.question_text}@@bank_type@@${a.bank_type}@@type@@bank`;if([3,6].includes(a.bank_type)&&(t+="@@st_std@@"+a.st_std),a.exs&&a.exs.length<=3&&![3,4].includes(a.bank_type)&&(t+="@@3underexs@@"+a.exs[a.answer]),this.all_sentence.push(t),a.exs)(a.exs.length>3||[3,4].includes(a.bank_type)&&3==a.exs.length)&&(this.all_sentence.push("1exs@@"+a.exs[0],"2exs@@"+a.exs[1]),a.exs[2]&&this.all_sentence.push("3exs@@"+a.exs[2]),a.exs[3]&&this.all_sentence.push("4exs@@"+a.exs[3]),a.exs[4]&&this.all_sentence.push("5exs@@"+a.exs[4]));else if("blank_inference"==a.type){let t=a.answer.split(" ");if(t){let e=Math.round(.4*t.length);if(e=e>45?45:e,e>0){let s=this.getRandomArray(0,t.length-1,e);for(let a=0;a
')}}t=t.join(" ")}this.all_sentence.push(`type@@blank_inference@@answerstr@@${t}@@answerorg@@${a.answer}`)}else this.all_sentence.push("answerstr@@"+a.answer)}else{let t=`${+s+1}question@@${a.question}${a.exs?"@@answernum@@"+a.answer:""}@@type@@${a.type}`;this.all_sentence.push(t),"word_arrange"==a.type&&this.all_sentence.push(`word_arrange_q@@${a.conv_question}@@word_arrange_a@@${a.answer}`),a.exs?this.all_sentence.push("1exs@@"+a.exs[0],"2exs@@"+a.exs[1],"3exs@@"+a.exs[2],"4exs@@"+a.exs[3]):"word_arrange"==a.type?this.all_sentence.push("type@@word_arrange@@answerstr@@"+a.answer):this.all_sentence.push("answerstr@@"+a.answer)}this.initPrintPage("toggle_change")},w_check(t){t||(this.w1="",this.w2="",this.reprint_disabled=!0,this.input_que_cnt=0),this.w1_disabled=!t,this.w2_disabled=!t},m_check(t){t||(this.m1="",this.m2="",this.reprint_disabled=!0,this.input_que_cnt=0),this.m1_disabled=!t,this.m2_disabled=!t},mode(t,e){if(this.reprint_opt_group="",this.answer_sheet=!1,this.prevMode=e,"disabled"!=this.all_folder){let e=this.all_folder.findIndex(t=>"movelist"==t.value);"list"==t?-1!=e&&this.all_folder.splice(0,1):"folder"==t&&-1==e&&this.all_folder.unshift({text:"목록으로 이동",value:"movelist"})}},"$store.state.user.zoom_status"(){"list"!==this.mode&&(this.loading_value=!0,this.calcHeight(),this.nowpage=1,document.print_form.user.value=JSON.stringify(this.$store.state.user),document.print_form.submit())}},methods:{getPageListNumberOfStorage:r["a"],updatePageListNumberOfStorage:r["f"],selectTest(t){t.isSelected=!t.isSelected;const e=this["check_ids"].findIndex(e=>e.id==t.id);-1===e?this["check_ids"].push(t):this["check_ids"].splice(e,1)},selectAllTest(t){console.log(t,"e"),this["check_ids"]=[],t.items.forEach(e=>{e.cid&&(e.isSelected=t.value,t.value&&this["check_ids"].push(e))})},clearAllCheck(){this.AC=!1,this.check_ids=[]},getAllTestFolder(){this.$axios.get(`${this.$host}/book/${this.$cid}/getalltestfolder`).then(t=>{if(204==t.status)this.all_folder="disabled",this.sel_list[0].customdisabled=!0;else if(200==t.status){this.all_folder=[];for(let e of Object.entries(t.data))this.all_folder.push({text:e[1].name,value:e[1].id})}}).catch(t=>{this.all_folder=[],console.log(t)})},push_class_add(){this.$router.push({name:"user-class-oper",params:{page:this.page,items_per_page:this.items_per_page,sortby:this.sortby,sortdesc:this.sortdesc}})},get_allbook(){let t=+this.items_per_page,e=(+this.page-1)*t;const s=this.sortby,a=this.sortdesc,i=this.keyword;"F"==this.$storage.get("user").product_type&&(0==e?t-=1:e-=1);let o=`${this.$host}/book/${this.$cid}/gettestprintlist/${e}/${t}`;void 0!=s&&void 0!=a&&(o+=`/${s}/${1==a?"desc":"asc"}`),""!=i&&(o+="?keyword="+i),this.getTestPrintNew(o,"all",e)},toggleClassRow(t){if("back"==t.id)return this.mode="list",this.items=[],this.keyword="",this.search="",this.page>1?this.page=1:this.get_allbook(),!1;if(t.id.match("folder")){this.clearAllCheck();let e=t.id.replace("folder","");return this.select_fid=e,this.mode="folder",this.select_folder_name=t.testname,this.keyword,this.search="",this.getTestFolder(),!1}this.expanded.length>0&&this.expanded[0].id==t.id?(this.select_row=!1,this.select_id="",this.expanded.pop()):("sample"==t.id?this.select_row=!1:this.select_row=!0,this.select_id=t.id,this.expanded.pop(),this.expanded.push(t))},addFolder(){if(""==this.add_folder_name.replace(/ /g,""))return this.$refs.add_folder_name_field.focus(),!1;this.$axios.post(`${this.$host}/book/${this.$cid}/addtestfolder`,{name:this.add_folder_name}).then(t=>{if(200==t.status)this.add_folder_name="",this.sel_list[0].customdisabled=!1,this.datatable_component+=1,this.getAllTestFolder(),this.closeDialog();else if(202==t.status)return this.closeDialog(),this.openDialog("duplicate_folder_name"),!1}).catch(t=>{console.log(t)})},select_move_folder(t){this.select_fid=t;let e=document.getElementsByClassName("move_folder_btn")[0];e.innerText="확인",e.classList.add("success--text"),this.move_tmp=t},moveFolderSubmit(){let t=document.getElementsByClassName("move_folder_btn")[0];if("취소"==t.innerText)this.overflow_component+=1,this.closeDialog();else if("확인"==t.innerText){let e=new Promise((t,e)=>{this.$axios.post(`${this.$host}/book/${this.$cid}/movetestfolder`,{folder_id:this.move_tmp,test_id:this.check_ids.map(t=>t.id)}).then(e=>{200==e.status&&t(e)}).catch(t=>{e(t)})});e.then(()=>{if(this.closeDialog(),this.select_row=!1,this.expanded=[],this.move_folder_group+=1,this.overflow_component+=1,t.innerText="취소",t.classList.remove("success--text"),"movelist"!=this.move_tmp){let t=this.all_folder.find(t=>t.value==this.move_tmp);this.expanded.pop(),this.mode="folder",this.select_folder_name=t.text,this.page=1,this.getTestFolder()}else this.select_folder_name="",this.expanded.pop(),this.mode="list",this.get_allbook()}).catch(t=>{console.log(t)}),this.clearAllCheck()}},getTestFolder(){const t=this.select_fid;let e=+this.items_per_page,s=(+this.page-1)*e;const a=this.sortby,i=this.sortdesc,o=this.keyword;"folder"==this.mode&&(this.items.push({id:"back",testname:this.select_folder_name}),e=+e-1,s=0==+s?s:+s-1);let n=`${this.$host}/book/${t}/gettestfolder/${s}/${e}`;void 0!=a&&void 0!=i&&(n+=`/${a}/${1==i?"desc":"asc"}`),""!=o&&(n+="?keyword="+o),this.getTestPrintNew(n,"folder",s)},delTest(){this.$axios.post(`${this.$host}/book/${this.$cid}/deltest`,{test_id:this.check_ids.map(t=>t.id)}).then(t=>{200==t.status&&(this.closeDialog(),this.select_row=!1,this.expanded=[],this.datatable_component+=1,this.overflow_component+=1)}).catch(t=>{console.log(t)}),this.clearAllCheck()},delFolder(){if(!this.select_fid)return this.openAlert("error"),!1;this.$axios.post(`${this.$host}/book/${this.$cid}/deltestfolder`,{folder_id:this.select_fid}).then(t=>{200==t.status&&(this.mode="list",this.datatable_component+=1,this.getAllTestFolder(),this.closeDialog())}).catch(t=>{console.log(t)})},select_row_event(t){0==t?this.openDialog("move_folder"):1==t&&this.openDialog("del_test_confirm")},search_keyword(t){13==t.keyCode&&(this.keyword=t.target.value,1!=this.page?this.page=1:1==this.page&&("list"==this.mode?this.get_allbook():"folder"==this.mode&&this.getTestFolder()))},search_icon_click(){this.keyword=document.getElementById("search").value,1!=this.page?this.page=1:1==this.page&&("list"==this.mode?this.get_allbook():"folder"==this.mode&&this.getTestFolder())},rePrint(t){console.log("reprint function",t),this.select_id=t.id,this.select_testname=t.testname,this.preview_name=this.select_testname,this.preview_name_disabled=!1,this.exceptstatus=1==t.exceptstatus?"true":"false",this.is_grammar=t.is_grammar?"true":"false",this.is_storybook=t.is_storybook?"true":"false",this.toggle_exclusive_2=t.lineheight?+t.lineheight:2,this.rowpadding=this.toggle_exclusive_2,this.getTestSentence(),this.mode="origin_reprint",this.topNavBarChange()},select_reprint_opt(t){let e=document.getElementsByClassName("move_folder_btn")[0];e.innerText="확인",e.classList.add("success--text"),this.move_tmp=t},reprintSubmit(){let t=document.getElementsByClassName("move_folder_btn")[0];"취소"==t.innerText?this.closeDialog(!0):"확인"==t.innerText&&(this.closeDialog(!0),this.preview_name=this.select_testname,this.preview_name_disabled=!1,0==this.reprint_opt_group?(this.getTestSentence(),this.mode="origin_reprint"):1==this.reprint_opt_group&&this.getTestSentence("oper"),this.topNavBarChange())},answerConfirm(t,e){this.select_id=t,this.select_testname=e,this.openDialog("answer_print_confirm")},answerSheet(){event.stopPropagation(),this.preview_name=this.select_testname+" (답안지)",this.closeDialog(),this.mode="answerprint",setTimeout(()=>{this.answer_sheet=!0},200),this.topNavBarChange(),this.getTestSentence()},getTestSentence(t=""){this.print_bg="'"+this.$cdn+"/img/bg/test_print_bg_1.png?v="+ +new Date+"'",this.$axios.get(`${this.$host}/book/${this.select_id}/gettestcontent`).then(e=>{if(200==e.status)if(this.all_sentence=[],this.origin_sentence=JSON.parse(e.data.content),console.log(t),""==t)setTimeout(()=>{this.preSubmit().then(()=>{let t=document.print_form;t.target="test_iframe","sample"==this.select_id?t.res_data.setAttribute("value",JSON.parse(e.data.content)):t.res_data.setAttribute("value",JSON.stringify(JSON.parse(e.data.content))),t.submit(),this.initPrintPage()})},100);else if("oper"==t){this.reprint_disabled=!0,this.oper_check_all=!1,this.question_items=[],this.oper_preview_switch=!1,this.sel_que_cnt="0개",this.input_que_cnt=0,this.w_check=!1,this.m_check=!1,this.w1="",this.w2="",this.m1="",this.m1="",this.logostatus=!0,this.cnamestatus=!0;for(let[t,e]of Object.entries(this.origin_sentence)){let s,a="";["v1","w1"].includes(e.type)?(s=e.question,a=e.exs[e.answer]):["v2","w2"].includes(e.type)?(s=e.question,a=e.answer):["mtv1","m1"].includes(e.type)?(s=e.exs[e.answer],a=e.question):["mtv2","m2","word_arrange"].includes(e.type)&&(s=e.answer,a=e.question),this.question_items.push({dot:"",check:!1,origin_idx:t,question:s.match("@@type@@")?s.split("@@type@@")[0]:s,answer:a.match("@@type@@")?a.split("@@type@@")[0]:a})}this.mode="oper_reprint"}}).catch(t=>{console.log(t)})},getThumbLabels(t){return this.thumb_labels[t]},calcHeight(){let t=document.getElementById("printarea0");if(t){const e=this.$storage.get("user").zoom_status;let s=1;if(0===e)t.style.width=t.getBoundingClientRect().height/1.414+"px",this.last_pa_width=t.style.width,s=.2645833333*t.getBoundingClientRect().width/210,this.last_scale=s;else if(1===e){const e=(t.getBoundingClientRect().height/.901).toFixed(3);t.style.width=e/1.414+"px",this.last_pa_width=t.style.width,s=e/1.414*.2645833333/210,this.last_scale=s}let a=document.getElementById("scalearea_0");a.childNodes[1].style.height="calc(100% - 256px)",a.style.transform=`scale(${s})`,a.style.opacity="1"}},initPrintPage(t=""){console.time("init");let e=document.getElementById("tmploading"),s=document.getElementsByClassName("printarea");e.childNodes[0].style.width=s[0].style.width,e.childNodes[0].childNodes[0].style.transform="scale("+s[0].getBoundingClientRect().height/1.414*.2645833333/210+")",e.style.display="block";let a=()=>new Promise(a=>{s.length>1&&(this.maxpage=s.length),this.calcHeight(),e.style.display="none","oper"==t&&setTimeout(()=>{let t=""==this.w1?0:+this.w1,e=""==this.w2?0:+this.w2,s=""==this.m1?0:+this.m1,a=""==this.m2?0:+this.m2,i=[];for(let l=0;l{this.prePrint().then(()=>{console.log("print",document),window.print();let t=document.getElementById("here_scalearea");while(t.hasChildNodes())t.removeChild(t.firstChild);let e=document.getElementsByClassName("header-tabs")[0];"flex-end"==e.style.justifyContent&&this.topNavBarChange("space-evenly"),this.$parent.$parent.$parent.$parent.rvkey+=1})}).catch(t=>{console.log(t)})},500),a()});setTimeout(()=>{a().then(()=>{console.log("printend success")})},100)},forEachPromise(t,e,s){return t.reduce((function(t,a){return t.then((function(){return e(a,s)}))}),Promise.resolve())},pushItem(e,s){return new Promise(a=>{t.nextTick(()=>{let t=document.getElementsByClassName("middle_section"),i=this.all_sentence_arr.length;this.all_sentence_arr[i-2].push(e),i%2==0?(t=2==i?t[i-2].childNodes[0]:t[i/2-1].childNodes[0],s+.2645833333*t.getBoundingClientRect().height>250&&(this.all_sentence_arr[i-2].splice(this.all_sentence_arr[i-2].length-1,1),this.all_sentence_arr[2==i?i-1:i-2].push(e),this.all_sentence_arr.push(new Array))):(t=3==i?t[i-3].childNodes[1]:t[(i-1)/2-1].childNodes[1],s+.2645833333*t.getBoundingClientRect().height>250&&(this.all_sentence_arr[i-2].splice(this.all_sentence_arr[i-2].length-1,1),this.all_sentence_arr[i-1].push(e),this.printpage.push(String(this.printpage.length)),this.all_sentence_arr.push(new Array))),a("success")})})},movePage(t){this.$store.dispatch("soundEffectPlay","click_button");const e=document.getElementById("test_iframe").contentWindow;e.postMessage({key:"movepage",value:t},"*")},toggleOperAllCheck(t){for(let e in this.question_items)this.question_items[e].check=t;t?this.sel_que_cnt=this.question_items.length+"개":(this.sel_que_cnt="0개",this.err_status=1,this.reprint_disabled=!0)},toggleOperCheck(t){if(t.check=!t.check,this.oper_check_all)t.check||(this.oper_check_all=!1);else{let t=this.question_items.some(t=>0==t.check);t||(this.oper_check_all=!0)}this.sel_que_cnt=this.sel_que_cnt.replace("개","")+(t.check?1:-1)+"개",this.chkVal()},changePreview(t){let e=""==this.w1?0:+this.w1,s=""==this.w2?0:+this.w2,a=""==this.m1?0:+this.m1,i=""==this.m2?0:+this.m2;if(t){let o=this.question_items.filter(t=>1==t.check);const n={1:"문항 수가 선택한 문항 수보다 많습니다.",2:"객관식 문제를 만들 문항 수가 부족합니다.",4:"문항수를 먼저 선택하세요.",5:"문항을 먼저 선택하세요."};if(e+s+a+i==0)return this.err_status=0==o.length?5:4,this.oper_preview_switch=!1,this.oper_preview_key+=1,this.openAlert(n[this.err_status]?n[this.err_status]:"문항을 확인해주세요."),!1;if(0!=this.err_status)this.oper_preview_switch=!t,this.openAlert(n[this.err_status]?n[this.err_status]:"문항을 확인해주세요.");else{this.$store.dispatch("soundEffectPlay","click_button"),this.nowpage=0;let t=document.getElementsByClassName("printarea");for(let e=0;e0&&(n=1)}1==n?(this.maxpage=0,this.createOperSentence().then(()=>{this.mode="oper_preview",setTimeout(()=>{this.initPrintPage()},100)})):(this.mode="oper_preview",setTimeout(()=>{let t=document.getElementsByClassName("printarea"),e=document.getElementsByClassName("scalearea");for(let a=0;a{let e=""==this.w1?0:+this.w1,s=""==this.w2?0:+this.w2,a=""==this.m1?0:+this.m1,i=""==this.m2?0:+this.m2,o=this.question_items.filter(t=>1==t.check);this.oper_tmp={w1:e,w2:s,m1:a,m2:i,item:[...o]},this.all_sentence=[];let n=0;for(let l=0;l.5-Math.random());let s=e.findIndex(e=>e==t.answer);this.all_sentence.push(n+1+"question@@"+t.question+"@@answernum@@"+s+"@@type@@w1");for(let a=0;a<4;a++)this.all_sentence.push(a+1+"exs@@"+e[a]);s=o.findIndex(e=>e.question==t.question),o.splice(s,1),n+=1}for(let l=e;le.question==t.question);o.splice(e,1),n+=1}for(let l=s;l.5-Math.random());let s=e.findIndex(e=>e==t.question);this.all_sentence.push(n+1+"question@@"+t.answer+"@@answernum@@"+s+"@@type@@m1");for(let a=0;a<4;a++)this.all_sentence.push(a+1+"exs@@"+e[a]);s=o.findIndex(e=>e.question==t.question),o.splice(s,1),n+=1}for(let l=a;le.question==t.question);o.splice(e,1),n+=1}t()})},windowPrint(t=""){if(this.$store.state.is_mobile)this.openDialog("mobile_print");else if(this.$store.dispatch("soundEffectPlay","click_button"),"oper"==t)this.mode="oper_preview",setTimeout(()=>{this.createOperSentence().then(()=>{this.initPrintPage("oper")})},500);else{document.title=this.preview_name;const t=document.getElementsByClassName("clip");document.getElementById("test_iframe").contentWindow.postMessage({key:"window_print",value:{fontsize:t[0].style.fontSize,text:t[0].innerText}},"*")}},prePrint(){return new Promise(t=>{var e=document.getElementById("here_scalearea");for(let[a,i]of Object.entries(e.childNodes))i.classList&&(i.classList.contains("scalearea")&&i.parentNode.removeChild(i),i.classList.contains("page_break")&&i.parentNode.removeChild(i));let s=document.getElementsByClassName("scalearea");for(let[a,i]of Object.entries(s)){let t=i.cloneNode(!0);if(t.style.backgroundImage="",t.classList.remove("bg-white"),+a>0){t.style.backgroundImage="url('https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy/img/bg/test_print_bg_2.png?v="+this.img_fp+"')";let e=t.getElementsByClassName("header_section")[0];for(let[t,s]of Object.entries(e.childNodes))s.parentNode.removeChild(s)}t.style.display="none",e.append(t);let s=document.createElement("div");s.classList.add("page_break"),e.append(s)}t()})},customOnlyNumber(t,e){t=t||window.event;var s=t.which?t.which:t.keyCode;s>=48&&s<=57||s>=96&&s<=105||8==s||46==s||37==s||39==s||("w1"==e?this.w1=this.w1.replace(/[^0-9]/g,""):"w2"==e?this.w2=this.w2.replace(/[^0-9]/g,""):"m1"==e?this.m1=this.m1.replace(/[^0-9]/g,""):"m2"==e&&(this.m2=this.m2.replace(/[^0-9]/g,"")))},chkVal(){let t=""==this.w1?0:+this.w1,e=""==this.w2?0:+this.w2,s=""==this.m1?0:+this.m1,a=""==this.m2?0:+this.m2,i=t+e+s+a;this.input_que_cnt=i,this.reprint_disabled=!0,+this.sel_que_cnt.replace("개","")<4&&t+s>0?this.err_status=2:+this.sel_que_cnt.replace("개","")=17&&this.openAlert("max_preview_name"),document.getElementById("test_iframe").contentWindow.postMessage({key:"preview_name",value:this.preview_name},"*")},changeWidthRate(t){let e=this.thumb_labels[t].split(":")[0],s=this.thumb_labels[t].split(":")[1];this.leftrate=""+10*+e,this.rightrate=""+10*+s,this.$nextTick(()=>{this.preSubmit("toggle_change").then(()=>{this.$forceUpdate(),document.print_form.submit()})})},toggleChange1(t){this.$store.dispatch("soundEffectPlay","click_button"),this.fontSize=10+2*t,this.question_indent=-8,0==t?this.textIndent=-14:1==t?this.textIndent=-17:2==t&&(this.question_indent=-9,this.textIndent=-19),this.avatarSize=this.fontSize+16,this.$nextTick(()=>{this.preSubmit("toggle_change").then(()=>{this.$forceUpdate(),document.print_form.submit()})})},toggleChange2(t){this.rowpadding=t,this.$nextTick(()=>{this.preSubmit(),this.$forceUpdate(),document.print_form.submit()})},getRandom(t,e){return Math.floor(Math.random()*(e-t+1)+t)},getRandomArray(t,e,s){if(!(e-t+1-1)&&(a.push(i),a.length==s))break}return a.sort((function(t,e){return t-e}))}},fullScreen(){let t=document.getElementById("test_wrapper"),e=document.getElementsByClassName("printarea"),s=e[0];if(this.full_screen)for(let[a,i]of Object.entries(e))i.style.width=this.last_pa_width,i.getElementsByClassName("scalearea")[0].style.transform=`scale(${this.last_scale})`;else{t.style.overflowY="scroll";const a=this.$store.state.user.zoom_status;if(0===a){let t="";for(let[a,i]of Object.entries(e))i.style.width="100%",this.$nextTick(()=>{t=s.getBoundingClientRect().width/793.70078739,i.getElementsByClassName("scalearea")[0].style.transform="scale("+t+")"})}else 1===a&&Object.values(e).forEach(t=>{t.style.width="100%";let e=t.getBoundingClientRect().width/.901/793.70078739;t.getElementsByClassName("scalearea")[0].style.transform=`scale(${e})`})}t.style.overflowY=this.full_screen?"unset":"scroll",this.full_screen=!this.full_screen},mListener(t){t.data.maxpage?setTimeout(()=>{this.maxpage=t.data.maxpage,this.$forceUpdate(),this.print_complete_status=1,this.loading_value=!1,this.init_print_status=!1,console.timeEnd("init")},0):t.data.nowpage?this.nowpage=t.data.nowpage:t.data.window_print?(200==t.data.window_print&&(this.topNavBarChange("space-evenly"),this.$parent.$parent.$parent.$parent.rvkey+=1),document.title="내공스터디 관리자"):t.data.loading_percent&&(this.loading_percent=t.data.loading_percent,this.loading_percent>=100&&(this.loading_value=!1),this.$forceUpdate())},preSubmit(t){return new Promise(e=>{this.nowpage=1,this.print_complete_status=0,this.init_print_status=!0,this.loading_value=!0,this.loading_percent=1;let s=this.items.findIndex(t=>t.id==this.select_id);if(-1!=s&&this.items[s].fontsize&&"toggle_change"!=t){switch(this.toggle_exclusive_1=this.items[s].fontsize?+this.items[s].fontsize:this.toggle_exclusive_1,this.fontSize=10+2*this.toggle_exclusive_1,this.question_indent=-8,this.toggle_exclusive_1){case 0:this.textIndent=-14;break;case 1:this.textIndent=-17;break;case 2:this.question_indent=-9,this.textIndent=-19;break;default:break}if(this.avatarSize=this.fontSize+16,this.items[s].lr_rate){this.leftrate=10*+this.items[s].lr_rate.split(":")[0],this.rightrate=10*+this.items[s].lr_rate.split(":")[1];let t=this.thumb_labels.findIndex(t=>t==this.items[s].lr_rate);-1!=t&&(this.preview_width=+t)}}e()})},changeOption(t){document.getElementById("test_iframe").contentWindow.postMessage({key:t,value:this[t]?1:0},"*")},changeShuffle(){this.$nextTick(()=>{this.preSubmit("toggle_change").then(()=>{this.$forceUpdate(),document.print_form.submit()})})},getTestPrintNew(t,e,s){const a={id:"sample",testname:"중등2 내신대비 (체험판 샘플)",postdate:this.getToday().replace(/-/g,"."),fontsize:1,lineheight:1,lr_rate:"5:5",pagecnt:8,sub_data:{quizcnt:70,v1:5,v2:5,mtv1:5,mtv2:5,w1:5,w2:5,m1:5,m2:5,word_arrange:5,word_arrange_new:0,word_inference:5,paragraph_order:5,reading_quiz:5,blank_inference:5,blank_inference_new:0,grammar_quiz:5,v_status:1,s_status:1,b_status:1,tr_cnt:3}};this.$axios.get(t).then(t=>{if(200==t.status){this.items=[],this.items_length=t.data.records,"folder"==e&&this.items.push({id:"back",testname:this.select_folder_name}),"all"==e&&"F"==this.$storage.get("user").product_type&&0==s&&(this.items.push(a),this.items_length+=1);const i=t.data.rows;for(let t=0,e=i.length;t0?1:0,o=+e.w1+ +e.w2+ +e.m1+ +e.m2+ +e.word_arrange+ +e.word_arrange_new+ +e.blank_inference+ +e.blank_inference_new>0?1:0,n=+e.word_inference+ +e.paragraph_order+ +e.reading_quiz+ +e.grammar_quiz>0?1:0,l=0,r=0,c=0,d=[];if(e.is_grammar){s=JSON.parse(e.grammar_modules[0].modules);let t=s;l=+t.t1+ +t.t2>0?1:0,r=+t.b1+ +t.b2+ +t.b3+ +t.b4>0?1:0,c=+t.d1+ +t.d2>0?1:0,1===l&&d.push("gt"),1===r&&d.push("gb"),1===c&&d.push("gd")}e.id=e.testprintid,e.postdate=e.postdate?e.postdate.split(" ")[0].replace(/-/gi,"."):"",e.isSelected=!e.cid&&null,e.unit_info=e.unit_info?e.unit_info:null,e.sub_data={quizcnt:e.quizcnt||0,v1:e.v1||0,v2:e.v2||0,mtv1:e.mtv1||0,mtv2:e.mtv2||0,w1:e.w1||0,w2:e.w2||0,m1:e.m1||0,m2:e.m2||0,word_arrange:e.word_arrange||0,word_arrange_new:e.word_arrange_new||0,blank_inference:e.blank_inference||0,blank_inference_new:e.blank_inference_new||0,word_inference:e.word_inference||0,paragraph_order:e.paragraph_order||0,reading_quiz:e.reading_quiz||0,grammar_quiz:e.grammar_quiz||0,v_status:a,s_status:o,b_status:n,gt_status:l,gb_status:r,gd_status:c,grammar_modules:s,active_order:d,practical:+e.practical||0,practical_status:+e.practical?1:0,tr_cnt:a+o+n+(e.unit_info?e.unit_info.length:0)+l+r+c+(+e.practical?1:0)},this.items.push(e)}}else 204==t.status&&(this.items=[],"folder"==e&&this.items.push({id:"back",testname:this.select_folder_name}),"all"==e&&"F"==this.$storage.get("user").product_type&&this.items.push(a),this.items_length=this.items.length)}).catch(t=>{console.log(t),this.items=[],"folder"==e&&this.items.push({id:"back",testname:this.select_folder_name})})}},beforeDestroy(){this.allBusDestroy(),window.removeEventListener("message",this.mListener)}}}).call(this,s("f28c"))},"881f":function(t,e,s){},"899b":function(t,e,s){},"8a67":function(t,e,s){t.exports=s.p+"img/study_report.14b2f576.png"},"8bd1":function(t,e,s){var a={"./a_report.png":"4f72","./gb_report.png":"bd5b","./gt_report.png":"e5ba","./leveltest_report.png":"987f","./m_report.png":"1ef1","./mz_report.png":"ca38","./sa_report.png":"49d3","./study_report.png":"8a67","./test_report.png":"a08d","./v_report.png":"adeb","./z_report.png":"e7ca"};function i(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=o,t.exports=i,i.id="8bd1"},"8bde":function(t,e,s){},"8bf4":function(t,e,s){t.exports=s.p+"img/daily_report_3.b0f9be87.png"},"8f00":function(t,e,s){"use strict";s("d07d")},"8f06":function(t,e,s){},9053:function(t,e,s){"use strict";s("fa97")},"92ad":function(t,e,s){"use strict";s("881f")},"96d6":function(t,e,s){"use strict";s("c912")},9790:function(t,e,s){},9875:function(t,e,s){t.exports=s.p+"img/report4.7a11a5b9.png"},"987f":function(t,e,s){t.exports=s.p+"img/leveltest_report.45aeb825.png"},"9b45":function(t,e,s){},"9be5":function(t,e,s){},"9d16":function(t,e,s){},"9e35":function(t,e,s){},"9eec":function(t,e,s){"use strict";s("0ae3")},"9f4e":function(t,e,s){},a08d:function(t,e,s){t.exports=s.p+"img/test_report.1377cd25.png"},a18e:function(t,e,s){"use strict";s("0f34")},a1ac:function(t,e,s){"use strict";s("f07e")},a213:function(t,e,s){"use strict";s("b7f3")},a55b:function(t,e,s){"use strict";s.r(e);var a=s("8336"),i=s("b0af"),o=s("99d9"),n=s("62ad"),l=s("a523"),r=s("4bd4"),c=s("132d"),d=s("67b6"),h=s("43a6"),u=s("0fd9"),_=s("71a3"),p=s("c671"),m=s("fe57"),g=s("aac8"),b=s("8654"),f=s("dc22"),y=function(){var t=this,e=t._self._c;return e(l["a"],{staticClass:"fill-height bg pa-0",style:`align-items:${t.card_align};`,attrs:{fluid:""}},[e(u["a"],{staticClass:"w-100 mgauto over-y-scroll",style:`margin-top:${t.card_top} !important;`,attrs:{id:"loginvue",align:"center",justify:"center"}},[e(n["a"],{attrs:{cols:"12",sm:"8",md:"7",lg:"7"}},[e(m["a"],{attrs:{dark:"","hide-slider":""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[t._l(t.tabs,(function(t){return e(_["a"],{key:"tab-"+t,attrs:{href:"#tab-"+t}})})),e(g["a"],{attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e(p["a"],{directives:[{def:f["b"],name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}],key:1,attrs:{value:"tab-1",transition:!1,"reverse-transition":!1}},[e(i["a"],{ref:"tab_1_card",staticClass:"elevation-0",staticStyle:{background:"#fafbfc"},attrs:{id:"tab_1_card",outlined:"",flat:""}},[e(o["b"],{staticClass:"pa-0",staticStyle:{"padding-top":"7vh !important"}},[e(u["a"],{attrs:{align:"center",justify:"center"}},[e(n["a"],{staticClass:"pb-0",attrs:{cols:"12",sm:"7",md:"6",lg:"6"}},[e("preFont"),e(u["a"],{attrs:{"no-gutters":""}},[e(n["a"],{attrs:{cols:"6",offset:"3",lg:"6","offset-lg":"3",md:"6","offset-md":"3",sm:"6","offset-sm":"3"}},[e("app-logo",{attrs:{color:"rgb(22, 208, 91)",backgroundColor:"transparent",inColor:"white"}})],1)],1),e("h2",{staticClass:"title text-center mt-2 fw-400",staticStyle:{"margin-left":"-20%","margin-right":"-20%",color:"#0009 !important"}},[t._v("\n 영어내신은 역시, 스마트 학습 내공스터디!\n ")]),e("br"),e(r["a"],{ref:"loginform",staticStyle:{"padding-left":"5%","padding-right":"5%"},model:{value:t.loginvalid,callback:function(e){t.loginvalid=e},expression:"loginvalid"}},[e(b["a"],{staticClass:"c-login-input",attrs:{rules:t.rules.id,id:"loginid",placeholder:"아이디 입력",name:"login",type:"text",outlined:"","hide-details":"","single-line":"",required:"",color:"success"},on:{keydown:t.enter_loginvalidate,focus:function(e){return t.focusField(1,e)},blur:function(e){return t.blurField(1,e)}},model:{value:t.loginid,callback:function(e){t.loginid=e},expression:"loginid"}}),e("div",{staticClass:"padding-divider"}),e(b["a"],{staticClass:"text-center c-login-input",attrs:{rules:t.rules.password,id:"password",placeholder:"비밀번호 입력",name:"password",type:"password",outlined:"","hide-details":"","single-line":"",required:"",color:"success"},on:{keydown:t.enter_loginvalidate,focus:function(e){return t.focusField(2,e)},blur:function(e){return t.blurField(2,e)}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)],1)],1),e(o["a"],{staticClass:"text-center",staticStyle:{"padding-top":"2.9vh","padding-bottom":"2.8vh"}},[e(u["a"],{attrs:{"no-gutters":"",align:"center",justify:"center"}},[e(n["a"],{attrs:{cols:"3"}},[e(a["a"],{attrs:{color:"success","x-large":"",block:"",elevation:"0"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.loginvalidate()}}},[t._v("\n 로그인\n ")])],1)],1)],1),e(o["a"],{staticClass:"text-center pa-0"},[e(u["a"],{staticStyle:{height:"30px"},attrs:{align:"center",justify:"center"}},[e("a",{staticClass:"success--text mr-3",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("2")}}},[t._v("아이디 찾기")]),e("a",{staticClass:"success--text ml-3",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("3")}}},[t._v("비밀번호 찾기")])])],1),e(o["a"],{staticClass:"text-center",staticStyle:{"padding-bottom":"2vh"}},[e(u["a"],{attrs:{"no-gutters":"",align:"center",justify:"center"}},[e(n["a"],{attrs:{cols:"5"}},[e(a["a"],{staticStyle:{bottom:"0","letter-spacing":"unset","text-transform":"unset"},attrs:{text:"","x-large":"",block:"",elevation:"0",color:"grey darken-1",disabled:""}},[t._v("\n 내공스터디 관리자 v."+t._s(t.app_version)+"\n ")])],1)],1)],1)],1)],1),e(p["a"],{key:2,staticStyle:{opacity:"0"},attrs:{value:"tab-2",transition:!1,"reverse-transition":!1}},[e(i["a"],{ref:"tab_2_card",staticClass:"elevation-0",style:{height:t.tab1_height+"px"},attrs:{id:"tab_2_card",outlined:""}},[e(o["b"],{staticClass:"h-100",staticStyle:{"padding-bottom":"2vh"}},[e(u["a"],{staticClass:"pl-4"},[e(c["a"],{staticClass:"cursor",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("1")}}},[t._v("mdi-arrow-left")])],1),e(u["a"],{staticClass:"h-100 w-100 mgauto",staticStyle:{"padding-top":"3.5vh","padding-bottom":"calc(3.5vh + 20px)"},attrs:{align:"center",justify:"center"}},[e(n["a"],{staticStyle:{padding:"1vh 0"},attrs:{cols:"12",sm:"9",md:"8",lg:"8"}},[e("h2",{staticClass:"black--text title"},[t._v("아이디 찾기")]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(r["a"],{ref:"idform",model:{value:t.idvalid,callback:function(e){t.idvalid=e},expression:"idvalid"}},[e(b["a"],{staticClass:"c-login-search-input mt-0 py-0",attrs:{rules:t.rules.name,id:"suname",label:"이름 입력",color:"success",name:"suname",type:"text","hide-details":"","single-line":"",required:""},model:{value:t.suname,callback:function(e){t.suname=e},expression:"suname"}}),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(b["a"],{directives:[{name:"mask",rawName:"v-mask",value:t.mask,expression:"mask"}],staticClass:"text-center c-login-search-input py-0 my-0",attrs:{rules:t.rules.uphone,type:"text",id:"uphone",label:"휴대폰 번호 입력",name:"uphone",color:"success","hide-details":"","single-line":"",required:""},scopedSlots:t._u([{key:"append",fn:function(){return[e(a["a"],{staticClass:"mb-1",class:t.id_uphone_ds?"grey lighten-2 grey--text":"success white--text",attrs:{disabled:t.id_uphone_ds,depressed:"",outlined:""},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.postcert("id")}}},[t._v("\n 인증\n ")])]},proxy:!0}]),model:{value:t.uphone,callback:function(e){t.uphone=e},expression:"uphone"}}),e("span",{staticClass:"red--text text--accent-2 d-none",attrs:{id:"id_message"}},[t._v("\n 입력하신 휴대폰 번호로 인증번호를 발송하였습니다.\n ")]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(b["a"],{staticClass:"text-center c-login-search-input my-0 py-0",attrs:{rules:t.rules.certnum,id:"inputcertnum",name:"inputcertnum",label:"인증번호 입력",type:"text",color:"success","hide-details":"","single-line":"",required:"",autocomplete:"new-password"},model:{value:t.inputcertnum,callback:function(e){t.inputcertnum=e},expression:"inputcertnum"}}),e("span",{staticClass:"red--text text--accent-2 d-none",attrs:{id:"id_cert_err"}},[t._v("\n 인증번호를 확인해주세요.\n ")]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(a["a"],{staticClass:"my-0",attrs:{color:"success","x-large":"",elevation:"0",block:"",disabled:!t.idvalid},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.idvalidate()}}},[t._v("\n 아이디 조회\n ")])],1)],1)],1)],1)],1)],1),e(p["a"],{key:3,staticStyle:{opacity:"0"},attrs:{value:"tab-3",transition:!1,"reverse-transition":!1}},[e(i["a"],{ref:"tab_3_card",staticClass:"elevation-0",style:{height:t.tab1_height+"px"},attrs:{id:"tab_3_card",outlined:""}},[e(o["b"],{staticClass:"h-100"},[e(u["a"],{staticClass:"pl-4"},[e(c["a"],{staticClass:"cursor",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("1")}}},[t._v("mdi-arrow-left")])],1),e(u["a"],{staticClass:"pos-rel translate-y",staticStyle:{"padding-top":"3.5vh","padding-bottom":"calc(3.5vh + 20px)"},attrs:{align:"center",justify:"center"}},[e(n["a"],{staticStyle:{padding:"1vh 0"},attrs:{cols:"12",sm:"9",md:"8",lg:"8"}},[e("h2",{staticClass:"black--text title"},[t._v("비밀번호 찾기")]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(r["a"],{ref:"pwform",model:{value:t.pwvalid,callback:function(e){t.pwvalid=e},expression:"pwvalid"}},[e(b["a"],{staticClass:"c-login-search-input mt-0 py-0",attrs:{rules:t.rules.loginid,id:"sloginid",label:"아이디 입력",name:"sloginid",type:"text",color:"success","hide-details":"","single-line":"",required:""},model:{value:t.sloginid,callback:function(e){t.sloginid=e},expression:"sloginid"}}),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(b["a"],{directives:[{name:"mask",rawName:"v-mask",value:t.mask,expression:"mask"}],staticClass:"text-center c-login-search-input mt-0 py-0",attrs:{rules:t.rules.uphone,id:"pwuphone",label:"휴대폰 번호 입력",name:"pwuphone",type:"text",color:"success","hide-details":"","single-line":"",required:""},scopedSlots:t._u([{key:"append",fn:function(){return[e(a["a"],{staticClass:"mb-1",class:t.pw_uphone_ds?"grey lighten-2 grey--text":"success white--text",attrs:{disabeld:t.pw_uphone_ds,depressed:"",outlined:""},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.postcert("pw")}}},[t._v("\n 인증\n ")])]},proxy:!0}]),model:{value:t.pwuphone,callback:function(e){t.pwuphone=e},expression:"pwuphone"}}),e("span",{staticClass:"red--text text--accent-2 d-none",attrs:{id:"pw_message"}},[t._v("\n 입력하신 휴대폰 번호로 인증번호를 발송하였습니다.\n ")]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(b["a"],{staticClass:"text-center c-login-search-input mt-0 py-0",attrs:{rules:t.rules.certnum,id:"pwinputcertnum",label:"인증번호 입력",name:"pwinputcertnum",type:"text","hide-details":"","single-line":"",required:"",color:"success",autocomplete:"new-password"},model:{value:t.pwinputcertnum,callback:function(e){t.pwinputcertnum=e},expression:"pwinputcertnum"}}),e("span",{staticClass:"red--text text--accent-2 d-none",attrs:{id:"pw_cert_err"}},[t._v("\n 인증번호를 확인해주세요.\n ")]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e(a["a"],{attrs:{color:"success","x-large":"",elevation:"0",block:"",disabled:!t.pwvalid},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.pwvalidate()}}},[t._v("\n 비밀번호 조회\n ")])],1)],1)],1)],1)],1)],1),e(p["a"],{key:4,staticStyle:{opacity:"0"},attrs:{value:"tab-4",transition:!1,"reverse-transition":!1}},[e(i["a"],{ref:"tab_4_card",staticClass:"elevation-0",style:{height:t.tab1_height+"px"},attrs:{id:"tab_4_card",outlined:""}},[e(o["b"],{staticClass:"h-100"},[e(u["a"],{staticClass:"pl-4"},[e(c["a"],{staticClass:"cursor",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("2")}}},[t._v("mdi-arrow-left")])],1),e(u["a"],{staticClass:"pos-rel translate-y",attrs:{align:"center",justify:"center"}},[e(n["a"],{attrs:{cols:"12",sm:"9",md:"8",lg:"8"}},[e("h2",{staticClass:"black--text title"},[t._v("아이디 찾기")]),e("hr",{staticStyle:{"border-top":"thin solid #edeeef",margin:"3.5vh 0"}}),e("div",{staticClass:"text-center mb-5"},[e("h3",{staticClass:"py-2 pt-0 title-1"},[t._v("\n 고객님의 정보와 일치하는 아이디 목록입니다.\n ")]),e("div",{staticClass:"over-y-scroll pa-2",staticStyle:{height:"20vh"}},[e(h["a"],{attrs:{mandatory:!1,"hide-details":""},model:{value:t.id_radios,callback:function(e){t.id_radios=e},expression:"id_radios"}},t._l(t.search_users,(function(s,a){return e(d["a"],{key:"search-user-radio-"+a,attrs:{label:s.loginid,value:s.id,"hide-details":"",dense:"",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("label",{staticClass:"w-100"},[e("span",[t._v("\n "+t._s(s.loginid)+"\n ")]),e("span",{staticClass:"float-right"},[t._v("\n 가입 : "+t._s(s.postdate)+"\n ")])])]},proxy:!0}],null,!0)})})),1)],1)]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e("div",{staticClass:"text-center"},[e(a["a"],{staticClass:"mr-4",staticStyle:{width:"150px"},attrs:{color:"success",disabled:!t.id_radios,elevation:"0"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.getLoginId()}}},[t._v("\n 확인\n ")]),e(a["a"],{staticClass:"ml-4",staticStyle:{width:"150px"},attrs:{color:"success",outlined:"",elevation:"0"},on:{click:function(e){return t.changetab("2")}}},[t._v("\n 취소\n ")])],1)])],1)],1)],1)],1),e(p["a"],{key:6,staticStyle:{opacity:"0"},attrs:{value:"tab-6",transition:!1,"reverse-transition":!1}},[e(i["a"],{ref:"tab_6_card",staticClass:"elevation-0",style:{height:t.tab1_height+"px"},attrs:{id:"tab_6_card",outlined:""}},[e(o["b"],{staticClass:"h-100"},[e(u["a"],{staticClass:"pl-4"},[e(c["a"],{staticClass:"cursor",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("2")}}},[t._v("mdi-arrow-left")])],1),e(u["a"],{staticClass:"pos-rel translate-y",staticStyle:{"padding-top":"3.5vh","padding-bottom":"calc(3.5vh + 20px)"},attrs:{align:"center",justify:"center"}},[e(n["a"],{attrs:{cols:"12",sm:"9",md:"8",lg:"8"}},[e("h2",{staticClass:"black--text title"},[t._v("아이디 찾기")]),e("hr",{staticStyle:{"border-top":"thin solid #edeeef",margin:"3.5vh 0"}}),e("div",{staticClass:"text-center mb-5"},[e("h3",{staticClass:"py-2 pb-4 title-1"},[t._v("\n 가입해주신 아이디는 다음과 같습니다.\n ")]),e("h3",{staticClass:"py-2 pb-4 success--text title-1"},[e("b",[t._v(t._s(t.postloginid))])]),e("h3",{staticClass:"py-2 grey--text text--lighten-2 title-1"},[e("b",[t._v("("+t._s(t.postdate)+" 가입)")])])]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e("div",{staticClass:"text-center"},[e(a["a"],{staticClass:"mr-4",staticStyle:{width:"150px"},attrs:{color:"success",elevation:"0"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("1")}}},[t._v("\n 로그인\n ")]),e(a["a"],{staticClass:"ml-4",staticStyle:{width:"150px"},attrs:{color:"success",outlined:"",elevation:"0"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("3")}}},[t._v("\n 비밀번호 찾기\n ")])],1)])],1)],1)],1)],1),e(p["a"],{key:5,staticStyle:{opacity:"0"},attrs:{value:"tab-5",transition:!1,"reverse-transition":!1}},[e(i["a"],{ref:"tab_5_card",staticClass:"elevation-0",style:{height:t.tab1_height+"px"},attrs:{id:"tab_5_card",outlined:""}},[e(o["b"],{staticClass:"h-100"},[e(u["a"],{staticClass:"pl-4"},[e(c["a"],{staticClass:"cursor",on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("3")}}},[t._v("mdi-arrow-left")])],1),e(u["a"],{staticClass:"pos-rel translate-y",staticStyle:{"padding-top":"3.5vh","padding-bottom":"calc(3.5vh + 20px)"},attrs:{align:"center",justify:"center"}},[e(n["a"],{staticClass:"pb-7",attrs:{cols:"12",sm:"9",md:"8",lg:"8"}},[e("h2",{staticClass:"black--text title"},[t._v("비밀번호 찾기")]),e("hr",{staticStyle:{"border-top":"thin solid #edeeef",margin:"3.5vh 0"}}),e("div",{staticClass:"text-center mb-5"},[e("h3",{staticClass:"py-2 pb-4 title-1"},[t._v("\n 휴대폰 번호로 임시 비밀번호를 발급해드렸습니다.\n ")]),e("h3",{staticClass:"py-2 grey--text text--lighten-2 title-1"},[e("b",[t._v('(관리자페이지 "관리자 정보"란에서 변경하세요.)')])])]),e("div",{staticClass:"padding-divider",staticStyle:{height:"4vh"}}),e("div",{staticClass:"text-center"},[e(a["a"],{staticStyle:{width:"150px"},attrs:{color:"success",elevation:"0"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.changetab("1")}}},[t._v("\n 로그인\n ")])],1)])],1)],1)],1)],1)],1)],2)],1),e("Dialogs",[e("div",{attrs:{slot:"login_success"},slot:"login_success"},[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",{staticClass:"success--text fw-700"},[t._v(t._s(t.uname)+" 선생님!")]),e("br"),e("span",[t._v("내공스터디에 오신 것을 환영합니다.")])])])],1),e("div",{attrs:{slot:"login_failed"},slot:"login_failed"},[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",{staticClass:"fw-400"},[t._v("아이디 or 비밀번호가 일치하지 않습니다.")])])])],1),e("div",{attrs:{slot:"adminstop"},slot:"adminstop"},[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",{staticClass:"fw-400"},[t._v("\n 사용 중지 상태이니\n "),e("br"),t._v("\n 고객센터에 문의해주세요.\n ")])])])],1),e("div",{attrs:{slot:"null_password"},slot:"null_password"},[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",{staticClass:"fw-400"},[t._v("비밀번호를 입력해주세요.")])])])],1),e("div",{attrs:{slot:"cert_fail"},slot:"cert_fail"},[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("인증번호가 일치하지 않습니다.")])])]),e(o["a"],{staticClass:"pa-0 border-ede thin-t"},[e(a["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}},[e("b",{staticClass:"success--text"},[t._v("확인")])])],1)],1),e("div",{attrs:{slot:"cert_null"},slot:"cert_null"},[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("인증을 먼저 진행해주세요.")])])]),e(o["a"],{staticClass:"pa-0 border-ede thin-t"},[e(a["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}},[e("b",{staticClass:"success--text"},[t._v("확인")])])],1)],1),e("div",{attrs:{slot:"null_user"},slot:"null_user"},[e(o["b"],{staticClass:"text-center py-8"},[e("h3",{staticClass:"title"},[e("b",[t._v("등록된 계정이 없습니다.")])])]),e(o["a"],{staticClass:"pa-0 border-ede thin-t"},[e(a["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}},[e("b",{staticClass:"success--text"},[t._v("확인")])])],1)],1)])],1)],1)},v=[],x=s("7381"),k=s("2f62"),w=function(){var t=this,e=t._self._c;return e("svg",{staticStyle:{"enable-background":"new 0 0 2500 1000"},attrs:{version:"1.1",id:"App-Logo",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 2500 1000","xml:space":"preserve"}},[e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.backgroundColor,d:"M0 0C0 333.332 0 666.667 0 1000C833.333 1000 1666.67 1000 2500 1000C2500 666.667 2500 333.333 2500 0C1666.67 0 833.333 0 0 0M353 91.2855C372.047 89.0382 392.069 91.9381 411 93.831C454.763 98.207 497.798 106.902 539 122.811C557.666 130.018 576.302 137.814 593.961 147.258C600.473 150.741 610.44 159.433 618 159.367C622.352 159.33 627.343 155.09 631 153.001C639.112 148.367 647.645 144.422 656 140.247C680.796 127.857 707.362 118.031 734 110.427C837.768 80.8089 948.424 85.8892 1048 128.301C1070.08 137.707 1091.7 148.181 1112.08 160.905C1119.34 165.44 1128.92 169.391 1134.45 176.129C1142.74 186.234 1139 205.791 1139 218C1139 253.667 1139 289.333 1139 325C1139 465 1139 605 1139 745C1139 786 1139 827 1139 868C1139 882.811 1141.58 904.23 1122 907.671C1110.63 909.669 1102.72 903.963 1093 899.258C1079.23 892.591 1065.19 886.336 1051 880.604C1005.15 862.086 956.23 849.934 907 845.17C844.027 839.076 779.438 845.034 719 864.344C696.011 871.689 674.023 880.638 652.089 890.594C642.466 894.962 634.026 902.711 623 902.985C604.434 903.447 592.296 895.143 576 887.258C560.832 879.919 544.973 873.677 529 868.333C474.358 850.053 416.548 841.605 359 843.015C297.601 844.519 230.768 858.148 175 884.644C167.808 888.061 160.235 890.709 153 894.031C139.138 900.396 120.099 916.067 105.054 903.607C88.6184 889.995 96 852.041 96 833C96 766.333 96 699.667 96 633C96 522 96 411 96 300C96 271.333 96 242.667 96 214C96 202.49 93.5121 186.967 100.649 177.015C105.007 170.938 112.722 167.169 119 163.4C131.767 155.736 144.681 148.413 158 141.753C196.195 122.656 237.885 107.259 280 99.6142C304.34 95.1957 328.587 94.1661 353 91.2855z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.color,d:"M337 92.4244C317.669 94.9625 298.266 96.0882 279 99.8048C236.373 108.028 194.758 123.374 156 142.753C139.438 151.034 111.652 161.67 100.649 177.015C94.0084 186.275 97 202.196 97 213C97 242.333 97 271.667 97 301C97 413.667 97 526.333 97 639C97 704.333 97 769.667 97 835C97 849.333 97 863.667 97 878C97 887.748 96.8095 896.779 105.054 903.607C120.099 916.067 139.138 900.396 153 894.031C159.577 891.011 166.365 888.455 173 885.561C228.351 861.42 293.205 843.004 354 843C410.759 842.996 466.637 847.951 521 865.67C539.378 871.66 557.512 878.521 575 886.781C591.685 894.662 604.043 903.457 623 902.985C633.53 902.723 642.122 895.622 651.17 891.031C667.748 882.618 685.379 875.599 703 869.667C761.886 849.846 827.599 837.131 890 843.17C944.111 848.406 996.048 859.989 1047 879.05C1062.64 884.901 1077.98 891.987 1093 899.258C1102.67 903.941 1110.67 909.735 1122 907.671C1141.45 904.124 1139 882.692 1139 868C1139 827 1139 786 1139 745C1139 605 1139 465 1139 325C1139 289.333 1139 253.667 1139 218C1139 205.791 1142.74 186.234 1134.45 176.129C1128.92 169.391 1119.34 165.44 1112.08 160.905C1091.7 148.181 1070.08 137.707 1048 128.301C948.959 86.1169 837.235 80.9609 734 110.427C707.362 118.031 680.796 127.857 656 140.247C647.645 144.422 639.112 148.367 631 153.001C627.343 155.09 622.352 159.33 618 159.367C610.143 159.436 599.812 150.302 592.985 146.756C574.646 137.229 555.48 128.632 536 121.692C484.331 103.286 429.964 92 375 92C362.535 92 349.364 90.8009 337 92.4244z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.inColor,d:"M685 278C685 296.667 685 315.333 685 334C739.667 334 794.333 334 849 334C862 334 875 333.999 888 334C893.855 334 900.327 333.564 903.991 339.105C908.472 345.883 905.403 356.503 905.039 364C903.82 389.061 897.024 413.228 895 438C916.755 438.449 938.259 444.551 960 445C966.566 411.143 971.907 378.285 975.17 344C976.573 329.253 979.048 307.533 970.362 294.424C954.952 271.17 918.836 278 895 278C825 278 755 278 685 278z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.color,d:"M1314 295C1314.45 304.808 1318.85 314.18 1319.83 324C1323.13 357.024 1315.94 391.071 1296.12 418C1279.37 440.751 1256.95 459.053 1232 472.219C1222.91 477.014 1213.62 481.687 1204 485.316C1200.46 486.652 1193.13 487.909 1191.12 491.419C1188.96 495.176 1192.12 502.212 1193.12 506C1196.55 519.083 1198.14 536.865 1204.73 548.678C1206.9 552.576 1213.77 549.445 1217 548.626C1228.58 545.692 1240.03 541.56 1251 536.85C1283.4 522.936 1313.56 501.339 1337.98 476C1349.92 463.607 1357.81 441.656 1377 445.261C1393.43 448.348 1404.79 458.997 1417 469.576C1436.89 486.813 1455.75 505.119 1475 523.054C1482.87 530.391 1492.69 546.147 1502.98 549.824C1507.64 551.488 1512.6 542.376 1515.13 539.424C1525.05 527.84 1539.27 514.615 1546 501C1536.35 495.437 1530.26 485.457 1522 478.129C1504.17 462.302 1486.69 445.927 1469.17 429.741C1444.62 407.063 1425.44 387 1390 387C1396.75 352.181 1397.88 311.391 1385 278C1360.96 281.238 1338.04 291.762 1314 295M484 283C484 331.667 484 380.333 484 429C499 429 514 429 529 429C529 380.333 529 331.667 529 283C552 283 575 283 598 283C598 421.666 598 560.334 598 699C575 699 552 699 529 699C529 629.667 529 560.333 529 491C514 491 499 491 484 491C484 557 484 623 484 689C461.333 689 438.667 689 416 689C416 654 416 619 416 584C375.319 597.237 333.637 602 291 602C269.98 602 247.237 600.985 232.185 583.996C213.222 562.593 219 527.259 219 501C219 434.333 219 367.667 219 301C242 301 265 301 288 301C288 354.667 288 408.333 288 462C288 477.333 288 492.667 288 508C288 515.271 286.744 524.142 289.703 530.996C294.33 541.715 308.629 539 318 539C342.539 539 367.149 536.871 391 530.731C397.278 529.116 411.141 527.373 414.972 521.582C417.79 517.323 416 507.939 416 503C416 487.667 416 472.333 416 457C416 399 416 341 416 283C438.667 283 461.333 283 484 283z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.inColor,d:"M417 284C417 363.667 417 443.333 417 523C406.888 524.515 397.051 529.43 387 531.765C367.544 536.283 347.865 538.169 328 539.039C317.638 539.493 303.186 543.057 294.044 536.347C288.199 532.058 288.011 524.617 288 518C287.978 504.333 288 490.667 288 477C288 418.333 288 359.667 288 301C265 301 242 301 219 301C219 369.667 219 438.333 219 507C219 533.856 213.79 569.244 237.001 588.674C253.13 602.176 274.164 602 294 602C336.995 602 375.493 593.602 417 584C417 619 417 654 417 689C439.333 689 461.667 689 484 689C484 622.667 484 556.333 484 490C499.333 490 514.667 490 530 490C530 559.667 530 629.333 530 699C552.333 699 574.667 699 597 699C597 560.667 597 422.333 597 284C574.667 284 552.333 284 530 284C530 332.333 530 380.667 530 429C514.667 429 499.333 429 484 429C484 380.667 484 332.333 484 284C461.667 284 439.333 284 417 284z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.color,d:"M1905 286C1905 333 1905 380 1905 427C1881 427 1857 427 1833 427C1833 446.333 1833 465.667 1833 485C1857 485 1881 485 1905 485C1905 560 1905 635 1905 710C1928.67 710 1952.33 710 1976 710C1976 568.667 1976 427.333 1976 286C1952.33 286 1928.67 286 1905 286M2332 286C2332 339.667 2332 393.333 2332 447C2332 461.333 2332 475.667 2332 490C2332 494.866 2333.62 503.349 2330.97 507.624C2324.77 517.659 2305.28 525.191 2295 530.244C2255.06 549.878 2210.12 558 2166 558C2151.42 558 2122.15 563.829 2112.7 549.985C2109.14 544.766 2110 537.986 2110 532C2110 520.333 2110 508.667 2110 497C2110 451.667 2110 406.333 2110 361C2161.33 361 2212.67 361 2264 361C2264 342 2264 323 2264 304C2188.67 304 2113.33 304 2038 304C2038 370.333 2038 436.667 2038 503C2038 531.304 2031.88 567.107 2048.13 592.004C2066.01 619.405 2102.74 616 2131 616C2174.27 616 2216.94 617.56 2259 605.573C2285.19 598.106 2307.62 585.517 2332 574C2332 619.333 2332 664.667 2332 710C2355.67 710 2379.33 710 2403 710C2403 568.667 2403 427.333 2403 286C2379.33 286 2355.67 286 2332 286z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.color,d:"M1613 304C1613 376.667 1613 449.333 1613 522C1613 551.886 1606.71 588.584 1630.26 611.536C1647.35 628.192 1677.09 626 1699 626C1742.99 626 1788.76 622.538 1832 614.197C1846.37 611.426 1859.95 606.184 1874 603C1873.73 589.702 1869.78 576.067 1867.42 563C1866.79 559.472 1866.84 551.233 1863.44 549.121C1860.76 547.458 1855.74 549.939 1853 550.625C1843.8 552.925 1834.38 555.183 1825 556.573C1792.56 561.376 1759.72 565.213 1727 566.015C1715.8 566.289 1700.42 570.067 1691.04 561.775C1683.92 555.475 1684 545.736 1684 537C1684 519.667 1684 502.333 1684 485C1725.67 485 1767.33 485 1809 485C1809 465.667 1809 446.333 1809 427C1767.33 427 1725.67 427 1684 427C1684 405.333 1684 383.667 1684 362C1735 362 1786 362 1837 362C1837 342.667 1837 323.333 1837 304C1762.33 304 1687.67 304 1613 304z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.inColor,d:"M758 388C758 411.333 758 434.667 758 458C717.667 458 677.333 458 637 458C637 476.667 637 495.333 637 514C767.667 514 898.333 514 1029 514C1029 495.333 1029 476.667 1029 458C962.667 458 896.333 458 830 458C830 434.667 830 411.333 830 388C806 388 782 388 758 388z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.inColor,d:"M813 533.425C789.514 536.622 766.11 541.906 746.424 555.775C698.428 589.588 688.954 665.648 732.17 707.714C760.976 735.755 806.707 746.539 846 741.714C867.355 739.091 888.574 733.611 907 722.186C954.482 692.745 971.197 618.734 932.53 574.576C904.233 542.26 855.201 527.681 813 533.425z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.color,d:"M817 591.428C782.733 596.348 761.794 636.468 784.133 666C796.927 682.914 818.804 687.334 839 684.711C874.219 680.136 898.939 637.166 872.483 607.129C859.061 591.889 836.208 588.67 817 591.428z"}}),e("path",{staticStyle:{stroke:"none"},attrs:{fill:t.color,d:"M1166 606C1166 625.333 1166 644.667 1166 664C1299.67 664 1433.33 664 1567 664C1567 644.667 1567 625.333 1567 606C1433.33 606 1299.67 606 1166 606z"}})])},C=[],S={props:{color:String,backgroundColor:String,inColor:String}},$=S,A=s("2877"),D=Object(A["a"])($,w,C,!1,null,null,null),P=D.exports,B=s("7bdb"),T=(s("56d7"),s("3a60")),E={name:"login",components:{Dialogs:B["a"],AppLogo:P,preFont:x["a"]},directives:{mask:T["mask"]},data(){return{app_version:"",mask:"###########",loginvalid:!0,loginid:"",password:"",suname:"",uphone:"",id_uphone_ds:!0,inputcertnum:"",sloginid:"",pwuphone:"",pw_uphone_ds:!0,pwinputcertnum:"",postcertnum:"",postloginid:"",postdate:"",idvalid:!0,pwvalid:!0,rules:{loginid:[t=>!!t||""],password:[t=>!!t||""],name:[t=>!!t||""],uphone:[t=>!!t||""],certnum:[t=>!!t||""]},tab:"tab-1",tabs:6,card_align:"center",card_top:"0px",org_search_users:[],search_users:[],id_radios:null,tab1_height:null}},beforeRouteLeave(t,e,s){"index"==t.name&&"login"==e.name?this.$storage.has("user")?s():this.openDialog("exit_admin"):s()},created:function(){this.app_version="1.3.30",this.$storage.has("user")&&(this.$storage.get("user").configdate?this.$router.push({name:"index"}):this.$router.push({name:"setup"}))},mounted(){window.addEventListener("message",this.mListener),this.tab1_height=document.getElementById("tab-1").getBoundingClientRect().height},watch:{suname(t){""!=t.replace(/ /g,"")&&11==this.uphone.length?this.id_uphone_ds=!1:this.id_uphone_ds=!0},uphone(t){""!=this.suname.replace(/ /g,"")&&11==t.length?this.id_uphone_ds=!1:this.id_uphone_ds=!0},sloginid(t){""!=t.replace(/ /g,"")&&11==this.pwuphone.length?this.pw_uphone_ds=!1:this.pw_uphone_ds=!0},pwuphone(t){""!=this.sloginid.replace(/ /g,"")&&11==t.length?this.pw_uphone_ds=!1:this.pw_uphone_ds=!0},tab(t){"tab-1"!=t&&setTimeout(()=>{let e=document.getElementById(""+t);e.style.opacity=1},100)}},methods:{onResize(t){let e=document.getElementById("tab-1");e&&"none"!=e.style.display&&(this.tab1_height=e.getBoundingClientRect().height)},mListener(t){"getRoute"==t.data.action&&this.openDialog("exit_admin")},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},changetab(t){this.tab="tab-"+t},cleardata:function(){this.loginid="",this.password="",this.suname="",this.uphone="",this.inputcertnum="",this.postcertnum=""},enter_loginvalidate:function(t){13==t.keyCode&&this.loginvalidate()},loginvalidate:function(){if(!this.password||""==this.password.replace(/ /g,""))return this.openDialog("null_password"),!1;this.$refs.loginform.validate()?this.$axios.post(this.$host+"/user/loginadmincheck",{loginid:this.loginid,password:this.password}).then(t=>{console.log(t),200==t.status?"adminstop"==t.data?this.openDialog("adminstop",!0):(1==t.data.franchise&&(t.data.product_type="P"),t.data.is_mobile=this.isMobile(),t.data.popup_view=!1,this.$store.commit("save_user_info",t.data),this.$storage.set("user",t.data),this.$id=this.$storage.get("user").id,this.$cid=this.$storage.get("user").academy_id,this.$uclass=this.$storage.get("user").uclass,t.data.logofile&&this.$axios.get(`${this.$host}/images/selpic/${t.data.id}`).then(t=>{this.$store.commit("setUserLogoFile",200==t.status?t.data.src:null)}),t.data.clogo&&this.$axios.get(`${this.$host}/images/logo/${t.data.academy_id}`).then(t=>{console.log(t),this.$store.commit("setLogoFile",200==t.status?t.data.src:null)}),this.$store.dispatch("fbGetAcademy",{cid:t.data.academy_id}),this.$store.dispatch("fbGetUser",{uid:t.data.id}),this.openDialog("login_success",!0)):this.openDialog("login_failed",!0)}).catch(t=>{console.log(t),console.log(t.code),this.openDialog("login_failed",!0)}):this.openDialog("login_failed",!0)},idvalidate:function(){this.$refs.idform.validate()&&(this.postcertnum?this.$axios.post(this.$host+"/academy/compcert",{name:this.suname,phone:this.uphone,en_cert:this.postcertnum,in_cert:this.inputcertnum}).then(t=>{if(200==t.status){this.search_users=t.data;let e=document.getElementById("id_message");e.classList.replace("d-block","d-none");let s=document.getElementById("id_cert_err");s.classList.replace("d-block","d-none"),this.postcertnum="",this.suname="",this.uphone="",this.inputcertnum="",this.search_users.length>1?this.tab="tab-4":this.tab="tab-6"}else if(202==t.status){let t=document.getElementById("id_cert_err");t.classList.replace("d-none","d-block")}else 204==t.status&&this.openDialog("null_user")}).catch(t=>{console.log(t)}):this.openDialog("cert_null"))},pwvalidate:function(){this.$refs.pwform.validate()&&(this.postcertnum?this.$axios.post(this.$host+"/academy/compcertpw",{loginid:this.sloginid,phone:this.pwuphone,en_cert:this.postcertnum,in_cert:this.pwinputcertnum}).then(t=>{if(console.log(t),200==t.status){let t=document.getElementById("pw_message");t.classList.replace("d-block","d-none");let e=document.getElementById("pw_cert_err");e.classList.replace("d-block","d-none"),this.postcertnum="",this.sloginid="",this.pwuphone="",this.pwinputcertnum="",this.tab="tab-5"}else 202==t.status?(document.getElementById("pw_cert_err").classList.add("d-block"),document.getElementById("pw_cert_err").classList.remove("d-none")):204==t.status&&this.openDialog("null_user")}).catch(t=>{console.log(t)}):this.openDialog("cert_null"))},postcert:function(t){"id"==t?""!=this.uphone&&(document.getElementById("id_message").classList.replace("d-none","d-block"),this.$axios.post(this.$host+"/academy/postcert",{phone:this.uphone}).then(t=>{200==t.status&&t.data.result&&(this.postcertnum=t.data.msg)}).catch(t=>{console.log(t)})):"pw"==t&&""!=this.pwuphone&&(document.getElementById("pw_message").classList.replace("d-none","d-block"),this.$axios.post(this.$host+"/academy/postcert",{phone:this.pwuphone}).then(t=>{200==t.status&&t.data.result&&(this.postcertnum=t.data.msg)}).catch(t=>{console.log(t)}))},focusField:function(t,e){e.target.placeholder="",this.isMobile()&&(this.card_align="start !important",this.card_top=1==t?"-11%":"-14%")},blurField:function(t,e){""==e.target.value.replace(/ /g,"")&&(e.target.placeholder=1==t?"아이디 입력":"비밀번호 입력"),this.isMobile()&&(this.card_align="center !important",this.card_top="0px")},getLoginId(){this.id_radios&&this.$axios.get(`${this.$host}/user/getloginid?id=${this.id_radios}`).then(t=>{200==t.status&&(this.postloginid=t.data.loginid,this.postdate=t.data.postdate,this.changetab("6"))}).catch(t=>{console.log(t)})}},computed:{...Object(k["c"])(["uname","cname","now_users_cnt"])},beforeDestroy(){window.removeEventListener("message",this.mListener),this.allBusDestroy()}},I=E,z=(s("7895"),Object(A["a"])(I,y,v,!1,null,null,null));e["default"]=z.exports},a5bc:function(t,e,s){t.exports=s.p+"img/leveltest_report_5.ee7a5737.png"},a61e:function(t,e,s){t.exports=s.p+"img/report3.ee580765.png"},a849:function(t,e,s){"use strict";s("4012")},adeb:function(t,e,s){t.exports=s.p+"img/v_report.d4de5f7a.png"},afcc:function(t,e,s){},afd7:function(t,e,s){},b4b9:function(t,e,s){"use strict";var a=s("8336"),i=s("a609"),o=s("ac7c"),n=s("62ad"),l=s("132d"),r=s("67b6"),c=s("43a6"),d=s("0fd9"),h=s("ba0d"),u=s("e0c7"),_=function(){var t=this,e=t._self._c;return"book"!=t.data.print_mode||"preview"==t.data.mode&&2===+t.data.print_option_rg?"test"==t.data.print_mode?e(n["a"],{staticClass:"pa-0 pl-1 height-inherit printnone pos-rel",attrs:{xs:"12",sm:"4",md:"4",lg:"4"}},["list"==t.data.mode?[t.data.get_count_status?e("div",{staticClass:"pos-abs w-100 h-100",staticStyle:{"z-index":"1000",background:"rgba(33, 33, 33, 0.46)"}},[e("div",{staticClass:"w-100 h-100 pos-rel"},[e("svg",{staticClass:"pos-abs translate-a",staticStyle:{margin:"auto",background:"transparent",display:"block","shape-rendering":"auto"},attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"100px",height:"100px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[e("circle",{attrs:{cx:"50",cy:"50",fill:"none",stroke:"#1bd05b","stroke-width":"4",r:"38","stroke-dasharray":"164.93361431346415 56.97787143782138",transform:"rotate(38.4721 50 50)"}},[e("animateTransform",{attrs:{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}})],1)])])]):t._e(),0==t.data.checkCnt?e("div",{staticClass:"bg-white height-inherit"},[e(u["a"],{staticClass:"justify-center title grey lighten-4 pos-rel",staticStyle:{"border-bottom":"thin solid #edeeef !important"}})],1):t.data.checkCnt>0?e("div",{staticClass:"bg-white pos-rel",staticStyle:{height:"calc(100% - 7vh)"}},[e(u["a"],{staticClass:"justify-center title grey lighten-4 pos-rel h-3rem",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e("div",{staticClass:"pos-rel"},[t.conditionByTutorial("t13")&&!t.data.open_unitlist_status?e("ctooltip",{attrs:{arrow_direction:"arrow-right",tool_top:"50%",tool_left:"0%",tool_translate:"translate(-107%, -50%)",tutorial_key:"t13"}}):t._e()],1),e("b",{staticStyle:{"font-size":"1rem"}},[t._v("출력 설정")])]),e(u["a"],{staticClass:"hide_unit_header justify-center title grey lighten-4 pos-abs px-0 h-3rem",staticStyle:{"border-bottom":"thin solid #edeeef !important",top:"0px","z-index":"1px"},attrs:{id:"unit_list_header",tabindex:"-1"}},[e("span",{staticClass:"pos-abs translate-y cursor",staticStyle:{left:"16px"},on:{click:function(e){return t.$emit("openUnitList")}}},[t.data.open_unitlist_status?[e("b",{staticStyle:{"font-size":"0.8rem"},style:{color:t.data.open_unitlist_status?"#1bd05b":"#d3d3d3"}},[t._v("\n 단원확인\n ")]),e(l["a"],{staticStyle:{"margin-top":"2px"},attrs:{color:t.data.open_unitlist_status?"#1bd05b":"#d3d3d3",ripple:!1}},[t._v("\n mdi-chevron-right\n ")])]:[e(l["a"],{staticStyle:{"margin-top":"2px"},attrs:{color:t.data.open_unitlist_status?"#1bd05b":"#d3d3d3",ripple:!1}},[t._v("\n mdi-chevron-left\n ")]),e("b",{staticStyle:{"font-size":"0.8rem"},style:{color:t.data.open_unitlist_status?"#1bd05b":"#d3d3d3"}},[t._v("\n 단원확인\n ")])]],2)]),e("div",{staticClass:"bg-white mb-0 height-testprint-right over-y-scroll pos-rel",attrs:{id:"test_print_option"}},[e(d["a"],{staticClass:"w-100 mgauto",attrs:{id:"top_opt_row"}},[t._l(t.getSectionList(),(function(s,a){return[a>=1?e("div",{key:"divide-"+a,staticClass:"px-4 w-100"},[a>=1?e("div",{staticClass:"w-100 border-ede thin-t"}):t._e()]):t._e(),["grammar","storybook"].includes(s)?"grammar"==s?[e("InputCountG",{key:"section-"+s,attrs:{data:t.data,chkGtSum:t.$parent.chkGtSum,chkGbSum:t.$parent.chkGbSum,chkGdSum:t.$parent.chkGdSum,sentencesWidth:t.sentencesWidth,sentencesMarginTop:t.sentencesMarginTop,chkSubUnitSum:t.$parent.chkSubUnitSum,chkRemainGrammar:t.$parent.chkRemainGrammar,grammarDeepCondition:t.$parent.grammarDeepCondition,grammarBasicArr:t.$parent.grammarBasicArr,testCheck:t.$parent.testCheck,testVal:t.$parent.testVal,customOnlyNumber:t.$parent.customOnlyNumber}})]:"storybook"==s?[e("InputCountS",{key:"section-"+s,attrs:{data:t.data,chkGtSum:t.$parent.chkGtSum,chkGbSum:t.$parent.chkGbSum,chkGdSum:t.$parent.chkGdSum,sentencesWidth:t.sentencesWidth,sentencesMarginTop:t.sentencesMarginTop,chkStoryBookSubUnitSum:t.$parent.chkStoryBookSubUnitSum,chkRemainGrammar:t.$parent.chkRemainGrammar,grammarDeepCondition:t.$parent.grammarDeepCondition,grammarBasicArr:t.$parent.grammarBasicArr,testCheck:t.$parent.testCheck,testVal:t.$parent.testVal,customOnlyNumber:t.$parent.customOnlyNumber}})]:t._e():[e("InputCount",{key:"section-"+s,attrs:{name:s,data:t.data,sentencesWidth:t.sentencesWidth,sentencesMarginTop:t.sentencesMarginTop,checkCnt:t.data.checkCnt,chkVsum:t.$parent.chkVsum,chkSsum:t.$parent.chkSsum,chkBsum:t.$parent.chkBsum,chkSubUnitSum:t.$parent.chkSubUnitSum,chkRemainGrammar:t.$parent.chkRemainGrammar,grammarDeepCondition:t.$parent.grammarDeepCondition,grammarBasicArr:t.$parent.grammarBasicArr,testCheck:t.$parent.testCheck,testVal:t.$parent.testVal,customOnlyNumber:t.$parent.customOnlyNumber}})]]}))],2)],1),e("div",{staticClass:"hide_unit usn",attrs:{id:"unit_list",tabindex:"-1"}},[t._l(t.data.select_books,(function(s,a){return[e(d["a"],{key:"selbook-"+a,staticClass:"w-100 mgauto"},[e(n["a"],{staticClass:"info--text py-2",attrs:{cols:"12"}},[e(l["a"],{staticStyle:{"margin-top":"-2px"},attrs:{color:"info"}},[t._v("mdi-book-open-variant")]),e("b",{staticClass:"ml-2"},[t._v(t._s(s.name))])],1)],1),t._l(s.units,(function(a,i){return[void 0!=a.id?e(n["a"],{key:`selunit-${a.id}-${t.data.sel_key}`,staticClass:"py-1",attrs:{cols:"12"}},[e("div",{staticStyle:{"word-break":"break-all"}},[e("div",{staticClass:"d-inline-block float-left mx-3"},[e("div",{staticClass:"dotted mt-1"})]),e("div",{staticClass:"float-left"},[e("span",{staticStyle:{"font-size":"0.9rem !important"}},[t._v("\n "+t._s(t.setUnitName(a.name))+"\n ")]),e(l["a"],{staticClass:"ml-2 cursor",attrs:{tabindex:"-1",small:"",color:"grey"},on:{click:function(e){return t.exceptSelectUnit(s,a)}}},[t._v("\n mdi-close-circle\n ")])],1),e("div",{staticStyle:{clear:"both"}})])]):t._e()]}))]}))],2),e(d["a"],{staticClass:"w-100 mgauto white mb-1",staticStyle:{bottom:"0"},attrs:{id:"bot_opt_row"}},[e("div",{staticClass:"px-4 w-100"},[e("div",{staticClass:"w-100 border-ede thin-t"})]),e("div",{staticClass:"pa-4 w-100 d-flex",staticStyle:{"justify-content":"center"}},[e(c["a"],{staticClass:"change_lr mt-0 pt-0",attrs:{"hide-details":"",row:"",dense:""},model:{value:t.data.s_test_order,callback:function(e){t.$set(t.data,"s_test_order",e)},expression:"data.s_test_order"}},[e(r["a"],{staticClass:"mr-4",attrs:{label:"",value:"0",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticStyle:{"font-size":"1rem","margin-top":"-2px"}},[t._v("\n 유형순으로 출력\n ")])]},proxy:!0}],null,!1,2436769933)}),e(r["a"],{staticClass:"mr-0",attrs:{label:"",value:"1",color:"success"},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticStyle:{"font-size":"1rem","margin-top":"-2px"}},[t._v("\n 유형 랜덤 출력\n ")])]},proxy:!0}],null,!1,1279799145)})],1)],1)])],1):t._e(),t.data.checkCnt>0?e(d["a"],{staticClass:"bg-white text-center",staticStyle:{height:"calc(7vh - 4px)",width:"100%",margin:"0 auto"}},[e(n["a"],{staticClass:"pa-0 pos-rel",staticStyle:{height:"100%"},attrs:{"align-self":"center"}},[e(a["a"],{staticClass:"fs-1rem",staticStyle:{height:"100% !important"},attrs:{disabled:t.data.previewBtn,block:"",depressed:"",tile:"",color:"success"},on:{click:function(e){return t.$emit("goPreview")}}},[e("b",[t._v("출력 설정")])]),t.conditionByTutorial("t14")&&!t.data.previewBtn?e("ctooltip",{attrs:{arrow_direction:"arrow-right",tool_top:"50%",tool_left:"0%",tool_translate:"translate(-105%, -50%)",tutorial_key:"t14"}}):t._e()],1)],1):t._e()]:t._e(),"preview"==t.data.mode?[e("div",{staticClass:"bg-white mb-1 reprint_opt1"},[e(d["a"],{staticStyle:{width:"100%",height:"100%",margin:"0 auto","align-content":"space-evenly"}},[e(n["a"],{staticClass:"px-4 pb-0",attrs:{cols:"12","align-self":"center"}},[e("b",{staticClass:"mb-2"},[t._v(" 제목 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.preview_name,expression:"data.preview_name"}],staticClass:"custominput successfocus square",attrs:{id:"testprint_pn",placeholder:"제목을 입력하세요",maxlength:"17"},domProps:{value:t.data.preview_name},on:{input:[function(e){e.target.composing||t.$set(t.data,"preview_name",e.target.value)},function(e){return t.$emit("nameInput",e)}]}})]),e(n["a"],{staticClass:"px-4 pb-0",attrs:{cols:"12","align-self":"center"}},[e("b",{staticClass:"mb-2"},[t._v("글씨 크기")]),e(i["a"],{staticClass:"w-100 text-center",attrs:{tile:"",mandatory:""},on:{change:function(e){return t.toggleChange("font-size",t.data.toggle_exclusive_1)}},model:{value:t.data.toggle_exclusive_1,callback:function(e){t.$set(t.data,"toggle_exclusive_1",e)},expression:"data.toggle_exclusive_1"}},[t._l(["작게","보통","크게"],(function(s,i){return[e(a["a"],{key:"data.toggle_1_"+i,attrs:{small:"",height:""},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n "+t._s(s)+"\n ")])]}))],2)],1),e(n["a"],{staticClass:"px-4 pb-0",attrs:{cols:"12","align-self":"center"}},[e("b",{staticClass:"mb-2"},[t._v("줄 간격")]),e(h["a"],{staticClass:"screen-slider",attrs:{"hide-details":"","thumb-label":"always","thumb-size":"1",min:1,max:7,"tick-size":"0",step:"1","track-color":"light-gray","track-fill-color":"success",ticks:!0,"thumb-color":"success"},on:{change:function(e){return t.toggleChange("line-height",t.data.toggle_exclusive_2)}},model:{value:t.data.toggle_exclusive_2,callback:function(e){t.$set(t.data,"toggle_exclusive_2",e)},expression:"data.toggle_exclusive_2"}},[t._v("\n "+t._s(t.data.toggle_exclusive_2)+"\n ")])],1),e(n["a"],{staticClass:"px-4",attrs:{cols:"12","align-self":"center"}},[e("b",{staticClass:"mb-2"},[t._v("단 너비")]),e(h["a"],{staticClass:"screen-slider",attrs:{"hide-details":"","thumb-label":"always","thumb-size":"1",max:4,"tick-size":"0",step:"1","track-color":"light-gray","track-fill-color":"success",ticks:!0,"thumb-color":"success",disabled:t.data.widthRateDisabled},on:{change:t.changeWidth},scopedSlots:t._u([{key:"thumb-label",fn:function(e){return[t._v("\n "+t._s(t.getThumbLabels(e.value))+"\n ")]}}],null,!1,4156471536),model:{value:t.data.preview_width,callback:function(e){t.$set(t.data,"preview_width",e)},expression:"data.preview_width"}})],1)],1)],1),e("div",{staticClass:"bg-white mb-1",staticStyle:{height:"14.7vh"},attrs:{id:"option-wrap"}},[e(d["a"],{staticClass:"height-inherit",staticStyle:{width:"100%",margin:"0 auto","align-content":"center"}},[e(n["a"],{staticClass:"px-1 py-1 pl-4",attrs:{cols:"12",sm:"12",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"학원로고 삽입",dense:"","hide-details":"",color:"success",ripple:!1},on:{change:function(e){return t.changeOption("logostatus")}},model:{value:t.data.logostatus,callback:function(e){t.$set(t.data,"logostatus",e)},expression:"data.logostatus"}})],1),e(n["a"],{staticClass:"px-1 py-1 pl-4",attrs:{cols:"6",sm:"12",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"학원명 삽입",dense:"","hide-details":"",color:"success",ripple:!1},on:{change:function(e){return t.changeOption("cnamestatus")}},model:{value:t.data.cnamestatus,callback:function(e){t.$set(t.data,"cnamestatus",e)},expression:"data.cnamestatus"}})],1),e(n["a"],{staticClass:"px-1 py-1 pl-4",attrs:{cols:"12",sm:"6",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"답안지 출력",dense:"","hide-details":"",color:"success",ripple:!1},on:{change:function(e){return t.changeOption("answer_sheet")}},model:{value:t.data.answer_sheet,callback:function(e){t.$set(t.data,"answer_sheet",e)},expression:"data.answer_sheet"}})],1),e(n["a"],{staticClass:"px-1 py-1 pl-4",attrs:{cols:"12",sm:"6",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"쪽 번호 삽입",dense:"","hide-details":"",color:"success",ripple:!1},on:{change:function(e){return t.changeOption("countstatus")}},model:{value:t.data.countstatus,callback:function(e){t.$set(t.data,"countstatus",e)},expression:"data.countstatus"}})],1),e(n["a"],{staticClass:"px-1 py-1 pl-4 d-flex",staticStyle:{"align-items":"center"},attrs:{cols:"12",sm:"12",md:"12"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"",dense:"","hide-details":"",color:"success",ripple:!1},on:{change:function(e){return t.changeOption("exceptstatus")}},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",[t._v("단어 전용")]),e("div",{staticClass:"grey--text ml-1",staticStyle:{"vertical-align":"text-bottom"}},[t._v("\n (단어 주관식에서만 가능)\n ")])]},proxy:!0}],null,!1,750916903),model:{value:t.data.exceptstatus,callback:function(e){t.$set(t.data,"exceptstatus",e)},expression:"data.exceptstatus"}})],1)],1)],1),e("div",{staticClass:"bg-white",staticStyle:{height:"calc(7vh - 4px)"}},[e(a["a"],{staticStyle:{height:"100% !important","font-size":"1.2rem !important"},attrs:{color:t.data.print_disabled?"lightgrey grey--text":"success",disabled:t.data.print_disabled,tile:"",block:"",depressed:""},on:{click:function(e){return t.$emit("windowPrint")}}},[e("b",[t._v("문제은행 출력")])])],1)]:t._e()],2):t._e():e(n["a"],{staticClass:"pa-0 pl-1 height-inherit printnone",attrs:{xs:"12",sm:"4",md:"4",lg:"4"}},["list"==t.data.mode?[0==t.data.select_books.length?e("div",{staticClass:"bg-white height-inherit"}):t._e(),t.data.select_books.length>0?e("div",{staticClass:"bg-white mb-1 height-bookprint-right screen-90-height over-y-scroll"},[t._l(t.data.select_books,(function(s,a){return[e(d["a"],{key:"selbook-"+a,staticClass:"w-100 mgauto"},[e(n["a"],{staticClass:"info--text py-2",attrs:{cols:"12"}},[e(l["a"],{staticStyle:{"margin-top":"-2px"},attrs:{color:"info"}},[t._v("mdi-book-open-variant")]),e("b",{staticClass:"ml-2"},[t._v(t._s(s.name))])],1)],1),t._l(s.units,(function(a,i){return[void 0!=a.id?e(n["a"],{key:`selunit-${a.id}-${t.data.sel_key}`,staticClass:"py-1",attrs:{cols:"12"}},[e("div",{staticStyle:{"word-break":"break-all"}},[e("div",{staticClass:"d-inline-block float-left mx-3"},[e("div",{staticClass:"dotted mt-1"})]),e("div",{staticClass:"float-left"},[e("span",{staticStyle:{"font-size":"0.9rem !important"}},[t._v("\n "+t._s(t.setUnitName(a.name))+"\n ")]),e(l["a"],{staticClass:"ml-2 cursor",attrs:{small:"",color:"grey"},on:{click:function(e){return t.exceptSelectUnit(s,a)}}},[t._v("\n mdi-close-circle\n ")])],1),e("div",{staticStyle:{clear:"both"}})])]):t._e()]}))]}))],2):t._e(),t.data.select_books.length>0?e(d["a"],{staticClass:"bg-white text-center w-100 mgauto",staticStyle:{height:"calc(7vh - 4px)"}},[e(n["a"],{staticClass:"pa-0",staticStyle:{height:"100%"},attrs:{"align-self":"center"}},[e(a["a"],{staticClass:"fs-1rem",staticStyle:{height:"100% !important"},attrs:{block:"",depressed:"",tile:"",color:"success"},on:{click:function(e){t.$store.dispatch("soundEffectPlay","click_button"),t.$emit("confGoPreview")}}},[e("b",[t._v("출력 설정")])])],1)],1):t._e()]:"preview"==t.data.mode?[e("div",{staticClass:"bg-white mb-1 print-right-option"},[e(d["a"],{staticClass:"w-100 h-100 mgauto",staticStyle:{"align-content":"space-evenly"}},[e(n["a"],{staticClass:"px-4 pb-0 pt-2",attrs:{cols:"12"}},[e("b",{staticClass:"mb-2"},[t._v("제목")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.preview_name,expression:"data.preview_name"}],staticClass:"custominput successfocus square",attrs:{maxlength:"17"},domProps:{value:t.data.preview_name},on:{input:[function(e){e.target.composing||t.$set(t.data,"preview_name",e.target.value)},function(e){return t.$emit("nameInput",e)}]}}),e("div",{staticClass:"pos-abs",staticStyle:{height:"109px",width:"350px",top:"0",left:"0","z-index":"-1"}},[e("div",{staticClass:"pos-abs bg-white",staticStyle:{bottom:"0px"}},[e("custom-auto-text",{staticClass:"auto-text",class:""==t.data.preview_name.replace(/ /g,"")?"blank-auto-text":"",attrs:{minSize:24,size:35,text:t.data.preview_name,width:350,overflow:"clip"}})],1)])]),e(n["a"],{staticClass:"px-4 pb-0 pt-2",attrs:{cols:"12"}},[e("b",{staticClass:"mb-2"},[t._v("유형")]),e(i["a"],{staticClass:"text-center w-100",attrs:{tile:"",mandatory:""},model:{value:t.data.toggle_exclusive_1,callback:function(e){t.$set(t.data,"toggle_exclusive_1",e)},expression:"data.toggle_exclusive_1"}},[t._l(["전체","ENG","KOR"],(function(s,i){return[e(a["a"],{key:"toggle_1_"+i,attrs:{small:"",height:""},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n "+t._s(s)+"\n ")])]}))],2)],1),e(n["a"],{staticClass:"px-4 pb-0 pt-2",attrs:{cols:"12"}},[e("b",{staticClass:"mb-2"},[t._v("순서")]),e(i["a"],{staticClass:"text-center w-100",attrs:{tile:"",mandatory:""},model:{value:t.data.toggle_exclusive_2,callback:function(e){t.$set(t.data,"toggle_exclusive_2",e)},expression:"data.toggle_exclusive_2"}},[t._l(["원본","랜덤","ABC순"],(function(s,i){return[e(a["a"],{key:"toggle_2_"+i,attrs:{small:"",height:""},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n "+t._s(s)+"\n ")])]}))],2)],1),e(n["a"],{staticClass:"px-4 pb-0 pt-2",attrs:{cols:"12"}},[e("b",{staticClass:"mb-2"},[t._v("글씨 크기")]),e(i["a"],{staticClass:"text-center w-100",attrs:{tile:"",mandatory:""},model:{value:t.data.toggle_exclusive_3,callback:function(e){t.$set(t.data,"toggle_exclusive_3",e)},expression:"data.toggle_exclusive_3"}},[t._l(["작게","보통","크게"],(function(s,i){return[e(a["a"],{key:"toggle_3_"+i,attrs:{small:"",height:""},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n "+t._s(s)+"\n ")])]}))],2)],1),e(n["a"],{staticClass:"px-4 pb-0 pt-2",attrs:{cols:"12"}},[e("b",{staticClass:"mb-2"},[t._v("줄 간격")]),e(i["a"],{staticClass:"text-center w-100",attrs:{tile:"",mandatory:""},model:{value:t.data.toggle_exclusive_4,callback:function(e){t.$set(t.data,"toggle_exclusive_4",e)},expression:"data.toggle_exclusive_4"}},[t._l(["좁게","보통","넓게"],(function(s,i){return[e(a["a"],{key:"toggle_4_"+i,attrs:{small:"",height:""},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[t._v("\n "+t._s(s)+"\n ")])]}))],2)],1),e(n["a"],{staticClass:"px-4 pt-2",attrs:{cols:"12","align-self":"center"}},[e("b",{staticClass:"mb-2"},[t._v("너비")]),e(h["a"],{staticClass:"screen-slider",attrs:{"hide-details":"","thumb-label":"always","thumb-size":"1",max:4,"tick-size":"0",step:"1","track-color":"light-gray","track-fill-color":"success",ticks:!0,"thumb-color":"success",disabled:t.widthRateDisabled},on:{change:t.changeWidth},scopedSlots:t._u([{key:"thumb-label",fn:function(e){return[t._v("\n "+t._s(t.getThumbLabels(e.value))+"\n ")]}}],null,!1,4156471536),model:{value:t.data.preview_width,callback:function(e){t.$set(t.data,"preview_width",e)},expression:"data.preview_width"}})],1)],1)],1),e("div",{staticClass:"bg-white mb-1",staticStyle:{height:"14.7vh"},attrs:{id:"option-wrap"}},[e(d["a"],{staticClass:"height-inherit w-100 mgauto",staticStyle:{"align-content":"center"}},[e(n["a"],{staticClass:"px-1 pt-2 pb-1 pl-4 print-checkbox",attrs:{cols:"12",sm:"12",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"학원 로고 삽입",dense:"","hide-details":"",color:"success",ripple:!1},model:{value:t.data.logostatus,callback:function(e){t.$set(t.data,"logostatus",e)},expression:"data.logostatus"}})],1),e(n["a"],{staticClass:"px-1 pt-2 pb-1 pl-4",attrs:{cols:"6",sm:"12",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"학원명 삽입",dense:"","hide-details":"",color:"success",ripple:!1},model:{value:t.data.cnamestatus,callback:function(e){t.$set(t.data,"cnamestatus",e)},expression:"data.cnamestatus"}})],1),"1"==t.data.print_option_rg?e(n["a"],{staticClass:"px-1 pt-1 pb-2 pl-4",attrs:{cols:"12",sm:"6",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"주요 내용만",dense:"","hide-details":"",color:"success",ripple:!1},on:{change:function(e){return t.$emit("chkMainSentence")}},model:{value:t.data.mainsentence,callback:function(e){t.$set(t.data,"mainsentence",e)},expression:"data.mainsentence"}})],1):t._e(),e(n["a"],{staticClass:"px-1 pt-1 pb-2 pl-4",attrs:{cols:"12",sm:"6",md:"6"}},[e(o["a"],{staticClass:"pa-0 d-inline-block",attrs:{label:"쪽 번호 삽입",dense:"","hide-details":"",color:"success",ripple:!1},on:{change:function(e){return t.$emit("framePostMessage",{key:"countstatus",value:t.data.countstatus})}},model:{value:t.data.countstatus,callback:function(e){t.$set(t.data,"countstatus",e)},expression:"data.countstatus"}})],1)],1)],1),e("div",{staticClass:"bg-white"},[e(a["a"],{staticStyle:{height:"calc(7vh - 4px) !important","font-size":"1.2rem !important"},attrs:{disabled:""==t.data.preview_name||""==t.data.preview_name.replace(/ /g,""),color:"success",tile:"",block:"",depressed:""},on:{click:function(e){return t.$emit("windowPrint")}}},[e("b",[t._v("교재 출력")])])],1)]:t._e()],2)},p=[],m=s("55f3"),g=s("8654"),b=s("3a2f"),f=function(){var t=this,e=t._self._c;return e("section",{key:t.data.stmm,staticClass:"w-100 v-100"},[e("section",{staticClass:"d-flex w-100 pos-rel align-center",staticStyle:{padding:"1rem"}},[e("div",{staticClass:"dotted mt-1"}),e("div",{staticClass:"ml-1 custom_testform_cnt"},[e("div",{staticClass:"py-2 d-inline-flex align-center",staticStyle:{background:"#f5f5f5","border-radius":"50px"}},[e("h3",{staticClass:"ml-4",staticStyle:{"font-size":"1.1rem !important"}},[e("b",[t._v(t._s(t.sections[t.name].title))])]),e("h3",{class:t.sections[t.name].color+" mx-4",staticStyle:{"font-size":"1.1rem !important"}},[e("b",{domProps:{textContent:t._s(t.sections[t.name].count+"개")}})])])]),e("div",{staticClass:"d-inline-block grey--text custom_testform_cnt2"},[t._v("\n 남은 "+t._s(t.sections[t.name].subtitle)+" 수\n "),e("span",{key:""+t.sections[t.name].chkcount,domProps:{textContent:t._s(t.sections[t.name].chkcount)}}),t._v("개\n ")])]),t._l(t.section_info_list[t.name],(function(s,a){return[void 0==s.subcount||s.subcount>0?e("section",{key:""+s.title,staticClass:"w-100 pt-0 pos-rel d-flex align-center input-section",staticStyle:{padding:"0 1rem","margin-bottom":"1rem","justify-content":"space-between"}},[e("div",{staticClass:"d-inline-flex align-center"},[e(o["a"],{staticClass:"d-inline-block pt-0 custom_check",attrs:{id:s.title+"_check","hide-details":"",ripple:!1,color:"success",tabindex:-1},on:{change:function(e){return t.testCheck(""+s.title)}},scopedSlots:t._u([{key:"label",fn:function(){return[e("b",{staticClass:"fw-800 custom_check_label"},[t._v(t._s(s.label)+"\n "),s.subcount?e("small",{staticClass:"grey--text"},[t._v("("+t._s(s.subcount)+"문항)")]):t._e()])]},proxy:!0}],null,!0),model:{value:t.data[""+s.title].check,callback:function(e){t.$set(t.data[""+s.title],"check",e)},expression:"data[`${section.title}`].check"}}),e("div",{staticClass:"d-inline-flex info_icon cursor pos-rel my-0",attrs:{id:s.title+"_info_icon"},on:{click:function(e){return t.infoType(""+s.title)}}},[e(b["a"],{attrs:{"content-class":"section-info-tooltip op-1",top:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(l["a"],{attrs:{small:"",color:"#b0b0b0"}},[t._v(" mdi-information-variant ")])]}}],null,!0),model:{value:t.data.show_info[s.title],callback:function(e){t.$set(t.data.show_info,s.title,e)},expression:"data.show_info[section.title]"}},[e("ctooltip",{attrs:{arrow_direction:"arrow-down",tool_translate:"translate(-53%,-70%)",tool_color:"custom_black",arrow_color:"custom_black",arrow_left:"calc(50% - 0.1vw)",arrow_top:"calc(100% - 0.2vh)",text:s.info_text}})],1)],1)],1),e("div",{staticClass:"pos-rel d-inline-flex",staticStyle:{"justify-content":"flex-end",height:"40px",gap:"2%"}},[t._l(s.input,(function(a,i){return[e("div",{key:`count-input-${a.val}-${i}`,staticClass:"d-inline-flex align-center",staticStyle:{gap:"0.15vw"}},[e("h3",{key:`${s.title}-${i}`,staticClass:"text-center",class:1==t.data[s.title].disabled?"e9e9e9--text":"grey--text",staticStyle:{"font-size":"1rem !important",width:"3vw"}},[t._v("\n "+t._s(a.name)+"\n ")]),e(g["a"],{key:t.data.stmm,staticClass:"ms-font unset-mh",staticStyle:{"border-radius":"0"},style:{width:t.sentencesWidth},attrs:{"hide-details":"",dense:"",solo:"",outlined:"",flat:"",color:"success",disabled:t.data[s.title].disabled},on:{keyup:function(e){return t.customOnlyNumber(e,`${s.title}.${a.val}`)},input:function(e){return t.testVal(s.title,a.val)},keydown:function(e){return t.softTab(s.title+"_back")}},model:{value:t.data[""+s.title][""+a.val],callback:function(e){t.$set(t.data[""+s.title],""+a.val,e)},expression:"data[`${section.title}`][`${input.val}`]"}})],1)]}))],2)]):t._e()]}))],2)},y=[],v={name:"InputCount",props:["name","data","sentencesWidth","sentencesMarginTop","checkCnt","chkVsum","chkSsum","chkBsum","chkGtSum","chkGbSum","chkGdSum","chkSubUnitSum","chkRemainGrammar","grammarDeepCondition","grammarBasicArr","testCheck","testVal","customOnlyNumber"],components:{ctooltip:m["a"]},mounted(){this.data.show_info={voca_to_mean:!1,mean_to_voca:!1,sen_to_mean:!1,mean_to_sen:!1,word_arrange:!1,blank_inference:!1,word_inference:!1,paragraph_order:!1,reading_quiz:!1,grammar_quiz:!1}},watch:{chkVsum(t){this.sections.word.chkcount=t},chkSsum(t){this.sections.sentence.chkcount=t},chkBsum(t){this.sections.variation.chkcount=t},"data.s_words_cnt"(t){this.sections.word.count=t},"data.s_sentences_cnt"(t){this.sections.sentence.count=t},"data.s_banks_cnt"(t){this.sections.variation.count=t},"data.s_wi_cnt"(t){this.section_info_list.variation[0].subcount=t},"data.s_po_cnt"(t){this.section_info_list.variation[1].subcount=t},"data.s_rq_cnt"(t){this.section_info_list.variation[2].subcount=t},"data.s_gq_cnt"(t){this.section_info_list.variation[3].subcount=t}},computed:{},data(){return{sections:{word:{title:"단어 문제 수",subtitle:"단어",color:"warning--text",count:this.data.s_words_cnt,chkcount:this.chkVsum},sentence:{title:"문장 문제 수",color:"success--text",subtitle:"문장",count:this.data.s_sentences_cnt,chkcount:this.chkSsum},variation:{title:"변형 문제 수",subtitle:"문항",color:"info--text",count:this.data.s_banks_cnt,chkcount:this.chkBsum}},section_info_list:{word:[{title:"voca_to_mean",label:"철자 → 뜻",info_text:"단어 철자를 보고 뜻을 적어봅니다.",input:[{name:"객관식",val:"multi_val"},{name:"주관식",val:"short_val"}]},{title:"mean_to_voca",label:"뜻 → 철자",info_text:"단어 뜻을 보고 철자를 적어봅니다.",input:[{name:"객관식",val:"multi_val"},{name:"주관식",val:"short_val"}]}],sentence:[{title:"sen_to_mean",label:"영어 → 해석",info_text:"지문의 영문장을 보고 해석을 적어봅니다.",input:[{name:"객관식",val:"multi_val"},{name:"주관식",val:"short_val"}]},{title:"mean_to_sen",label:"해석 → 영어",info_text:"지문의 해석문장을 보고 영어로 적어봅니다.",input:[{name:"객관식",val:"multi_val"},{name:"주관식",val:"short_val"}]},{title:"word_arrange",label:"낱말배열",info_text:"해석을 보고 순서에 맞게 영문장을 완성합니다.",input:[{name:"객관식",val:"new_val"},{name:"주관식",val:"val"}]},{title:"blank_inference",label:"빈칸추론",info_text:"해석을 참고하여 영문장의 빈 칸을 완성합니다.",input:[{name:"기본",val:"val"},{name:"변형",val:"new_val"}]}],variation:[{title:"word_inference",label:"어휘추론",subcount:this.data.s_wi_cnt,info_text:"지문을 읽고 문맥상 알맞은 어휘를 골라봅니다.",input:[{name:"객관식",val:"val"}]},{title:"paragraph_order",label:"문단배열",subcount:this.data.s_po_cnt,info_text:"문장의 순서배열로 지문의 흐름을 점검합니다.",input:[{name:"객관식",val:"val"}]},{title:"reading_quiz",label:"독해점검",subcount:this.data.s_rq_cnt,info_text:"지문의 내용 파악을 위한 문제를 점검합니다.",input:[{name:"객관식",val:"val"}]},{title:"grammar_quiz",label:"문법점검",subcount:this.data.s_gq_cnt,info_text:"지문을 읽고 문법에 알맞는 표현을 선택합니다.",input:[{name:"객관식",val:"val"}]}]},show_tooltip:{voca_to_mean:!1,mean_to_voca:!1,sen_to_mean:!1,mean_to_sen:!1,word_arrange:!1,blank_inference:!1,word_inference:!1,paragraph_order:!1,reading_quiz:!1,grammar_quiz:!1}}},methods:{getSection(t){return this.sections[t]},infoType(t){this.data.show_info[t]?this.data.show_info[t]=!1:Object.keys(this.data.show_info).forEach(e=>{this.data.show_info[e]=e==t})},softTab(t){if(9==event.keyCode){let e=[];if(event.shiftKey){e=this.is_grammar?["t1","t2","b1","b2","b3","b4","d1"]:["voca_to_mean_back","mean_to_voca_back","sen_to_mean_back","mean_to_sen_back","word_arrange_back","blank_inference_back","word_inference","paragraph_order","reading_quiz","grammar_quiz"];let s=e.findIndex(e=>e==t);if(-1!=s){let t=!1;for(let a=s;a>0;a--){let s=e[a].replace("_back","");!t&&this[s].check&&(document.getElementById(s+"_check").focus(),t=!0)}}}else{e=this.is_grammar?["t1","t2","b1","b2","b3","b4","d1"]:["voca_to_mean","mean_to_voca","sen_to_mean","mean_to_sen","word_arrange","blank_inference","word_inference","paragraph_order","reading_quiz","grammar_quiz"];let s=e.findIndex(e=>e==t);if(-1!=s){let t=!1;for(let a=s+1;a{const[e,s]=t;let a=0;this.section_info_list[e].forEach(t=>{let e=this.chkSubUnitSum(t.title);t.show=e>0,t.subcount=e,a+=+this.data[t.title].val,"d1"==t.title&&(t.label=this.grammarDeepCondition)}),s.chkcount=s.count-a,s.show=s.count>0})}},computed:{},created(){Object.entries(this.sections).forEach(t=>{const[e,s]=t;let a=0;this.section_info_list[e].forEach(t=>{let e=this.chkSubUnitSum(t.title);t.show=e>0,t.subcount=e,a+=+this.data[t.title].val,"d1"==t.title&&(t.label=this.grammarDeepCondition)}),s.chkcount=s.count-a,s.show=s.count>0})},mounted(){},data(){return{sections:{theory:{title:"이론 문제 수",subtitle:"문항",color:"warning--text",count:this.chkGtSum,show:this.chkGtSum>0,chkcount:this.chkGtSum-this.data.t1.val-this.data.t2.val},basic:{title:"기본 문제 수",subtitle:"문항",color:"success--text",count:this.chkGbSum,show:this.chkGbSum>0,chkcount:this.chkGbSum-this.data.b1.val-this.data.b2.val-this.data.b3.val-this.data.b4.val},deep:{title:"심화 문제 수",subtitle:"문항",color:"info--text",count:this.chkGdSum,show:this.chkGdSum>0,chkcount:this.chkGdSum-this.data.d1.val-this.data.d2.val}},section_info_list:{theory:[{title:"t1",label:"단어점검",subcount:this.chkSubUnitSum("t1"),show:!1,input:[{val:"val"}]},{title:"t2",label:"이론점검",subcount:this.chkSubUnitSum("t2"),show:!1,input:[{val:"val"}]}],basic:[{title:"b1",label:"기본학습1",subcount:this.chkSubUnitSum("b1"),show:!1,input:[{val:"val"}]},{title:"b2",label:"기본학습2",subcount:this.chkSubUnitSum("b2"),show:!1,input:[{val:"val"}]},{title:"b3",label:"기본학습3",subcount:this.chkSubUnitSum("b3"),show:!1,input:[{val:"val"}]},{title:"b4",label:"기본학습4",subcount:this.chkSubUnitSum("b4"),show:!1,input:[{val:"val"}]}],deep:[{title:"d1",label:this.grammarDeepCondition,subcount:this.chkSubUnitSum("d1"),show:!1,input:[{val:"val"}]},{title:"d2",label:"심화학습2",subcount:this.chkSubUnitSum("d2"),show:!1,input:[{val:"val"}]}]}}},methods:{getSection(t){return this.sections[t]},infoType(t){this.data.show_info!==t?this.data.show_info=t:this.data.show_info=""},softTab(t){if(9==event.keyCode){let e=[];if(event.shiftKey){e=this.data.is_grammar?["t1","t2","b1","b2","b3","b4","d1"]:["voca_to_mean_back","mean_to_voca_back","sen_to_mean_back","mean_to_sen_back","word_arrange_back","blank_inference_back","word_inference","paragraph_order","reading_quiz","grammar_quiz"];let s=e.findIndex(e=>e==t);if(-1!=s){let t=!1;for(let a=s;a>0;a--){let s=e[a].replace("_back","");!t&&this.data[s].check&&(document.getElementById(s+"_check").focus(),t=!0)}}}else{e=this.data.is_grammar?["t1","t2","b1","b2","b3","b4","d1"]:["voca_to_mean","mean_to_voca","sen_to_mean","mean_to_sen","word_arrange","blank_inference","word_inference","paragraph_order","reading_quiz","grammar_quiz"];let s=e.findIndex(e=>e==t);if(-1!=s){let t=!1;for(let a=s+1;a1,chkcount:this.chkStoryBookSubUnitSum("practical")-this.data.practical.val}},section_info_list:{practical:[{title:"practical",label:"실전문제",subcount:this.chkStoryBookSubUnitSum("practical"),show:!1,input:[{val:"val"}]}]}}},created(){Object.entries(this.sections).forEach(t=>{const[e,s]=t;let a=0;this.section_info_list[e].forEach(t=>{let e=this.chkStoryBookSubUnitSum(t.title);t.show=e>1,t.subcount=e,a+=+this.data[t.title].val}),s.chkcount=s.count-a,s.show=s.count>0})},mounted(){},watch:{"data.practical.val"(){this.sections.practical.chkcount=this.chkStoryBookSubUnitSum("practical")-this.data.practical.val},"data.storybook_units"(){Object.entries(this.sections).forEach(t=>{const[e,s]=t;let a=0;this.section_info_list[e].forEach(t=>{let e=this.chkStoryBookSubUnitSum(t.title);t.show=e>1,t.subcount=e,a+=+this.data[t.title].val}),s.count=this.chkStoryBookSubUnitSum("practical"),s.chkcount=s.count-a,s.show=s.count>0})}},computed:{},methods:{getSection(t){return this.sections[t]},infoType(t){this.data.show_info!==t?this.data.show_info=t:this.data.show_info=""},softTab(t){if(9==event.keyCode){let e=[];if(event.shiftKey){e=this.data.is_grammar?["t1","t2","b1","b2","b3","b4","d1"]:["voca_to_mean_back","mean_to_voca_back","sen_to_mean_back","mean_to_sen_back","word_arrange_back","blank_inference_back","word_inference","paragraph_order","reading_quiz","grammar_quiz"];let s=e.findIndex(e=>e==t);if(-1!=s){let t=!1;for(let a=s;a>0;a--){let s=e[a].replace("_back","");!t&&this.data[s].check&&(document.getElementById(s+"_check").focus(),t=!0)}}}else{e=this.data.is_grammar?["t1","t2","b1","b2","b3","b4","d1"]:["voca_to_mean","mean_to_voca","sen_to_mean","mean_to_sen","word_arrange","blank_inference","word_inference","paragraph_order","reading_quiz","grammar_quiz"];let s=e.findIndex(e=>e==t);if(-1!=s){let t=!1;for(let a=s+1;a0},sentencesMarginTop(){return"xs"==this.$vuetify.breakpoint.name?2:7},sentencesWidth(){let t="";switch(this.$vuetify.breakpoint.name){case"xs":t="20px";break;case"sm":t="25px";break;case"md":t="40px";break;case"lg":t="3.5vw";break;case"xl":t="70px";break}return t},setUnitName(){return t=>{const e=/\(.*?)\<\/span\>/i;return t.match(e)&&(t=t.replace(e,"")),t}}},methods:{getThumbLabels(t){return this.data.thumb_labels[t]},changeWidth(t){this.$emit("changeWidthRate",t)},exceptSelectUnit(t,e){this.$emit("exceptUnit",t,e),this.data.sel_key+=1},getSectionList(){let t=[];return this.data.s_words_cnt>0&&t.push("word"),this.data.s_sentences_cnt>0&&t.push("sentence"),this.data.s_banks_cnt>0&&t.push("variation"),this.data.is_grammar&&t.push("grammar"),this.data.is_storybook&&t.push("storybook"),t}}},j=M,R=Object(k["a"])(j,_,p,!1,null,null,null);e["a"]=R.exports},b4ef:function(t,e,s){t.exports=s.p+"img/report6.379bbe43.png"},b580:function(t,e,s){},b60e:function(t,e,s){t.exports=s.p+"img/004_tiny_admin2.20212954.png"},b7f3:function(t,e,s){},bc61:function(t,e,s){"use strict";s("cb65")},bd5b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABEwAAADwCAMAAAAtmAGVAAAAhFBMVEUAAABQ3WVD2lna9t9Q3WVQ3WWd6ae07bu+78V644nI8s5s4XyG5JOS556p67Jf3nG+78Xa9t+d6adQ3WVQ3WVQ3WVQ3WVS3mdQ3WVQ3WVQ3WVQ3WVQ3WVQ3WVQ3WXQ9NZ+44y37r9w4YGu7LfB8Mil6q9L3GB+442m6rBQ3WVL3GBf3nEBfzBsAAAAKXRSTlMAv9EIgEBZOy6JIJx5aUisRQuGYBDf77EgzzCPcFCfFIM2lUIoT8fGdYerm5oAAAn4SURBVHja7NbBSitBEIbRKhLBeDVycSHoQokKNr7/+wkqjAuZHjDJ1MTzrRv63/ShQ5IkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSTpmz+fjhTRT99nrPsa6yV53MXTU4bGcnrajfRPiJdtoeRnSPGXrlTHWuvU6i6GjDo/FdNUT4mI42jr9C2lyMDk1TC5bp3OYqH4wmdpqP82Jyapq8dWJbj9aZ+vDdwOTX7fLto9yNxsmD5mtZvkYny1xe6Wv4LodvoTJge+bXs6GybaVLeOzRW4v9DeBCUxgsmBMGkxgApM6wQQmMIEJTGACE5jUCSYwgQlMYAITmMCkTjCBCUxgAhOYwAQmdYIJTD7mlw0mi3mQMIEJTGACE5jABCZ1gglMYAITmMAEJjCpE0xgAhOYwAQmMIFJnWACE5jABCYwgQlM6gQTmMAEJjCBCUxgUieYwAQmMIEJTGACkzrBBCYwgQlMYAITmNQJJjCBCUxgAhOYwKROMIEJTGACE5jABCZ1gglMYAITmMAEJjCpE0xg8pcwubqeVsLkb2GSUSeYDFXGZGrXMJkHk9vNPG3jhEqYwGQKJheZrWa52QMmmxBMhmByCEyGVj/21Pq9/u/31rrtVj8XMKkRTN7Zu7fdpoEogKIzqlPRcgmiKWlLUwRCQkf8///x0Dz4xT0uTuqxWfsfZklz0RyYvIBJ3nXkfS55f/59wcOkkVrHZCXjQWECk/UHE5jABCYwgQlMYNJOMIEJTGACE5jABCbtBBOYwAQmMIEJTGDSTjCBCUxgAhOYwAQm7QQTmMAkos7RtqwrmMAEJjNV35VVBROYwGSuYAKTXjCBCUwWgslTd5ZuYQKT+YOJLwh6wQQmMIEJTGDy6mAyDZMOJsPBBCYwgQlMYPLqYAITmMCkwWACk14wgQlMjgVMYAKT0cEEJjCBSYPBBCa9YAITmIzH5AYmw8EEJjB57i7yNjAZDiYwgclzG5jABCbjgwlMYAKTBlsXJjeRdweT4ebBZFv7wQQmLdRFXoHJcLNg8qlGP5jApIVgskhMAiYwaa4aabcweSGYwAQmozGpMHkhmMAEJs99hcmbYPKxjgwmMFlqkdfBZHo1RgYTmCy0DUxgApNXBJPBDpF3gAlMYHIMJpMW8wYmMIHJMZgMto+8HUxgApNjMBnsPvIKTGACk2MwGSzyKkxgUsqPy4E+RN7vL3mRt70capmY1P1FWU+byNufE5PNWSd8RjchmPT7XqPh6tVkTH5evH1roqSUx8jrpmJyrmqrr1jXiMl1NN37yZhcFU3rKfIOMIEJTJR1G3kPMIEJTJS0ixEVmMAEJko6RF6FCUxgoqxvkfcEE5jARKc4MnmECUxgoqS7GNEDTGACEyXdxIgKTGACEyXtI6/CBCYw0SkuhjuYwAQmOsUu5wATmPwPmGwv5+pXWUH7GNHuHJjEsupgsn5M5quW5beLEd0XmMAEJn/Zu6PdtIEggKKzqk0hEFXR2sYYSIiaPsz//2AbIsCAKWNiYNfc+wFoXubIINZ7zVwPDg97NTQHEzABk+vWA0ycGkrBBEzA5CAwOahUSwImYAImB4HJQXM1NAUTMAGTw8Bkv6xQQx5MwARMDgOT/bxaKsEETMDkMDDZL1dDMwGTIDEZOjABk1DyamkBJmFiIh8/a43BBEzuWK6WSjC5FSZuNTH1LsdNwARM7pdXSzMBk5thIsbABEzCKldLCzABEzA5DkxqLdRUCSZgAibHgUnb/5joVMAETMDkODDZNVdTHkzABEwaApNtlZoqBEzABEwaApNtMzU1BxMwAZOmwGRTorZKMAETMGkKTNp9ydGpgAmYbHtzGnBuBCZ3KJuprRRMwKTWcPCNxnq+58E3EjC5Q69qKxcwAZOumlx7pcDkDnk15sEETMCkOTD5rFJjuYAJmIBJc2Dyr7JQYx5MwARMTgQmLX581VzABEzA5ERg0sIS9WACJmByKjBpYUkuYAImYHKqh8ekhSXqwQRMwORkj45JG0tyuTImaVyVYAImtR4dkypXe6mYcw9xxzuYgMl+j3xx+bJQe07A5DMw6Q0mw4BPFrmpRFWibSrBZB2Y9AYTeXsKN4mpsh3LiYDJOjDpDybUTb7QNuUZmKwDEzChpscSe6mAyTowAROqlSXasqncFBN3vkr6EJiASdRlSaEtK7LbYmJ6VOpDYAImEVejxF4qYLIJTMCEPktf9YLmAibbwARMSKok10uaZWCyC0zA5NFbznO9rKISMNkVOibvz2BCV6vyc6eX5wVMagWNyXDlnBuBCXVclqbLJHEz/V6vAib1gsXkaTB2688DE+qyRLtqJmCyV4iYvLw///qCBExIJFBM8gxM9gsLkx8ffyYbR8CEvgoTk6ISMNkvCExenoa/B5Ox2zASJyYrPV9cp2d7WVeYVAImhq6HyWqyazUajcbjX87VDbkTJiPXRXo+10X7Ij27iJre/9GsI0y8gMlVc3ph98Yk4NcKNTTozeymgsTEC5gcBibRL2TMs5sKERMvYHIUmES/kDHPbipATLyAyXFgEv1Cxjy7qfAw8QImDYFJ9AsZ8+ymgsPEC5g0BSbRL2TMs5sKDJNiKWDSGJhEv5Axz24qLEyKSsCkOTCJfiFjnt1UUJjMSgkek0VqLMhrQcHk/4FJXzCZZhI+Jn/Zu7eVNqMgAKMzGK3mYChJE1OCqaeLvv8L1lQEQRpj8ZfZ27WeYGDDB/tm5r1qHSwXkzeISR8xGUWIiZiISQ0tx2R1GmIiJmJSRcMxyWWIiZiISRnNxmS1jRATMRGTOlqNSV6FmIiJmFTSZkxW2wgxERMxKaXJmFwvQ0zEREyKaTAmeRohJmIiJtU0F5MfiwgxERMxqaexmOxTIiZiIiYVNRWTvykREzERk5Iaikk+pURMxERMSmolJqvrn/FETMRETEpqIyabxTKeiYmYiElJDcRks72KF8Skm5hknomJmHxaTNavSiImfcQkc3IXISZi8ikxydFpvCYmHcQk82JfEjERk+Fjsllv/xUSMWk8JpmTs3FEiImYRAwZk1WuR4uDHRGTdmOSOZ/e7eKRmIjJABaZuR49Why3AFlMGoxJZk6mD+cnsScmYtInMTnSPN/bj7357XT2cDN+roiYiEnHxORY58e6H4/Hu933eElMxKR/YlLAoDFZ/25IXnYz+xckJgUMGpP41pCbjmb/esSkgI+NCRxLTLqLySzfeIJ7MaE+MalgdthliAn1iUlbxAQY/ke0dxsAR/h1cdhJAAAAAAAAAAAAAAAAAAAAAAAAAEAvEuhC/J8ix/WBKsQEEBOgDjEBxASoQ0zgTzt1UAMACAMBbEHMHvgXiAt2WVoRRSZADpkAMgFyyASQCZBDJoBMgBwyAZZk0hdYoGvaAVYoAAAAAAAAAAD45AE7N79Pab75IQAAAABJRU5ErkJggg=="},bf7a:function(t,e,s){},bfb5:function(t,e,s){"use strict";var a=s("8336"),i=s("cc20"),o=s("62ad"),n=s("8fea"),l=s("132d"),r=s("de8e"),c=s("0fd9"),d=s("9e88"),h=s("e0c7"),u=s("8654"),_=function(){var t=this,e=t._self._c;return"book"==t.data.print_mode?e(o["a"],{key:"book-"+t.tabcol,staticClass:"pa-0 height-inherit printnone",attrs:{cols:"12",xs:"12",sm:t.isStoryBookFairy,md:t.isStoryBookFairy,lg:t.isStoryBookFairy}},["list"==t.data.mode?[e("div",{staticClass:"bg-white h-100 v-book-index pos-rel"},[e(h["a"],{staticClass:"justify-center title grey lighten-4 pos-rel h-3rem",staticStyle:{"border-bottom":"thin solid #edeeef !important"}},[e("button",{staticClass:"pos-abs",staticStyle:{left:"5px",top:"13%",cursor:"pointer"},on:{click:function(e){return t.goBack()}}},[e("i",{staticClass:"v-icon mdi mdi-arrow-left theme--light"})]),e("b",{staticClass:"fs-1rem"},[t._v(" 교재 목록 ")])]),"course"===t.data.book_type?e(c["a"],{staticClass:"w-100 mgauto"},t._l(Object.keys(t.tab_items.course).length,(function(s){return e(o["a"],{key:"custom-tab-"+s,staticClass:"pa-0",staticStyle:{"box-sizing":"content-box"},style:[4===s?"order: 1;":"",5===s?"order: 1;":"",[4,5].includes(s)?"":`order: ${s};`]},[e("button",{staticClass:"custom-tab-btn w-100",class:t.data.tab_val==s?"success--text fw-700":"grey--text",style:t.data.tab_val==s?"border-bottom: 2px solid #1bd05b;":"",attrs:{id:"tab"+s},on:{click:function(e){return t.selectTab(s)}}},[t._v("\n "+t._s(t.tab_items[t.data.book_type][s])+"\n "),4===s?e(i["a"],{attrs:{color:t.data.tab_val==s?"#ff1717":"#ffabab","text-color":"white","x-small":"",pill:""}},[e("span",{staticClass:"white--text"},[t._v("NEW")])]):t._e()],1)])})),1):"school"===t.data.book_type?e(c["a"],{staticClass:"w-100 mgauto"},t._l(Object.keys(t.tab_items.school).length,(function(s){return e(o["a"],{key:"custom-tab-"+s,staticClass:"pa-0",staticStyle:{"box-sizing":"content-box"},style:{order:""+(5===s?3:s)}},[2===s&&t.tooltipStatus[t.data.print_mode]?e("div",{staticClass:"textbook-tooltip-wrapper"},[t.data.tab_val!==s?e("div",{staticClass:"textbook-tooltip-content"},[t._v("\n 초,중,고의 모든 영어 교과서가 제공됩니다.\n ")]):t._e(),t.data.tab_val!==s?e("div",{staticClass:"textbook-tooltip-arrow"}):t._e(),e("button",{staticClass:"custom-tab-btn w-100 d-flex align-center justify-center",class:t.data.tab_val==s?"success--text fw-700":"grey--text",style:t.data.tab_val==s?"border-bottom: 2px solid #1bd05b;":"",attrs:{id:"tab"+s},on:{click:function(e){return t.selectTab(s)}}},[t._v("\n "+t._s(t.tab_items[t.data.book_type][s])+"\n ")])]):t._e(),2===s&&t.tooltipStatus[t.data.print_mode]?t._e():e("button",{staticClass:"custom-tab-btn w-100 d-flex align-center justify-center",class:t.data.tab_val==s?"success--text fw-700":"grey--text",style:{borderBottom:""+(t.data.tab_val==s?"2px solid #1bd05b":"")},attrs:{id:"tab"+s},on:{click:function(e){return t.selectTab(s)}}},[t._v("\n "+t._s(t.tab_items[t.data.book_type][s])+"\n "),1===s?e(i["a"],{staticClass:"ml-1",attrs:{color:t.data.tab_val==s?"#ff1717":"#ffabab","text-color":"white","x-small":"",pill:""}},[e("span",{staticClass:"white--text",staticStyle:{"margin-top":"-2px"}},[t._v(" NEW ")])]):t._e()],1)])})),1):t._e(),""!=t.data.book_type?e(c["a"],{staticClass:"w-100 mgauto border-ede thin-b"},[e(o["a"],{staticClass:"px-0 py-1 pl-4",attrs:{xs:"3",sm:"3",md:"3"}},[e(c["a"],{staticClass:"w-100 mgauto"},[e(o["a"],{staticClass:"pa-0 pr-1",attrs:{cols:"6"}},[e(r["a"],{key:"ov-grade-"+t.data.tab_val,staticClass:"custom-filter",attrs:{items:t.grade_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"success","persistent-placeholder":!0},on:{change:t.changeGrade},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",{staticClass:"mx-0"},[t._v("학년")])]},proxy:!0},{key:"append",fn:function(){return[e(l["a"],{attrs:{color:"white"}},[t._v(" mdi-menu-down ")])]},proxy:!0}],null,!1,3630329710),model:{value:t.select_grade[t.data.tab_val],callback:function(e){t.$set(t.select_grade,t.data.tab_val,e)},expression:"select_grade[data.tab_val]"}})],1),e(o["a"],{staticClass:"pa-0 pr-1",attrs:{cols:"6"}},[e(r["a"],{key:"ov-sort-"+t.data.tab_val,staticClass:"custom-filter",attrs:{items:t.sort_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"#ffa025","persistent-placeholder":!0},scopedSlots:t._u([{key:"label",fn:function(){return[e("span",{staticClass:"mx-0"},[t._v(" 정렬 ")])]},proxy:!0},{key:"append",fn:function(){return[e(l["a"],{attrs:{color:"white"}},[t._v(" mdi-menu-down ")])]},proxy:!0}],null,!1,2597459517),model:{value:t.select_sort[t.data.tab_val],callback:function(e){t.$set(t.select_sort,t.data.tab_val,e)},expression:"select_sort[data.tab_val]"}})],1)],1)],1),e(o["a"],{staticClass:"px-0 py-1",attrs:{xs:"0",sm:"0",md:"5"}}),e(o["a"],{staticClass:"pl-0 pr-3 py-1",attrs:{xs:"4",sm:"4",md:"4"}},[e(u["a"],{staticClass:"c-search-input float-left",attrs:{"append-icon":t.search?"":"mdi-magnify",id:"search",placeholder:"교재명, 단원명, 제작자",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":"mdi-close-circle",color:"success"},on:{keyup:function(e){return t.searchItems(e)},"click:clear":function(e){t.final_keyword=""}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1):t._e(),"object"==typeof t.data.book_items[t.data.tab_val]?[t.folder_open_status?t._e():e(n["a"],{key:t.tabcol,ref:"v-data-table-"+t.data.tab_val,staticClass:"print_book_table",attrs:{id:"book-list-dttbl",headers:t.book_header,items:t.data.book_items[t.data.tab_val],"mobile-breakpoint":10,"show-expand":!0,"single-expand":!0,"items-per-page":t.items_per_page,"item-key":"id","show-select":"",height:"calc(100vh - 6.5rem - 3rem - (3.1rem - 4px) - (2.5rem + 8px))","hide-default-header":"","hide-default-footer":"","fixed-header":"",expanded:t.expanded,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.",search:t.tableSearch,"custom-filter":t.filterTabs,"custom-sort":t.sortByTable,"sort-desc":"recent"==t.select_sort[t.data.tab_val]},scopedSlots:t._u([{key:"no-results",fn:function(){return[e(c["a"],{staticClass:"w-100 mgauto text-center"},[e(o["a"],{staticClass:"px-4 py-3 grey--text"},[t._v("\n 등록된 교재가 없습니다.\n ")])],1)]},proxy:!0},{key:"item.data-table-expand",fn:function({isExpanded:s,check:a,item:i}){return[e("div",{on:{click:function(e){return t.toggleClassRow(i)}}},[s&&-1==i.id.indexOf("folder")?e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[t._v("mdi-menu-down")]):s?t._e():e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1}},[t._v("mdi-menu-right")])],1)]}},{key:"item.data-table-select",fn:function({item:s}){return[-1==s.id.indexOf("folder")||t.folder_open_status?e(d["a"],{staticClass:"pos-rel h-100 d-flex align-center justify-center",attrs:{color:"info",value:s.check},on:{input:function(e){return t.selectBook(s)}}}):e(l["a"],{staticStyle:{cursor:"pointer"},attrs:{color:"yellow"},on:{click:function(e){return t.toggleClassRow(s)}}},[t._v("\n mdi-folder-open\n ")])]}},{key:"item.bookname",fn:function({item:s}){return[e("div",{staticClass:"pos-rel h-100 d-flex align-center",on:{click:function(e){return t.toggleClassRow(s,e)}}},[e("span",{staticClass:"cbr_bookname cursor",style:{color:4==s.category&&s.tmp_academy_name?"#c1c1c1":""},on:{click:function(e){return t.selectBook(s)}}},[t.final_keyword?e("span",{domProps:{innerHTML:t._s(s.bookname.replace(new RegExp(t.final_keyword,"gi"),"$&"))}}):e("span",[t._v("\n "+t._s(s.bookname)+"\n ")]),s.tmp_academy_name?4==s.category&&s.tmp_academy_name?e("span",{staticClass:"ml-1 fw-300",staticStyle:{color:"#e5e5e5"}},[t._v("\n - "+t._s(s.tmp_academy_name)+"\n ")]):t._e():[[11,43,50].includes(+s.booktype)||(5===+s.category||1===+s.category)&&31===+s.booktype?e("span",{staticClass:"ml-1 fw-400 custom-tag hot"},[t._v("\n HOT\n ")]):1==s.booktype_s||s.category>=1&&s.category<4&&0===s.booktype?e("span",{staticClass:"ml-1 fw-300 custom-tag new"},[t._v("\n NEW\n ")]):22===+s.booktype?e("span",{staticClass:"ml-1 fw-300 custom-tag voca"},[t._v("\n VOCA\n ")]):t._e()]],2),t.expanded.length>0&&t.expanded[0].id==s.id&&(43===+s.booktype&&s.sub_data[0].hwp||"school"===t.data.book_type&&5===+s.category&&31===+s.booktype)&&!s.tmp_academy_name&&"F"!=t.$storage.get("user").product_type?e("div",{staticClass:"pos-abs cbr-zip",staticStyle:{right:"12px",top:"calc(1rem)"},attrs:{id:`cbr_${s.grade}_${s.id}_zip`},on:{click:function(e){return t.workBookZipDown(e,s,"hwp")}}},[e(l["a"],{staticClass:"book-table-icon-mt",staticStyle:{color:"rgb(25, 124, 255)"}},[t._v("\n mdi-download-box\n ")]),e("div",{staticClass:"d-inline-block ml-1"},[t._v("\n "+t._s(43===+s.booktype?"전체 강의요약":"듣기자료 다운받기")+"\n ")])],1):t._e()])]}},{key:"expanded-item",fn:function({item:s}){return["object"==typeof s.sub_data&&s.sub_data.length>0?[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},t._l(s.sub_data,(function(a,o){return e("tr",{key:"tr-key-"+o,staticClass:"w-100 flex-tr d-flex pos-rel",class:"is-grammar-free",attrs:{id:"u-"+a.id}},[e("td",{key:"td-1-"+o,staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 justify-start text-center"},[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"pa-0 text-center d-flex align-center"},[e(c["a"],[e(d["a"],{attrs:{color:"info",value:a.check,disabled:a.disable},on:{input:function(e){return t.selectUnit(s,a)}}})],1)],1),e("td",{staticClass:"pa-0 d-flex align-center w-100"},[e(c["a"],{key:`unitlist-${Number(s.id)}\n }-${o}`,staticClass:"unit-row align-center cursor",style:t.grammarFree(s,a)?"color: #dddddd":"",attrs:{dense:"","no-gutters":""},on:{click:function(e){return t.selectUnit(s,a)}}},[5===+s.booktype_m&&0===+s.booktype_s?e(i["a"],{staticClass:"px-2 mr-2",attrs:{color:s.color,"x-small":"",pill:""}},[e("span",{staticClass:"white--text"},[t._v(" No. "+t._s(a.seq)+" ")])]):t._e(),t.final_keyword?e("span",{domProps:{innerHTML:t._s(a.name.replace(new RegExp(t.final_keyword,"gi"),"$&"))}}):e("span",{domProps:{innerHTML:t._s(a.name)}})],1)],1),a.hwp||a.workbook||a.download?e("div",{staticClass:"d-inline-flex pos-abs",staticStyle:{gap:"6px",right:"12px",top:"1rem"}},[a.hwp?[e("div",{staticClass:"d-inline-block cursor",on:{click:function(e){return t.workBookDown(s,a,"hwp")}}},[e(l["a"],{staticClass:"book-table-icon-mt",attrs:{color:t.grammarFree(s,a)?"#d0e4ff":"#197cff"}},[t._v("\n mdi-download-box\n ")]),e("div",{staticClass:"d-inline-block ml-1",style:t.grammarFree(s,a)?"color: #d0e4ff":"color: #197cff"},[t._v("\n 강의요약\n ")])],1)]:t._e(),a.workbook?[e("div",{staticClass:"d-inline-flex h-100",staticStyle:{width:"1px","border-left":"thin solid #edeeef"}},[t._v("\n  \n ")]),e("div",{staticClass:"d-inline-block cursor",on:{click:function(e){return t.workBookDown(s,a,"workbook")}}},[e(l["a"],{staticClass:"book-table-icon-mt",attrs:{color:t.grammarFree(s,a)?"#dbf9e8":"#1bd05b"}},[t._v("\n mdi-download-box\n ")]),e("div",{staticClass:"d-inline-block ml-1",style:t.grammarFree(s,a)?"color: #dbf9e8":"color: #1bd05b"},[t._v("\n 워크북\n ")])],1)]:t._e(),a.download?[e("div",{staticClass:"d-inline-block cursor",on:{click:function(e){return t.examDown(s,a.download_type)}}},[e(l["a"],{staticStyle:{"margin-top":"-4px"},attrs:{color:"#1bd05b"}},[t._v("\n mdi-download-box\n ")]),e("div",{staticClass:"d-inline-block ml-1",staticStyle:{color:"#1bd05b"}},[t._v("\n 다운로드\n ")])],1)]:t._e()],2):t._e()])})),0)]:[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},[e("tr",{staticClass:"w-100 flex-tr d-flex"},[e("td",{staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 text-center"}),e("td",{staticClass:"row px-0 justify-start"},[t._v(t._s(s.sub_data))])])])]]}}],null,!0)}),t.folder_open_status?e(n["a"],{key:"folder-"+t.data.datatable_component,staticClass:"print_book_table",attrs:{id:"book-list-dttbl",headers:t.book_header,items:t.data.folder_book_items[t.data.select_folder_id],"mobile-breakpoint":10,"show-expand":!0,"single-expand":!0,"items-per-page":t.items_per_page,"item-key":"id","show-select":"",height:"calc(100vh - 64px - 37.6px - 5rem - 3rem)","hide-default-header":"","hide-default-footer":"","fixed-header":"",expanded:t.expanded,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.",search:t.tableSearch,"custom-filter":t.filterTabs,"single-select":!0},scopedSlots:t._u([{key:"body.prepend",fn:function(){return[e("tr",{staticClass:"cursor",on:{click:function(e){return t.closeFolder()}}},[e("td",{staticClass:"px-0 text-center",staticStyle:{width:"6.5%"}},[e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1}},[t._v("mdi-menu-right")])],1),e("td",{staticClass:"px-0 align-center before-divider",staticStyle:{width:"6.5%"}},[e(l["a"],{staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")])],1),e("td",{staticClass:"px-4 py-2 d-flex align-center",staticStyle:{color:"#000000de"}},[t._v("\n "+t._s(t.data.select_folder.bookname)+"\n ")])])]},proxy:!0},{key:"item.data-table-expand",fn:function({isExpanded:s,check:a,item:i}){return[e("div",{on:{click:function(e){return t.toggleClassRow(i)}}},[s?e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[t._v("mdi-menu-down")]):s?t._e():e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1}},[t._v("mdi-menu-right")])],1)]}},{key:"item.data-table-select",fn:function({item:s}){return["back"==s.id?e(l["a"],{staticClass:"cursor",staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")]):"null"==s.id?void 0:e(d["a"],{staticClass:"pos-rel h-100 d-flex align-center justify-center",attrs:{color:"info",value:s.check},on:{input:function(e){return t.selectBook(s)}}})]}},{key:"item.bookname",fn:function({item:s}){return[e("div",{staticClass:"pos-rel h-100",class:`tab${t.data.tab_val}-${s.grade} tab${t.data.tab_val}-span`,on:{click:function(e){return t.toggleClassRow(s,e)}}},[e("span",{staticClass:"pos-abs translate-y cursor",style:{color:4==s.category&&s.tmp_academy_name?"#c1c1c1":""},on:{click:function(e){return t.selectBook(s)}}},[t.final_keyword?e("span",{domProps:{innerHTML:t._s(s.bookname.replace(new RegExp(t.final_keyword,"gi"),"$&"))}}):e("span",[t._v("\n "+t._s(s.bookname)+"\n ")]),11!==+s.booktype||s.id==t.data.select_books[0]&&t.new_set_option&&t.select_option>1||4==s.category&&s.tmp_academy_name?(1!=s.booktype_s||s.id==t.data.select_books[0]&&t.new_set_option&&t.select_option>1||4==s.category&&s.tmp_academy_name)&&(![1,2,3].includes(+s.category)||0!==+s.booktype_m||0!==+s.booktype_s)?2!=s.booktype_s||s.id==t.data.select_books[0]&&t.new_set_option&&t.select_option>1||4==s.category&&s.tmp_academy_name?t._e():e("span",{staticClass:"ml-1 fw-300 custom-tag voca"},[t._v("\n VOCA\n ")]):e("span",{staticClass:"ml-1 fw-300 custom-tag new"},[t._v("\n NEW\n ")]):e("span",{staticClass:"ml-1 fw-400 custom-tag hot"},[t._v("\n HOT\n ")]),4==s.category&&s.tmp_academy_name?e("span",{staticClass:"ml-1 fw-300",staticStyle:{color:"#e5e5e5"}},[t._v("\n - "+t._s(s.tmp_academy_name)+"\n ")]):t._e()])])]}},{key:"expanded-item",fn:function({item:s}){return["object"==typeof s.sub_data&&s.sub_data.length>0?[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},t._l(s.sub_data,(function(a,i){return e("tr",{key:"tr-key-"+i,staticClass:"w-100 flex-tr d-flex pos-rel",attrs:{id:"u-"+a.id}},[e("td",{key:"td-1-"+i,staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 justify-start text-center"},[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"pa-0 text-center d-flex align-center"},[e(c["a"],[e(d["a"],{attrs:{color:"info",value:a.check,disabled:a.disable},on:{input:function(e){return t.selectUnit(s,a)}}})],1)],1),e("td",{staticClass:"pa-0 d-flex align-center w-100"},[e(c["a"],{key:`unitlist-${Number(s.id)}\n }-${i}`,staticClass:"unit-row align-center cursor",attrs:{dense:"","no-gutters":""},on:{click:function(e){return t.selectUnit(s,a)}}},[[t.final_keyword?e("span",{domProps:{innerHTML:t._s(a.name.replace(new RegExp(t.final_keyword,"gi"),"$&"))}}):e("span",{domProps:{innerHTML:t._s(a.name)}})]],2)],1)])})),0)]:[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},[e("tr",{staticClass:"w-100 flex-tr d-flex"},[e("td",{staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 text-center"}),e("td",{staticClass:"row px-0 justify-start"},[t._v(t._s(s.sub_data))])])])]]}}],null,!0)}):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.scroll_loading,expression:"scroll_loading"}],staticClass:"linear-activity overflow-hidden w-100 pos-abs bottom-0"},[e("div",{staticClass:"indeterminate pos-rel w-100 h-100"})])]:t._e()],2)]:"preview"==t.data.mode?[e("div",{staticClass:"grey darken-2 h-100"},[e(c["a"],{staticClass:"w-100 h-100 mgauto",attrs:{id:"printrow"}},[e("div",{staticClass:"grey darken-2 h-100 py-1 printnone",staticStyle:{width:"66.6666666666%",position:"absolute",top:"0px",left:"0px","z-index":"4",display:"none"},attrs:{id:"tmploading"}},[e("div",{staticClass:"mgauto h-100"},[e("div",{staticClass:"white mgauto pos-rel",staticStyle:{width:"210mm",height:"297mm",left:"50%"}})])]),e(a["a"],{staticClass:"pos-abs printnone",staticStyle:{left:"10px","z-index":"3"},style:{bottom:12===t.isStoryBookFairy?"calc(7vh + 10px)":"10px"},attrs:{fab:"",small:"",disabled:t.data.nowpage<=0,color:"success"},on:{click:function(e){return t.$emit("movePage","left")}}},[e(l["a"],[t._v("mdi-chevron-left")])],1),e(a["a"],{staticClass:"pos-abs printnone",staticStyle:{left:"60px","z-index":"3"},style:{bottom:12===t.isStoryBookFairy?"calc(7vh + 10px)":"10px"},attrs:{fab:"",small:"",disabled:!(t.data.maxpage>1&&t.data.nowpage$&"))}}):e("span",[t._v("\n "+t._s(s.bookname)+"\n ")]),s.tmp_academy_name?4==s.category&&s.tmp_academy_name?e("span",{staticClass:"ml-1 fw-300",staticStyle:{color:"#e5e5e5"}},[t._v("\n - "+t._s(s.tmp_academy_name)+"\n ")]):t._e():[[11,43,50].includes(+s.booktype)||5===+s.category&&31===+s.booktype?e("span",{staticClass:"ml-1 fw-400 custom-tag hot"},[t._v("\n HOT\n ")]):1==s.booktype_s||s.category>=1&&s.category<4&&0===+s.booktype?e("span",{staticClass:"ml-1 fw-300 custom-tag new"},[t._v("\n NEW\n ")]):22===+s.booktype?e("span",{staticClass:"ml-1 fw-300 custom-tag voca"},[t._v("\n VOCA\n ")]):t._e()]],2)])]}},{key:"expanded-item",fn:function({item:s}){return["object"==typeof s.sub_data&&s.sub_data.length>0?[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},t._l(s.sub_data,(function(a,o){return e("tr",{key:"tr-key-"+o,staticClass:"w-100 flex-tr d-flex pos-rel",class:"is-grammar-free",attrs:{id:"u-"+a.id}},[e("td",{key:"td-1-"+o,staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 justify-start text-center"},[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"pa-0 text-center d-flex align-center"},[e(c["a"],[e(d["a"],{attrs:{color:"info",value:a.check,disabled:a.disable},on:{input:function(e){return t.selectUnit(s,a)}}})],1)],1),e("td",{staticClass:"pa-0 d-flex align-center w-100"},[e(c["a"],{key:`unitlist-${Number(s.id)}\n }-${o}`,staticClass:"unit-row align-center cursor",style:t.grammarFree(s,a)?"color: #dddddd":"",attrs:{dense:"","no-gutters":""},on:{click:function(e){return t.selectUnit(s,a)}}},[5===+s.booktype_m&&0===+s.booktype_s?e(i["a"],{staticClass:"px-2 mr-2",attrs:{color:s.color,"x-small":"",pill:""}},[e("span",{staticClass:"white--text"},[t._v(" No. "+t._s(a.seq)+" ")])]):t._e(),t.final_keyword?e("span",{domProps:{innerHTML:t._s(a.name.replace(new RegExp(t.final_keyword,"gi"),"$&"))}}):e("span",{domProps:{innerHTML:t._s(a.name)}})],1)],1)])})),0)]:[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},[e("tr",{staticClass:"w-100 flex-tr d-flex"},[e("td",{staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 text-center"}),e("td",{staticClass:"row px-0 justify-start"},[t._v(t._s(s.sub_data))])])])]]}}],null,!0)}),t.folder_open_status?e(n["a"],{key:"folder-"+t.data.datatable_component,staticClass:"print_book_table",attrs:{id:"book-list-dttbl",headers:t.book_header,"show-expand":!0,"single-expand":!0,items:t.data.folder_book_items[t.data.select_folder_id],"mobile-breakpoint":10,"items-per-page":t.items_per_page,"item-key":"id",height:"calc(100vh - 64px - 37.6px - 5rem - 3rem)","show-select":"","single-select":!0,"hide-default-header":"","hide-default-footer":"","fixed-header":"",expanded:t.expanded,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.",search:t.tableSearch,"custom-filter":t.filterTabs},scopedSlots:t._u([{key:"body.prepend",fn:function(){return[e("tr",{staticClass:"cursor",on:{click:function(e){return t.closeFolder()}}},[e("td",{staticClass:"px-0 text-center",staticStyle:{width:"6.5%"}},[e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1}},[t._v("mdi-menu-right")])],1),e("td",{staticClass:"px-0 align-center before-divider",staticStyle:{width:"6.5%"}},[e(l["a"],{staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")])],1),e("td",{staticClass:"px-4 py-2 d-flex align-center",staticStyle:{color:"#000000de"}},[t._v("\n "+t._s(t.data.select_folder.bookname)+"\n ")])])]},proxy:!0},{key:"item.data-table-expand",fn:function({isExpanded:s,check:a,item:i}){return[e("div",{on:{click:function(e){return t.toggleClassRow(i)}}},[s?e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[t._v("mdi-menu-down")]):s?t._e():e(l["a"],{staticClass:"act-ico",attrs:{ripple:!1}},[t._v("mdi-menu-right")])],1)]}},{key:"item.data-table-select",fn:function({item:s}){return["back"==s.id?e(l["a"],{staticClass:"cursor",staticStyle:{transform:"rotate(-90deg)"},attrs:{color:"red"}},[t._v("\n mdi-subdirectory-arrow-right\n ")]):"null"==s.id?void 0:e(d["a"],{staticClass:"pos-rel h-100 d-flex align-center justify-center",attrs:{color:"info",value:s.check},on:{input:function(e){return t.selectBook(s)}}})]}},{key:"item.bookname",fn:function({item:s}){return[e("div",{staticClass:"pos-rel h-100",class:`tab${t.data.tab_val}-${s.grade} tab${t.data.tab_val}-span`,on:{click:function(e){return t.toggleClassRow(s,e)}}},[e("span",{staticClass:"pos-abs translate-y cursor",style:{color:4==s.category&&s.tmp_academy_name?"#c1c1c1":""},on:{click:function(e){return t.selectBook(s)}}},[t.final_keyword?e("span",{domProps:{innerHTML:t._s(s.bookname.replace(new RegExp(t.final_keyword,"gi"),"$&"))}}):e("span",[t._v("\n "+t._s(s.bookname)+"\n ")]),1!=s.booktype_m||1!=s.booktype_s||s.id==t.data.select_books[0]&&t.new_set_option&&t.select_option>1||4==s.category&&s.tmp_academy_name?(1!=s.booktype_s||s.id==t.data.select_books[0]&&t.new_set_option&&t.select_option>1||4==s.category&&s.tmp_academy_name)&&(![1,2,3].includes(+s.category)||0!==+s.booktype_m||0!==+s.booktype_s)?2!=s.booktype_s||s.id==t.data.select_books[0]&&t.new_set_option&&t.select_option>1||4==s.category&&s.tmp_academy_name?t._e():e("span",{staticClass:"ml-1 fw-300 custom-tag voca"},[t._v("\n VOCA\n ")]):e("span",{staticClass:"ml-1 fw-300 custom-tag new"},[t._v("\n NEW\n ")]):e("span",{staticClass:"ml-1 fw-400 custom-tag hot"},[t._v("\n HOT\n ")]),4==s.category&&s.tmp_academy_name?e("span",{staticClass:"ml-1 fw-300",staticStyle:{color:"#e5e5e5"}},[t._v("\n - "+t._s(s.tmp_academy_name)+"\n ")]):t._e()])])]}},{key:"expanded-item",fn:function({item:s}){return["object"==typeof s.sub_data&&s.sub_data.length>0?[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},t._l(s.sub_data,(function(a,i){return e("tr",{key:"tr-key-"+i,staticClass:"w-100 flex-tr d-flex pos-rel",attrs:{id:"u-"+a.id}},[e("td",{key:"td-1-"+i,staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 justify-start text-center"},[e("div",{staticClass:"dotted"})]),e("td",{staticClass:"pa-0 text-center d-flex align-center"},[e(c["a"],[e(d["a"],{attrs:{color:"info",value:a.check,disabled:a.disable},on:{input:function(e){return t.selectUnit(s,a)}}})],1)],1),e("td",{staticClass:"pa-0 d-flex align-center w-100"},[e(c["a"],{key:`unitlist-${Number(s.id)}\n }-${i}`,staticClass:"unit-row align-center cursor",attrs:{dense:"","no-gutters":""},on:{click:function(e){return t.selectUnit(s,a)}}},[[t.final_keyword?e("span",{domProps:{innerHTML:t._s(a.name.replace(new RegExp(t.final_keyword,"gi"),"$&"))}}):e("span",{domProps:{innerHTML:t._s(a.name)}})]],2)],1)])})),0)]:[e("td",{staticClass:"px-0",attrs:{colspan:t.book_header.length+1}},[e("tr",{staticClass:"w-100 flex-tr d-flex"},[e("td",{staticClass:"px-0 justify-center text-center"}),e("td",{staticClass:"px-0 text-center"}),e("td",{staticClass:"row px-0 justify-start"},[t._v(t._s(s.sub_data))])])])]]}}],null,!0)}):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.scroll_loading,expression:"scroll_loading"}],staticClass:"linear-activity overflow-hidden w-100 pos-abs bottom-0"},[e("div",{staticClass:"indeterminate pos-rel w-100 h-100"})])]:t._e()],2)]:t._e(),"preview"==t.data.mode?[e("div",{staticClass:"grey darken-2 h-100"},[e(c["a"],{staticClass:"w-100 h-100 mgauto pos-rel",attrs:{id:"printrow"}},[e("form",{staticClass:"d-none",attrs:{id:"print_form",name:"print_form",action:t.$host+"/testprint.php",method:"POST"}},[e("input",{attrs:{type:"hidden",id:"ref",name:"ref",value:"testprint"}}),e("input",{attrs:{type:"hidden",id:"res_data",name:"res_data",value:""}}),e("input",{attrs:{type:"hidden",id:"uids",name:"uids"},domProps:{value:t.data.select_units}}),e("input",{attrs:{type:"hidden",id:"user",name:"user"},domProps:{value:JSON.stringify(t.$store.state.user)}}),e("input",{attrs:{type:"hidden",name:"title"},domProps:{value:t.data.preview_name}}),e("input",{attrs:{type:"hidden",name:"fontsize"},domProps:{value:t.data.fontSize}}),e("input",{attrs:{type:"hidden",name:"lr_rate"},domProps:{value:t.data.leftrate+":"+t.data.rightrate}}),t._l(["rowpadding","logostatus","cnamestatus","answer_sheet","countstatus","exceptstatus","is_grammar","is_storybook","zoom_status"],(function(s,a){return e("input",{key:"hidden-input-"+a,attrs:{type:"hidden",name:s},domProps:{value:t.data[s]}})})),t.data.is_grammar?t._l(t.data.save,(function(t,s){return e("input",{key:"hidden-grammar-"+s,attrs:{type:"hidden",name:s},domProps:{value:t.val}})})):[t._l(t.data.save,(function(s,a){return t._l(s,(function(i,o){return e("input",{key:`hidden-grammar-${a}-${o}`,attrs:{type:"hidden",name:t.data.short_name[a][o]},domProps:{value:s[o]}})}))}))]],2),e("div",{staticClass:"grey darken-2 h-100 py-1",staticStyle:{width:"inherit",position:"absolute",top:"0px",left:"0px","z-index":"4",display:"none"},attrs:{id:"tmploading"}},[e("div",{staticClass:"mgauto pos-rel w-100 h-100"},[e("div",{staticClass:"pos-abs translate-a",staticStyle:{width:"210mm",height:"297mm",margin:"0px auto",background:"white"}})])]),e(a["a"],{staticClass:"pos-abs printnone",staticStyle:{bottom:"10px",left:"10px","z-index":"3"},attrs:{fab:"",small:"",disabled:t.data.nowpage<=1,color:"success"},on:{click:function(e){return t.$emit("movePage","left")}}},[e(l["a"],[t._v("mdi-chevron-left")])],1),e(a["a"],{staticClass:"pos-abs printnone",staticStyle:{bottom:"10px",left:"60px","z-index":"3"},attrs:{fab:"",small:"",disabled:!(t.data.maxpage>1&&t.data.nowpagethis.data.normal_page_num?" (답안지)":"")},tableSearch(){let t={grade:this.select_grade[this.data.tab_val],keyword:this.final_keyword};return JSON.stringify(t)},grammarFree(){return(t,e)=>{let s=!1;return"F"==this.$storage.get("user").product_type&&("course"===this.data.book_type?(1==t.category&&+e.seq>2&&(s=!0),4==t.booktype_m&&3==t.booktype_s&&+e.seq>2&&(s=!0),5===+t.booktype_m&&0===+t.booktype_s&&+e.seq>1&&(s=!0)):"school"===this.data.book_type&&1==t.category&&+e.seq>0&&(s=!0)),s}},isStoryBookFairy(){let t=8;return"book"===this.data.print_mode&&"preview"===this.data.mode&&[2,3].includes(+this.data.print_option_rg)&&(t=12),t}},watch:{"data.book_type"(){this.search="",this.final_keyword="";const t={1:null,2:null,3:null,4:null};this.select_grade={...t},this.select_sort={...t}}},methods:{fullScreen(){if(console.log("fullScreen4"),"book"==this.data.print_mode)this.data.full_screen=!this.data.full_screen,this.$emit("framePostMessage",{key:"full_screen",value:this.data.full_screen});else if("test"==this.data.print_mode){let t=document.getElementsByClassName("printarea"),e=document.getElementById("test_wrapper"),s=t[0];if(this.data.full_screen){e.style.overflowY="unset";for(let[e,s]of Object.entries(t))s.style.width=this.data.last_pa_width,s.getElementsByClassName("scalearea")[0].style.transform="scale("+this.data.last_scale+")"}else{e.style.overflowY="scroll";const a=this.$store.state.user.zoom_status;if(0===a){let e="";for(let[a,i]of Object.entries(t))i.style.width="100%",this.$nextTick(()=>{e=s.getBoundingClientRect().width/793.70078739,i.getElementsByClassName("scalearea")[0].style.transform="scale("+e+")"})}else 1===a&&Object.values(t).forEach(t=>{t.style.width="100%";let e=t.getBoundingClientRect().width/.901/793.70078739;t.getElementsByClassName("scalearea")[0].style.transform=`scale(${e})`})}this.data.full_screen=!this.data.full_screen}},setItemLength:function(){window.timeout1=window.setTimeout(()=>{const t=this.folder_open_status?this.data.folder_book_items[this.data.select_folder_id.toString()]:this.data.book_items;for(let e in t)t[e]&&(this.item_length[e]=t[e].length)},10)},setScroll:function(){console.log("setScroll"),window.cnt=0,this.setscroll_timeout=window.setInterval(()=>{document.getElementById("book-list-dttbl")||window.clearInterval(this.setscroll_timeout),window.scroll_container=document.getElementById("book-list-dttbl").getElementsByClassName("v-data-table__wrapper")[0],void 0!==window.scroll_container&&(window.clearInterval(this.setscroll_timeout),this.setItemLength(),window.scroll_container.onscroll=this.onScroll),window.cnt+=1,window.cnt>400&&(window.clearInterval(this.setscroll_timeout),window.cnt=void 0)},50)},onScroll:function(t){let e=window.scroll_container;if(e.scrollTop+e.clientHeight>=e.scrollHeight-2){if(this.item_length[this.data.tab_val]{this.scroll_loading=!1,window.load_timeout=null},1200)}},async toggleClassRow(t,e){if(e&&"SPAN"==e.target.nodeName)return!1;if(t.tmp_academy_name)return this.openDialog("c4_allbook",!1,"end"),!1;if(-1!==t.id.indexOf("folder")&&""!==t.folder_id)this.setFolderBooks(t);else if(this.expanded.length>0&&this.expanded[0].id==t.id)this.select_row=!1,this.select_id="",this.expanded.pop();else{this.data.select_row=!0,this.data.select_id=t.id;const e=-1!==t.id.indexOf("storybook")&&!t.unit_checking;if(0==t.sub_data.length||e){let s=t.category;"course"==this.data.book_type&&(s=1),this.loading_unit=!0;let a="book"==this.data.print_mode?`${this.$host}/book/${t.id}/unit`:`${this.$host}/book/${t.id}/unit/0/${s}`,i=new Promise((s,i)=>{this.$axios.get(a).then(a=>{if(200==a.status)if(e)for(let e=0,i=a.data.length;e+t.book_id===+o.book_id);-1!==n&&(t.sub_data[n].id=o.id,t.sub_data[n].disable=!1,"F"===this.$store.state.user.product_type&&e>0&&(t.sub_data[n].disable=!0),"test"==this.data.print_mode&&(t.sub_data[n].practical=+o.practical||0)),e==i-1&&(t.unit_checking=!0,s(t))}else{t.sub_data=[];let e=Object.values(a.data);for(let a=0,i=e.length;at==o.id),l={id:o.id,name:o.name,seq:o.seq,check:0!=t.check||-1!=n};if("book"==this.data.print_mode){const e=4==t.booktype_m&&3==t.booktype_s;l.disable=e&&!o.tmp_academy_name,l.hwp=e,l.workbook=e&&this.$basicGrammarBooks.includes(+t.id)}else"test"==this.data.print_mode&&(l.disable=this.grammarFree(t,o),l.rel_id=o.rel_id||null,l.t1=+o.t1||0,l.t2=+o.t2||0,l.b1=+o.b1||0,l.b2=+o.b2||0,l.b3=+o.b3||0,l.b4=+o.b4||0,l.d1=+o.d1||0,l.d2=+o.d2||0);t.sub_data.push(l),a==i-1&&s(t)}}else 204==a.status&&(t.sub_data="유닛을 등록해주세요.",s(t))}).catch(t=>{i(t)})});i.then(e=>{setTimeout(()=>{this.hidden_key+=1,this.expanded.pop(),this.expanded.push(e),-1!==t.id.indexOf("folder")&&(this.data.folder_book_items,this.data.select_folder.sub_data.push(e)),this.$nextTick(()=>{this.$forceUpdate(),this.loading_unit=!1})},150)}).catch(t=>{console.log(t)})}else this.expanded.pop(),this.expanded.push(t)}},getBookList(t,e,s){console.log("getBookList",e,s,this.data.tab_val);const a=[42,43,53,54,64,65,77,78,90,91];"course"===e?s=1:"school"===e&&1===s&&(s=2);let i=new Promise((i,o)=>{this.data.loading_value=!0;const n=4==s?"schedule":this.data.print_mode;let l=`${this.$host}/book/getlist/${s}/${this.$cid}?type=${n}`;this.$axios.get(l).then(o=>{if(200==o.status){if(this.data.book_items[this.data.tab_val]=[],"school"===e&&1===this.data.tab_val&&(this.data.book_items[2]=[]),"course"===e&&1===s){this.data.book_items[4]=[];for(let t=0,e=16;t${l.subtitle}`,seq:+l.unit_names.split("-")[1],check:!1};const e=this.data.book_items[4].findIndex(t=>t.id==="storybook-"+l.level);-1!==e&&(this.data.book_items[4][e].sub_data||(this.data.book_items[4][e].sub_data=[]),this.data.book_items[4][e].sub_data.push(t))}else{null!==l.folder_id&&(l.id=`${l.id}_${l.folder_id}`,l.postdate=+l.folder_id),"school"===e&&1===s&&(s=["NE능률","지학사"].includes(l.publisher)||"YBM"===l.publisher&&a.includes(+l.id)?1:2);let o={id:l.id,bookname:l.bookname,check:!1,publisher:l.publisher,grade:l.grade,sub_data:i,category:s,booktype:+l.booktype,booktype_m:l.booktype_1,booktype_s:l.booktype_2,tmp_academy_name:l.tmp_academy_name||null,folder_id:l.folder_id||null,postdate:l.postdate,unit_names:l.unit_names||""};"book"==t&&(o.mockexam_id=l.mockexam_id||null,o.mock_question_cnt=l.mock_question_cnt||null),this.data.book_items[s].push(o)}}if("course"===e&&n.length>0)for(let t=0,e=n.length;t{o(t)})});i.then(()=>{setTimeout(()=>{this.tabcol+=1,this.datatable_component+=1,this.data.loading_value=!1,this.setScroll()},300)}).catch(t=>{console.log(t),this.setScroll()})},setFolderBooks(t){if(this.data.folder_book_items[t.folder_id.toString()]&&this.data.folder_book_items[t.folder_id.toString()].length>0)return this.data.select_folder_id=t.folder_id.toString(),this.data.select_folder=t,this.folder_open_status=!0,setTimeout(()=>{this.setScroll()},500),!1;this.$axios.get(`${this.$host}/book/${t.folder_id}/getfolderbook/book`).then(e=>{if(200==e.status){this.data.folder_book_items[t.folder_id.toString()]=[];const s=e.data.rows;for(let e=0,a=s.length;e{this.setScroll()},500)})},closeFolder(){this.folder_open_status=!1,this.select_folder_id=null,this.expanded=[],this.items_per_page=y,this.setScroll()},resetOrigin(){this.folder_open_status=!1,this.items_per_page=y,window.scroll_container&&(window.scroll_container.scrollTop=0),this.search="",this.final_keyword="",this.select_grade={1:null,2:null,3:null},this.select_sort={1:null,2:null,3:null}},selectBook(t){0==this.expanded.length||this.expanded.length>0&&this.expanded[0].id!=t.id||"string"==typeof t.sub_data||"object"==typeof t.sub_data&&t.sub_data.length>0&&t.sub_data[0].disable?this.toggleClassRow(t):this.$emit("addSelectAllUnit",t)},selectUnit(t,e){return console.log("selectUnit"),this.grammarFree(t,e)?("school"===this.data.book_type&&1==t.category?this.openAlert("free_except_vip"):this.openAlert("free_except"),!1):!e.disable&&(this.$emit("addSelectUnit",t,e),void(this.data.sel_key+=1))},checkTooltipCookies(){const t=this.$cookies.get("book_tooltip_hidden"),e=this.$cookies.get("test_tooltip_hidden");this.tooltipStatus={book:!t,test:!e}},hideTooltip(t){this.$cookies.set(t+"_tooltip_hidden",!0,{expires:"1y",path:"/"}),this.tooltipStatus[t]=!1},selectTab(t){if(2===t&&this.hideTooltip(this.data.print_mode),this.$store.dispatch("soundEffectPlay","click_button"),this.data.tab_val==t)return!1;this.resetOrigin();let e=document.querySelectorAll(".selected");if(e)for(let s=0,a=e.length;se-t);for(let e=0,s=o.length;et.booknamee.bookname?1:0),a&&(i.sort((t,e)=>t.booknamee.bookname?1:0),t=i.concat(t)),t;case"recent":return t.sort((t,e)=>t.postdatee.postdate?-1:0),a&&(i.sort((t,e)=>e.postdate-t.postdate),t=i.concat(t)),t;case"booktag":return t.forEach(t=>{1===+t.booktype_m&&1===+t.booktype_s||4===+t.booktype_m&&3===+t.booktype_s?t.booktag_order=1:1==t.booktype_s||t.category>=1&&t.category<4&&0===t.booktype_m&&0===t.booktype_s?t.booktag_order=2:2==t.booktype_s?t.booktag_order=4:t.booktag_order=3}),t.sort((t,e)=>t.booktag_ordere.booktag_order?1:t.booknamee.bookname?1:0),a&&(i.sort((t,e)=>t.booknamee.bookname?1:0),t=i.concat(t)),t}},filterTabs(t,e,s){let{grade:a,keyword:i}=JSON.parse(e);if(!a&&!i)return!0;{let t=!!s.bookname&&-1!=s.bookname.toUpperCase().indexOf(i.toUpperCase()),e=!!s.publisher&&-1!=s.publisher.toUpperCase().indexOf(i.toUpperCase()),o=!!s.unit_names&&-1!=s.unit_names.toUpperCase().indexOf(i.toUpperCase()),n=!s.grade||-1!=s.grade.indexOf(a);if(i&&a)return n&&(t||e||o);if(i)return t||e||o;if(a)return n}},workBookDown(t,e,s){if(this.grammarFree(t,e))return this.openAlert("free_except"),!1;let a=t.grade.charAt(0),i=+t.bookname.charAt(t.bookname.length-1),o=+e.seq+1<10?"0"+(+e.seq+1):+e.seq+1,n=`${this.$cdn}/lecture_${s}`;"hwp"==s&&(n+="/"+a),n+=`/${i}_${o}.pdf`,window.open(n,"_blank").focus()},async workBookZipDown(t,e,s){if(t.stopPropagation(),5===+e.category&&31===+e.booktype){const t=e.bookname,s=[`${this.$cdn}/listening_answer/${t}.pdf`,`${this.$cdn}/listening_exam/${t}.pdf`,`${this.$cdn}/listening_script/${t}.pdf`],a=["정답지","시험지","스크립트"],i=new f.a,o=s.map(async(e,s)=>{const o=await fetch(e);if(!o.ok)throw new Error(`Failed to fetch ${e}: ${o.statusText}`);const n=await o.blob();i.file(`${t} (${a[s]}).pdf`,n)});Promise.all(o).then(()=>{i.generateAsync({type:"blob"}).then(e=>{const s=document.createElement("a");s.href=URL.createObjectURL(e),s.download=t+".zip",s.click()})}).catch(t=>{console.error("Error:",t)})}else{let t=e.bookname.replace(/\s/g,"_"),a=`${this.$cdn}/lecture_${s}/${t}.zip`;window.open(a,"_blank").focus()}},examDown(t,e){let s=`${this.$cdn}/listening_${e}/${t.bookname}.pdf`;window.open(s,"_blank").focus()}},beforeDestroy(){window.timeout1&&clearTimeout(window.timeout1),this.setscroll_timeout&&window.clearInterval(this.setscroll_timeout)}},x=v,k=(s("d67c"),s("2877")),w=Object(k["a"])(x,_,p,!1,null,null,null);e["a"]=w.exports},bfc3:function(t,e,s){"use strict";s("db7c")},c3e9:function(t,e,s){"use strict";s("bf7a")},c5f2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAAlCAMAAAANzjeWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkYwNEFBMjhCQzU5QTExRUFCNkVCQzFCQTI0MEJENkNGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkYwNEFBMjhDQzU5QTExRUFCNkVCQzFCQTI0MEJENkNGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RjA0QUEyODlDNTlBMTFFQUI2RUJDMUJBMjQwQkQ2Q0YiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RjA0QUEyOEFDNTlBMTFFQUI2RUJDMUJBMjQwQkQ2Q0YiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5r8sZYAAAA+VBMVEUSIjUiMkIQHzARIDIbKz0rOUoTIzYSITQhMUERITMRIDEUJDcRHzEVJTcXJjkfLkAjMkMmNUYiMUIqOUoSIjQgMEAZKDspOEkTIjMaKjwcLD4jM0MXJjcYKDgcKzwRIDMVJDUeLj4SITIXJzcYJzogMEEsOksnNkcdLT0WJTgkNEQZKTshMUIoN0caKjoqOUkgL0ElNEUrOUkdLT4bKjwYJzgfL0AYKDkhMEElM0UtO0wdLD4bKzwpOUkbKjsgL0AmNkYmNEYVJDYeLT8lNUUdLD8YJzkSIDIXJzkhMEIpOEgUIzQfLj8mNUUTIjQZKToWJjksO0wnNkY88hGpAAABuElEQVR42tyZx3bbMBBFRyQNgIAo9q7em3uJe7cTl8Tl/z8mYHhkyXZ+AHNXXHBzzzyAnBmorBA2G+2Ea8rRbjTDVQ/4eGLjXle+UOW6cvCq1u2N2XepTl2WSDdpAApCzRb/We98kWIbiVY1KagLNfWnc7YqFe5zraWyUqlFfwyWUmFdlgnUh5qlVSHF9rUqBQwE9IWVUt4GR+IkIUYp1Uk0E9DwelBIsbrWwuMEYm8upcaIwldIRRdSqocpfPJQ1XYrEHZRFQpgkjFoojpREss4hIaGq1AgpFQbWfqApHNIeIBMKvKA64CMyAFcF3rB7Ag4NiliuJBgkxJ3LrSxnSnLdqGhI7v9at4tNHVc3ymSulMI/1Bk6YtzqNzj+kmPjtZl67EbBKgKdTYtOt9fiPInUvfx34zi+RpP+PqePy1HZKcETddr+6PF3G8mBMHhFMfOYkLL9mqW+laiv+Xv5MtZOjuJVNciVuoMN/NPW4+DLFVZi1iRPRquO1/2U2xgZ7PaRBD1zMSkbzy4w53t75vEytxxvK2bzFCNzPau/LfN3/9bjxbk25ej2PfX1OJ4LX7PVzX+CjAAbogoo/rPX4QAAAAASUVORK5CYII="},c912:function(t,e,s){},ca1f:function(t,e,s){"use strict";s("dfa3")},ca38:function(t,e,s){t.exports=s.p+"img/mz_report.fe4eba56.png"},cae0:function(t,e,s){"use strict";s("4295")},cb65:function(t,e,s){},ce96:function(t,e,s){},cee5:function(t,e,s){},cef4:function(t,e,s){t.exports=s.p+"img/progress_title.51ef626f.png"},cf4c:function(t,e,s){"use strict";s("9e35")},cfc3:function(t,e,s){},d07d:function(t,e,s){},d0c4:function(t,e,s){"use strict";e["a"]={black:{error:{text:"잘못된 접근입니다."},change_setting_success:{text:"설정이 변경되었습니다."},add_notice_success:{text:"공지사항이 등록되었습니다."},modify_notice_success:{text:"공지사항이 수정되었습니다."},send_report_success:{text:"레포트 메시지가 발송되었습니다."},send_notice_success:{text:"공지사항 메시지가 발송되었습니다."},send_counsel_success:{text:"상담일지 메시지가 발송되었습니다."},send_leaderboard_success:{text:"리더보드 메시지가 발송되었습니다."},send_leveltest_success:{text:"레벨테스트 결과지가 발송되었습니다."},send_charge_info:{text:"납부하실 전용계좌 정보를 발송해드렸습니다."},none_message_cnt:{text:"내공캐쉬를 충전해주세요."},fail_phone:{text:"학부모 번호 조회에 실패하였습니다,"},fail_all_parent_phone:{text:"모든 학생의 학부모 번호가 기입되어야 합니다.
학생 정보를 수정하신 뒤, 설정해주세요."},copy_success:{text:"코드가 복사되었습니다. 소개하실 선생님께 전달해주세요."},set_logo_success:{text:"로고가 설정되었습니다."},set_profile_success:{text:"프로필이 설정되었습니다."},modify_settings_success:{text:"학습 설정이 수정되었습니다."},null_sentence:{text:"출력할 문항이 없습니다."},null_main_sentence:{text:"출력할 주요내용이 없습니다."},free_print_exhausted:{text:"출력 가능한 횟수가 모두 소진되었습니다. (10회)"},max_preview_name:{text:"최대 글자 수가 입력되었습니다."},over_count:{text:"출제 가능 문항보다 선택 문항이 많습니다."},over_count_100:{text:"출력은 1회당 최대 100문항입니다."},over_count_300:{text:"출력은 1회당 최대 300문항입니다."},temporary_null_data:{text:"임시 저장된 글이 없습니다."},temporary_save_success:{text:"임시 저장이 완료되었습니다."},temporary_load_success:{text:"불러오기가 완료되었습니다."},temporary_del_success:{text:"임시 저장 글이 삭제되었습니다."},temporary_load_current:{text:"현재 편집 중인 문서입니다."},fail_download_student_null:{text:"다운로드 가능한 학생 목록이 없습니다."},student_recovery_success:{text:"학생이 재원 처리되었습니다."},student_pause_success:{text:"학생이 휴원 처리되었습니다."},student_quit_success:{text:"학생이 퇴원 처리되었습니다."},student_del_success:{text:"학생이 완전히 삭제되었습니다."},schedule_del_success:{text:"스케쥴 교재가 삭제되었습니다."},coursebook_option_only_unit:{text:"해당 컨텐츠는 단원별 설정만 가능합니다."},fail_ocr_regonition:{text:"문자인식에 실패하였습니다.
사진 변경 후 다시 시도해주세요."},fail_division:{text:"분할에 실패하였습니다."},create_book_success:{text:"교재가 생성되었습니다."},create_questionbank_success:{text:"문제은행이 생성되었습니다."},payment_instruction:{text:"표기된 가상계좌로 사용료 납부 시,
프로그램 사용이 가능합니다."},payment_instruction_nac:{text:"표기된 전용계좌로 사용료 납부 시,
프로그램 사용이 가능합니다."},unable_to_change_info:{text:"등록된 정보는 변경 불가합니다."},card_tax_info:{text:"사업자 카드의 경우,
카드사를 통해 자동으로 지출증빙됩니다."},vac_pc_info:{text:"지출증빙의 경우
PC로 조회 바랍니다."},except_fairy_print:{text:"스토리북 동화는
다른 컨텐츠와 함께 출력할 수 없습니다."},except_fairy_question_print:{text:"스토리북 동화 문제는
1 ~ 10레벨만 출력 가능합니다."},except_grammar:{text:"영문법 문제은행은
다른 컨텐츠와 함께 출력할 수 없습니다."},except_storybook:{text:"스토리북은
다른 컨텐츠와 함께 출력할 수 없습니다."},except_popup:{text:"단어 주관식 출제에서만 가능합니다.
이 기능을 사용하시려면, 출제 범위를 수정해주세요."},free_except:{text:"정식 가입 후, 출력 가능합니다."},free_except_vip:{text:"멤버십 교과서는 정식가입 후 이용 가능합니다."},add_word_max:{text:"더 이상 추출할 단어가 없습니다."},select_disabled:{text:"내역에서 항목 체크 후, 다시 선택해주세요."},setup_success:{text:"내공스터디에 오신 걸 환영합니다!"},null_error:{text:"출력할 문제가 없습니다."},fail_validate_phone:{text:"유효한 핸드폰 번호를 입력해주세요."},fail_find_record_id:{text:"담당자에게 문의하세요.
ID 조회 실패."},format_fail:{text:"분할에 실패하였습니다."},add_teacher_success:{text:"선생님이 신규 등록되었습니다."},modify_teacher_success:{text:"선생님 정보가 수정되었습니다."}}}},d377:function(t,e,s){"use strict";s("b580")},d3f7:function(t,e,s){t.exports=s.p+"img/tiny_certi_01_1.940f1e56.png"},d508:function(t,e,s){"use strict";s("268a")},d5c9:function(t,e,s){"use strict";s("e096")},d62b:function(t,e,s){t.exports=s.p+"img/test_print_bg_2.3c98f1c8.png"},d67c:function(t,e,s){"use strict";s("db07")},d697:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return i})),s.d(e,"a",(function(){return o}));const a=[{title:"1️⃣ 관리자페이지 학생등록 방법",content:"무료체험 신청 후, 관리자페이지에 들어오셨다면 학생등록부터 시작하시기 바랍니다...",footer:"조회수 6.5만회 · 1개월 전",image:"free_manual_1.jpg",link:"Lyp20X7n8t4"},{title:"2️⃣ 수준별 스케쥴 교재 생성 방법",content:"영어 교과서, 모의고사, 수능 등 학생 수준에 맞게 스케쥴 교재를 생성하고 관리해보세요...",footer:"조회수 5.7만회 · 1개월 전",image:"free_manual_2.jpg",link:"4zLMGz5bUdk"},{title:"3️⃣ 교재 워크시트, 문제은행 출력 방법",content:"온라인 수업에 활용할 워크시트를 출력하거나, 내신대비 문제은행을 직접 출력해보세요...",footer:"조회수 11만회 · 3주 전",image:"free_manual_3.jpg",link:"CfxRndhtxrs"},{title:"4️⃣ AI 인공지능, 성적분석 활용 방법",content:"온라인 수업 이후, 피드백으로 활용하거나, 학부모님께 성적 레프트를 자동 발송해보세요...",footer:"조회수 4.5만회 · 3주 전",image:"free_manual_4.jpg",link:"x02yXl9nsK0"},{title:"5️⃣ 손쉬운 교재 만들기 방법",content:"학원 수업에 활용할 개인 자료를 업로드하여, 온라인 / 오프라인 학습 진행해보세요...",footer:"조회수 10.7만회 · 2개월 전",image:"free_manual_5.jpg",link:"elqygTGoVIg"},{title:"6️⃣ 온라인 수업 시작, 학생앱 활용 방법",content:"어휘, 본문, 변형문제, 문법영상 강의를 온라인 수업으로 즉시 활용해보세요...",footer:"조회수 6.2만회 · 3주 전",image:"free_manual_6.jpg",link:"YNlLZlyPTEI"},{title:"7️⃣ 스피킹 활용시, 마이크 설정 방법",content:"어휘, 문장 스피킹 활용 오류 시, 마이크 설정 방법을 참고해보세요...",footer:"조회수 4.1만회 · 2주 전",image:"free_manual_7.jpg",link:"GVw7oHs-0PY"},{title:"8️⃣ 자주 묻는, 질의 응답 안내",content:"자주 묻는 질문 6가지, 질의 응답을 통해 궁금증을 해소하세요...",footer:"조회수 8.7만회 · 2주 전",image:"free_manual_8.jpg",link:"VkveON1Zkc0"}],i=[null,"Wow! It's an ant.,Look! It's a bee.,An ant is on the bee.,This is a cat.,A bat is in the car.,Oh! It's a big dog.,Wow! A donkey and an ant.,My name is Emily.,I like eggs and apples.,I have a frog.,I have a fan and a doll.,Shh! They are girls.,Gardeners like cows.,I like that horse.,The hippo likes the elephant.,Is it ink?,They are an iguana and a donkey.,Do you like jam?,I want a cup and a jug.,I don't have a kite.,A kangaroo is next to a dog.,Gee, look at the lion!,I don't like the lion, but I like the cat.,Do you have a map?,I need a mop and a box.,This is my favorite number.",'Do you need a nail or an ax?,How do you spell "octopus"?,I want an octopus, but she wants a frog.,The pen looks expensive.,A pencil is under the bed.,Amazing! She is the queen.,I know the queen and the gardener.,I see a big rabbit.,Is it a rope or a net?,Where is the spoon?,The sock is on the bed.,How much is the toy?,There is a ticket on the safe.,Is it an umbrella?,Is the umbrella in the box?,I will buy a violin.,Which do you like better, the vest or the coat?,Is that a wolf?,Is there a bee on the window?,Can you spell "fox"?,I dislike the fox and the lady.,Oops, I lost my yo-yo.,These are a yo-yo and a doll.,Did you see the zoo yesterday?,I\'ll find the zoo and the lion.,Give me the ax and the yo-yo.',"Look at the man.,What is this?,What do you want?,Can you sit down?,I want a pen.,What are you doing?,Where is the pot?,What do you have?,Is this your rug?,Whose tape is this?,Do you want a vase?,I love to see the bike.,Let's run to the pine.,May I look at the rose?,Look! These are cones.,Do you like the cube?,Tell me, what do you see?,What are you thinking about?,Do you want to see the rain?,Are you all right?,What's the matter?,It's a bee, isn't it?,Will you choose a pea?,I want to see the tie.,I can see a pie and a cake.,Why do you want to see the star?",'This is my barn, and that is your hut.,What do you think about the bird?,Can you find the letter?,Give me the glove.,I\'m drawing a plum.,How much is the crab?,I like the frog and the plum.,I want to tough the sky.,The swan is white.,My cherry is big.,Which do you prefer the fish or the swan?,What\'s wrong?,Is this a wheel?,Come on. Let me see.,What do you need?,Don\'t look at the moon!,Let\'s not talk about the zoo.,What is "coin" in Chinese?,I can spell "joy" and "cub".,What does your brother like?,What a big cow it is!,I hate sausages.,What will you do at the market?,What does he do?,He fixes cars, but he doesn\'t fix boats.,I saw a fan and boxes.',"Hello, my name is Thomas.,Hello. What is your name?,Hi, everyone!,Look! What is this?,Jenny, sit down.,Happy birthday, Minsu!,What is this?,Look! They're oranges.,What's that?,Happy birthday!,Look! Pigs!,I can sing.,Look at the box!,Welcome!,What time is it?,This is my friend, Jane.,Amy, I don't have a ruler.,Help!,Sam! How's the weather outside?,Don't run, Jimmy!,Who is he?,How's the weather?,What a nice pen!,Hey, Tim.,Jimmy, are you okay?,Look! Cats!","Hi, Amy!,Tina, this Friday is my birthday.,Let's watch TV.,Happy birthday, Tom!,Let's play a card game.,Look! It's snowing.,Hey, John.,This is so funny.,Let me introduce my family to you.,Hi, Jay.,Hi, Tim.,Hello, Mrs. White.,Welcome to my house, Jane.,How are you, Jane?,Let's play this new game.,I like this salt.,Hi, Andrew.,Let's go to Coex.,Can I help you?,What's your favorite subject?,Mom, I'm home.,I'm a man.,Hi, Andy!,Let me introduce my friends to you.,I'm a man.,Hi, Andy.","Good morning, Sam.,Hello, Tom.,Good morning, Mr. White.,Let's play tennis, Minji.,Can I help you?,James, what is this?,Hey, Laura.,Hi, Jenny.,Let's play \"Touch your Head!\",Hello, may I speak to Jeremy, please?,Wake up, Sally!,Let's go hiking, Jay.,Jenny, where are you?,Sam, did you have a nice weekend?,Welcome to my house, Grace.,David, did you see a little girl?,Jane, this is my cousin Sarah.,Sandra, let's go to the cafeteria.,Can I help you?,Hey, Audrey, take a seat.,Look at my timetable, James.,Tommy, how was your vacation?,What are you doing, Jimmy?,What do you want for Christmas, Richard?,Hi, Sandra.,Hi, Joe.","Hey, John.,Watch your step, Tim!,Sarah, what's the matter?,What's the matter, Smit?,Excuse me.,Sam, your room is really messy.,Hello, everyone.,You're late, John.,Hi, Amy.,Look at the clock, Jimmy!,Good morning, Jenny.,Tyler, let me introduce my family to you. ,Tim, I have a present for you.,Mom, is it okay if I use your mirror?,Let me introduce my neighbors to you.,Hello. This is Dan.,What do you want to do during summer vacation?,Sarah, guess what Mr. Craig does.,Did you have a nice weekend, Cora?,What are you going to do today?,Hello, can I talk to Cindy?,What did you do during the holiday?,Sandy, can you help me?,Let's have lunch now.,How was your birthday party, Tina?,What are you doing, Jane?","Hey, Chen. Where are you from?,Whose glue is this, Jenny?,Excuse me, sir.,Welcome to my house, Tommy.,What's your favorite subject?,Good morning, everyone.,Hi, Tim.,Let me tell you about my classmates.,Nick, can I look at your photo album?,John, let's go swimming this afternoon.,How's it going, Chad?,Mom, I'm home.,What's the matter?,Hey, Laura.,Hello?,Hey, Charles.,What do you want to do on Saturday, Mark?,Hello, Inho.,Welcome to my house, Andy.,Hello, everyone.,May I help you?,Hey, Chad.,Welcome to my house, Mr. Mitchell.,Hello, I'm Mina.,Johnny, can you tell me about your family?,Hey, boys.","Sam, what do you want to be?,I studied for the exam all day.,Hi, I don't think we've met.,Excuse me.,Excuse me.,Good afternoon, sir. ,Tim, what are you looking at?,Hello, shoppers.,Hello, everyone.,Wake up, Sunny.,Hi, Jane.,Hi, can I help you?,Good morning, everyone.,What's in the van?,Here we are at the theme park.,Jake had a dream last night.,Will, whose textbook is this?,David, I want to know everything about you.,Summer vacation stars tomorrow.,What day is it, Sally?,What would you like to do when you grow up?,Let's play a game.,Jamie, what did you do yesterday?,Excuse me.,Can you see Mr. White and his family?,Hey, James.","Painting Elephants,Michelangelo's Hidden Pictures,Seeing in Color,St. Elmo's Fire,The Boulders of Moeraki,The Lost Room,Who is Banksy?,Lost Rainforest, Lost Medicine,Air from a … Bottle?,All about Hot Air Balloons,Cacao Currency,The Air Other Planets,The Kraken: Monster Squid,The Serious Sport of Eating,Why Trees Lose Their Leaves,Ancient Asia's Alphabet Achievement,Strange Swiss Laws,The Dragon Boat Festival,The Taj Mahal: A Love Story,Two Special Cat Places,Ugly Fruits and Vegetables,Unexpected Food Inventions,Argentina vs. Brazil,Erupting Europe,Janosik,Royal Pride or Royal Pain?","Strike!,The Haka,The Real World Sport of … Quidditch?,Daedalus and Icarus,Fish That Aren't Fish,Loy Krathong: Festival of Lights,Staying Safe from Sharks,The ACHOO Syndrome,The Coelacanth: A Living Fossil,The Little Mermaid of Guam,Bird Beliefs,Cable Cuts,How Can Parrots Talk?,Protecting Your Online Identity,Six Degrees of Separation …of Four?,The Ugly Duckling,Two Roads to Video Game Success,Western vs. Eastern Emoticons,Earworms: Origins and Cures,How Do the Inuit Stay Warm?,Manco Capac and Mama Ocllo,The World of Electronic Music,The World's Oldest Instrument,The Story of the 1812 Overture,The Importance of Clothing Color,Ghana's Kente Cloth","The Tower of the Moon and Stars,Books to Movies: Pros and Cons,Faster Than Light?,The Art of Griots,The Trojan War,The Science of Baking,The Spy Who Loved Writing,Tsunamis: Giant Waves of Death,Mexico's Celebration of Death,The Hottest Thing On Ice,The Legend of Sedna,The Liquid Gold Heist,The Million Dollar Highway,The Titanic: Myths and Facts,The Top 4 Most Terrifying Prehistoric Ocean Predators,The Underwater Waterfall,Bollywood and Its Musicals,From the Sahara to the Amazon,Maldonado and the Puma,Mickey and Minnie: A Love Story,Middle-Earth Tours: There and Back Again,The San Clemente UFO Trail,The Sheepdogs of the Sea,How the Zebra Got Its Stripes,How to Make a CGI Movie,The Monotremes","The Survival of the Fittest,When Children Are Raised by Animals,Why Do Dung Beetles Roll Dung?,Zombie Bugs!,Echolocation: Bats vs. Whales,Mosquito Bites: Prevention and Tratment,No Longer Extinct,The Butterfly Lovers of China,The Caterpillar's Voice,The Five Types of Carnivorous Plant Traps,The Legend of the Coconut Tree,Tulip Mania,Ada Lovelace: The Enchantress of Numbers,Ancient Building Mysteries,Creepy Castles,How Do Architects Design Buildings?,Musical Roads,Speech and the Human Brian,The Lost City of Dwarka,Chinese Food Worldwide,Computer Health Problems and Solutions,How to Make Money as a Gamer,Macs vs. PCs,Roses and Camels,Worldwide Wedding Traditions,Prince Ivan and Koschei the Deathless","How to Win Monopoly,Two Economic Dilemmas,A Call to Change,Alves dos Reis: The World's Greatest Scammer,Doing Economics…with Hamburgers!,How Do TVs Work?,Social Media and Relationships: Pros and Cons,Brer Rabbit and the Tar Baby,Dealing with Dyslexia,Gold Meir,Presidential vs. Parliamentary Systems,Puzzling Presidential Predictors,The Cobra Effect,The Infamous War of the Worlds Broadcast,A Day in the Life of an Astronaut,Africa's Digital Revolution,Black Holes and Wormholes,Creation Myths of the World,Extraterrestrial Life: Probable,How to Break a Bad Habit,Interesting Psychological Experiments,Botoque and the Jaguar,The Face of Litter,The Six Simple Machines,Frog Legs: Food for Thought,The Beautiful Diversity of Africa","The Five Main Types of Amphibians,The Great Rift Valley,The Land of the Dead,The Search for Lost Amphibians,Two Great African Rulers,Having Fun Around the World,How to Entertain Yourself Without a Screen,Scott vs. Amundsen: The Race to the South Pole,The Antarctic Canary in a Coal Mine,The Life Cycle of the Emperor Penguin,The World's Coolest Races,Toad, Slug, Snake,Alligator and Crocodile Wrestling,The Colosseum and Its Bloody Games,The Pros and Cons of Video Games,The Wars Between the Birds and the Fish,Vegemite: The Taste of Australia,What Is a Kiwi?,Yowies and Bunyips and Drop Bears. Oh! My!,Ant Colonies and Bee Colonies,Crisis and Collapse: The Death of a Society,Dangerous Snakes Worldwide,The Cold War: A Clash of Societies,Why Do Giant Tortoises Live So Long?,The Legend of the Komodo Dragon,Prometheus and the Gift of Fire"],o=[{startDate:"2024-12-13 23:30:00",endDate:"2024-12-14 07:00:00",endTimeStr:"오전 07시"}]},d823:function(t,e,s){"use strict";s("62df")},d829:function(t,e,s){},d9df:function(t,e,s){"use strict";s("5313")},db07:function(t,e,s){},db7c:function(t,e,s){},db97:function(t,e,s){},dd69:function(t,e,s){},de7f:function(t,e,s){},dfa3:function(t,e,s){},e096:function(t,e,s){},e0d36:function(t,e,s){},e347:function(t,e,s){t.exports=s.p+"img/logo.798666f8.svg"},e5ba:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABEwAAADwCAMAAAAtmAGVAAAAeFBMVEUAAABQ3WVD2llQ3WXa9t+07bud6ae+78VQ3WV644nI8s5s4Xyp67KG5JOS555f3nFQ3WVQ3WXY9t2+78VQ3WVR3mZQ3WVQ3WWd6adQ3WVQ3WVQ3WVQ3WVQ3WVQ3WV+44yl6q+M5ph14oV+442m6rBQ3WVL3GBf3nExU01sAAAAJXRSTlMAv9FACDtZLoCJIJxIeWmsEO8NRSCwz5+GYDBw349Qg09wkMZ1+23KvAAADC9JREFUeNrs3dtu2kAURuEZGSkm0GQc+SCfaCt1q+//hi1NSWiVYAdm8N5hfdcgLKF/aYRBOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOCa7iY4YCGjnzJOPF8tZ8f2tKNCfPNykv/ugGV4meInnq+WM+NhqhD3rw+VCRsHzNJlbX7QZxkx+RQx+SIT7ogJYsryapD/FT7fBWJyjZis4lgyJiut3F+f9Np1KftTo63HjpikjsnGSwx+s1hMnrzWN8t/dc8sXruto2Doa5ky5CUxSRoTL3H4xWKyFbW8e2by2g2dTcqmkFmqjJgQE2JydWZiUjYyn8+ICTGxOEhikl4Y5WOqkpgQE3uDJCbJ7Qr5qCInJsTE3CCJSWKhknPUHTEhJsYGSUzS6gY5T9ESE2Jia5DEJKlWzjcSE2JiapDEJKVGLuEDMSEmhgZJTI7oaolIHYgJMbEzSGLySltL9jUhJsTEzCCJyQt9LdnXhJgQEyuDJCYHGluyrwkxISZGBklMEhkljoqYEBMjgyQmL9TcE/7XSEyIiY1BEpMkOomnJSbExMQgiUkKYZB4io6YEBMLgyQmKVQSU01MiImFQRKTBHqJayQmxMTAIIlJfGUhkWWpY9LmCyEmxEQHpTHxEttw+Usq/TMrYkJMdNAZk53ElxMTYqJ+kMRkT+2dnIOiJCbERPsgiUlsuaTQEBNion2QxCSyUEgSJTEhJsoHSUycM3AwEWmICTFRPkhi4kwcTERKYkJMdA+SmDgTBxORhpgQE92DJCZGDiYiZcKYZKIWMTEzSGLym94v0h8biQkxUT1IYhLVIHNVfRacy9pK5iqIyeUeHufxxOS2YqLvY4Bsbhfy4A5CXsg8LTG5mkdiskxMqvUytk6bRmapgjtW1jKLJybvu5mY3HutP/H26wgxWTv8EWSW/NwIlcTkXTcTE+dWb9rKtB9P037KpM3qbY6YxNPKHO3ZR5qemPxi725y24aBAAqTUJoqSVvLqGxX/tGmGPT+N+ymQGOAzDAmE41H7x3AO362xCGdbUWYpHsWvZ9B78/tCx5MGra7fV4kSkF7MMkGJmDiqaEIhJqzxiOY5AITMPHUJHrbsWY5n8AkF5iAiad2otdX7QTtwSQXmICJp7aidh7qJvEHMMkEJmDiqE70psozghOYZAITMHHURdS2tYcED2CSCUzAxFF7Uetrry84g0kmMAETPw3Vdy+OojeCSTowARM/zaIW67eDJjBJByY+MIlLtAnG6gskqB9UuYBJOjDxgckixa/BVlHUhvonpT2YpAMTMLk9a5hsdQhajL2BSSYwARMvmBxFrW9x62MHJunABEy8YDIXOlC7n3NaCJNDt1ChLDABEzeY9KLW5A7Zw0KY9GFVgQmYLFP5cq5/aRLBJBmYgIkbTM5NluNJ1MAkGZiAiRtMRG1uc1hwBJNUYAImXjApUODYxqQOTFKBCZh4wWQWtUZPSycwSQUmYOIFk75yNZer0INJKjABEy+YHERr1wqllc2ZdMdQEpiAiRdMYqOv9pNVTN7Zvf8LLJiAyWKdRWtq9SIXTJKBCZg4waRsF0bvCCZgAiZ6jjEZRG1spdIRTFKBCZj4wKQTtXY/ccAk0TKYbOLrwARMPgWTbbM3uTOYJFoEk29RXgcmYNKgSbRiu20hMEm1CCYCJmDyL3MzayHswARMwERt1ZgcSj8JTMAETNQcY3LRCWiGSQST2/sRCwMTMHlX9gZgweSDMYlSGJiASWlmMZnBBEzARG3VmMyhrA5MwARM1FaNSdcMEwETMAETv5hsweR/YAImYLL8OT8wARMwKQlMChrBBEzewOTLY6bvovf7l57obR5z3ScmMT4EQ7XDJIAJmOQxeY5iuPhUjcnLw+dnipISAUYwAZMGmIjpXqoxeQqrT9QCmIAJmICJMUxGMAETm4HJvWHSgQmY2AxMwARMwARMrAQmV4EJmIDJWjH54PUZzAQmV4GJwcAETMAETMAETMAETOwEJmACJmByf5iMYAImNgOTe8MkgAmY2Kwek83jUpk5OSxqA5hYCEyusodJeaZHENZ8ahhMwGT1mPxl745204ahAAzbygqhjDZBkIiEwDbpvP8rTrBVo1qr45ITYTv/f1/Um3xyTuI4ls3DqX/PBEzAZO6YSH6YFGDyLjABk08Ck5gwKUxqRK0waQcmYHJTrpik+XV6SasSTMDkNjCJ6NwcSSswAZN3zRaTEkzABExiLj9MSjBJB5OlBxMwsa4Fkw/LHBO3fLppDSZgomRDQGv2SwOYTIeJP2+CenL/twETMFGyXE/o7UWrBJMJMXGBgQmYTFRvhokHEzABk6AyxaQQraMZJicwAZNIAxMTTNTs3qUFEzCJNDAxqBK1CkzABEwiLhZMzDbndKLmwARMIg1MLKqDRh16BZiACZiElSsmVq/A9qLVgAmYxBqYWLQXrdbqhRUwmTEmWy8R51dgEtFba160BjCZMSZuuRjRWvR+LkbkwMSgg9Gz4aNolWAyZ0xGtZn6kgITiwpR2xk9FQITMAGTS7liUonaycgkMAETMLmUKyauNrkWelFzYAImYHIpW0xsvg/filYDJmACJteyxWQQrdpk/tqCCZiAybVsMTmIWmdxAlcJJmACJteyxaQTtd5CpAJMwARMrmWLiRO1vcHIRCowARMwuZYvJj4AgvGPhI4OTMAETP6W5cHlQRNYOYy/VWrBBEySxWQZ8c4iv3fxdBp/nzOEzV0iO2s4oHTOGgaTKTFx2+d4cxG1k9H3ObWodfdjQmAiSU0OZtxR1Pqxz3JqByZgAibZN4jacewIdw8mYAIm+XeScSPYIuTvwQRMwCT/Khm3NPGitwMTMAGTGeRHLU0K0WscmIAJmMygXvTqyn1SI3rDVJgUepXLITABkyTaidw/Qi0loG4qTESvcDkEJmCSRo0E1N89vZWjA5P4MHl6ARMyrxe5c2zS1RLQACaxYbI8e+9XYELW7SSow52WSAcmMWHyvFj76++BCdm3v2/HWh9mSePAJBJMtk8vr38gAROapoOE1dxemYWXsHoweTwm35Y/Nm+OgAlNWC2BHcvCXep6L6FVYPIwTLbPy++Lzdq/MZImJmfRi2r37Kwr5Ss18pVaBybTY3Le/Ou8Wv1ar1+9vzXkQZisvEWi5y16L9KLT6h9NEuznUxXBybmmIT3aEwi/qzQBy2y+d8fWStT5R2YgEkigUncS5MCTMAklcAk6qWJd2ACJqkEJlEvTQowAZNkApOYlybegQmYJBOY2FTVMkEdmIBJOoGJUaXYNzgwAZN0AhOrGrGursAETBIKTKzqxLqTezwmfRFYlIdv/WbvXnLbBoIoir4CLYvWtymENEgrihOg97/FKEACBDCgb4uuou9ZwZvUHXDAJiZnEBOfMVGdy2rlICbX8fYsKDE5h5j4jIm6XFKTiAkxyZEQk3KGJhdUiZgQkxwJMSmoL3pLxISYRD7IyNs9+J5LaUVMiEnog4y83YU2l9ElYkJMYh9k5O0upK7Ux1diQkxiH2Tk7T4UqUkziJgQk+AHGXm7E6kr0RJiQkyiH2Tk7V6k7v6WEBNiEv4gI293I1m+R/dNxISYxD/IyNsdec23syRiQkwmcJCRt3vSN3f8dYCYEJMpHGTk7a4MXb5FcxAxISbTOMjI252p8/XaJGISJCZmz8SEmIxksHydfSURkxAxMVvOJGJCTEZT7fPlmjeJmESIidnLShIxISaj6i1fZt8nERP/MTFbPi8kERNiMr7htclntQdJxMR3TMy269lOR8SEmHyWw+metH2SiInfmJjZcv0+f9IfxISYfLLhrd3njxqrKx0RkwfHZGtX9+No+2u9eZ8t/lWEmBATN6pDXbf2V133VdIRMRkhJppfanG02+30P2JCTKaPmDjw0Ji0ORBbTWb7F0RMHHhoTDQLZD6h7V8PMXGgbEyASxGTycXkp+WTbEFM4B8x8WBz2krEBP4Rk1iICYAiNkZMAJTw4+W0JwEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMBUGYBJ0GyeP6wPwgpgAICYA/CAmAIgJAD+ICYDf7dQBDQAgDAOwBxGXgH+JuODL04qoTIAcMgFkAuSQCSATIIdMAJkAOWQCLMmkL7BA17QDrFAAAAAAAAAAAPDJAxP88Q0PWoY9AAAAAElFTkSuQmCC"},e7ca:function(t,e,s){t.exports=s.p+"img/z_report.32d47a83.png"},e7d7:function(t,e,s){},e881:function(t,e,s){"use strict";var a=s("b0af"),i=s("99d9"),o=s("169a"),n=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"video-dialog"}},[e(o["a"],{attrs:{width:"50rem"},on:{"click:outside":t.clickOutside},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(a["a"],[e(i["b"],{staticClass:"pa-0",staticStyle:{height:"28.125rem"}},[e("iframe",{attrs:{width:"100%",height:"100%",src:"https://www.youtube.com/embed/"+t.src,title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:""}})])],1)],1)],1)},l=[],r={name:"Video-Dialog",props:["videoDialog","src"],data(){return{dialog:!1}},created(){},watch:{videoDialog(t){t?setTimeout(()=>{this.dialog=!0},300):(this.src=null,this.dialog=!1)}},methods:{clickOutside(){this.$emit("click:outside",!1)}}},c=r,d=s("2877"),h=Object(d["a"])(c,n,l,!1,null,null,null);e["a"]=h.exports},e97c:function(t,e,s){},ea43:function(t,e,s){"use strict";s.d(e,"b",(function(){return n})),s.d(e,"e",(function(){return l})),s.d(e,"d",(function(){return r})),s.d(e,"c",(function(){return c})),s.d(e,"a",(function(){return d})),s.d(e,"f",(function(){return h}));s("d697");var a=s("5a0c"),i=s.n(a);s("f20b");i.a.locale("ko");const o=s("d758");i.a.extend(o);const n=t=>{const e=e=>{let s="";const a=+t.category,i=+t.booktype_m,o=+t.booktype_s,n=+"".concat(i,o),l=+t.schedule_type;return["S","VM"].includes(e)?(s="학습",1===a&&0===i?s="문장":0===i&&0===l&&([0,2].includes(a)||[4,100].includes(a)&&t.words_cnt>0)?s="본문":3===a&&0===l||1===a&&31===n?s="지문":1===l&&1===+t.type_v&&(s=3===a?"지문":"본문")):["T","VA"].includes(e)&&(s="시험",(0===i&&(1===a||0===l&&([0,2,3].includes(a)||[4,100].includes(a)&&t.words_cnt>0))||1===l&&1===+t.type_v||[1,3].includes(a)&&31===n)&&(s="심화")),s},s={S:[e(t.type),"success"],T:[e(t.type),"info2"],V:["어휘","warning"],M:3===+t.category?["지문","success"]:["본문","success"],A:["심화","info2"],VM:[e(t.type),"success"],VA:[e(t.type),"info2"],X:3===+t.category?["평가","success"]:["듣기","info2"],GT:["이론","warning"],GB:["기본","success"],GD:["심화","info2"],SV:["동화","warning"],SM:["기본","success"],SA:["실전","info2"]};return{text:s[t.type][0],color:s[t.type][1]}},l=t=>{let e=" - ";const s=t.type,a=+t.schedule_type,i=+t.category,o=+t.booktype_m,n=+t.booktype_s,l=+t.type_v,c=t.unit_seq&&"number"==typeof+t.unit_seq?+t.unit_seq:+t.unit;return"X"===s?t.mock_infos||t.mockexam_id?e=20===+t.question_cnt?"듣기평가":"모의평가":t.unit&&4!==+i||(e=t.unit_name?t.unit_name:3!==+i&&1!==+i||3!==o||1!==n?3===+i?"모의평가":" - ":"듣기평가"):0===a?[1,3,4,100].includes(i)?(e=t.unit_name||" - ",5===o&&0===n&&(e=r(t.unit_name,t.schedule_name||t.bookname))):[0,2].includes(i)&&t.unit_name.match(/\./gi)&&(e=t.unit_name.split(".")[0]):1===a&&(1===l?(e=t.unit_name||" - ",[0,2].includes(i)&&(e=t.unit_name.split(".")[0]+" - "+t.unit_name.split(" - ")[t.unit_name.split(" - ").length-1])):e="Unit "+String(c+1).padStart(2,"0")),e},r=(t,e)=>t&&e&&t.match(/\-/)?`${t.split("-")[1].padStart(2,"0")}. ${e}`:"",c=t=>{const e=t.charCodeAt(t.length-1),s=(e-44032)%28;return 0!==s},d=(t,e=null)=>{let s=sessionStorage.getItem("list_num");s=null===s?{}:JSON.parse(s);let a=e?`${t}/${e}`:t;return a in s?Number(s[a]):(s[a]=10,sessionStorage.setItem("list_num",JSON.stringify(s)),s[a])},h=(t,e=null,s=10)=>{let a=sessionStorage.getItem("list_num");a&&(a=JSON.parse(a));let i=e?`${t}/${e}`:t;a[i]!==s&&(a[i]=s,sessionStorage.setItem("list_num",JSON.stringify(a)))}},ed00:function(t,e,s){"use strict";var a=s("8336"),i=s("62ad"),o=s("132d"),n=s("0fd9"),l=function(){var t=this,e=t._self._c;return e("div",["lesson-bookmaking"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto mt-2"},[e(i["a"],{staticClass:"pos-rel caution-col",class:[t.typeObj[t.type],"format"==t.typeObj[t.type]||"file"==t.typeObj[t.type]&&1===t.data.newstep.file?"mb-0":"mb-3"]},[e("div",{staticClass:"caution-title-section",class:t.toggle_status[t.typeObj[t.type]]?"mb-0":"mb-2"},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title",domProps:{innerHTML:t._s(t.setTitle)}}),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type,t.route_name)}}},[t._v("\n "+t._s(t.toggle_status[t.typeObj[t.type]]?"mdi-chevron-down":"mdi-chevron-up")+"\n ")])],1),"서식 생성"==t.type?[e("ul",{class:t.toggle_status[t.typeObj[t.type]]?"d-none":"d-block"},[e("li",[t._v("\n 보유하신 워크시트\n "),e("span",{staticClass:"blue"},[t._v("(엑셀, 워드, 한글)에 관계 없이")]),t._v("\n 손쉽게 업로드 할 수 있습니다.\n ")]),e("li",[e("span",{staticClass:"blue"},[t._v("본문 텍스트로만 촬영")]),t._v("된 사진을\n 업로드하시면 "),e("span",{staticClass:"blue"},[t._v("문자인식(OCR)")]),t._v(" 됩니다.\n ")]),e("li",[t._v("\n 따라서,\n "),e("span",{staticClass:"blue"},[t._v("영어본문 텍스트 → 한글해석 텍스트 순")]),t._v("으로\n 업로드해주세요.\n ")]),e("li",[t._v("\n 입력된 문장에 맞게,\n "),e("span",{staticClass:"red"},[t._v("빈출 단어도 자동 생성되어 단어/문장학습이 가능")]),t._v("합니다.\n ")]),e("li",[t._v("\n 단, 자동 입력된 텍스트는 문자인식 제한 or 문장부호로 인해\n "),e("span",{staticClass:"blue"},[t._v("일부 편집이 필요할 수")]),t._v("\n 있습니다.\n ")]),e("li",[t._v("\n 영어/해석의 입력된 데이터가 상이하지 않도록\n "),e("span",{staticClass:"blue"},[t._v("빈칸 없이 기입")]),t._v("해주세요.\n ")]),e("li",[t._v("\n 문장분할에 이상이 있다면,\n "),e("span",{staticClass:"blue"},[t._v("원본 워크시트를\n "),e("span",{staticClass:"blue link",on:{click:t.openKakao}},[t._v("카카오톡 채널")]),t._v("로 송부")]),t._v("해주시면, 확인해드리겠습니다.\n ")])])]:"파일 생성"==t.type?[e("ul",{class:t.toggle_status[t.typeObj[t.type]]?"d-none":"d-block"},[e("li",[t._v("\n 한글 or 엑셀\n "),e("span",{staticClass:"blue"},[t._v("양식을 다운로드")]),t._v("\n 받으세요.\n ")]),e("li",[t._v("\n 각 양식에 맞게\n "),e("span",{staticClass:"blue"},[t._v("영어/해석 교재 내용을 입력")]),t._v("해주세요.\n ")]),e("li",[t._v("\n 한글파일인 경우,\n "),e("span",{staticClass:"blue"},[t._v("교재 내용을 서식창에 붙여넣기")]),t._v("\n 해주세요.\n ")]),e("li",[t._v("\n 엑셀파일인 경우,\n "),e("span",{staticClass:"blue"},[t._v("엑셀 양식 원본파일을 업로드")]),t._v("\n 해주세요.\n ")]),e("li",[e("span",{staticClass:"blue"},[t._v("단어/문장 데이터를 각각")]),t._v(" 업로드 하는\n 기능입니다.\n ")]),e("li",[t._v("\n 영어/해석의 입력된 데이터가 상이하지 않도록\n "),e("span",{staticClass:"blue"},[t._v("빈칸 없이 기입")]),t._v("해주세요.\n ")]),e("li",[t._v("\n 업로드하신 파일에 이상이 있다면,\n "),e("span",{staticClass:"blue"},[t._v("원본 양식을\n "),e("span",{staticClass:"blue link",on:{click:t.openKakao}},[t._v("카카오톡 채널")]),t._v("로 송부")]),t._v("해주시면, 확인해드리겠습니다.\n ")])])]:"직접 생성"==t.type?[e("ul",{class:t.toggle_status[t.typeObj[t.type]]?"d-none":"d-block"},[e("li",[t._v("\n 데이터를\n "),e("span",{staticClass:"blue"},[t._v("직접 입력하는 경우")]),t._v("에 이용해주세요.\n ")]),e("li",[t._v("\n 직접 생성의 경우,\n "),e("span",{staticClass:"blue"},[t._v("중간저장 기능을 활용")]),t._v("하시면 더욱\n 좋습니다.\n ")]),e("li",[t._v("\n 영어/해석의 입력된 데이터가 상이하지 않도록\n "),e("span",{staticClass:"blue"},[t._v("빈칸 없이 기입")]),t._v("해주세요.\n ")])])]:t._e()],2)],1):"startpage-paymentview"==t.route_name?[1===+t.type?e(n["a"],{key:`caution-1-${t.type}-${t.componentKey}`,staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v("\n 사용량 산정 기준\n "),e("span",{staticClass:"fw-300 fs-90"},[t._v("(매월 1일~말일 기준)")])]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[e("span",{staticClass:"blue"},[t._v("3일 이상 학습 로그인 이력")]),t._v("이 있거나,\n ")]),e("li",[t._v("\n 유형별 학습(어휘, 본문, 심화 등) 관계 없이,\n "),e("span",{staticClass:"blue"},[t._v('학습량이 "총 10회 이상"인 경우 당월 학습량')]),t._v("으로 체크됩니다.\n ")]),e("li",[t._v("\n 재원생에 등록된 학생이 있더라도 상위 학습처리 기준이 넘지 않으면\n 초과분은 발생하지 않습니다.\n ")])])])],1):2===+t.type?e(n["a"],{key:`caution-2-${t.type}-${t.componentKey}`,staticClass:"w-100 mgauto"},[e("input",{attrs:{type:"hidden"},domProps:{value:"ng_payment_text_"+t.data.text_key}}),"CARD"==t.user.paymentkind?[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 내공스터디 카드 자동결제 안내 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",{staticClass:"none-dot ml-2"},[t._v("\n 카드사 :\n "),e("span",{staticClass:"blue"},[t._v(t._s(t.data.payment.paymentCompany))])]),e("li",{staticClass:"none-dot ml-2"},[t._v("\n 카드번호 :\n "),e("span",{staticClass:"blue"},[t._v(t._s(t.cc_format(t.data.payment.paymentNumber)?t.cc_format(t.data.payment.paymentNumber).replace(/\*/g,"∗"):""))])]),e("li",[t._v("매월 기준일 (1일) 내공스터디 사용료가 자동 결제됩니다.")]),e("li",[t._v("\n 선생님께서 "),e("span",{staticClass:"blue"},[t._v("납부하신 결제내역")]),t._v("을 조회할\n 수 있습니다.\n ")]),e("li",[t._v("결제내역은 최근 청구된 순으로 표기됩니다.")]),e("li",[t._v("\n 지출증빙 정보를 입력하신 경우,\n "),e("span",{staticClass:"blue"},[t._v("영수 계산서 확인")]),t._v("이 가능합니다.\n ")])]),e(a["a"],{staticClass:"red lighten-1 white--text pos-abs",class:t.getUldisplayClass,staticStyle:{bottom:"12px",right:"12px"},attrs:{depressed:""},on:{click:function(e){return t.openDialog("kind_change_card")}}},[t._v("\n 결제정보 변경\n "),e(o["a"],[t._v(" mdi-chevron-right ")])],1)],1)]:!t.user.payment_postdate&&("VAC"==t.user.paymentkind&&(0==t.user.promotion_chk||1==t.user.promotion_chk)||t.user.payment_overcost>0&&1==t.user.promotion_chk)?[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v("\n 내공스터디\n "+t._s(t.user.payment_postdate?"전용 가상계좌":"사용료")+"\n 안내\n ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[t.user.postdate?[e("li",{staticClass:"none-dot ml-2"},[t._v("\n 계좌정보 :\n "),e("span",{staticClass:"blue"},[t._v("기업은행 "+t._s(t.data.payment.account))])]),e("li",{staticClass:"none-dot ml-2"},[t._v("\n 예금주명 :\n "),e("span",{staticClass:"blue"},[t._v(t._s(t.data.payment.accountnm))])])]:[e("li",{staticClass:"none-dot ml-2"},[t._v("결제일자 : 매월 1일")]),e("li",{staticClass:"none-dot ml-2"},[t._v("\n 계좌정보 :\n "),e("span",{staticClass:"red"},[t._v("기업은행 "+t._s(t.data.payment.account))])]),e("li",{staticClass:"none-dot ml-2"},[t._v("\n 예금주명 :\n "),e("span",{staticClass:"red"},[t._v(t._s(t.data.payment.accountnm))])]),e("li",{staticClass:"none-dot ml-2"},[t._v("\n 입금요청 :\n "),e("span",{staticClass:"red"},[t._v(t._s(+t.user.payment_cost.toLocaleString())+"원")])])],e("li",[t._v("\n "+t._s(t.user.payment_postdate?"매월 기준일 (1일) 오전 10시, 고객센터 번호 (1661-4009)로 청구문자가 발송됩니다.":"원활한 서비스 이용을 위해 결제 부탁드립니다. (~"+t.data.t_month+"/7일 까지)")+"\n ")]),e("li",[t._v("\n 선생님께서 "),e("span",{staticClass:"blue"},[t._v("납부하신 결제내역")]),t._v("을 조회할\n 수 있습니다.\n ")]),e("li",[t._v("결제내역은 최근 청구된 순으로 표기됩니다.")]),e("li",[t._v("\n 지출증빙 정보를 입력하신 경우,\n "),e("span",{staticClass:"blue"},[t._v("영수 계산서 확인")]),t._v("이 가능합니다.\n ")])],2),e(a["a"],{staticClass:"info white--text pos-abs",class:t.getUldisplayClass,staticStyle:{bottom:"12px",right:"12px"},attrs:{depressed:""},on:{click:function(e){return t.openDialog("kind_change")}}},[t._v("\n 결제수단 변경\n "),e(o["a"],[t._v(" mdi-chevron-right ")])],1)],1)]:[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 이용료 납부 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 선생님께서 "),e("span",{staticClass:"blue"},[t._v("납부하신 결제내역")]),t._v("을 조회할\n 수 있습니다.\n ")]),e("li",[t._v("결제내역은 최근 청구된 순으로 표기됩니다.")]),e("li",[t._v("\n 지출증빙 정보를 입력하신 경우,\n "),e("span",{staticClass:"blue"},[t._v("영수 계산서 확인")]),t._v("이 가능합니다.\n ")])])])]],2):3===+t.type?e(n["a"],{staticClass:"w-100 mgauto mt-2"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v("\n 세금계산서"),e("span",{staticClass:"fw-400"},[t._v("\n : 매월 1일 일괄 발행 (전월 이용료) /")]),t._v("\n 현금영수증"),e("span",{staticClass:"fw-400"},[t._v(" : 매일 새벽 4시 일괄 발행")])]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 세금계산서 및 현금영수증 정보 중\n "),e("span",{staticClass:"blue"},[t._v("택 1 가능")]),t._v("합니다.\n ")]),e("li",[t._v("\n 사업자등록증 상 명시된 내용을\n "),e("span",{staticClass:"blue"},[t._v("빠짐 없이 기재")]),t._v("해주시기 바랍니다.\n ")]),e("li",[t._v("\n 모든 항목은 필수입력 사항이며,\n "),e("span",{staticClass:"red"},[t._v("등록된 지출증빙 정보는 추후 변경 불가")]),t._v("합니다.\n ")]),e("li",[t._v("\n 기재된 정보는 서비스 이용기간 동안 이메일로 자동 발급됩니다.\n ")]),e("li",[e("span",{staticClass:"blue"},[t._v("현금영수증은")]),t._v(" 정보 기입 후\n "),e("span",{staticClass:"red"},[t._v("5일 이내 결제 건에서만 자동발급")]),t._v("\n 됩니다.\n ")]),e("li",{staticClass:"none-dot pl-5"},[e("span",{staticClass:"gray"},[t._v("\n (이후 월 사용료 결제건은 자동발행되며, 이전 결제건은 재발행\n 불가)\n ")])])])])],1):t._e()]:"analysis-leaderboard"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[1===+t.type?[t._v(" 월간 레포트 ")]:2===+t.type?[t._v(" 누적 레포트 ")]:3===+t.type?[t._v(" 수상 이력 ")]:t._e()],2),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),1===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 리더보드 순위 산정은\n "),e("span",{staticClass:"blue"},[t._v("누적 학습량을 최우선")]),t._v("으로 반영합니다.\n ")]),e("li",[t._v("\n 이후, 완료된 학습의\n "),e("span",{staticClass:"blue"},[t._v("평균성적으로 차등 순위가 배정")]),t._v("됩니다.\n ")]),e("li",[t._v("\n 유형별 학습이 "),e("span",{staticClass:"blue"},[t._v("최소 3회 이상")]),t._v("인 경우부터\n 리더보드에 표기됩니다.\n ")]),e("li",[t._v("조회범위를 선택하여 클래스별 순위를 확인 가능합니다.")]),e("li",[t._v("월간 레포트 목록을 다운받아, 하드에 저장하여 관리해보세요.")]),e("li",[t._v("\n 리더보드 설정을 통해, 학생모드에\n "),e("span",{staticClass:"blue"},[t._v("순위공개/팝업 여부를 설정")]),t._v("할 수 있습니다.\n ")])]):2===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 선생님께서 "),e("span",{staticClass:"blue"},[t._v("가입하신 날로 부터 현재")]),t._v("까지의\n 누적 성적을 확인할 수 있습니다.\n ")]),e("li",[t._v("조회범위를 선택하여 클래스별 순위를 확인 가능합니다.")]),e("li",[t._v("누적 레포트 목록을 다운받아, 하드에 저장하여 관리해보세요.")]),e("li",[t._v("\n 리더보드 설정을 통해, 학생모드에\n "),e("span",{staticClass:"blue"},[t._v("순위공개/팝업 여부를 설정")]),t._v("할 수 있습니다.\n ")])]):3===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 클래스와 관련 없이, 센터 내\n "),e("span",{staticClass:"blue"},[t._v("모든 학생의 수상이력")]),t._v("을 조회할 수 있습니다.\n ")]),e("li",[t._v("수상 이력 목록을 다운받아, 하드에 저장하여 관리해보세요.")]),e("li",[t._v("\n 리더보드 설정을 통해, 학생모드에\n "),e("span",{staticClass:"blue"},[t._v("순위공개/팝업 여부를 설정")]),t._v("할 수 있습니다.\n ")])]):t._e()])],1):"startpage-notice"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v("\n "+t._s(1===+t.type?"공지사항":"업데이트 소식")+"\n ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),1===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 선생님께서 "),e("span",{staticClass:"blue"},[t._v("학생에게 전달하실 내용")]),t._v("을\n 기재해주세요.\n ")]),e("li",[t._v("공지등록을 클릭하여 제목, 내용을 입력해주세요.")]),e("li",[t._v("\n 기재하신 "),e("span",{staticClass:"blue"},[t._v("공지 내용은 학생앱에 표기")]),t._v("됩니다.\n ")])]):2===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("내공스터디에서 선생님께 전달드릴 내용이 표기됩니다.")]),e("li",[e("span",{staticClass:"blue"},[t._v("프로그램 개선 및 컨텐츠 관련 소식")]),t._v("이\n 업데이트 됩니다.\n ")]),e("li",[t._v("항목을 클릭하시면, 자세한 내용을 조회할 수 있습니다.")])]):t._e()])],1):"analysis-studyview"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 실시간 조회 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 선생님 가맹점의\n "),e("span",{staticClass:"blue"},[t._v("당일 학습내역을 표기")]),t._v("해드립니다.\n ")]),e("li",[t._v("학습내역은 교재명, 차시, 학습시간 등 필수 정보로 표기됩니다.")]),e("li",[t._v("\n 학습내역을\n "),e("span",{staticClass:"blue"},[t._v("상세조회 하기 위해서는,\n "),e("span",{staticClass:"blue link",on:{click:function(e){return t.moveToPage("/analysis/reportview")}}},[t._v("레포트 조회")])]),t._v("를 확인해주세요.\n ")]),e("li",[t._v("왼쪽 상단 새로고침을 클릭하여, 데이터를 실시간 조회해보세요.")])])])],1):"startpage-admininfo"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto mt-2"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v("\n "+t._s(1===+t.type?"정보 수정":"로고 설정")+"\n ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),1===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("선생님의 개인 정보를 조회, 수정할 수 있습니다.")]),e("li",[t._v("\n 가입하신 "),e("span",{staticClass:"blue"},[t._v("상품의 이용 기간이 명시")]),t._v("되어\n 있습니다.\n ")]),e("li",[t._v("아이디, 추천인 코드는 고유항목으로 수정 불가합니다.")]),e("li",[e("span",{staticClass:"blue"},[t._v("추천인 코드")]),t._v("를 복사하여,\n "),e("span",{staticClass:"blue"},[t._v("주변 선생님께 공유")]),t._v("해주세요.\n ")]),e("li",[t._v("\n 추천인 코드로 가입 시,\n "),e("span",{staticClass:"blue"},[t._v("소개 혜택으로 무료 기간이 적용")]),t._v("됩니다.\n ")])]):2===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("선생님의 로고를 직접 등록해주세요.")]),e("li",[t._v("\n 등록된 로고는\n "),e("span",{staticClass:"blue"},[t._v("교재, 문제은행, 레포트 출력 시 출력물에 자동 삽입")]),t._v("됩니다.\n ")]),e("li",[t._v("학생모드 중 어휘 퍼즐에도 해당 로고가 삽입됩니다.")])]):t._e()])],1):"user-teacher"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 선생님 관리 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[t._v("가입하신 선생님의 정보는 대표 원장님으로 자동 설정됩니다.")]),e("li",[t._v("선생님 등록을 눌러, 센터 내 다른 선생님을 등록해주세요.")]),e("li",[e("span",{staticClass:"blue"},[t._v("대표 원장, 부원장, 상담실장")]),t._v("님은 센터 내\n "),e("span",{staticClass:"blue"},[t._v("모든 데이터 조회, 학생앱 학습")]),t._v("이\n 가능합니다.\n ")]),e("li",[t._v("선생님은 본인에게 배정된 학생만 조회 가능합니다.")]),e("li",[e("span",{staticClass:"blue"},[t._v("선생님 계정")]),t._v("으로는\n "),e("span",{staticClass:"blue"},[t._v("학생앱에서 학습이 제한")]),t._v("됩니다.\n ")])])])],1):"user-class"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 클래스 관리 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[t._v("클래스 등록을 클릭하여, 센터 내 클래스를 각각 등록해주세요.")]),e("li",[t._v("\n 클래스 "),e("span",{staticClass:"blue"},[t._v("담임은 선생님 1명")]),t._v("으로만 설정할 수\n 있습니다.\n ")]),e("li",[e("span",{staticClass:"blue"},[t._v("대표 원장, 부원장, 상담실장")]),t._v("님은 센터 내\n "),e("span",{staticClass:"blue"},[t._v("모든 데이터 조회, 학생앱 학습")]),t._v("이\n 가능합니다.\n ")]),e("li",[t._v("클래스별 학습 재생속도를 제어할 수 있습니다.")]),e("li",[t._v("\n 학생에게 부여된 교재는 설정하신\n "),e("span",{staticClass:"blue"},[t._v("수업 요일에 맞게 자동 스케쥴링")]),t._v(" 됩니다.\n ")])])])],1):"user-student"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 학생 목록 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[t._v("학생등록 시, * 처리된 부분은 필수입력 사항입니다.")]),e("li",[e("span",{staticClass:"blue"},[t._v("아이디는 중복되지 않게")]),t._v(" 설정해주시기\n 바랍니다. (전국 가맹점 기준)\n ")]),e("li",[t._v("비밀번호는 최소 4자리 이상 설정해주세요.")]),e("li",[t._v("학생 선택 후, 편집을 통해 휴·퇴원 처리할 수 있습니다.")]),e("li",[e("span",{staticClass:"blue"},[t._v("학년은 매년 1월 1일")]),t._v(" 자동상향 처리됩니다.\n ")]),e("li",[t._v("학생 데이터는 퇴원생에서만 완전삭제 가능합니다.")]),e("li",[t._v("등록된 학생정보는 체크 후 편집을 통해 수정 가능합니다.")])])])],1):"user-studentexcel"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto mt-2"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 학생 일괄등록 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[t._v("엑셀 양식 다운로드를 클릭하여 다운로드 받으세요.")]),e("li",[t._v("필수 입력사항 : 이름, 아이디, 비밀번호, 학년, 학부모 연락처")]),e("li",[t._v("\n 클래스 : "),e("span",{staticClass:"blue"},[t._v("클래스 관리에 등록된 클래스명")]),t._v("으로\n 기재 필요.\n ")]),e("li",[t._v("\n 아이디 : "),e("span",{staticClass:"blue"},[t._v("중복되지 않게")]),t._v(" 설정해주시기\n 바랍니다. (전국 가맹점 기준)\n ")]),e("li",[t._v("비밀번호 : 최소 4자리 이상 설정 필요.")]),e("li",[t._v("\n 학년 : 초등학교 3학년, 중학교 1학년 등의 항목으로만 입력 필요."),e("br"),e("span",{staticClass:"pl-2"},[t._v("ex) 중1, 초등6, 1학년 등으로 기재 불가")])])])])],1):"lesson-booklist"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v("\n "+t._s(1===+t.type?"스케쥴 교재 (스케쥴 기준)":"만든 교재")+"\n ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),1===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 스케쥴 설정을 통해 "),e("span",{staticClass:"blue"},[t._v("학생에게 부여된 교재")]),t._v("가\n 표기됩니다.\n ")]),e("li",[t._v("\n 따라서,\n "),e("span",{staticClass:"blue"},[t._v("만든 교재의 경우에도 본 스케쥴 교재목록에")]),t._v("\n 표기될 수 있습니다.\n ")]),e("li",[t._v("폴더를 생성하여, 스케쥴 교재를 분류하여 관리해보세요.")]),e("li",[t._v("항목 선택 후, 스케쥴을 일괄 삭제할 수 있습니다.")]),e("li",[t._v("\n 학생 개인별 스케쥴 삭제는 스케쥴 설정의 교재확인에서 가능합니다.\n ")])]):2===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[t._v("\n 교재 만들기를 통해\n "),e("span",{staticClass:"blue"},[t._v("제작된 교재 or 공유된 교재")]),t._v("가 표기됩니다.\n ")]),e("li",[t._v("\n 서식 생성을 통해 제작된\n "),e("span",{staticClass:"blue"},[t._v("단어, 문장 통합교재는 NEW")]),t._v("로 표기됩니다.\n ")]),e("li",[t._v("폴더를 생성하여, 만든 교재를 분류하여 관리해보세요.")]),e("li",[t._v("항목 선택 후, 교재 데이터를 수정할 수 있습니다.")]),e("li",[t._v("\n 단, "),e("span",{staticClass:"blue"},[t._v("교재 수정")]),t._v("은 원활한 전산처리를 위해\n "),e("span",{staticClass:"blue"},[t._v("유닛/문항추가가 불가")]),t._v("합니다.\n ")])]):t._e()])],1):"lesson-testmanaging"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v(" 문제은행 관리 ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),e("ul",{class:t.getUldisplayClass},[e("li",[e("span",{staticClass:"blue"},[t._v("문제은행 출력 메뉴에서 출제")]),t._v("된 내역을\n 관리합니다.\n ")]),e("li",[t._v("폴더를 생성하여, 문제은행 내역을 분류하여 관리해보세요.")]),e("li",[e("span",{staticClass:"blue"},[t._v("재출력 하거나, 답안지를 따로 출력")]),t._v("할 수\n 있습니다.\n ")]),e("li",[t._v("내역 클릭 시, 문항 수 및 출제유형을 확인할 수 있습니다.")])])])],1):"analysis-reportview"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section",class:"toggle-"+t.toggle_status[""+t.replaceHypen(`${t.route_name}-${t.type}`)]},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[1===+t.type?[t._v(" 일일 레포트 ")]:2===+t.type?[t._v(" 기간 레포트 ")]:3===+t.type?[t._v(" 레벨 테스트 ")]:t._e()],2),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),1===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[e("span",{staticClass:"blue"},[t._v("온라인에서 학습된")]),t._v(" 레포트 내역을\n "),e("span",{staticClass:"blue"},[t._v("일자 별로 조회")]),t._v("할 수 있습니다.\n ")]),e("li",[t._v("내역 클릭 시, 해당 교재의 학습이력을 손쉽게 확인합니다.")]),e("li",[t._v("각 학습의 레포트 조회를 클릭하여, 상세 데이터를 조회해보세요.")]),e("li",[t._v("\n 내역 체크 후, "),e("span",{staticClass:"blue"},[t._v("추가 학습용 오답노트")]),t._v("를\n 출력할 수 있습니다.\n ")])]):2===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[e("span",{staticClass:"blue"},[t._v("온라인에서 학습된")]),t._v(" 레포트 내역을\n "),e("span",{staticClass:"blue"},[t._v("기간 별로 조회")]),t._v("할 수 있습니다.\n ")]),e("li",[t._v("시작일과 종료일을 설정하여 기간 레포트를 조회해보세요.")]),e("li",[t._v("내역 클릭 시, 학생의 기간성적을 손쉽게 확인할 수 있습니다.")]),e("li",[t._v("\n 내역 체크 후, "),e("span",{staticClass:"blue"},[t._v("추가 학습용 오답노트")]),t._v("를\n 출력할 수 있습니다.\n ")])]):3===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[e("span",{staticClass:"blue"},[t._v("온라인에서 학습된")]),t._v(" 레포트 내역을\n "),e("span",{staticClass:"blue"},[t._v("일자 별로 조회")]),t._v("할 수 있습니다.\n ")]),e("li",[t._v("\n 레포트 조회 시, 학생의 레벨테스트 성적을 손쉽게 확인할 수 있습니다.\n ")]),e("li",[t._v("내역 클릭 시, 성적 레포트, 틀린문제를 출력할 수 있습니다.")]),e("li",[t._v("\n 내역 체크 후,\n "),e("span",{staticClass:"blue"},[t._v("레벨테스트지를 출력 또는 메시지 발송")]),t._v("이\n 가능합니다.\n ")])]):t._e()])],1):"analysis-comment"==t.route_name?e(n["a"],{staticClass:"w-100 mgauto"},[e(i["a"],{staticClass:"pos-rel caution-col mb-3rem"},[e("div",{staticClass:"caution-title-section"},[e(o["a"],{staticClass:"caution-icon",attrs:{size:"1.2rem",color:"black"}},[t._v("\n mdi-information\n ")]),e("span",{staticClass:"caution-title"},[t._v("\n "+t._s(1===+t.type?"메시지 내역":"꼭 확인해주세요!")+"\n ")]),e(o["a"],{staticClass:"cursor pos-abs",attrs:{size:"1.5rem",color:"black"},on:{click:function(e){return t.toggleCautions(t.type)}}},[t._v("\n "+t._s(t.getToggleIcon)+"\n ")])],1),1===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[e("span",{staticClass:"blue"},[t._v("발송된 메시지 내역")]),t._v("을 조회할 수 있습니다.\n ")]),e("li",[t._v("\n 코멘트 or 조회 클릭 시, 메시지 발송 내역을 손쉽게 확인 가능합니다.\n ")]),e("li",[t._v("\n 발송 내역에 한해,\n "),e("span",{staticClass:"blue"},[t._v("코멘트를 수정하여 재발송")]),t._v(" 할 수 있습니다.\n ")])]):2===+t.type?e("ul",{class:t.getUldisplayClass},[e("li",[e("span",{staticClass:"blue"},[t._v("공지사항 및 학습 레포트 발송")]),t._v("에 필요한\n 메시지를 충전하는 제도입니다.\n ")]),e("li",[t._v("자세한 내용은 사용약관을 확인해주시기 바랍니다.")]),e("li",[t._v("입금 확인은 약 30분 내로 소요됩니다.")])]):t._e()])],1):t._e()],2)},r=[],c={name:"pre-cautions",components:{},data(){return{route_name:this.$route.name,user:this.$storage.get("user"),toggle_status:{format:!1,file:!1,direct:!1,startpage_notice_1:!1,startpage_notice_2:!1,startpage_studyview_2:!1,startpage_admininfo_1:!1,startpage_admininfo_2:!1,user_teacher_0:!1,user_class_0:!1,user_student_0:!1,user_studentexcel_0:!1,lesson_booklist_1:!1,lesson_booklist_2:!1,lesson_testmanaging_0:!1,analysis_reportview_1:!1,analysis_reportview_2:!1,analysis_leaderboard_1:!1,analysis_leaderboard_2:!1,analysis_leaderboard_3:!1,startpage_paymentview_1:!1,startpage_paymentview_2:!1,startpage_paymentview_3:!1},typeObj:{"서식 생성":"format","파일 생성":"file","직접 생성":"direct"},colkey:0}},props:["type","data","componentKey"],created(){this.toggle_status={format:1===+this.user.making_format,file:1===+this.user.making_file,direct:1===+this.user.making_direct,startpage_notice_1:1===+this.user.startpage_notice_1,startpage_notice_2:1===+this.user.startpage_notice_2,startpage_studyview_2:1===+this.user.startpage_studyview_2,startpage_admininfo_1:1===+this.user.startpage_admininfo_1,startpage_admininfo_2:1===+this.user.startpage_admininfo_2,user_teacher_0:1===+this.user.user_teacher_0,user_class_0:1===+this.user.user_class_0,user_student_0:1===+this.user.user_student_0,user_studentexcel_0:1===+this.user.user_studentexcel_0,lesson_booklist_1:1===+this.user.lesson_booklist_1,lesson_booklist_2:1===+this.user.lesson_booklist_2,lesson_testmanaging_0:1===+this.user.lesson_testmanaging_0,analysis_reportview_1:1===+this.user.analysis_reportview_1,analysis_reportview_2:1===+this.user.analysis_reportview_2,analysis_leaderboard_1:1===+this.user.analysis_leaderboard_1,analysis_leaderboard_2:1===+this.user.analysis_leaderboard_2,analysis_leaderboard_3:1===+this.user.analysis_leaderboard_3,startpage_paymentview_1:1===+this.user.startpage_paymentview_1,startpage_paymentview_2:1===+this.user.startpage_paymentview_2,startpage_paymentview_3:1===+this.user.startpage_paymentview_3,analysis_comment_1:1===+this.user.analysis_comment_1,analysis_comment_2:1===+this.user.analysis_comment_2}},mounted(){},watch:{componentKey(){"startpage-paymentview"==this.route_name&&(this.user=this.$storage.get("user"))}},computed:{getUldisplayClass(){let t=this.type;return this.toggle_status[this.replaceHypen(`${this.route_name}-${t}`)]?"d-none":"d-block"},getToggleIcon(){let t=this.type;return this.toggle_status[""+this.replaceHypen(`${this.route_name}-${t}`)]?"mdi-chevron-down":"mdi-chevron-up"},setTitle(){let t="";return"서식 생성"==this.type?t="서식 생성 주의사항 (강력 추천)":"파일 생성"==this.type?t="파일 생성 주의사항 (단어교재 추천)":"직접 생성"==this.type&&(t="직접 생성 주의사항"),t}},methods:{replaceHypen(t){return t.replace(/\-/g,"_")},openKakao(){window.open("http://pf.kakao.com/_klVXxb/chat","_blank")},moveToPage(t){this.$router.push(t)},toggleCautions(t){let e={uid:+this.user.id};if("lesson-bookmaking"==this.route_name){const s=this.typeObj[t];this.toggle_status[s]=!this.toggle_status[s];const a=document.getElementById("bookmakingvue"),i=document.getElementById("headerdefault");"format"==s&&this.data.newstep.format>0&&setTimeout(()=>{const t=document.getElementsByClassName("caution-col format")[0];this.data.newstep.top=a.scrollTop+t.getBoundingClientRect().bottom-i.getBoundingClientRect().height},0),e.column="making_"+s,e.value=+this.toggle_status[s]}else{let t=this.type;const s=this.replaceHypen(`${this.route_name}-${t}`);this.toggle_status[s]=!this.toggle_status[s],e.column=s,e.value=+this.toggle_status[s]}this.$axios.post(this.$host+"/user/updatecaution",e).then(t=>{if(200==t.status){const t=this.$storage.get("user");t[e.column]=e.value,this.$storage.set("user",t)}}).catch(t=>{console.log(t)})},cc_format(t){let e=t;if(e){let s=e.match(/[\*|\d]{0,16}/g),a=s&&s[0]||"",i=[];for(let t=0,e=a.length;t