(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,s){t.exports=s("56d7")},"00af":function(t,e,s){"use strict";s("f0b3")},"00d2":function(t,e,s){},"01c6":function(t,e,s){"use strict";s("3ab6")},"020b":function(t,e,s){"use strict";s("7525")},"0325":function(t,e,s){t.exports=s.p+"img/point_3d.1aba4f7e.png"},"034e":function(t,e,s){"use strict";s("2f7a")},"0400":function(t,e,s){},"0411":function(t,e,s){"use strict";s("912d")},"05be":function(t,e,s){},"05e5":function(t,e,s){},"060b":function(t,e,s){t.exports=s.p+"img/chrome-speaking-03.a3ae0df0.png"},"069a":function(t,e,s){},"06b6":function(t,e,s){},"07a1":function(t,e,s){},"07a4":function(t,e,s){},"07d1":function(t,e,s){},"07e9":function(t,e,s){},"082a":function(t,e,s){},"08c2":function(t,e,s){"use strict";s("dd3a")},"0910":function(t,e,s){"use strict";s("9b6a")},"093e":function(t,e,s){},"0b79":function(t,e,s){},"0bb6":function(t,e,s){},"0c11":function(t,e,s){"use strict";s("8c1c")},"0d7b":function(t,e,s){},"0e07":function(t,e,s){"use strict";s("193e")},"0e5c":function(t,e,s){},"0fb2":function(t,e,s){"use strict";s("efd5")},1057:function(t,e,s){},1070:function(t,e,s){},1195:function(t,e,s){t.exports=s.p+"img/lock.8e4beaf3.png"},"130c":function(t,e,s){"use strict";s("f10d")},1620:function(t,e,s){},1751:function(t,e,s){"use strict";s("528d")},1830:function(t,e,s){},1852:function(t,e,s){"use strict";s("512b")},"185c":function(t,e,s){t.exports=s.p+"img/6.a72fbcbe.png"},"188c":function(t,e,s){},"18e5":function(t,e,s){t.exports=s.p+"img/X_mobile_gray.2840f538.png"},"18fb":function(t,e,s){"use strict";s("efbd")},"193e":function(t,e,s){},"1b35":function(t,e,s){},"1bb2":function(t,e,s){t.exports=s.p+"img/aos-03.56fdf9bf.png"},"1c9d":function(t,e,s){},"1d52":function(t,e,s){},"1d7d":function(t,e,s){},"1dfa":function(t,e,s){"use strict";s("2f75")},"1e2f":function(t,e,s){t.exports=s.p+"img/new-pocketnote.2cc2903d.png"},"1f90":function(t,e,s){},"1fb7":function(t,e,s){"use strict";s("68a8")},2017:function(t,e,s){"use strict";s("c8c2")},2086:function(t,e,s){},"20c3":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAMFBMVEX////S0tLr6+vPz8/T09Py8vL8/Pza2tru7u74+Pjg4ODX19fp6enz8/Pk5OTd3d2FvXI/AAAFdElEQVR4nO2dCbaDIAxFP051dv+7/WJrawdHkrzA4a7Ae4CEIMPfXyQSiUQikUjkBEXV5WWZlGXeVQX6Y4gp8rZu0neaus0D8ez6xqSp+cZq9jn681zJh/Sn3UJz8Fiy6s2m3Sxp+gr9qZfobkf0HpI3/xqya477TY6NX47VifZ7OXrUV/vzfpNj7Un6yLNrgpYS/fFHqK/7jc04qG/G6mSE+UZ5xCld/cZmbNESW1wMMR+KA1pjnYFC0OZ/tMgaF5LgCo3OeOMcYxZkGhXpWtCisBVpBUdFtNAnTnn+F9rCTUstOCr2aKklHb3gqJigtV4UDH5WUU85deMx1BNtGAbhHS1DseISHBU7tNxEwyY4zm3QchaCgmkdFaUUo59VxM/eSErCDUN4sGFKhQtFdCMyN+FIDTZkF0Q3IluyXxhiRyJnLpyB5kSWmuKTFLmCWgsIGoNcXZRoQmisYZ2wLQxx/2tkOimymwoJGoMSFImkFliZKJDuH4aoGmoQEjQGtXYqJogaiIVUJ4VlRLFAA5u4JYKGmOXvXkzQGEwFJRdKUbMarrX8X2DShUT1O4P5g5EJGmLq/PANBQVBk5rwDcPvpeEbhp8tws/44c/awp95h1895cFXwOGvYoS/EiWYLlCrieGvCIe/qh/+nxmxWQ3u75pQzgf+IRXKiMgdNTL5ArlrX+RHPrCT/glFU6SgRAUF3vUlEGvQ2y/5N5ygd18ybtS/gz9Wwt2I6CZkH4noUWhh3QeN38hu4Vz7VnGihLNMVHIqiP786FMQH2YecPVTHX3UwtRP8anwBcualKZTsmT3RbwJqhmEd+h/Jqo5IjtDHW30RJmZglZR48UYtOf0FAqStqLGFrQUVPe3KLzYZIbkghNtd368Q1BK6SiY1nFfQVV+m5nrYEwVD8EXDv9rVFwwcIDi4iw1vfnQgHeuXA6ZZupH4BvJScc0U1UrHaI8EXLSzItrPb/o6u17oGc9n6+DLpLbjmSaNok/8eUnRTlkK3d6p2lWl57rPSjK/mY+bp03tz4QuxdVlydJ27ZJkneKVtEikUgkEolEIpGwsE92Pd7sCuzRrqJL+qH5LJ7G8qmp29L7GqNKptfI1gt865n4qlkle+91vTwH/4rhqs8O2S2Wa1qPmrJqr/y7sJJ+tGS5t7y2Jan/dbLi2GNyG5KZ6oYsji0B7zVkr9WxINujqNORzu/uiPb5gnrvXmp0/YvKHePLT8dGyQZhC9MmYTVdNWfRmxQzFc3Itst7csQ3Y+fwnOMhRfTbnQIngbEHLFl76FMR11PJ9iLuKaK28lUiepMiZi+Y4PU0I4B4I3QfO05RWlD8kJfgHVEYRfEWnBQFOypEUFJRNoouEUoa7AfU15E5h8H+htUWIse9JK+8/ELiRWuGk4anFNn3uovdYLaqyLwqDowyT3ijjeTNumuw1lIiFe8enEMRl+rf4JvbQDPhErasKPWA1S5cJ/WV9FEL06010MnMByxTG3iuX8JRDqsJM3cYgg3/o7GnoF8JF7z4+Rjkt0qoyRQz1BlDw4z7A+JGlLxD/yC0jahuFFpIw6mqXDhDmhPRMr8hLBQVzUiXEFZRku+tnIDu57DKODNBZagyzljIYo2msukdoivdFM5nntAYKqsqlhAtD+vtpESvJOmNpIZo+g34ZX8ckqQv+fjYaUgKDLTENgSLbppzhSEZiKqHIclAVLdA8w7BmpvmbGhxz4hogz2cy2Dlgca4T01BG7yO4/wbSm1tOONcIyoPpQTBVOkSzQvnfQsatpds45outA9D55mp6uLwjmNC1J8OXX9fiD3EeR3H6kLpev4b0dB7w9TNsPy6VkYfboZVoh83w0gkEolEIhEv+AcptGIJUjHCLwAAAABJRU5ErkJggg=="},"20db":function(t,e,s){t.exports=s.p+"img/control-speaking-01.58f503ed.png"},2275:function(t,e,s){"use strict";s("7fbc")},"228f":function(t,e,s){"use strict";s("1b35")},"22c2":function(t,e,s){},"22e6":function(t,e,s){},2332:function(t,e,s){"use strict";s("bdd7")},"23c9":function(t,e,s){"use strict";s("f551")},"243a":function(t,e,s){},"24ca":function(t,e,s){},"24dd":function(t,e,s){t.exports=s.p+"img/2.300a8e8a.png"},2551:function(t,e,s){"use strict";s("b2c2")},"262d":function(t,e,s){},2737:function(t,e,s){t.exports=s.p+"img/chrome-speaking-01.7010c071.png"},"273e":function(t,e,s){t.exports=s.p+"img/test_cutoff_pass.d4f66144.png"},"275e":function(t,e,s){"use strict";s("1057")},"27e0":function(t,e,s){"use strict";s("5b91")},"290e":function(t,e,s){"use strict";s("093e")},"294f":function(t,e,s){"use strict";s("1070")},"2aa4":function(t,e,s){"use strict";s("8302")},"2b3d":function(t,e,s){t.exports=s.p+"img/001m5.6e1240e9.png"},"2b3f":function(t,e,s){t.exports=s.p+"img/O_mobile.640bd7a6.png"},"2b5c":function(t,e,s){},"2b88":function(t,e,s){},"2bc4":function(t,e){(function(t){var e="./recorderWorker.js",s=function(t,s){var i=s||{},o=i.bufferLen||4096,a=i.numChannels||2;this.context=t.context,this.node=(this.context.createScriptProcessor||this.context.createJavaScriptNode).call(this.context,o,a,a);var n=new Worker(i.workerPath||e);n.postMessage({command:"init",config:{sampleRate:this.context.sampleRate,numChannels:a}});var r,l=!1;this.node.onaudioprocess=function(t){if(l){for(var e=[],s=0;s=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()}},r=n,l=(s("3fcc"),s("2877")),c=s("6544"),d=s.n(c),h=s("8336"),u=s("132d"),p=s("490a"),_=Object(l["a"])(r,i,o,!1,null,null,null);e["a"]=_.exports;d()(_,{VBtn:h["a"],VIcon:u["a"],VProgressCircular:p["a"]})},3666:function(t,e,s){"use strict";s.r(e),s.d(e,"db",(function(){return l})),s.d(e,"waitForAuthInit",(function(){return c}));var i=s("59ca"),o=s.n(i);s("ea7b"),s("e71f");const a={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"};o.a.initializeApp(a);const n=o.a.firestore();o.a.auth().signInAnonymously().catch((function(t){var e=t.code,s=t.message;window.console.log(e,s)})),o.a.auth().onAuthStateChanged((function(t){if(t){t.isAnonymous;window.FB_UID=t.uid}else window.FB_UID=void 0}));const r="",l=new Proxy(n,{get(t,e){return"collection"===e?e=>t.collection(r+e):Reflect.get(t,e)}});function c(){return new Promise(async t=>{try{await o.a.auth().setPersistence(o.a.auth.Auth.Persistence.LOCAL).catch(()=>{}),o.a.auth().currentUser||await o.a.auth().signInAnonymously().catch(()=>{})}finally{const e=o.a.auth().onAuthStateChanged(s=>{window.FB_UID=s?s.uid:void 0,e(),t(s)})}})}},"36d3":function(t,e,s){"use strict";s("c939")},"374a":function(t,e,s){},3868:function(t,e,s){t.exports=s.p+"img/4.9684cbda.png"},"388f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAA5CAYAAACPr42tAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1Nzg3NDA5OENCMEUxMUU1QTE4OUI5NTlBODU4NzkwQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1Nzg3NDA5OUNCMEUxMUU1QTE4OUI5NTlBODU4NzkwQyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjNCRUM3MEZGQ0IwRTExRTVBMTg5Qjk1OUE4NTg3OTBDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNCRUM3MTAwQ0IwRTExRTVBMTg5Qjk1OUE4NTg3OTBDIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+GcHUlgAABYlJREFUeNrsm3tsFEUcx+dsLYUaSqHQUpFKqLYpimmrQJA/bFQSoBaEaLTxFSMGoyYQQTRRjMQYfBuNESMRghUfGAkIVv3HR0CtQIGIZ0GStlDbIgg9InCUPvz+tnPn3rDszu3O7m1hf8kvk93uzs58dn6P+e011NfXxwL5Xy4JEARAAiABkACIOkmXuSgUChmer3+3bCGaN3w6t0WTH9n1ptEfzCKr0xXS6eOXfToVJhP1MZBoKoCc9jGQiGs+xET+duzEMvNYQcWjLP/aqvi5E+1hdqTxK/bPvnVOuj6WCiAtTm7Oyp/GSmauYGkZQxLODx1dqumgoZeztu2v2O2+ORVA2qFd0Aw7NxfdskyDQSui+YcXWbQzrJ0fe+NybcWMqbibRQ79zE52bE22627oX64DQZjNRpMjnO6gOST74BHFNWzQZbns1LEW1rjxnoS/Hdy2TGsJyqjSuawpeSCHoVdgvAkREWG4UwkQdJyLZg10liqPR+agGXrTT8YesbVeA5KVO85O99R5k8E86tDcDz3idIWsVAmDhHyDjH9Iy8hS+dgZ0Pegc52G3dlex8zsMZP7I07bXtVdV6vwIeJ1h6C9uuNCVaPNHFbKRpc/xEZefRPr6TrF2htWqYh++vGluRFlJuodFGxzN5rr7EIgBzu+cvE551t31MYjTxISxtgmCL5Duiyoarf7pRtmUzj1YQ2Wl2NJVzT2zdBn7N5MGak+K6U8JGfcFC0s08qJRg4mk4tsEVZHyI29TLdwnCsc/2oU5uwK5SF7aqdrOQpJQdm9sreSb9smnBtrMRdbQP4UjufoD2CzZKOrVZtM04+v8VR+guwtazCWXrOxGszFFpCvhePFWIojhHOrhcjjWMhMzvx7VEvvad9jIfRSPhDMZRiaJy3mYgvIKv7AmORB1+KB6bpV0opmvUxnFQ9uZZMWNGg7XSvp6Topy289xtCsg0Hh9UOyOAHa+46B4EFhnrrrZSZ0HR48WHduuQDO2CEhv9B2u3nXS2eqPVHL3fwKHYxMGhu0ysCk/lAVdpeQvxPO3QH9HgMo1oH7wqqjWPYZy0bNygMUachsLPKRDXj2Lg7jKhoT9E7RV/M5mEpI5lNmrMiMh5Wj+Y78nHDJGehLrL/gTDtieguDZRKxfXXPskjLFsPCUUn1SjZkeCFr3fmx2b6HSoWl0OPQRdCltHcU3wG0EtAaNLsxmXNSQDgUeq11BmWAWNmOluoo6DyzPktm12pFIK1+8Nvm+JZfC7M3LGEji2+Nlwf2fna7WVebeO2jhr8MUQjUDMCojzsSlUA4FDKRz6HXOIkieiiGptUeZge+eYJ1Rw/bfQTZ5jzA2J8QjlQD0Tmu5ygEO8l48yYuQFY6LQEMgTjRtsdJ+ZCSr1ehzwPGOdV3V4DowBTxtJ2W7KUstXKWm+wLAHHgvAmLm0B0YPLRPMAzw0l0m0cQaAI7eHSjsNpheYMXQAQ4w9FMgVLOXcQTudsU7K57+W6WnAqtgN+hvwBCUp8cPAdyHkiPo3nLYTePYfLvOF5SLn7blRZM5G2eI9iVpSpgKE3MVAhWSg3fBsg6YHKU9wHGJ8qcjh9MxgDKR5KX3wUYnyr1wn4DwqFs4o7WTDYCxhzlYckPPsRA1soUfLweVCqB7JS4ZvvFBOS4xDWRiwlIjqJrLhgg1RLXzPJ6UKkKu2W80JRtcSml5Dcj0uy+YMIur7lOhY5n/d9zyvkGMC2JrfwGKEE5Ct3P9y/RAQUEIOhXRU9BF7rgC2jlvA59GWDO+h4IYFBNk8qMlS6b/LfQqmShpCIxe9oDGCTTmUQl3Q9RZr6HgWG+r4HAXOg3lgUeArnS7yskgw1gcQMIfRRq9HAOSn+EFgr+CdE/qXsAJAAyAOU/AQYAc8P48H6u17QAAAAASUVORK5CYII="},"3ab6":function(t,e,s){},"3b6a":function(t,e,s){},"3b6b":function(t,e,s){},"3c7a":function(t,e,s){},"3f0e":function(t,e,s){"use strict";s("0b79")},"3f44":function(t,e,s){t.exports=s.p+"img/O_mobile_gray.757e2c08.png"},"3f5b":function(t,e,s){"use strict";s("22c2")},"3f9a":function(t,e,s){},"3fcc":function(t,e,s){"use strict";s("b239")},"40ce":function(t,e,s){"use strict";s("a4d6")},"40fd":function(t,e,s){t.exports=s.p+"img/1st.521e3afa.png"},4368:function(t,e,s){},"438f":function(t,e,s){"use strict";s("83a1")},4450:function(t,e,s){t.exports=s.p+"img/evaluation.42c80cdf.png"},"44ef":function(t,e,s){},4542:function(t,e,s){"use strict";s("5354")},4608:function(t,e,s){"use strict";s("7027")},"464a":function(t,e,s){},"46b0":function(t,e,s){"use strict";s("1d7d")},4772:function(t,e,s){"use strict";s("edc3")},"4a0a":function(t,e,s){"use strict";s("8791")},"4a42":function(t,e,s){t.exports=s.p+"img/T_ios_result.e0844625.png"},"4b67":function(t,e,s){},"4bb4":function(t,e,s){},"4bbc":function(t,e,s){},"4bdb":function(t,e,s){},"4c0d":function(t,e,s){},"4e1a":function(t,e,s){"use strict";s("be11")},"4e6f":function(t,e,s){},"4f07":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAA5CAYAAACPr42tAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozQkVDNzBGRENCMEUxMUU1QTE4OUI5NTlBODU4NzkwQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozQkVDNzBGRUNCMEUxMUU1QTE4OUI5NTlBODU4NzkwQyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjNCRUM3MEZCQ0IwRTExRTVBMTg5Qjk1OUE4NTg3OTBDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNCRUM3MEZDQ0IwRTExRTVBMTg5Qjk1OUE4NTg3OTBDIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+8qclmgAABT5JREFUeNrsW11oXEUUnm2yhSRNDKGakIa4yVqS5kEJgSSlVQK+CFGMWlAhliptX4q02AexrTa1P1RERCh9EP/wD2wjtmr0SVBpSxINCaFN2lrDWpbAmpCmCWFLU43fuTu73U5n9/7M3LvXdg8cZu/cmblnvnvOmXPOTQJLS0ssTzdpWR6CPCB5QPKAKFCh2YBAICDt7+vrexLNCR/v7anOzk6pfNkOEhUNuerzlx332mTiPgfkmteAXPM5II40uFDhgX+rSlxSUsJqa2tZXV1dqm9xcZFFo1E2Pj6uuvys14DESH5w0MnkUCjEmpqabusPBoMGQFVVVWx4eJjNzjra1z/gqJOJAbPQPdMpw0+aS2jCKmAktYE0I3mPwKioqGDxeJwNDg6yhYUFu4/4CydMKNNNt04Z48FOJiVNZGxsjI2OjqbAIIpEIqy/v5/NzMywoqIi1tjY6OQREdfiEGgBmcQb4I3ge0Q34EQ7aKO0Ydp8JhoaGmIdHR2ssrLS8DU2tWQd5J6VONnPwG+Cr6v4kMPgV3S5fgKDaHp6Ous40pr5+XnDdIqLi+0CUih5eXS9G7wCvEPFZLbqPAtpc1YpaUrkaDXSZtVTZoVOacgUrFJZWdktwGiiEt2B2cPkF9P4ZzeiqurqasO8CIypqSk7U08L8j3kdhwSxZEWSXO6J9F06ASDTKShoSF1LNukE4J85V6n/9/p1o6WlhZDO+bm5pxErN97XQ+5xafgbfyJZlSXZrS3t6eCMopUbdJ5yHNe6LtXNyCTwvVayZiPdYDR1tamGqF+JOlbb7If24CcEa538GAtnT7PFuxYBYNOFTITh2DcAH8qBJWFkpjjjCogXwrXlITsE8yGoqxepxlvOhgDAwNOwCDqhRwxoW8P+EGh7wtVQOgUOSf0vQb0twh9BylvsgtGa2urAQaF8gSGQsxxSNCOl9DsFcbQPr5Vznax+Dr8/FUC4H5wD97Mv1wI0pJn7ICRzGsooVOgk5Chi8uwjOdeIhgk4yMYd1o526VFuPqJ9Dr4FIRYw693W/El6WDEYjFVMEildnEwSI5fJGAY5sP3oa8eggceQbMtQ0HmGPht8IakgDIqLy9nzc3NBhgUdFH6r0hvgb8Cbwd3gwskY44AjJet1EPsRqq0KMXRPUI/CfE854lsC4TD4VTGW1NTY7AZjYyMsMnJjKflc+BXs0zv4Sm//tAdKBO0+6Apv/HY4z7JsHrmLd2foZ9qvi9C5h/sLOa4hMhzhAO8PBBk/iHyKe+TfwMYV2QDsu1ZqabKganl9rsJXJFDIGbAn4DfAxCXsw10FZA0YEhLHgU/zksETUytqm8lMh3n4QAldD8BCEtBjCeAZACI/EkVr1J1awCBaqIfsMQnkAmrAPgCEAk4X4OfUCwzPA0QbqjK4+ZnCKun0yKPT447XILmbdABhhcFIqugUAT7LPiozanv0Dw+33XyxGQE8wlw9e+0MJwSsS4e/2ijnPsQCSir0Vy0MDQMMCZ0Pz/nPkRiPn+guWAy7KwbYPjGh0hoTPH+HQfIvMn9+N0GSJ3J/VW5ECpXTrWeO9UCkyTtAbO85H/vVAFGCM03JmAwnkH38uTxztAQbKYUzWPgZvBKlvhrI/pOstzGMhSQnQLTBzEqTtHXqx+hOQtuaIgrgPDgaydLFHtLXXiRcyzxKeRdJ0FbLkzmQ5aor5a6tH4ZD+mP+t5koB1d3Ed4GOfZKxN6rSEveOynN/o9Dgl5DEi93wEp8BiQ5X4H5HePARnw1KnebZT/j6o8IHlAbNF/AgwAAZj8d5WEyzQAAAAASUVORK5CYII="},"4f2b":function(t,e,s){},"4f8a":function(t,e,s){"use strict";s("3b6b")},"4fbf":function(t,e,s){"use strict";s("3f9a")},"501b":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("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"}},[s("defs",[s("linearGradient",{attrs:{id:t.seq_id,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},[s("stop",{attrs:{offset:"0%","stop-color":"#ffbfb9"}},[s("animate",{attrs:{attributeName:"stop-color",values:"#ffbfb9; #fc4d41; #ffbfb9",dur:"10s",repeatCount:"indefinite"}})]),s("stop",{attrs:{offset:"100%","stop-color":"#fc4d41"}},[s("animate",{attrs:{attributeName:"stop-color",values:"#fc4d41; #ffbfb9; #fc4d41",dur:"10s",repeatCount:"indefinite"}})])],1)],1),s("g",[s("rect",{attrs:{fill:"none",id:"canvas_background",height:"82",width:"82",y:"-1",x:"-1"}}),s("g",{attrs:{display:"none",overflow:"visible",y:"0",x:"0",height:"100%",width:"100%",id:"canvasGrid"}},[s("rect",{attrs:{fill:"url(#gridpattern)","stroke-width":"0",y:"0",x:"0",height:"100%",width:"100%"}})])]),s("g",[s("ellipse",{attrs:{id:"svg_4",cy:"50.453125",cx:"73","fill-opacity":"null","stroke-opacity":"null","stroke-width":"11",stroke:"#000",fill:"#fff"}}),s("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"}}),s("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"}})])])},o=[],a={props:["seq_id"]},n=a,r=(s("4a0a"),s("2877")),l=Object(r["a"])(n,i,o,!1,null,null,null);e["a"]=l.exports},"50cf":function(t,e,s){},"512b":function(t,e,s){},5262:function(t,e,s){},"528d":function(t,e,s){},5354:function(t,e,s){},"552f":function(t,e,s){"use strict";s("4b67")},5608:function(t,e,s){t.exports=s.p+"img/new-report.0bd1fd61.png"},5624:function(t,e,s){},5681:function(t,e,s){"use strict";s("b770")},"569a":function(t,e,s){"use strict";s("1c9d")},"56d7":function(t,e,s){"use strict";s.r(e);var i=s("3666"),o=(s("5363"),s("2b0e")),a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-app",{attrs:{id:"app"}},[s(t.layout,{tag:"component"},[s("router-view")],1),s("Toast",{attrs:{isOpen:t.$store.state.toast.isOpen,message:t.$store.state.toast.message,top:t.$store.state.toast.top}}),s("svg",{staticStyle:{position:"absolute",width:"0",height:"0",opacity:"0"},attrs:{"aria-hidden":"true"}},[s("defs",[s("linearGradient",{attrs:{id:"myGrad2",x1:"100%",y1:"100%",x2:"0%",y2:"0%"}},[s("stop",{attrs:{offset:"0%","stop-color":"#14ffd6"}}),s("stop",{attrs:{offset:"100%","stop-color":"#aeff6c"}})],1)],1)]),s("svg",{staticStyle:{position:"absolute",width:"0",height:"0",opacity:"0"},attrs:{"aria-hidden":"true"}},[s("defs",[s("linearGradient",{attrs:{id:"myGrad3",x1:"100%",y1:"100%",x2:"0%",y2:"0%"}},[s("stop",{attrs:{offset:"0%","stop-color":"#ffd544"}}),s("stop",{attrs:{offset:"100%","stop-color":"#ff9444"}})],1)],1)]),s("svg",{staticStyle:{position:"absolute",width:"0",height:"0",opacity:"0"},attrs:{"aria-hidden":"true"}},[s("defs",[s("linearGradient",{attrs:{id:"myGrad4",x1:"100%",y1:"100%",x2:"0%",y2:"0%"}},[s("stop",{attrs:{offset:"0%","stop-color":"#88efff"}}),s("stop",{attrs:{offset:"100%","stop-color":"#66c4ff"}})],1)],1)])],1)},n=[],r=(s("7e7d"),s("7707")),l=s.n(r),c=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("transition",{attrs:{name:"toast-fade"}},[t.isOpen?s("div",{staticClass:"toast-container",style:t.toastStyle},[s("div",{staticClass:"toast-content"},[t._t("default",[s("div",{staticClass:"toast-message"},[t._v(t._s(t.message))])])],2)]):t._e()])},d=[],h={name:"Toast",props:{message:{type:String,required:!0},isOpen:{type:Boolean,default:!1},top:{type:[String,Number],default:"20px"}},computed:{toastStyle(){const t="number"===typeof this.top?this.top+"px":this.top;return{top:t,left:"50%",transform:"translateX(-50%)",position:"fixed",zIndex:9999,pointerEvents:"none"}}}},u=h,p=(s("8b29"),s("2877")),_=Object(p["a"])(u,c,d,!1,null,"68cfe2f8",null),m=_.exports,g=s("5fb0");const b="layout-default";var v={name:"App",components:{Toast:m},metaInfo:{title:"내공스터디 학생앱",titleTemplate:"%s",htmlAttrs:{lang:"en",amp:!0},meta:[{name:"description",content:"내공스터디 가맹학원 전용 학생 접속페이지, 교과서 및 필수 리딩구문 컨텐츠 학습!",vmid:"description"},{name:"keywords",content:"내공스터디,내공,내공영어,영어프로그램, 영어내신, 내신공략, 필수어휘, 교재무료제공, 최신어플, 초등영어, 학원솔루션, 학원성공, 영어학습법, 영어암기,중등영어, 중등영어학원, 초등영어학원, 솔루션구매할인, 초등단어장, 중등단어장, 성적관리, 영어학습앱, 필수영단어, 교과서, 영어교재, 영단어프로그램, 영어교육, 영어성적"}],link:[]},methods:{getScreenWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},getScreenHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},handleResize(){this.screen_width=this.getScreenWidth(),this.screen_height=this.getScreenHeight(),this.$store.commit("setScreenSize",{screen_width:this.screen_width,screen_height:this.screen_height})},initialize:function(){document.addEventListener("deviceready",this.onDeviceReady.bind(this),!1)},onDeviceReady:function(){this.receivedEvent("deviceready"),"StatusBar"in window&&window.StatusBar.hide();let t=this,e=!1;const s=window.cordova.plugins.diagnostic;s.getMicrophoneAuthorizationStatus((function(i){switch(i){case s.permissionStatus.GRANTED:e=!0;break;case s.permissionStatus.DENIED:case s.permissionStatus.DENIED_ALWAYS:case s.permissionStatus.RESTRICTED:e=!0;break}e||window.plugins.speechRecognition.requestPermission(),window.plugins.speechRecognition.isRecognitionAvailable((function(e){t.$store.commit("setRecognitionAvailable",e)}),(function(){}))}));window.navigationbar.setUp(!0),window.navigationbar.hideNavigationBar(),window.plugins.speechRecognition.hasPermission((function(t){}),(function(t){})),"function"==typeof window.ExternalKeyboard&&window.ExternalKeyboard.checkOnce(),window.setRecordFilename=function(e){t.$store.commit("setRecordFilename",e)},this.$store.commit("checkMobile"),window.cordova&&window.cordova.platformId&&(this.$store.commit("setPlatformName",window.cordova.platformId),"android"===window.cordova.platformId?document.body.classList.add("overflow-hidden"):"ios"===window.cordova.platformId&&(document.body.classList.add("overflow-hidden"),l.a.polyfill()));const i=/Android/i.test(navigator.userAgent)&&/Chrome\/[1-3][0-9]\./.test(navigator.userAgent);window.FastClick&&window.cordova&&("ios"===window.cordova.platformId||i)&&this.$nextTick(()=>{window.FastClick.attach(document.body)}),document.addEventListener("backbutton",t=>{t.preventDefault();let e=this.$route.name.split("-"),s=e[0];switch(this.$store.getters.getUserAuthCheck||this.$router.go(-1),s){case"index":if(this.$store.state.index_dialog_on)return this.$store.commit("setIndexDialog",!1),!1;this.$router.push({name:"login"});break;case"login":this.$store.dispatch("awaitingDialog",{d_name:"exit_dialog",value:!0}).then(t=>{switch(t){case"appexit":return window.onbeforeunload=null,this.$store.state.is_mobile?navigator.app.exitApp():window.close(),!1;case"cancel":this.$store.commit("setDialog",{d_name:"exit_dialog",value:!1});break;default:return!1}});break;case"book":case"report":case"pocketnote":!0===this.$store.getters.getLearningStatus?this.$router.go(-1):this.$router.push({name:"index"});break;case"schedule":this.$store.state.route_jump?this.$router.go(-1):this.$router.push({name:"index"});break;case"leaderboard":case"settings":case"guide":case"notice":this.$router.push({name:"index"});break;default:break}},!1)},receivedEvent:function(){},defaultDialog:function(t){this.dialog=t},uloadApp:function(){this.$store.dispatch("fbSetUIDNull","EXIT")},mobilePause:function(){this.$store.dispatch("setMobilePause",!0).then(()=>{this.$store.dispatch("fbSetUIDNull")})},mobileActive:function(){if(this.$store.state.uid&&window.FB_UID){let t={uid:this.$store.state.uid,data:{fb_uid:window.FB_UID,login_time:(new Date).getTime()}};this.$store.dispatch("fbSetUID",t).then(()=>{this.$store.dispatch("setMobilePause",!1)})}},toggleFullScreen(t){if(122===t.keyCode&&(t.preventDefault(),!this.$store.state.is_mobile)){this.$store.dispatch("toggleFullScreen",!this.$store.state.fullScreenStatus);const t=`전체 화면이 ${this.$store.state.fullScreenStatus?"실행":"해제"}되었습니다.`;this.$store.dispatch("showToast",{message:t,duration:2e3})}},handleFullscreenChange(){if(!document.fullscreenElement&&!document.webkitFullscreenElement&&!document.mozFullScreenElement&&!document.msFullscreenElement){this.$store.dispatch("toggleFullScreen",!1);const t="전체 화면이 해제되었습니다.";this.$store.dispatch("showToast",{message:t,duration:2e3})}}},computed:{layout(){return this.$route.meta.layout||b}},data(){return{screen_width:null,screen_height:null,dialog:!1}},created(){"webkitSpeechRecognition"in window&&this.$store.commit("setWebkitSpeechAvailable",!0),console.log=()=>{},this.initialize()},mounted(){let t=!0;if("undefined"!==typeof window&&"undefined"!==typeof document){const e=navigator.userAgent.toLowerCase(),s=e.includes("cordova")||e.includes("capacitor")||e.includes("wv");t=!s}else t=!1;window.addEventListener("resize",this.handleResize),window.addEventListener("keydown",this.toggleFullScreen),window.addEventListener("fullscreenchange",this.handleFullscreenChange),this.$store.commit("setScreenSize",{screen_width:this.getScreenWidth(),screen_height:this.getScreenHeight()}),this.$nextTick(()=>{let t=["after_login","after_setting","click","correct","dicbtn","exit","report","speaking","wrong","speaking_rec","hint","end_popup","save_pocket","try_again","checkup_end","level_next","speaking_count_1","speaking_count_2"],e={};if(window.cordova&&"ios"==window.cordova.platformId){t.push("save_speaking_ios");for(let s=0;s{this.$store.commit("setScreenOrientation",window.orientation),90===window.orientation?document.body.classList.contains("ios-minus-90")?document.body.classList.replace("ios-minus-90","ios-plus-90"):document.body.classList.add("ios-plus-90"):-90===window.orientation&&(document.body.classList.contains("ios-plus-90")?document.body.classList.replace("ios-plus-90","ios-minus-90"):document.body.classList.add("ios-minus-90"))};document.addEventListener("deviceready",()=>{t()},!1),document.addEventListener("orientationchange",()=>{t()},!1),window.onorientationchange=t}}window.addEventListener("unload",this.uloadApp)})},beforeDestroy(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("unload",this.uloadApp),window.removeEventListener("keydown",this.toggleFullScreen),window.removeEventListener("fullscreenchange",this.handleFullscreenChange)}},f=v,w=s("6544"),y=s.n(w),x=s("7496"),k=Object(p["a"])(f,a,n,!1,null,null,null),C=k.exports;y()(k,{VApp:x["a"]});var $=s("8c4f"),S=s("2f62"),T={platform:null,screen_width:null,screen_height:null,recognition_available:!1,webkit_speech_available:!1,is_mobile:!1,orientation:0,product_type:null,is_login:!1,cid:"",uid:"",uname:"",grade:"",uclass:"",uphone:"",ulogofile:"",sound_effect:1,bookmark_use:0,upostdate:"2020-04-01 00:00:00",leveltest_status:null,isLevelTestStart:!1,levelTimer:null,seconds:0,cname:"",clogofile:"",learderboard_auth:1,rankpopup_view:0,server_ym:null,class_name:"",class:[],is_learning:!1,is_mockexam:!1,mockexamrecord_id:0,lesson_speed:100,settings:Object.freeze({is_random:0,is_skip:0,is_scoringnext:0,is_studentcontrol:1,is_restudy:0,is_openbook:0,is_ttsgender:0,is_usinghint:1}),listening_settings:Object.freeze({all_repeat:1,sen_repeat:3,listening_speed:4}),flash_delay_time:1e3,book_select_grade:"all",course_books:Object.freeze({}),reading_books:Object.freeze({}),listening_books:Object.freeze({}),school_books:Object.freeze({}),story_books:Object.freeze([]),img_use:!0,auto_exam:!1,process_type:null,current_page:0,current_step:0,process_prev_disabled:!1,process_next_disabled:!1,grammar_disabled:!1,book:Object.freeze({}),unit:Object.freeze({}),words:Object.freeze([]),sentences:Object.freeze([]),mockexam:null,mockexam_step:0,mockexam_select:0,mockexam_selects:[],mockexam_allchk:!1,mockexam_minute:0,mockexam_second:0,mockexap_question_seq:[],current_book_id:null,current_unit_id:null,schedule_id:null,cur_book_publisher:null,cur_book_publishdate:null,cur_book_unit_cnt:null,schedule_type:0,modules:Object.freeze([]),modules_names:g["Db"],process_names:Object.freeze(["Study","Test","Exam"]),process_kor:Object.freeze(["학습하기","시험보기","진단평가"]),module_loading:!1,init_loading:!1,listening_type:null,current_tts_id:null,current_tts_audio:void 0,current_synthesia_video:void 0,tts_playing:!1,audio_ctx:[],audio_files:Object.freeze([]),voca_audio_ctx:[],voca_audio_files:Object.freeze([]),video_ctx:[],video_files:Object.freeze([]),video_canplay:!1,voca_imgs:[],cur_sen_repeat_cnt:0,cur_all_repeat_cnt:0,ox_right:!1,ox_show:!1,cur_module_skip:!1,start_time:0,end_time:0,checked_wrong:!1,long_chips:[],load_start:!1,clear_prev_result:!1,current_restudy:!1,flash_show:!0,matching_data:Object.freeze({choice_words:[],selected_words:[],selected_keys:[],answers:[],right:[],result_html:[]}),matching_exception_idx:Object.freeze([]),matching_ex_cmp_cnt:0,matching_exception_char:Object.freeze([]),dictation_data:Object.freeze({choice_letters:[],selected_letters:[],answers:[],right:[],result_html:[]}),grammar_sub_unit:"",grammar_type:"",copy_grammar_type:"",grammar_sa_type:"",grammar_t1_data:Object.freeze({question:[],passage:[],example:[],answers:[],rightanswer:[],right_number:[]}),grammar_t2_data:Object.freeze({question:[],passage:[],example:[],answers:[],rightanswer:[],right_number:[]}),t1_sentences:Object.freeze([]),t2_sentences:Object.freeze([]),grammar_matching_data:Object.freeze({choice_words:[],selected_words:[],selected_keys:[],selected_text:"",answers:[],right:[],result_html:[]}),dictation_select:[],dictation_choice:[],dictation_select_key:[],dictation_choice_idx:[],dictation_uppercase:[],popquiz_data:Object.freeze({choices:[],right_number:[],answers:[],right:[],skip:!1}),popquiz_select:-1,popquiz_choices:Object.freeze([]),writing_data:Object.freeze({split_words:[],idx_relation:[],choice_words:[],selected_words:[],selected_keys:[],answers:[],right:[],result_html:[]}),writing_exception_idx:Object.freeze([]),writing_ex_cmp_cnt:0,writing_exception_char:Object.freeze([]),writing_hint_pos:Object.freeze([]),writing_hint_hit:0,writing_k_data:Object.freeze({answers:[],right:[],result_html:[]}),writing_k_current_question:[],writing_k_current_answer:[],writing_k_current_rightanswer:null,writing_k_empty_pos:[],writing_k_wrong_pos:[],writing_k_hint_hit:0,writing_k_hint_pos:[],writing_k_hint_w_pos:[],speaking_start:!1,speaking_data:Object.freeze({result_html:[],score:[]}),speaking_kor_show:!1,wordbingo_words:[],wordbingo_question_hide:!0,wordbingo_question_cls:"",wordbingo_answer:"",wordbingo_selections:[],wordbingo_data:Object.freeze({question_cnt:0,answers:[],right:[],result_html:[]}),bank_maxstep:0,bank_questions:[],bank_data:Object.freeze({right:[],result_html:[]}),grammar_bank_data:Object.freeze({right:[],result_html:[]}),flashcard_engs:Object.freeze([]),record_audio_file:!1,record_current_cnt:0,rec_blob:null,wrong_sentence_ids:Object.freeze([]),wrong_sentence_write_ids:Object.freeze([]),wrong_bank_ids:Object.freeze([]),wrong_grammar_ids:Object.freeze([]),wrong_word_ids:Object.freeze([]),delay_actor:null,delay_actor2:[],fb_saving:!1,rdb_saving:!1,dialog_resolve:null,dialog_reject:null,dialog_leaning_skip:!1,dialog_leaning_stop:!1,dialog_leaning_result:!1,exit_dialog:!1,a_info_dialog:!1,leaderboard_dialog:!1,auth_expired_dialog:!1,dup_login_dialog:!1,relogin_dialog:!1,dialog_network_check:!1,today_study:0,loading_percent:0,init_sound:!1,block_fastclick:!1,route_jump:!1,index_dialog_on:!1,sound_effect_src:Object.freeze({}),is_learned:!1,prevent_click:!1,bank_font_level:1,fb_subscribe:null,network_status:!0,mobile_pause:!1,a_count:0,NOTICE_ALL:11,NOTICE_NEWS:12,NOTICE_ROOM:13,NOTICE_RANGE_ALL:0,NOTICE_RANGE_STU:1,NOTICE_RANGE_PAR:2,except_books:[],repeat_dialog_cnt:0,shadow_reading_repeat:0,cab_select:"",grammar_action_count:0,ing_save:!1,trial_guide:{s1:0,s2:0,s3:0,s4:0,c1:0,c2:0,c3:0,r1:0,r2:0,l1:0,l2:0,l3:0},sending_result:!1,fullScreenStatus:!1,fullScreenDialog:!1,fullScreenDialogTimeout:null,eBookAudios:Object.freeze([]),currentEBookAudio:null,eBookAudioIsPlaying:!1,ebook_load:!1,isEBookAutoPlay:0,ingTime:{},init_guide_dialog:!1,before_chips:[],speak_timer:1,pc_rec_status:!1,disable_units:{},toast:{isOpen:!1,message:"",top:"20px"},scoring_timer:0,scoring_timer_total:0,scoring_timer_active:!1,scoring_timer_interval:null,assessmentInfo:null,assessmentLimitTime:null,assessmentRemainingTime:0,isAssessmentTimerActive:!1,assessmentTimer:null,mainPageInfo:{assessment_tooltip:!1,assessment_count:0},assessmentRecordId:null},A={getNtype_txt:()=>t=>{let e="";switch(t){case 1:e="생일축하";break;case 2:e="진도안내";break;case 3:e="평가알람";break;case 11:e="전체공지";break;case 12:e="학습소식";break;case 13:e="반별공지";break;case 21:e="공지사항";break;case 22:e="업데이트";break;case 23:e="서버점검";break;default:e="Err";break}return e},getUserAuthCheck(t){return t.cid>0&&t.uid>0&&t.uclass>0&&t.is_login},getCanvasWidth(t){return Math.round(.6*t.screen_width)},getCanvasHeight(t){return Math.round(.34*t.screen_height)},getUserName(t){return t.uname},getUserGrade(t){return t.grade},getAcademyName(t){return t.cname},getLearderboardAuth(t){return t.learderboard_auth},getRankPopupView(t){return t.rankpopup_view},getIsSkip(t){return t.uclass===g["kb"]?1:t.settings.is_skip},getListeningSettings(t){return t.listening_settings},getLearningStatus(t){return t.is_learning},getLearningMode(t){return t.process_type},getTotalStepCnt(t){return void 0!==t.modules[t.current_page]?t.modules[t.current_page].maxstep:null},getCurrentStep(t){return t.current_step+1},getCurModule(t){return void 0!==t.modules[t.current_page]?t.modules[t.current_page].idx:null},getCurModuleSeq(t){return void 0!==t.modules[t.current_page]?t.modules[t.current_page].seq:null},getNextModule(t){return void 0!==t.modules[t.current_page+1]?t.modules[t.current_page+1].idx:-1},getNextModuleSeq(t){return void 0!==t.modules[t.current_page+1]?t.modules[t.current_page+1].seq:-1},checkBankModule(t){return!(void 0===t.modules[t.current_page]||![g["vb"],g["M"],g["Q"],g["v"]].includes(t.modules[t.current_page].idx))},getModuleName(){return function(t){return t.capitalize()}},getCurStepper(t){return t.current_page+1},getIsScoring(t){return!Number(t.settings.is_scoringnext)},getDivision(t){return t.sentences&&t.sentences.length>0&&t.sentences[t.current_step]?t.sentences[t.current_step].division:""},getPrevDisabled(t){return t.process_prev_disabled},getNextDisabled(t){return t.process_next_disabled},getTtsPlaying(t){return t.tts_playing},getFlashShow(t){return t.flash_show},getOxShow(t){return t.ox_show},getVocaAudioUrl(t){if(!t.modules[t.current_page])return"";let e=t.modules[t.current_page].idx;if(!0===g["Eb"].includes(e)&&t.voca_audio_ctx&&t.voca_audio_ctx.length>0){let s;if(g["ub"]===e){for(let e=0;e0&&(e=t.current_step-t.words.length),e<0)return"";let i=t.audio_ctx[e]||"";return!0===g["Eb"].includes(s)?i:""},getMatchingData(t){return t.matching_data.selected_words},getMatcingResultHtml(t){return t.matching_data.result_html[t.current_step]},getGrammarMatcingResultHtml(t){return t.grammar_matching_data.result_html[t.current_step]},getGrammarActionCount(t){return t.grammar_action_count},getDictationLetters(t){return t.dictation_data.selected_letters[t.current_step]},getDictationResultHtml(t){return t.dictation_data.result_html[t.current_step]},getPopquizClass(t){return function(e){let s=0,i=t.popquiz_data.right_number[t.current_step];return Number(e)==Number(t.popquiz_select)?s=t.ox_show?t.ox_right?2:3:1:Number(e)==Number(i)&&t.ox_show&&(s=4),s}},getGrammarPopquizClass(t){return function(e){let s=0,i=0;return t[`grammar_${t.grammar_sub_unit}_data`]&&(i=t[`grammar_${t.grammar_sub_unit}_data`].right_number[t.current_step]),Number(e)==Number(t.popquiz_select)?s=t.ox_show?t.ox_right?2:3:1:Number(e)==Number(i)&&t.ox_show&&(s=4),s}},getWritingResultHtml(t){return t.writing_data.result_html[t.current_step]},getWritingHintClass(t){return function(e){let s="";return 1==t.writing_hint_pos.includes(e)&&(s="light-blue--text text--darken-3"),s}},getWritingHintDisabled(t){return t.writing_hint_hit>=g["cb"]},getWritingKHintDisabled(t){let e=g["ib"];return t.process_type==g["B"]&&(e=g["C"]),t.writing_k_hint_hit>=e},getWritingKQuestion(t){return t.writing_k_current_question},getRecordCurrentCnt(t){return t.record_current_cnt},getSpeakingResult(t){let e=t.current_step;return t.ox_show&&t.speaking_data.result_html[e]?t.speaking_data.result_html[e]:""},getChipsStateName(t){if(!t.modules||!t.modules[t.current_page])return"SC"===t.grammar_type&&{data_n:"grammar_matching_data",idx_n:"matching_exception_idx",chr_n:"matching_exception_char",cnt_n:"matching_ex_cmp_cnt"};if(t.modules[t.current_page]){let e=t.modules[t.current_page].idx,s={data_n:"",idx_n:"",chr_n:"",cnt_n:""},i=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"],o="";i.includes(e)&&(o=e.replace("G","").replace("_","").toLowerCase(),e="GRAMMAR");let a="";switch(e){case g["D"]:a="matching";break;case g["wb"]:a="writing";break;case"GRAMMAR":a="grammar_matching";break;default:return!1}return s.data_n=a+"_data",s.idx_n=a+"_exception_idx",s.chr_n=a+"_exception_char",s.cnt_n=a+"_ex_cmp_cnt",s}},getFBBookUnitId(t){let e=t.book,s=(t.book?t.book.id:null)||(t.unit?t.unit.book_id:null)||t.current_book_id||null,i=t.unit,o=Number(e.schedule_type),a=t.process_type?t.process_type.replace(/R/g,""):"";return`${s}-${e.dist_seq}-${o}-${o>0?i.seq:i.id}-${a}`},getPk(t){return function(e){return console.log(t,t.unit,e,t.unit[e]),!(!t.unit||!t.unit[e])&&t.unit[e]}},getRecFilename(t){return t.record_audio_file?t.record_audio_file:""},getFlashCardEngs(t){return t.flashcard_engs},getTodayStudy(t){return t.today_study},getMainPageInfo(t){return t.mainPageInfo},getBlockClick(t){return t.block_fastclick},getCIdForRecord(t){return Number(t.uclass)>g["jb"]?g["O"]:t.cid},getIsFreePass(t){return!0},getMockExamTime(t){return t.mockexam_minute+":"+t.mockexam_second},getMockexamMode(t){return t.is_mockexam&&0==t.mockexamrecord_id},getMockexamInUnit(t){return t.mockexam&&t.mockexam.schedule_id&&t.mockexam.books_id&&!t.mockexam.new_mockexam},getTrialGuide(t){return function(e){return"string"===typeof t.trial_guide?JSON.parse(t.trial_guide)[""+e]:t.trial_guide[""+e]}},getCurrentRestudy(t){return t.current_restudy},getEBookAudioIsPlaying(t){return!!t.currentEBookAudio&&t.eBookAudioIsPlaying},getEBookLoaded(t){return t.ebook_load},getIsEBookAutoPlay(t){return+t.isEBookAutoPlay},checkRequireVocaAudio(t){return new Promise(e=>{let s=!0;t.modules&&t.modules.length>0&&(s=t.modules.some((t,e)=>[0,2,6,7].includes(t.idx))),e(s)})},getInitGuideDialog(t){return t.init_guide_dialog},getGrammarDisabled(t){return t.grammar_disabled},isSynthesia(t,e){let s=!1;if(null!==e.getCurModule){const i=t.sentences.some(t=>1===+t.file_exists);s="school"===t.book_menu&&1===+t.book.category&&[0,99].includes(e.getCurModule)&&i}else t.process_type===g["y"]&&(s=!0);return s},getSpeakTimerStatus(t){return t.speak_timer},getScoringTimer(t){return t.scoring_timer},getAssessmentRemainingTime(t){if(null===t.assessmentRemainingTime||void 0===t.assessmentRemainingTime)return"00:00";const e=Math.floor(t.assessmentRemainingTime/60),s=t.assessmentRemainingTime%60,i=e.toString().padStart(2,"0"),o=s.toString().padStart(2,"0");return`${i}:${o}`}};function I(t){let e,s,i=t.length;while(0!==i)s=Math.floor(Math.random()*i),i-=1,e=t[i],t[i]=t[s],t[s]=e;return t}function D(t,e,s){let i,o=t.length,a=[],n=1,r=0,l=R(t);if(o<10){s&&l.indexOf(s)>-1&&l.splice(l.indexOf(s),1);let t=I(l);t=t.splice(0,3),t.push(s),a=I(t)}else{a[0]=s;while(0!==o){if(i=Math.floor(Math.random()*o),-1==a.indexOf(l[i])&&(o-=1,a[n]=l[i],n++,n>=e)){a=I(a);break}if(r++,r>300){a=I(a);break}}}return{choices:a,right_num:a.indexOf(s)}}function R(t){let e=Array.isArray(t)?[]:{};for(let s in t)"object"==typeof t[s]&&null!=t[s]?e[s]=R(t[s]):e[s]=t[s];return e}function P(t){for(var e="",s=new Uint8Array(t),i=s.byteLength,o=0;o0}function B(t,e,s){if(!t||!e)return!1;let i=document.createElement("span");i.style.fontFamily=e,i.style.fontSize=s+"px",i.style.height="auto",i.style.width="auto",i.style.bottom="-500px",i.style.position="absolute",i.style.whiteSpace="no-wrap",i.innerHTML=t,document.body.appendChild(i);let o=Math.ceil(i.clientWidth);return document.body.removeChild(i),o}function N(t,e){var s=[],i=-1;while(-1!=(i=t.indexOf(e,i+1)))s.push(i);return s}String.prototype.capitalize=function(){return"writing_k"==this?"Writing":"popquiz"==this?"Pop Quiz":this.charAt(0).toUpperCase()+this.slice(1)},Date.prototype.yyyymmdd=function(t){let e=this.getMonth()+1,s=this.getDate(),i=t||"";return[this.getFullYear(),(e>9?"":"0")+e,(s>9?"":"0")+s].join(i)},Date.prototype.yyyymm=function(t){let e=this.getMonth()+1,s=t||"";return[this.getFullYear(),(e>9?"":"0")+e].join(s)},Number.prototype.fontRemToPx=function(t){if(isNaN(this)||isNaN(t))return!1;let e=[600,960,1264,1904,99999],s=[9,11,12,14,14],i=null;for(let o=0;o{switch(t){case"L":return"수업";case"T":return"평가"}},L=t=>{switch(t){case"L":return"#ff5459";case"T":return"#314891"}},z=(t,e)=>t.length===e.length&&t.every((t,s)=>t===e[s]),O=t=>null!=t;function j(t,e){return t.length===e.length&&t.every((t,s)=>t===e[s])}function V(t){const e=t.slice(),s=[...new Set(e)];if(t.length<2||s.length<2)return t;let i=I(t.slice()),o=1;const a=10;while(j(i,e)&&o=2&&([i[0],i[t-1]]=[i[t-1],i[0]])}return i}var F=s("bc3a"),G=s.n(F),W={setExceptBooks(t,e){t.except_books=e,window.sessionStorage.setItem("except_books",JSON.stringify(t.except_books)||"")},setPlatformName(t,e){t.platform=e},setScreenSize(t,e){t.screen_width=e.screen_width,t.screen_height=e.screen_height},setLevelInfo(t,e){t.book=e.grade,t.unit=e.name},setAssessmentInfo(t,e){t.assessmentInfo=e},checkMobile(t){let e=!1;(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))&&(e=!0),e||!window.cordova||"ios"!==window.cordova.platformId&&"android"!==window.cordova.platformId||(e=!0),t.is_mobile=e,window.IS_MOBILE=e},setIndexDialog(t,e){t.index_dialog_on=e},setRecognitionAvailable(t,e){t.recognition_available=e},setWebkitSpeechAvailable(t,e){t.webkit_speech_available=e,!0===e&&(window.URL=window.URL||window.webkitURL,window.navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia)},addLoadingPercent(t,e){t.loading_percent>=100||(!isNaN(e)&&e<100?(t.loading_percent=t.loading_percent+e,t.loading_percent>100&&(t.loading_percent=100)):t.loading_percent+=1)},setZeroLoadingPercent(t){t.loading_percent=0},setListeningSettings(t,e){let s=R(t.listening_settings);s.all_repeat=e.all_repeat,s.sen_repeat=e.sen_repeat,s.listening_speed=e.listening_speed>5?5:e.listening_speed,t.listening_settings=Object.freeze(s),window.sessionStorage.setItem("listening_settings",JSON.stringify(t.listening_settings)||""),t.flash_delay_time=500*(6-Number(e.listening_speed))},setLearningStatus(t,e){t.is_learning=!!e,console.log("setLearningStatus",t.is_learning),t.is_learning||(t.process_type=null,t.current_restudy=!1,t.clear_prev_result=!1)},setAssessmentRecordId(t,e){t.assessmentRecordId=e},initSound(t,e){t.init_sound=e},setLogin(t,e){t.is_login=!!e,t.auth_expired_dialog=!1},setFbSubscribe(t,e){t.fb_subscribe=e},setUid(t,e){t.uid=e},setNetworkStatus(t,e){t.network_status=e},setDuploginDialog(t,e){let s=[];s=[3996,9375,8790],s.push(1),s.includes(+t.cid)?t.dup_login_dialog=!1:t.dup_login_dialog=e},setReloginDialog(t,e){t.relogin_dialog=e},setMobilePause(t,e){t.mobile_pause=e},setBookmarkUse(t,e){t.bookmark_use=+e,window.sessionStorage.setItem("bookmark_use",+e)},setLevelTestStatus(t,e){t.leveltest_status=+e,window.sessionStorage.setItem("leveltest_status",+e)},saveUserInfo(t,e){console.log("saveUserInfo",e),t.product_type=e.product_type,t.promotion_check=e.promotion_check,t.cid=e.academy_id,t.uid=e.id,t.grade=e.grade,t.uname=e.name,t.cname=e.cname,t.class_name=e.class_name,t.class=e.class,t.ulogofile=e.logofile,t.uclass=!!e.uclass&&Number(e.uclass),t.clogofile=e.academy_logofile,t.sound_effect=Number(e.sound_effect),t.tuto=e.tuto?JSON.stringify(e.tuto):null,t.a_count=e.a_count?e.a_count:null,t.leveltest_status=e.leveltest_status,e.class&&e.class[0]&&e.class[0].lesson_speed&&(t.lesson_speed=Number(e.class[0].lesson_speed)),e.bookmark_use&&!isNaN(e.bookmark_use)&&(t.bookmark_use=parseInt(e.bookmark_use)),e.postdate&&(t.upostdate=e.postdate),t.except_books=e.except_books?JSON.stringify(e.except_books):null,t.trial_guide=e.trial_guide?JSON.stringify(e.trial_guide):JSON.stringify(t.trial_guide),window.sessionStorage.setItem("product_type",t.product_type||""),window.sessionStorage.setItem("promotion_check",t.promotion_check||0),window.sessionStorage.setItem("cid",t.cid||""),window.sessionStorage.setItem("uid",t.uid||""),window.sessionStorage.setItem("uname",t.uname||""),window.sessionStorage.setItem("cname",t.cname||""),window.sessionStorage.setItem("class_name",t.class_name||""),window.sessionStorage.setItem("class",JSON.stringify(t.class)||""),window.sessionStorage.setItem("ulogofile",t.ulogofile||""),window.sessionStorage.setItem("uclass",t.uclass||""),window.sessionStorage.setItem("clogofile",t.clogofile||""),window.sessionStorage.setItem("sound_effect",t.sound_effect||0),window.sessionStorage.setItem("lesson_speed",t.lesson_speed||""),window.sessionStorage.setItem("tuto",t.tuto||""),window.sessionStorage.setItem("upostdate",t.upostdate||""),window.sessionStorage.setItem("bookmark_use",t.bookmark_use||0),window.sessionStorage.setItem("a_count",t.a_count||""),window.sessionStorage.setItem("except_books",t.except_books||""),window.sessionStorage.setItem("trial_guide",t.trial_guide||""),window.sessionStorage.setItem("leveltest_status",t.leveltest_status),e.user_option&&(t.isEBookAutoPlay=+e.user_option.s_ebook_autoplay,t.shadow_reading_repeat=+e.user_option.shadow_reading_repeat,t.shadow_mode=1===+e.user_option.shadow_synthesia?"synthesia":"text",t.listening_mode=1===+e.user_option.listening_synthesia?"synthesia":"text",t.speak_timer=0===+e.user_option.speak_timer?0:1,window.sessionStorage.setItem("s_ebook_autoplay",+t.isEBookAutoPlay),window.sessionStorage.setItem("shadow_reading_repeat",+t.shadow_reading_repeat),window.sessionStorage.setItem("shadow_synthesia",+e.user_option.shadow_synthesia),window.sessionStorage.setItem("listening_synthesia",+e.user_option.listening_synthesia),window.sessionStorage.setItem("speak_timer",+t.speak_timer));let s=R(t.settings);s.is_random=+e.is_random||0,s.is_skip=+e.is_skip||0,g["P"]==e.product_type&&(s.is_skip=1),s.is_scoringnext=+e.is_scoringnext||0,s.is_studentcontrol=+e.is_studentcontrol||0,s.is_restudy=+e.is_restudy||0,s.is_openbook=e.is_openbook&&t.uclass{t.seconds+=1},1e3))},pauseLevelTimer(t){t.isLevelTestStart&&(clearInterval(t.levelTimer),t.isLevelTestStart=!1)},stopLevelTimer(t){clearInterval(t.levelTimer),t.isLevelTestStart=!1,t.levelTimer=null,t.seconds=0},setAssessmentLimitTime(t,e){t.assessmentLimitTime=e,t.assessmentRemainingTime=e},startAssessmentTimer(t){t.isAssessmentTimerActive||null===t.assessmentLimitTime||void 0===t.assessmentLimitTime||(t.isAssessmentTimerActive=!0,t.assessmentTimer=setInterval(()=>{t.assessmentRemainingTime>0?t.assessmentRemainingTime-=1:(clearInterval(t.assessmentTimer),t.isAssessmentTimerActive=!1,t.assessmentTimer=null)},1e3))},stopAssessmentTimer(t){t.assessmentTimer&&clearInterval(t.assessmentTimer),t.isAssessmentTimerActive=!1,t.assessmentTimer=null},resetAssessmentTimer(t){t.assessmentTimer&&clearInterval(t.assessmentTimer),t.isAssessmentTimerActive=!1,t.assessmentTimer=null,t.assessmentLimitTime=null,t.assessmentRemainingTime=0},setMockExam(t,e){t.mockexam=e;for(let s=0;s0===t).length;t.mockexam_allchk=0===s},updateExamTime(t){let e=Number(t.mockexam_second),s=Number(t.mockexam_minute);e-=1,e<0&&(s-=1,e=59),e<10&&(e="0"+e),t.mockexam_second=e,t.mockexam_minute=s},setIsLearned(t,e){t.is_learned=e},setTodayStudy(t,e){t.today_study=e},setCourseBooks(t,e){t.course_books=Object.freeze(e)},setReadingBooks(t,e){t.reading_books=Object.freeze(e)},setSchoolBooks(t,e){t.school_books=Object.freeze(e)},setListeningBooks(t,e){t.listening_books=Object.freeze(e)},setStoryBooks(t,e){t.story_books=Object.freeze(e)},setBookSelectGrade(t,e){t.book_select_grade=e||"all"},setLoadStart(t,e){t.load_start=e},setCopyGrammarType(t){t.copy_grammar_type=t.grammar_type},setBookInfo(t,e){let s,i=[],o=[],a=null;switch(console.log("setBookInfo (payload) : ",e),e.type.substr(0,1)){case g["bb"]:s=e.book.study_modules,g["bb"]!==e.type||e.init||null===e.unit.study_done_modules||Number(e.unit.study_cnt)>0&&e.book.study_modules==e.unit.study_done_modules||(a=parseInt(e.unit.study_done_modules).toString(2));break;case g["hb"]:s=e.book.test_modules,g["hb"]!==e.type||e.init||null===e.unit.test_done_modules||Number(e.unit.test_cnt)>0&&e.book.test_modules==e.unit.test_done_modules||(a=parseInt(e.unit.test_done_modules).toString(2));break;default:break}if(null!==a){a=a.padStart(10,"0");let e=0;for(let t=0;t0&&(e+=1);a&&(t.current_page=e)}if(s){s=parseInt(s).toString(2),s=s.padStart(10,"0");for(let t=0;t0&&o.push(t)}}t.book=Object.freeze(e.book),t.current_book_id=e.book.id,t.init=e.init,t.unit=Object.freeze(e.unit),t.img_use=e.book.img_use,t.auto_exam=e.book.auto_exam,t.process_type=e.type,t.schedule_id=e.book.schedule_id||0,t.schedule_type=+e.book.schedule_type?+e.book.schedule_type:0,console.log("this.setBookInfo : ",o);for(let[n,r]of Object.entries(o)){let s={idx:Number(r),name:g["Cb"][r],maxstep:0,seq:+n};g["bb"]==t.process_type?g["A"]==+s.idx?s.maxstep=+e.unit.words_cnt+ +e.unit.sentences_cnt:s.maxstep=+e.unit.sentences_cnt:g["hb"]==t.process_type&&(s.maxstep=Math.round(.7*e.unit.sentences_cnt)),i.push(s)}t.modules=Object.freeze(i)},setBookInfoVMA(t,e){let s,i=[],o=[],a=null,n=e.type.replace(g["R"],"");const r={V:e.book.v_mod,M:e.book.m_mod,VM:e.book.m_mod,A:e.book.a_mod,VA:e.book.a_mod,SV:e.book.v_mod,SM:e.book.m_mod,SA:e.book.a_mod},l={V:"voca",M:"major",VM:"major",A:"advanced",VA:"advanced",SV:"story_v",SM:"story_m",SA:"story_a"},c=e.unit[l[n]+"_cnt"],d=e.unit[l[n]+"_done_modules"];s=r[n],e.init?["SV","SM","SA"].includes(n)&&(t.current_page=0):null===d||+c>0&&s==d||(a=d),s&&(o=["SBA"].includes(s)?[s]:Array.from(s)),t.book=Object.freeze(e.book),t.current_book_id=e.book.id||e.unit.book_id,t.unit=Object.freeze(e.unit),t.init=e.init,t.img_use=e.book.img_use,t.auto_exam=e.book.auto_exam,t.process_type=e.type,t.schedule_id=e.book.schedule_id,t.schedule_type=+e.book.schedule_type?+e.book.schedule_type:0;for(let[h,u]of Object.entries(o)){let s={idx:isNaN(u)?u:Number(u),name:g["Cb"][u],maxstep:0,seq:+h};if([g["pb"],g["sb"],g["qb"]].includes(t.process_type))isNaN(s.idx)?s.maxstep=0:s.maxstep=Number(e.unit.words_cnt),[g["sb"],g["qb"]].includes(t.process_type)&&("문장찾기"==s.name&&(s.name="팝퀴즈"),"영작하기"==s.name&&(s.name="라이팅"));else if(g["B"]==t.process_type||g["a"]==t.process_type)isNaN(s.idx)?s.maxstep=0:s.maxstep=Math.round(e.unit.sentences_cnt);else if(t.process_type==g["Z"]){let t="sentences";3===+u&&(s.name="단어점검",t="words"),isNaN(s.idx)?s.maxstep=0:s.maxstep=Math.round(e.unit[t+"_cnt"])}i.push(s)}if(null!==a&&void 0!==a){let e=a.slice(-1);t.current_page=a.indexOf(e)+1}t.modules=Object.freeze(i)},setBookInfoGRAMMAR(t,e){let s,i,o,a=[],n=[],r=null,l=e.type.replace(g["R"],"");l==g["u"]?(i="v",o="grammar_theory"):l==g["s"]?(i="m",o="grammar_basics"):l==g["t"]&&(i="a",o="grammar_deep"),s=e.book[i+"_mod"],e.init?t.current_page=0:null===e.unit[o+"_done_modules"]||Number(e.unit[o+"_cnt"])>0&&e.book[i+"_mod"]==e.unit[o+"_done_modules"]||(r=e.unit[o+"_done_modules"]),t.book=Object.freeze(e.book),t.current_book_id=e.book.id,t.unit=Object.freeze(e.unit),t.init=e.init,t.img_use=e.book.img_use,t.auto_exam=e.book.auto_exam,t.process_type=e.type,t.schedule_id=e.book.schedule_id,t.schedule_type=+e.book.schedule_type?+e.book.schedule_type:0;let c=e.cnt.split("-");if(s){const e=+t.unit.book_id,i=+t.unit.seq+1,o=t.unit.name,a=s.split("_")[0];g["zb"].includes(e)&&i%3===0&&["GT","GD"].includes(a)||g["Ab"].includes(e)&&o.match("Review")||g["Ab"].includes(e)&&t.unit.v_mod&&"GT_0"==t.unit.v_mod?"GT"==a?n=["0"]:"GB"!=a&&"GD"!=a||(n=["1"]):n=Array.from(s.split("_")[1])}for(let[d,h]of Object.entries(n)){h=`${s.split("_")[0]}_${h}`;let t={idx:isNaN(h)?h:Number(h),name:g["Cb"][h],maxstep:c[d],seq:+d};a.push(t)}if(null!==r&&void 0!==r){let e=r.slice(-1);t.current_page=r.indexOf(e)+1}t.modules=Object.freeze(a)},onLoading(t,e){t.module_loading=e},setBookDetails(t,e){t.current_book_id=e.book_id,t.cur_book_publisher=e.publisher,t.cur_book_publishdate=e.publishdate,t.cur_book_unit_cnt=e.unit_cnt,t.schedule_id=e.schedule_id||null},setCurUnitId(t,e){t.current_unit_id=e},setSentences(t,e){t.sentences=Object.freeze(e)},clearSentences(t){t.sentences=Object.freeze([])},setStudyInfo(t,e){let s=[],i=[],o=[],a=[],n=R(t.modules),r=!!e.loadeddata&&JSON.parse(e.loadeddata);if(t.words=Object.freeze(e.words||[]),r&&r.sentences_ids)for(let d=0;d{let i=[],o=[],a=[],n=R(t.modules),r="",l=!!e.loadeddata&&JSON.parse(e.loadeddata),c=[],d=[],h=[];if(r=[g["a"],g["Z"],g["W"]].includes(t.process_type)?"sentences":"words",t.init_loading=!1,t.process_type===g["Z"]){const s=+t.book.level<=10;for(let i=0,o=e.sentences.length;i{let o=l[s+"_ids"];if(o)for(let a=0;a0?i=I(e[r]):[g["ab"],g["Z"],g["W"]].includes(t.process_type)?(c=e.sentences,d=e.words,t.process_type===g["ab"]&&(h=e.pages)):i=[g["pb"],g["sb"],g["qb"]].includes(t.process_type)&&1==t.settings.is_random?I(e[r]):e[r],[g["ab"],g["Z"],g["W"]].includes(t.process_type))for(let p=0,_=n.length;p<_;p++)isNaN(n[p].idx)?"SBA"==n[p].idx?n[p].maxstep=e[r].length:"E"==n[p].idx?n[p].maxstep=+t.book.unit_cnt:n[p].maxstep=0:(n[p].maxstep=e[r].length,3===n[p].idx&&(n[p].maxstep=e["words"].length));else if([g["pb"],g["a"]].includes(t.process_type)){for(let t=0,s=n.length;t{if(200===t.status&&t.data)for(let s=0,i=n.length;s{console.log(t)})}else for(let t=0,p=n.length;t0?1:0==t.settings.is_random?0:1;let a=[],n=!1;if(150==t.cid&&(1029==t.uid&&793==t.book.schedule_id&&t.process_type==g["hb"]&&840==t.unit.id&&0==o&&(o=1),1030==t.uid&&794==t.book.schedule_id&&t.process_type==g["hb"]&&851==t.unit.id&&0==o&&(o=1),1033==t.uid&&794==t.book.schedule_id&&t.process_type==g["hb"]&&850==t.unit.id&&0==o&&(o=1),1035==t.uid&&789==t.book.schedule_id&&t.process_type==g["bb"]&&764==t.unit.id&&i==g["D"]&&0==o&&(o=1),1045==t.uid&&791==t.book.schedule_id&&t.process_type==g["bb"]&&735==t.unit.id&&i==g["wb"]&&0==o&&(o=1),1062==t.uid&&798==t.book.schedule_id&&t.process_type==g["bb"]&&1171==t.unit.id&&i==g["wb"]&&0==o&&(o=1)),0==o){let t=s.sentences_ids;if(t&&t.length>0){for(let e=0;eNumber(t[e])&&(i+=1);a[i]=e,e>0&&t[e-1]>t[e]&&(n=!0)}!0===n&&Number(s.current_step)>0&&(n=!1);for(let e=1;eNumber(t[a[e]])&&(n=!0)}}if(n){if(i===g["V"]&&t.is_mobile&&"android"==t.platform){let e=Math.round(.6*parseInt(t.modules[t.current_page].maxstep));if(g["qb"]==t.process_type){const s=t.words[t.current_step];window.Study.inputSenIdInfo(s.id,s[e>t.current_step?"word":"mean"])}else{const s=t.sentences[t.current_step];window.Study.inputSenIdInfo(s.id,s[e>t.current_step?"sentence":"mean"])}}return t.load_start=!1,!0}if(t.current_page=s.current_page,t.current_step=s.current_step,[g["pb"],g["sb"],g["qb"]].includes(t.process_type)){if(s.words_ids&&"object"===typeof s.words_ids&&s.words_ids.length>0){let e=R(t.words);t.words=[];for(let i=0;i0){let e=s.voca_audio_files;for(let s=0;s0){for(let s=0;s0){let e=R(t.sentences);t.sentences=[];for(let i=0;i0&&"GRAMMAR"!=i){let e=s.audio_files;for(let s=0;s0){for(let s=0;st.current_step?t.words[t.current_step].word:t.words[t.current_step].mean,window.Study.inputSenIdInfo(t.words[t.current_step].id,s)):(s=e>t.current_step?t.sentences[t.current_step].sentence:t.sentences[t.current_step].mean,window.Study.inputSenIdInfo(t.sentences[t.current_step].id,s))}break;case g["ub"]:s.wordbingo_words&&(t.wordbingo_words=s.wordbingo_words),s.wordbingo_data&&(t.wordbingo_data=Object.freeze(s.wordbingo_data)),s.wordbingo_selections&&(t.wordbingo_selections=s.wordbingo_selections);break;case g["vb"]:case g["M"]:case g["Q"]:case g["v"]:s.bank_maxstep&&(t.bank_maxstep=s.bank_maxstep),s.bank_data&&(t.bank_data=Object.freeze(s.bank_data)),s.bank_questions&&(t.bank_questions=s.bank_questions);break;case g["X"]:s.grammar_bank_data&&(t.grammar_bank_data=Object.freeze(s.grammar_bank_data));break;default:break}s.wrong_sentence_ids&&(t.wrong_sentence_ids=Object.freeze(s.wrong_sentence_ids)),s.wrong_sentence_write_ids&&(t.wrong_sentence_write_ids=Object.freeze(s.wrong_sentence_write_ids))},setProcessType(t,e){t.process_type=e},grammarActionCount(t){t.grammar_action_count++},toggleTimer(t,e){const s=new Date,i=s.getTime()+6e4*s.getTimezoneOffset(),o=new Date(i+324e5);e?t.start_time=o.getTime():t.end_time=o.getTime()},allRepeatAdd(t){t.cur_all_repeat_cnt=t.cur_all_repeat_cnt+1},addStep(t){if(void 0===t.modules[t.current_page])return;let e=Number(t.modules[t.current_page].idx);if(t.current_step++,g["V"]==e&&1==t.is_mobile&&"android"==t.platform){let e=Math.round(.6*parseInt(t.modules[t.current_page].maxstep)),s="";g["qb"]==t.process_type?(s=e>t.current_step?t.words[t.current_step].word:t.words[t.current_step].mean,window.Study.inputSenIdInfo(t.words[t.current_step].id,s)):(s=e>t.current_step?t.sentences[t.current_step].sentence:t.sentences[t.current_step].mean,window.Study.inputSenIdInfo(t.sentences[t.current_step].id,s))}},subStep(t){t.current_step=t.current_step-1},setStep(t,e){t.current_step=Number(e)},addPage(t){t.current_page=t.current_page+1},subPage(t){t.current_page=t.current_page-1},initStep(t){if(void 0===t.modules[t.current_page])return;let e=Number(t.modules[t.current_page].idx);if(t.current_step=0,g["V"]==e&&1==t.is_mobile&&"android"==t.platform){let e=Math.round(.6*parseInt(t.modules[t.current_page].maxstep)),s="";g["qb"]==t.process_type?(s=e>t.current_step?t.words[t.current_step].word:t.words[t.current_step].mean,window.Study.inputSenIdInfo(t.words[t.current_step].id,s)):(s=e>t.current_step?t.sentences[t.current_step].sentence:t.sentences[t.current_step].mean,window.Study.inputSenIdInfo(t.sentences[t.current_step].id,s))}},initPage(t){t.current_page=0},initializeStudyInfo(t){t.words=Object.freeze([]),t.sentences=Object.freeze([])},initializeBookInfo(t){t.book=Object.freeze({}),t.unit=Object.freeze({}),t.modules=Object.freeze([])},prevDisabled(t,e){t.process_prev_disabled=e},nextDisabled(t,e){t.process_next_disabled=e},setBlockClick(t,e){t.block_fastclick=e},setTTSPlayingStatus(t,e){t.tts_playing=e},setFlashShow(t,e){t.flash_show=e},setSpeakingKorShow(t,e){t.speaking_kor_show=e},playAudio(t){if(t.current_tts_audio){if("V"===t.listening_type)t.current_tts_audio.volume=.6;else{let e=t.current_step;if(Number(t.modules[t.current_page].idx)===g["A"]&&(e-=t.words.length),!t.audio_ctx[e])return t.tts_playing=!1,t.dialog_network_check=!0,t.delay_actor=window.setTimeout(()=>{t.dialog_network_check=!1},2e3),!1;t.current_tts_audio.volume=1}!isNaN(t.lesson_speed)&&t.lesson_speed&&100!==t.lesson_speed&&(t.current_tts_audio.playbackRate=t.lesson_speed/100),t.tts_playing=!0,t.current_tts_audio.play()}},pauseAudio(t){t.current_tts_audio&&(t.tts_playing=!1,t.current_tts_audio.pause())},toggleAudio(t){t.current_tts_audio&&(t.tts_playing=!t.tts_playing,t.tts_playing?t.current_tts_audio.play():t.current_tts_audio.pause())},playSynthesiaVideo(t){t.current_synthesia_video&&(!isNaN(t.lesson_speed)&&t.lesson_speed&&100!==t.lesson_speed&&(t.current_synthesia_video.playbackRate=t.lesson_speed/100),t.tts_playing=!0,t.current_synthesia_video.play())},pauseSynthesiaVideo(t){t.current_synthesia_video&&(t.tts_playing=!1,t.current_synthesia_video.currentTime=0,t.current_synthesia_video.pause())},toggleSynthesia(t){t.current_synthesia_video&&(t.tts_playing=!t.tts_playing,t.current_synthesia_video.paused?(!isNaN(t.lesson_speed)&&t.lesson_speed&&100!==t.lesson_speed&&(t.current_synthesia_video.playbackRate=t.lesson_speed/100),t.current_synthesia_video.play()):t.current_synthesia_video.pause())},setListeningType(t,e){t.listening_type=e},setCurTTSId(t,e){t.current_tts_id=e},setCurTTSAudio(t,e){t.current_tts_audio=e},setCurSynthesia(t,e){t.current_synthesia_video=e,e&&"ios"===t.platform&&t.current_synthesia_video.load()},setAudioCtx(t,e){o["default"].set(t.audio_ctx,Number(e.idx),e.url),t.init_loading&&(t.init_loading=!1)},setVocaAudioCtx(t,e){o["default"].set(t.voca_audio_ctx,Number(e.idx),e.url),t.init_loading&&(t.init_loading=!1)},setVideoCtx(t,e){o["default"].set(t.video_ctx,+e.idx,e.url),t.init_loading&&(t.init_loading=!1)},setAudioFile(t,e){return new Promise(s=>{let i=e.idx,o=e.file,a=R(t.audio_files);void 0===i?a.splice(a.indexOf(void 0),1,o):a.splice(+i,1,o),t.audio_files=Object.freeze(a),s()})},setVocaAudioFile(t,e){let s=e.idx,i=e.file,o=R(t.voca_audio_files);void 0===s?o.push(i):o.splice(+s,1,i),t.voca_audio_files=Object.freeze(o)},setVocaImgFile(t,e){t.voca_imgs.splice(e.idx,1,e.data)},setEndAudio(t,e){t.current_tts_audio&&(t.cur_sen_repeat_cnt=t.cur_sen_repeat_cnt+1,t.current_tts_audio.pause(),t.current_tts_audio.currentTime=0,t.tts_playing=!1)},addSenRepeatCnt(t){t.cur_sen_repeat_cnt+=1},setRepeatCntZero(t){t.cur_sen_repeat_cnt=0},setRecordFilename(t,e){t.record_audio_file=e+"?r="+t.record_current_cnt},setRecordFilenameNull(t){t.record_audio_file=null},addRecordCnt(t,e){t.record_current_cnt++,t.record_current_cnt>1&&(t.speaking_kor_show=!0)},subRecordCnt(t,e){t.record_current_cnt--},setRecordCntZero(t){t.record_current_cnt=0},setCheckedWrong(t,e){t.checked_wrong=e},addWrongSenId(t){if(!t.ox_right){const e=t.modules[t.current_page].idx;if(7===e){const e=t.wordbingo_data.right[t.current_step];if(e)return}let s,i=t.book&&50===+t.book.booktype&&0===+t.settings.is_scoringnext;s=[g["pb"],g["sb"],g["qb"]].includes(t.process_type)||i&&0===t.current_page?t.words[t.current_step].id:t.sentences[t.current_step].id;const o=i&&0===t.current_page?"word":"sentence";if(s&&!t[`wrong_${o}_ids`].includes(+s)){let e=R(t[`wrong_${o}_ids`]);e.push(+s),t[`wrong_${o}_ids`]=Object.freeze(e)}if(+e==g["wb"]){let e=R(t.wrong_sentence_write_ids);e&&0!=e.length||(e=R(t.wrong_sentence_ids)),e.push(s),t.wrong_sentence_write_ids=Object.freeze(e)}}},addWrongSenAllId(t){let e=t.book&&50===+t.book.booktype&&0===+t.settings.is_scoringnext;const s=[g["pb"],g["sb"],g["qb"]].includes(t.process_type)||e&&0===t.current_page?"words":"sentences",i=e&&0===t.current_page?"word":"sentence";let o=R(t[`wrong_${i}_ids`]);for(let a=0,n=t[s].length;a=0&&(i.selected_words[o]=i.selected_words[o].replace(" ","")):o>=0&&-1==i.selected_words[o].indexOf(" ")&&(i.selected_words[o]=i.selected_words[o]+" "),i.selected_words.push(e.word+" "),t[s.data_n]=Object.freeze(i)},setLongChips(t,e){"boolean"==typeof e?t.long_chips.push(e):"clear"==e&&(t.long_chips=[])},setChipsInitData(t,e){let s=e.s_name,i=R(t[s.data_n]);i.choice_words=e.words,e.split_words&&(i.split_words=e.split_words),e.idx_match_arr&&(i.idx_relation=e.idx_match_arr),t[s.data_n]=Object.freeze(i),t[s.idx_n]=Object.freeze(e.idx),t[s.chr_n]=Object.freeze(e.chars)},setGrammarChipsInitData(t,e){let s=e.s_name,i=R(t[s.data_n]);i.choice_words=e.words,t[s.data_n]=Object.freeze(i)},setGrammarMC(t,e){let s,i=t.grammar_sub_unit;s="t"==i.split("")[0]?t.modules.findIndex(t=>{const e=i.split("");return t.idx===`G${e[0].toUpperCase()}_${e[1]}`}):t.modules.findIndex(t=>{const e=i.split("");return t.idx===`G${e[0].toUpperCase()}_${e[1]}`});let o={choices:[],right_number:[],answers:[],right:[],question:[],passage:[]};o.choices=e.choices,o.right_number=e.right_number,o.question=e.question,o.passage=e.passage?e.passage:null,t[`grammar_${i}_data`]=Object.freeze(o),t.modules[s].maxstep=t.sentences.length},setGrammarCAB(t,e){let s,i=t.grammar_sub_unit;s="t"==i.split("")[0]?Number(i.split("")[1]):Number(i.split("")[1])-1;let o={choices:[],right_number:[],answers:[],right:[],question:[]};t[t.grammar_sub_unit+"_sentences"]=t.sentences,o.choices=e.choices,o.right_number=e.right_number,o.question=e.question,t[`grammar_${i}_data`]=Object.freeze(o),t.modules[s].maxstep=t.sentences.length},setGrammarSC(t,e){let s,i=t.grammar_sub_unit;s="t"==i.split("")[0]?Number(i.split("")[1]):Number(i.split("")[1])-1;let o={choices:[],right_number:[],answers:[],right:[],question:[]};t[t.grammar_sub_unit+"_sentences"]=t.sentences,o.choices=e.choices,o.right_number=e.right_number,o.question=e.question,t[`grammar_${i}_data`]=Object.freeze(o),t.modules[s].maxstep=t.sentences.length},setChipHtmlData(t,e){let s=e.s_name,i=R(t[s.data_n]);"result_html"in e&&i.result_html.push(e.result_html),t[s.data_n]=Object.freeze(i)},clearMatching(t){let e=R(t.matching_data);e.selected_words=[],e.selected_keys=[],t.matching_data=Object.freeze(e),t.matching_ex_cmp_cnt=0},clearGrammarMatching(t){let e=R(t.grammar_matching_data);e.selected_words=[],e.selected_keys=[],t.grammar_matching_data=Object.freeze(e)},subMatchingSelect(t,e){if(t.ox_show)return;if(t.matching_ex_cmp_cnt>0){let s=e.word.match(/[\.,\?!~\#\"\“\”:_\=\- \s]/gi);s&&(t.matching_ex_cmp_cnt=t.matching_ex_cmp_cnt-s.length)}let s=R(t.matching_data);s.selected_keys.pop(),s.selected_words.pop(),t.matching_data=Object.freeze(s)},subGrammarMatchingSelect(t,e){if(t.ox_show)return;if(t.grammar_matching_ex_cmp_cnt>0){let e=payload.word.match(/[\.,\?!~\#\"\“\”:_\=\- \s]/gi);e&&(t.grammar_matching_ex_cmp_cnt=t.grammar_matching_ex_cmp_cnt-e.length)}let s=R(t.grammar_matching_data);s.selected_keys.pop(),s.selected_words.pop(),t.grammar_matching_data=Object.freeze(s)},checkMatching(t){let e=!1,s=t.sentences[t.current_step].sentence,i=t.matching_data.selected_words.join(" "),o=R(t.matching_data);i=i.trim(),o.answers[t.current_step]=i,i=i.replace(/[^a-zA-Z0-9]/gi,""),s=s.replace(/[^a-zA-Z0-9]/gi,""),e=s==i,o.right[t.current_step]=e,t.matching_data=Object.freeze(o),t.ox_right=e},checkGrammarMatching(t){let e=!1,s=t.sentences[t.current_step].rightanswer,i=t.grammar_matching_data.selected_words,o=R(t.grammar_matching_data);for(let a=0;a0){let t=Math.floor(Math.random()*a);if(0==n.includes(t)&&(n.push(t),r--),l++,l>1e3)break}let c=[];o=o.map((t,e)=>n.includes(e)&&new RegExp(/[a-zA-Z]/i).test(t)?(c.push(t),"_"):t),c=V(c),i.choice_letters[t]=c;for(let e=0;enew RegExp(/[a-zA-Z]/i).test(t)?(s.push(t),"_"):t),s=V(s),i.choice_letters[o]=s;for(let e=0;e0&&d.length<45){let e=Math.floor(Math.random()*r),s=a[e].replace(/[^a-zA-Z]/gi,"");if(t++,t>1e3)break;if(!(n&&0===e||""==s)){if(0==l.includes(e)){l.push(e);let t=Array.from(a[e]);for(let e=0;e0){let e=null;const i=t.book&&t.book.grade&&t.book.grade.includes("e"),o=t.book&&t.book.level&&Number(t.book.level)<=10,a=t.dictation_data.choice_letters[t.current_step].length,n=a>=20;for(s=0;s0)for(s=0;s=20;if(!o&&!a||n){for(let r=0;r0){t.dictation_choice[r].cnt-=1,s=!0,i=t.dictation_choice[r],i.index=r;break}}else void 0!==e.buttonIndex&&t.dictation_choice[e.buttonIndex]&&(i=t.dictation_choice[e.buttonIndex],i.cnt>0&&(i.cnt-=1,s=!0));if(s)for(let r=0;r=20;if(!o&&!a||n){const e=t.dictation_select_key[i];void 0!==e&&e>=0&&t.dictation_choice[e]&&t.dictation_choice[e].max>t.dictation_choice[e].cnt&&(t.dictation_choice[e].cnt+=1,s=!0)}else{const e=t.dictation_select_key[i];void 0!==e&&t.dictation_choice[e]&&t.dictation_choice[e].max>t.dictation_choice[e].cnt&&(t.dictation_choice[e].cnt+=1,s=!0)}s&&(t.dictation_select.splice(e.key,1,"_"),t.dictation_choice_idx.splice(i,1),t.dictation_select_key.splice(i,1))},checkDictation(t){let e,s=!1,i=R(t.dictation_select);for(let n=0;n`,a=R(t.dictation_data);for(let n=0;n"+s[n]+"":""+s[n]+""}else t+=""+s[n]+"";o+=t}else o+=" "}o+="",a.result_html.push(o),t.dictation_data=Object.freeze(a)},clearPopquiz(t){t.popquiz_select=-1,t.popquiz_choices=Object.freeze([])},setPopquiz(t,e){let s={choices:[],right_number:[],answers:[],right:[],skip:!1};s.choices=e.choices,s.right_number=e.right_number,t.popquiz_data=Object.freeze(s)},renderPopquiz(t){if(t.popquiz_data.choices[t.current_step]){let e,s=R(t.popquiz_choices);for(e=0;ee==t.cab_select);if(t.cab_select="",i.right_number[t.current_step]==a&&(e=!0),i.right[t.current_step]=e,i.answers[t.current_step]=a,t.current_step==t.sentences.length-1){let e=[];for(let s=0;s / ⓑ");o=``,-1===i.answers[s]?0===i.right_number[s]?(a="c_b",n="grey--text text--lighten-3"):(a="grey--text text--lighten-3",n="c_b"):0===i.answers[s]?i.right[s]?(a="c_b",n="grey--text text--lighten-3"):(a="c_b",n="c_r"):1===i.answers[s]&&(i.right[s]?(a="grey--text text--lighten-3",n="c_b"):(a="c_r",n="c_b")),l=`${l}`,c=`${c}`,d=d.replace("ⓐ",l),d=d.replace("ⓑ",c),o+=d,o+="",e.push(o),s==t.current_step&&(i.result_html=R(e))}}t[`grammar_${s}_data`]=Object.freeze(i),t.ox_right=e},clearWriting(t){let e=R(t.writing_data);e.selected_words=[],e.selected_keys=[],t.writing_data=Object.freeze(e),t.writing_ex_cmp_cnt=0,t.writing_hint_hit=0,t.writing_hint_pos=Object.freeze([])},subWritingSelect(t,e){if(t.ox_show)return;let s=R(t.writing_data),i=R(t.writing_hint_pos);if(t.writing_ex_cmp_cnt>0){let s=e.word.match(/[\.,\?!~\#\"\“\”:_\=\- \s]/gi);s&&(t.writing_ex_cmp_cnt=t.writing_ex_cmp_cnt-s.length)}1==i.includes(+e.key)&&i.pop(),s.selected_keys.pop(),s.selected_words.pop(),t.writing_data=Object.freeze(s),t.writing_hint_pos=Object.freeze(i)},getWritingHint(t,e){if(t.writing_hint_hit++,e.pos>-1){let s=R(t.writing_hint_pos);s.push(e.pos),t.writing_hint_pos=Object.freeze(s)}},checkWriting(t){let e=!1,s=t.sentences[t.current_step].sentence,i=t.writing_data.selected_words.join(" "),o=R(t.writing_data);i=i.trim(),o.answers[t.current_step]=i,i=i.replace(/[^a-zA-Z]/gi,""),s=s.replace(/[^a-zA-Z]/gi,""),e=s==i,o.right[t.current_step]=e,t.writing_data=Object.freeze(o),t.ox_right=e},clearWritingK(t){t.writing_k_current_answer=[],t.writing_k_current_question=[],t.writing_k_empty_pos=[],t.writing_k_wrong_pos=[],t.writing_k_hint_hit=0,t.writing_k_hint_pos=[],t.writing_k_hint_w_pos=[],t.writing_k_current_rightanswer=[]},clearWritingKData(t){t.writing_k_data=Object.freeze({answers:[],right:[],result_html:[]})},setWritingK(t,e){if(e.splited.length>0)for(let s=0;s0)for(let s=0;s0)for(let s=0;st.writing_k_empty_pos.length)return;let o=R(t.writing_k_current_answer),a=R(t.writing_k_hint_pos),n=R(t.writing_k_hint_w_pos);for(let r=0;r0&&1==n.includes(r)?n.splice(n.indexOf(r),1):a.length>0&&1==a.includes(r)&&a.splice(a.indexOf(r),1),n.length>0&&1==n.includes(r)?e.push("c_r"):a.length>0&&1==a.includes(r)&&e.push("light-blue--text","text--darken-3");let c=`${l}`;o.splice(r,1,c),i++}t.writing_k_current_answer=Object.freeze(o),t.writing_k_hint_pos=Object.freeze(a),t.writing_k_hint_w_pos=Object.freeze(n)},updateGrammarAnswerMobile(t,e){let s=R(t.writing_k_current_answer),i=R(t.writing_k_hint_pos),o=R(t.writing_k_hint_w_pos),a=R(t.writing_k_current_rightanswer),n=Array.from(e),r=0;if(1===t.grammar_sa_type){if(n.length>t.writing_k_empty_pos.length)return;for(let e=0;e0&&1==o.includes(e)?o.splice(o.indexOf(e),1):i.length>0&&1==i.includes(e)&&i.splice(i.indexOf(e),1),o.length>0&&1==o.includes(e)?a.push("c_r"):i.length>0&&1==i.includes(e)&&a.push("light-blue--text","text--darken-3");let c=`${l}`;s.splice(e,1,c),r++}}else if(0===t.grammar_sa_type||2===t.grammar_sa_type){let s=R(t.writing_k_data);s.answers[t.current_step]=Array.from(e),t.writing_k_data=Object.freeze(s)}t.writing_k_current_answer=Object.freeze(s),t.writing_k_hint_pos=Object.freeze(i),t.writing_k_hint_w_pos=Object.freeze(o),t.writing_k_current_rightanswer=Object.freeze(a)},updateHintPos(t,e){t.writing_k_hint_pos=Object.freeze(e.hint),t.writing_k_hint_w_pos=Object.freeze(e.hintw)},getWritingKHintMobile(t,e){t.writing_k_current_answer=Object.freeze(e.writing_k_current_answer),t.writing_k_hint_pos=Object.freeze(e.writing_k_hint_pos),t.writing_k_hint_w_pos=Object.freeze(e.writing_k_hint_w_pos),t.writing_k_hint_hit=e.writing_k_hint_hit},checkWritingK(t){let e=Number(t.current_step);if(void 0==t.writing_k_data.answers[e])return;let s,i=!1;s=t.process_type===g["qb"]?t.words[e].word:t.sentences[e].sentence;let o=R(t.writing_k_data),a=o.answers[e].join("").trim();o.answers[e]=a,a=a.replace(/[^a-zA-Z]/gi,""),a=a.replace(/\s| /gi,""),s=s.replace(/[^a-zA-Z]/gi,""),s=s.replace(/\s| /gi,""),i=t.process_type===g["qb"]?s.toLowerCase()==a.toLowerCase():s==a,o.right[e]=i,t.writing_k_data=Object.freeze(o),t.ox_right=i},checkWritingKMobile(t){let e=Number(t.current_step);if(t.writing_k_data.answers[e])return;let s,i=!1;s=t.process_type===g["qb"]?t.words[e].word:t.sentences[e].sentence;let o=t.writing_k_current_answer.join(""),a=R(t.writing_k_data);o=o.replace(/]*>|<\/span>| |\xa0| /g,""),a.answers[e]=o,o=o.replace(/[^a-zA-Z]/gi,""),o=o.replace(/\s| /gi,""),s=s.replace(/[^a-zA-Z]/gi,""),s=s.replace(/\s| /gi,""),i=t.process_type===g["qb"]?s.toLowerCase()==o.toLowerCase():s==o,a.right[e]=i,t.writing_k_data=Object.freeze(a),t.ox_right=i},checkGrammarWritingK(t){let e=Number(t.current_step);if(void 0==t.writing_k_data.answers[e])return;let s=!1,i=t.sentences[e].rightanswer,o=R(t.writing_k_data),a="string"!==typeof o.answers[e]?o.answers[e].join(""):o.answers[e];o.answers[e]=a,a=a.replace(/[^a-zA-Z0-9 \,\'\.\!\?]/gi,""),i=i.replace(/[^a-zA-Z0-9 \,\'\.\!\?]/gi,""),s=i==a,o.right[e]=s,t.writing_k_data=Object.freeze(o),t.ox_right=s},checkGrammarWritingKMobile(t){let e,s=Number(t.current_step),i=!1,o=t.sentences[s].rightanswer,a=R(t.writing_k_data);if(e=1===t.grammar_sa_type?t.writing_k_current_answer?t.writing_k_current_answer.join(""):void 0:a.answers[s]?a.answers[s].join(""):void 0,a.answers[s]=e,void 0==a.answers[s])return a.right[s]=i,t.writing_k_data=Object.freeze(a),void(t.ox_right=i);e=e.replace("rightanswer::",""),e=e.replace(/]*>|<\/span>| /g,""),e=e.replace(/[^a-zA-Z0-9 \,\'\.\!\?]/gi,""),o=o.replace(/[^a-zA-Z0-9 \,\'\.\!\?]/gi,""),i=o==e,a.right[s]=i,t.writing_k_data=Object.freeze(a),t.ox_right=i},showWritingKRight(t){let e,s,i=Number(t.current_step);t.process_type===g["qb"]?(e=t.words[i],s=e.word):(e=t.sentences[i],s=e.sentence);let o=R(t.writing_k_data),a=o.right[i],n=``,r=o.answers[i],l=t.process_type===g["qb"]?Array.from(s.trim()):Array.from(s);for(let c=0;c${r[c]}`:n+=r[c]:(t.writing_k_wrong_pos.push(c),n+=`${l[c]}`);n+="",o.result_html[i]=n,t.writing_k_data=Object.freeze(o)},showWritingKRightMobile(t){let e,s,i=Number(t.current_step);t.process_type===g["qb"]?(e=t.words[i],s=e.word):(e=t.sentences[i],s=e.sentence);let o=R(t.writing_k_data),a=``,n=R(t.writing_k_current_answer),r=n.map(t=>t);for(let l=0;l]*>|<\/span>| |\xa0| /g,"");const s=t.process_type===g["qb"]?t.writing_k_current_question[l].trim().toLowerCase()!=e.trim().toLowerCase():t.writing_k_current_question[l].trim()!=e.trim();if(s){let e=`${t.writing_k_current_question[l]}`;t.settings.is_scoringnext?r.splice(l,1,e):n.splice(l,1,e)}else if(t.process_type===g["qb"]){const e=n[l]||"",s=t.writing_k_current_question[l]||"",i=e.match(/(^\s*]*>)(.*?)(<\/span>\s*$)/i),o=i?`${i[1]}${s}${i[3]}`:s;t.settings.is_scoringnext?r.splice(l,1,o):n.splice(l,1,o)}}t.settings.is_scoringnext?a+=r.join("")+"":a+=n.join("")+"",o.result_html[i]=a,t.writing_k_data=Object.freeze(o),t.writing_k_current_answer=Object.freeze(n)},showGrammarWritingKRight(t){let e=Number(t.current_step),s=t.sentences[e],i=s.rightanswer,o=R(t.writing_k_data),a=o.right[e],n=``,r=o.answers[e],l=Array.from(i);if(2===Number(s.sa_type)){"object"==typeof r&&(r=r.join(""));let e=s.rightanswer?s.rightanswer.split(" / "):null,i=r?r.split(" / "):null,o=[],a=s.passage,l=/]*type=[\"']?([^>\"']+)[\"']?[^>]*>/gi,c=a.match(l);for(let t=0;t${n[r]}`)}else if(1!=n.length||"-"!=n[0])for(let e=0;e${n[e]}`;a=a.replace(c[t],s)}t.writing_k_current_answer.splice(t.writing_k_current_answer.length-1,1,a),n+=a,n+="";let d=0,h=0,u=s.origin_passage.split(" / ");for(let n=0;n0){if(s.length>1){let t=0;for(let i=1;i${r[e]}`:n+=r[e]:"-"==l[e]&&void 0===r[e]?n+="-":(t.writing_k_wrong_pos.push(e),n+=`${l[e]}`);n+=""}o.result_html[e]=n,t.writing_k_data=Object.freeze(o)},showGrammarWritingKRightMobile(t){let e=Number(t.current_step),s=t.sentences[e],i=(s.rightanswer,R(t.writing_k_data)),o=i.right[e],a=``,n=i.answers[e],r=R(t.writing_k_current_answer),l=r.map(t=>t);if(2===Number(s.sa_type)){"object"==typeof n&&(n=n.join(""));let e=s.rightanswer?s.rightanswer.split(" / "):null,i=n?n.split(" / "):null,o=[],l=s.passage,c=/]*type=[\"']?([^>\"']+)[\"']?[^>]*>/gi,d=l.match(c);for(let t=0;t${a[r]}`)}else if(1!=a.length||"-"!=a[0])for(let e=0;e${a[e]}`;l=l.replace(d[t],s)}r.splice(r.length-1,1,l),a+=l,a+="";let h=0,u=0,p=s.origin_passage.split(" / ");for(let a=0;a0){if(s.length>1){let t=0;for(let i=1;i${e[s]}`;else o+=`${t[0]}`;r.splice(r.length-1,1,o),a+=o+""}else{for(let e=0;e]*>|<\/span>| /g,"");if(t.writing_k_current_rightanswer[e].trim()!=s.trim()){let s=`${t.writing_k_current_rightanswer[e]}`;t.settings.is_scoringnext?l.splice(e,1,s):r.splice(e,1,s)}}t.settings.is_scoringnext?a+=l.join("")+"":a+=r.join("")+""}i.result_html[e]=a,t.writing_k_data=Object.freeze(i),t.writing_k_current_answer=Object.freeze(r)},setSpeakingStart(t,e){t.speaking_start=e},setSpeaking(t){t.current_tts_audio&&(t.current_tts_audio.currentTime=0,[g["sb"],g["qb"]].includes(t.process_type)?document.getElementById("voca-bg").classList.remove("d-none"):document.getElementById(t.current_tts_id).childNodes[1].childNodes[0].removeAttribute("hidden"))},updateSpeakingResult(t,e){let s=R(t.speaking_data);s.result_html.splice(t.current_step,1,e.html),s.score.splice(t.current_step,1,e.score),t.speaking_data=Object.freeze(s)},setRecBlob(t,e){t.rec_blob=e},setWordBingo(t,e){let s=R(t.words),i=R(t.wordbingo_data);if(s.length>15)while(s.length>15){let t=Math.floor(Math.random()*s.length);s.splice(t,1)}t.wordbingo_words=s,i.question_cnt=s.length,t.wordbingo_data=Object.freeze(i),t.wordbingo_selections=I(s.map(t=>({right:!1,word:t.word,cls:"defaultcard"})))},setWordBingoMax(t){let e=R(t.modules);e=e.map(e=>(e.idx===g["ub"]&&(e.maxstep=t.wordbingo_words.length),e)),t.modules=Object.freeze(e)},updateWordBingoSel(t,e){t.wordbingo_selections.splice(e.key,1,e.value)},updateWordBingoResult(t){let e=R(t.wordbingo_data),s=t.current_step,i=t.wordbingo_words[s],o=e.right[s],a=``;a+=`${i.mean}
${i.word}`,a+="
",e.result_html[t.current_step]=a,t.wordbingo_data=Object.freeze(e)},setBingoHide(t,e){t.wordbingo_question_hide=e},setBingoCls(t,e){t.wordbingo_question_cls=e},setBingoAnswer(t,e){t.wordbingo_answer=e?e.trim():""},checkBingoRight(t,e){let s=R(t.wordbingo_data),i=t.current_step,o=t.wordbingo_answer,a=t.wordbingo_words[i].word.trim(),n=o==a;s.right[i]=n,s.answers[i]=o,t.wordbingo_question_cls=n?"greencard":"redcard",t.wordbingo_data=Object.freeze(s)},updateBankData(t,e){let s=R(t.bank_data);s.right.push(e.right),s.result_html.push(e.result_html),t.bank_data=Object.freeze(s),e.right||this.commit("addWrongBankId","now")},updateGrammarBankData(t,e){let s=R(t.grammar_bank_data);s.right.push(e.right),s.result_html.push(e.result_html),t.grammar_bank_data=Object.freeze(s),e.right||this.commit("addWrongGrammarId","now")},updateBankQuestion(t,e){t.bank_questions=e},oxShow(t,e){t.ox_show=!!e},oxRight(t,e){t.ox_right=!!e},setResendDialog(t,e){},updateModule(t,e){let s=R(t.modules);s[t.current_page].maxstep=e,t.modules=Object.freeze(s),t.bank_maxstep=e},setDelayActor(t,e){t.delay_actor=e},setDelayActor2(t,e){null===e?t.delay_actor2=[]:t.delay_actor2.push(e)},setFBSaving(t,e){t.fb_saving=e},setRDBSaving(t,e){t.rdb_saving=e},updateUnitRecordId(t,e){if(!isNaN(e.ur_id)){let s=Number(e.ur_id),i=R(t.unit);const o={[g["bb"]]:"study",[g["hb"]]:"test",[g["pb"]]:"voca",[g["B"]]:"major",[g["a"]]:"advanced",[g["sb"]]:"major",[g["qb"]]:"advanced",[g["u"]]:"grammar_theory",[g["s"]]:"grammar_basics",[g["t"]]:"grammar_deep",[g["Z"]]:"story_m",[g["W"]]:"story_a"};i[o[t.process_type]+"_pk"]=s,t.unit=Object.freeze(i)}},toggleDialog(t,e){"name"in e&&"value"in e&&(t[e.name]=e.value)},setModuleSkipData(t){let e=t.current_page,s=t.current_step,i=isNaN(t.modules[e].idx)?t.modules[e].idx:Number(t.modules[e].idx);if(e>0){let o=t.modules[e].maxstep,a=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"];if(a.includes(i)&&(i="GRAMMAR"),[g["vb"],g["M"],g["Q"],g["v"]].includes(i)){let e=R(t.bank_data);for(let t=s;t0&&(a.result_html[n]=`${t.sentences[t.current_step].sentence}`),i==g["ub"]&&(e=t.wordbingo_words[t.current_step],a.result_html[n]=`${e.word}`)}t[e]=Object.freeze(a)}}},setModuleSkip(t,e){t.cur_module_skip=e},setRouteJump(t,e){t.route_jump=e},updateBankFontLevel(t,e){t.bank_font_level=e},setClearPrevResult(t,e){t.clear_prev_result=!!e},setPreventClick(t,e){t.prevent_click=!!e},clearAudioCtx(t){if(t.audio_ctx.length>0)for(let[e,s]of Object.entries(t.audio_ctx))o["default"].delete(t.audio_ctx,e);if(t.voca_audio_ctx.length>0)for(let[e,s]of Object.entries(t.voca_audio_ctx))o["default"].delete(t.voca_audio_ctx,e);if(t.video_ctx.length>0)for(let[e,s]of Object.entries(t.video_ctx))o["default"].delete(t.video_ctx,e);t.audio_ctx=[],t.voca_audio_ctx=[],t.video_ctx=[]},clearAudioIterator(t){if("ios"===t.platform&&window.clearStudyMedia(),window.currentAudioIterator.length>0){for(let t=0;t0){for(let t=0;t0){for(let e=0;e0){for(let t=0;t0){for(let t=0;t0){const s={};for(let t=0;t{if(200!==e.status||!e.data)return;const s=e.data||{};t("setMainPageInfo",{assessment_tooltip:s.assessment_tooltip,assessment_count:s.incomplete_assessment_count||0})}).catch(t=>{console.error(t)})},sendMailForDev:({state:t},e)=>{G.a.post(g["w"]+"/sendmailfordev",{version:"1.4.27",agent:navigator.userAgent,userInfo:{cid:t.cid,cname:t.cname,uid:t.uid,uname:t.uname},...e})},setBookInfo:({commit:t,dispatch:e},s)=>{t("setBookInfo",s),e("fbSchedule",s)},setBookInfoVMA:({commit:t,dispatch:e},s)=>{t("setBookInfoVMA",s),e("fbSchedule",s)},setBookInfoGRAMMAR:({commit:t,dispatch:e},s)=>{t("setBookInfoGRAMMAR",s),e("fbSchedule",s)},setShadowReadingInfo:({commit:t},e)=>{t("setShadowReadingInfo",e)},fbGetUser({dispatch:t},e){let s=e.uid;return i["db"].collection("users").doc(s).get().then(e=>{let i={uid:s,data:{fb_uid:window.FB_UID,login_time:(new Date).getTime(),require_relogin:null}};if(e.exists){let o=e.data();if("fb_uid"in o&&null!==o.fb_uid){if(o.fb_uid==window.FB_UID)return delete i.data["fb_uid"],t("fbSetUID",i).then(()=>{t("fbBindUserStatus",s)}),"END";{let e=0;return"login_time"in o&&null!==o.login_time&&o.login_time>1e5?(e=(new Date).getTime()-o.login_time,e>216e5?(t("fbSetUID",i).then(()=>{t("fbBindUserStatus",s)}),"END"):"DUP"):(t("fbSetUID",i).then(()=>{t("fbBindUserStatus",s)}),"END")}}return t("fbSetUID",i).then(()=>{t("fbBindUserStatus",s)}),"END"}return t("fbSetUser",{ref:e.ref}).then(()=>{t("fbSetUID",i).then(()=>{t("fbBindUserStatus",s)})}),"END"})},fbSetUser({state:t},e){"ref"in e?e.ref.set({}):"uid"in e&&i["db"].collection("users").doc(e.uid).set({})},fbSetUID({state:t},e){let s=!!e.uid&&e.uid,o=!!e.data&&e.data;return!s||!o||i["db"].collection("users").doc(s).update(o)},fbSetUIDNull({state:t},e){t.uid&&(void 0!==e&&"EXIT"===e&&"function"==typeof t.fb_subscribe&&t.fb_subscribe(),i["db"].collection("users").doc(t.uid).update({fb_uid:null,login_time:null,require_relogin:null}))},fbBindUserStatus({state:t,commit:e,dispatch:s},o){const a=o,n=i["db"].collection("users").doc(a),r=i=>{let o={uid:a,data:{fb_uid:window.FB_UID,login_time:(new Date).getTime()}};t.network_status?(void 0!==window.FB_UID&&i.fb_uid&&i.fb_uid!==window.FB_UID&&e("setDuploginDialog",!0),i.require_relogin&&e("setReloginDialog",!0)):(e("setNetworkStatus",!0),s("fbSetUID",o))};e("setFbSubscribe",n.onSnapshot({includeMetadataChanges:!0},i=>{let o=i.data();!0===i.metadata.fromCache?(e("setNetworkStatus",!1),s("fbSetUIDNull")):["android","ios"].includes(t.platform)&&t.mobile_pause||r(o)},t=>{window.console.error(t)}))},fbSchedule({state:t,dispatch:e},s){i["db"].collection("users").doc(t.uid).collection("schedules").doc(s.book.schedule_id).get().then(t=>{t.exists?e("fbBookUnit",s):t.ref.set({}).then(()=>{e("fbBookUnit",s)})})},fbBookUnit({state:t,getters:e},s){let o=s.book.schedule_id,a=e.getFBBookUnitId,n=a+"-ing";i["db"].collection("users").doc(t.uid).collection("schedules").doc(o).collection("Bookunits").doc(a).get().then(t=>{t.exists||t.ref.set({})}),i["db"].collection("users").doc(t.uid).collection("schedules").doc(o).collection("Bookunits").doc(n).get().then(t=>{t.exists||t.ref.set({})})},setStudyInfo:({commit:t},e)=>{t("setStudyInfo",e)},async setStudyInfoVMA({commit:t},e){return await t("setStudyInfoVMA",e),Promise.resolve()},setStudyInfoGRAMMAR:({commit:t},e)=>{t("setStudyInfoGRAMMAR",e)},setFlashCardInfo:({commit:t})=>{t("setFlashCardInfo")},applyLoadData:({commit:t},e)=>t("applyLoadData",e),setProcessType:({commit:t},e)=>{t("setProcessType",e)},setLearningStatus:({commit:t},e)=>{t("setLearningStatus",e)},setAssessmentRecordId:({commit:t},e)=>{t("setAssessmentRecordId",e)},setScheduleStartdate:({commit:t,state:e},s)=>new Promise((t,i)=>{G.a.post(`${g["w"]}/result/${e.cid}/user/${e.uid}/schedulestart`,{book_id:s.book_id,schedule_id:s.schedule_id}).then(e=>{let s=200==e.status;t(s)}).catch(t=>{i(),console.error(t)})}),setUnitRecordEmpty:({state:t,getters:e})=>{let s=e.getCIdForRecord;return new Promise((e,i)=>{G.a.post(g["w"]+"/v1/result/createunitrecord",{schedule_id:t.schedule_id,academy_id:s,user_id:t.uid,books_id:t.current_book_id,unit_id:t.unit.id,type:t.process_type,schedule_type:t.book.schedule_type?Number(t.book.schedule_type):0,unit_seq:t.unit.seq?t.unit.seq:0}).then(t=>{let s=200==t.status;e(s)}).catch(t=>{i(),console.error(t)})})},setCurTTSAudio:({commit:t},e)=>{t("setCurTTSAudio",e)},sendGoogleTTSCreate:({state:t},e)=>{if(!e||!e.id||!e.bookid||!e.type)return!1;let s=e.type,i=e.id,o=e.bookid,a=i.split("-")[1],n=null,r="",l="/tts/synthesizetext";if("S"===s)for(let[c,d]of Object.entries(t.sentences))Number(d.id)==Number(a)&&(n=d.sentence,r=c);else if("V"===s)for(let[c,d]of Object.entries(t.words))Number(d.id)==Number(a)&&(n=d.word,r=c);else if("P"===s){let e=2*i.split("-P")[1]-1,s=t.sentences.filter(t=>t.page==e-1).map(t=>t.eng).join(" "),o=t.sentences.filter(t=>t.page==e).map(t=>t.eng).join(" ");""!=s.trim()&&""!=o.trim()&&(o=""+o),n=""+s+o+"",console.log(n),r=e-1,a=i,l="/tts/synthesizepage"}else{if("F"!==s)return!1;for(let[e,s]of Object.entries(t.flashcard_engs))Number(s.sentences_id)==Number(a)&&(n=s.sentence,r=e)}return n?new Promise((e,s)=>{G.a.post(g["w"]+l,{book_id:o,sentence_id:a,text:n,gender:t.settings.is_ttsgender||0}).then(t=>{e(t)}).catch(t=>{s(t)})}):void 0},loadAudioSource:({state:t,commit:e,dispatch:s},i)=>{if(!i||!("bookid"in i)||!("senid"in i)||!("key"in i)||!i.senid||!i.bookid)return;let o=i.bookid,a=i.senid,n=i.key,r=`${g["w"]}/tts/${o}/${a}`,l="tts";1===+t.settings.is_ttsgender?(r+="?is_gender=1",l+="/female"):(r+="?is_gender=0",l+="/male"),G()({url:r,method:"get",responseType:"blob"}).then(c=>{if(200==c.status)if("ios"===t.platform)e("setAudioCtx",{idx:n,url:`${g["x"]}/media/${l}/${o}/${a}.mp3`});else{let t=new Blob([c.data],{type:"audio/mp3"}),s=window.URL.createObjectURL(t);e("setAudioCtx",{idx:n,url:s})}else 204==c.status&&(window.console.log("204::tts_create"),s("sendGoogleTTSCreate",{id:a,bookid:o,type:i.isFlashCard?"F":"S"}).then(s=>{200==s.status&&G()({url:r,method:"get",responseType:"blob"}).then(s=>{if(200==s.status)if("ios"===t.platform)e("setAudioCtx",{idx:n,url:`${g["x"]}/media/${l}/${o}/${a}.mp3`});else{let t=new Blob([s.data],{type:"audio/mp3"}),i=window.URL.createObjectURL(t);e("setAudioCtx",{idx:n,url:i})}})}))}).catch(t=>{console.error(t)})},loadStoryBoookAudioSource:({state:t,commit:e,dispatch:s},i)=>new Promise((o,a)=>{if(!i||!("bookid"in i)||!("pageid"in i)||!("key"in i)||!i.pageid||!i.bookid)return void a(new Error("Invalid payload"));let n=i.bookid,r=i.pageid,l=i.key,c=`${g["w"]}/tts/${n}/${r}`,d="tts";1===+t.settings.is_ttsgender?(c+="?is_gender=1",d+="/female"):(c+="?is_gender=0",d+="/male"),G()({url:c,method:"get",responseType:"blob"}).then(i=>{if(200==i.status){if("ios"===t.platform)e("setAudioCtx",{idx:l,url:`${g["x"]}/media/${d}/${n}/${r}.mp3`});else{let t=new Blob([i.data],{type:"audio/mp3"}),s=window.URL.createObjectURL(t);e("setAudioCtx",{idx:l,url:s})}o()}else 204==i.status&&(window.console.log("204::tts_create"),s("sendGoogleTTSCreate",{id:r,bookid:n,type:"P"}).then(s=>{200==s.status?G()({url:c,method:"get",responseType:"blob"}).then(s=>{if(200==s.status){if("ios"===t.platform)e("setAudioCtx",{idx:l,url:`${g["x"]}/media/${d}/${n}/${r}.mp3`});else{let t=new Blob([s.data],{type:"audio/mp3"}),i=window.URL.createObjectURL(t);e("setAudioCtx",{idx:l,url:i})}o()}else a(new Error("TTS 음원 생성 후 가져오지 못함"))}).catch(t=>{a(t)}):a(new Error("TTS 음원 생성 실패"))}))}).catch(t=>{console.error(t)})}),loadVocaAudioSource:({state:t,commit:e,dispatch:s},i)=>{if(!i||!("bookid"in i)||!("wordfile"in i)||!("wid"in i)||!("key"in i))return;let o=i.bookid,a=i.wordfile,n=i.wid,r=i.key;a&&"string"==typeof a?G()({url:`${g["w"]}/v2/file/checkvocamp3/${a}?wid=${n}`,method:"get"}).then(i=>{if(200==i.status){let l=i.data.res,c=i.data.filename?i.data.filename:a;if(200==l)e("setVocaAudioCtx",{idx:r,url:`${g["rb"]}/${c}.mp3`});else{const i=1===+t.settings.is_ttsgender?"F":"M",l="F"==i?"&is_gender=1":"";G()({url:`${g["w"]}/v2/file/checkvocattsmp3/${a}?wid=${n}${l}`,method:"get"}).then(t=>{if(200==t.status){let l=t.data.res,c=t.data.filename?t.data.filename:a;if(200==l){const t=c.charAt(0);e("setVocaAudioCtx",{idx:r,url:`${g["tb"]}/${i}/${t}/${c}.mp3`})}else s("createVocaTTS",{bookid:o,wordfile:a,wid:n,key:r})}}).catch(t=>{console.error(t)})}}}).catch(t=>{console.error(t)}):s("loadVocaTts",{bookid:o,wordfile:a,wid:n,key:r})},loadVocaTts:({dispatch:t,commit:e,state:s},i)=>{let o=i.bookid,a=(i.wordfile,i.wid),n=i.key,r="s-"+a,l=`${g["w"]}/tts/${o}/${r}`,c="tts";1===+s.settings.is_ttsgender&&(l+="?is_gender=1",c+="/female"),G()({url:l,method:"get",responseType:"blob"}).then(i=>{if(200==i.status)if("ios"===s.platform)e("setVocaAudioCtx",{idx:n,url:`${g["x"]}/media/${c}/${o}/${r}.mp3`});else{let t=new Blob([i.data],{type:"audio/mp3"}),s=window.URL.createObjectURL(t);e("setVocaAudioCtx",{idx:n,url:s}),e("setVocaAudioFile",{idx:n,file:!1})}else 204==i.status&&(window.console.log("204::tts_create"),t("sendGoogleTTSCreate",{id:r,bookid:o,type:"V"}).then(t=>{200==t.status&&G()({url:l,method:"get",responseType:"blob"}).then(t=>{if(200==t.status)if("ios"===s.platform)e("setVocaAudioCtx",{idx:n,url:`${g["x"]}/media/${c}/${o}/${r}.mp3`});else{let s=new Blob([t.data],{type:"audio/mp3"}),i=window.URL.createObjectURL(s);e("setVocaAudioCtx",{idx:n,url:i}),e("setVocaAudioFile",{idx:n,file:!1})}})}))})},loadVideoSource:({state:t,commit:e,dispatch:s},i)=>{if(!i||!("bookid"in i)||!("senid"in i)||!("key"in i)||!i.senid||!i.bookid)return;i.bookid;let o=i.senid,a=i.key;G()({url:o,method:"get",responseType:"blob"}).then(t=>{if(200==t.status){let s=new Blob([t.data],{type:"video/mp4"}),i=URL.createObjectURL(s);e("setVideoCtx",{idx:a,url:i})}else 204==t.status&&console.error("204::loadVideoSource",val)}).catch(t=>{console.error(t),e("setVideoCtx",{idx:a,url:o})})},createVocaTTS({state:t,commit:e,dispatch:s},i){let o=g["l"]+"/tts/v1/fPGur2foEm/json";const a=i.wordfile,n=1===+t.settings.is_ttsgender?"F":"M",r=i.bookid,l=i.wid,c=i.key;G.a.post(o,{text:a.replace(/\_/g," "),gender:n,mp3name:a+".mp3"}).then(t=>{if(200===t.status){const i=t.data.done;if(i){const t=a.charAt(0);e("setVocaAudioCtx",{idx:c,url:`${g["tb"]}/${n}/${t}/${a}.mp3`})}else s("loadVocaTts",{bookid:r,wordfile:a,wid:l,key:c})}else s("loadVocaTts",{bookid:r,wordfile:a,wid:l,key:c})}).catch(t=>{console.error(t)})},loadVocaImgSource:({state:t,commit:e,dispatch:s},i)=>{if(!i||!("wordfile"in i)||!("key"in i))return;i.wordfile;let o=i.key,a=i.wid?i.wid:"";0==o&&e("onLoading",!0),G()({url:`${g["w"]}/v2/file/checkvocaimg2/${a}`,method:"get"}).then(t=>{200==t.status?e("setVocaImgFile",{idx:o,data:t.data}):(e("setVocaImgFile",{idx:o,data:!1}),0==o&&e("onLoading",!1))}).catch(t=>{console.error(t),0==o&&e("onLoading",!1)})},prepareAudioSource:({commit:t,state:e,dispatch:s})=>{if(console.log("prepareAudioSource",e.audio_files),!e.audio_files)return;let i=e.current_book_id;for(let[o,a]of Object.entries(e.audio_files))a&&(window.loadingPerTimeout=setTimeout(()=>{if(e.loading_percent>=100)return clearTimeout(window.loadingPerTimeout),!1;t("addLoadingPercent",1)},1e3),s("loadAudioSource",{bookid:i,senid:a,key:o}))},prepareVocaAudioSource:({commit:t,state:e,dispatch:s})=>{if(console.log("prepareVocaAudioSource",e.voca_audio_files,e.flash_show,e),!e.voca_audio_files)return!0;let i=e.current_book_id;for(let[o,a]of Object.entries(e.voca_audio_files))window.loadingPerTimeout=setTimeout(()=>{if(e.loading_percent>=100)return clearTimeout(window.loadingPerTimeout),!1;t("addLoadingPercent",1)},1e3),s("loadVocaAudioSource",{bookid:i,wordfile:a,mean:e.words[o].mean,wid:e.words[o].id,key:o}),e.flash_show&&50!==+e.book.booktype&&s("loadVocaImgSource",{wordfile:a,key:o,wid:e.words[o].id})},prepareAudioSourceInFlashCard:({commit:t,state:e,dispatch:s})=>{for(let[i,o]of Object.entries(e.audio_files))if(o){let t=o.split("-")[1],a=e.flashcard_engs.filter(e=>e.sentences_id==t)[0];null!==a.sentences_id&&s("loadAudioSource",{bookid:a.book_id,senid:o,key:i,isFlashCard:!0})}for(let[i,o]of Object.entries(e.voca_audio_files))if(o){let t=e.flashcard_engs[i];null!==t.words_id&&(s("loadVocaAudioSource",{bookid:t.book_id,wordfile:o,wid:t.words_id,key:i}),s("loadVocaImgSource",{wordfile:o,wid:t.words_id,key:i}))}},prepareVideoSource:({commit:t,state:e,dispatch:s})=>{if(console.log("prepareVideoSource",e.video_files),!e.video_files)return;let i=e.current_book_id;for(let[o,a]of Object.entries(e.video_files))a&&s("loadVideoSource",{bookid:i,senid:a,key:o})},initAudio:({commit:t,state:e,getters:s,dispatch:i})=>{if(e.process_type==g["a"])return!0;let o=s.getCurModule,a=null,n=null;switch(e.process_type===g["Z"]?o===g["N"]?(t("setListeningType","V"),n="voca-audio",a=document.getElementById(n)):(t("setListeningType","S"),n="tts-audio",a=document.getElementById(n).childNodes[0].childNodes[0]):e.voca_audio_files&&e.voca_audio_files.length>0?(t("setListeningType","V"),n="voca-audio",a=document.getElementById(n)):(t("setListeningType","S"),n="tts-audio",a=document.getElementById(n).childNodes[0].childNodes[0]),t("setCurTTSId",n),t("setCurTTSAudio",a),o){case g["A"]:case g["b"]:if("ios"!==e.platform){const t=()=>{0==e.loading_percent&&e.current_tts_audio.readyState};e.current_tts_audio.onloadeddata=t}break;case g["D"]:case g["o"]:"ios"!==e.platform&&(e.current_tts_audio.onloadeddata?0==e.loading_percent&&e.current_tts_audio.readyState>=2&&t("playAudio"):e.current_tts_audio.onloadeddata=function(s){0==e.loading_percent&&e.current_tts_audio.readyState>=2&&t("playAudio")});break;case g["V"]:case g["ub"]:"ios"!==e.platform&&(e.current_tts_audio.onloadeddata=function(s){0==e.loading_percent&&e.current_tts_audio.readyState>=2&&t("pauseAudio")});break;default:break}},initAudioFlash:({commit:t,state:e,getters:s,dispatch:i})=>{let o=e.flashcard_engs[e.current_step],a=null!==o.sentences_id&&null===o.words_id?"S":"V",n=null,r=null!==o.sentences_id&&null===o.words_id?"tts-audio":"voca-audio";"V"===a?n=document.getElementById(r):"S"===a&&(n=document.getElementById(r).childNodes[0].childNodes[0]),t("setListeningType",a),t("setCurTTSId",r),i("setCurTTSAudio",n).then(t=>{"ios"!==e.platform&&(e.current_tts_audio.onloadeddata=function(t){0==e.loading_percent&&e.current_tts_audio.readyState})})},initAudioPlay({commit:t,getters:e,state:s,dispatch:i}){if(s.process_type==g["a"])return!0;const o=e.getCurModule,a=e.isSynthesia;switch(o){case g["A"]:case g["D"]:case g["o"]:case g["b"]:{const e=o===g["A"]&&"synthesia"===s.listening_mode,n=o===g["b"]&&"synthesia"===s.shadow_mode;"ios"==s.platform?a&&(e||n)?s.current_synthesia_video.readyState>=2?t("playSynthesiaVideo"):(window.videoInterval&&clearInterval(window.videoInterval),window.videoInterval=setInterval(()=>{s.current_synthesia_video.readyState>=2?(t("playSynthesiaVideo"),clearInterval(window.videoInterval)):s.current_synthesia_video.load()},3e3),s.current_synthesia_video.addEventListener("error",t=>{const e=t.target.error;console.error("Video error code:",e.code),console.error("Video error message:",e.message),s.current_synthesia_video.load()}),s.current_synthesia_video.oncanplaythrough=()=>{clearInterval(window.videoInterval),t("playSynthesiaVideo")},s.current_synthesia_video.load()):i("btnPlayAudioIos"):a&&(e||n)?s.current_synthesia_video.readyState>=2?t("playSynthesiaVideo"):(console.log(123),s.current_synthesia_video.onloadeddata=function(e){s.current_synthesia_video.readyState>=2&&t("playSynthesiaVideo")}):s.current_tts_audio.readyState>=2?t("playAudio"):s.current_tts_audio.onloadeddata=function(e){s.current_tts_audio.readyState>=2&&t("pauseAudio")};break}case g["V"]:case g["ub"]:"ios"==s.platform||s.current_tts_audio.readyState>=2&&t("pauseAudio");break;default:break}},initAudioPlayFlash({commit:t,state:e,dispatch:s}){"ios"==e.platform?s("btnPlayAudioIos"):e.current_tts_audio.readyState>=2?t("playAudio"):e.current_tts_audio.onloadeddata=function(s){e.current_tts_audio.readyState>=2&&t("pauseAudio")}},updateAudio({commit:t,state:e,getters:s,dispatch:i},o){if(e.process_type==g["a"])return!0;let a=s.getCurModule,n=o||"next",r=0,l="",c=null,d=null;a===g["A"]?(e.current_step{if(!0===g["Eb"].includes(a))if("next"===n){if("S"===l){let s=a===g["A"]?e.current_step-e.words.length:e.current_step,o=(e.sentences[s].id,e.current_book_id);if(e.audio_ctx.length{t("setAudioFile",{idx:void 0,file:n})})}}}}else if("V"===l){let s=e.current_step;if(!e.words[s])return;let o=e.current_book_id;if(e.voca_audio_ctx.length{t("setVocaAudioFile",{idx:a,file:e})})}}}if("ios"==e.platform)switch(a){case g["A"]:case g["D"]:case g["o"]:case g["b"]:i("btnPlayAudioIos");break}else if(e.current_tts_audio.readyState>=2)switch(a){case g["A"]:case g["D"]:case g["o"]:case g["b"]:t("playAudio");break}else switch(a){case g["A"]:case g["D"]:case g["b"]:e.current_tts_audio.onloadeddata=function(i){a===g["A"]&&s.isSynthesia&&"synthesia"===e.listening_mode||e.current_tts_audio.readyState>=2&&0==e.loading_percent&&t("playAudio")};break;case g["o"]:[g["pb"],g["sb"],g["qb"]].includes(e.process_type)?e.current_tts_audio.onloadeddata=function(s){e.current_tts_audio.readyState>=2&&t("playAudio")}:e.current_tts_audio.onloadeddata=function(s){e.current_tts_audio.readyState>=2&&0==e.loading_percent&&t("playAudio")};break;default:}}else{if("ios"==e.platform)switch(a){case g["A"]:case g["b"]:i("btnPlayAudioIos");break}a===g["A"]&&s.isSynthesia&&"text"===e.listening_mode&&"loadedEventForInit"===e.current_tts_audio.onloadeddata.name&&(e.current_tts_audio.onloadeddata=function(s){e.current_tts_audio.readyState>=2&&0==e.loading_percent&&t("playAudio")},e.current_tts_audio.onloadeddata())}})},async updateSynthesia({commit:t,state:e,getters:s,dispatch:i},o){const a=s.getCurModule,n=o||"next",r=e.current_step;e.sentences[r];if(t("nextDisabled",!0),!e.video_ctx[r])return t("playAudio"),void("ios"===e.platform&&setTimeout(()=>{t("nextDisabled",!1)},2e3));if("next"===n){if(a===g["A"]){let s=e.current_step-e.words.length,o=(e.sentences[s].id,e.current_book_id),a=e.sentences.length+e.words.length;if(e.audio_ctx.length{t("setAudioFile",{idx:void 0,file:n})})}}}}console.log("updateSynthesia",e.current_synthesia_video.readyState),"ios"===e.platform?e.current_synthesia_video.readyState>=2?(t("playSynthesiaVideo"),setTimeout(()=>{t("nextDisabled",!1)},2e3)):(window.videoInterval&&clearInterval(window.videoInterval),window.videoInterval=setInterval(()=>{e.current_synthesia_video.readyState>=2?(t("playSynthesiaVideo"),clearInterval(window.videoInterval),setTimeout(()=>{t("nextDisabled",!1)},2e3)):e.current_synthesia_video.load()},3e3),e.current_synthesia_video.addEventListener("error",t=>{const s=t.target.error;console.error("Video error code:",s.code),console.error("Video error message:",s.message),e.current_synthesia_video.load()}),e.current_synthesia_video.oncanplaythrough=()=>{clearInterval(window.videoInterval),t("playSynthesiaVideo"),setTimeout(()=>{t("nextDisabled",!1)},2e3)},e.current_synthesia_video.load()):(e.current_synthesia_video.readyState>=2?t("playSynthesiaVideo"):e.current_synthesia_video.onloadeddata=function(s){e.current_synthesia_video.readyState>=2&&t("playSynthesiaVideo")},t("nextDisabled",!1))}else t("nextDisabled",!1)},updateAudioFlashCard({commit:t,state:e,getters:s,dispatch:i},o){let a=o||"next",n=e.flashcard_engs.length,r=e.flashcard_engs[e.current_step],l=null!==r.sentences_id&&null===r.words_id?"S":"V",c=null,d=null!==r.sentences_id&&null===r.words_id?"tts-audio":"voca-audio";"V"===l?c=document.getElementById(d):"S"===l&&(c=document.getElementById(d).childNodes[0].childNodes[0]),t("setListeningType",l),t("setCurTTSId",d),i("setCurTTSAudio",c).then(s=>{if("next"===a){let s=e.audio_ctx.filter(t=>!!t).length,o=e.voca_audio_ctx.filter(t=>!!t).length;if(s+o{t("setAudioFile",{idx:s,file:o})})}}else if("V"===a&&s{t("setVocaAudioFile",{idx:s,file:e})})}}"ios"==e.platform?i("btnPlayAudioIos"):e.current_tts_audio.readyState>=2?t("playAudio"):e.current_tts_audio.onloadeddata=function(s){e.current_tts_audio.readyState>=2&&0==e.loading_percent&&t("playAudio")}}else"ios"==e.platform&&i("btnPlayAudioIos")})},setEndAudio({commit:t}){t("setEndAudio")},async endAudio({commit:t,dispatch:e,state:s,getters:i}){console.log("endAudio");const o=i.getCurModule,a=s.process_type,n=i.getListeningSettings.sen_repeat,r=s.cur_sen_repeat_cnt;o===g["A"]&&!["V","VM","VA"].includes(a)&&n>1&&r{let i=s.modules&&s.modules[s.current_page]?s.modules[s.current_page].idx:null;if(s.modules[s.current_page]&&g["A"]==i)if(s.cur_sen_repeat_cnt{"ios"===s.platform?e("btnPlayAudioIos"):t("playAudio"),window.currentAudioIterator=[]},s.flash_delay_time)),window.currentFlashIterator.push(window.setTimeout(()=>{window.currentFlashIterator=[]},i)),t("setTTSPlayingStatus",!0)}else window.currentAudioIterator.push(window.setTimeout((function(){e("processNext"),window.currentAudioIterator=[]}),s.flash_delay_time)),t("setTTSPlayingStatus",!0);else if(t("setTTSPlayingStatus",!1),i==g["b"])if(s.shadow_reading_repeat)if(s.current_step===s.modules[s.current_page].maxstep-1){s.current_step=0;const e=document.getElementById("al-row");e&&e.scrollTo(0,0),setTimeout(()=>{s.modules.length>0&&s.modules[s.current_page]&&s.modules[s.current_page].idx===g["b"]&&t("toggleAudio")},2e3)}else e("goNextShadowReading");else e("goNextShadowReading");else if(s.process_type===g["Z"]&&i===g["N"]){const i=s.modules,o=s.current_page,a=s.current_step,n=i[s.current_page].maxstep-1,r=void 0!=i[o+1]?i[o+1].idx:-1,l=+s.settings.is_scoringnext;if(s.tts_playing)return;if(a>=n){let i=s.ox_right?g["L"]:g["yb"];i=l?g["L"]:i,setTimeout(()=>{e("sendResult").then(s=>{let o=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),e("addPage",g["N"]).then(()=>{e("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),e("nextActions",r)})})}),i);t("setDelayActor",o)})},750)}else setTimeout(()=>{e("addStep").then(()=>{t("oxShow",!1),e("clearPopquiz").then(()=>{t("renderPopquiz"),setTimeout(()=>{t("nextDisabled",!1)},750)})})},750)}})},endSynthesia({commit:t,dispatch:e,state:s,getters:i}){if(console.log("endSynthesia"),t("nextDisabled",!1),!s.current_synthesia_video)return;s.cur_sen_repeat_cnt+=1,s.current_synthesia_video.pause(),s.current_synthesia_video.currentTime=0,s.tts_playing=!1;const o=s.modules[s.current_page].idx;if(o===g["A"])if(s.cur_sen_repeat_cnt{"ios"===s.platform?e("btnPlaySynthesiaIos"):t("playSynthesiaVideo"),window.currentAudioIterator=[]},s.flash_delay_time)),window.currentFlashIterator.push(window.setTimeout(()=>{window.currentFlashIterator=[]},i)),t("setTTSPlayingStatus",!0)}else window.currentAudioIterator.push(window.setTimeout((function(){e("processNext"),window.currentAudioIterator=[]}),s.flash_delay_time)),t("setTTSPlayingStatus",!0);else if(o===g["b"])if(s.shadow_reading_repeat)if(s.current_step===s.modules[s.current_page].maxstep-1){s.current_step=0;const e=document.getElementById("al-row");e&&e.scrollTo(0,0),setTimeout(()=>{s.modules.length>0&&s.modules[s.current_page]&&s.modules[s.current_page].idx===g["b"]&&t("playSynthesiaVideo")},2e3)}else e("goNextShadowReading");else e("goNextShadowReading")},goNextShadowReading({commit:t,state:e,dispatch:s,getters:i}){let o=e.current_step,a=e.sentences.length,n=a-1;o>=n?s("fillLoadingPercent").then(t=>{s("exitLeaning")}):s("checkAudioStop").then(()=>{s("addStep").then(()=>{window.currentAudioIterator.push(window.setTimeout(()=>{i.isSynthesia&&"synthesia"===e.shadow_mode?s("updateSynthesia","next"):s("updateAudio","next"),window.currentAudioIterator=[]},1200))})})},checkAudioStop({commit:t,state:e,getters:s}){let i=s.getCurModule;if(g["Eb"].includes(i))if("ios"===e.platform)t("setTTSPlayingStatus",!1),window.clearStudyMedia();else{let t=e.current_tts_audio;i===g["A"]&&s.isSynthesia&&"synthesia"===e.listening_mode&&(t=e.current_synthesia_video),t&&t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2&&(t.pause(),t.currentTime=0,e.tts_playing=!1)}},allRepeatCheck({commit:t,state:e}){return t("allRepeatAdd"),!(e.cur_all_repeat_cnt{const e=Array.from({length:t.length},(t,e)=>e);for(let s=e.length-1;s>0;s--){const t=Math.floor(Math.random()*(s+1));[e[s],e[t]]=[e[t],e[s]]}return e},u=(t,e)=>{const s=[];for(let i=0;i""!=t),m=[];if(o>=200?o<300?i=15:o>=300&&o<400?i=17:o>=400&&o<500?i=20:o>=500&&(i=22):_.length>22&&(i=15),null!=i){if(!(_.length<=i)){t("setLongChips",!0);let e=Math.floor(_.length/i),s=_.length%i,o=[],a=0;for(let t=0;t<_.length;t++){let i=t<=s*(e+1)?o.length1e3)break;d.push(c),r.push(m);continue}i=null}if(null==i){t("setLongChips",!1),s=s.replace(/[\.,\?!~\#\"\“\”:_\=\- \s]/gi,(function(t,e){return","!=t||" "===s[e-1]||isNaN(s[e-1])||" "===s[e+1]||isNaN(s[e+1])?(a[p].push(e)," "!=t&&"s"!=t||(t=" "),n[p].push(t)," "):t})),s=s.replace(/\s\s+/g," ").trim(),_=s.split(/\s/gi);_.length;let e=0;if(l.push(_),m=R(_),_.length<3)2==_.length?(m=m.reverse(),c=[1,0]):c=[0];else if(c=h(m),m=u(m,c),_.join("")===m.join(""))while(_.join("")===m.join(""))if(c=h(_),m=u(_,c),e++,e>1e3)break;d.push(c),r.push(m)}}t("setChipsInitData",{idx_match_arr:d,split_words:l,words:r,idx:a,chars:n,s_name:o})},setGrammarMC({commit:t,state:e,dispatch:s,getters:i}){let o,a;console.log("setGrammarMC");let n=e.sentences;return o=n.length,a=n.map(t=>t.example.split("//")),a=Array.from(new Set(a)),new Promise((s,i)=>{let r={choices:[],right_number:[],question:[],passage:[]};for(let l=0;lt==n[l].rightanswer),i={choices:a[l],right_num:c},r.choices.push(i.choices),r.right_number.push(i.right_num),r.question.push(n[l].question),r.passage.push(n[l].passage),l===o-1&&(console.log(r),t("setGrammarMC",r),s(!0))}}).catch(t=>{window.console.error(t)})},setGrammarCAB({commit:t,state:e,dispatch:s,getters:i}){let o=e.sentences,a=[];return new Promise((e,s)=>{let i={choices:[],right_number:[],question:[]};for(let n=0,r=o.length;n{window.console.error(t)})},setGrammarSC({commit:t,state:e,dispatch:s,getters:i}){console.log("setGrammarSC");let o=i.getChipsStateName,a=[],n=[];e.grammar_matching_data=Object.freeze({choice_words:[],selected_words:[],selected_keys:[],selected_text:"",answers:[],right:[],result_html:[]}),t("setLongChips","clear");for(let r=0;r0&&e[c.cnt_n]-1>=a||r.length>=e[c.idx_n][l][a]&&(d+=e[c.chr_n][l][a],r+=e[c.chr_n][l][a],t("setExCnt",{num:1,s_name:c}));for(r+=n,n=d+n,a=0;a0&&e[c.cnt_n]-1>=a||r.length>=e[c.idx_n][l][a]&&(n+=e[c.chr_n][l][a],r+=e[c.chr_n][l][a],t("setExCnt",{num:1,s_name:c}));return n},getSelectChips({commit:t,state:e,dispatch:s,getters:i},o){let a=o.word,n=(o.key,i.getChipsStateName),r=e[n.data_n].selected_words.join("");s("checkExChar",{word:a,sentence:r}).then(e=>{t("setChipsSelect",{key:o.key,word:e,s_name:n})})},getGrammarSelectChips({commit:t,state:e,dispatch:s,getters:i},o){let a=o.word,n=o.key,r=i.getChipsStateName;t("setGrammarChipsSelect",{key:n,word:a,s_name:r})},showChipsRight({commit:t,state:e,dispatch:s,getters:i}){return new Promise((o,a)=>{let n,r=i.getChipsStateName,l=e.sentences[e.current_step],c=e[r.data_n].selected_words,d=e.long_chips[e.current_step],h=l.sentence.trim();if(d){let t=h.length,e=null,s=h.split(/\s+/gi).filter(t=>""!=t);t>=200?t<300?e=15:t>=300&&t<400?e=17:t>=400&&t<500?e=20:t>=500&&(e=22):s.length>22&&(e=15);let i=Math.floor(s.length/e),o=s.length%e,a=[];n=[];for(let r=0;r`;t("clearExCnt",{s_name:r}),function e(i){if(i${n[i]} `,u+=a,n.length-1<=i?(p+="",t("setChipHtmlData",{result_html:p,s_name:r}),o(!0)):e(i+1)):s("checkExChar",{word:n[i],sentence:u}).then(s=>{console.log(s),p+=`${s}`,u+=s,n.length-1<=i?(p+="",t("setChipHtmlData",{result_html:p,s_name:r}),o(!0)):e(i+1)})}}(0)})},showGrammarChipsRight({commit:t,state:e,dispatch:s,getters:i}){return new Promise((s,o)=>{let a=i.getChipsStateName,n=e.sentences[e.current_step],r=e[a.data_n].selected_words,l=n.rightanswer.trim(),c=[],d=n.sc_type;if(1===d)c=Object.values(n.sc_sort_items);else{let t=l.split(" "),e=l.charAt(l.split("").length-1);for(let s=0;s`;t("clearExCnt",{s_name:a}),function e(i){if(i${c[i]}`,c[i+1]&&[",",".","!","?"].includes(c[i+1])||(u+=" "),u+="",h+=c[i],c.length-1<=i?(u+="",t("setChipHtmlData",{result_html:u,s_name:a}),s(!0)):e(i+1)}}(0)})},checkSpeakingEmpty({state:t}){let e=!1;if(void 0==t.speaking_data.result_html[t.current_step]||void 0==t.speaking_data.score[t.current_step]){let s,i;if(e={html:"",score:""},[g["sb"],g["qb"]].includes(t.process_type)?(s=t.words[t.current_step].word,i=t.words[t.current_step].id):(s=t.sentences[t.current_step].sentence,i=t.sentences[t.current_step].id),e.html=`${s}`,e.score=0,!t.rec_blob){let e=`u-${t.uid}-s-${t.schedule_id}-b-${t.current_book_id}-${i}`,s=`${g["w"]}/speakingdeletefile/${t.cid}/${t.uid}`,o={filename:e};G.a.post(s,o).then((function(t){})).catch((function(t){console.log(t)}))}}return e},saveRecBlob({commit:t,state:e}){if(!e.is_mobile&&e.rec_blob){let s;s=[g["sb"],g["qb"]].includes(e.process_type)?e.words[e.current_step].id:e.sentences[e.current_step].id;let i=`u-${e.uid}-s-${e.schedule_id}-b-${e.current_book_id}-${s}.wav`,o=`${g["w"]}/speakingsavewav/${e.cid}/${e.uid}`,a=new FileReader;a.onerror=function(t){window.console.error(t)},a.onloadend=function(e){let s=new FormData;s.append("fname",i),s.append("data",a.result),G.a.post(o,s).then((function(e){200==e.status&&e.data,t("setRecBlob",null)})).catch((function(t){console.log(t)}))},a.readAsDataURL(e.rec_blob)}},loadedRecord({state:t}){let e;e=t.process_type===g["qb"]?document.getElementById("voca-bg").getBoundingClientRect():document.getElementById("tts-audio").childNodes[1].childNodes[0].getBoundingClientRect();let s=document.getElementById("recode-audio").childNodes[1].childNodes[0];s.style.zIndex=15,s.removeAttribute("hidden")},playRecordAudio({commit:t,getters:e}){console.log("playRecordAudio"),t("nextDisabled",!0);let s=document.getElementById("recode-audio").childNodes[0].childNodes[0];s.play(),e.getCurModule!=g["V"]&&t("oxShow",!1),window.currentAudioIterator.push(window.setTimeout(()=>{t("nextDisabled",!1),window.currentAudioIterator=[]},6e4))},stopRecordAudio({commit:t}){console.log("stopRecordAudio");let e=document.getElementById("recode-audio").childNodes[0].childNodes[0];if(e&&e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2&&(e.pause(),e.currentTime=0),t("nextDisabled",!1),t("oxShow",!0),window.currentAudioIterator.length>0)for(let s=0;s{let e=0;return["GT_0"].includes(t.idx)||(e=7===+t.idx&&+t.maxstep>15?15:+t.maxstep),e}).reduce((t,e)=>t+e);let l=+e.modules[e.current_page].maxstep,c=e.end_time-e.start_time>0?Math.round(.001*(e.end_time-e.start_time)):0;e.ingTime[e.process_type]&&(c+=e.ingTime[e.process_type],e.ingTime={});try{if(isNaN(c)||!isFinite(c)||c<0||c>16777215)throw new Error("study_time is NaN or Infinity")}catch(v){console.error(v,e.start_time,e.end_time,e.ingTime)}let d=s.getCIdForRecord;o={academy_id:d,user_id:e.uid,books_id:(e.book?e.book.id:null)||(e.unit?e.unit.book_id:null)||e.current_book_id||null,unit_id:e.current_unit_id||e.unit.id||null,schedule_id:(e.book?e.book.schedule_id:null)||(e.unit?e.unit.schedule_id:null)||e.schedule_id||null,studytime:c,type:e.process_type,schedule_type:+e.book.schedule_type||0,schedule_type_v:+e.book.schedule_type_v||0,unit_seq:e.unit.seq||0,tot_question_cnt:r,question_cnt:l,wrong_cnt:0,module:a,score:0,wrong_sentence_ids:e.wrong_sentence_ids.length>0?JSON.stringify(e.wrong_sentence_ids):null,random_sentence_ids:null,skip:e.cur_module_skip?1:0,page:e.current_page,books_id_all:{book_id:e.book?e.book.id:null,unit_book_id:e.unit?e.unit.book_id:null,current_book_id:e.current_book_id||null},unit_id_all:{current_unit_id:e.current_unit_id||null,unit_id:e.unit?e.unit.id:null},schedule_id_all:{book_schedule_id:e.book?e.book.schedule_id:null,unit_schedule_id:e.unit?e.unit.schedule_id:null,schedule_id:e.schedule_id||null}},1===o.schedule_type_v&&(o.s_u_id=e.unit.s_u_id),e.wrong_word_ids.length>0&&(o.wrong_word_ids=JSON.stringify(e.wrong_word_ids));const h=function(t){for(let[e,s]of Object.entries(t))s||this.wrong_cnt++},u=function(){this.score=(100*(this.question_cnt-this.wrong_cnt)/this.question_cnt).toFixed(2);try{if(1!=o.skip&&(isNaN(o.score)||!isFinite(o.score)))throw new Error("score is NaN or Infinity")}catch(v){console.error(v,o)}};let p,_,m=a,b=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"];switch(b.includes(a)&&(a="GRAMMAR"),a){case g["A"]:case g["Y"]:o={...o,wrong_cnt:0,score:100};break;case g["D"]:h.call(o,e.matching_data.right),u.call(o),n=e.matching_data.result_html;break;case g["o"]:h.call(o,e.dictation_data.right),u.call(o),n=e.dictation_data.result_html;break;case g["N"]:h.call(o,e.popquiz_data.right),u.call(o),n=[];let t=R(e.popquiz_data);if(!t.skip)for(let s=0;s`,l=t.right_number[s],c=t.answers[s];for(let e=0;e${t.choices[s][e]}`}n.push(r)}t.skip=!1,e.popquiz_data=Object.freeze(t);break;case g["wb"]:h.call(o,e.writing_data.right),u.call(o),n=e.writing_data.result_html;break;case g["xb"]:h.call(o,e.writing_k_data.right),u.call(o),n=e.writing_k_data.result_html;break;case g["V"]:{const t=e.speaking_data,s=[],i=[];for(let e=0,o=t.score.length;eNumber(t)<100).length,r=i.reduce((t,e)=>+t+ +e)/t.score.length;const l=s.filter(t=>2===t).length;o={...o,wrong_cnt:a,half_cnt:l,score:r};let c=[];for(let o=0;o${e.speaking_data.result_html[o]}`;c.push(i)}}n=c;break}case g["ub"]:if(e.wordbingo_data&&e.wordbingo_data.right){let t=[];for(let s=0;s0&&(o.wrong_sentence_ids=JSON.stringify(t))}o.question_cnt=e.wordbingo_data.question_cnt,h.call(o,e.wordbingo_data.right),u.call(o),n=e.wordbingo_data.result_html;break;case g["vb"]:case g["M"]:case g["Q"]:case g["v"]:o.question_cnt||(o.question_cnt=e.bank_maxstep),h.call(o,e.bank_data.right),u.call(o),n=e.bank_data.result_html;break;case"GT_0":o.score=100;break;case"GRAMMAR":{const t=+e.unit.book_id,s=+e.unit.seq+1,i=e.unit.name;if(g["zb"].includes(t)&&"GD_1"==m&&s%3===0||g["Ab"].includes(t)&&i.match("Review")&&["GB_1","GD_1"].includes(m)){o.question_cnt||(o.question_cnt=e.bank_maxstep),h.call(o,e.grammar_bank_data.right),u.call(o),n=e.grammar_bank_data.result_html,_=R(e.grammar_bank_data),_.skip=!1,e.grammar_bank_data=Object.freeze(_);break}if(p=e.grammar_sub_unit,console.log("grammar_type : ",e.grammar_type),"MC"==e.grammar_type){if(_=R(e[`grammar_${p}_data`]),h.call(o,_.right),u.call(o),n=[],!_.skip&&_.choices)for(let t=0;t<_.choices.length;t++){let s=_.question[t],i=e[p+"_sentences"][t],o=``,a=_.right_number[t],r=_.answers[t];for(let e=0;e<_.choices[t].length;e++){let s="";r==e&&(s=" class='c_r' "),a==e&&(s=" class='c_b' "),o+=`${_.choices[t][e]}`}n.push(o)}_.skip=!1,e[`grammar_${p}_data`]=Object.freeze(_)}else if("SA"==e.grammar_type){const t=e.writing_k_data.result_html;if(t.length!=e.writing_k_data.right.length){const s=new RegExp(/(data\-r\=\'(.*?)\')+/,"g");for(let i=0,o=t.length;i0&&e.cur_module_skip&&(o.wrong_cnt=0);break}case g["X"]:o.question_cnt||(o.question_cnt=e.bank_maxstep,o.question_cnt=e.modules?e.modules[0].maxstep:e.bank_maxstep),h.call(o,e.grammar_bank_data.right),u.call(o),n=e.grammar_bank_data.result_html,_=R(e.grammar_bank_data),_.skip=!1,e.grammar_bank_data=Object.freeze(_);break;default:try{throw new Error("mod is not defined")}catch(v){console.error(v,a)}break}if(0==e.current_page){o.random_sentence_ids=JSON.stringify(e.sentences.map(t=>+t.id));try{if(!e.sentences)throw new Error("state.current_page = 0 >> sentences is not defined")}catch(v){console.error(v,a,o,e)}}if(void 0==e.modules[e.current_page+1]){let t=1;e.ing_save&&(t=0),o={...o,end:t},e.today_study<1&&a!=g["Y"]&&i("setTodayStudy"),a==g["wb"]&&e.wrong_sentence_write_ids.length>0&&(o.wrong_sentence_ids=JSON.stringify(e.wrong_sentence_write_ids))}if(o={...o,ing_save:e.ing_save},o.wrong_sentence_ids){const t=JSON.parse(o.wrong_sentence_ids);t&&(o.wrong_sentence_ids=JSON.stringify(Array.from(new Set(t))))}return e.wrong_bank_ids.length>0&&(o.wrong_bank_ids=e.wrong_bank_ids),e.wrong_grammar_ids.length>0&&(o.wrong_grammar_ids=e.wrong_grammar_ids),t("setRDBSaving",!0),new Promise(async(s,r)=>{console.log("::sendResult::",o,n),G.a.post(g["w"]+"/v4/result/sendresult",o).then(async o=>{t("setRDBSaving",!1),e.init&&await i("clearIngDoc"),[g["A"],g["Y"]].includes(a)||await i("sendResultHtml",n),o.data&&t("updateUnitRecordId",{ur_id:o.data}),s(o),t("setSendingResult",!1)}).catch((function(e){r(e),t("setResendDialog",!0),t("setSendingResult",!1)}))})},sendResultHtml({commit:t,state:e,dispatch:s,getters:o},a){return new Promise(n=>{let r=o.getCurModule,l=e.modules_names[r],c=(e.book?e.book.schedule_id:null)||(e.unit?e.unit.schedule_id:null)||e.schedule_id||null,d=o.getFBBookUnitId,h=d+"-ing",u=void 0===e.modules[e.current_page+1];if(t("setFBSaving",!0),console.log("sendResultHtml end",u),u)i["db"].collection("users").doc(e.uid).collection("schedules").doc(c).collection("Bookunits").doc(h).get().then(o=>{if(o&&o.exists){let r=o.data();r["ing"]&&delete r["ing"],r[l]=e.cur_module_skip||!a||0==a.length?null:JSON.stringify(a),i["db"].collection("users").doc(e.uid).collection("schedules").doc(c).collection("Bookunits").doc(d).update(r).then(async e=>{t("setFBSaving",!1),await s("clearIngData")}).catch(e=>{console.error(e),t("setFBSaving",!1)}).finally(()=>{n()})}else t("setFBSaving",!1),n()}).catch(t=>{console.error(t)});else{let s={[l]:e.cur_module_skip||!a||0==a.length?null:JSON.stringify(a)};i["db"].collection("users").doc(e.uid).collection("schedules").doc(c).collection("Bookunits").doc(h).update(s).then(e=>{t("setFBSaving",!1)}).finally(()=>{n()})}})},startListening({commit:t,state:e,dispatch:s}){let i=e.process_type==g["r"]?"initAudioFlash":"initAudio",o=e.process_type==g["r"]?"initAudioPlayFlash":"initAudioPlay";return s(i).then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0);let i=window.setTimeout(()=>{s(o).then(()=>{t("nextDisabled",!1)})},g["F"]);t("setDelayActor",i)})})},startMatching({commit:t,state:e,dispatch:s}){let i=e.load_start?"setLoadStartFalse":"setChips";return s(i).then(()=>{s("initAudio").then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1);let i=window.setTimeout(()=>{s("initAudioPlay").then(()=>{})},g["F"]);t("setDelayActor",i)})})})},startDictation({commit:t,state:e,dispatch:s}){let i=e.load_start?"setLoadStartFalse":"setDictation";return s(i).then(()=>{t("renderDictation"),s("initAudio").then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1);let i=window.setTimeout(()=>{s("initAudioPlay")},g["F"]);t("setDelayActor",i)})})})},startPopquiz({commit:t,state:e,dispatch:s}){let i=e.load_start?"setLoadStartFalse":"setPopquiz";return s(i).then(i=>{t("renderPopquiz"),e.book&&50===+e.book.booktype?s("initAudio").then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})}):s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})})},startWriting({commit:t,state:e,dispatch:s}){let i=e.load_start?"setLoadStartFalse":"setChips";return s(i).then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})})},startWritingK({commit:t,state:e,dispatch:s}){return s("setWritingK").then(()=>{s("fillLoadingPercent").then(i=>{t("toggleTimer",!0),e.process_type===g["qb"]?t("nextDisabled",!1):t("nextDisabled",!0),e.load_start&&s("setLoadStartFalse")})})},startSpeaking({commit:t,state:e,dispatch:s}){return s("initAudio").then(()=>{s("setSpeaking").then(()=>{s("fillLoadingPercent").then(i=>{t("toggleTimer",!0),t("nextDisabled",!1);let o=window.setTimeout(()=>{t("setSpeakingStart",!0)},g["F"]);t("setDelayActor",o),e.load_start&&s("setLoadStartFalse")})})})},startWordBingo({commit:t,state:e,dispatch:s}){let i=e.load_start?"setLoadStartFalse":"setWordBingo";return s(i).then(()=>{t("setWordBingoMax"),s("initAudio").then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})})})},startBankModule({commit:t,state:e,dispatch:s}){return s("fillLoadingPercent").then(i=>{t("toggleTimer",!0),t("nextDisabled",!1),e.load_start&&s("setLoadStartFalse")})},startAllListening({commit:t,state:e,dispatch:s}){return s("initAudio").then(()=>{s("fillLoadingPercent").then(e=>{let i=window.setTimeout(()=>{s("initAudioPlay")},g["F"]);t("setDelayActor",i)})})},startEBook({commit:t,state:e,dispatch:s}){return s("EBookMp3Preload").then(()=>{s("EBookImagePreload").then(()=>{s("fillLoadingPercent").then(e=>{let i=window.setTimeout(()=>{s("initAudioPlay")},g["F"]);t("setDelayActor",i),setTimeout(()=>{t("ebookLoaded",!0)},0)})})})},startStoryAdvanced({commit:t,state:e,dispatch:s}){return s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})},startGrammarGT_0({commit:t,state:e,dispatch:s}){return s("fillLoadingPercent").then(e=>{t("setDelayActor",null)})},startGrammarAll({commit:t,state:e,dispatch:s},i){let o,a;console.log("startGrammarAll",i),o=e.modules.findIndex(t=>t.idx===i),e.current_page=o,e.getCurrentStep=1,e.grammar_type=e.sentences[0].type,e[e.grammar_sub_unit+"_sentences"]=e.sentences,console.log("state.load_start",e.load_start),e.load_start?a="setLoadStartFalse":(a="setGrammar"+e.grammar_type,"SA"==e.grammar_type&&t("destroyWritingK"));const n=+e.unit.book_id,r=+e.unit.seq+1,l=e.unit.name;return(g["zb"].includes(n)&&r%3===0&&"GD_1"==i||g["Ab"].includes(n)&&l.match("Review")&&["GB_1","GD_1"].includes(i))&&(e.grammar_type="review",e.load_start?(a="setLoadStartFalse",e.sentences=e.grammar_bank_data.fix_sentences):(a="setGrammarReview",t("destroyGrammarBank"))),"SA"==e.grammar_type&&e.load_start&&s("setLoadStartFalse"),console.log("action_name",a),t("grammarActionCount"),e.load_start||"SA"!=e.grammar_type?"setGrammarReview"==a?s("fillLoadingPercent").then(i=>{t("toggleTimer",!0),t("nextDisabled",!1),e.load_start&&s("setLoadStartFalse")}):"SC"==e.grammar_type?!e.grammar_matching_data.choice_words||0!==e.grammar_matching_data.choice_words.length&&e.grammar_matching_data.choice_words.length==e.sentences.length?s(a).then(e=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})}):s("setGrammarSC").then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})}):s(a).then(e=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0),t("nextDisabled",!1)})}):s("setGrammarWritingK").then(()=>{s("fillLoadingPercent").then(i=>{t("toggleTimer",!0),t("nextDisabled",!1),e.load_start&&s("setLoadStartFalse"),t("setCopyGrammarType")})})},nextActions({state:t,dispatch:e},s){let i=isNaN(s)?s:Number(s);console.log("nextActions",i,+t.book.booktype,t,t.modules),0!==i||43!==+t.book.booktype&&50!==+t.book.booktype||(i=t.modules[0].idx);let o=i,a=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"],n=null;if(a.includes(i)){let e,s=i.toLowerCase().replace("_","").substr(1);e=t.modules.findIndex(t=>t.idx===i),console.log("module_num",e,t.modules,i),i="GRAMMAR",n=new Promise((i,o)=>{G.a.get(`${g["w"]}/v2/book/getgrammardata?unitids=${t.unit.id}&sub_unit=${s}`).then(o=>{200==o.status&&(t.sentences=o.data,t.modules[e].maxstep=o.data.length,t.modules=Object.freeze(t.modules),t.grammar_sub_unit=s,t.grammar_sa_type=o.data[0].sa_type||0===o.data[0].sa_type?o.data[0].sa_type:null,i(o))}).catch(t=>{console.log(t),o(t)})})}if("GRAMMAR"!=i)switch(i){case g["A"]:return e("startListening");case g["D"]:return e("startMatching");case g["o"]:return e("startDictation");case g["N"]:return e("startPopquiz");case g["wb"]:return e("startWriting");case g["xb"]:return e("startWritingK");case g["V"]:return e("startSpeaking");case g["ub"]:return e("startWordBingo");case g["M"]:case g["Q"]:case g["vb"]:case g["v"]:return e("startBankModule");case g["b"]:return e("startAllListening");case g["Y"]:return e("initPage"),e("startEBook");case g["X"]:return e("startStoryAdvanced");case"GT_0":return e("startGrammarGT_0");case-1:if(console.log(t.process_type),"GT"==t.process_type){const s=+t.unit.book_id,i=+t.unit.seq+1,o=t.unit.name;return g["zb"].includes(s)&&i%3===0||g["Ab"].includes(s)&&o.match("Review")||g["Ab"].includes(s)&&t.unit.v_mod&&"GT_0"==t.unit.v_mod?e("setLearningStatus",!1):e("setProcessType",t.process_type+g["R"]).then(()=>{})}return"SV"==t.process_type?e("setLearningStatus",!1):e("setProcessType",t.process_type+g["R"]).then(()=>{});default:return!1}else n.then(()=>e("startGrammarAll",o)).catch(t=>{console.error(t)})},wrongTimerIsScoringX({state:t,dispatch:e,commit:s}){let i=Number(t.modules[t.current_page].idx);s("nextDisabled",!0),t.delay_actor&&(clearTimeout(t.delay_actor),s("setDelayActor",null));let o=g["m"];switch(i){case g["D"]:o=g["yb"];break;case g["o"]:!t.process_type===g["a"]&&(o=g["yb"]);break;default:break}let a=setTimeout((function(){e("processNext").then(t=>{i!==g["xb"]&&s("nextDisabled",!1)})}),o);s("setDelayActor",a)},processNext({state:t,dispatch:e,commit:s,getters:i},o){if(t.loading_percent>0||t.init_guide_dialog)return;const a=i.getCurModule;return a===g["A"]&&i.isSynthesia&&"synthesia"===t.listening_mode&&t.current_synthesia_video&&(t.current_synthesia_video.pause(),t.current_synthesia_video.currentTime=0),e("checkSkip2").then(i=>{console.log("processNext checkSkip",i),i&&(t.clear_prev_result&&t.current_step==t.modules[t.current_page].maxstep-1?e("clearResultData").then(t=>{s("setClearPrevResult",!1),e("goNext",o)}):e("goNext",o))})},checkSkip2({commit:t,state:e,getters:s}){let i=e.modules[e.current_page].idx,o=s.getBlockClick,a=!1,n=!0;switch(i){case g["A"]:break;case g["D"]:0==e.matching_data.selected_words.length&&(a=!0);break;case g["o"]:0==e.dictation_select_key.length&&(a=!0),g["a"]==e.process_type&&(a=!1);break;case g["N"]:-1==e.popquiz_select&&(a=!0);break;case g["wb"]:0==e.writing_data.selected_words.length&&(a=!0);break;case g["xb"]:0==e.writing_k_current_answer.length&&(a=!0);break;case g["V"]:e.speaking_data.result_html[e.current_step]||(a=!0);break;default:break}return a?o?(n=!1,t("setBlockClick",!1)):t("setBlockClick",!0):o&&t("setBlockClick",!1),n},checkSkip({commit:t,state:e,dispatch:s}){e.modules[e.current_page].idx;let i=!0;return i},goModuleSkip({commit:t,state:e,dispatch:s}){s("setModuleSkipData").then(()=>{s("setLoadStartFalse");let i=e.modules,o=e.current_page,a=void 0!=i[o+1]?i[o+1].idx:-1,n=i[o].idx,r=n;console.log("goModuleSkip",i,o,a,n),t("setModuleSkip",!0),e.start_time>0&&t("toggleTimer",!1),t("nextDisabled",!0),e.tts_playing&&t("setTTSPlayingStatus",!1);let l=["GT_0","GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"];switch(l.includes(n)&&(n="GRAMMAR"),n){case g["A"]:return t("clearAudioIterator"),s("sendResult").then(e=>{s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",g["A"]).then(()=>{t("initStep"),t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})});case g["D"]:case g["o"]:return t("addWrongSenAllId"),s("sendResult").then(e=>{let i=setTimeout((function(){s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",n).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})})}),g["T"]);t("setDelayActor",i)});case g["N"]:case g["wb"]:case g["xb"]:return t("addWrongSenAllId"),s("sendResult").then(e=>{let i=setTimeout((function(){t("addLoadingPercent",5),s("addPage",n).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})}),g["T"]);t("setDelayActor",i)});case g["V"]:return t("addWrongSenAllId"),t("setRecordCntZero"),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("sendResult").then(e=>{s("addPage",g["V"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})})});case g["ub"]:return t("addWrongSenAllId"),s("sendResult").then(e=>{let i=setTimeout((function(){t("setBingoHide",!0),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("setBingoAnswer",""),s("addPage",g["ub"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})})}),g["T"]);t("setDelayActor",i)});case g["vb"]:case g["M"]:case g["Q"]:case g["v"]:return t("addWrongBankId","all"),t("nextDisabled",!0),s("sendResult").then(e=>{let i=setTimeout((function(){t("addLoadingPercent",5),s("addPage",n).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})}),g["T"]);t("setDelayActor",i)});case"GRAMMAR":return t("addWrongGrammarId","all"),s("sendResult").then(e=>{let i=setTimeout((function(){t("addLoadingPercent",5),s("addPage",r).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})}),g["T"]);t("setDelayActor",i)});case-1:return s("setProcessType",e.process_type+g["R"]).then(()=>{t("setModuleSkip",!1)});default:return!1}})},goNext({commit:t,state:e,dispatch:s,getters:i},o){let a=e.modules,n=e.current_page,r=e.current_step,l=e.modules[n].maxstep,c=void 0!=a[n+1]?a[n+1].idx:-1,d=Number(e.settings.is_scoringnext),h=a[n].idx,u=l-1;if(e.process_next_disabled&&!e.checked_wrong)return;if(e.modules.length=l&&0!=l)return;const p=+e.unit.book_id,_=+e.unit.seq+1,m=e.unit.name;let b;switch((g["zb"].includes(p)&&_%3===0&&"GD_1"==h||g["Ab"].includes(p)&&m.match("Review")&&["GB_1","GD_1"].includes(h))&&(h="GRAMMAR_BANK"),["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"].includes(h)&&(h="GRAMMAR"),h){case g["A"]:{t("clearAudioIterator");const o=e.sound_effect_src["level_next"];return o&&o.currentTime>0&&!o.paused&&!o.ended&&o.readyState>2&&(o.pause(),o.currentTime=0),r>=u?(t("toggleTimer",!1),s("allRepeatCheck").then(o=>{if(o){if(g["r"]==e.process_type)return void s("fillLoadingPercent").then(()=>{s("initStep"),s("initPage"),t("setLearningStatus",!1)});s("sendResult").then(e=>{s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",g["A"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})})}else s("initStep"),t("setRepeatCntZero"),g["r"]==e.process_type?s("updateAudioFlashCard","next"):i.isSynthesia&&"synthesia"===e.listening_mode?setTimeout(()=>{s("updateSynthesia","next")},100):s("updateAudio","next")})):(t("nextDisabled",!0),s("checkAudioStop").then(()=>{s("addStep").then(()=>{t("setRepeatCntZero"),g["r"]==e.process_type?(s("updateAudioFlashCard","next"),t("nextDisabled",!1)):i.isSynthesia&&"synthesia"===e.listening_mode?setTimeout(()=>{s("updateSynthesia","next")},100):s("updateAudio","next").then(()=>{setTimeout(()=>{t("nextDisabled",!1)},"ios"===e.platform?2e3:0)})})}))}case g["D"]:return r>=u?h===g["D"]&&(t("toggleTimer",!1),s("checkMatching").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["K"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongSenId"),t("nextDisabled",!0),s("showChipsRight").then(()=>{s("sendResult").then(e=>{t("oxShow",!0);let i=setTimeout((function(){t("oxShow",!1),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",g["D"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})}),b);t("setDelayActor",i)})})})):s("checkMatching").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["K"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),s("showChipsRight").then(()=>{let e=setTimeout((function(){s("checkAudioStop").then(()=>{s("addStep").then(()=>{t("oxShow",!1),s("clearMatching").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),s("updateAudio","next")})})})}),b);t("setDelayActor",e)})});case g["o"]:if(e.process_type===g["a"]){if(e.process_next_disabled&&!e.checked_wrong)return;return b=e.ox_right?g["L"]:g["yb"],b=d?g["K"]:b,r>=u?e.checked_wrong?(t("nextDisabled",!0),s("sendResult").then(e=>{t("oxShow",!1),t("setCheckedWrong",!1),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",g["o"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})})):s("checkDictation").then(()=>{if(t("addWrongSenId"),e.ox_right)t("nextDisabled",!0),t("oxShow",!0),t("showDictationRight"),s("sendResult").then(e=>{let i=setTimeout(()=>{t("oxShow",!1),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",g["o"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})},b);t("setDelayActor",i)});else if(t("setCheckedWrong",!0),t("oxShow",!0),t("showDictationRight"),d)s("wrongTimerIsScoringX");else{t("setPreventClick",!0);let e=setTimeout(()=>{t("setPreventClick",!1)},3e3);t("setDelayActor",e)}}):e.checked_wrong?(t("nextDisabled",!0),t("setCheckedWrong",!1),s("checkAudioStop").then(()=>{s("addStep").then(()=>{t("oxShow",!1),s("clearDictation").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),s("updateAudio","next"),t("renderDictation")})})})):s("checkDictation").then(()=>{if(t("addWrongSenId"),e.ox_right){t("nextDisabled",!0),t("oxShow",!0),t("showDictationRight");let e=setTimeout(()=>{s("checkAudioStop").then(()=>{s("addStep").then(()=>{t("oxShow",!1),s("clearDictation").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),s("updateAudio","next"),t("renderDictation")})})})},b);t("setDelayActor",e)}else if(t("setCheckedWrong",!0),t("oxShow",!0),t("showDictationRight"),d)s("wrongTimerIsScoringX");else{t("setPreventClick",!0);let e=setTimeout(()=>{t("setPreventClick",!1)},3e3);t("setDelayActor",e)}})}return r>=u?h===g["o"]&&(t("toggleTimer",!1),s("checkDictation").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["K"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),t("showDictationRight"),s("sendResult").then(e=>{let i=setTimeout((function(){t("oxShow",!1),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",g["o"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})}),b);t("setDelayActor",i)})})):s("checkDictation").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["K"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),t("showDictationRight");let i=setTimeout((function(){s("checkAudioStop").then(()=>{s("addStep").then(()=>{t("oxShow",!1),s("clearDictation").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),s("updateAudio","next"),t("renderDictation")})})})}),b);t("setDelayActor",i)});case g["N"]:{let i=e.book&&50===+e.book.booktype&&0===d;return r>=u?h===g["N"]&&(t("toggleTimer",!1),s("checkPopquiz").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),i?setTimeout(()=>{t("playAudio")},b+(i?750:0)):(e.ox_right||s("startScoringTimer",b),s("sendResult").then(e=>{let i=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",g["N"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})}),b);t("setDelayActor",i)}))})):s("checkPopquiz").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),e.ox_right||s("startScoringTimer",b);let o=setTimeout((function(){i?t("playAudio"):s("addStep").then(()=>{t("oxShow",!1),s("clearPopquiz").then(()=>{t("nextDisabled",!1),t("renderPopquiz")})})}),b);t("setDelayActor",o)})}case g["wb"]:return r>=u?h===g["wb"]&&(t("toggleTimer",!1),s("checkWriting").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),s("showChipsRight").then(()=>{s("sendResult").then(e=>{let i=setTimeout(()=>{t("oxShow",!1),t("addLoadingPercent",5),s("addPage",g["wb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})},b);t("setDelayActor",i)})})})):s("checkWriting").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),s("showChipsRight").then(()=>{let e=setTimeout((function(){t("oxShow",!1),s("addStep").then(()=>{s("clearWriting").then(()=>{t("nextDisabled",!1)})})}),b);t("setDelayActor",e)})});case g["xb"]:return r>=u?h===g["xb"]&&(t("toggleTimer",!1),s("checkWritingK").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),s("showWritingKRight"),s("sendResult").then(e=>{let i=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",g["xb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",c)})})}),b);t("setDelayActor",i)})})):s("checkWritingK").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),s("showWritingKRight"),e.ox_right||s("startScoringTimer",b);let i=setTimeout((function(){t("oxShow",!1),s("addStep").then(()=>{s("clearWritingK").then(()=>{s("setWritingK")})})}),b);t("setDelayActor",i)});case g["V"]:if(!e.current_tts_audio)return!1;if(t("setSpeakingKorShow",!0),e.webkit_speech_available&&!e.is_mobile)if(r>=u){if(h!==g["V"])return!1;t("nextDisabled",!0),t("setRecordCntZero"),s("saveRecBlob"),t("toggleTimer",!1),s("checkSpeakingEmpty").then(i=>{!1!==i&&t("updateSpeakingResult",i),s("playSpeakingAudio").then(i=>{e.current_tts_audio&&(e.current_tts_audio.onended=null,e.current_tts_audio.onerror=null),t("addWrongSpeakingSenId"),s("checkAudioStop").then(()=>{s("sendResult").then(e=>{let i=setTimeout((function(){t("addLoadingPercent",5),s("addPage",g["V"]).then(()=>{t("oxShow",!1),s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",c)})})}),1e3);t("setDelayActor",i)})})})})}else t("nextDisabled",!0),t("setRecordCntZero"),s("saveRecBlob"),s("checkSpeakingEmpty").then(i=>{!1!==i&&t("updateSpeakingResult",i),s("playSpeakingAudio").then(i=>{e.current_tts_audio&&(e.current_tts_audio.onended=null,e.current_tts_audio.onerror=null),t("addWrongSpeakingSenId"),s("checkAudioStop").then(()=>{let e=setTimeout((function(){s("addStep").then(()=>{t("oxShow",!1),t("setSpeakingKorShow",!1),s("setRecordFilenameNull").then(()=>{t("setRepeatCntZero"),s("updateAudio","next").then(()=>{let e=window.setTimeout(()=>{t("nextDisabled",!1)},600);t("setDelayActor",e)})})})}),1e3);t("setDelayActor",e)})})});else if(r>=u){if(h!==g["V"])return!1;t("nextDisabled",!0),t("setRecordCntZero"),t("toggleTimer",!1),s("checkSpeakingEmpty").then(i=>{!1!==i&&t("updateSpeakingResult",i),s("playSpeakingAudio").then(i=>{e.current_tts_audio&&(e.current_tts_audio.onended=null,e.current_tts_audio.onerror=null),t("addWrongSpeakingSenId"),s("checkAudioStop").then(()=>{s("sendResult").then(e=>{let i=setTimeout((function(){t("addLoadingPercent",5),s("addPage",g["V"]).then(()=>{t("oxShow",!1),s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",c)})})}),1e3);t("setDelayActor",i)})})})})}else t("nextDisabled",!0),t("setRecordCntZero"),s("checkSpeakingEmpty").then(i=>{!1!==i&&t("updateSpeakingResult",i),s("playSpeakingAudio").then(i=>{e.current_tts_audio&&(e.current_tts_audio.onended=null,e.current_tts_audio.onerror=null),t("addWrongSpeakingSenId"),s("checkAudioStop").then(()=>{let e=setTimeout((function(){s("addStep").then(()=>{t("oxShow",!1),t("setSpeakingKorShow",!1),s("setRecordFilenameNull").then(()=>{t("setRepeatCntZero"),s("updateAudio","next").then(()=>{let e=window.setTimeout(()=>{t("nextDisabled",!1)},600);t("setDelayActor",e)})})})}),1e3);t("setDelayActor",e)})})});break;case g["ub"]:return r>=u?h===g["ub"]&&(t("nextDisabled",!0),t("toggleTimer",!1),s("checkBingoRight").then(()=>{t("addWrongSenId"),s("updateWordBingoResult").then(()=>{t("setBingoHide",!1),"ios"===e.platform?s("playAudioIos").then(e=>{e&&s("endAudio"),s("sendResult").then(e=>{t("setBingoCls",""),s("checkAudioStop").then(()=>{let e=setTimeout((function(){t("addLoadingPercent",5),s("setBingoAnswer",""),s("addPage",g["ub"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})}),600);t("setDelayActor",e)})})}):(t("playAudio"),b=e.current_tts_audio.duration?1e3*e.current_tts_audio.duration+500:1500,s("sendResult").then(e=>{let i=setTimeout((function(){t("setBingoCls",""),s("checkAudioStop").then(()=>{let e=setTimeout((function(){t("addLoadingPercent",5),s("setBingoAnswer",""),s("addPage",g["ub"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})}),600);t("setDelayActor",e)})}),b);t("setDelayActor",i)}))})})):(t("nextDisabled",!0),s("checkBingoRight").then(()=>{t("addWrongSenId"),s("updateWordBingoResult").then(()=>{if(t("setBingoHide",!1),"ios"===e.platform)s("playAudioIos").then(e=>{e&&s("endAudio"),t("setBingoHide",!0),t("setBingoCls",""),s("checkAudioStop").then(()=>{let e=setTimeout((function(){s("setBingoAnswer",""),s("addStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),s("updateAudio","next")})}),600);t("setDelayActor",e)})});else{t("playAudio"),b=e.current_tts_audio.duration?1e3*e.current_tts_audio.duration+500:1500;let i=setTimeout((function(){t("setBingoHide",!0),t("setBingoCls",""),s("checkAudioStop").then(()=>{let e=setTimeout((function(){s("setBingoAnswer",""),s("addStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),s("updateAudio","next")})}),600);t("setDelayActor",e)})}),b);t("setDelayActor",i)}})}));case g["vb"]:case g["M"]:case g["Q"]:case g["v"]:if(0===l&&(u=e.bank_maxstep-1),b=e.ox_right?2e3:0,b=d?g["L"]:b,r>=u){t("toggleTimer",!1),t("nextDisabled",!0);let e=setTimeout(()=>{t("oxShow",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{s("addPage",h).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})},b);t("setDelayActor",e)}else{t("nextDisabled",!0);let e=setTimeout(()=>{t("oxShow",!1),s("addStep").then(()=>{t("nextDisabled",!1)})},b);t("setDelayActor",e)}break;case"GT_0":s("sendResult").then(e=>{s("nextActions",c),t("setDelayActor",null)});break;case"GRAMMAR":if("MC"==e.grammar_type)return r>=u?(t("toggleTimer",!1),s("checkGrammarMC").then(()=>{t("addWrongGrammarId","MC"),t("nextDisabled",!0),t("oxShow",!0),s("sendResult").then(i=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b);let o=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",g["N"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})}),b);t("setDelayActor",o)})})):s("checkGrammarMC").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongGrammarId","MC"),t("nextDisabled",!0),t("oxShow",!0);let i=setTimeout((function(){s("addStep").then(()=>{t("oxShow",!1),s("clearPopquiz").then(()=>{t("nextDisabled",!1)})})}),b);t("setDelayActor",i)});if("SA"==e.grammar_type)return r>=u?(t("toggleTimer",!1),s("checkGrammarWritingK").then(()=>{t("addWrongGrammarId","SA"),t("nextDisabled",!0),t("oxShow",!0),s("showGrammarWritingKRight"),s("sendResult").then(i=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b);let o=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("clearWritingK").then(()=>{s("addPage",g["xb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",c).then(()=>{t("clearWritingKData")})})})})}),b);t("setDelayActor",o)})})):(t("setGrammarDisabled",!0),s("checkGrammarWritingK").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongGrammarId","SA"),t("nextDisabled",!0),t("oxShow",!0),s("showGrammarWritingKRight");let i=setTimeout((function(){t("oxShow",!1),s("addStep").then(()=>{s("clearWritingK").then(()=>{s("setGrammarWritingK")})})}),b);t("setDelayActor",i)}));if("CAB"==e.grammar_type)return r>=u?(t("toggleTimer",!1),s("checkGrammarCAB").then(()=>{t("addWrongGrammarId","CAB"),t("nextDisabled",!0),t("oxShow",!0),s("sendResult").then(i=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b);let o=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",g["N"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})}),b);t("setDelayActor",o)})})):(t("setGrammarDisabled",!0),s("checkGrammarCAB").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongGrammarId","CAB"),t("nextDisabled",!0),t("oxShow",!0);let i=setTimeout((function(){s("addStep").then(()=>{t("oxShow",!1),s("clearPopquiz").then(()=>{t("renderPopquiz"),t("nextDisabled",!1)})})}),b);t("setDelayActor",i)}));if("SC"==e.grammar_type)return r>=u?(t("toggleTimer",!1),s("checkGrammarMatching").then(()=>{t("addWrongGrammarId","SC"),t("nextDisabled",!0),s("showGrammarChipsRight").then(()=>{s("sendResult").then(i=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("oxShow",!0);let o=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",g["D"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})}),b);t("setDelayActor",o)})})})):(t("setGrammarDisabled",!0),s("checkGrammarMatching").then(()=>{b=e.ox_right?g["L"]:g["yb"],b=d?g["L"]:b,e.ox_right||s("startScoringTimer",b),t("addWrongGrammarId","SC"),t("nextDisabled",!0),t("oxShow",!0),s("showGrammarChipsRight").then(()=>{let e=setTimeout((function(){s("addStep").then(()=>{t("oxShow",!1),s("clearGrammarMatching").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1)})})}),b);t("setDelayActor",e)})}));break;case"GRAMMAR_BANK":if(0===l&&(u=e.bank_maxstep-1),b=e.ox_right?2e3:0,b=d?g["L"]:b,r>=u){t("toggleTimer",!1),t("nextDisabled",!0);let e=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{s("addPage",h).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})}),b);t("setDelayActor",e)}else{t("nextDisabled",!0);let e=setTimeout((function(){t("oxShow",!1),s("addStep").then(()=>{t("nextDisabled",!1)})}),b);t("setDelayActor",e)}break;case g["Y"]:if(u=Math.floor(l/2),r>=u){b=e.ox_right?g["L"]:g["yb"],t("nextDisabled",!0);let i=setTimeout((function(){t("ebookLoaded",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c),t("ebookLoaded",!1)})}),b);t("setDelayActor",i)}else s("addStep");break;case g["X"]:if(0===l&&(u=e.bank_maxstep-1),b=e.ox_right?2e3:0,b=d?g["L"]:b,r>=u){t("toggleTimer",!1),t("nextDisabled",!0);let e=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{s("addPage",h).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",c)})})})}),b);t("setDelayActor",e)}else{t("nextDisabled",!0);let e=setTimeout((function(){t("oxShow",!1),s("addStep").then(()=>{t("nextDisabled",!1)})}),b);t("setDelayActor",e)}break;default:break}},processPrev({state:t,commit:e,dispatch:s,getters:i}){let o=t.modules,a=t.current_page;if(console.log("processPrev"),g["A"]==o[a].idx){if(e("clearAudioIterator"),e("pauseSynthesiaVideo"),"ios"!==t.platform)return s("subStep").then(async()=>{e("setRepeatCntZero"),i.isSynthesia&&"synthesia"===t.listening_mode?setTimeout(()=>{s("updateSynthesia","next")},100):s("updateAudio","prev")});window.clearStudyMedia(),s("subStep"),e("setRepeatCntZero"),i.isSynthesia&&"synthesia"===t.listening_mode?setTimeout(()=>{s("updateSynthesia","next")},100):(e("nextDisabled",!0),s("updateAudio","prev").then(()=>{setTimeout(()=>{e("nextDisabled",!1)},2e3)}))}else o[a].idx===g["Y"]&&s("subStep")},clearResultData({state:t,commit:e,dispatch:s,getters:i}){return new Promise((e,s)=>{console.log("--- clearResultData ---",t.current_restudy);let o=i.getCIdForRecord,a={academy_id:o,user_id:t.uid,books_id:t.current_book_id,unit_id:t.unit.id,schedule_id:t.schedule_id,type:t.process_type,schedule_type:t.book.schedule_type?Number(t.book.schedule_type):0,unit_seq:t.unit.seq?t.unit.seq:0};1==a.schedule_type&&1==t.book.schedule_type_v&&(a.schedule_type_v=t.book.schedule_type_v,a.s_u_id=t.unit.s_u_id?t.unit.s_u_id:0);let n=g["w"]+"/v2/result/setclearresult";G.a.post(n,a).then(t=>{e(!0)}).catch(t=>{s(!1),console.error(t)})})},clearIngDoc({state:t,getters:e}){return new Promise(s=>{console.log("--- clearIngDoc ---");let o=t.schedule_id,a=e.getFBBookUnitId+"-ing";i["db"].collection("users").doc(t.uid).collection("schedules").doc(o).collection("Bookunits").doc(a).set({}).then(t=>{s()}).catch(t=>{s()}),t.init=!1})},clearIngData({state:t,getters:e}){return new Promise(s=>{console.log("--- clearIngData ---");let o=t.schedule_id,a=e.getFBBookUnitId+"-ing";i["db"].collection("users").doc(t.uid).collection("schedules").doc(o).collection("Bookunits").doc(a).set({ing:null},{merge:!0}).then(t=>{s()}).catch(t=>{s()})})},setCurUnitId(t,e){return t.commit("setCurUnitId",e)},addStep:({commit:t})=>{t("addStep")},subStep:({commit:t})=>{t("subStep")},setStep:({commit:t},e)=>t("setStep",e),addPage:({state:t,commit:e},s)=>{t.modules&&t.modules[t.current_page]&&s==t.modules[t.current_page].idx&&e("addPage")},subPage:({commit:t})=>{t("subPage")},initStep:({commit:t})=>{t("initStep")},initPage:({commit:t})=>{t("initPage")},clearMatching(t){return t.commit("clearMatching")},clearGrammarMatching(t){return t.commit("clearGrammarMatching")},checkMatching(t){return t.commit("checkMatching")},checkGrammarMatching(t){return t.commit("checkGrammarMatching")},clearDictation(t){return t.commit("clearDictation")},setDictation(t){return t.commit("setDictation")},checkDictation(t){return t.commit("checkDictation")},clearPopquiz(t){return t.commit("clearPopquiz")},setPopquizSelection({state:t,commit:e},s){let i,o,a=!1,n=!0;[g["pb"],g["sb"],g["Z"]].includes(t.process_type)&&(a=!0),a?(i=(t.process_type,g["Z"],t.words.length),o=n?s.map(t=>t.mean?t.mean.trim():""):s.map(t=>t.word?t.word.trim():"")):(i=t.sentences.length,o=n?s.map(t=>t.mean?t.mean.trim():""):s.map(t=>t.sentence?t.sentence.trim():""));let r=Math.floor(.6*i),l=[];return l[0]=0,l[1]=0,l[2]=0,l[3]=0,o=Array.from(new Set(o)),new Promise((s,c)=>{let d={choices:[],right_number:[]};for(let h=0;h2){c=e;while(p.length<4){let e=I(s),o=t+" "+e.join(" ")+" "+i;p.includes(o)||c==o||p.push(o)}}}}if(u=p.length>0?D(p,4,c):D(o,4,c),i.length>1&&l[u.right_num]>=r){let t=[0,1,2,3];t.splice(u.right_num,1);let e=Math.floor(3*Math.random()),s=t[e],i=u.choices.splice(u.right_num,1);u.choices.splice(s,0,i[0]),d.choices.push(u.choices),d.right_number.push(s),l[s]+=1}else d.choices.push(u.choices),d.right_number.push(u.right_num),l[u.right_num]+=1;h===i-1&&(e("setPopquiz",d),s(!0))}}).catch(t=>{window.console.error(t)})},setPopquiz({state:t,commit:e,dispatch:s}){let i,o=t.current_book_id,a=t.schedule_type,n=g["w"],r=!1;if([g["pb"],g["sb"],g["Z"]].includes(t.process_type)&&(r=!0),0==a?i="unit_id="+t.unit.id:(console.log(t.book.schedule_type_v,t.unit),i=1==t.book.schedule_type_v?"unit_id="+t.unit.id:`unit_seq=${t.unit.seq}&s_leng=${t.unit.sentences_cnt}`),r)n+=`/v2/book/getwordforselection/${o}/type/${a}?${i}`;else{let e=!1;for(let s=0;s{n?G.a.get(n).then(e=>{200==e.status?s("setPopquizSelection",e.data).then(()=>{t(!0)}):t(!1)}).catch(t=>{window.console.error(t),e()}):s("setPopquizSelection",[]).then(()=>{t(!0)})})},checkPopquiz(t){return t.commit("checkPopquiz")},checkGrammarMC(t){return t.commit("checkGrammarMC")},checkGrammarCAB(t){return t.commit("checkGrammarCAB")},clearWriting(t){return t.commit("clearWriting")},checkWriting(t){return t.commit("checkWriting")},getWritingHint({state:t,commit:e,dispatch:s}){if(g["cb"]<=t.writing_hint_hit||t.ox_show)return!1;const i=t.writing_data,o=i.selected_words,a=[],n=o.length,r=t.current_step,l=i.split_words[r],c=i.idx_relation[r],d=i.choice_words[r],h=t.long_chips[r],u=c.indexOf(n),p=d[u];console.log(u,p);for(let _=0,m=o.length;_0?(e("getWritingHint",{pos:-1}),a):void 0===o[n]&&u>=0&&(e("getWritingHint",{pos:n}),{word:p,key:u})},setRecordFilenameNull(t){return t.commit("setRecordFilenameNull")},setSpeaking({commit:t,state:e}){return t("setSpeaking")},updateSpeakingResult(t){return t.commit("updateSpeakingResult")},setWritingK({commit:t,state:e,getters:s}){let i;i=e.process_type===g["qb"]?e.words[e.current_step].word.trim().split(" "):e.sentences[e.current_step].sentence.trim().split(" ");let o,a=i.length,n=[],r=0;if(a>=7&&a<=10?r=2:a>=11&&a<=15?r=3:a>=16&&(r=5),r>0){let t=[],e=[],s=0;while(t.length1e3)break}for(let a=0;a${l}`;s.push(c)}t("setWritingK",{splited:o,writing_k_current_answer:s,writing_k_empty_pos:i})}else{let e=[],s=[];for(let t=0;t=7&&l<=10?d=2:l>=11&&l<=15?d=3:l>=16&&(d=5);let h=Array.from(r.trim()),u=/[A-Za-z\.\,\!\?]/g;if(2===i)n=Array.from(o.right_passage.trim());else if(1===i){n=Array.from(o.rightanswer.trim());let t=o.origin_passage.toLowerCase(),e=o.rightanswer.toLowerCase();t.includes(e)&&(u=/[A-Za-z]/g)}else n=Array.from(o.rightanswer.trim());let p=[],_=[];if(e.is_mobile){if(1===i){let t=!0;for(let e=0;e${o}`;p.push(a)}}else 0!==i&&2!==i||p.push("rightanswer::"+r);t("setGrammarWritingK",{splited:n,writing_k_current_answer:p,writing_k_empty_pos:_,writing_k_current_rightanswer:h})}else{if(1===i)for(let t=0;t0){let t=Array.from(n);for(let s=0,i=e.writing_k_current_question.length;s${t[l]}`;h.push(s),d.splice(s,1,e),c=!0}l++}}}if(c)p++;else{let t,s=!1;for(_.add=!0,_.txt+=n,t=o;tt&&"q"==e.className.replace(/[\s| ]/g,"")&&null===i&&(i=s,!0)}));if(i){let t=` `;d.splice(i,1,t);break}}else{let s=`${e.writing_k_current_question[t]}`;h.push(t),d.splice(t,1,s),_.txt+=e.writing_k_current_question[t]}}return t("getWritingKHintMobile",{writing_k_current_answer:d,writing_k_hint_pos:h,writing_k_hint_w_pos:u,writing_k_hint_hit:p}),_},getWritingKHint({commit:t,state:e},s){let i=g["ib"];if(e.process_type==g["B"]&&(i=g["C"]),i<=e.writing_k_hint_hit||e.ox_show)return!1;let o=Number(s.pos),a=(document.getElementById("wki-show-"+s.key),s.val),n=!1,r=Array.from(a),l=R(e.writing_k_hint_pos),c=R(e.writing_k_hint_w_pos),d={type:1,pos:[]};for(let h=0,u=e.writing_k_current_question.length;h{if("ios"===e.platform){if(e.process_type!==g["qb"]){let t=0,s=document.getElementById("ios-graph-indicator"),i=Number(s.getAttribute("data-width"));window.mediaGraphInterval.push(window.setInterval(()=>{if(window.studyMedia){let t=window.studyMedia.getDuration();!isNaN(e.lesson_speed)&&e.lesson_speed&&100!==e.lesson_speed&&(t*=100/e.lesson_speed),s&&t>=0&&window.studyMedia.getCurrentPosition(e=>{if(e<=0)return;let o=e/t;s.style.left=(i*o).toFixed(3)+"px",t<=e&&window.clearMediaGraph()})}t>2e3&&window.clearMediaGraph(),t+=1},50))}s("playAudioIos").then(t=>{t&&(window.clearMediaGraph(),s("endAudio")),i("end")}).catch(()=>{i("error")})}else e.current_tts_audio.onended=e=>{t("pauseAudio"),i("end")},e.current_tts_audio.onerror=e=>{t("pauseAudio"),i("error")},t("playAudio")})},setWordBingo({commit:t}){t("setWordBingo")},setBingoAnswer({commit:t},e){t("setBingoAnswer",e)},checkBingoRight({commit:t},e){return t("checkBingoRight",e)},updateWordBingoResult({commit:t},e){t("updateWordBingoResult",e)},updateBankData({commit:t},e){return t("updateBankData",e)},updateGrammarBankData({commit:t},e){return t("updateGrammarBankData",e)},async ingSave({state:t,commit:e,dispatch:s,getters:o}){if(!t.modules[t.current_page]||void 0===t.modules[t.current_page].idx)return!0;let a,n,r,l,c,d=t.modules[t.current_page].idx,h={};console.log("ingSave",d),e("toggleTimer",!1),h.last_mod=d,h.current_page=t.current_page,h.current_step=t.current_step,h.audio_files=t.audio_files,h.voca_audio_files=t.voca_audio_files,t.words.length>0&&(h.words_ids=t.words.map(t=>t.id)),t.sentences.length>0&&(h.sentences_ids=t.sentences.map(t=>t.id)),h.study_time=t.end_time-t.start_time>0?Math.round(.001*(t.end_time-t.start_time)):0;let u=d,p=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"];p.includes(d)&&(d="GRAMMAR");let _={};if("GRAMMAR"==d){console.log("ingSave Grammar",t,t.unit),_.unit=t.unit,_.prefix_mod=h.last_mod.split("_")[0],_.current_page=h.current_page,_.current_step=h.current_step,h.grammar_type=t.grammar_type;let e=u.replace(/\_/g,"").replace(/\G/g,"").toLowerCase();switch(t.grammar_type){case"MC":case"CAB":a=R(t[`grammar_${e}_data`]),n=a.right.length,h.current_step("redcard"!=t.cls&&"greencard"!=t.cls||(t.cls="defaultcard"),t)),h.wordbingo_selections=c,h.wordbingo_words=R(t.wordbingo_words);break;case g["vb"]:case g["M"]:case g["Q"]:case g["v"]:a=R(t.bank_data),n=a.right.length,h.current_step{e("setFBSaving",!1)}).catch(t=>{e("setFBSaving",!1)}),!0},ingLoad:async function({state:t,commit:e,dispatch:s,getters:o}){if(t.current_restudy)return t.current_page=0,!1;let a=t.uid,n=t.book.schedule_id,r=o.getFBBookUnitId+"-ing";if(t.init)return!0;if(!a||!n||!r)return!0;let l=await i["db"].collection("users").doc(a).collection("schedules").doc(n).collection("Bookunits").doc(r).get(),c=!1;if(l.exists){let e=l.data();if(r.match(/(GB|GT|GD)/gi))if(e.ing){let s=JSON.parse(e.ing);if((0!=s.current_page||0!=s.current_step)&&(s.sentences_ids&&s.sentences_ids.length>0||s.words_ids&&s.words_ids.length>0)){let i=!0;(s.last_mod.match(/GT/gi)||s.last_mod.match(/(GB|GD)/gi))&&(t.current_page=t.modules.findIndex(t=>t.idx===s.last_mod));t.modules[t.current_page].idx;i&&(i=E.call(s,"sentences_ids")),i&&(c=e.ing)}}else 0!=t.current_page&&(t.current_page=0);else if(e.ing){let s=JSON.parse(e.ing);if((0!=s.current_page||0!=s.current_step)&&(s.sentences_ids&&s.sentences_ids.length>0||s.words_ids&&s.words_ids.length>0)){let i=!0,o="";if(s.current_page?o=t.modules[s.current_page].idx:(t.modules&&t.modules[0].idx===g["X"]&&(t.current_page=0),o=t.modules[t.current_page].idx),s.current_page&&s.current_page!=t.current_page&&(t.current_page=s.current_page),[g["pb"],g["sb"],g["qb"]].includes(t.process_type)?(g["Eb"].includes(o)&&(i=E.call(s,"voca_audio_files")),i&&(i=E.call(s,"words_ids"))):(g["Eb"].includes(o)&&(i=E.call(s,"audio_files")),i&&(i=E.call(s,"sentences_ids"))),i)switch(o){case g["ub"]:i="wordbingo_data"in s,i&&(i=E.call(s,"wordbingo_selections")),i&&(i=E.call(s,"wordbingo_words"));break;case g["o"]:i="dictation_data"in s,i&&(i=E.call(s.dictation_data,"choice_letters")),i&&(i=E.call(s.dictation_data,"selected_letters")),i&&(i=E.call(s.dictation_data,"answers"));break;case g["N"]:i="popquiz_data"in s,i&&(i=E.call(s.popquiz_data,"choices")),i&&(i=E.call(s.popquiz_data,"right_number"));break;case g["D"]:i=E.call(s,"long_chips"),i&&(i="matching_data"in s),i&&(i=E.call(s.matching_data,"choice_words")),i&&(i=E.call(s,"matching_exception_idx")),i&&(i=E.call(s,"matching_exception_char"));break;case g["wb"]:i=E.call(s,"long_chips"),i&&(i="writing_data"in s),i&&(i=E.call(s.writing_data,"choice_words")),i&&(i=E.call(s,"writing_exception_idx")),i&&(i=E.call(s,"writing_exception_char"));break;case g["xb"]:i="writing_k_data"in s;break;case g["V"]:i="speaking_data"in s;break;case g["vb"]:case g["M"]:case g["Q"]:case g["v"]:i="bank_data"in s,i&&(i=E.call(s,"bank_questions"));break;case g["X"]:i&&(i=E.call(s,"sentences_ids")),console.log(s);break;default:break}i&&(c=e.ing)}}if(e.ing){let s=JSON.parse(e.ing);s.wrong_bank_ids&&(t.wrong_bank_ids=Object.freeze(s.wrong_bank_ids)),s.wrong_grammar_ids&&(t.wrong_grammar_ids=Object.freeze(s.wrong_grammar_ids))}}return c},exitLeaning({commit:t}){t("setLearningStatus",!1),t("initializeStudyInfo"),t("initializeBookInfo"),t("toggleDialog",{name:"dialog_leaning_stop",value:!1})},setTodayStudy({commit:t,state:e}){G.a.post(`${g["w"]}/user/${e.cid}/${e.uid}/todaystudy`).then(e=>{200==e.status?t("setTodayStudy",1):t("setTodayStudy",0)}).catch(t=>{window.console.error(t)})},getUserTodayStudy({commit:t,state:e}){G.a.get(`${g["w"]}/user/${e.cid}/${e.uid}/todaystudy`).then(e=>{200==e.status?t("setTodayStudy",1):t("setTodayStudy",0)}).catch(()=>{})},logOutUser({commit:t}){t("logOutUser")},awaitingDialog({commit:t,state:e},s){if(s)return"ios"===e.platform&&e.tts_playing&&t("setTTSPlayingStatus",!1),t("setDialog",s),new Promise((e,s)=>{t("bindDialogPromise",{dialog_resolve:e,dialog_reject:s})})},setModuleSkipData({commit:t}){t("setModuleSkipData")},clearAudioCtx({commit:t}){t("clearAudioCtx")},startLevelTimer({commit:t}){t("startLevelTimer")},pauseLevelTimer({commit:t}){t("pauseLevelTimer")},stopLevelTimer({commit:t}){t("stopLevelTimer")},setAssessmentLimitTime({commit:t},e){t("setAssessmentLimitTime",e)},startAssessmentTimer({commit:t}){t("startAssessmentTimer")},stopAssessmentTimer({commit:t}){t("stopAssessmentTimer")},resetAssessmentTimer({commit:t}){t("resetAssessmentTimer")},setLoadStartFalse({state:t,getters:e,commit:s}){return console.log(e.getCurModule,t.grammar_type),e.getCurModule===g["xb"]||s("setLoadStart",!1)},fillLoadingPercent({commit:t,state:e}){return new Promise((s,i)=>{let o=0,a=-1;void 0!==e.modules[e.current_page]&&(a=e.modules[e.current_page].idx);let n=window.setInterval(()=>{if(a===g["A"]){if(e.module_loading&&o<450)return o%5===0&&t("addLoadingPercent",1),void(o+=1);o>=450&&t("onLoading",!1)}if(t("addLoadingPercent",3),e.loading_percent>=100){if(t("onLoading",!1),e.delay_actor2.length>0){for(let t=0;t{t("setZeroLoadingPercent"),s(!0)},400))}},30);t("setDelayActor2",n)}).catch(t=>{})},soundEffectPlay({commit:t,state:e,dispatch:s},i){if(0===e.sound_effect)return!0;let o=e.sound_effect_src[i];return o?("after_login"==i&&t("initSound",!0),"ios"===e.platform?s("soundEffectPlayIos",o):(o&&o.currentTime>0&&!o.paused&&!o.ended&&o.readyState>2&&(o.pause(),o.currentTime=0),["correct","wrong"].includes(i)?o.volume=.4:o.volume=.8,o.play(),["speaking_rec","save_speaking_ios","level_next","speaking_count_2"].includes(i)?new Promise(t=>{o.onended=()=>{o.onended=null,t(!0)}}):void 0)):void 0},soundEffectPlayIos({state:t,commit:e},s){return window.clearMediaStop(),window.clearEffectMedia(),window.clearStudyMedia(),t.tts_playing&&e("setTTSPlayingStatus",!1),s.includes("save_speaking_ios")&&(s="sounds/save_pocket.mp3"),new Promise(t=>{window.effectMedia=new window.Media(s,()=>{},t=>{window.clearEffectMedia(),window.clearMediaStop()},e=>{e===window.Media.MEDIA_STOPPED&&(window.clearEffectMedia(),window.clearMediaStop(),t(!0)),e===window.Media.MEDIA_RUNNING&&window.mediaStopTimeout.push(window.setTimeout(()=>{window.clearEffectMedia(),window.clearMediaStop(),t(window.Media.MEDIA_STOPPED)},1e3*window.effectMedia.getDuration()+100))}),window.effectMedia.play({playAudioWhenScreenIsLocked:!1})})},clickSound({dispatch:t,state:e},s){"touchstart"!==s.type&&e.is_mobile?s.preventDefault():t("soundEffectPlay","click")},updateTutorial({commit:t,state:e},s){G.a.post(g["w"]+"/user/updatetutorial",{uid:e.uid,type:[s]}).then(e=>{t("updateTutorial",s)}).catch(t=>{window.console.error(t)})},resetTutorial({commit:t,state:e}){G.a.post(g["w"]+"/user/resettutorial",{uid:e.uid,type:["t2","t3","t4","t5"]}).then(e=>{t("updateTutorial","reset_1")}).catch(t=>{window.console.error(t)})},getACount({commit:t,state:e}){return new Promise((s,i)=>{G.a.get(`${g["w"]}/result/${e.cid}/user/${e.uid}/getacount`).then(i=>{i.data>0&&e.a_count&&t("updateACount",i.data),s(i.data)}).catch(t=>{i(t)})})},restoreSessionStorageUserInfo({state:t,commit:e,dispatch:s}){const i=window.sessionStorage;let o=i.getItem("settings")?JSON.parse(i.getItem("settings")):null,a=i.getItem("listening_settings")?JSON.parse(i.getItem("listening_settings")):null,n={product_type:i.getItem("product_type"),promotion_check:i.getItem("promotion_check"),academy_id:i.getItem("cid"),id:i.getItem("uid"),name:i.getItem("uname"),cname:i.getItem("cname"),leveltest_status:i.getItem("leveltest_status")?JSON.parse(i.getItem("leveltest_status")):null,class_name:i.getItem("class_name"),class:i.getItem("class")&&JSON.parse(i.getItem("class"))?JSON.parse(i.getItem("class")).map(t=>t):null,logofile:i.getItem("ulogofile"),uclass:i.getItem("uclass"),academy_logofile:i.getItem("clogofile"),sound_effect:i.getItem("sound_effect"),lesson_speed:i.getItem("lesson_speed"),upostdate:i.getItem("upostdate"),bookmark_use:i.getItem("bookmark_use"),is_random:o?o.is_random:null,is_skip:o?o.is_skip:null,is_scoringnext:o?o.is_scoringnext:null,is_studentcontrol:o?o.is_studentcontrol:null,is_usinghint:o?o.is_usinghint:null,is_restudy:o?o.is_restudy:null,is_openbook:o?o.is_openbook:null,is_ttsgender:o?o.is_ttsgender:null,all_repeat:a?a.all_repeat:null,sen_repeat:a?a.sen_repeat:null,listening_speed:a?a.listening_speed:null,tuto:i.getItem("tuto")?JSON.parse(i.getItem("tuto")):null,a_count:i.getItem("a_count")?i.getItem("a_count"):null,fb_uid:window.FB_UID?window.FB_UID:null,except_books:i.getItem("except_books")?JSON.parse(i.getItem("except_books")):null,trial_guide:i.getItem("trial_guide")?JSON.parse(i.getItem("trial_guide")):t.trial_guide,user_option:{s_ebook_autoplay:i.getItem("s_ebook_autoplay"),shadow_reading_repeat:i.getItem("shadow_reading_repeat"),shadow_synthesia:i.getItem("shadow_synthesia"),listening_synthesia:i.getItem("listening_synthesia"),speak_timer:i.getItem("speak_timer")}};return n.academy_id&&n.id&&n.name&&n.uclass?new Promise(i=>{if(e("saveUserInfo",n),null===t.fb_subscribe)if(window.FB_UID){let t={uid:n.id,data:{fb_uid:window.FB_UID,login_time:(new Date).getTime(),require_relogin:null}};s("fbSetUID",t).then(()=>{s("fbBindUserStatus",n.id)})}else s("fbBindUserStatus",n.id);i(!0)}):new Promise(t=>{t(!1)})},setCheckupInfo({commit:t,state:e},s){let i=[];return i=s.is_random?I(s.sentences):s.sentences,t("setSentences",i),!0},playAudioIos({state:t,commit:e,getters:s,dispatch:i},o){let a,n=g["A"]===t.modules[t.current_page].idx,r=g["ub"]===t.modules[t.current_page].idx;if(t.process_type===g["r"]){let e=t.flashcard_engs[t.current_step];if(!e)return!1;a=null!==e.sentences_id&&null===e.words_id?s.getTTSAudioUrl:s.getVocaAudioUrl}else a=[g["pb"],g["sb"],g["qb"]].includes(t.process_type)?s.getVocaAudioUrl:s.getTTSAudioUrl;return n||e("setTTSPlayingStatus",!1),window.clearStudyMedia(),r?(window.effectMedia&&window.clearEffectMedia(),new Promise(s=>{window.studyMedia=new window.Media(a,()=>{},t=>{e("setTTSPlayingStatus",!1),window.clearStudyMedia(),s(-1)},i=>{if(i===window.Media.MEDIA_STOPPED&&(e("setTTSPlayingStatus",!1),window.clearStudyMedia(),s(i)),i===window.Media.MEDIA_RUNNING){let i=window.studyMedia.getDuration()?window.studyMedia.getDuration():0;window.mediaStopTimeout.length>0&&window.clearMediaStop(),!isNaN(t.lesson_speed)&&t.lesson_speed&&100!==t.lesson_speed&&(i*=100/t.lesson_speed),window.mediaStopTimeout.push(window.setTimeout(()=>{e("setTTSPlayingStatus",!1),window.clearStudyMedia(),s(window.Media.MEDIA_STOPPED)},1e3*i+500))}}),[g["pb"],g["sb"],g["qb"]].includes(t.process_type)&&window.studyMedia.setVolume("0.6"),e("setTTSPlayingStatus",!0),!isNaN(t.lesson_speed)&&t.lesson_speed&&100!==t.lesson_speed&&window.studyMedia.setRate(t.lesson_speed/100),window.studyMedia.play({playAudioWhenScreenIsLocked:!1})})):new Promise(s=>{window.studyMediaInterval.push(window.setInterval(()=>{void 0===window.effectMedia&&(window.clearStudyMedia(),window.setTimeout(()=>{window.studyMedia=new window.Media(a,()=>{},t=>{e("setTTSPlayingStatus",!1),window.clearStudyMedia(),s(-1)},i=>{if(i!==window.Media.MEDIA_STOPPED&&i!==window.Media.MEDIA_PAUSED||(n||e("setTTSPlayingStatus",!1),window.clearStudyMedia(),s(i)),i===window.Media.MEDIA_RUNNING){let i=window.studyMedia.getDuration()?window.studyMedia.getDuration():0;window.mediaStopTimeout.length>0&&window.clearMediaStop(),!isNaN(t.lesson_speed)&&t.lesson_speed&&100!==t.lesson_speed&&(i*=100/t.lesson_speed),window.mediaStopTimeout.push(window.setTimeout(()=>{n||e("setTTSPlayingStatus",!1),window.clearStudyMedia(),s(window.Media.MEDIA_STOPPED)},1e3*i+500))}}),[g["pb"],g["sb"],g["qb"]].includes(t.process_type)&&window.studyMedia.setVolume("0.6"),e("setTTSPlayingStatus",!0),!isNaN(t.lesson_speed)&&t.lesson_speed&&100!==t.lesson_speed&&window.studyMedia.setRate(t.lesson_speed/100),window.studyMedia.play({playAudioWhenScreenIsLocked:!1})},0))},100))})},pauseAudioIos({state:t,commit:e,dispatch:s}){window.studyMedia&&window.studyMedia.pause(),e("setTTSPlayingStatus",!1),e("clearAudioIterator")},btnPlayAudioIos({state:t,commit:e,dispatch:s}){s("playAudioIos").then(t=>{t===window.Media.MEDIA_STOPPED&&s("endAudio")})},playSynthesiaIos({state:t,commit:e,getters:s,dispatch:i},o){},pauseSynthesiaIos({state:t,commit:e,dispatch:s}){window.studyMedia&&window.studyMedia.pause(),e("setTTSPlayingStatus",!1),e("clearAudioIterator")},btnPlaySynthesiaIos({state:t,commit:e,dispatch:s}){s("playSynthesiaIos").then(t=>{t===window.Media.MEDIA_STOPPED&&s("endSynthesia")})},setMobilePause({commit:t},e){return t("setMobilePause",e)},setTrialGuide({commit:t,state:e},s){G.a.post(`${g["w"]}/user/${e.cid}/${e.uid}/settrialguide`,{column:s}).then(()=>{t("setTrialGuide",{key:s,val:1})}).catch(t=>{window.console.error(t)})},toggleFullScreen({commit:t,state:e},s){if(s){const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}else(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen());t("toggleFullScreen",s)},setFullScreenDialog({commit:t,state:e},s){s&&!e.fullScreenDialogTimeout&&(t("setFullScreenDialog",s),e.fullScreenDialogTimeout=setTimeout(()=>{t("setFullScreenDialog",!1),e.fullScreenDialogTimeout=null,clearTimeout(e.fullScreenDialogTimeout)},2500))},async EBookMp3Preload({commit:t,state:e,dispatch:s},i){const o=[],a=+e.book.unit_cnt;if(!a)return;const n=Math.ceil((a+1)/2);console.log(e.book);for(let l=0;l{e.lesson_speed&&(i.playbackRate=e.lesson_speed/100)},e.lesson_speed&&(i.playbackRate=e.lesson_speed/100);let a=!1;if(e.unit.origin_level.includes("N"));else{let s=`${g["p"]}/mp3/page/${t}.mp3`;try{const t=await G()({url:s,method:"get",responseType:"blob"});if(200===t.status){if("ios"===e.platform){const t=`${g["x"]}/media/${tts_folder}/${bookid}/${senid}.mp3`;i.src=t}else{const e=new Blob([t.data],{type:"audio/mp3"}),s=window.URL.createObjectURL(e);i.src=s}a=!0}}catch(r){console.error("Error loading MP3:",r),r.response&&404===r.response.status&&console.log("Error: The requested MP3 file does not exist.",r.response.data)}}if(!a)try{const o={bookid:e.current_book_id,pageid:t,key:l};await s("loadStoryBoookAudioSource",o),e.audio_ctx[l]?i.src=e.audio_ctx[l]:console.log(`Audio context for index ${l} is not set.`)}catch(r){console.error("Error in loading TTS audio source:",r)}o[l]=i}e.eBookAudios=Object.freeze(o),t("setCurrentEBookAudio",e.eBookAudios[0])},EBookImagePreload({commit:t,state:e},s){return new Promise(t=>{const s=R(e.unit),i=[],o=[];let a="";if(s.origin_level){const t=s.origin_level.split("-");+t[0]>=6&&(a=`${encodeURIComponent("영어도서관 6~8 레벨")}/${encodeURIComponent("레벨"+ +t[0])}/`),a+=s.origin_level}else a=s.name;const n=+e.book.unit_cnt;if(n)for(let r=0;r{t("setEBookAutoPlay",s)}).catch(t=>{window.console.error(t)})},updateReport({state:t},e){return new Promise((t,s)=>{G.a.post(`${g["w"]}/v1/result/updatereport/${e.ur_id}`,e).then(e=>{t(e)}).catch(t=>{s(t)})})},updateSynthesiaOption({state:t},e){G.a.post(`${g["w"]}/user/${t.cid}/${t.uid}/setuseroption`,{column:e.column,value:e.value}),window.sessionStorage.setItem(e.column,e.value)},setSpeakTimer({state:t,commit:e},s){G.a.post(`${g["w"]}/user/${t.cid}/${t.uid}/setuseroption`,{column:"speak_timer",value:s?1:0}).then(()=>{e("setSpeakTimer",s)}).catch(t=>{window.console.error(t)})},showToast({commit:t},e){window.toastTimeout&&clearTimeout(window.toastTimeout),t("showToast",e),window.toastTimeout=setTimeout(()=>{t("hideToast"),window.toastTimeout=null},e.duration||3e3)},hideToast({commit:t}){window.toastTimeout&&(clearTimeout(window.toastTimeout),window.toastTimeout=null),t("hideToast")},startScoringTimer({commit:t,state:e},s){t("setScoringTimer",s),t("setScoringTimerTotal",s),t("setScoringTimerActive",!0);const i=setInterval(()=>{const s=e.scoring_timer-500;s<=0?t("clearScoringTimer"):t("setScoringTimer",s)},500);t("setScoringTimerInterval",i)},stopScoringTimer({commit:t}){t("clearScoringTimer")},clearCABSelect({commit:t}){t("clearCABSelect")}};o["default"].use(S["a"]),window.IS_MOBILE=!1,window.studyMedia=void 0,window.effectMedia=void 0,window.studyMediaInterval=[],window.mediaGraphInterval=[],window.mediaStopTimeout=[],window.clearMediaStop=function(){if(window.mediaStopTimeout.length>0)for(let t=0;t0)for(let t=0;t0)for(let t=0;t-1:t.isSaveId},on:{click:t.clickSaveId,change:function(e){var s=t.isSaveId,i=e.target,o=!!i.checked;if(Array.isArray(s)){var a=null,n=t._i(s,a);i.checked?n<0&&(t.isSaveId=s.concat([a])):n>-1&&(t.isSaveId=s.slice(0,n).concat(s.slice(n+1)))}else t.isSaveId=o}}}),s("label",{staticStyle:{"letter-spacing":"-1px"},attrs:{for:"isSaveId"},on:{click:t.clickSaveId}},[t._v("아이디 저장")])])])],1)],1),s("v-card-actions",{staticClass:"text-center login-ver-div"},[s("v-row",{attrs:{"no-gutters":"",align:"center",justify:"center"}},[s("v-col",{attrs:{cols:"12"}},[s("v-btn",{staticStyle:{bottom:"0","letter-spacing":"unset","text-transform":"unset"},attrs:{text:"","x-large":"",block:"",elevation:"0",color:"grey darken-1",disabled:""}},[s("span",{staticStyle:{"text-transform":"none","font-size":"1rem",color:"#ababac"}},[t._v("\n Copyright ⓒ 2020 내공스터디 All rights reserved.\n ")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{"content-class":"login-dialog",scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialogSuccess},model:{value:t.dialog_success,callback:function(e){t.dialog_success=e},expression:"dialog_success"}},[s("v-card",[s("v-card-text",{staticClass:"text-center px-0",class:[t.is_mobile?t.is_ios?"py-3":"py-4":"py-8"]},[s("h3",{staticClass:"title",style:t.is_mobile?t.is_ios?"font-size: 12px !important;":"font-size: 13px !important;":""},[s("b",{staticClass:"success--text fw-700"},[t._v(t._s(t.uname)+" "+t._s(t.uclass_type)+"!")]),s("br"),s("span",[t._v("내공스터디에 오신 것을 환영합니다. ")])])])],1)],1),s("v-dialog",{attrs:{"content-class":"login-dialog",scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialogFail},model:{value:t.dialog_fail,callback:function(e){t.dialog_fail=e},expression:"dialog_fail"}},[s("v-card",{staticClass:"px-0"},[s("v-card-text",{staticClass:"text-center px-0",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title",style:t.is_mobile?"font-size: 12px !important;":"",domProps:{innerHTML:t._s(t.fail_text)}})])],1)],1),s("v-dialog",{key:"index-dialog-4",attrs:{scrollable:"",width:"31em","max-width":"420px",persistent:""},on:{"click:outside":t.closeDialog},model:{value:t.$store.state.exit_dialog,callback:function(e){t.$set(t.$store.state,"exit_dialog",e)},expression:"$store.state.exit_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("내공스터디를 종료하시겠습니까?")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:""},on:{click:t.appExit}},[s("span",{staticClass:"title"},[t._v("종료")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:""},on:{click:t.closeDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1),s("v-dialog",{key:"index-dialog-5",attrs:{width:"31em","max-width":"420px",persistent:""},model:{value:t.dup_dialog,callback:function(e){t.dup_dialog=e},expression:"dup_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",{staticClass:"mx-0",attrs:{dense:""}},[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("회원님의 계정이 다른 기기에서 접속 중입니다.")]),s("br"),s("b",[t._v("다른 기기는 로그아웃되며, 현재 기기로 로그인합니다.")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:""},on:{click:t.loginSuccess}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:""}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"500px",persistent:"","retain-focus":!1},on:{"click:outside":t.closeDialogSave},model:{value:t.dialog_save,callback:function(e){t.dialog_save=e},expression:"dialog_save"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-5":"py-8"]},[s("v-row",{staticClass:"mx-0",attrs:{dense:""}},[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("공용 PC로 이용하실 경우에는")]),s("br"),s("b",[t._v("정보 보호를 위해 학습 후 로그아웃 해주세요.")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",staticStyle:{cursor:"pointer"}},[s("v-col",{staticClass:"py-1",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:""},on:{click:t.closeDialogSave}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1)],1)},Z=[],Y=function(t,e){var s=e._c;return s("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"}},[s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}}),s("path",{staticStyle:{stroke:"none"},attrs:{fill:e.props.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"}})])},J=[],X={props:{color:String,backgroundColor:String,inColor:String}},Q=X,tt=Object(p["a"])(Q,Y,J,!0,null,null,null),et=tt.exports,st={name:"login",components:{AppLogo:et},data(){return{uname:"",uclass_type:"",valid:!0,loginid:"",isSaveId:!1,password:"",idrules:[t=>!!t||""],pwrules:[t=>!!t||""],card_align:"center",card_top:"0px",dialog_success:!1,dialog_fail:!1,dialog_save:!1,dialog_timeout:null,response_bak:null,dup_dialog:!1,fail_text:"",is_mobile:!1,is_ios:!1,ios_focustimeout:null}},methods:{clickSaveId(){this.isSaveId||(this.dialog_save=!0)},closeDialogSuccess(){this.dialog_timeout&&window.clearTimeout(this.dialog_timeout),this.dialog_success=!1,this.$router.push("/")},closeDialogFail(){this.dialog_timeout&&window.clearTimeout(this.dialog_timeout),this.dialog_fail=!1},closeDialogSave(){this.dialog_save=!1},checkExternalKeyboard(){return!(void 0==window.ExternalKeyboard||!window.ExternalKeyboard.isUsed)},focusField(t,e){window.cordova&&"ios"!==window.cordova.platformId?this.is_mobile&&!this.checkExternalKeyboard()&&(this.card_align="start !important",1==e?this.card_top="-10vh":2==e&&(this.card_top="-16.5vh")):this.ios_focustimeout&&window.clearTimeout(this.ios_focustimeout)},blurField(t){window.cordova&&"ios"!==window.cordova.platformId?this.is_mobile&&!this.checkExternalKeyboard()&&(this.card_align="center !important",this.card_top="0px"):this.ios_focustimeout=window.setTimeout(()=>{window.scrollTo(0,NaN)},200)},enterValidate(t){13==t.keyCode&&this.validate()},validate(){this.$refs.form.validate()?this.$axios.post(g["w"]+"/user/logincheck",{loginid:this.loginid,password:this.password,additional:{version:"1.4.27"}}).then(t=>{if(200==t.status){let e=Number(t.data.uclass),s=Number(t.data.studystop);window.cordova&&"ios"===window.cordova.platformId&&(document.getElementById("loginid").blur(),document.getElementById("password").blur());let i=[];if(t.data.except_books&&t.data.except_books.length>0&&t.data.except_books.forEach(t=>{i.push(t)}),this.$store.commit("setExceptBooks",i),t.data.trial_guide&&Object.entries(t.data.trial_guide).forEach(t=>{this.$store.commit("setTrialGuide",{key:t[0],val:t[1]})}),t.data.user_option){const e=t.data.user_option;this.$store.commit("setEBookAutoPlay",+e.s_ebook_autoplay),this.$store.commit("setShadowReadingRepeat",+e.shadow_reading_repeat),this.$store.commit("setSpeakTimer",+e.speak_timer)}if(e>=g["nb"]&&e<=g["lb"]){if(this.uclass_type="학생",e==g["nb"])return this.fail_text="현재 사용 중지 상태이오니
학원 선생님께 문의해주세요.",this.dialog_fail=!0,!1;if(e==g["mb"])return this.fail_text="현재 휴원 상태이오니
학원 선생님께 문의해주세요.",this.dialog_fail=!0,!1}else{if(!(e>=g["jb"]&&e<=g["kb"]))return!1;if(this.uclass_type="선생님",e<=g["ob"])return this.fail_text="강사 아이디로는 로그인 불가합니다.",this.dialog_fail=!0,!1}if(this.uname=t.data.name,g["db"]==s)return this.fail_text="현재 사용 중지 상태이오니
학원 선생님께 문의해주세요.",this.dialog_fail=!0,!1;e{"DUP"===e?(this.response_bak=t,this.dup_dialog=!0,this.dialog_timeout=window.setTimeout(()=>{this.dup_dialog=!1},6e4)):(this.response_bak=t,this.loginSuccess())}):(this.response_bak=t,this.loginSuccess())}else if(202==t.status)this.fail_text=t.data.msg,this.dialog_fail=!0;else{window.cordova&&"ios"===window.cordova.platformId&&(document.getElementById("loginid").blur(),document.getElementById("password").blur());let t=this.password.match(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi);t&&t.length>0?this.fail_text="한/영키를 확인하세요.":this.fail_text="아이디 or 비밀번호가 일치하지 않습니다.",this.dialog_fail=!0}}).catch(t=>{window.console.error(t),t.code&&0===t.code.readyState?this.fail_text="인증서 오류 : 윈도우 설정에서 인증서 자동업데이트 값을 변경해야합니다. 문제가 계속될 경우 고객센터에 문의해주시기 바랍니다.":this.fail_text="인터넷 연결을 확인하세요.",this.dialog_fail=!0}):(this.fail_text="아이디 or 비밀번호가 잘못된 형식으로 입력되었습니다.",this.dialog_fail=!0)},loginSuccess(){let t=this.response_bak;if(this.dup_dialog){this.dup_dialog=!1;let e={uid:t.data.id,data:{fb_uid:window.FB_UID,login_time:(new Date).getTime(),require_relogin:null}};this.$store.dispatch("fbSetUID",e).then(()=>{this.$store.dispatch("fbBindUserStatus",t.data.id)})}if(!t)return!1;if(this.$store.commit("saveUserInfo",t.data),this.$store.commit("setLogin",!0),!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Login.inputUserInfo(t.data.academy_id,t.data.id),this.isSaveId?localStorage.setItem("loginid",this.loginid):localStorage.removeItem("loginid"),this.$axios.get(`${g["w"]}/academy/${this.$store.state.cid}/getrankopt?v=2`).then(t=>{let e=1;200==t.status&&(e=Number(t.data.open_rank),this.$store.commit("setRankPopupView",{popup:+t.data.popup_rank,server_ym:t.data.ym})),this.$store.commit("setLearderboardAuth",e)}).catch(t=>{window.console.log(t)}),this.dialog_success=!0,null!=t.data.logofile){let e=t.data.logofile.split(".")[0];this.$axios.get(`${g["w"]}/images/selpic/${e}`).then(t=>{200==t.status?this.$store.commit("setUserLogoFile",t.data.src):this.$store.commit("setUserLogoFile",null)})}this.dialog_timeout=window.setTimeout(()=>{this.dialog_success=!1,this.$router.push("/")},2e3)},appExit(){this.$store.state.is_mobile?navigator.app.exitApp():window.close()},closeDialog(){this.$store.commit("setDialogResolve","cancel")}},created(){this.app_version="1.4.27".slice(0,-1),(this.$store.state.is_mobile||window.cordova&&("android"==window.cordova.platformId||"ios"==window.cordova.platformId))&&(this.is_mobile=!0),window.cordova&&"ios"===window.cordova.platformId&&(this.is_ios=!0)},mounted(){localStorage.getItem("loginid")&&(this.loginid=localStorage.getItem("loginid"),this.isSaveId=!0),window.cordova&&"ios"===window.cordova.platformId&&this.$nextTick(()=>{window.loginDialogObserver=new MutationObserver(t=>{t[0].addedNodes[0]&&t[0].addedNodes[0].classList.contains("v-overlay")&&(t[0].addedNodes[0].style.height="300%",t[0].addedNodes[0].style.top="-100%")}),window.loginDialogObserver.observe(document.getElementById("app"),{childList:!0})})},beforeDestroy(){window.cordova&&"ios"===window.cordova.platformId&&window.loginDialogObserver&&(window.loginDialogObserver.disconnect(),window.loginDialogObserver=void 0),this.dialog_timeout&&window.clearTimeout(this.dialog_timeout),this.ios_focustimeout&&window.clearTimeout(this.ios_focustimeout)},destroyed(){this.$destroy()}},it=st,ot=(s("f007"),s("8336")),at=s("b0af"),nt=s("99d9"),rt=s("62ad"),lt=s("a523"),ct=s("169a"),dt=s("4bd4"),ht=s("0fd9"),ut=s("8654"),pt=Object(p["a"])(it,K,Z,!1,null,null,null),_t=pt.exports;y()(pt,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VContainer:lt["a"],VDialog:ct["a"],VForm:dt["a"],VRow:ht["a"],VTextField:ut["a"]});var mt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.contents&&t.count>=0?s("div",{attrs:{id:"level-test-index"}},[t.$store.state.process_type===t.LEVEL_TEST?[s("div",{staticClass:"level-contents"},[s("progress-bar",{staticStyle:{"margin-bottom":"3.2vh"},attrs:{currentValue:t.count+1,totalValue:30,goPrev:t.goPrev,goNext:t.goNext,isPrevClicked:t.isPrevClicked,next_disabled:t.next_disabled}}),s("div",{staticClass:"d-flex flex-column pos-rel",staticStyle:{height:"calc(100% - (3.6vh + 3.2vh))"}},[t.count>=0?s("v-window",{staticClass:"content-container",attrs:{touchless:""},model:{value:t.windowModel,callback:function(e){t.windowModel=e},expression:"windowModel"}},t._l(t.contents[t.changed_grade?t.changed_grade:t.testGrade],(function(e,i){return s("v-window-item",{key:"level-quiz-"+e.id,staticClass:"width-100 height-100"},[["word_popquiz","popquiz"].includes(e.type)&&i===t.count?s("level-popquiz",{attrs:{data:t.$data,content:e}}):"dictation"===e.type&&e.blob&&i===t.count?s("level-dictation",{attrs:{data:t.$data,content:e}}):"matching"===e.type&&i===t.count?s("level-matching",{attrs:{data:t.$data,content:e}}):"speaking"===e.type&&i===t.count?s("level-speaking",{attrs:{data:t.$data,content:e}}):t._e()],1)})),1):t._e(),t.count>=0&&t.contents[t.changed_grade?t.changed_grade:t.testGrade][t.count]&&["dictation","speaking"].includes(t.contents[t.changed_grade?t.changed_grade:t.testGrade][t.count].type)?s("div",{staticClass:"pos-abs width-100",class:"height-"+("speaking"===t.curType?50:0),staticStyle:{top:"50%"}},[s("t-t-s-audio",{attrs:{leveltest_data:t.$data}})],1):t._e()],1)],1),s("v-dialog",{key:"level-dialog-1",attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:t.dialog_start,callback:function(e){t.dialog_start=e},expression:"dialog_start"}},[s("v-card",[s("v-card-text",{staticClass:"text-center pa-0 d-flex flex-column"},[s("div",{staticClass:"d-flex align-center justify-center width-100 pa-4 bg-success white--text fs-1p1rem"},[t._v("\n 레벨 테스트 시작\n ")]),s("div",{staticClass:"d-flex align-center justify-center width-100 pa-8 pos-rel"},[s("div",{staticClass:"fs-1p1rem"},[t._v("\n 문제 수는 총 "),s("b",{staticClass:"black--text"},[t._v("30문제")]),t._v("로 제한 시간은\n 없으며,"),s("br"),t._v("\n 풀이한 문제를 다시 이동하여\n "),s("b",{staticClass:"black--text"},[t._v("수정 가능")]),t._v("합니다.\n ")]),s("div",{staticClass:"pos-abs",staticStyle:{right:"5px"}},[s("v-icon",{attrs:{color:"success",size:"30"},on:{click:t.handleTestStartClick}},[t._v(t._s(t.mdiChevronRight))])],1)])])],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:t.dialog_move,callback:function(e){t.dialog_move=e},expression:"dialog_move"}},[s("v-card",[s("v-card-text",{staticClass:"text-center title",class:[t.is_mobile?"py-3":"py-4"],staticStyle:{"background-color":"#404040"}},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("span",{staticClass:"white--text"},[t._v("\n 레벨 테스트가 종료되었습니다."),s("br"),t._v("\n 레포트 분석결과로 넘어갑니다.\n ")])])],1)],1)],1)],1),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:0!==t.count&&!t.isPrevClicked,expression:"count !== 0 && !isPrevClicked"}],staticClass:"study-module-arrow pos-fix-i left",staticStyle:{"z-index":"31"},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1,disabled:t.next_disabled},on:{click:t.goPrev}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdiChevronDoubleLeft))])],1),t.getScoringTimer>0?s("timer"):t._e(),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.count!==t.contents[t.changed_grade?t.changed_grade:t.testGrade].length,expression:"\n count !== contents[changed_grade ? changed_grade : testGrade].length\n "}],staticClass:"study-module-arrow pos-fix-i right",staticStyle:{"z-index":"31"},attrs:{text:"",icon:"",absolute:"",color:"grey",id:"go-next-btn","x-large":"",ripple:!1,disabled:t.next_disabled},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdiChevronDoubleRight))])],1)]:t._e()],2):t._e(),t.$store.state.process_type===t.LEVEL_TEST_RESULT?[s("level-test-result",{attrs:{result:t.final_result}})]:t._e(),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}],attrs:{"loading-text":t.loadingText}})],2)},gt=[],bt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row-progress d-flex align-center justify-center",attrs:{id:"level-progress-bar"}},[s("v-lazy",{staticClass:"lazy-progress",style:{overflow:t.is_ios?"auto":"hidden",marginTop:t.isAssessment?"3.2vh":""}},[s("div",{staticClass:"progress-wrap pos-rel width-100 height-100",style:{overflow:t.is_ios?"auto":"hidden"}},[s("div",{staticClass:"progress-segments pos-rel width-100 height-100 d-flex border-ede thin-a",style:{minWidth:t.totalValue>19?100*t.standard+"%":"100%"}},t._l(t.totalValue,(function(e){return s("div",{key:e,staticClass:"progress-segment white--text cursor-pointer",class:{"is-complete success--text":e0&&this.$store.state.loading_percent<99?t.style.zIndex=0:100==this.$store.state.loading_percent&&setTimeout(()=>{t.style.zIndex=1},500)),this.$store.state.loading_percent},setColor:function(){return this.color_array[Math.ceil(this.$store.state.loading_percent/5)]}},methods:{hideLoading:function(){this.$store.state.loading_percent>=100&&(console.log("end"),this.$store.commit("setZeroLoadingPercent"),document.getElementById("footer").style.zIndex=1)}}},Mt=Pt,Et=(s("30dd"),Object(p["a"])(Mt,Ct,$t,!1,null,null,null)),Bt=Et.exports,Nt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"grey lighten-4",class:[t.getCurModule==t.SPEAKING||t.isLevelTestSpeaking?"speaking-wave":"d-none"],attrs:{id:"speaking-wave"}},[s("v-container",{staticClass:"pa-0"},[s("v-row",[t.$store.state.process_type===t.VOCA_ADVANCED?s("div",{staticClass:"ma-auto d-none wave-canvas pos-abs",style:"width:"+t.$store.getters.getCanvasWidth+"px; height:"+t.$store.getters.getCanvasHeight+"px; top: 50%; left: 50%; transform: translate(-50%, -50%);",attrs:{id:"voca-bg"}}):t._e(),s("v-col",{staticClass:"pa-0",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("audio",{key:"voca-audio",staticStyle:{display:"none"},attrs:{id:"voca-audio",preload:"auto",src:t.getVocaAudioUrl},on:{ended:function(e){return t.endedReceive(e)}}}),s("av-waveform",{key:"tts-audio",ref:"tts-audio",staticClass:"width-100 height-100",attrs:{id:"tts-audio",preload:"auto","audio-src":t.getTTSAudioUrl,type:"audio/mpeg","canv-class":"wave-canvas","canv-width":t.$store.getters.getCanvasWidth,"canv-height":t.$store.getters.getCanvasHeight,"noplayed-line-color":"#29B6F6","played-line-color":"#29B6F6","playtime-slider-color":"#808080","played-line-width":2,"noplayed-line-width":2,"ended-receive":!0,module_idx:t.$store.getters.getCurModule||(t.isLevelTestSpeaking?t.LEVEL_TEST:null)||null}}),1==t.$store.state.is_mobile&&"android"==t.$store.state.platform?s("av-waveform",{key:"recode-audio",ref:"recode-audio",attrs:{id:"recode-audio",preload:"auto","audio-src":t.getRecFile,type:"audio/mpeg","canv-class":"recode-canvas","canv-width":t.$store.getters.getCanvasWidth,"canv-height":t.$store.getters.getCanvasHeight,"noplayed-line-color":"#c82f2e","played-line-color":"#c82f2e","playtime-slider-color":"#909090","played-line-width":2,"noplayed-line-width":2,"loadeddata-receive":!0,module_idx:t.$store.getters.getCurModule||(t.isLevelTestSpeaking?t.LEVEL_TEST:null)||null}}):t._e(),1==t.$store.state.is_mobile?s("div",{staticClass:"pos-fix text-right pa-2",style:"width: "+t.canv_width+"px; height: "+t.canv_height+"px; left:"+t.fix_left+"px; top:"+t.fix_top+"px; z-index:2;display:"+(t.fix_left>0?"block":"none"),attrs:{id:"canvas-caption"}},[t.VOCA_ADVANCED!==t.$store.state.process_type?s("div",{staticClass:"fw-700",staticStyle:{color:"#29b6f6","font-size":"0.85rem"}},[t._v("\n 원어민\n "),s("v-icon",{staticStyle:{width:"18px",height:"18px"},attrs:{color:"#29B6F6"}},[t._v(t._s(t.mdi_minus))])],1):t._e(),"android"==t.$store.state.platform?s("div",{staticClass:"fw-700",staticStyle:{color:"#c82f2e","font-size":"0.85rem"}},[t._v("\n 학습자\n "),s("v-icon",{staticStyle:{width:"18px",height:"18px"},attrs:{color:"#c82f2e"}},[t._v(t._s(t.mdi_minus))])],1):t._e(),t.is_ios?s("div",{staticClass:"pos-abs top-0",staticStyle:{width:"1px",height:"100%","background-color":"rgba(255, 255, 255, 0.5)",left:"0"},attrs:{id:"ios-graph-indicator"}}):t._e()]):t._e()],1)],1)],1)],1)},qt=[],Lt=s("94ed"),zt={name:"tts-audio",props:["leveltest_data"],data(){return{SPEAKING:g["V"],VOCA_ADVANCED:g["qb"],LEVEL_TEST:g["y"],fix_left:0,fix_top:0,canv_width:0,canv_height:0,set_position:!1,unwatch1:null,interval1:null,is_ios:!1,mdi_minus:Lt["O"]}},methods:{endedReceive(t){this.$store.dispatch("endAudio")},setCaption(){console.log("setCaption"),this.$nextTick(()=>{let t,e=200;this.$store.state.process_type===g["qb"]?(t=document.getElementById("voca-bg"),t.classList.remove("d-none"),t.classList.add("d-flex")):t=document.getElementById("tts-audio").childNodes[1].childNodes[0];let s=0;this.set_position=!0,this.interval1=window.setInterval(()=>{let i=t.getBoundingClientRect();if(console.log("interval1",t,i),s++,i.left>0&&i.top>0&&i.width>0&&i.height>0&&(this.fix_left=i.left,this.fix_top=i.top,this.canv_width=i.width,this.canv_height=i.height,this.$store.state.process_type===g["qb"]&&this.is_ios,window.clearInterval(this.interval1),this.interval1=null),s>e&&(window.clearInterval(this.interval1),this.interval1=null),this.is_ios){let t=document.getElementById("ios-graph-indicator");t.setAttribute("data-width",i.width)}},100)})}},computed:{getRecFile(){return this.$store.getters.getRecFilename},getTTSAudioUrl(){if(this.isLevelTestSpeaking){const t=this.leveltest_data;return t.contents[t.testGrade][t.count].blob}return this.$store.getters.getTTSAudioUrl},getVocaAudioUrl(){return this.$store.getters.getVocaAudioUrl},isLevelTestSpeaking(){const t=this.leveltest_data||null;return this.$store.getters.getLearningMode===g["y"]&&t&&"speaking"===t.contents[t.testGrade][t.count].type},getCurModule(){return null===this.$store.getters.getCurModule&&this.isLevelTestSpeaking?g["y"]:this.$store.getters.getCurModule}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0),this.$store.state.is_mobile&&(this.getCurModule!=g["V"]&&!this.isLevelTestSpeaking||0!=this.set_position?this.unwatch1=this.$store.watch((t,e)=>e.getCurModule,(t,e)=>{t==g["V"]&&0==this.set_position&&this.setCaption()}):this.setCaption())},beforeDestroy(){this.unwatch1&&this.unwatch1(),this.interval1&&window.clearInterval(this.interval1)}},Ot=zt,jt=(s("2017"),s("132d")),Vt=Object(p["a"])(Ot,Nt,qt,!1,null,null,null),Ft=Vt.exports;y()(Vt,{VCol:rt["a"],VContainer:lt["a"],VIcon:jt["a"],VRow:ht["a"]});var Gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return"word_popquiz"===t.content.type?s("section",{staticClass:"word",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"question-wrapper d-flex flex-column align-center justify-center height-100"},[s("div",{staticClass:"bank-question grammar-question min-h-7vh",style:"font-size:"+t.data.font_head+"vw; margin-bottom:1rem; height:max-content; overflow:hidden;"},[s("div",{staticClass:"bg-question"},[s("span",[t._v(t._s("Q "+(t.data.count+1)+". 다음 단어에 알맞은 뜻을 고르세요."))])])]),s("div",{staticClass:"bank-question grammar-question min-h-7vh d-flex align-center justify-center width-100 height-100",style:"font-size:"+(t.data.font_head+.7)+"vw;"},[t.content.img?s("div",{staticStyle:{width:"18vw",height:"15vw","margin-right":"5%"}},[s("img",{staticClass:"width-100 height-100",staticStyle:{"object-fit":"contain"},attrs:{src:t.content.img,alt:t.content.word}})]):t._e(),s("div",{staticClass:"font-weight-bold d-flex align-center height-100 width-100",class:{"border-ede thin-l":t.content.img},staticStyle:{"max-width":"27%"},style:{paddingLeft:t.content.img?"5%":"",justifyContent:t.content.img?"flex-start":"center"}},[s("span",[t._v(t._s(t.content.word))]),s("v-icon",{staticClass:"ml-3 play-icon",class:{"success--text":!t.isPlay&&t.content.blob,"cursor-pointer":t.content.blob},style:{color:t.isPlay||!t.content.blob?"#f1f1f1":""},attrs:{"x-large":""},on:{keydown:function(t){t.preventDefault()},click:t.togglePlayWord}},[t._v(t._s(t.mdi_play_circle))])],1),s("audio",{ref:"popquiz-audio-player",attrs:{src:t.content.blob},on:{ended:function(e){t.isPlay=!1}}})])]),s("div",{staticClass:"selection-wrapper height-100",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder height-100",staticStyle:{"align-content":"center"}},[t.data.is_ios?t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0.5rem"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn word",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"d-inline-block"},[s("auto-text",{attrs:{maxFontSize:2,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)})):t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0.5rem 2rem"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn word",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.4,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)}))],2)],1)]):s("section",{staticClass:"sentence",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"question-wrapper d-flex flex-column align-center justify-center"},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+t.data.font_head+"vw; margin-bottom:1rem;"},[s("div",{staticClass:"bg-question"},[s("span",[t._v(t._s("Q "+(t.data.count+1)+". 다음 문장을 제대로 해석한 것을 고르세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+(t.data.font_head+.3)+"vw;"},[s("span",{staticClass:"font-weight-bold",staticStyle:{"word-break":"break-word"}},[t._v("\n "+t._s(t.content.sentence)+"\n ")])])]),s("div",{staticClass:"selection-wrapper",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder align-center",staticStyle:{"align-content":"center"}},[t.data.is_ios?t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"1vh 0"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)})):t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0","margin-bottom":"2vh"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)}))],2)],1)])},Wt=[],Ut=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"auto-text lh-1d4 width-100p",class:{"opacity-0":!t.complete},style:"font-size:"+t.font_size+"vw;"},["chips"===t.type&&t.complete?s("style",{tag:"component"},[t._v("\n #chips-"+t._s(t.step)+" .chip-"+t._s(t.step)+" { padding: "+t._s(t.padd)+"vw; margin:\n "+t._s(t.marg)+"vw; line-height: "+t._s(t.font_size)+"vw; font-size:\n "+t._s(t.font_size)+"vw; min-width: "+t._s(t.min_width)+"vw; height: auto !important;\n }\n ")]):t._e(),"keyboard"===t.type&&t.complete?s("style",{tag:"component"},[t._v("\n #keyboard-"+t._s(t.step)+" .keywrap-"+t._s(t.step)+" span { font-size:\n "+t._s(t.font_size)+"vw; margin-top: -"+t._s(t.margtn)+"vw; } #keyboard-"+t._s(t.step)+"\n .keywrap-"+t._s(t.step)+" { width: "+t._s(t.wrap_width)+"vw; height:\n "+t._s(t.wrap_height)+"vw; margin-left: "+t._s(t.margl)+"vw; margin-top:\n "+t._s(t.margt/2)+"vw; margin-bottom: "+t._s(t.margt/2)+"vw; }\n ")]):t._e(),"writingk"===t.type&&t.complete?s("style",{tag:"component"},[t._v("\n #writingk-"+t._s(t.step)+" { font-size: "+t._s(t.font_size)+"vw; line-height:\n "+t._s(t.line_height)+"vw; } #writingk-"+t._s(t.step)+" span.q:before { font-size:\n "+t._s(t.font_size)+"vw; line-height: "+t._s(t.line_height)+"vw; } #writingk-"+t._s(t.step)+":before { font-size: "+t._s(t.font_size)+"vw; line-height:\n "+t._s(t.line_height)+"vw; }\n ")]):t._e(),t.complete?s("style",{tag:"component"},[t._v("\n .backspace-btn { height: "+t._s(t.font_size)+"vw !important; width:\n "+t._s(t.font_size)+"vw !important; } .svg-cover { height: "+t._s(t.font_size)+"vw\n !important; width: 100% !important; } .svg-cover * { height:\n "+t._s(t.font_size)+"vw !important; width: 100% !important; }\n ")]):t._e(),"chips"===t.type?s("div",{staticClass:"d-flex flex-wrap justify-center align-center align-content-center",staticStyle:{width:"100%"},attrs:{id:"chips-"+t.step}},[t.complete?s("div",{staticStyle:{width:"100%",display:"flex","flex-wrap":"wrap","justify-content":"center","align-items":"center"}},[t._t("default")],2):t._e()]):"keyboard"===t.type?s("div",{staticClass:"keys-wrapper height-100 d-flex align-center justify-center align-content-center flex-wrap mx-auto",style:"width: "+t.container_width+";",attrs:{id:"keyboard-"+t.step}},[t.complete?t._t("default"):t._e()],2):"writingk"===t.type?s("div",{staticClass:"keys-wrapper width-100 height-100 d-flex align-center justify-center align-content-center flex-wrap",attrs:{id:"writingk-"+t.step}},[t.complete?t._t("default"):t._e()],2):t.complete?t._t("default"):t._e()],2)},Ht=[];const Kt=20;var Zt={name:"AutoText",props:{maxHeight:[Number,String],maxFontSize:[Number,String],src:String,step:[Number,String],type:String,pa:[Number,String],ma:[Number,String],minWidth:[Number,String],wrapWidth:[Number,String],wrapHeight:[Number,String],ml:[Number,String],mt:[Number,String],mtn:[Number,String]},data(){return{font_size:this.maxFontSize,padd:this.pa,marg:this.ma,min_width:this.minWidth,wrap_width:this.wrapWidth,wrap_height:this.wrapHeight,margtn:this.mtn,margl:this.ml,margt:this.mt,line_height:0,container_width:"100%",complete:!1}},methods:{createTempDiv(t){const e=document.createElement("div");if("chips"===this.type){let e=null,s=t.length,i=t.split(/\s+/gi).filter(t=>""!=t);if(s>=200?s<300?e=15:s>=300&&s<400?e=17:s>=400&&s<500?e=20:s>=500&&(e=22):i.length>22&&(e=15),i.length<=e&&(e=null),null==e)i=i.map((t,e)=>/[a-zA-Z]/gi.test(t)&&t.length<2?t+"*":t);else{let t=Math.floor(i.length/e),s=i.length%e,o=[],a=[];for(let e=0;e{const t=this.src||this.$el.innerText,e=this.maxHeight;let s=this.font_size,i=null,o=null,a=null,n=null,r=null,l=null,c=null,d=null;"chips"===this.type&&(i=this.padd,o=this.marg,a=this.min_width),"keyboard"===this.type&&(n=this.wrap_width,r=this.wrap_height,l=this.margl,c=this.margt,d=this.margtn);const h=this.createTempDiv(t);let u=this.getTextHeight(s,h,i,o,n,r,l,c),p=0;while(u>e&&p.2){if(s=Number(parseFloat(s-.2).toFixed(4)),"chips"===this.type&&(i=Number(parseFloat(i-.04).toFixed(4)),o=Number(parseFloat(o-.025).toFixed(4)),a=Number(parseFloat(a-.32).toFixed(4))),"keyboard"===this.type)break;u=this.getTextHeight(s,h,i,o,n,r,l,c),p++}if(this.removeTempDiv(h),this.font_size=s-.1,"chips"===this.type&&(this.padd=i,this.marg=o,this.min_width=a),"keyboard"===this.type){this.wrap_width=n,this.wrap_height=r,this.margl=l,this.margt=c,this.margtn=d;let t=13,e=Array.from(this.src).length;if(e>t){n>80&&(n=80);let s=Math.ceil(e/t),i=Math.ceil(e/s),o=i*(n+l)+2;this.container_width=o+"vw"}}"writingk"==this.type&&(this.line_height=1.14*s),window.setTimeout(()=>{this.complete=!0},50)})}},mounted(){this.computeFontsize(),window.timeout1=setTimeout(()=>{this.src.length>=200&&this.font_size==this.maxFontSize&&this.computeFontsize()},250)},beforeDestroy(){window.timeout1&&window.clearTimeout(window.timeout1)},destroyed(){this.$destroy()}},Yt=Zt,Jt=(s("9f29"),Object(p["a"])(Yt,Ut,Ht,!1,null,null,null)),Xt=Jt.exports,Qt={name:"level-popquiz",components:{AutoText:Xt},props:["data","content"],data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null}},created(){},mounted(){null!==this.choiceAnswer&&this.selectPopquiz(null,this.choiceAnswer),this.$nextTick(()=>{this.data.dialog_start||"word_popquiz"!==this.content.type||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.isLevelTestStart"(t){t&&"word_popquiz"===this.content.type&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&this.checkPopquiz()},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null}},methods:{togglePlayWord(){const t=this.$refs["popquiz-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.content.answer;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){let t=this.content.answer;console.log(t,"right_num",this,this.popquiz_select,"popquiz_select");const e={id:this.content.id,type:this.content.type,grade:this.grade,ox_right:t===this.popquiz_select,answer:this.content.answer,choices:this.content.choices,choice_answer:this.popquiz_select};"word_popquiz"===this.data.curType?e.sentence=this.content.word:e.sentence=this.content.sentence,this.data.result_data[this.count]=e,this.data.check_answer=!1},pcKeydown(t){const e=Number(t.key);if(!(e>=1&&e<=4))return!1;this.selectPopquiz(null,e-1)},selectPopquiz(t,e){this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select)}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){}},te=Qt,ee=(s("7640"),Object(p["a"])(te,Gt,Wt,!1,null,null,null)),se=ee.exports;y()(ee,{VBtn:ot["a"],VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"]});var ie=function(){var t,e,s=this,i=s.$createElement,o=s._self._c||i;return o("div",{staticClass:"height-100 d-flex",staticStyle:{"max-height":"70vh"},attrs:{id:"level-dictation-wrapper"}},[o("div",{staticClass:"video-wrapper video-view-on"},[o("video-player",{key:"level-synthesia-video-player-"+s.videoKey,ref:"level-synthesia-video-player",staticClass:"width-100 height-100",attrs:{id:"synthesia-video-player",blob:s.getVideoURL}}),o("div",{staticClass:"d-flex align-center justify-center"},[o("t-t-s-player",{attrs:{"leveltest-data":s.content}})],1)],1),o("div",{staticClass:"listening-window in-study left-0 right-0 top-0 bottom-0 pos-rel",attrs:{id:"listening-wrapper",touchless:""}},[o("div",{staticClass:"question-wrapper"},[o("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+s.data.font_head+"vw; margin-bottom: 4vh;"},[o("div",{staticClass:"bg-question"},[o("span",[s._v("\n "+s._s("Q "+(s.data.count+1)+". 문장을 듣고, 빈 칸에 알맞은 단어를 적으세요.")+"\n ")])])]),o("v-sheet",{staticClass:"height-100",staticStyle:{padding:"0 1rem","max-height":"60%"}},[o("v-row",{staticClass:"dictation-ans",attrs:{dense:""}},[o("v-col",{staticClass:"pa-0 height-inherit d-flex col-padd",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[o("auto-text",{attrs:{src:s.content.sentence,maxHeight:.26*s.$store.state.screen_height,maxFontSize:2.1}},[o("div",{staticClass:"height-100"},[o("div",{staticClass:"answer-wrapper ma-auto py-0 width-auto height-inherit max-w-100 d-flex flex-row flex-wrap justify-center align-content-center align-center",attrs:{id:"dic-ans-"+s.data.count}},[s.data.is_ios?s._l(s.select_arr,(function(t,e){return o("span",{key:"dic-sel-"+e,class:{"cursor-pointer":s.choice_idx.includes(e)},staticStyle:{"font-size":"inherit"},domProps:{textContent:s._s(s.dictation_uppercase.includes(e)?t.toUpperCase():t)},on:{touchstart:function(i){return s.subSelection(i,t,e)}}})})):s._l(s.select_arr,(function(t,e){return o("span",{key:"dic-sel-"+e,class:{"cursor-pointer":s.choice_idx.includes(e)},staticStyle:{"font-size":"inherit"},domProps:{textContent:s._s(s.dictation_uppercase.includes(e)?t.toUpperCase():t)},on:{click:function(i){return s.subSelection(i,t,e)}}})}))],2)])])],1)],1)],1)],1),o("v-card",{staticClass:"in-study-module-control elevation-0"},[o("div",{staticClass:"dictation-keyboard border-ede thin-t width-100"},[o("v-row",{staticClass:"width-100 height-100 ma-0",attrs:{align:"center",justify:"center","no-gutters":""}},[o("v-col",{staticClass:"width-100 height-100 d-flex",style:1!==s.scale_val?"transform: scale("+s.scale_val+")":"",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s.tmptxt?o("auto-text",{attrs:{type:"keyboard",maxFontSize:2.2,maxHeight:.3*s.$store.state.screen_height,src:s.tmptxt,step:s.data.count,ml:1,mt:1.2,mtn:.3,wrapWidth:4,wrapHeight:4}},[s.data.is_ios?[s._l(s.choice_arr,(function(t,e){return o("button",{key:"keybtn-"+t.char+"-"+e,staticClass:"keywrap d-block pos-rel",class:[0===t.cnt?"pressed keywrap-"+s.data.count:"keywrap-"+s.data.count],attrs:{id:"k-"+t.char},on:{touchstart:function(i){return s.toggleLetter(i,t.char,t.cnt,e)}}},[t.max>1?o("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[e1?o("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[e{console.log("startCheckInterval"),this.$store.state.isLevelTestStart&&(clearInterval(window.startCheckInterval),this.playLevelTestVideo())},1500):this.playLevelTestVideo())},playLevelTestVideo(){window.playLevelTestVideoTimeout=setTimeout(()=>{this.$store.state.current_synthesia_video.paused&&(this.$store.state.current_synthesia_video.readyState>=2?this.$store.commit("playSynthesiaVideo"):(window.videoInterval&&clearInterval(window.videoInterval),window.videoInterval=setInterval(()=>{console.log("videoInterval"),this.$store.state.current_synthesia_video.readyState>=2?(this.$store.commit("playSynthesiaVideo"),clearInterval(window.videoInterval)):this.$store.state.current_synthesia_video.load()},3e3),this.$store.state.current_synthesia_video.addEventListener("error",t=>{const e=t.target.error;console.error("Video error code:",e.code),console.error("Video error message:",e.message),this.$store.state.current_synthesia_video.load()}),this.$store.state.current_synthesia_video.oncanplaythrough=()=>{clearInterval(window.videoInterval),this.$store.commit("playSynthesiaVideo")},this.$store.state.current_synthesia_video.load()))},2e3)}},beforeDestroy(){this.$store.commit("pauseSynthesiaVideo"),window.startCheckInterval&&clearInterval(window.startCheckInterval),window.videoInterval&&clearInterval(window.videoInterval),window.playLevelTestVideoTimeout&&clearTimeout(window.playLevelTestVideoTimeout)}},le=re,ce=(s("67e6"),Object(p["a"])(le,ae,ne,!1,null,null,null)),de=ce.exports,he=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.btnShow,expression:"btnShow"}],class:"module-"+t.getCurModule,attrs:{id:"audio-ctl-btn"}},[t.$store.state.init_loading?s("v-btn",{attrs:{"x-large":"",text:"",color:"info",loading:""}}):t.getCurModule!==t.STORY_EBOOK?s("button",{attrs:{type:"button"},on:{click:function(e){return t.checkToggle(e)}}},[s("div",{staticClass:"btn-responsive",class:[t.$store.state.tts_playing?"play":"pause"]},[t.$store.state.tts_playing?s("div",{staticClass:"wave-icon pos-abs-i right-0 left-0 ma-auto"},[s("icon-sound-wave",{attrs:{color:"#00dcff"}}),s("div",{staticClass:"horiz-line width-100 pos-abs top-0"})],1):t._e()])]):t._e(),[t.DICTATION,t.STORY_EBOOK,t.ALL_LISTENING].includes(t.getCurModule)?s("v-switch",{key:"dictation-repeat-swtich",staticClass:"switch-left-label no-dot width-100 mt-0",class:"is-mobile-"+t.is_mobile+" mode-"+t.getCurModule,style:t.setSwitchStyle,attrs:{id:"repeat-switch",label:t.setSwitchLabel,color:"success","hide-details":"",ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.repeatSwitch(e,t.getCurModule)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}},model:{value:t.switch_val,callback:function(e){t.switch_val=e},expression:"switch_val"}}):t._e(),2===t.getCurModule?s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("repeat_dialog")}},model:{value:t.repeat_dialog,callback:function(e){t.repeat_dialog=e},expression:"repeat_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},[s("v-row",[s("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[s("span",{staticClass:"grey--text"},[t._v("이제부터 ")]),s("span",{staticClass:"black--text"},[t._v("음성이 반복 재생됩니다.")])])],1)],1)],1)],1):t._e()],1)},ue=[],pe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("svg",{staticStyle:{"enable-background":"new 0 0 140 70"},attrs:{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 140 80","xml:space":"preserve"}},[s("g",{attrs:{id:"audio-wave","data-name":"audio-wave"}},[s("rect",{staticClass:"wave",attrs:{id:"wave-35",x:"136",width:"3",y:"34",height:"12",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-34",x:"132",width:"3",y:"32",height:"16",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-33",x:"128",width:"3",y:"35",height:"10",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-32",x:"124",width:"3",y:"33",height:"14",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-31",x:"120",width:"3",y:"23",height:"34",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-30",x:"116",width:"3",y:"18",height:"44",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-29",x:"112",width:"3",y:"25",height:"30",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-28",x:"108",width:"3",y:"10",height:"60",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-27",x:"104",width:"3",y:"15",height:"50",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-26",x:"100",width:"3",y:"20",height:"40",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-25",x:"96",width:"3",y:"25",height:"30",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-24",x:"92",width:"3",y:"26",height:"28",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-23",x:"88",width:"3",y:"34",height:"12",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-22",x:"84",width:"3",y:"33",height:"14",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-21",x:"80",width:"3",y:"20",height:"40",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-20",x:"76",width:"3",y:"21",height:"38",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-19",x:"72",width:"3",y:"29",height:"22",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-18",x:"68",width:"3",y:"27",height:"26",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-17",x:"64",width:"3",y:"25",height:"30",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-16",x:"60",width:"3",y:"12",height:"56",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-15",x:"56",width:"3",y:"18",height:"44",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-14",x:"52",width:"3",y:"20",height:"40",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-13",x:"48",width:"3",y:"26",height:"28",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-12",x:"44",width:"3",y:"30",height:"20",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-11",x:"40",width:"3",y:"31",height:"18",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-10",x:"36",width:"3",y:"33",height:"14",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-9",x:"32",width:"3",y:"24",height:"32",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-8",x:"28",width:"3",y:"22",height:"36",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-7",x:"24",width:"3",y:"30",height:"20",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-6",x:"20",width:"3",y:"26",height:"28",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-5",x:"16",width:"3",y:"35",height:"10",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-4",x:"12",width:"3",y:"20",height:"40",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-3",x:"8",width:"3",y:"25",height:"30",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-2",x:"4",width:"3",y:"30",height:"20",rx:"0.5",ry:"0.5",fill:t.color}}),s("rect",{staticClass:"wave",attrs:{id:"wave-1",x:"0",width:"3",y:"34",height:"12",rx:"0.5",ry:"0.5",fill:t.color}})])])},_e=[],me={props:{color:String}},ge=me,be=(s("1852"),Object(p["a"])(ge,pe,_e,!1,null,null,null)),ve=be.exports;window.dialog_timeout=null;var fe={components:{IconSoundWave:ve},props:["spacekey","leveltestData"],data(){return{DICTATION:g["o"],STORY_EBOOK:g["Y"],ALL_LISTENING:g["b"],SHADOW_READING:g["S"],repeat_cnt:3,mode:"",is_ios:!1,is_mobile:this.$store.state.is_mobile,repeat_intv:null,repeat_dialog:!1,switch_val:!1}},created(){this.repeat_cnt=Number(this.$store.state.listening_settings.sen_repeat),this.mode=this.$store.getters.getLearningMode,"ios"===this.$store.state.platform&&(this.is_ios=!0),this.getCurModule===g["Y"]?this.switch_val=this.$store.state.isEBookAutoPlay:this.mode===g["S"]&&(this.switch_val=this.$store.state.shadow_reading_repeat)},watch:{spacekey(){this.checkToggle()}},computed:{btnShow(){let t=!0;if(1==this.$store.state.ox_show)switch(this.getCurModule){case g["D"]:t=!1;break;default:t=!0;break}return t},setSwitchLabel(){const t=this.getCurModule;let e="";return t===g["Y"]?e="자동 "+(this.is_mobile?"":"재생"):t===g["o"]?e="반복 재생":t===g["b"]&&(e="반복"+(this.is_mobile?"":" 재생")),e},setSwitchStyle(){let t="";const e=this.getCurModule;return e===g["b"]&&(t=""),t},isSynthesia(){return this.$store.getters.isSynthesia},getCurModule(){return this.$store.getters.getCurModule}},methods:{closeDialog(t){this[t]=!1,clearTimeout(window.dialog_timeout)},repeatSwitch(t,e){e===g["Y"]?this.repeatEBook(t):e===g["o"]?this.repeatDictation(t):e===g["b"]&&this.repeatShadow(t)},repeatEBook(t){this.$store.dispatch("setEBookAutoPlay",t)},repeatDictation(t){if(2!==this.getCurModule)return t=!t,!1;if(t){let t=0;0===this.$store.state.repeat_dialog_cnt&&(this.repeat_dialog=!0,t=2e3),window.dialog_timeout=setTimeout(()=>{0===this.$store.state.repeat_dialog_cnt&&(this.repeat_dialog=!1,this.$store.state.repeat_dialog_cnt++),this.repeat_intv||(this.repeat_intv=setInterval(()=>{if(2!==this.getCurModule)return clearInterval(this.repeat_intv),!1;this.$store.state.tts_playing||this.$store.commit("toggleAudio")},2e3))},t)}else this.repeat_intv&&(clearInterval(this.repeat_intv),this.repeat_intv=null)},repeatShadow(t){if(console.log("repeatShadow",t),this.getCurModule!==g["b"])return t=!t,!1;this.$store.commit("setShadowReadingRepeat",t),this.$axios.post(`${g["w"]}/user/${this.$store.state.cid}/${this.$store.state.uid}/setuseroption`,{column:"shadow_reading_repeat",value:+t})},checkToggle(t){const e=this.getCurModule===g["A"]&&"synthesia"===this.$store.state.listening_mode,s=this.getCurModule===g["b"]&&"synthesia"===this.$store.state.shadow_mode;if(this.isSynthesia)if(e||s){const e=this.$store.state.current_step,s=this.$store.state.video_ctx;s[e]?this.toggleSynthesiaPlay(t):this.togglePlay(t)}else this.leveltestData&&(this.leveltestData.blob||this.leveltestData.src)?this.toggleSynthesiaPlay(t):this.togglePlay(t);else this.togglePlay(t)},togglePlay(t){const e=this.$store.state.tts_playing;if(g["A"]==this.getCurModule){if("F"===this.mode)return!1;this.is_ios?this.$store.dispatch(e?"pauseAudioIos":"btnPlayAudioIos"):(e&&this.$store.commit("clearAudioIterator"),this.$store.commit("toggleAudio"))}else this.is_ios?this.$store.dispatch(e?"pauseAudioIos":"btnPlayAudioIos"):this.$store.commit("toggleAudio")},toggleSynthesiaPlay(){const t=this.$store.state.tts_playing;if(g["A"]==this.getCurModule){if("F"===this.mode)return!1;this.is_ios||t&&this.$store.commit("clearAudioIterator"),this.$store.commit("toggleSynthesia")}else this.$store.commit("toggleSynthesia")}}},we=fe,ye=(s("a581"),s("b73d")),xe=Object(p["a"])(we,he,ue,!1,null,null,null),ke=xe.exports;y()(xe,{VBtn:ot["a"],VCard:at["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VRow:ht["a"],VSwitch:ye["a"]});var Ce={name:"level-dictation",components:{VideoPlayer:de,AutoText:Xt,TTSPlayer:ke},props:["data","content"],data(){return{videoKey:0,sheetKey:0,ox_show:!1,show_eng:!0,show_kor:!0,font_level:1,firstCheck:!1,propsWatch:null,curModule:0,isSynthesia:!0,flashShow:!0,videoView:!0,tmptxt:!1,scale_val:1,top_class_cnt:0,doc_bind:!1,selected_keys:[],choice_words:[],choice_idx:[],dictation_uppercase:[],select_arr:[],choice_arr:[],backspacePressed:!1}},created(){},mounted(){null!==this.choiceAnswer&&this.$nextTick(()=>{for(let t=0;t0){let t="";for(let s=0;s13){let e=Math.ceil(t.length/13);this.top_class_cnt=Math.ceil(t.length/e)}else this.top_class_cnt=0;this.tmptxt=t}else this.tmptxt=!1;this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)}),this.renderDictation()},computed:{getVideoURL(){return this.content.blob},count(){return this.data.count},checkAnswer(){return this.data.check_answer},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_words?{words:this.data.result_data[this.count].choice_words,keys:this.data.result_data[this.count].selected_keys}:null}},methods:{toggleLetter(t,e,s,i){let o=!1,a=null;if(this.grade&&this.grade.includes("e"))void 0!==i&&this.choice_arr[i]&&(a=this.choice_arr[i],a.cnt>0&&(a.cnt-=1,o=!0));else for(let n=0;n0){this.choice_arr[n].cnt-=1,o=!0;break}if(o){for(let t=0;tthis.choice_arr[t].cnt&&(this.choice_arr[t].cnt+=1,i=!0)}else for(let t=0;tthis.choice_arr[t].cnt){this.choice_arr[t].cnt+=1,i=!0;break}i&&(this.select_arr.splice(s,1,"_"),this.choice_idx.splice(o,1),this.choice_words.splice(o,1),this.selected_keys.splice(o,1))}},pcKeydown(t){const e=t.which||t.keyCode;if(e>64&&e<91)if(this.grade&&this.grade.includes("e")){for(let s=0;s0){let e=document.getElementById("k-"+t.key);e&&(e.focus(),this.toggleLetter(t,t.key,this.choice_arr[s].cnt,s));break}}else{let e=document.getElementById("k-"+t.key);e&&(e.focus(),e.click())}else if(8==e){this.data.is_ios||this.$store.dispatch("soundEffectPlay","dicbtn");let t=document.getElementById("dic-ans-"+this.count).getElementsByClassName("cursor-pointer");if(0===t.length)return;this.backspacePressed=!0,t[t.length-1].click(),setTimeout(()=>{this.backspacePressed=!1},150)}else if(13!=e)return t.preventDefault(),!1},onBackspace(){this.data.is_ios||this.$store.dispatch("soundEffectPlay","dicbtn");let t=document.getElementById("dic-ans-"+this.count).getElementsByClassName("cursor-pointer");if(0!==t.length){if(this.backspacePressed=!0,this.data.is_ios){const e=t[t.length-1],s=document.getElementById("dic-ans-"+this.count).getElementsByTagName("span");let i=-1;for(let t=0;t=0){const t=e.textContent.toLowerCase();this.subSelection(null,t,i)}}else t[t.length-1].click();setTimeout(()=>{this.backspacePressed=!1},150)}},renderDictation(){const t=Array.from(this.content.sentence.trim());for(let e=0;e{if(null!==this.choiceAnswer)for(let t=0;t{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))})},computed:{count(){return this.data.count},checkAnswer(){return this.data.check_answer},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].selected_chips?{keys:this.data.result_data[this.count].selected_keys,words:this.data.result_data[this.count].selected_chips}:null}},methods:{togglePlayWord(){const t=this.$refs["matching-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},checkExChar(t,e,s){let i,o=t,a=s,n="";for(i=0;i0&&this.ex_cmp_cnt-1>=i||a.length>=this.content.ex_idx[i]&&(n+=this.content.ex_chr[i],a+=this.content.ex_chr[i],this.ex_cmp_cnt=this.ex_cmp_cnt+1);for(a+=o,o=n+o,i=0;i0&&this.ex_cmp_cnt-1>=i||a.length>=this.content.ex_idx[i]&&(o+=this.content.ex_chr[i],a+=this.content.ex_chr[i],this.ex_cmp_cnt=this.ex_cmp_cnt+1);this.selected_keys.push(e),this.selected_words.push(o)},selectWord:function(t,e,s){if(this.selected_keys.includes(s))return!1;let i=this.selected_words.join("");!this.content.is_longchips&&t?this.checkExChar(e,s,i):(this.selected_keys.push(s),this.selected_words.push(e))},subSelection:function(t,e,s){if(this.ex_cmp_cnt>0){let t=e.match(/[\.,\?!~\#\"\“\”:_\=\- \s]/gi);t&&(this.ex_cmp_cnt=this.ex_cmp_cnt-t.length)}this.selected_keys.pop(),this.selected_words.pop()},padSelection:function(t){let e=t.replace(/\s+/gi," ");return/[a-zA-Z0-9]/i.test(e.substr(-1))&&(e+=" "),e},checkMatching(){let t=this.content.sentence,e=this.selected_words.join(" ");e=e.trim(),e=e.replace(/[^a-zA-Z0-9]/gi,""),t=t.replace(/[^a-zA-Z0-9]/gi,"");const s={id:this.content.id,type:this.content.type,grade:this.grade,ox_right:t===e,sentence:this.content.sentence,mean:this.content.mean,selected_chips:this.selected_words,selected_keys:this.selected_keys};this.data.result_data[this.count]=s,console.log(s,"checkMatching -- result --"),this.data.check_answer=!1}},created(){},beforeDestroy(){const t=this.$refs["matching-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay)},destroyed(){},watch:{checkAnswer(t){console.log(t,"checkAnswer"),t&&this.checkMatching()},count(t){this.selected_keys=[],this.selected_words=[],this.ex_cmp_cnt=0,this.isPlay=!1},"$store.state.isLevelTestStart"(t){t&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))}}},Pe=Re,Me=(s("4e1a"),s("cc20")),Ee=Object(p["a"])(Pe,Ie,De,!1,null,null,null),Be=Ee.exports;y()(Ee,{VChip:Me["a"],VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"],VSheet:Se["a"]});var Ne=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{attrs:{id:"level-speaking-wrapper"}},[s("v-sheet",{staticClass:"height-100 width-100"},[s("v-row",{staticClass:"ma-0",staticStyle:{"max-height":"40%"}},[s("v-col",{staticClass:"height-100 pt-0 pb-0 d-flex justify-center align-center",style:"font-size:"+t.data.font_head+"vw;",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"bg-question"},[s("span",[t._v(t._s("Q "+(t.data.count+1)+". 다음 문장을 정확하게 따라 말해보세요."))])])])],1),s("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"height-inherit pt-0 d-flex align-center flex-column justify-center",staticStyle:{height:"100% !important","padding-bottom":"0",gap:"0.3rem"},attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{attrs:{src:t.content.sentence,maxHeight:.19*t.$store.state.screen_height,maxFontSize:2.2}},[s("div",{staticClass:"question-wrapper d-flex align-center justify-center"},[s("span",{staticClass:"font-weight-bold grey--text text--darken-2",domProps:{textContent:t._s(t.content.sentence)}}),s("v-icon",{staticClass:"ml-1 play-icon",class:{"success--text":!t.isPlay&&t.content.blob,"cursor-pointer":t.content.blob},style:{color:t.isPlay||!t.content.blob?"#f1f1f1":""},attrs:{"x-large":""},on:{keydown:function(t){t.preventDefault()},click:t.togglePlayWord}},[t._v(t._s(t.mdi_play_circle))])],1)]),s("auto-text",{attrs:{src:t.content.mean,maxHeight:.19*t.$store.state.screen_height,maxFontSize:1.8}},[s("div",{staticClass:"question-wrapper text-center"},[s("span",{staticClass:"grey--text text--darken-2",staticStyle:{"font-weight":"300"},domProps:{textContent:t._s(t.content.mean)}})])]),s("audio",{ref:"speaking-audio-player",attrs:{src:t.content.blob},on:{ended:function(e){t.isPlay=!1}}})],1)],1)],1),s("div",{staticClass:"width-100 height-100 pos-rel"},[t.is_mobile?s("speech-recognition",{attrs:{prompt:t.setNextPrompt2,content:t.content}}):s("webkit-speech-recognition",{attrs:{sentence:t.content.sentence}})],1)],1)},qe=[],Le=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pos-fix text-center",class:{"d-none":t.dNone,"bg-transparent":t.getRecordCurrentCnt>0},attrs:{id:"ended-cover"}},[i("span",[i("div",{staticClass:"retry-comment2 px-4 font-weight-bold d-inline-block bg-white",class:{"visibility-hidden":0==t.getRecordCurrentCnt||t.getSpeakTimerStatus&&t.timerShow,"grey--text text--lighten-1":t.getRecordCurrentCnt>1},on:{click:t.startRecord}},[t._v("\n 재녹음 가능 횟수 ✕"+t._s(2-t.getRecordCurrentCnt)+"\n ")]),t.is_ios?i("div",{staticClass:"mic-div"},[i("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.ios_recording,expression:"ios_recording"}],staticClass:"mic-btn ma-auto",attrs:{fab:"",dark:"","x-large":"",id:"red-fade-repeat",ripple:!1,disabled:t.iosBlockRecord||t.block_delay},on:{click:t.stopRecordIos}},[i("div",{staticClass:"ico-wrap pos-rel mic-bounce"},[i("icon-mic",{staticStyle:{width:"100%",height:"auto"},attrs:{in_color:"#fff"}}),i("div",{staticClass:"pos-abs left wave"},[i("span",{staticClass:"wave-3"},[t._v("❨")]),i("span",{staticClass:"wave-2"},[t._v("❨")]),i("span",{staticClass:"wave-1"},[t._v("❨")])]),i("div",{staticClass:"pos-abs right wave"},[i("span",{staticClass:"wave-1"},[t._v("❩")]),i("span",{staticClass:"wave-2"},[t._v("❩")]),i("span",{staticClass:"wave-3"},[t._v("❩")])])],1)]),!t.ios_recording&&(0==t.getRecordCurrentCnt||t.getSpeakTimerStatus&&t.timerShow)?[i("v-btn",{staticClass:"mic-btn ma-auto",attrs:{id:"red-fade-default",fab:"",dark:"","x-large":"",color:"danger",ripple:!1,disabled:t.iosBlockRecord||t.block_delay},on:{click:t.startRecord}},[t.getSpeakTimerStatus&&t.timerShow?i("div",{attrs:{id:"timer_wrap"}},[i("span",{attrs:{id:"timer_count"}},[t._v(t._s(t.timerCount))]),i("span",{attrs:{id:"timer_effect"}})]):i("div",{staticClass:"ico-wrap pos-rel mic-bounce"},[i("icon-mic",{staticStyle:{width:"100%",height:"auto"},attrs:{in_color:"#fff"}}),i("div",{staticClass:"pos-abs left wave visibility-hidden"},[i("span",{staticClass:"wave-3"},[t._v("❨")]),i("span",{staticClass:"wave-2"},[t._v("❨")]),i("span",{staticClass:"wave-1"},[t._v("❨")])]),i("div",{staticClass:"pos-abs right wave visibility-hidden"},[i("span",{staticClass:"wave-1"},[t._v("❩")]),i("span",{staticClass:"wave-2"},[t._v("❩")]),i("span",{staticClass:"wave-3"},[t._v("❩")])])],1)])]:t._e()],2):i("div",{staticClass:"mic-div"},[i("v-btn",{directives:[{name:"show",rawName:"v-show",value:0==t.getRecordCurrentCnt,expression:"getRecordCurrentCnt == 0"}],staticClass:"mic-btn ma-auto",attrs:{fab:"",dark:"","x-large":"",color:"danger",disabled:t.blockRecord,ripple:!1},on:{click:t.startRecord}},[i("div",{staticClass:"ico-wrap"},[i("icon-mic",{staticStyle:{width:"100%",height:"auto"},attrs:{in_color:"#fff"}})],1)])],1)]),i("div",{staticClass:"pos-fix d-flex",attrs:{id:"mobile_option_area"}},[i("div",{staticClass:"permission-status"},["prompt"==t.status?i("div",{attrs:{id:"prompt"},on:{click:t.onClickPermission}},[t._v("\n 마이크 최초 설정\n ")]):"denied"==t.status?i("div",{attrs:{id:"denied"},on:{click:t.onClickPermission}},[t._v("\n 마이크 설정 필요\n ")]):"granted"==t.status?i("div",{attrs:{id:"granted"}},[t._v("마이크 연결 완료")]):t._e()]),i("img",{staticClass:"d-none cursor",attrs:{id:"timer_img",src:s("6c68")("./timer-"+(t.getSpeakTimerStatus?"on":"off")+".png")},on:{click:t.timerOnOff}})]),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("dialog")}},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("b",[t._v("다시 재녹음 하시겠습니까?")])])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.reStartRecord}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.clickDialogOutside("dialog")}}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),t.is_ios?i("v-dialog",{attrs:{persistent:"","max-width":t.is_mobile?320:400,transition:!1},model:{value:t.ios_dialog,callback:function(e){t.ios_dialog=e},expression:"ios_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("span",{staticClass:"grey--text"},[t._v("말하기 학습 후,")]),t._v(" "),i("b",{staticClass:"black--text"},[t._v("아이콘을 누르면 음성 인식이 완료")]),i("span",{staticClass:"grey--text"},[t._v("됩니다.")])])],1)],1)],1)],1):t._e(),t.is_ios?i("v-dialog",{attrs:{persistent:"","max-width":t.is_mobile?320:400,transition:!1},model:{value:t.ios_record_fail_dialog,callback:function(e){t.ios_record_fail_dialog=e},expression:"ios_record_fail_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("b",{staticClass:"black--text"},[t._v("음성인식에 실패하였습니다. 정확한 발음으로 다시\n 시도해주세요.")])])],1)],1)],1)],1):t._e(),t.is_ios?i("v-dialog",{attrs:{persistent:"","max-width":t.is_mobile?320:400,transition:!1},model:{value:t.ios_record_busy_dialog,callback:function(e){t.ios_record_busy_dialog=e},expression:"ios_record_busy_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("b",{staticClass:"black--text"},[t._v("\n 다른 어플리케이션에서 마이크를 사용중입니다."),i("br"),t._v("\n 스피킹 학습시 다른 어플리케이션을 종료해주세요.\n ")])])],1)],1)],1)],1):t._e(),i("v-dialog",{attrs:{width:"60vw",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("guide_dialog")}},model:{value:t.guide_dialog,callback:function(e){t.guide_dialog=e},expression:"guide_dialog"}},[i("div",{staticClass:"bg-white pos-rel",staticStyle:{height:"65vh",padding:"3rem 1.5rem 0rem 1.5rem"}},[i("div",{staticClass:"pos-abs",staticStyle:{top:"1.5rem",right:"1.5rem"}},[i("v-icon",{staticStyle:{transform:"translate(0, -50%)"},attrs:{small:"",color:"#1bd05b"},on:{click:function(e){return t.clickDialogOutside("guide_dialog")}}},[t._v("\n "+t._s(t.mdiClose))])],1),i("v-tabs",{staticStyle:{height:"3rem"},attrs:{id:"webkit-speech-tab-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"}},t._l(t.tabs,(function(e,s){return i("v-tab",{key:"webkit-speech-tab-"+s,staticClass:"pa-0",staticStyle:{height:"3rem"},attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[i("div",{staticClass:"width-100 height-100 d-flex align-center justify-center",class:t.tab==s?"bg-success white--text":"border-ede thin-a",staticStyle:{"font-size":"1.2rem","letter-spacing":"-0.425px"}},[t._v("\n "+t._s(e)+"\n ")])])})),1),i("v-tabs-items",{staticClass:"border-ede thin-l thin-r thin-b",staticStyle:{"overflow-y":"auto","overflow-x":"hidden",height:"calc(100% - 5rem)"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab-item",{key:"webkit-speech-item-0",staticClass:"height-100 mobile-inspect",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("div",{staticClass:"title-wrap d-flex align-center",staticStyle:{gap:"0.8rem"}},[i("v-icon",{attrs:{color:"black"}},[t._v(t._s(t.mdiCellphone))]),i("div",[t._v("모바일 및 태블릿 설정 확인")])],1),i("div",{staticClass:"body-wrap n1"},[i("div",[t._v("모바일 및 태블릿 기기에서 내공스터디 앱 권한 확인 후")]),i("div",[t._v("마이크 권한을 허용해주세요.")])]),i("div",{staticClass:"body-wrap n2"},[i("div",{staticClass:"d-flex"},[i("div",[t._v("1.")]),i("div",[t._v("\n 설정 > "),i("span",[t._v("애플리케이션 정보")]),t._v("에서 내공스터디 앱 검색\n ")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("2.")]),i("div",[i("span",[t._v("권한")]),t._v("에서 "),i("span",[t._v("마이크 권한")]),t._v("을 확인")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("3.")]),i("div",[t._v("\n 마이크 액세스 권한을 "),i("span",[t._v("앱 사용중에만 허용")]),t._v("으로 변경\n ")])])]),i("div",{staticClass:"image-wrap"},[i("div",[i("div",[t._v("1")]),i("img",{attrs:{src:s("ffcd")}})]),i("div",[i("div",[t._v("2")]),i("img",{attrs:{src:s("a94f")}})]),i("div",[i("div",[t._v("3")]),i("img",{attrs:{src:s("1bb2")}})])]),i("div",{staticClass:"footer-wrap"},[i("div",{staticClass:"kakao_btn",on:{click:t.onClickKakao}},[i("b",[t._v("실시간 상담 바로가기")]),i("div",{staticClass:"katalk-circle"},[i("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"}},[i("path",{attrs:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}})])])])])]),i("v-tab-item",{key:"webkit-speech-item-1",staticClass:"height-100 control-inspect",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("div",{staticClass:"title-wrap d-flex align-center",staticStyle:{gap:"0.8rem"}},[i("v-icon",{attrs:{color:"black"}},[t._v(t._s(t.mdiCellphone))]),i("div",[t._v("모바일 및 태블릿 설정 확인")])],1),i("div",{staticClass:"body-wrap n1"},[i("div",[t._v("\n 모바일 및 태블릿 기기의 내공스터디 앱 설정에서"),i("br"),t._v("\n 마이크 및 음성인식을 활성화 해주세요.\n ")])]),i("div",{staticClass:"body-wrap n2"},[i("div",{staticClass:"d-flex"},[i("div",[t._v("1.")]),i("div",[t._v("기본메뉴 중 "),i("span",[t._v("설정")]),t._v(" 클릭")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("2.")]),i("div",[t._v("스크롤 후 "),i("span",[t._v("내공스터디")]),t._v(" 앱 클릭")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("3.")]),i("div",[i("span",[t._v("마이크, 음성인식")]),t._v("을 초록색으로 활성화")])])]),i("div",{staticClass:"image-wrap"},[i("div",[i("div",[t._v("1")]),i("img",{attrs:{src:s("f3d9")}})]),i("div",[i("div",[t._v("2")]),i("img",{attrs:{src:s("5ae2")}})]),i("div",[i("div",[t._v("3")]),i("img",{attrs:{src:s("688b")}})])]),i("div",{staticClass:"footer-wrap"},[i("div",{staticClass:"kakao_btn",on:{click:t.onClickKakao}},[i("b",[t._v("실시간 상담 바로가기")]),i("div",{staticClass:"katalk-circle"},[i("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"}},[i("path",{attrs:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}})])])])])])],1)],1)]),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("alert_dialog4")}},model:{value:t.alert_dialog4,callback:function(e){t.alert_dialog4=e},expression:"alert_dialog4"}},[i("v-card",[i("v-card-text",{staticClass:"black--mode text-center py-3"},[i("h3",{staticClass:"title"},[t._v("\n 녹음 카운트 다운이\n "+t._s(t.getSpeakTimerStatus?"설정":"해제")+"되었습니다.\n ")])])],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("alert_speech_grant")}},model:{value:t.alert_speech_grant,callback:function(e){t.alert_speech_grant=e},expression:"alert_speech_grant"}},[i("v-card",[i("v-card-text",{staticClass:"black--mode text-center py-3"},[i("h3",{staticClass:"title"},[t._v("\n 음성 녹음 기능을 사용하려면 마이크 권한을 허용해주세요.\n ")])])],1)],1)],1)},ze=[];function Oe(t,e){return Ye(t,e)}var je=new Array("It is not","It's not","It isn't","It isnt","it is not","it's not","it isn't","it isnt","There is not","There's not","There isn't","There isnt","there is not","there's not","there isn't","there isnt","He is not","He's not","He isn't","He isnt","he is not","he's not","he isn't","he isnt","She is not","She's not","She isn't","She isnt","she is not","she's not","she isn't","she isnt","That is not","That's not","That isn't","That isnt","that is not","that's not","that isn't","that isnt","I am\\.","It is\\.","You are\\.","That is\\.","She is\\.","He is\\.","We are\\.","They are\\.","There is\\.","i am\\.","it is\\.","you are\\.","that is\\.","she is\\.","he is\\.","we are\\.","they are\\.","there is\\.","were not ","was not ","did not ","do not ","does not ","is not ","could not ","would not ","should not ","have not ","has not ","could have ","would have ","must not ","I am ","It is ","You are ","Your ","What is ","That is ","Is not ","Who is ","She is ","He is ","Am i ","Are not ","We are ","i am ","it is ","you are ","your ","what is ","that is ","is not ","who is ","she is ","he is ","am i ","are not ","we are ","They are ","Is not ","There is ","Where is ","How is ","When is ","Why is ","they are ","is not ","there is ","where is ","how is ","when is ","why is ","I will ","You will ","He will ","She will ","They will ","We will ","It will ","Will not ","i will ","you will ","he will ","she will ","they will ","we will ","it will ","will not ","I have ","You have ","He have ","She have ","They have ","We have ","It have ","i have ","you have ","he have ","she have ","they have ","we have ","it have ","He has ","She has ","he has ","she has ","I would ","You would ","He would ","She would ","They would ","We would ","It would ","i would ","you would ","he would ","she would ","they would ","we would ","it would ","1st","2nd","3rd","cell phone","fire fighter","a clock","milk shake","a lot","ice skate","roller coaster","hair stylists","hot dog","home run","lunch box","high school","weather girl","one way","Jay Z","fortune tellers","air base","anti smoking","ball park","push ups","sit ups","round trip","short sleeved","hair pins","re open","rain forest","hip hop","roller blades","ice-skate","seven twenty","six fifteen","eleven twenty five","three thirty five","296","284","273","265","256","253","252","245","241","one hundred","ninety six","eighty four","seventy three","sixty five","fifty six","fifty three","fifty two","forty five","forty one","seventy eight","twenty two","thirty five","thirty","forty","sixty","seventy","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty","one","two","three","four","five","six","seven","eight","nine","One hundred","Ninety six","Eighty four","Seventy three","Sixty five","Fifty six","Fifty three","Fifty two","Forty five","Forty one","Seventy eight","Thirty","Forty","Sixty","Seventy","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen","Twenty","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","you have\\?","he have\\?","she have\\?","I have\\?","they have\\?","we have\\?","it have\\?","\\$35","\\$5","\\$"),Ve=new Array("{It:isn:t}","{It:isn~t}","{It:isn!t}","{It:isn_t}","{it:isn:t}","{it:isn~t}","{it:isn!t}","{it:isn_t}","{There:isn:t}","{There:isn~t}","{There:isn!t}","{There:isn_t}","{there:isn:t}","{there:isn~t}","{there:isn!t}","{there:isn_t}","{He:isn:t}","{He:isn~t}","{He:isn!t}","{He:isn_t}","{he:isn:t}","{he:isn~t}","{he:isn!t}","{he:isn_t}","{She:isn:t}","{She:isn~t}","{She:isn!t}","{She:isn_t}","{she:isn:t}","{she:isn~t}","{she:isn!t}","{she:isn_t}","{That:isn:t}","{That:isn~t}","{That:isn!t}","{That:isn_t}","{that:isn:t}","{that:isn~t}","{that:isn!t}","{that:isn_t}","{I:m}.","{It:s}.","{You:re}.","{That:s}.","{She:s}.","{He:s}.","{We:re}.","{They:re}.","{There:s}.","{i:m}.","{it:s}.","{you:re}.","{that:s}.","{she:s}.","{he:s}.","{we:re}.","{they:re}.","{there:s}.","{weren:t} ","{wasn:t} ","{didn:t} ","{don:t} ","{doesn:t} ","{isn:t} ","{couldn:t} ","{wouldn:t} ","{shouldn:t} ","{haven:t} ","{hasn:t} ","{could:ve} ","{would:ve} ","{mustn:t} ","{I:m} ","{It:s} ","{You:re} ","{You~re} ","{What:s} ","{That:s} ","{Isn:t} ","{Who:s} ","{She:s} ","{He:s} ","{M:i} ","{Aren:t} ","{We:re} ","{i:m} ","{it:s} ","{you:re} ","{you~re} ","{what:s} ","{that:s} ","{isn:t} ","{who:s} ","{she:s} ","{he:s} ","{m:i} ","{aren:t} ","{we:re} ","{They:re} ","{Isn:t} ","{There:s} ","{Where:s} ","{How:s} ","{When:s} ","{Why:s} ","{they:re} ","{isn:t} ","{there:s} ","{where:s} ","{how:s} ","{when:s} ","{why:s} ","{I:ll} ","{You:ll} ","{He:ll} ","{She:ll} ","{They:ll} ","{We:ll} ","{It:ll} ","{Won:t} ","{i:ll} ","{you:ll} ","{he:ll} ","{she:ll} ","{they:ll} ","{we:ll} ","{it:ll} ","{won:t} ","{I:ve} ","{You:ve} ","{He:ve} ","{She:ve} ","{They:ve} ","{We:ve} ","{It:ve} ","{i:ve} ","{you:ve} ","{he:ve} ","{she:ve} ","{they:ve} ","{we:ve} ","{it:ve} ","{He~s} ","{She~s} ","{he~s} ","{she~s} ","{I:d} ","{You:d} ","{He:d} ","{She:d} ","{They:d} ","{We:d} ","{It:d} ","{i:d} ","{you:d} ","{he:d} ","{she:d} ","{they:d} ","{we:d} ","{it:d} ","{first:}","{second:}","{third:}","{cellphone}","{firefighter}","{o:clock}","{milkshake}","{alot}","{iceskate}","rollercoaster","{hairstylists}","{hotdog}","{homerun}","{lunchbox}","{highschool}","{weathergirl}","{one-way}","{Jay-Z}","{fortunetellers}","{airbase}","{antismoking}","{ballpark}","{push-ups}","{sit-ups}","{round-trip}","{short-sleeved}","{hairpins}","{reopen}","{rainforest}","{hiphop}","{rollerblades}","{iceskate}","{720:}","{615:}","{1125:}","{335:}","{to 96:}","{to 84:}","{to 73:}","{to 65:}","{to 56:}","{to 53:}","{to 52:}","{to 45:}","{to 41:}","{100:}","{96:}","{84:}","{73:}","{65:}","{56:}","{53:}","{52:}","{45:}","{41:}","{78:}","{22:}","{35:}","{30:}","{40:}","{60:}","{70:}","{10:}","{11:}","{12:}","{13:}","{14:}","{15:}","{16:}","{17:}","{18:}","{19:}","{20:}","{1:}","{2:}","{3:}","{4:}","{5:}","{6:}","{7:}","{8:}","{9:}","{100::}","{96::}","{84::}","{73::}","{65::}","{56::}","{53::}","{52::}","{45::}","{41::}","{78::}","{30::}","{40::}","{60::}","{70::}","{10::}","{11::}","{12::}","{13::}","{14::}","{15::}","{16::}","{17::}","{18::}","{19::}","{20::}","{1::}","{2::}","{3::}","{4::}","{5::}","{6::}","{7::}","{8::}","{9::}","{you::ve}","{he::ve}","{she::ve}","{I::ve}","{they::ve}","{we::ve}","{it::ve}","{35 dolls}","{5 dolls}","{dollar}"),Fe=new Array("their","there","those","dosar","pens","nyan","hello","jenny","eraser","cold","pear","don't","ax","chug","GOG","sit","tiger","zero","sink","cent","pond","kick","meat","glue","say","Phillip","see","sea","poi","wrap","knight","whose","you","and","hes","Thai","Pi","die","moustache","be","gimbap","Jay","Ireland","Incheon","Mrs","Jays","too","Jim","Sarah","Zero","ink"),Ge=new Array("theyre","theyre","does","does","pence","9","hi","jennie","racer","chord","pair","don","x","jug","jug","st","tyga","0","sync","sent","pwned","kik","meet","gluu","se","philip","c","c","tie","rap","night","whos","u","n","his","tie","tie","tie","mustache","b","kimbap","J","island","inchon","misses","js","to","gym","sara","0","pink"),We=new Array("Minsu","Kyungki","Jisu","3030","Kwangju","Hanbok","Namsan");function Ue(t){for(var e=0;e"+m+"",r++):0==a[l]?n=n+" "+m+"":(n=n+" "+m+"",r+=a[l])}var g=r/s.length*100;return{html:n,score:g}}var Je=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("svg",{staticStyle:{"enable-background":"new 0 0 120 120"},attrs:{width:"120",height:"120",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 120 120","xml:space":"preserve"}},[s("g",[s("g",[s("path",{attrs:{d:"m60,72.5l0,0c-10.625,0 -18.75,-8.125 -18.75,-18.75l0,-25c0,-10 8.125,-18.75 18.75,-18.75l0,0c10,0 18.75,8.125 18.75,18.75l0,25c0,10 -8.75,18.75 -18.75,18.75z",fill:t.in_color}}),s("path",{attrs:{d:"m85,41.25l0,15.625c0,11.875 -11.25,21.875 -23.75,21.875l-2.5,0c-12.5,0 -23.75,-10 -23.75,-21.875l0,-15.625c-3.75,0 -6.25,2.5 -6.25,6.25l0,9.375c0,13.75 11.25,25.625 25,27.5l0,13.125c-18.75,0 -15.625,12.5 -15.625,12.5l43.75,0c0,0 3.125,-12.5 -15.625,-12.5l0,-13.125c13.75,-2.5 25,-13.75 25,-27.5l0,-9.375c0,-3.75 -2.5,-6.25 -6.25,-6.25z",fill:t.in_color}})])])])},Xe=[],Qe={props:{in_color:String}},ts=Qe,es=Object(p["a"])(ts,Je,Xe,!1,null,null,null),ss=es.exports,is={props:{content:{type:Object,default:()=>{}},prompt:{type:String,default:""},parentdialog:Boolean},components:{IconMic:ss},data(){return{language:"en-US",matches:5,showPopup:!0,showPartial:!1,mdiClose:Lt["B"],mdiCellphone:Lt["l"],timeout1:null,timeout2:null,set_position:!1,dialog:!1,is_mobile:!1,is_ios:!1,is_ios_init:!1,ios_dialog:!1,ios_recording:!1,ios_record_click_status:0,block_delay:!1,delay_timeout:null,after_stop_delay:!1,ios_record_fail_dialog:!1,ios_record_busy_dialog:!1,alert_dialog4:!1,unwatch1:null,permission:!1,requestDelay:!1,status:"prompt",guide_dialog:!1,tab:0,tabs:["안드로이드 기기 점검","IOS 기기 점검"],timerShow:!1,timerCount:3,alert_speech_grant:!1}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0);let t=this;"ios"==this.$store.state.platform?this.is_ios=!0:window.Permissions.notificationPermission(),this.$store.state.process_type===g["qb"]&&(this.matches=12),this.$store.state.recognition_available||window.plugins.speechRecognition.isRecognitionAvailable((function(e){console.log("isRecognitionAvailable",e),t.$store.commit("setRecognitionAvailable",e)}),(function(t){window.console.log("ERR:"+t)})),"setRecordFilename"in window||(window.setRecordFilename=function(e){t.$store.commit("setRecordFilename",e)});const e=()=>{const t=document.getElementById("ended-cover"),e=document.getElementById("speaking-wave").getBoundingClientRect();t.style.top=e.top+"px",t.style.height=e.height+"px";let s=document.getElementById("canvas-caption");if(s){t.style.width=s.getBoundingClientRect().width+"px",t.style.left=s.getBoundingClientRect().left+"px";const e=0==s.getBoundingClientRect().width;if(e){const e=document.getElementsByClassName("wave-canvas")[0];t.style.width=e.getBoundingClientRect().width+"px",t.style.left="50%",t.style.transform="translateX(-50%)"}const i=document.getElementById("mobile_option_area");i.style.left=s.getBoundingClientRect().left+12+"px",i.style.top=s.getBoundingClientRect().top+12+"px",e&&(i.style.left="4rem",i.style.top="2rem"),this.is_ios&&setTimeout(()=>{const t=document.getElementById("timer_img"),e=document.querySelector(".permission-status"),s=e.getBoundingClientRect().height;t.classList.remove("d-none"),t.style.height=s+"px"},250)}this.set_position=!0};this.$store.getters.getLearningMode===g["y"]?this.$nextTick(()=>{e(),this.unwatch1=null,this.$store.commit("setSpeakingStart",!1),"android"==this.$store.state.platform&&window.Study.inputSenIdInfo(this.content.id,this.content.sentence)}):this.unwatch1=this.$store.watch(t=>t.speaking_start,(t,s)=>{1==t&&0==s&&this.$nextTick(()=>{e(),this.unwatch1(),this.unwatch1=null,this.$store.commit("setSpeakingStart",!1)})}),this.requestDelay=!0,window.plugins.speechRecognition.hasPermission(t=>{this.permission=t,this.permission||this.is_ios?this.status="granted":(window.plugins.speechRecognition.requestPermission(()=>{console.log("requestPermission success"),this.permission=!0,this.status="granted"},()=>{console.log("requestPermission fail"),this.status="denied"}),setTimeout(()=>{this.requestDelay=!1},500))},t=>{window.console.log("permission err:"+t)}),this.unwatch2=this.$store.watch((t,e)=>e.getCurrentStep,(t,e)=>{t>e&&(this.permission||this.requestDelay||window.plugins.speechRecognition.requestPermission(()=>{this.permission=!0,this.status="granted"},()=>{this.status="denied"}))}),document.addEventListener("visibilitychange",this.handleVisibilityChange)},watch:{},computed:{dNone(){return this.$store.getters.getLearningMode===g["y"]?0==this.getRecordCurrentCnt?!this.set_position||(!!this.$store.state.ox_show||!!this.$store.state.speaking_start):!this.$store.state.ox_show:0==this.$store.getters.getRecordCurrentCnt?!this.set_position||!!this.$store.state.ox_show:!this.$store.state.ox_show},blockRecord(){return!!this.$store.state.tts_playing||1{this.ios_recording=!0,window.plugins.speechRecognition.startListening(t=>{this.$store.state.process_type===g["qb"]?this.getScoreWord(t):this.getScore(t[0]),this.$store.commit("addRecordCnt")},t=>{this.$store.commit("nextDisabled",!1),console.log(t),"Missing permission"==t?window.plugins.speechRecognition.requestPermission(()=>{this.status="granted"},()=>{this.status="denied"}):"Could not start Speech Recognition. Microphone may be busy."==t&&this.dialogAutoClose("ios_record_busy_dialog")},t)};this.is_mobile&&this.is_ios&&this.getSpeakTimerStatus?(this.timerShow=!0,this.timerCount=3,this.$store.dispatch("soundEffectPlay","speaking_count_1"),this.timerInterval=setInterval(()=>{this.timerCount--,0===this.timerCount?(clearInterval(this.timerInterval),this.timerShow=!1,this.$store.commit("nextDisabled",!0),e()):this.$store.dispatch("soundEffectPlay","speaking_count_"+(1===this.timerCount?2:1)).then(()=>{1===this.timerCount&&e()})},1e3)):e()}},askToOpenSettings(){this.alert_speech_grant=!0,setTimeout(()=>{this.alert_speech_grant=!1,window.cordova.plugins.diagnostic.switchToSettings(()=>console.log("Opened Settings"),t=>console.warn("Failed to open Settings",t))},2e3)},onPermError(t){console.error("Permission error",t)},startRecord(){if(console.log("startRecord"),!this.getNextDisabled&&!this.timerShow){if(!this.permission){if(this.is_ios){const t=window.cordova.plugins.diagnostic;return void t.getMicrophoneAuthorizationStatus(e=>{e===t.permissionStatus.GRANTED?this.startRecord():e===t.permissionStatus.NOT_REQUESTED||e===t.permissionStatus.DENIED?t.requestMicrophoneAuthorization(t=>{t?this.startRecord():this.askToOpenSettings()},this.onPermError):e!==t.permissionStatus.DENIED_ALWAYS&&e!==t.permissionStatus.RESTRICTED||this.askToOpenSettings()},this.onPermError)}return window.plugins.speechRecognition.requestPermission(()=>{this.permission=!0,this.status="granted"},()=>{this.status="denied"}),!1}if(this.is_ios){if(this.ios_recording||this.after_stop_delay||this.getSpeakTimerStatus&&this.timerShow)return!1;if(0==this.getRecordCurrentCnt){if(this.$store.commit("nextDisabled",!0),1===this.ios_record_click_status)return;this.ios_record_click_status=1;let t=this.$store.state.current_tts_audio.duration?this.$store.state.current_tts_audio.duration:2,e=this.is_ios_init?0:2e3;this.is_ios_init||(this.ios_dialog=!0),this.timeout1=window.setTimeout(()=>{this.is_ios_init||(this.ios_dialog=!1),this.is_ios_init=!0,this.getSpeakTimerStatus?this.setStudy():this.$store.dispatch("soundEffectPlay","speaking_rec").then(()=>{this.setStudy()})},e),this.getSpeakTimerStatus&&(e+=3e3),this.timeout2=window.setTimeout(()=>{this.stopRecordIos(),this.$store.state.ox_show||this.dialogAutoClose("ios_record_fail_dialog")},e+5e3*t)}else{if(1{this.getSpeakTimerStatus?this.setStudy():this.$store.dispatch("soundEffectPlay","speaking_rec").then(()=>{this.setStudy()})},0),this.getSpeakTimerStatus&&(t+=3e3),this.timeout2=window.setTimeout(()=>{this.stopRecordIos(),this.$store.state.ox_show||this.dialogAutoClose("ios_record_fail_dialog")},1e4*t)}else this.setStudy(),this.clickDialogOutside("dialog")},stopRecordIos(){if(this.after_stop_delay)return;this.after_stop_delay=!0,this.timeout2&&(window.clearTimeout(this.timeout2),this.timeout2=null),this.$store.commit("nextDisabled",!1);const t=()=>{setTimeout(()=>{this.is_ios&&this.getSpeakTimerStatus&&(this.timerShow=!1),this.ios_record_click_status=0,this.after_stop_delay=!1},3e3)};window.plugins.speechRecognition.stopListening(e=>{t(),this.ios_recording=!1},e=>{console.error(e),t(),this.ios_recording=!1})},getScore(t){let e="";e=this.$store.getters.getLearningMode===g["y"]?this.content.sentence:this.$store.state.sentences[this.$store.state.current_step].sentence;let s=Oe(t,e);if(this.is_ios){let t=s.score&&s.score>=40?"correct":"wrong";this.$store.dispatch("soundEffectPlay","save_speaking_ios").then(()=>{this.$store.commit("updateSpeakingResult",s),this.$store.commit("oxShow",!0),window.setTimeout(()=>{this.$store.dispatch("soundEffectPlay",t)},100)})}else this.$store.commit("updateSpeakingResult",s),this.$store.commit("oxShow",!0)},getScoreWord(t){let e=this.$store.state.words[this.$store.state.current_step].word,s=Array.from(e),i=s.map(t=>!1);for(let r=0;rt).length,a=o/s.length,n={html:null,score:null};if(a>=.7?(n.html=`${e}`,n.score=100):a<.7&&a>0?(n.html=`${e}`,n.score=50):(n.html=`${e}`,n.score=0),this.is_ios){let t=n.score&&n.score>=40?"correct":"wrong";this.$store.dispatch("soundEffectPlay","save_speaking_ios").then(()=>{this.$store.commit("updateSpeakingResult",n),this.$store.commit("oxShow",!0),window.setTimeout(()=>{this.$store.dispatch("soundEffectPlay",t)},100)})}else this.$store.commit("updateSpeakingResult",n),this.$store.commit("oxShow",!0)},setDelay(){this.block_delay=!0,this.delay_timeout=window.setTimeout(()=>{this.block_delay=!1,this.delay_timeout=null},3e3)},timerOnOff(){this.timerShow||(this.$store.dispatch("setSpeakTimer",!this.getSpeakTimerStatus),this.dialogAutoClose("alert_dialog4"))},onClickPermission(){"prompt"==this.status?window.plugins.speechRecognition.hasPermission(t=>{this.permission=t,this.permission?this.status="granted":window.plugins.speechRecognition.requestPermission(()=>{this.permission=!0,this.status="granted"},()=>{this.status="denied"})},t=>{console.log("permission err:"+t)}):"denied"==this.status&&(this.guide_dialog=!0)},handleVisibilityChange(){document.hidden||window.plugins.speechRecognition.hasPermission(t=>{this.permission=t,this.permission?this.status="granted":this.status="denied"},t=>{console.log("permission err:"+t)})},onClickKakao(){this.is_ios?window.cordova.InAppBrowser.open("https://pf.kakao.com/_VvCxkxj/chat","_system"):window.Open.openUrl("https://pf.kakao.com/_VvCxkxj/chat")},clickDialogOutside(t){this[t]=!1},dialogAutoClose(t){const e=["dialog","ios_dialog","ios_record_fail_dialog","ios_record_busy_dialog","guide_dialog","alert_dialog4"];e.forEach(e=>{e!==t&&this[e]&&(this[e]=!1)}),this.timeout1&&window.clearTimeout(this.timeout1),this[t]=!0,this.timeout1=window.setTimeout(()=>{this[t]=!1},2e3)}},beforeDestroy(){this.unwatch1&&this.unwatch1(),this.timeout1&&window.clearTimeout(this.timeout1),this.timeout2&&window.clearTimeout(this.timeout2),this.delay_timeout&&window.clearTimeout(this.delay_timeout),this.unwatch2&&this.unwatch2(),document.removeEventListener("visibilitychange",this.handleVisibilityChange)},destroyed(){this.$destroy()}},os=is,as=(s("8eb1"),s("71a3")),ns=s("c671"),rs=s("fe57"),ls=s("aac8"),cs=Object(p["a"])(os,Le,ze,!1,null,null,null),ds=cs.exports;y()(cs,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"],VTab:as["a"],VTabItem:ns["a"],VTabs:rs["a"],VTabsItems:ls["a"]});var hs=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"pos-fix text-center",class:{"d-none":t.dNone,"bg-transparent":t.getRecordCurrentCnt>0},style:"width: "+t.canv_width+"px; height: "+t.canv_height+"px; top: "+t.fix_top+"px; left: "+t.fix_left+"px;",attrs:{id:"ended-cover"}},[s("span",[s("div",{staticClass:"retry-comment px-4 font-weight-bold cursor-pointer d-inline-block bg-white",class:{"visibility-hidden":0==t.getRecordCurrentCnt||t.getSpeakTimerStatus&&t.timerShow,"grey--text text--lighten-1":t.getRecordCurrentCnt>1},on:{click:t.startRecord}},[t._v("\n 재녹음 가능 횟수 ✕"+t._s(2-t.getRecordCurrentCnt)+"\n ")]),s("div",[s("v-btn",{directives:[{name:"show",rawName:"v-show",value:0==t.getRecordCurrentCnt||t.getSpeakTimerStatus&&t.timerShow,expression:"\n getRecordCurrentCnt == 0 || (getSpeakTimerStatus && timerShow)\n "}],staticClass:"ma-auto white--text",attrs:{fab:"",dark:"","x-large":"",color:"danger",disabled:t.blockRecord,ripple:!1},on:{click:t.startRecord}},[t.getSpeakTimerStatus&&t.timerShow?s("div",{attrs:{id:"timer_wrap"}},[s("span",{attrs:{id:"timer_count"}},[t._v(t._s(t.timerCount))]),s("span",{attrs:{id:"timer_effect"}})]):s("div",{staticClass:"ico-wrap"},[s("icon-mic",{staticStyle:{width:"100%",height:"auto"},attrs:{in_color:"#fff"}})],1)])],1)])]),s("webkit-record-canvas",{attrs:{fix_top:t.fix_top,fix_left:t.fix_left,spect_data:t.spect_data,canv_width:t.canv_width,canv_height:t.canv_height,duration:t.duration,rec_end:t.final_transcript.length>0,callEnd:t.callEnd,status:t.status,stopRecord:t.stopRecord}}),s("div",{staticClass:"d-none"},[s("audio",{ref:"rec-audio",attrs:{id:"rec-audio",controls:"",autoplay:""}})]),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){t.dialog=!1}},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("다시 재녹음 하시겠습니까?")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.reStartRecord}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog=!1}}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("fail_dialog")}},model:{value:t.fail_dialog,callback:function(e){t.fail_dialog=e},expression:"fail_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"black--mode text-center",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title"},[t._v("\n 정확한 발음으로 다시 녹음해주세요.\n ")])])],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("alert_dialog")}},model:{value:t.alert_dialog,callback:function(e){t.alert_dialog=e},expression:"alert_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"black--mode text-center",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title"},[t._v("\n 마이크 사용이 차단되어 있습니다."),s("br"),t._v("주소창 우측 끝 마이크 권한을\n 허용해주세요.\n ")])])],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("alert_dialog2")}},model:{value:t.alert_dialog2,callback:function(e){t.alert_dialog2=e},expression:"alert_dialog2"}},[s("v-card",[s("v-card-text",{staticClass:"black--mode text-center",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title"},[t._v("\n 연결된 녹음 기기가 없습니다.\n "),s("br"),t._v("\n 마이크나 헤드셋 연결을 확인해주세요.\n ")])])],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("alert_dialog3")}},model:{value:t.alert_dialog3,callback:function(e){t.alert_dialog3=e},expression:"alert_dialog3"}},[s("v-card",[s("v-card-text",{staticClass:"black--mode text-center",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title"},[t._v("\n 마이크 사용 권한이 꺼져있습니다.\n "),s("br"),t._v("\n 시작 > 설정 > 개인 정보 > 마이크에서 액세스를 허용해주세요.\n ")])])],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1},on:{"click:outside":function(e){return t.clickDialogOutside("alert_dialog4")}},model:{value:t.alert_dialog4,callback:function(e){t.alert_dialog4=e},expression:"alert_dialog4"}},[s("v-card",[s("v-card-text",{staticClass:"black--mode text-center",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title"},[t._v("\n 녹음 카운트 다운이\n "+t._s(t.getSpeakTimerStatus?"설정":"해제")+"되었습니다.\n ")])])],1)],1)],1)},us=[],ps=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pos-rel",attrs:{id:"recode-canvas-div"}},[i("canvas",{staticClass:"recode-canvas pos-fix",style:"top:"+t.fix_top+"px; left:"+t.fix_left+"px; z-index:20;",attrs:{id:"recode-canvas",width:t.canv_width,height:t.canv_height,hidden:!t.fix_top&&!t.fix_left}}),i("div",{staticClass:"pos-fix d-flex",style:"left:"+(t.fix_left+12)+"px; top:"+(t.fix_top+12)+"px; gap: .5rem",attrs:{id:"option_area"}},[i("div",{staticClass:"permission-status"},["prompt"==t.status?i("div",{attrs:{id:"prompt"},on:{click:t.onClickPermission}},[t._v("\n 마이크 최초 설정\n ")]):"denied"==t.status?i("div",{attrs:{id:"denied"},on:{click:t.onClickPermission}},[t._v("\n 마이크 설정 필요\n ")]):"granted"==t.status?i("div",{attrs:{id:"granted"}},[t._v("마이크 연결 완료")]):t._e()]),i("img",{staticClass:"d-none cursor",attrs:{id:"timer_img",src:s("6c68")("./timer-"+(t.getSpeakTimerStatus?"on":"off")+".png")},on:{click:t.timerOnOff}})]),i("div",{staticClass:"pos-fix d-flex",staticStyle:{"z-index":"50",transform:"translateX(-100%)"},style:"left:"+(t.canv_width+t.fix_left-12)+"px; top:"+(t.fix_top+12)+"px;"},[t.no_speech?i("div",{staticClass:"d-flex justify-center align-center mr-3",attrs:{id:"speak-stop"},on:{click:t.onClickStop}},[i("div",{staticStyle:{width:"1rem",height:"1rem","background-color":"white"}})]):t._e(),i("div",[t.$store.state.process_type!==t.VOCA_ADVANCED?i("div",{staticClass:"fw-700",staticStyle:{color:"#29b6f6","white-space":"nowrap"}},[t._v("\n 원어민 "),i("v-icon",{attrs:{color:"#29B6F6"}},[t._v(t._s(t.mdi_minus))])],1):t._e(),i("div",{staticClass:"fw-700",staticStyle:{color:"#c82f2e","white-space":"nowrap"}},[t._v("\n 학습자 "),i("v-icon",{attrs:{color:"#c82f2e"}},[t._v(t._s(t.mdi_minus))])],1)])]),i("v-dialog",{attrs:{width:"60vw",transition:!1,"content-class":"speaking-manual-dialog"},on:{"click:outside":function(e){t.dialog=!1}},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("div",{staticClass:"bg-white pos-rel",staticStyle:{height:"65vh",padding:"4rem 2rem 0rem 2rem"}},[i("div",{staticClass:"pos-abs",staticStyle:{height:"1px",top:"2rem",right:"2rem"}},[i("v-icon",{staticStyle:{transform:"translate(0, -50%)",cursor:"pointer"},attrs:{color:"#1bd05b"},on:{click:function(e){t.dialog=!1}}},[t._v(t._s(t.mdiClose))])],1),i("v-tabs",{staticStyle:{height:"3rem"},attrs:{id:"webkit-speech-tab-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"}},t._l(t.tabs,(function(e,s){return i("v-tab",{key:"webkit-speech-tab-"+s,staticClass:"pa-0",staticStyle:{height:"3rem"},attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[i("div",{staticClass:"width-100 height-100 d-flex align-center justify-center",class:t.tab==s?"bg-success white--text":"border-ede thin-a",staticStyle:{"font-size":"1.2rem","letter-spacing":"-0.425px"}},[t._v("\n "+t._s(e)+"\n ")])])})),1),i("v-tabs-items",{staticClass:"border-ede thin-l thin-r thin-b",staticStyle:{"overflow-y":"auto","overflow-x":"hidden",height:"calc(100% - 5rem)"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab-item",{key:"webkit-speech-item-0",staticClass:"height-100 pc-inspect",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("div",{staticClass:"title-wrap d-flex align-center",staticStyle:{gap:"0.8rem"}},[i("img",{attrs:{src:s("ef9b")}}),i("div",[t._v("크롬 설정 확인")])]),i("div",{staticClass:"body-wrap n1"},[i("div",[t._v("\n 내공스터디는 "),i("span",[t._v("크롬")]),t._v(" 브라우져에서 최적화된 학습이\n 가능합니다.\n ")]),i("div",[t._v("\n 스피킹 학습시, "),i("span",[t._v("브라우져 설정")]),t._v("을 꼭 확인해주세요.\n ")])]),i("div",{staticClass:"body-wrap n2"},[i("div",{staticClass:"d-flex"},[i("div",[t._v("1.")]),i("div",[t._v("\n 크롬 우측 상단 "),i("span",[t._v("점 3개")]),t._v(" 아이콘 클릭 후\n "),i("span",[t._v("설정")]),t._v(" 클릭\n ")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("2.")]),i("div",[t._v("\n 개인 정보 보호 및 보안 카테고리에서\n "),i("span",[t._v("사이트 설정")]),t._v(" 클릭\n ")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("3.")]),i("div",[t._v("\n 하단의 "),i("span",[t._v("권한")]),t._v(" 카테고리에서 "),i("span",[t._v("마이크")]),t._v(" 선택\n ")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("4.")]),i("div",[t._v("\n 내공스터디 학습앱 선택 후 "),i("span",[t._v("마이크 권한 허용")])])])]),i("div",{staticClass:"image-wrap"},[i("div",[i("div",[t._v("1")]),i("img",{attrs:{src:s("2737")}})]),i("div",[i("div",[t._v("2")]),i("img",{attrs:{src:s("9fb1")}})]),i("div",[i("div",[t._v("3")]),i("img",{attrs:{src:s("060b")}})]),i("div",[i("div",[t._v("4")]),i("img",{attrs:{src:s("b8b4"),height:"100%"}})])]),i("div",{staticClass:"footer-wrap"},[i("a",{attrs:{href:"https://pf.kakao.com/_klVXxb/chat",target:"_blank"}},[i("div",{staticClass:"kakao_btn"},[i("b",[t._v("실시간 상담 바로가기")]),i("div",{staticClass:"katalk-circle"},[i("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"}},[i("path",{attrs:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}})])])])])])]),i("v-tab-item",{key:"webkit-speech-item-1",staticClass:"height-100 pc-inspect",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("div",{staticClass:"title-wrap d-flex align-center",staticStyle:{gap:"0.8rem"}},[i("svg",{staticStyle:{margin:"-0.313rem"},attrs:{stroke:"currentColor",fill:"gray","stroke-width":"0",viewBox:"0 0 512 512",height:"2.4rem",width:"2.4rem",xmlns:"http://www.w3.org/2000/svg"}},[i("path",{attrs:{d:"M416.3 256c0-21 13.1-38.9 31.7-46.1-4.9-20.5-13-39.7-23.7-57.1-6.4 2.8-13.2 4.3-20.1 4.3-12.6 0-25.2-4.8-34.9-14.4-14.9-14.9-18.2-36.8-10.2-55-17.3-10.7-36.6-18.8-57-23.7C295 82.5 277 95.7 256 95.7S217 82.5 209.9 64c-20.5 4.9-39.7 13-57.1 23.7 8.1 18.1 4.7 40.1-10.2 55-9.6 9.6-22.3 14.4-34.9 14.4-6.9 0-13.7-1.4-20.1-4.3C77 170.3 68.9 189.5 64 210c18.5 7.1 31.7 25 31.7 46.1 0 21-13.1 38.9-31.6 46.1 4.9 20.5 13 39.7 23.7 57.1 6.4-2.8 13.2-4.2 20-4.2 12.6 0 25.2 4.8 34.9 14.4 14.8 14.8 18.2 36.8 10.2 54.9 17.4 10.7 36.7 18.8 57.1 23.7 7.1-18.5 25-31.6 46-31.6s38.9 13.1 46 31.6c20.5-4.9 39.7-13 57.1-23.7-8-18.1-4.6-40 10.2-54.9 9.6-9.6 22.2-14.4 34.9-14.4 6.8 0 13.7 1.4 20 4.2 10.7-17.4 18.8-36.7 23.7-57.1-18.4-7.2-31.6-25.1-31.6-46.2zm-159.4 79.9c-44.3 0-80-35.9-80-80s35.7-80 80-80 80 35.9 80 80-35.7 80-80 80z"}})]),i("div",[t._v("제어판 설정")])]),i("div",{staticClass:"body-wrap n1"},[i("div",[t._v("\n 기기에서 원활한 음성 인식을 위해 "),i("span",[t._v("마이크 연결 상태")]),t._v("를\n 확인해주세요.\n ")])]),i("div",{staticClass:"body-wrap n2"},[i("div",{staticClass:"d-flex"},[i("div",[t._v("1.")]),i("div",[t._v("제어판 클릭 후 "),i("span",[t._v("하드웨어 및 소리")]),t._v(" 클릭")])]),i("div",{staticClass:"d-flex"},[i("div",[t._v("2.")]),i("div",[t._v("\n 오디오 장치 관리에서\n "),i("span",[t._v("마이크 연결")]),t._v(" 상태를 확인\n ")])])]),i("div",{staticClass:"image-wrap"},[i("div",[i("div",[t._v("1")]),i("img",{attrs:{src:s("20db")}})]),i("div",[i("div",[t._v("2")]),i("img",{attrs:{src:s("d6cc")}})])]),i("div",{staticClass:"footer-wrap"},[i("a",{attrs:{href:"https://pf.kakao.com/_klVXxb/chat",target:"_blank"}},[i("div",{staticClass:"kakao_btn"},[i("b",[t._v("실시간 상담 바로가기")]),i("div",{staticClass:"katalk-circle"},[i("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"}},[i("path",{attrs:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}})])])])])])])],1)],1)])],1)},_s=[];window.rec_array=new Array(0),window.timeout1=[];var ms={props:{class_name:{type:String,default:""},canv_width:{type:Number,default:300},canv_height:{type:Number,default:80},fix_top:{type:Number,default:0},fix_left:{type:Number,default:0},spect_data:{type:Object,default:{num:0,wave_data:[]}},duration:{type:Number,default:2},rec_end:{type:Boolean,default:!1},callEnd:{type:Function},status:{type:String},stopRecord:{type:Function}},data(){return{VOCA_ADVANCED:g["qb"],ctxWrapper:null,ctx:null,prevvalue:0,passed:!0,prev_x:0,prev_val:0,tts_duration:2,unwatch1:null,unwatch2:null,unwatch3:null,mdi_minus:Lt["O"],mdiClose:Lt["B"],end_call:!1,paddInterval:null,is_mobile:!1,tab:0,tabs:["브라우져 점검","제어판 설정"],dialog:!1,no_speech:!1,timeout2:[]}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0);let t=this;this.prevvalue=this.$store.getters.getCanvasHeight,this.tts_duration=this.duration,this.unwatch1=this.$store.watch((function(t,e){return e.getCurrentStep}),(function(e,s){t.setInit()}))},mounted(){let t=this;this.$nextTick((function(){this.$store.getters.getLearningMode===g["y"]?setTimeout(()=>{const e=document.querySelector(".v-window-item--active"),s=e.querySelector("#recode-canvas");t.ctx=s.getContext("2d"),t.ctxWrapper=e.querySelector("#recode-canvas-div")},250):(t.ctx=document.getElementById("recode-canvas").getContext("2d"),t.ctxWrapper=document.getElementById("recode-canvas-div")),console.log(t.ctx,t.ctxWrapper,"23")}))},watch:{fix_left(){const t=document.getElementById("timer_img"),e=document.querySelector(".permission-status");if(t.classList.contains("d-none")){const s=e.getBoundingClientRect().height;t.classList.remove("d-none"),t.style.height=s+"px"}else t.style.display="none",setTimeout(()=>{const s=e.getBoundingClientRect().height;t.style.display="block",t.style.height=s+"px"},500)},duration(t){this.tts_duration=this.duration},spect_data(t){if(t&&t.num>0){this.clearTimeout1();let e=t.wave_data,s=Math.round(30*this.tts_duration)+30,i=Math.floor(e.length*s/this.canv_width),o=Math.floor(this.canv_width/s),a=[],n=[],r=!1;for(let t=0;tl?e[t]:l,c=(l-r)/3*2;n.push(c),a[t]=Math.round(this.canv_height-c*this.canv_height)-20}let l=Math.round(.08*this.canv_width),c=Math.round(this.canv_height/90),d=0;for(let t=0;t=d?r=!1:(r=!0,this.passed=!0),c{this.no_speech=!0},2e3)),r&&this.waveform(a),window.timeout1.push(window.setTimeout(()=>{this.end_call=!0,this.callEnd(!0)},500))}},rec_end(t,e){this.clearTimeout1(),t?(this.canv_width>this.prev_x&&!this.end_call?this.paddInterval=window.setInterval(()=>{this.canv_width<=this.prev_x&&(window.clearInterval(this.paddInterval),this.paddInterval=null);let t=Math.round(30*this.tts_duration)+30,e=Math.floor(this.canv_width/t),s=new Array(e);s.fill(this.canv_height-20,0),this.waveform(s)},46):this.end_call=!1,this.clearTimeout2(),this.no_speech=!1):(this.setInit(),this.end_call=!1)}},computed:{getSpeakTimerStatus(){return this.$store.getters.getSpeakTimerStatus}},methods:{clearTimeout1(){if(window.timeout1.length>0)for(let t=0;t0)for(let t=0;tthis.canv_width){for(let i=0;it.current_tts_audio,(t,e)=>{t&&(t.onloadedmetadata=t=>{this.duration=t.target.duration})}),this.$store.getters.getLearningMode===g["y"]){let t=0;this.interval1=window.setInterval(()=>{t>100&&window.clearInterval(this.interval1);let e=document.getElementById("tts-audio");e&&(this.standardtts=e.childNodes[1].childNodes[0]),this.standardtts&&(this.setCoverSizeX(),this.setCoverSizeY(1),this.set_position=!0,window.clearInterval(this.interval1)),t++},200)}else this.unwatch2=this.$store.watch(t=>t.speaking_start,(t,e)=>{if(window.console.log("unwatch2",t,e),1==t&&0==e){let t=0;this.interval1=window.setInterval(()=>{if(console.log("interval1",t),t>100&&window.clearInterval(this.interval1),this.$store.state.process_type===g["qb"])this.standardtts=document.getElementById("voca-bg");else{let t=document.getElementById("tts-audio");t&&(this.standardtts=t.childNodes[1].childNodes[0])}console.log("standardtts",this.standardtts),this.standardtts&&(this.setCoverSizeX(),this.setCoverSizeY(1),this.set_position=!0,window.clearInterval(this.interval1)),t++},200),this.unwatch2(),this.unwatch2=null,this.$store.commit("setSpeakingStart",!1)}});if(this.unwatch3=this.$store.watch((t,e)=>e.getCanvasWidth,(t,e)=>{this.setCoverSizeX()}),this.unwatch4=this.$store.watch((t,e)=>e.getCanvasHeight,(t,e)=>{this.setCoverSizeY(2)}),this.unwatch5=this.$store.watch((t,e)=>e.getCurrentStep,(t,e)=>{t!=e&&(this.recorder&&this.recorder.close(),this.settimeout2&&(window.clearTimeout(this.settimeout2),this.settimeout2=null),this.recorder=null,window.setTimeout(()=>{this.setCoverSizeX(),this.setCoverSizeY(3)},500),this.permission||this.setPermission())}),"setRecordFilename"in window||(window.setRecordFilename=t=>{this.$store.commit("setRecordFilename",t)}),"webkitSpeechRecognition"in window&&"AudioContext"in window){try{this.audio_context=new AudioContext}catch(t){window.console.error(t)}this.setPermission()}},mounted(){this.$nextTick(()=>{this.audio=this.$refs["rec-audio"]})},watch:{set_position(t){console.log("set_position",t)},checkstatus(t,e){!0===e&&!1===t&&(this.spect_number=0)},screenWidth(t){setTimeout(()=>{this.setCoverSizeX()},0)},screenHeight(t){setTimeout(()=>{this.setCoverSizeY(0)},0)}},computed:{dNone(){return console.log("dNone",{getRecordCurrentCnt:this.getRecordCurrentCnt,ox_show:this.$store.state.ox_show,set_position:this.set_position,getSpeakTimerStatus:this.getSpeakTimerStatus,timerShow:this.timerShow}),this.$store.getters.getLearningMode===g["y"]?0==this.getRecordCurrentCnt?!this.set_position||(!!this.$store.state.ox_show||!!this.$store.state.speaking_start):!this.$store.state.ox_show:0==this.getRecordCurrentCnt?!this.set_position||!!this.$store.state.ox_show:!this.$store.state.ox_show&&(!this.getSpeakTimerStatus||!this.timerShow)},blockRecord(){return!!this.$store.state.tts_playing||1{this.is_set=!1}),await this.setUserMedia(),!1===this.permission||this.permission_error){if(this.permission_error)return"Requested device not found"===this.permission_error.message||"NotFoundError"===this.permission_error.name?this.dialogAutoClose("alert_dialog2"):"NotAllowedError"===this.permission_error.name&&("Permission denied by system"===this.permission_error.message?this.dialogAutoClose("alert_dialog3"):"Permission denied"===this.permission_error.message&&this.dialogAutoClose("alert_dialog")),this.getRecordCurrentCnt>0&&this.$store.commit("oxShow",!0),!1;if(!this.permission)return this.dialogAutoClose("alert_dialog"),!1}this.recorder&&this.recorder.close(),this.recorder=null,this.duration=this.$store.state.current_tts_audio.duration,this.final_transcript="",this.prev_final_transcript="",this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),this.checkstatus=!1,this.javascript_node&&(this.javascript_node.onaudioprocess=null),this.record=null,this.getSpeakTimerStatus?(this.timerShow=!0,this.timerCount=3,this.$store.dispatch("soundEffectPlay","speaking_count_1"),this.timerInterval=setInterval(()=>{this.timerCount--,0===this.timerCount?(clearInterval(this.timerInterval),this.timerShow=!1,this.$store.commit("nextDisabled",!0)):(this.$store.dispatch("soundEffectPlay","speaking_count_"+(1===this.timerCount?2:1)),1===this.timerCount&&(this.recognition.start(),this.$store.commit("addRecordCnt")))},1e3)):this.$store.dispatch("soundEffectPlay","speaking_rec").then(()=>{this.recognition.start(),this.$store.commit("nextDisabled",!0),this.$store.commit("addRecordCnt")})},startRecord(){if(this.getRecordCurrentCnt>1||this.getSpeakTimerStatus&&this.timerShow)return!1;0==this.getRecordCurrentCnt?(this.setStudy(),this.$store.commit("oxShow",!1)):this.dialog=!0},reStartRecord(t){this.dialog=!1,this.setStudy(),this.$store.commit("oxShow",!1),this.$store.commit("setRecordFilename","")},getScore(t){let e="";e=this.$store.getters.getLearningMode===g["y"]?this.sentence:this.$store.state.sentences[this.$store.state.current_step].sentence;let s=Oe(t,e);console.log("speaking result",s),this.$store.commit("updateSpeakingResult",s),this.$store.commit("oxShow",!0)},getScoreWord(t){let e=this.$store.state.words[this.$store.state.current_step].word,s=Array.from(e),i=s.map(t=>!1);for(let r=0;rt).length,a=o/s.length,n={html:null,score:null};a>=.7?(n.html=`${e}`,n.score=100):a<.7&&a>0?(n.html=`${e}`,n.score=50):(n.html=`${e}`,n.score=0),this.$store.commit("updateSpeakingResult",n),this.$store.commit("oxShow",!0)},clickDialogOutside(t){this[t]=!1,window.clearTimeout(this.settimeout1)},callEnd(){this.settimeout2&&(window.clearTimeout(this.settimeout2),this.settimeout2=null),this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null),this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),this.recorder.stop(),this.checkstatus=!1,this.$store.state.process_type===g["qb"]?this.tmp_script.length=[]:(this.dialogAutoClose("fail_dialog"),this.getScore("")),this.$store.commit("nextDisabled",!1),this.$store.commit("oxShow",!0),this.final_transcript=" "},setCoverSizeX(){if(this.standardtts){let t=this.standardtts.getBoundingClientRect();this.fix_left=t.left,this.canv_width=t.width}},setCoverSizeY(t){if(this.standardtts){let t=this.standardtts.getBoundingClientRect();this.fix_top=t.top,this.canv_height=t.height}},setPermission(){window.navigator.permissions.query({name:"microphone"}).then(t=>{switch(this.status=t.state,t.state){case"prompt":this.permission=!1,this.permission_init=!0;break;case"denied":this.permission=!1;break;case"granted":this.permission=!0;break;default:break}this.setUserMedia(),this.permissionStatus=t,this.permissionStatus.onchange=t=>{switch(this.status=t.target.state,this.alert_dialog&&(this.alert_dialog=!1,this.settimeout1&&window.clearTimeout(this.settimeout1)),t.target.state){case"denied":this.permission=!1,this.permission_init=!1;break;case"granted":case"prompt":this.permission=!0,this.setUserMedia();break;default:break}}})},async setUserMedia(){if(this.is_set)return!0;try{this.getusermedia=await window.navigator.mediaDevices.getUserMedia({audio:!0}).then(t=>{this.permission_error=null;var e=2048;this.audio_stream=t,this.source_node=this.audio_context.createMediaStreamSource(this.audio_stream),this.audio_context?this.javascript_node=this.audio_context.createScriptProcessor(e,1,1):this.javascript_node=this.audio_context.createJavaScriptNode(e,1,1),this.source_node.connect(this.javascript_node),this.javascript_node.connect(this.audio_context.destination)}).catch(t=>(this.permission_error=t,window.console.error(t),!1))}catch(t){return this.permission_error=t,!1}if(!this.permission||this.permission_error)return!1;this.is_set=!0,this.recognition=new webkitSpeechRecognition,this.recognition.continuous=!0,this.$store.state.process_type===g["qb"]?this.recognition.maxAlternatives=12:this.recognition.maxAlternatives=5,this.recognition.interimResults=!0,this.recognition.lang=this.language,this.recognition.onstart=()=>{this.recorder=new Recorder(this.source_node,{workerPath:"/vendor/recorderWorker.js"}),this.recorder.record(),this.recstatus=!0,this.$store.commit("setPcRecStatus",!0);this.$store.getters.getCanvasHeight;this.javascript_node.onaudioprocess=t=>{let e=t.inputBuffer.getChannelData(0);this.spect_number+=1,this.spect_data={num:this.spect_number,wave_data:e}},this.settimeout2=window.setTimeout(()=>{this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null),this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),this.recorder&&this.recorder.stop&&this.recorder.stop(),this.checkstatus=!1,this.$store.state.process_type===g["qb"]?this.tmp_script.length>0?(this.getScoreWord(this.tmp_script),this.tmp_script.length=[]):(this.dialogAutoClose("fail_dialog"),this.getScoreWord([])):(this.dialogAutoClose("fail_dialog"),this.getScore("")),this.$store.commit("nextDisabled",!1),this.$store.commit("oxShow",!0),this.settimeout2=null,this.final_transcript=" "},5e3*this.duration)},this.recognition.onerror=(t,e,s)=>{this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null),this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),this.checkstatus=!1,this.playstatus=!1},this.recognition.onend=t=>{this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),0==this.checkstatus&&(this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null)),this.$store.commit("nextDisabled",!1)},this.recognition.onspeechend=t=>{this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),0==this.checkstatus&&(this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null)),this.$store.commit("nextDisabled",!1)},this.recognition.onresult=t=>{if(this.$store.state.process_type===g["qb"]){let s=[];for(var e=t.resultIndex;e0&&(this.settimeout2&&(window.clearTimeout(this.settimeout2),this.settimeout2=null),this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null),this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),this.getScoreWord(s),this.recorder&&this.recorder.stop&&this.recorder.stop(),this.checkstatus=!1,this.tmp_script.length=[],this.recorder&&this.recorder.exportWAV(t=>{this.audio.src=window.URL.createObjectURL(t),this.$store.commit("setRecBlob",t),this.$store.commit("nextDisabled",!1),this.$store.commit("oxShow",!0)}))}else{for(let e=t.resultIndex;e1)for(let i=0;i0){this.settimeout2&&(window.clearTimeout(this.settimeout2),this.settimeout2=null),this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null),this.recstatus=!1,this.$store.commit("setPcRecStatus",!1);let t=this.final_transcript;this.getScore(t),this.recorder.stop(),this.checkstatus=!1,this.recorder&&this.recorder.exportWAV(t=>{this.audio.src=window.URL.createObjectURL(t),this.$store.commit("setRecBlob",t),this.$store.commit("nextDisabled",!1),this.$store.commit("oxShow",!0)})}}}},stopRecord(){console.log("stopRecord"),this.settimeout2&&(window.clearTimeout(this.settimeout2),this.settimeout2=null),this.recognition.stop&&this.recognition.stop(),this.javascript_node&&(this.javascript_node.onaudioprocess=null),this.recstatus=!1,this.$store.commit("setPcRecStatus",!1),this.recorder.stop(),this.checkstatus=!1,this.$store.state.process_type===g["qb"]&&(this.tmp_script.length=[]),this.getSpeakTimerStatus&&(clearInterval(this.timerInterval),this.timerShow=!1,console.log(this.getRecordCurrentCnt),this.$store.commit("oxShow",this.getRecordCurrentCnt>1)),this.$store.commit("nextDisabled",!1),this.final_transcript="",this.$store.commit("subRecordCnt")},dialogAutoClose(t){const e=["fail_dialog","alert_dialog","alert_dialog2","alert_dialog3","alert_dialog4"];e.forEach(e=>{e!==t&&(this[e]=!1)}),this.settimeout1&&window.clearTimeout(this.settimeout1),this[t]=!0,this.settimeout1=window.setTimeout(()=>{this[t]=!1},1500)}},beforeDestroy(){this.unwatch2&&this.unwatch2(),this.unwatch3(),this.unwatch4(),this.unwatch5(),this.recognition&&(this.recognition.onend&&(this.recognition.onend=null),this.recognition.onerror&&(this.recognition.onerror=null),this.recognition.onspeechend&&(this.recognition.onspeechend=null),this.recognition.onresult&&(this.recognition.onresult=null),this.recognition.stop&&this.recognition.stop(),this.recognition.abort&&this.recognition.abort()),this.recorder&&this.recorder.stop&&this.recorder.stop(),this.recorder&&this.recorder.close(),this.source_node&&this.source_node.disconnect(),this.permissionStatus&&(this.permissionStatus.onchange&&(this.permissionStatus.onchange=null),this.permissionStatus=null),this.standardtts=null,this.recognition=null,this.audio_context&&this.audio_context.close().then(()=>{console.log("AudioContext is closed")}),this.audio_context=null,this.recorder=null,this.javascript_node&&(this.javascript_node.onaudioprocess&&(this.javascript_node.onaudioprocess=null),this.javascript_node.disconnect()),this.settimeout1&&window.clearTimeout(this.settimeout1),this.settimeout2&&window.clearTimeout(this.settimeout2),this.interval1&&window.clearInterval(this.interval1),this.timerInterval&&clearInterval(this.timerInterval),this.audio_stream&&this.audio_stream.getTracks().forEach(t=>{t.stop()}),delete this.audio_context,delete this.getusermedia,delete this.audio_stream,delete this.source_node,delete this.javascript_node,delete this.recognition,delete this.recorder,delete this.spect_data,delete this.final_transcript,delete this.audio},destroyed(){this.$destroy()}},ws=fs,ys=(s("130c"),Object(p["a"])(ws,hs,us,!1,null,null,null)),xs=ys.exports;y()(ys,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VRow:ht["a"]});var ks={name:"level-speaking",components:{SpeechRecognition:ds,WebkitSpeechRecognition:xs,AutoText:Xt},props:["data","content"],data(){return{is_mobile:!1,is_ios:!1,prev_step:0,prompt:"",settimeout1:null,prev_spk_cnt:0,setNextPrompt2:"제시된 문장을 따라 읽어보세요.",pivot_num:9999,unwatch_once:null,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0,this.is_ios="ios"===this.$store.state.platform)},mounted(){const t=document.getElementById("tts-audio");if(t){const e=t.childNodes[0].childNodes[0];this.$store.commit("setCurTTSAudio",e),t.childNodes[1].childNodes[0].removeAttribute("hidden"),this.$store.commit("setSpeakingStart",!1)}this.$nextTick(()=>{this.data.dialog_start||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"data.check_answer"(t){t&&this.checkSpeaking()},"$store.state.isLevelTestStart"(t){t&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))}},computed:{setNextPrompt:function(){return this.$store.state.sentences&&this.$store.state.sentences.length>0?this.$store.state.sentences[this.$store.state.current_step].sentence:null},speakingResult:function(){return this.$store.getters.getSpeakingResult},showKor:function(){return this.$store.state.ox_show&&this.$store.state.speaking_kor_show},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade}},methods:{togglePlayWord(){const t=this.$refs["speaking-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},checkSpeaking(){const t=this.$store.state.speaking_data,e={id:this.content.id,type:this.content.type,grade:this.grade};let s="";this.is_mobile?void 0!==t.score[t.score.length-1]?(e.score=t.score[t.score.length-1],s=t.result_html[t.result_html.length-1]):(e.score=0,s=`${this.content.sentence}`):this.$store.state.rec_blob?(e.rec_blob=this.$store.state.rec_blob,e.score=t.score[t.score.length-1],s=t.result_html[t.result_html.length-1]):(e.rec_blob=null,e.score=0,s=`${this.content.sentence}`);let i=0;if(100===+e.score?i=1:40<=+e.score&&(i=2),e.ox_right=1===i,e.result_html=`\n
다음 문장을 정확하게 따라 말해보세요.
\n
${s}
`,e.rec_blob){const t=new FileReader;t.onerror=function(t){console.error(t)},t.onloadend=function(s){e.filedata=t.result},t.readAsDataURL(e.rec_blob)}else e.filedata=null;this.data.result_data[this.data.count]=e,this.data.check_answer=!1,this.$store.commit("setRecBlob",null),this.$store.commit("setRecordFilenameNull")}},beforeDestroy(){const t=this.$refs["speaking-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),console.log("destroyed speaking"),this.$store.commit("setSpeakingStart",!1),this.$store.commit("destroySpeaking"),this.$store.commit("oxShow",!1),this.playWordDelay&&clearTimeout(this.playWordDelay)},destroyed(){}},Cs=ks,$s=(s("6974"),Object(p["a"])(Cs,Ne,qe,!1,null,null,null)),Ss=$s.exports;y()($s,{VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"],VSheet:Se["a"]});var Ts=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"result-contents v-book-index static-container",attrs:{id:"level-result-index"}},[s("left-bar-static",{staticClass:"child-white"},[s("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[s("div",{staticClass:"d-flex align-center",staticStyle:{height:"4rem"}},[s("v-switch",{staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"틀린 문제만 보기",color:"success","hide-details":"",ripple:!1,dense:t.is_mobile,disabled:t.disableSwitch},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}},model:{value:t.wrong_show,callback:function(e){t.wrong_show=e},expression:"wrong_show"}})],1),s("div",{staticStyle:{width:"100%",height:"24px",flex:"1 1 auto"}},[s("div",{staticStyle:{"border-top":"thin solid #edeeef",width:"auto","margin-left":"12%","margin-right":"12%","margin-top":"4%"}})])]),t.result.user_id?s("div",{staticStyle:{position:"absolute",width:"100%",bottom:"0"}},[s("div",{staticClass:"px-4 pb-4 pt-2",staticStyle:{width:"100%"}},[s("v-btn",{staticClass:"level-book-btn",attrs:{block:"",color:"#31dce3",dark:"",elevation:"0",ripple:!1,disabled:"recommendbooks"===t.mode},on:{click:t.getRecommendBooks}},[s("b",{staticClass:"subtitle"},[t._v("레벨 테스트 맞춤 교재")]),s("v-icon",{attrs:{dark:""}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)]):t._e()]),s("div",{staticClass:"right"},["report"===t.mode?s("v-sheet",{staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[s("level-report",{attrs:{wrongShow:t.wrong_show,setChildTab:t.setChildTab,item:t.result}})],1):"recommendbooks"===t.mode?s("v-sheet",{staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[s("div",{staticClass:"component printnone",staticStyle:{height:"100% !important"},attrs:{id:"level-result-wrapper"}},[s("div",{staticClass:"v-tabs"},[s("div",{staticClass:"v-item-group v-tabs-bar d-flex justify-center align-center",staticStyle:{background:"#33dce3",height:"7vh"}},[s("v-icon",{staticClass:"white--text cursor",staticStyle:{left:"1rem",position:"absolute"},on:{click:function(e){t.mode="report"}}},[t._v("\n "+t._s(t.mdi_chevron_left)+"\n ")]),s("span",{staticClass:"white--text",staticStyle:{"font-size":"1.05rem"}},[t._v("\n 레벨 테스트 맞춤 교재\n ")])],1)]),s("div",{staticClass:"width-100 bg-white",attrs:{id:"recommend-books-body"}},[t.recommendBooks.length>0?s("v-row",{staticClass:"width-100",staticStyle:{margin:"0 auto"}},t._l(t.recommendBooks,(function(e,i){return s("v-col",{key:"person-book-col-"+i,staticStyle:{"border-bottom":"1px solid #e0e0e0"},style:{borderRight:i%2==0?"1px solid #e0e0e0":""},attrs:{cols:6}},[s("v-row",{staticClass:"height-100"},[s("v-col",{staticClass:"py-0 d-flex justify-center align-center",attrs:{cols:"6"}},[s("img",{staticStyle:{height:"24.3vh",width:"17.1vh",filter:"brightness(98%)"},attrs:{src:e.cover_path}})]),s("v-col",{staticClass:"py-0 d-flex flex-column justify-center",staticStyle:{gap:"1.25rem"},attrs:{cols:"6"}},[s("h3",{staticClass:"fw-600 ls-m-1"},[t._v("\n "+t._s(e.bookname)+"\n ")]),s("div",{staticClass:"d-flex flex-column",staticStyle:{gap:"0.4rem"}},[s("div",{staticClass:"d-flex"},[s("span",{staticClass:"grey--text",staticStyle:{flex:"0.3"}},[t._v("출판사")]),s("span",{staticStyle:{flex:"0.7"}},[t._v(t._s(e.publisher))])]),s("div",{staticClass:"d-flex"},[s("span",{staticClass:"grey--text",staticStyle:{flex:"0.3"}},[t._v("출판연도")]),s("span",{staticStyle:{flex:"0.7"}},[t._v(t._s(e.publishdate))])]),s("div",{staticClass:"d-flex"},[s("span",{staticClass:"grey--text",staticStyle:{flex:"0.3"}},[t._v("학습일자")]),s("span",{staticStyle:{flex:"0.7"}},[t._v(t._s(e.unit_cnt)+"일")])])])])],1)],1)})),1):s("v-row",{staticClass:"width-100 height-100 d-flex align-center justify-center",staticStyle:{margin:"0 auto"}},[s("span",{staticClass:"grey--text"},[t._v("레벨 테스트 결과, 해당되는 맞춤교재가 없습니다.")])])],1)])]):t._e()],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]})],1)},As=[],Is=s("7239"),Ds=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"height-100 printnone real-leveltest-report"},[i("div",{staticClass:"component printnone",attrs:{id:"level-result-wrapper"}},[i("v-tabs",{attrs:{id:"level-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"}},[i("v-tab",{key:"result-tab-0",staticClass:"first-tab",class:{"bg-success":0==t.tab},attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[i("b",{staticClass:"tab-title fs-105rem"},[t._v("Report")])]),t._l(t.tabs,(function(e,s){return i("v-tab",{key:"result-tab-"+(s+1),attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tab,expression:"tab == 0"}],staticClass:"under-line pos-abs-i width-100 bottom-0 left-0",class:"bg-success"}),i("b",{staticClass:"tab-title fs-105rem",class:t.tab==s+1?"fw-700":""},[t._v("\n "+t._s(e)+"\n ")])])})),i("v-tabs-items",{class:{"bg-grey":0==t.tab},staticStyle:{"overflow-y":"auto","overflow-x":"hidden"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab-item",{key:"result-tab-item-0",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("v-container",{staticClass:"pa-0",attrs:{fluid:""}},[i("v-row",[i("v-col",{staticClass:"vertical-helf py-0 pl-0 pr-1",attrs:{cols:"6"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"before-divider divider-bottom row-20per"},[i("v-col",{staticClass:"pl-6 fs-105rem",attrs:{cols:"12"}},[i("span",[t._v("레포트 정보")]),i("v-icon",{attrs:{color:"black",size:"1.5rem"}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"before-divider divider-bottom row-40per",staticStyle:{height:"40%"}},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"7.5vh",width:"7.5vh",contain:"",src:s("c60a"),"lazy-src":s("c60a"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[i("h3",{staticClass:"title"},[t._v(t._s(t.item.name))]),i("span",{staticClass:"grey--text text--darken-1"},[t._v("\n "+t._s(t.item.select_grade_kor)+"\n ")])])],1),i("v-row",{staticClass:"row-40per",staticStyle:{height:"40%"}},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"7.5vh",width:"7.5vh",contain:"",src:s("24dd"),"lazy-src":s("24dd"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[i("h3",{staticClass:"title"},[t._v(t._s(t.item.postdate)+" 응시")]),i("span",{staticClass:"grey--text text--darken-1"},[t._v("\n "+t._s(t.item.min_studytime)+"분 소요\n ")])])],1)],1)],1),i("v-col",{staticClass:"vertical-helf pl-0 pt-0 pr-0 pb-0",attrs:{cols:"6"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6 fs-105rem",attrs:{cols:"12"}},[t._v("\n 레벨 결과\n "),i("v-icon",{attrs:{color:"black",size:"1.5rem"}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"border-ede row-80per align-center",attrs:{id:"circle-row"}},[i("v-col",{staticClass:"text-center height-100",attrs:{id:"circle-col",cols:"6"}},[t.circle_size>1?i("v-progress-circular",{staticClass:"gradient-circle-green",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"}},[i("span",{staticStyle:{"line-height":"1.1"},domProps:{innerHTML:t._s(t.item.measure_grade.replace(" ","
"))}})]):t._e()],1),i("v-col",{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"}},[i("div",{staticClass:"d-flex align-start flex-column"},[i("h3",{staticClass:"title add-left-bar"},[t._v("\n 해당 학년 평균 레벨\n ")]),i("h3",{staticClass:"title success--text",staticStyle:{"padding-left":"calc(0.7rem + 5px)"}},[t._v("\n "+t._s(t.item.grade_avg)+"\n ")])]),i("div",{staticClass:"d-flex align-start flex-column"},[i("h3",{staticClass:"title add-left-bar"},[t._v("\n 해당 학년 평균 시간\n ")]),i("h3",{staticClass:"title success--text",staticStyle:{"padding-left":"calc(0.7rem + 5px)"}},[t._v("\n "+t._s(t.item.studytime_avg)+"분\n ")])])])],1)],1)],1)],1),i("v-row",[i("v-col",{staticClass:"vertical-helf px-0 pb-0 pt-1",attrs:{cols:"12"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6 fs-105rem justify-space-between",staticStyle:{"padding-right":"3rem"},attrs:{cols:"12"}},[i("div",{staticClass:"d-inline-flex"},[i("span",[t._v("유형별 분석")]),i("v-icon",{attrs:{color:"black",size:"1.5rem"}},[t._v(t._s(t.mdi_chevron_right))])],1),i("div",{staticClass:"d-inline-flex",staticStyle:{gap:"1rem"}},[i("span",[i("b",{staticClass:"info2--text"},[t._v(" ■ ")]),t._v("\n 나의 레벨\n ")]),i("span",[i("b",{staticClass:"warning--text"},[t._v(" ■ ")]),t._v("\n 학년 평균\n ")])])])],1),i("v-row",{staticClass:"row-80per padding-x-10per pos-rel d-flex"},t._l(["vocabulary","listening","reading","writing","speaking"],(function(e,s){return i("div",{key:"type_analysis_"+s,staticClass:"d-flex flex-column justify-center align-center height-100",style:"width: 20%; padding: 1rem; gap: 0.8rem"},[i("div",{staticClass:"width-100 d-flex text-center white--text justify-center",staticStyle:{flex:"1",padding:"0 1rem",gap:"1rem"}},[i("div",{staticClass:"pos-rel width-100 height-100",staticStyle:{"background-color":"#f5f5f5","max-width":"80px"}},[i("div",{staticClass:"info2 width-100 pos-abs",staticStyle:{bottom:"0"},style:"height: "+t.item[e]+"%;"},[i("span",{style:t.setScoreSpanPos(t.item[e])},[t._v("\n "+t._s(t.item[e])+"점\n ")])])]),i("div",{staticClass:"pos-rel width-100 height-100",staticStyle:{"background-color":"#f5f5f5","max-width":"80px"}},[i("div",{staticClass:"warning width-100 pos-abs",staticStyle:{bottom:"0"},style:"height: "+t.item[e+"_avg"]+"%;"},[i("span",{style:t.setScoreSpanPos(t.item[e+"_avg"])},[t._v("\n "+t._s(t.item[e+"_avg"])+"점\n ")])])])]),i("div",{staticClass:"width-100 text-center"},[t._v("\n "+t._s(t.typeKor(e))+" 영역\n ")])])})),0)],1)],1)],1)],1)],1),t._l(t.tabs,(function(e,s){return i("v-tab-item",{key:"result-tab-item-"+(s+1),attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("v-list",{staticClass:"py-0",attrs:{flat:""}},[t.html_data?i("v-list-item-group",{attrs:{mandatory:""}},[t._l(t.html_data,(function(o,a){return[i("v-list-item",{directives:[{name:"show",rawName:"v-show",value:t.showWords(o.right,e),expression:"showWords(val2.right, val)"}],key:"result-tab-item-"+(s+1)+"-"+a,staticClass:"border-ede thin-b",attrs:{ripple:!1}},[i("v-row",{staticClass:"pa-0 width-100 mgauto",attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[i("v-list-item-content",{staticClass:"py-3 d-block"},[i("div",{staticClass:"number-wrap",domProps:{textContent:t._s(+a+1)}})])],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[i("v-list-item-content",{staticClass:"py-3 d-block",staticStyle:{"max-height":"54px","padding-left":"10%"}},["speaking"===o.type?[o.right&&1===+o.right?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-"+(s+1)+"-"+a}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-"+(s+1)+"-"+a}})]:[o.right&&"true"===o.right?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-"+(s+1)+"-"+a}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-"+(s+1)+"-"+a}})]],2)],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"9"}},[i("v-list-item-content",{staticStyle:{padding:"10px 0","min-height":"54px"}},[i("v-list-item-title",{staticStyle:{"white-space":"normal"},domProps:{innerHTML:t._s(o.docTag)}})],1)],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},["speaking"===o.type?i("v-row",{staticClass:"speaking-ops-row",staticStyle:{height:"100%","margin-left":"-34%","margin-right":"-10%"},attrs:{dense:"","no-gutters":""}},[i("v-col",{staticClass:"end-col",attrs:{cols:"6"}}),i("v-col",{staticClass:"end-col",staticStyle:{display:"flex","justify-content":"center","align-items":"center"},attrs:{cols:"6"}},[i("div",{staticClass:"cap-wrapper"},[i("circular-audio-player",{attrs:{id:o.id,audio_src:t.HOST+"/speaking/"+t.$store.state.cid+"/leveltest/"+t.item.id+"/"+o.id}})],1)])],1):t._e()],1)],1)],1)]}))],2):t._e()],1)],1)}))],2)],2)],1)])},Rs=[],Ps=s("cf34"),Ms=s("501b"),Es=s("3344"),Bs={props:["item","wrongShow","setChildTab"],components:{IconReportO:Ps["a"],IconReportX:Ms["a"],CircularAudioPlayer:Es["a"]},data(){return{HOST:g["w"],tab:0,tabs:["상세 조회"],html_data:null,circle_size:0,circle_width:0,circle_font:0,mdi_chevron_right:Lt["v"]}},computed:{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]}}},mounted(){this.$store.dispatch("soundEffectPlay","report"),this.getHtmlData(),this.$nextTick(()=>{this.setCircleSize(),window.onresize=this.setCircleSize,this.$nextTick(()=>{const t=document.querySelector(".real-leveltest-report");let e=t.querySelector("#circle-col").getElementsByTagName("svg");if(e=e[0],e){let t=e.childNodes[0];t.classList.remove("v-progress-circular__underlay"),t.setAttribute("stroke","#f5f5f5")}})})},watch:{tab(t,e){t!==e&&this.setChildTab(t)}},methods:{showWords(t,e){let s=!0;if([void 0,"undefined"].includes(t))return!1;if(t=t?JSON.parse(t):"",this.wrongShow)if(e&&"speaking"==e)switch(Number(t)){case 1:s=!1,t=!0;break;default:s=!0,t=!1;break}else s=!t;return s},setCircleSize(){const t=document.querySelector(".real-leveltest-report");let e=t.querySelector("#circle-row"),s=t.querySelector("#circle-col"),i=window.getComputedStyle(s),o=e.offsetHeight,a=e.offsetWidth;o-=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a-=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight);let n=o>a?a:o;isNaN(n)||(this.circle_size=.8*n,this.circle_width=Math.round(n/9*.8),this.circle_font=Math.round(n/6*.7))},getHtmlData(){const t=this.$store.state.cid;this.item&&i["db"].collection("academy").doc(t).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,i={},o=Object.entries(e);for(let a=0;a{console.log(t)})},openSaveOptionDialog(){this.$store.dispatch("soundEffectPlay","click_button"),this.saveOptDialog=!0}},beforeDestroy(){window.onresize=null}},Ns=Bs,qs=(s("2275"),s("adda")),Ls=s("8860"),zs=s("da13"),Os=s("5d23"),js=s("1baa"),Vs=s("490a"),Fs=Object(p["a"])(Ns,Ds,Rs,!1,null,"426b98cc",null),Gs=Fs.exports;y()(Fs,{VCard:at["a"],VCol:rt["a"],VContainer:lt["a"],VIcon:jt["a"],VImg:qs["a"],VList:Ls["a"],VListItem:zs["a"],VListItemContent:Os["a"],VListItemGroup:js["a"],VListItemTitle:Os["b"],VProgressCircular:Vs["a"],VRow:ht["a"],VTab:as["a"],VTabItem:ns["a"],VTabs:rs["a"],VTabsItems:ls["a"]});var Ws={name:"leveltest-result",props:["result"],components:{LeftBarStatic:Is["a"],Loading:Bt,LevelReport:Gs},mounted(){this.$store.commit("addLoadingPercent",5),this.loading_interval=setInterval(()=>{100===this.$store.state.loading_percent?(clearInterval(this.loading_interval),this.fillLoadingPercent()):this.$store.commit("addLoadingPercent",1)},10)},data(){return{wrong_show:!1,custom_book_show:!1,mode:"report",recommendBooks:null,dialog3:!1,dialog4:!1,dialog6:!1,dialog8:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",is_restudy:0,child_tab:0,use_main:!1,booktype_1:0,dialog_content:"",leftbar_btn_1_cls:null,leftbar_btn_1:null,leftbar_btn_2_cls:null,leftbar_btn_2:null,is_type_v:!1,next_unit:!1,is_mobile:!1,mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"],grammar_l_type:null}},watch:{disableSwitch:{deep:!0,handler:function(t){t&&(this.wrong_show=!1)}}},computed:{setPopupInfo:function(){return this.$store.state.unit&&this.$store.state.book?`${this.$store.state.book.schedule_name?this.$store.state.book.schedule_name:this.$store.state.book.bookname}
${this.$store.state.unit.name}`:""},setProcessType:function(){return this.$store.state.process_type},showLeftBtns:function(){let t=!0;return"report-lookup-learning"===this.$route.name&&(t=!1),"schedule-learningschedule"===this.$route.name&&(t=!1),t},disableSwitch:function(){return 0==this.child_tab||"recommendbooks"===this.mode},showLoading:function(){return this.$store.state.loading_percent>0}},methods:{setChildTab:function(t){this.child_tab=t},getRecommendBooks(){this.$axios.get(`${g["w"]}/leveltest/1/recommendbooks/${this.result.id}`).then(t=>{200===t.status&&(this.recommendBooks=Object.freeze(t.data),this.mode="recommendbooks")}).catch(t=>{console.log(t)})},async fillLoadingPercent(){await this.$store.dispatch("fillLoadingPercent")},clickSound:function(){this.$store.dispatch("soundEffectPlay","click")},exitSound:function(){this.$store.dispatch("soundEffectPlay","exit")}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){this.$store.commit("setLearningStatus",!1),this.loading_interval&&clearInterval(this.loading_interval)}},Us=Ws,Hs=(s("a539"),Object(p["a"])(Us,Ts,As,!1,null,null,null)),Ks=Hs.exports;y()(Hs,{VBtn:ot["a"],VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"],VSheet:Se["a"],VSwitch:ye["a"]});var Zs=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timer"},[s("div",{staticClass:"timer-body"},[t._v("\n "+t._s((t.getScoringTimer/1e3).toFixed(0))+"\n ")])])},Ys=[],Js={name:"Timer",computed:{getScoringTimer(){return this.$store.getters.getScoringTimer}}},Xs=Js,Qs=(s("4608"),Object(p["a"])(Xs,Zs,Ys,!1,null,"608a811a",null)),ti=Qs.exports;const ei=1.7,si=1.6,ii={e3:1,e4:2,e5:3,e6:4,m1:5,m2:6,m3:7,h1:8,h2:9,h3:10};var oi={name:"level-test",components:{Loading:Bt,ProgressBar:kt,LevelPopquiz:se,LevelDictation:Ae,LevelMatching:Be,LevelSpeaking:Ss,TTSAudio:Ft,LevelTestResult:Ks,Timer:ti},data(){return{tempTimestamp:null,LEVEL_TEST_RESULT:g["y"]+g["R"],LEVEL_TEST_GRADE:g["z"],LEVEL_TEST:g["y"],mdiChevronDoubleLeft:Lt["q"],mdiChevronDoubleRight:Lt["r"],mdiChevronRight:Lt["v"],grade:null,testGrade:null,changed_grade:null,correct_count:0,incorrect_count:0,name:null,contents:null,font_head:ei,font_main:si,is_ios:!1,is_mobile:this.$store.state.is_mobile||!1,doc_bind:!1,count:null,isPrevClicked:!1,curType:null,check_answer:!1,next_disabled:!1,result_data:{},final_result:{},dialog_start:!1,dialog_move:!1,windowModel:null,progressHalf:0,loadingText:"맞춤 레벨 테스트를 생성 중입니다.",savingResult:!1}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0)},mounted(){if(0===Object.keys(this.$route.params).length)return void this.$router.push({name:"index"});const t=this.$route.params.grade,e=this.$route.params.name;this.initLevelTest(t),this.setTestInfo(t,e),this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{showLoading(t){t||this.$store.state.process_type===this.LEVEL_TEST_RESULT||(this.dialog_start=!0)},check_answer(t){t||(this.next_disabled=!0,setTimeout(async()=>{if(console.log("check_answer",this.result_data[this.count]),!this.result_data[this.count])return!1;console.log(this.count),29===this.count?(this.loadingText="잠시만 기다려주세요.",await this.sendLevelTestResult()):(this.count+=1,this.smoothMove()),this.next_disabled=!1},750))},count(t,e){if(console.log("watch count : ",t,e),this.windowModel=t,this.curType=this.contents[this.changed_grade?this.changed_grade:this.testGrade][t].type,"speaking"===this.curType&&(this.$store.commit("setRecordCntZero"),this.$store.commit("setSpeakingStart",!0)),this.$store.commit("setStep",t),this.$store.commit("oxShow",!1),["dictation","speaking"].includes(this.curType)||(this.$store.commit("setCurTTSAudio",void 0),this.$store.commit("setSpeakingStart",!1)),t>e){const e=this.result_data[t-1];!["유아","성인"].includes(this.$store.state.unit.name)&&e&&(console.log("evaluateResult"),this.evaluateResult(t,e))}},correct_count(t){t>=2&&this.updateGrade(1)},incorrect_count(t){t>=2&&this.updateGrade(-1)}},computed:{...Object(S["e"])(["seconds"]),getScoringTimer(){return this.$store.getters.getScoringTimer},showLoading(){const t=document.querySelector("#header-study-bar");return t&&this.$store.state.loading_percent>0&&(t.style.zIndex=50),this.$store.state.loading_percent>0}},methods:{...Object(S["b"])(["startLevelTimer","pauseLevelTimer","stopLevelTimer"]),initLevelTest(t){this.tempTimestamp=Date.now(),this.is_mobile&&!this.is_ios&&window.Study.inputLevelTestInfo(JSON.stringify({isLevelTest:!0,name:this.$route.params.name,uclass:this.$store.state.uclass,timestamp:this.tempTimestamp})),this.$store.commit("addLoadingPercent",1),this.loading_interval=setInterval(()=>{100===this.$store.state.loading_percent?(clearInterval(this.loading_interval),this.fillLoadingPercent()):this.$store.commit("addLoadingPercent",1)},500),this.$store.commit("setLearningStatus",!0),this.$store.commit("setProcessType",g["y"]),this.getContent(t)},pcKeydown(t){"Enter"!==t.key||this.dialog_start||this.next_disabled||this.goNext()},evaluateResult(t,e){const s=e.ox_right;s?(this.correct_count+=1,this.incorrect_count=0):(this.incorrect_count+=1,this.correct_count=0)},updateGrade(t){let e;console.log("updateGrade",t),e=this.changed_grade?g["z"].findIndex(t=>t.value===this.changed_grade):g["z"].findIndex(t=>t.value===this.testGrade);let s=e+t;s<1&&(s=1),s>=this.LEVEL_TEST_GRADE.length-1&&(s=this.LEVEL_TEST_GRADE.length-2),this.contents[g["z"][s].value]||(-1==t?s+=1:s-=1),this.changed_grade=g["z"][s].value,this.correct_count=0,this.incorrect_count=0},goNext(){if(console.log("goNext",this.count),this.$store.dispatch("soundEffectPlay","level_next"),30===this.count)return!1;this.check_answer=!0,this.isPrevClicked=!1},goPrev(){if(this.isPrevClicked||0===this.count)return;const t=this.changed_grade||this.testGrade,e=this.result_data[this.count-1].grade;ii[e]ii[t]?(this.correct_count=0,this.incorrect_count=1):(this.correct_count=0,this.incorrect_count=0,this.count>1&&(this.result_data[this.count-2].ox_right?this.correct_count=1:this.incorrect_count=1)),this.changed_grade=this.result_data[this.count-1].grade,setTimeout(async()=>{this.count=this.count-1,this.isPrevClicked=!0},0)},smoothMove(){this.$nextTick(()=>{const t=document.getElementById("level-progress-bar"),e=document.querySelector(".progress-wrap"),s=document.querySelector(".current-question");this.progressHalf=t.offsetWidth/2;const i=s.getBoundingClientRect(),o=i.left+i.width/2-this.progressHalf,a=e.scrollLeft;e.scrollTo({top:0,left:a+o,behavior:"smooth"})})},async fillLoadingPercent(){await this.$store.dispatch("fillLoadingPercent").then(()=>{window.addEventListener("resize",this.onResize)})},handleTestStartClick(){this.startLevelTimer(),this.dialog_start=!1},getContent(t){console.time("---- getContent Time ----"),this.$axios.get(`${g["w"]}/leveltest/1/getcontent?grade=${t}`).then(async t=>{if(200==t.status){this.contents=t.data.contents;for await(const t of Object.values(this.contents)){let e=0;for await(const s of t)if(["speaking","matching"].includes(s.type)?await this.getAudioBlob(s):"dictation"===s.type?await this.getDictationBlob(s):"word_popquiz"===s.type&&await this.getWordAudioBlob(s),e++,5===e)break}Object.values(this.contents).forEach(t=>{for(let e=5,s=t.length;e{console.error(t)})},setTestInfo(t,e){"adult"===t?(this.grade=t,this.testGrade="h3"):"infant"===t?(this.grade=t,this.testGrade="e3"):this.grade=t,this.name=e;let s=2;"e3"===t?s=0:"e4"===t&&(s=1),"adult"!==t&&"infant"!==t&&(this.testGrade=g["z"][g["z"].findIndex(e=>e.value===t)-s].value);let i=R(this.$store.state.book),o=R(this.$store.state.unit);i.schedule_name=e,o.name=this.getGradeText(t);const a={grade:i,name:o};this.$store.commit("setLevelInfo",Object.freeze(a))},getGradeText(t){const e=g["z"].find(e=>e.value===t);return e?e.text.replace(new RegExp(/[0-9]/,"gi")," $&학년"):"해당하는 학년이 없습니다"},resetTestInfo(){if(this.is_mobile&&!this.is_ios){window.Study.clearLevelTestInfo();let t=this.$store.state.uid;19!=this.$store.state.uclass&&(t=`admin-${this.tempTimestamp}-${this.name}`),this.$axios.post(`${g["w"]}/deleteleveltesttemp/${this.$store.state.cid}/${t}`)}this.$store.commit("setLearningStatus",!1),this.stopLevelTimer(),this.loading_interval&&clearInterval(this.loading_interval),this.$store.state.init_loading=!0},async getDictationBlob(t){return new Promise(e=>{this.$axios.get(t.src,{responseType:"blob"}).then(e=>{if(200===e.status){const s=new Blob([e.data],{type:"video/mp4"}),i=URL.createObjectURL(s);t.blob=i}else 204===e.status&&(t.blob=t.src)}).catch(e=>{t.blob=t.src}).finally(()=>{e()})})},async getAudioBlob(t){return new Promise(async(e,s)=>{const i=98643,o=t.id;let a=`${g["w"]}/tts/${i}/s-${o}`,n="tts";1===+this.$store.state.settings.is_ttsgender?(a+="?is_gender=1",n+="/female"):(a+="?is_gender=0",n+="/male");const r=t=>new Promise((e,s)=>{this.$axios.get(a,{responseType:"blob"}).then(s=>{if(200===s.status)if("ios"===this.$store.state.platform)t.blob=`${g["x"]}/media/${n}/${i}/s-${o}.mp3`;else{const e=new Blob([s.data],{type:"audio/mp3"}),i=URL.createObjectURL(e);t.blob=i}e(s)}).catch(t=>{s(t)})});r(t).then(async a=>{200===a.status?e():204===a.status&&await this.$axios.post(g["w"]+"/tts/synthesizetext",{book_id:i,sentence_id:o,text:t.sentence,gender:this.$store.state.settings.is_ttsgender||0}).then(async i=>{200===i.status&&await r(t).then(()=>{e()}).catch(t=>{console.error(t),s(t)})})}).catch(t=>{console.error(t),s(t)})})},async getWordAudioBlob(t){return new Promise(async(e,s)=>{const i=t.word,o=await this.$axios.get(`${g["w"]}/v2/file/checkvocamp3/${i}`);if(200===o.data.res)return t.blob=`${g["rb"]}/${i}.mp3`,void e();const a=1===+this.$store.state.settings.is_ttsgender?"F":"M",n="F"==a?"is_gender=1":"",r=await this.$axios.get(`${g["w"]}/v2/file/checkvocattsmp3/${i}?${n}`);if(200===r.status){const s=r.data.res,o=r.data.filename?r.data.filename:i;if(200==s){const s=o.charAt(0);t.blob=`${g["tb"]}/${a}/${s}/${o}.mp3`,e()}else{const s=await this.$axios.post(g["w"]+"/v2/file/createvocatts",{text:i,gender:a,mp3name:i+".mp3"});if(200===s.status){const o=s.data.done;if(o){const s=i.charAt(0);t.blob=`${g["tb"]}/${a}/${s}/${wordfile}.mp3`,e()}else await this.locaVocaTTS().then(s=>{t.blob=s.blob,e()})}else await this.locaVocaTTS().then(s=>{t.blob=s.blob,e()})}}else s()})},locaVocaTTS(){return new Promise(t=>{const e=98643,s="s-"+content.id;let i=`${g["w"]}/tts/${e}/${s}`,o="tts";1===+this.$store.state.settings.is_ttsgender&&(i+="?is_gender=1",o+="/female"),this.$axios.get(i,{responseType:"blob"}).then(a=>{if(200===a.status){if("ios"===this.$store.state.platform)content.blob=`${g["x"]}/media/${o}/${e}/${s}.mp3`;else{const t=new Blob([a.data],{type:"audio/mp3"}),e=URL.createObjectURL(t);content.blob=e}a.blob=content.blob,t(a)}else 204===a.status&&this.$axios.post(g["w"]+"/tts/synthesizetext",{book_id:e,sentence_id:content.id,text:content.word,gender:this.$store.state.settings.is_ttsgender||0}).then(a=>{200===a.status&&this.$axios.get(i,{responseType:"blob"}).then(i=>{if(200===i.status){if("ios"===this.$store.state.platform)content.blob=`${g["x"]}/media/${o}/${e}/${s}.mp3`;else{const t=new Blob([i.data],{type:"audio/mp3"}),e=URL.createObjectURL(t);content.blob=e}i.blob=content.blob,t(i)}})})})})},async sendLevelTestResult(){return new Promise((t,e)=>{if(this.savingResult)return;this.savingResult=!0;const s=new FormData;s.append("academy_id",this.$store.state.cid),s.append("name",this.name),s.append("uclass",this.$store.state.uclass),s.append("user_id",this.$store.state.uid),s.append("studytime",this.$store.state.seconds),s.append("select_grade",this.grade),s.append("result_data",JSON.stringify(this.result_data)),s.append("timestamp",this.tempTimestamp),s.append("is_mobile",this.$store.state.is_mobile),s.append("platform",this.$store.state.platform),this.$axios.post(g["w"]+"/leveltest/1/insertrecord",s,{headers:{"Content-Type":"multipart/form-data"}}).then(s=>{200===s.status?(this.goResult(s.data.record_id),t(s)):(this.savingResult=!1,e(s))})})},async goResult(t){this.dialog_move=!0;const e=await this.getReport(t);e&&setTimeout(()=>{this.dialog_move=!1,this.$store.state.uclass<20&&this.$store.commit("setLevelTestStatus",1),this.$store.commit("setLearningStatus",!1),this.$store.commit("setProcessType",this.LEVEL_TEST_RESULT)},2500)},getReport(t){return new Promise((e,s)=>{let i=`${g["w"]}/leveltest/1/getrecord/${t}`;this.$axios.get(i).then(t=>{200==t.status?(this.final_result=t.data,e(t)):(this.final_result={},e(t))}).catch(t=>{console.error(t),this.final_result={},s(t)})})},onResize(){this.smoothMove()}},beforeDestroy(){this.resetTestInfo(),this.$store.commit("destroySpeaking"),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown),window.removeEventListener("resize",this.onResize)},destroyed(){}},ai=oi,ni=(s("f705"),s("f665")),ri=s("1e6c"),li=Object(p["a"])(ai,mt,gt,!1,null,null,null),ci=li.exports;y()(li,{VBtn:ot["a"],VCard:at["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var di=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-row",{attrs:{id:"indexvue",align:"start",justify:"start"}},[i("v-col",{staticClass:"main-col pr-0 pos-rel pt-0 pb-0",attrs:{cols:"4",sm:"4",md:"4",lg:"4"}},[i("div",[i("v-card",{key:"index-card-1",staticClass:"mx-auto"},[i("div",{staticClass:"main-title text-center fw-700 pa-0"},[t._v("학생 정보")]),i("div",{staticClass:"main-student-info-wrap"},[i("v-row",{staticClass:"pad-t-border"},[i("v-col",{attrs:{cols:"5",sm:"5",md:"5"},on:{click:function(e){return t.changeInfo("img")},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[t.$store.state.ulogofile?i("div",{key:"index-img-1",staticClass:"info-img bg-center bg-cover bg-norepeat width-100 height-100",style:"background-image: url("+t.$store.state.ulogofile+")",attrs:{id:"main-user-logo"}}):i("v-img",{key:"index-img-20",staticClass:"info-img width-100",staticStyle:{height:"100%"},attrs:{src:s("20c3"),"lazy-src":s("20c3"),contain:"",height:"13vh","max-height":"13vh"}}),i("v-btn",{key:"index-btn-1",staticClass:"main-student-info-img-edit-btn btn-darkgray",attrs:{elevation:"0",small:"",block:""}},[i("span",{staticStyle:{"line-height":"1"}},[t._v("편집")])])],1),i("v-col",{attrs:{cols:"7",sm:"7",md:"7"}},[i("div",{staticClass:"main-student-info-text width-100"},[i("div",{staticClass:"academy_name border-ede thin-t thin-l thin-r justify-center align-center"},[i("b",{staticClass:"grey--text fs-1p1rem"},[t._v(t._s(t.getAcademyName))])]),i("div",{staticClass:"user_name border-ede thin-a align-center justify-center pos-rel",on:{click:function(e){return t.changeInfo("name")},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("b",{staticClass:"fs-1p1rem"},[t._v(t._s(t.getUserName))])])])])],1)],1),i("div",{staticClass:"main-title text-center fw-700 pa-0 setting-button-wrap"},[t._v("\n 학습 관리\n "),i("v-tooltip",{attrs:{bottom:"","content-class":"setting-button-tooltip-content"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,o=e.attrs;return[i("v-btn",t._g(t._b({staticClass:"setting-button",attrs:{icon:"",to:"/settings"},on:{touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},"v-btn",o,!1),s),[i("v-icon",[t._v(t._s(t.mdi_cog))])],1)]}}])},[i("span",[t._v("학습 설정 ")])])],1),i("div",{staticClass:"main-nav-buttons-1 pb-0"},[i("v-row",[i("v-col",{staticClass:"border-ede thin-a pa-0",attrs:{cols:"6",sm:"6",md:"6"}},[i("v-btn",{key:"index-btn-2",staticClass:"main-manage-btn",attrs:{tile:"",block:"",text:"",to:"/schedule"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"main-nav-img-wrap ma-auto pos-rel"},[i("v-img",{staticStyle:{margin:"0 auto"},attrs:{src:s("e7d5"),"lazy-src":s("e7d5"),height:"100%",contain:""}})],1),i("h4",{staticClass:"text-center font-regular grey--text text--darken-2 pt-1v"},[i("b",{staticClass:"fs-1p1rem"},[t._v("평가 스케줄")])])])],1),i("v-col",{staticClass:"border-ede thin-t thin-r thin-b pa-0",attrs:{cols:"6",sm:"6",md:"6"}},[i("v-btn",{key:"index-btn-3",staticClass:"main-manage-btn",attrs:{tile:"",block:"",text:"",to:"/report/lookup/learning"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"main-nav-img-wrap ma-auto pos-rel"},[i("v-img",{staticStyle:{margin:"0 auto"},attrs:{src:s("d7f4"),"lazy-src":s("d7f4"),height:"100%",contain:""}})],1),i("h4",{staticClass:"text-center font-regular grey--text text--darken-2 pt-1v"},[i("b",{staticClass:"fs-1p1rem"},[t._v("학습 레포트")])])])],1),i("v-col",{staticClass:"border-ede thin-l thin-b thin-r pa-0",staticStyle:{position:"relative"},attrs:{cols:"6",sm:"6",md:"6"}},[i("v-btn",{key:"index-btn-4",staticClass:"main-manage-btn",staticStyle:{height:"100% !important",width:"1rem","padding-left":"0","padding-right":"0"},attrs:{block:"",tile:"",text:""},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)},click:t.clickLevelTest}},[i("div",{staticClass:"main-nav-img-wrap ma-auto pos-rel"},[i("v-img",{staticStyle:{margin:"0 auto"},attrs:{src:s("8352"),"lazy-src":s("8352"),height:"100%",contain:""}})],1),i("h4",{staticClass:"text-center font-regular grey--text text--darken-2 pt-1v d-flex align-center"},[i("b",{staticClass:"fs-1p1rem"},[t._v("레벨 테스트")])])])],1),i("v-col",{staticClass:"border-ede thin-b thin-r pa-0",attrs:{cols:"6",sm:"6",md:"6"}},[i("v-btn",{key:"index-btn-5",staticClass:"main-manage-btn",attrs:{tile:"",block:"",text:"",to:"/pocketnote/pocketnote"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"main-nav-img-wrap ma-auto pos-rel"},[i("v-img",{staticStyle:{margin:"0 auto"},attrs:{src:s("1e2f"),"lazy-src":s("1e2f"),height:"100%",contain:""}})],1),i("h4",{staticClass:"text-center font-regular grey--text text--darken-2 pt-1v"},[i("b",{staticClass:"fs-1p1rem"},[t._v("포켓노트")])])])],1),i("v-col",{staticClass:"border-ede thin-l thin-b thin-r pa-0",attrs:{cols:"6",sm:"6",md:"6"}},[i("v-btn",{key:"index-btn-6",staticClass:"main-manage-btn",attrs:{tile:"",block:"",text:"",to:"/leaderboard"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"main-nav-img-wrap ma-auto pos-rel"},[i("v-img",{staticStyle:{margin:"0 auto"},attrs:{src:s("5608"),"lazy-src":s("5608"),height:"100%",contain:""}})],1),i("h4",{staticClass:"text-center font-regular grey--text text--darken-2 pt-1v"},[i("b",{staticClass:"fs-1p1rem"},[t._v("리더보드")])])])],1),i("v-col",{staticClass:"border-ede thin-l thin-b thin-r pa-0",staticStyle:{display:"flex","align-items":"center",position:"relative"},attrs:{cols:"6",sm:"6",md:"6"}},[i("v-btn",{key:"index-btn-7",staticClass:"main-manage-btn",staticStyle:{width:"100%",height:"100% !important"},attrs:{tile:"",block:"",text:"",to:"/assessment"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"main-nav-img-wrap ma-auto pos-rel"},[i("v-img",{staticStyle:{margin:"0 auto"},attrs:{src:s("4450"),"lazy-src":s("4450"),height:"100%",contain:""}}),t.isShowAssessmentBadge?i("div",{staticClass:"assessment-badge"},[i("span",{staticClass:"assessment-badge-number",class:t.assessmentBadgeClass},[t._v(t._s(t.getMainPageInfo.assessment_count>=100?"99+":t.getMainPageInfo.assessment_count))])]):t._e()],1),i("h4",{staticClass:"text-center font-regular grey--text text--darken-2 pt-1v"},[i("b",{staticClass:"fs-1p1rem"},[t._v("평가 하기")])]),t.getMainPageInfo.assessment_tooltip&&t.$store.state.process_type!==t.LEVEL_TEST_RESULT?i("div",{staticClass:"tooltip-container"},[i("span",{staticClass:"tooltip-text"},[t._v("\n 학습 평가를 제출해주세요!\n ")])]):t._e()])],1)],1)],1),i("div",{staticClass:"main-foot-div width-100 align-center"},[i("v-btn",{staticClass:"text-center",staticStyle:{"letter-spacing":"unset","text-transform":"unset"},attrs:{text:"",dressed:"",block:"",absolute:"",color:"grey darken-1",height:"6.4vh !important",ripple:!1}},[i("span",{staticClass:"fs-1p1rem"},[t._v("\n 내공스터디 학생용 v. "+t._s(t.app_version)+" ")]),t._v("  \n "),i("v-icon",{key:"index-icon-2",staticClass:"sync-icon grey white--text",attrs:{small:""}},[t._v(t._s(t.mdi_sync))])],1)],1)])],1)]),i("v-col",{staticClass:"main-col pos-rel pt-0 pb-0",attrs:{cols:"8",sm:"8",md:"8",lg:"8"}},[i("v-card",{staticClass:"mx-auto"},[i("div",{staticClass:"main-title text-center fw-700 pa-0"},[t._v("\n 공지사항\n "),i("div",{staticClass:"mt-arrow pos-abs top-0 right-0"},[i("v-btn",{key:"index-btn-9",staticClass:"mr-1",attrs:{fab:"",text:"",icon:"",large:"",elevation:"0",color:"grey",to:"/notice",ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("v-icon",{key:"index-icon-3",staticStyle:{"padding-bottom":"0.2rem"},attrs:{dark:"",size:t.$store.state.screen_width.fontRemToPx(1.8).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)]),i("div",{staticClass:"main-notice"},[i("div",{staticClass:"main-table"},[t.notices&&0!=t.notices.length?[i("v-simple-table",{key:"index-table-3",staticClass:"tbl-b-b-0 fix-table",attrs:{dense:"",id:"notice_simple_table"},scopedSlots:t._u([{key:"default",fn:function(){return[i("tbody",t._l(t.notices,(function(e,s){return i("tr",{key:"notice-"+e.id+"-"+s,on:{click:function(s){return t.noticeRowClick(e.id)}}},[i("td",{staticClass:"font-weight-bold primary--text text-center",attrs:{width:"20%"}},[t._v("\n "+t._s(e.type)+"\n ")]),i("td",{staticClass:"notice-name",attrs:{width:"60%"}},[t._v(t._s(e.name))]),i("td",{staticClass:"grey--text text-center",attrs:{width:"20%"}},[t._v("\n "+t._s(e.regdate)+"\n ")])])})),0)]},proxy:!0}])})]:[i("div",{staticClass:"empty-div",staticStyle:{height:"18vh"}},[t._v("\n 등록된 공지사항이 없습니다.\n ")])]],2)]),i("div",{staticClass:"main-title text-center fw-700 pa-0"},[t._v("학습 콘텐츠")]),i("div",{staticClass:"main-study",staticStyle:{height:"55.2vh"}},[i("v-row",{staticClass:"height-50 ng-main-list"},[i("v-col",{staticClass:"pt-0 height-100 pos-rel",staticStyle:{"padding-right":"0.45rem !important","padding-bottom":"0.45rem !important","white-space":"nowrap"},attrs:{cols:"6"}},[i("div",{staticClass:"pos-abs",attrs:{id:"course_tooltip"}},[i("div",{staticClass:"py-1 px-3 white--text",staticStyle:{"background-color":"#006848","border-radius":"8px","font-size":"1.1rem"}},[t._v("\n 내공스터디만의 동영상 강의와 실전문제를 풀어보세요.\n ")]),i("div",{staticClass:"pos-abs tootlp-triangle translate-x"})]),i("button",{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"width-100 height-100 new-ng-btn success",class:"is-mobile-"+t.is_mobile,attrs:{type:"button"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)},mouseover:function(e){return t.newNgBtnMouseEvent("course","over")},mouseleave:function(e){return t.newNgBtnMouseEvent("course","leave")},click:function(e){return t.$router.push("/coursebook")}}},[i("div",{staticClass:"text-left height-100 white--text pos-rel"},[t.is_mobile?[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("내공 코스북")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"0",transform:"translate(25%, -50%)"},attrs:{color:"white",size:"3rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("2b3d")}})]:[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("내공 코스북")]),i("h2",{staticClass:"d-inline-block"},[t._v("Course Book")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"-2rem"},attrs:{color:"white",size:"5.8rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("dc7e")}})]],2)])]),i("v-col",{staticClass:"pt-0 height-100 pos-rel",staticStyle:{"padding-left":"0.45rem !important","padding-bottom":"0.45rem !important","white-space":"nowrap"},attrs:{cols:"6"}},[i("div",{staticClass:"pos-abs",attrs:{id:"reading_tooltip"}},[i("div",{staticClass:"py-1 px-3 white--text"},[t._v("\n 문해력과 독해력을 올려주는 리딩 콘텐츠를 확인하세요.\n ")]),i("div",{staticClass:"pos-abs tootlp-triangle translate-x"})]),i("button",{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"width-100 height-100 new-ng-btn storybook",class:"is-mobile-"+t.is_mobile,attrs:{type:"button"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)},mouseover:function(e){return t.newNgBtnMouseEvent("reading","over")},mouseleave:function(e){return t.newNgBtnMouseEvent("reading","leave")},click:function(e){return t.$router.push("/readingbook")}}},[i("div",{staticClass:"text-left height-100 white--text pos-rel"},[t.is_mobile?[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("스토리 리딩북")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"0",transform:"translate(25%, -50%)"},attrs:{color:"white",size:"3rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("f00f")}})]:[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("스토리 리딩북")]),i("h2",{staticClass:"d-inline-block"},[t._v("Reading Book")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"-2rem"},attrs:{color:"white",size:"5.8rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("cba0")}})]],2)])])],1),i("v-row",{staticClass:"height-50 ng-main-list"},[i("v-col",{staticClass:"pb-0 height-100 pos-rel",staticStyle:{"padding-right":"0.45rem !important","padding-top":"0.45rem !important","white-space":"nowrap"},attrs:{cols:"6"}},[i("div",{staticClass:"pos-abs",attrs:{id:"listening_tooltip"}},[i("div",{staticClass:"py-1 px-3 white--text",staticStyle:{"border-radius":"8px","font-size":"1.1rem"}},[t._v("\n 각 학년별 맞춤 제작된 리스닝 콘텐츠를 확인하세요.\n ")]),i("div",{staticClass:"pos-abs tootlp-triangle translate-x"})]),i("button",{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"width-100 height-100 new-ng-btn listeningbook",class:"is-mobile-"+t.is_mobile,attrs:{type:"button"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)},mouseover:function(e){return t.newNgBtnMouseEvent("listening","over")},mouseleave:function(e){return t.newNgBtnMouseEvent("listening","leave")},click:function(e){return t.$router.push("/listeningbook")}}},[i("div",{staticClass:"text-left height-100 white--text pos-rel"},[t.is_mobile?[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("리스닝북")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"0",transform:"translate(25%, -50%)"},attrs:{color:"white",size:"3rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("8df5")}})]:[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("리스닝북")]),i("h2",{staticClass:"d-inline-block"},[t._v("Listening Book")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"-2rem"},attrs:{color:"white",size:"5.8rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("62a3")}})]],2)])]),i("v-col",{staticClass:"pb-0 height-100 pos-rel",staticStyle:{"padding-left":"0.45rem !important","padding-top":"0.45rem !important","white-space":"nowrap"},attrs:{cols:"6"}},[i("div",{staticClass:"pos-abs",attrs:{id:"school_tooltip"}},[i("div",{staticClass:"py-1 px-3 white--text"},[t._v("\n 교과서, 모의고사 등 학원가 필수 콘텐츠를 이용해보세요.\n ")]),i("div",{staticClass:"pos-abs tootlp-triangle translate-x"})]),i("button",{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"width-100 height-100 new-ng-btn info",class:"is-mobile-"+t.is_mobile,attrs:{type:"button"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)},mouseover:function(e){return t.newNgBtnMouseEvent("school","over")},mouseleave:function(e){return t.newNgBtnMouseEvent("school","leave")},click:function(e){return t.$router.push("/schoolbook")}}},[i("div",{staticClass:"text-left height-100 white--text pos-rel"},[t.is_mobile?[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("내신 교과서")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"0",transform:"translate(25%, -50%)"},attrs:{color:"white",size:"3rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("969b")}})]:[i("div",{staticClass:"pos-rel"},[i("h1",[t._v("내신 교과서")]),i("h2",{staticClass:"d-inline-block"},[t._v("School Book")]),i("v-icon",{staticClass:"translate-y arrow",staticStyle:{position:"absolute",right:"-2rem"},attrs:{color:"white",size:"5.8rem"}},[t._v("\n "+t._s(t.mdi_chevron_right)+"\n ")])],1),i("img",{staticClass:"pos-abs",attrs:{src:s("7dc1")}})]],2)])])],1),i("v-row",{staticClass:"height-50 ng-main-list",staticStyle:{display:"none"}},[i("v-col",{staticClass:"py-0",staticStyle:{"padding-right":"0.45rem !important"},attrs:{cols:"6",sm:"6",md:"6",lg:"6"}},[i("div",{staticClass:"table-top-border success"}),i("div",{staticClass:"main-title text-left fw-700 pos-rel"},[t._v("\n 최근 학습내역\n "),i("div",{staticClass:"mt-arrow pos-abs top-0 right-0"},[i("v-btn",{key:"index-btn-10",staticClass:"mr-1",attrs:{fab:"",text:"",icon:"",large:"",elevation:"0",color:"grey",to:{path:"/coursebook",query:{tab:7,startdate:t.learnings_startdate}},ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("v-icon",{key:"index-icon-4",staticStyle:{"padding-bottom":"0.2rem"},attrs:{dark:"",size:t.$store.state.screen_width.fontRemToPx(1.8).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)]),i("div",{staticClass:"main-table line-3",on:{click:function(e){return t.studyRowClick("course")}}},[t.learnings.course&&0!=t.learnings.course.length?[i("v-simple-table",{key:"index-table-4",staticClass:"tbl-b-b-0 fix-table",attrs:{dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[i("tbody",t._l(t.learnings.course,(function(e,s){return i("tr",{key:"main-latest-learning-"+(e.unit_record_id?e.unit_record_id:e.id)},[i("td",{staticClass:"font-weight-bold book-type",class:t.setListClass(e)},[i("div",{class:{"border-ede thin-b":s<4},domProps:{textContent:t._s(t.setListType(e))}})]),i("td",{staticClass:"book-name"},[i("div",{class:{"border-ede thin-b":s<4}},[t._v("\n "+t._s(t.setBookName(e))+"\n "),i("span",{staticClass:"pl-1 unit-name grey--text",domProps:{textContent:t._s(t.setUnitName(e))}})])])])})),0)]},proxy:!0}])})]:[i("div",{staticClass:"empty-div"},[t._v("학습된 내역이 없습니다.")])]],2)]),i("v-col",{staticClass:"py-0",staticStyle:{"padding-left":"0.45rem !important"},attrs:{cols:"6",sm:"6",md:"6",lg:"6"}},[i("div",{staticClass:"table-top-border",staticStyle:{"background-color":"#00ccfe"}}),i("div",{staticClass:"main-title text-left fw-700 pos-rel"},[t._v("\n 최근 학습내역\n "),i("div",{staticClass:"mt-arrow pos-abs top-0 right-0"},[i("v-btn",{key:"index-btn-10",staticClass:"mr-1",attrs:{fab:"",text:"",icon:"",large:"",elevation:"0",color:"grey",to:{path:"/schoolbook",query:{tab:7,startdate:t.learnings_startdate}},ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("v-icon",{key:"index-icon-4",staticStyle:{"padding-bottom":"0.2rem"},attrs:{dark:"",size:t.$store.state.screen_width.fontRemToPx(1.8).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)]),i("div",{staticClass:"main-table line-3",on:{click:function(e){return t.studyRowClick("school")}}},[t.learnings.school&&0!=t.learnings.school.length?[i("v-simple-table",{key:"index-table-4",staticClass:"tbl-b-b-0 fix-table",attrs:{dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[i("tbody",t._l(t.learnings.school,(function(e,s){return i("tr",{key:"main-latest-learning-"+(e.unit_record_id?e.unit_record_id:e.id)},[i("td",{staticClass:"font-weight-bold book-type",class:t.setListClass(e)},[i("div",{class:{"border-ede thin-b":s<4},domProps:{textContent:t._s(t.setListType(e))}})]),i("td",{staticClass:"book-name"},[i("div",{class:{"border-ede thin-b":s<4}},[t._v("\n "+t._s(e.schedule_name?e.schedule_name:e.bookname)+"\n "),i("span",{staticClass:"pl-1 unit-name grey--text",domProps:{textContent:t._s(t.setUnitName(e))}})])])])})),0)]},proxy:!0}])})]:[i("div",{staticClass:"empty-div"},[t._v("학습된 내역이 없습니다.")])]],2)])],1)],1)])],1),i("v-dialog",{key:"index-dialog-1",attrs:{"content-class":"index-dialog",scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog1},model:{value:t.dialog1,callback:function(e){t.dialog1=e},expression:"dialog1"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",style:t.is_mobile?"min-height: 90px;":"min-height: 156px;"},[i("h3",{class:[t.is_mobile?"mt-4 mb-1":"mt-8 mb-5"]},[i("b",[t._v("사용자 이름을 확인하세요.")])]),i("div",{staticClass:"name-text",class:{"py-2":t.is_mobile}},[i("h3",{staticClass:"title",domProps:{textContent:t._s(t.change_name_input)}})])]),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{key:"index-btn-30",attrs:{"x-large":"",text:"",block:"",ripple:!1},on:{click:t.closeDialog1}},[i("b",{staticClass:"success--text title"},[t._v("확인")])])],1)],1)],1)],1)],1),i("v-dialog",{key:"index-dialog-2",attrs:{"content-class":"index-dialog",scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog2},model:{value:t.dialog2,callback:function(e){t.dialog2=e},expression:"dialog2"}},[i("v-card",{staticClass:"pos-rel",attrs:{id:"photo-popup"}},[i("v-card-text",{staticClass:"text-center pt-6 px-8"},[t.is_mobile?[i("v-row",{directives:[{name:"show",rawName:"v-show",value:""==t.file_path,expression:"'' == file_path"}],attrs:{"no-gutters":""}},[i("v-col",{staticClass:"text-center pos-rel",staticStyle:{"margin-top":"1vh"},attrs:{cols:"6"}},[i("v-btn",{key:"index-btn-16",staticStyle:{height:"72px !important",width:"72px"},attrs:{color:"grey lighten-3",elevation:"0",fab:"","x-large":"",ripple:!1},on:{click:t.filePicker}},[i("v-icon",{key:"index-icon-6",staticClass:"grey--text text--darken-1"},[t._v(t._s(t.mdi_image_outline))])],1),i("div",{staticClass:"text-center pop-caption"},[i("b",{staticClass:"grey--text text--darken-2"},[t._v("갤러리")])])],1),i("v-col",{staticClass:"text-center pos-rel before-divider",staticStyle:{"margin-top":"1vh"},attrs:{cols:"6"}},[i("v-btn",{key:"index-btn-17",staticStyle:{height:"72px !important",width:"72px"},attrs:{color:"grey lighten-3",elevation:"0",fab:"","x-large":"",ripple:!1},on:{click:t.camera}},[i("v-icon",{key:"index-icon-7",staticClass:"grey--text text--darken-1"},[t._v(t._s(t.mdi_camera_outline))])],1),i("div",{staticClass:"text-center pop-caption"},[i("b",{staticClass:"grey--text text--darken-2"},[t._v("카메라")])])],1),t.is_ios?t._e():i("v-btn",{staticClass:"pos-abs-i white",staticStyle:{right:"10px",top:"10px",width:"2.5rem !important",height:"2.5rem !important"},attrs:{"x-small":"",fab:"",text:"",icon:"",elevation:"0",ripple:!1},on:{click:t.closeDialog2}},[i("v-icon",{staticStyle:{width:"18px",height:"18px"},attrs:{size:"18px"}},[t._v("\n "+t._s(t.mdi_close)+"\n ")])],1)],1)]:[i("v-row",{attrs:{"no-gutters":""}},[i("v-col",{staticStyle:{border:"2px dashed #e5e5e5"},attrs:{cols:"12"}},[i("h3",{staticClass:"mt-5"},[t._v("이미지 파일을 선택해주세요.")]),i("h4",{staticClass:"grey--text mb-6"},[t._v("\n (jpeg, png 확장자만 지원합니다.)\n ")]),i("v-file-input",{staticClass:"mb-5",staticStyle:{width:"70%",margin:"0 auto"},attrs:{color:"info","prepend-icon":t.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(e){var s=e.index,o=e.text;return[s<2?i("v-chip",{attrs:{color:"info",dark:"",label:"",small:""}},[t._v("\n "+t._s(o)+"\n ")]):2===s?i("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)],""!==t.file_path?i("v-row",{ref:"test",staticClass:"after_select_row"},[i("div",{staticStyle:{width:"50%",margin:"0 auto"}},[i("v-img",{attrs:{src:t.setImgSrc,"aspect-ratio":"1",contain:"",height:"150"}})],1)]):t._e()],2),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{directives:[{name:"show",rawName:"v-show",value:""!==t.file_path,expression:"'' !== file_path"}],attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{staticClass:"after_select_row",attrs:{"x-large":"",text:"",ripple:!1},on:{click:t.changeImgSubmit}},[i("b",{staticClass:"success--text title"},[t._v("적용")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{staticClass:"after_select_row",attrs:{"x-large":"",text:"",ripple:!1},on:{click:t.closeDialog2}},[i("b",{staticClass:"title"},[t._v("취소")])])],1)],1),i("v-row",{directives:[{name:"show",rawName:"v-show",value:!t.file_path,expression:"!file_path"}],attrs:{dense:""}},[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{"x-large":"",block:"",text:"",ripple:!1},on:{click:t.openDialog3}},[i("span",{staticClass:"grey--text title ls-m-1"},[t._v("기본 프로필로 변경")])])],1)],1)],1)],1)],1),i("v-dialog",{key:"index-dialog-3",attrs:{"content-class":"index-dialog",scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.$store.commit("setDialog",{d_name:"leaderboard_dialog",value:!1})}},model:{value:t.$store.state.leaderboard_dialog,callback:function(e){t.$set(t.$store.state,"leaderboard_dialog",e)},expression:"$store.state.leaderboard_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",[t._v("월간 랭킹을 확인하시려면, 학원에 문의하세요.")])])])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.$store.commit("setDialog",{d_name:"leaderboard_dialog",value:!1})}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),i("v-dialog",{key:"index-dialog-4",attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog},model:{value:t.$store.state.exit_dialog,callback:function(e){t.$set(t.$store.state,"exit_dialog",e)},expression:"$store.state.exit_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("b",[t._v("내공스터디를 종료하시겠습니까?")])]),i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[0==t.getTodayStudy?i("div",[i("span",{staticClass:"grey--text"},[t._v("오늘 학습된 내역이 없습니다.")]),i("br"),i("span",{staticClass:"grey--text"},[t._v("배정된 학습 스케쥴을 확인해주세요.")])]):-1==t.getTodayStudy?i("div",[i("span",{staticClass:"grey--text"},[t._v("출제된 진단평가가 남아있습니다.")]),i("br"),i("span",{staticClass:"grey--text"},[t._v("지금 진단평가하면 추가포인트를 드립니다.")])]):i("div",[i("span",{staticClass:"grey--text"},[t._v("영어 실력이 오르는 내신공략 학습!")]),i("br"),i("span",{staticClass:"grey--text"},[t._v("내일도 꼭 만나요 :)")])])])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.appExit}},[i("span",{staticClass:"title"},[t._v("종료")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.logOut}},[i("span",{staticClass:"title"},[t._v("로그아웃")])])],1)],1)],1)],1),i("v-dialog",{key:"index-dialog-5",attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog3},model:{value:t.dialog3,callback:function(e){t.dialog3=e},expression:"dialog3"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"title text-center px-0",attrs:{cols:"12"}},[i("b",[t._v("기본 프로필로 설정하시겠습니까?")])])],1)],1),i("v-card-actions",{staticClass:"py-0 border-ede thin-t"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{"x-large":"",block:"",text:"",ripple:!1},on:{click:t.closeDialog3}},[i("b",{staticClass:"success--text title"},[t._v("취소")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{"x-large":"",block:"",text:"",ripple:!1},on:{click:t.changeDefaultProfile}},[i("b",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),i("v-dialog",{key:"index-dialog-6",attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog4},model:{value:t.dialog4,callback:function(e){t.dialog4=e},expression:"dialog4"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"title text-center px-0",attrs:{cols:"12"}},[i("b",[t._v("기본 프로필로 설정되었습니다.")])])],1)],1),i("v-card-actions",{staticClass:"pa-0 border-ede thin-t"},[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{"x-large":"",text:"",block:"",ripple:!1},on:{click:t.closeDialog4}},[i("b",{staticClass:"success--text"},[t._v("확인")])])],1)],1)],1)],1),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog5},model:{value:t.dialog5,callback:function(e){t.dialog5=e},expression:"dialog5"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black",class:[t.is_mobile?"py-3":"py-8"],staticStyle:{opacity:"0.75"}},[i("h3",{staticClass:"title"},[i("b",{staticClass:"white--text"},[t._v("프로필이 설정되었습니다.")])])])],1)],1),i("v-dialog",{key:"index-dialog-7",attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog6=!1}},model:{value:t.dialog6,callback:function(e){t.dialog6=e},expression:"dialog6"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"title text-center px-0 pb-2",attrs:{cols:"12"}},[i("v-icon",{staticStyle:{width:"1.1rem !important",height:"1.1rem !important","margin-top":"-0.2rem"},attrs:{color:"success"}},[t._v(t._s(t.mdi_information_outline))]),t._v(" "),i("span",{staticClass:"success--text"},[t._v("새로운 공지사항이 있습니다!")]),i("br"),i("div",{staticStyle:{width:"100%",height:"12px"}}),i("span",{staticClass:"grey--text"},[t._v("선생님께서 전달하신 공지 내용은")]),i("br"),i("span",{staticClass:"black--text"},[t._v("초기화면의 공지사항")]),i("span",{staticClass:"grey--text"},[t._v("에서 확인해주세요.")])],1)],1)],1),i("v-card-actions",{staticClass:"pa-0 border-ede thin-t"},[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{"x-large":"",text:"",block:"",ripple:!1},on:{click:function(e){t.dialog6=!1}}},[i("b",{staticClass:"success--text"},[t._v("확인")])])],1)],1)],1)],1),i("v-dialog",{key:"index-dialog-8",attrs:{scrollable:"",width:"55em","max-width":"715px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog7=!1}},model:{value:t.dialog7,callback:function(e){t.dialog7=e},expression:"dialog7"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[i("v-row",{attrs:{id:"rank-popup-row"}},[i("v-col",{staticClass:"title text-center px-0 pb-2 pt-2",attrs:{cols:"12"}},[i("h3",{staticClass:"success--text pb-3 mb-3",staticStyle:{"border-bottom":"1px solid #edeeef","font-size":"1.2rem","font-weight":"800 !important"}},[t._v("\n 리더보드 순위 ("+t._s(t.$store.state.server_ym)+")\n ")]),i("div",{staticClass:"scrollable"},[i("v-simple-table",[[i("thead",[i("tr",[i("th",{staticClass:"text-center"},[t._v("순위")]),i("th",{staticClass:"text-center"},[t._v("클래스")]),i("th",[t._v("이름")]),i("th",[t._v("총합 점수")])])]),i("tbody",t._l(t.rankRows,(function(e,o){return i("tr",{key:"rank-body-tr-"+o},[i("td",{staticClass:"text-center"},[+e.rank<4?[1===+e.rank?i("v-img",{staticStyle:{margin:"0 auto"},attrs:{"lazy-src":s("40fd"),src:s("40fd"),width:"26px"}}):2===+e.rank?i("v-img",{staticStyle:{margin:"0 auto"},attrs:{"lazy-src":s("4f07"),src:s("4f07"),width:"26px"}}):3===+e.rank?i("v-img",{staticStyle:{margin:"0 auto"},attrs:{"lazy-src":s("388f"),src:s("388f"),width:"26px"}}):t._e()]:[t._v("\n "+t._s(e.rank)+"\n ")]],2),i("td",{staticClass:"text-center"},[t._v("\n "+t._s(e.classname)+"\n ")]),i("td",{staticClass:"text-left"},[t._v("\n "+t._s(e.name)+"\n ")]),i("td",{staticClass:"text-left"},[t._v("\n "+t._s(Number(e.tot_score).toFixed(2))+"\n ")])])})),0)]],2)],1)])],1)],1),i("v-card-actions",{staticClass:"pa-0 border-ede thin-t"},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12",dense:""}},[i("v-btn",{staticStyle:{"background-color":"#1bd05b",height:"calc((2.5 * (1rem + 2px)) + 24px) !important","border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{"x-large":"",text:"",block:"",ripple:!1},on:{click:function(e){t.dialog7=!1}}},[i("b",{staticClass:"white--text",staticStyle:{"font-size":"1.2rem"}},[t._v("확인")])])],1)],1)],1)],1),i("v-dialog",{key:"index-dialog-9",attrs:{scrollable:"",width:"31em","max-width":"470px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog_level_start=!1}},model:{value:t.dialog_level_start,callback:function(e){t.dialog_level_start=e},expression:"dialog_level_start"}},[i("v-card",{staticClass:"dialog-8-container"},[i("v-card-text",{class:[t.is_mobile?"py-2":"py-8 px-12"]},[i("v-row",[i("v-col",{staticClass:"d-flex align-center level-name-wrap",attrs:{cols:"12"}},[i("div",{staticClass:"d-flex align-center",staticStyle:{height:"calc(2.5 * (1rem - 2px))"}},[i("span",{staticClass:"success--text fs-1rem"},[t._v("이름")])]),i("v-text-field",{staticClass:"border-ede thin-a",attrs:{dense:"",solo:"","single-line":"","hide-details":"",color:"success",flat:"",maxlength:"18"},model:{value:t.level_name,callback:function(e){t.level_name=e},expression:"level_name"}})],1),i("v-col",{staticClass:"d-flex level-grade-wrap align-start",attrs:{cols:"12"}},[i("div",{staticClass:"d-flex align-center",staticStyle:{height:"calc(2.5 * (1rem - 2px))"}},[i("span",{staticClass:"success--text fs-1rem"},[t._v("학년")])]),i("v-btn-toggle",{staticClass:"border-ede thin-a",model:{value:t.level_grade,callback:function(e){t.level_grade=e},expression:"level_grade"}},t._l(t.LEVEL_TEST_GRADE,(function(e,s){return i("v-btn",{key:"level-test-grade-"+e.value,class:{"border-ede thin-b":s<9,"border-ede thin-r":![2,5,8,11].includes(s)},staticStyle:{border:"none"},attrs:{value:e.value}},[i("span",{staticClass:"fs-1rem",domProps:{textContent:t._s(e.text)}})])})),1)],1)],1)],1),i("v-card-actions",{staticClass:"border-ede thin-t pa-0"},[i("v-btn",{staticClass:"pa-0 level-start-btn",class:[t.level_grade&&""!==t.level_name?"success":"grey lighten-2"],staticStyle:{"border-radius":"0px"},attrs:{text:"",block:"",ripple:!1,disabled:!t.level_grade||""===t.level_name},on:{click:t.startLevelTest}},[t._v("\n 레벨 테스트 시작\n ")])],1)],1)],1),i("v-dialog",{key:"index-dialog-10",attrs:{scrollable:"",width:"31em","max-width":"470px",transition:!1,persistent:"","content-class":"index-dialog-10"},on:{"click:outside":function(e){t.dialog_level_confirm=!1}},model:{value:t.dialog_level_confirm,callback:function(e){t.dialog_level_confirm=e},expression:"dialog_level_confirm"}},[t.$store.state.uclass>20&&t.level_remain_cnt>0?i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",[t._v("응시 가능 횟수가\n "),i("span",{staticClass:"success--text"},[t._v(t._s(t.level_remain_cnt)+"회")]),t._v("\n 남았습니다.")])])]),i("v-col",{staticClass:"grey--text px-0",attrs:{cols:"12"}},[t._v("\n 관리자 계정으로 레벨 테스트를 진행하시겠습니까?"),i("br"),t._v("\n (예비 등록생, 미등록생 점검용)\n ")])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog_level_confirm=!1,t.dialog_level_start=!0}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog_level_confirm=!1}}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1):"F"===t.$store.state.product_type?i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",[t._v("정식 가입 후 이용 가능합니다.")])])])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog_level_confirm=!1}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1):t.$store.state.uclass<20&&1===t.$store.state.leveltest_status||t.$store.state.uclass>20&&t.level_remain_cnt<=0?i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",[t._v("응시 가능 횟수가 모두 소진되었습니다.")])])]),t.$store.state.uclass<20&&1===t.$store.state.leveltest_status?i("v-col",{staticClass:"grey--text px-0",attrs:{cols:"12"}},[t._v("\n 레벨 테스트는 "),i("span",{staticClass:"success--text"},[t._v("월 1회")]),t._v(" 응시\n 가능하니,"),i("br"),t._v("\n 다음달에 다시 응시해주세요!\n ")]):i("v-col",{staticClass:"grey--text px-0",attrs:{cols:"12"}},[t._v("\n 레벨 테스트는\n "),i("span",{staticClass:"success--text"},[t._v("월 "+t._s(t.level_student_cnt)+"회")]),t._v("\n 까지 응시 가능하니,"),i("br"),t._v("\n 다음달에 다시 응시해주세요!\n ")])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog_level_confirm=!1}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goLevelTestResult(t.level_record_id)}}},[i("span",{staticClass:"title"},[t._v("결과 조회")])])],1)],1)],1)],1):t._e()],1),t.$store.state.process_type===t.LEVEL_TEST_RESULT?i("div",[i("level-test-result",{attrs:{result:t.level_result}})],1):t._e()],1)},hi=[],ui={name:"index",components:{LevelTestResult:Ks},data:()=>({cordovaReady:!1,gradeList:["유아","초등3","초등4","초등5","초등6","중등1","중등2","중등3","고등1","고등2","고등3","기타"],isSettingOpen:!1,LEVEL_TEST_RESULT:g["y"]+g["R"],STUDY:g["bb"],TEST:g["hb"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],MOCK_EXAM:g["G"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"],GRAMMAR_THEORY:g["u"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],LEVEL_TEST_GRADE:g["z"],dialog1:!1,dialog2:!1,dialog3:!1,dialog4:!1,dialog5:!1,dialog6:!1,dialog7:!1,dialog_level_start:!1,dialog_level_confirm:!1,name_change:!1,valid:!0,change_name_input:"",change_name_rules:[t=>!!t||"",t=>!!t&&t.length<=20||""],dense:!1,fixedHeader:!1,height:300,notices:[],learnings:{course:[],school:[]},diagnosis:[],learnings_startdate:null,level_grade:null,level_name:"",level_remain_cnt:null,level_student_cnt:null,level_result:{},level_record_id:null,level_name_rules:[t=>t&&t.length<=18&&t.length>1||""],userfile:null,indexvuekey:0,files:[],fd:null,fr:null,file_path:"",file_type:"",imageFile:"",use_picture:!1,unwatch1:null,timeout1:null,is_mobile:!1,is_ios:!1,is_openbook:0,rankRows:null,rankImgTags:{1:"1st",2:"2nd",3:"3rd"},mdi_chevron_right:Lt["v"],mdi_sync:Lt["Z"],mdi_image_outline:Lt["J"],mdi_camera_outline:Lt["k"],mdi_close:Lt["B"],mdi_file:Lt["G"],mdi_information_outline:Lt["K"],mdi_cog:Lt["D"]}),computed:{getUserName:function(){return this.$store.getters.getUserName},getAcademyName:function(){return this.$store.getters.getAcademyName},getTodayStudy:function(){return this.$store.getters.getTodayStudy},userLogoFile:function(){return`${g["w"]}/media/images/selpic/${this.$store.state.ulogofile}?v=${this.indexvuekey}`},setImgSrc:function(){if(this.use_picture){let t=new Blob([this.file_path],{type:"image/jpeg"}),e=window.URL||window.webkitURL,s=e.createObjectURL(t);return s}return this.file_path},getRankPopupView(){return this.$store.getters.getRankPopupView},assessmentBadgeClass(){const t=this.getMainPageInfo.assessment_count||0;return t>=100?"triple-digit":t>=10?"double-digit":"single-digit"},isShowAssessmentBadge(){const t=this.getMainPageInfo.assessment_count||0,e=this.getMainPageInfo.assessment_tooltip;return t>0&&!e},getUserGrade:function(){switch(this.$store.getters.getUserGrade){case"e1":return"infant";case"e2":return"infant";case"etc":return"adult";default:return this.$store.getters.getUserGrade}},getMainPageInfo(){return this.$store.getters.getMainPageInfo}},watch:{dialog_level_start(t){console.log(t),t?(this.level_grade=this.getUserGrade,this.level_name=this.getUserName):(this.level_name="",this.level_grade=null)}},created:function(){this.$store.state.is_mobile&&(this.is_mobile=!0),"ios"===this.$store.state.platform&&(this.is_ios=!0),this.change_name_input=this.$store.state.uname,this.is_openbook=this.$store.state.settings.is_openbook,this.getNoticeList(),this.getLearningList("course"),this.getLearningList("school"),this.$store.dispatch("getUserTodayStudy"),this.unwatch1=this.$store.watch(t=>t.index_dialog_on,(t,e)=>{!0===e&&!1===t&&(this.dialog1=!1,this.dialog2=!1)}),this.app_version="1.4.27"},mounted:function(){document.addEventListener("deviceready",()=>{this.cordovaReady=!0},{once:!0}),this.$store.state.init_sound||(this.$store.dispatch("soundEffectPlay","after_login"),this.getRankPopupView||this.checkNewNotice())},methods:{setIsSettingOpen(){this.isSettingOpen=!this.isSettingOpen},async goLevelTestResult(t){if(this.dialog_level_confirm=!1,t){const e=await this.getLevelTestReport(t);e&&this.$store.commit("setProcessType",this.LEVEL_TEST_RESULT)}else this.$router.push({path:"/report/leveltest"})},getLevelTestReport(t){return new Promise((e,s)=>{let i=`${g["w"]}/leveltest/1/getrecord/${t}`;this.$axios.get(i).then(t=>{200==t.status?(this.level_result=t.data,e(t)):(this.level_result={},s(t))})})},startLevelTest(){this.$router.push({path:"/leveltest",name:"leveltest",params:{grade:this.level_grade,name:this.level_name}})},appExit:function(){this.$store.commit("setDialogResolve","appexit")},logOut:function(){this.$store.commit("setDialogResolve","logout")},closeDialog:function(){this.$store.commit("setDialogResolve","cancel")},camera:function(){this.takePicture(window.Camera.PictureSourceType.CAMERA)},filePicker:function(){const t="undefined"!==typeof window.cordova,e="undefined"!==typeof window.device,s=e?device.platform:null,i="ios"===this.$store.state.platform;if(i)this.takePicture(window.Camera.PictureSourceType.SAVEDPHOTOALBUM);else{const i=window&&window.cordova&&window.cordova.plugins&&window.cordova.plugins.permissions;if(!t||!e||"Android"!==s||!i)return console.warn("[filePicker] Cordova/permissions 미탑재 또는 비안드로이드. 권한요청 생략하고 시도합니다."),void this.takePicture(window.Camera.PictureSourceType.PHOTOLIBRARY);const o=parseInt(device.version,10)>=13,a=i.READ_MEDIA_IMAGES,n=i.READ_EXTERNAL_STORAGE,r=o?a:n,l=()=>this.takePicture(window.Camera.PictureSourceType.PHOTOLIBRARY);i.checkPermission(r,t=>{t&&t.hasPermission?l():i.requestPermission(r,t=>t&&t.hasPermission?l():alert("갤러리(사진) 접근 권한이 필요합니다."),()=>alert("권한 요청에 실패했습니다."))},()=>{console.warn("[filePicker] checkPermission 실패. 갤러리 오픈 시도"),l()})}},takePicture:function(t){window.navigator.camera.getPicture(t=>{let e=this;window.resolveLocalFileSystemURL(t,(function(t){t.file((function(t){e.file_type=t.type,e.fr=new FileReader,e.fr.onloadend=function(t){e.use_picture=!0,e.file_path=this.result},e.fr.readAsArrayBuffer(t)}),(function(t){window.console.log(t)}))}),(function(t){window.console.log(t)}))},t=>{window.console.error(t)},{destinationType:window.Camera.DestinationType.FILE_URI,encodingType:window.Camera.EncodingType.JPEG,quality:50,sourceType:t,targetHeight:500,targetWidth:500,allowEdit:!1,correctOrientation:!0})},closeDialog1:function(){this.dialog1=!1,this.$store.commit("setIndexDialog",!1),this.toggleNameField(!1)},closeDialog2:function(){this.dialog2=!1,this.$store.commit("setIndexDialog",!1),this.fd&&("function"==typeof this.fd.destroy&&this.fd.destroy(),this.fd=null),this.fr&&("function"==typeof this.fr.destroy&&this.fr.destroy(),this.fr=null),this.use_picture=!1,this.file_path="",this.imageFile=""},closeDialog3:function(){this.$store.commit("setIndexDialog",!1),this.dialog3=!1},closeDialog4:function(){this.$store.commit("setIndexDialog",!1),this.dialog4=!1},closeDialog5:function(){window.clearTimeout(this.timeout1),this.dialog5=!1},toggleNameField:function(t){this.name_change=!!t,t||(this.change_name_input=this.getUserName)},changeInfo:function(t){this.$store.commit("setIndexDialog",!0),"name"==t?this.dialog1=!0:"img"==t&&(this.files&&this.files.length>0&&(this.files=[]),this.dialog2=!0)},openDialog3(){this.closeDialog2(),this.$store.commit("setIndexDialog",!0),this.dialog3=!0},openDialog4(){this.closeDialog3(),this.$store.commit("setIndexDialog",!0),this.dialog4=!0},changeNameValid:function(){if(this.$refs.form.validate()){let t=this,e=this.$store.state.cid,s=this.$store.state.uid,i=g["w"]+"/user/"+e+"/"+s+"/changename";this.$axios.post(i,{name:t.change_name_input}).then(e=>{this.$store.commit("setUserName",t.change_name_input),this.name_change=!1}).catch(t=>{})}},getNoticeList:function(){let t=this.$store.state.class.map(t=>"rids[]="+t.id).join("&"),e=`${g["w"]}/notice/${this.$store.state.cid}/getnoticeusermain?${t}`;e+=`&ptype=${this.$store.state.product_type}&uclass=${this.$store.state.uclass}`,this.$axios.get(e).then(t=>{if(204==t.status)this.notices=[],this.notices=[{id:null,type:"",name:"등록된 공지가 없습니다."}];else{this.notices=[];for(let[e,s]of Object.entries(t.data))this.notices.push({id:s.id,type:this.$store.getters.getNtype_txt(parseInt(s.notice_type)),name:s.title,regdate:s.postdate?s.postdate.split(" ")[0].replace(/-/gi,"."):""})}}).catch(t=>{window.console.error(t)})},getLearningList:function(t){let e=this.$store.getters.getCIdForRecord,s=this.$store.state.upostdate,i=(new Date).yyyymmdd()+" 00:00:00";this.learnings[t]=[],this.$axios.get(`${g["w"]}/v3/schedule/${e}/user/${this.$store.state.uid}/from/${s}/to/${i}?limit=5&type=${t}`).then(e=>{let s;if(200==e.status)s=e.data||[];else if(202==e.status)s=[];else{if(204!=e.status)return!1;s=[]}let i=new Date,o="";for(let t=0;tnew Date(s[t].postdate)&&(i=new Date(s[t].postdate),o=s[t].postdate);if([54,98,150].includes(Number(this.$store.state.cid)))for(let t=0,a=s.length;t0||Number(s[t].study_modules)>0)&&(s[t].booktype_1=0,s[t].booktype_2=0,s[t].booktype=0);this.learnings_startdate=o,this.learnings[t]=s.splice(0,3)}).catch(()=>{})},setBookName(t){return t.schedule_name?t.schedule_name:t.bookname},setUnitName(t){let e="";return t.type==g["G"]?e=t.schedule_id&&t.unitname?t.unitname:20==t.question_cnt?`${+t.prev_cnt+1}차 ${t.regular_id?"오답":"정규"}평가`:"모의평가":50===+t.booktype?e=t.subtitle:(e=t.unitname,null===e&&(e="Unit "+(Number(t.unit_seq)+1))),e},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.$axios.post(`${g["w"]}/user/${this.$store.state.cid}/${this.$store.state.uid}/changeimg`,this.fd,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{200==t.status&&(this.is_mobile&&(this.file_path="data:"+this.file_type+";base64,"+P(this.file_path)),this.$store.commit("setUserLogoFile",this.file_path),this.closeDialog2(),this.$store.dispatch("soundEffectPlay","end_popup"),this.files=[],this.timeout1=setTimeout(()=>{this.dialog5=!0,this.timeout1=window.setTimeout(()=>{this.dialog5=!1},2e3)},300))}).catch(t=>{this.closeDialog2(),window.console.error(t)})},fileInput:function(t){if(t){const e=["image/jpeg","image/png"];if(-1==e.indexOf(t.type))return this.files=[],!1;if(this.file_type=t.type,this.imageName=t.name,this.imageName.lastIndexOf(".")<=0)return;this.fr=new FileReader,this.fr.readAsDataURL(t),this.fr.onloadend=e=>{this.file_path=this.fr.result,this.imageFile=t}}},changeDefaultProfile(){this.$axios.get(`${g["w"]}/user/${this.$store.state.cid}/${this.$store.state.uid}/changedefaultprofile`).then(t=>{200==t.status?(this.$store.commit("setUserLogoFile",""),this.timeout1=setTimeout(()=>{this.openDialog4()},200)):t.status}).catch(t=>{console.error(t)})},noticeRowClick:function(t){this.$router.push({path:"/notice",query:{id:t}})},studyRowClick:function(t){this.$router.push({path:`/${t}book`,query:{tab:7,startdate:this.learnings_startdate}})},setListClass(t){const e=t.type;let s="";return[g["bb"],g["B"],g["sb"],g["G"],g["s"],g["Z"]].includes(e)?s="success--text":[g["hb"],g["a"],g["qb"],g["t"],g["W"]].includes(e)?s="info2--text":[g["pb"],g["u"],g["ab"]].includes(e)&&(s="warning--text"),s},setListType(t){const e=t.type;if(e==g["G"])return"평가";if(e==g["u"])return"이론";if([g["s"],g["Z"]].includes(e))return"기본";if([g["t"]].includes(e))return"심화";if(e==g["ab"])return"동화";if(e==g["W"])return"실전";let s,i=0,o=t.category?Number(t.category):1;if(t.booktype&&(i=Math.floor(Number(t.booktype)/10)),1==Number(t.schedule_type))if(1==t.schedule_type_v&&i!==g["j"])switch(i){case g["h"]:case g["g"]:t.type==g["pb"]?s="어휘":t.type==g["bb"]?s=4!=o||Number(t.words_cnt)?[2,4].includes(o)?"본문":3==o||1==o?"지문":"문장":"학습":t.type==g["hb"]&&(s=4!=o||Number(t.words_cnt)?"심화":"시험");break;case g["e"]:t.type==g["pb"]?s="어휘":t.type==g["B"]?s=3==o?"지문":"본문":t.type==g["a"]&&(s="심화");break;default:break}else switch(i){case g["j"]:t.type==g["sb"]?s="학습":t.type==g["qb"]&&(s="시험");break;default:t.type==g["bb"]?s="학습":t.type==g["hb"]&&(s="시험");break}else switch(i){case g["h"]:case g["g"]:t.type==g["pb"]?s="어휘":t.type==g["bb"]?s=4!=o||Number(t.words_cnt)?[2,4].includes(o)?"본문":3==o||1==o?"지문":"문장":"학습":t.type==g["hb"]&&(s=4!=o||Number(t.words_cnt)?"심화":"시험");break;case g["e"]:t.type==g["pb"]?s="어휘":t.type==g["B"]?s=3==o?"지문":"본문":t.type==g["a"]&&(s="심화");break;case g["j"]:t.type==g["sb"]?s="학습":t.type==g["qb"]&&(s="시험");break;default:}return s},clickLevelTest(){if(this.$store.state.uclass>20)this.checkAdminLevelTestCount();else if(0===this.$store.state.leveltest_status)this.dialog_level_start=!0;else{const t=this.$store.state.uclass<20&&1===this.$store.state.leveltest_status;t?this.getLevelTestRecordId():this.dialog_level_confirm=!0}},async getLevelTestRecordId(){await this.$axios.get(`${g["w"]}/leveltest/1/getrecordid/${this.$store.state.uid}`).then(t=>{200==t.status&&(this.level_record_id=t.data.record_id,this.dialog_level_confirm=!0)}).catch(t=>{console.error(t)})},checkAdminLevelTestCount(){"F"!==this.$store.state.product_type?this.$axios.get(`${g["w"]}/leveltest/1/checkremaincount/${this.$store.state.cid}`).then(t=>{200==t.status&&(this.level_remain_cnt=t.data.remain_cnt,this.level_student_cnt=t.data.student_cnt,this.dialog_level_confirm=!0)}).catch(t=>{console.error(t)}):this.dialog_level_confirm=!0},checkNewNotice:function(){let t="";this.$store.state.class&&void 0!==this.$store.state.class[0]&&(t="?rid="+this.$store.state.class[0].id),this.$axios.get(`${g["w"]}/notice/${this.$store.state.cid}/check/${this.$store.state.uid}/new${t}`).then(t=>{if(200==t.status){let e=t.data.cnt?Number(t.data.cnt):0;e>0&&(this.dialog6=!0)}}).catch(t=>{console.error(t)})},getBoard(){let t=`${g["w"]}/result/${this.$store.state.cid}/getboard/month/0/1000?type=tmonth`;this.$store.state.class.length>0&&(t+="&class="+this.$store.state.class[0].id),this.$axios.get(t).then(t=>{200==t.status&&(this.dialog7=!0,this.rankRows=t.data.rows)}).catch(t=>{console.error(t)}).finally(()=>{this.checkNewNotice()})},newNgBtnMouseEvent(t,e){if(this.is_mobile)return!1;const s=document.getElementById(t+"_tooltip");"over"==e?s.classList.add("fade"):"leave"==e&&s.classList.remove("fade")}},beforeDestroy(){this.fr&&("function"==typeof this.fr.destroy&&this.fr.destroy(),this.$delete(this,"fr")),this.fd&&("function"==typeof this.fd.destroy&&this.fd.destroy(),this.$delete(this,"fd")),this.imageFile&&(this.imageFile.destroy(),this.$delete(this,"imageFile"),this.imageFile=null),this.timeout1&&window.clearTimeout(this.timeout1),this.unwatch1()},destroyed(){this.$destroy()}},pi=ui,_i=(s("2cea"),s("af9e"),s("0411"),s("a609")),mi=s("23a7"),gi=s("1f4f"),bi=s("3a2f"),vi=s("269a"),fi=s.n(vi),wi=s("5607"),yi=Object(p["a"])(pi,di,hi,!1,null,"234a0cda",null),xi=yi.exports;y()(yi,{VBtn:ot["a"],VBtnToggle:_i["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VChip:Me["a"],VCol:rt["a"],VDialog:ct["a"],VFileInput:mi["a"],VIcon:jt["a"],VImg:qs["a"],VRow:ht["a"],VSimpleTable:gi["a"],VTextField:ut["a"],VTooltip:bi["a"]}),fi()(yi,{Ripple:wi["b"]});var ki=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"book-vue"}},[t.getLearningStatus?i("learning",{key:"learning-index",attrs:{bookmode:"course",mode:t.$store.getters.getLearningMode,tab:t.tab,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,setDialogText:t.setDialogText,setLearningDialog:t.setLearningDialog,setDialogVMA:t.setDialogVMA,updateSingleMockExamUnit:t.updateSingleMockExamUnit}}):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"v-book-index static-container"},[i("left-bar-static",{key:"book-left-bar",staticClass:"child-white"},[i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("v-switch",{key:"book-left-bar-switch-1",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"최근 학습내역",color:"success","hide-details":"","input-value":7==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,7)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1),i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("v-switch",{key:"book-left-bar-switch-2",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"학습중인 교재",color:"success","hide-details":"","input-value":6==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,6)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1),i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"},attrs:{id:"bookmark_switch"}},[i("v-switch",{key:"book-left-bar-switch-3",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"북마크 교재",color:"success","hide-details":"","input-value":5==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,5)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1)]),i("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("router-link",{staticClass:"left-label-title d-flex",staticStyle:{"text-decoration":"none"},attrs:{to:"/schedule/learningschedule"}},[i("div",{staticClass:"label-control",on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("label",[t._v("나의 학습 스케줄\n "),i("v-btn",{attrs:{icon:"",text:"",fab:""}},[i("v-icon",{attrs:{size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)])])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습 진행률")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[i("span",{domProps:{textContent:t._s(t.study_progress)}})])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("재학습")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[i("span",{domProps:{textContent:t._s(t.setRestudyText())}})])],1),i("div",{staticStyle:{flex:"1 1 auto"}})],1),i("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("a",{staticClass:"left-label-title d-flex"},[i("div",{staticClass:"label-control",class:{"success--label":null!=t.$store.state.current_book_id}},[i("label",[t._v("\n 선택된 교재 정보\n "),i("v-icon",{class:{"success--text":t.coverimg_url},attrs:{disabled:""==t.coverimg_url,size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)},on:{click:t.openCoverImg}},[t._v(t._s(t.mdi_chevron_right)+"\n ")])],1)])])]),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작자")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publisher)+"\n ")])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작년도")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publishdate)+"\n ")])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습일차")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_unit_cnt?t.$store.state.cur_book_unit_cnt+"일":"")+"\n ")])],1)],1)]),i("div",{staticClass:"right"},[i("v-sheet",{key:"book-right-sheet",staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[i("v-row",{staticClass:"width-100 ma-0 custom-tab-wrapper min-h-40px",class:""+this.menu},[i("v-col",{directives:[{name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}],staticClass:"pa-0 pos-rel",attrs:{cols:t.setCourseTabs},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":1==t.tab_class},attrs:{id:"tab1"},on:{click:function(e){return t.selectTab(1)}}},[t._v("\n 핵심 영상강의\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t2"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t2_display,type:"t2",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -4px)",tool_top:t.t2_top,tool_left:t.t2_left,tool_translate:"translate(-50%, -100%)",text:"초중고 필수 영문법 강의와 실전문제를 풀어보세요."}}):t._e(),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t6"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t6_display,type:"t6",arrow_direction:"arrow-up",arrow_left:"2vw",arrow_translate:"translate(0, 2px)",tool_top:t.t6_top,tool_left:t.t6_left,tool_translate:"translate(0, 0)",text:"자주쓰는 교재는 ♥를 눌러 저장해보세요."}}):t._e()],1),i("v-col",{staticClass:"pa-0",class:{"before-divider":![1,2].includes(t.tab)},attrs:{cols:t.setCourseTabs},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":2==t.tab_class},attrs:{id:"tab2"},on:{click:function(e){return t.selectTab(2)}}},[t._v("\n 필수 주요구문\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t3"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t3_display,type:"t3",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -4px)",tool_top:t.t3_top,tool_left:t.t3_left,tool_translate:"translate(-50%, -100%)",text:"전체 교과서의 주요 변형구문 학습이 가능합니다."}}):t._e()],1),i("v-col",{staticClass:"pa-0",class:{"before-divider":![2,3].includes(t.tab)},attrs:{cols:t.setCourseTabs},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":3==t.tab_class},attrs:{id:"tab3"},on:{click:function(e){return t.selectTab(3)}}},[t._v("\n 기본 영어단어\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t4"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t4_display,type:"t4",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -4px)",tool_top:t.t4_top,tool_left:t.t4_left,tool_translate:"translate(-50%, -100%)",text:"내공만의 검증된 초중고 영어단어를 암기해보세요."}}):t._e()],1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.tab<7||10===t.tab,expression:"tab < 7 || tab === 10"}],staticClass:"content-child-2"},[i("v-row",{staticClass:"gradeselect-wrapper ma-0 width-100 min-h-40px",staticStyle:{border:"thin solid #edeeef"}},[i("v-col",{staticClass:"pa-0 height-100 d-flex align-center",staticStyle:{"padding-left":"1.25% !important"},attrs:{sm:5,cols:4}},[t.tab>3&&10!==t.tab?i("v-row",{staticClass:"ma-0 width-100"},[i("v-col",{staticClass:"pa-0 pr-1 height-100",attrs:{cols:t.isStorybook?12:3}},[t.isStorybook?i("div",{staticClass:"d-flex width-80p",attrs:{id:"story-filter"}},[i("div",[i("v-btn",{attrs:{variant:"success","x-large":"",icon:"",ripple:!1,disabled:1===t.level_page},on:{click:function(e){return t.levelView("prev")}}},[i("v-icon",{style:1===t.level_page?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_left_circle)+"\n ")])],1)],1),i("div",{class:"level-page-"+t.level_page,staticStyle:{"overflow-x":"hidden"},attrs:{id:"level_list"}},[i("v-btn-toggle",{attrs:{dark:""},on:{change:t.changeLevel},model:{value:t.level_exclusive,callback:function(e){t.level_exclusive=e},expression:"level_exclusive"}},t._l(t.level_items,(function(e,s){return i("v-btn",{key:"level-btn-"+s,staticClass:"level-btn",attrs:{value:+e.value,disabled:t.level_exclusive===+e.value}},[t._v("\n "+t._s(e.text)+"\n ")])})),1)],1),i("div",[i("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1,disabled:4===t.level_page},on:{click:function(e){return t.levelView("next")}}},[i("v-icon",{style:4===t.level_page?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_right_circle)+"\n ")])],1)],1)]):t._e(),t.tab>4?i("v-overflow-btn",{key:"ov-grade",staticClass:"custom-filter",attrs:{items:t.grade_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"success"},on:{change:t.changeGrade},scopedSlots:t._u([{key:"label",fn:function(){return[i("div",{staticClass:"mx-0"},[t._v("학년")])]},proxy:!0},{key:"append",fn:function(){return[i("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2335967587),model:{value:t.select_grade,callback:function(e){t.select_grade=e},expression:"select_grade"}}):t._e()],1),t.isStorybook?t._e():i("v-col",{staticClass:"pa-0 pr-1 height-100 mr-2",attrs:{cols:"3"}},[i("v-overflow-btn",{staticClass:"custom-filter",attrs:{items:t.sort_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"#ffa025"},scopedSlots:t._u([{key:"label",fn:function(){return[i("span",{staticClass:"mx-0"},[t._v(" 정렬 ")])]},proxy:!0},{key:"append",fn:function(){return[i("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2022726672),model:{value:t.sortBy,callback:function(e){t.sortBy=e},expression:"sortBy"}})],1),i("RefreshBtn",{on:{click:t.refresh}})],1):(t.tab<=3||10===t.tab)&&0===t.course_mode?i("v-row",{staticClass:"ma-0"},[i("v-col",{staticClass:"pa-0 pr-1 height-100",staticStyle:{width:"max-content",display:"flex"}},[t._l(t.course_categories[t.tab],(function(e,s){return i("v-btn",{key:"course-publisher-"+s,staticClass:"category-btn mr-2",class:t.current_category_idx===s?"white--text":"grey--text",staticStyle:{"min-width":"50px"},attrs:{depressed:"",rounded:"",color:t.current_category_idx===s?"success":"grey lighten-4"},on:{click:function(e){return t.changePublisher(s)}}},[t._v("\n "+t._s(e)+"\n ")])})),i("RefreshBtn",{on:{click:t.refresh}})],2)],1):(t.tab<=3||10===t.tab)&&1===t.course_mode?i("v-row",{staticClass:"ma-0 width-100"},[i("v-col",{staticClass:"pa-0 pr-1 height-100"},[i("div",{staticClass:"cursor grey--text",on:{click:t.courseDetailBackBtnClick}},[i("span",[t._v("<")]),i("span",{staticClass:"underline ml-1"},[t._v(t._s(t.tabs[t.tab]+" "+(1!==t.tab?"교재":""))+"\n 목록")])])])],1):t._e()],1),i("v-col",{staticClass:"pa-0",staticStyle:{"align-self":"center","padding-right":"3.5% !important"},attrs:{cols:4,offset:"4","offset-sm":3}},[i("v-row",[i("v-text-field",{directives:[{name:"show",rawName:"v-show",value:1!==t.course_mode,expression:"course_mode !== 1"}],staticClass:"search-input float-right",staticStyle:{width:"90%"},attrs:{"append-icon":t.search_keyword?"":t.mdi_magnify,id:"search",label:"교재명, 단원명, 제작자",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":t.mdi_close_circle,color:"success"},on:{keyup:function(e){t.tab<=3||10===t.tab?t.searchKeyupCourseBook(e):t.searchKeyup(e)},blur:t.searchBlur},model:{value:t.search_keyword,callback:function(e){t.search_keyword=e},expression:"search_keyword"}})],1)],1)],1),t.tab>3&&10!==t.tab||1===t.course_mode?i("v-row",{staticClass:"mx-0 story-book-row"},[i("v-col",{staticClass:"py-0 pos-rel px-0",attrs:{cols:"12"}},[4==t.tab?i("story-book-table",{ref:"story_book_table",attrs:{data:t.$data}}):i("v-data-table",{key:"book-list-"+t.tab,staticClass:"custom-dt over-y-scroll",attrs:{id:"book-list-dttbl",headers:t.headers,items:t.books,"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":t.item_key,"items-per-page":t.items_per_page,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.","hide-default-footer":"","hide-default-header":"","fixed-header":"","single-select":"",search:t.tableSearch,"custom-filter":t.filterTabs,"custom-sort":t.sortTabs,height:"64vh"},on:{"click:row":t.selectRow},scopedSlots:t._u([{key:"item.data-table-expand",fn:function(e){var s=e.isExpanded,o=e.isSelected,a=e.item;return[i("div",[i("v-lazy",{attrs:{transition:""}},[i("v-icon",{directives:[{name:"show",rawName:"v-show",value:s,expression:"isExpanded"}],staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_down))])],1),o&&t.loading_unit?[i("icon-rolling",{attrs:{color:"#2196f3",size:"16",strokewidth:"12",absolute:""}})]:t._e(),i("v-icon",{directives:[{name:"show",rawName:"v-show",value:!s&&!(o&&t.loading_unit),expression:"!isExpanded && !(isSelected && loading_unit)"}],staticClass:"act-ico",class:{"grey--text text--lighten-2":t.mockexams_block[a.books_id]},attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_right))])],2)]}},{key:"item.bookmark",fn:function(e){var s=e.item;return[i("v-lazy",{attrs:{"min-height":"40px",transition:""}},[i("v-btn",{staticClass:"mx-0",class:[1==+s.bookmark?"pink--text":"grey--text",s.disable?"text--lighten-3":"text--lighten-2"],attrs:{large:"",text:"",icon:"",ripple:!1},on:{click:function(e){return e.stopPropagation(),t.toggleBookmark(s)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[1==+s.bookmark?i("v-icon",{attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart))]):i("v-icon",{staticClass:"act-ico",attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart_outline))])],1)],1)]}},{key:"item.info",fn:function(e){var s=e.item;return[i("v-row",{staticClass:"width-100 d-flex align-center min-h-40px",attrs:{dense:"","no-gutters":""}},[i("v-col",{key:s.table_key+"-"+t.search_key,staticClass:"row-name d-flex align-center",attrs:{cols:"8"}},[i("div",{staticClass:"book-title",class:{"grey--text-d7":s.disable},domProps:{innerHTML:t._s(s.schedule_name||s.bookname)}}),s.subtitle&&50!==+s.booktype?i("div",{staticClass:"book-subtitle before-divider ml-3 grey--text",domProps:{textContent:t._s(s.subtitle)}}):t._e(),10===+s.category&&31===+s.booktype?i("div",[i("span",{staticClass:"book-subtitle ml-1 fw-300 booktag hot",class:{"opacity-half":s.disable}},[t._v("\n HOT\n ")])]):11===+s.booktype||s.booktype_2===t.TAG_HOT?i("div",[i("span",{staticClass:"book-subtitle ml-1 fw-300 booktag",class:{"opacity-half":s.disable,beta:!s.m_mod||!s.a_mod,hot:!(!s.m_mod||!s.a_mod)}},[t._v("\n "+t._s(s.m_mod&&s.a_mod?"HOT":"BETA")+"\n ")])]):s.booktype_2===t.TAG_NEW||1==s.category&&0===+s.booktype||2==s.category&&11!==+s.booktype||3==s.category&&0===+s.booktype?i("div",{staticClass:"book-subtitle ml-1 fw-300 booktag new",class:{"opacity-half":s.disable}},[t._v("\n NEW\n ")]):s.booktype_2===t.TAG_VOCA?i("div",{staticClass:"book-subtitle ml-1 fw-300 booktag voca",class:{"opacity-half":s.disable}},[t._v("\n VOCA\n ")]):t._e(),t.HasMockExam(s.category,s.books_id,s)&&!s.mockexam||s.mockexam&&10===+s.category&&31===+s.booktype?i("div",{staticClass:"mockexam-div height-100 before-divider ml-3"},[i("v-btn",{staticClass:"px-xl-3 px-lg-2",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",text:"",large:"",ripple:!1,color:"black",tile:""},on:{click:function(e){return e.stopPropagation(),t.openMockExamConfirm(s.books_id,s.bookname,null,null,+s.booktype)}}},[i("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:""}},[t._v(t._s(t.mdi_play_circle_outline))]),i("b",{staticClass:"ml-n1",domProps:{textContent:t._s(t.setMockName(s))}})],1)],1):t._e()]),i("v-col",{staticClass:"row-progress d-flex align-center justify-center",attrs:{cols:"4"}},[i("v-lazy",{staticClass:"lazy-progress"},[i("div",{staticClass:"progress-wrap pos-rel width-100 height-100"},[i("b",{staticClass:"under-text fw-700",class:{"grey--text text--lighten-1":!s.progress}},[t._v("  "+t._s(s.progress)+"%  ")]),i("div",{staticClass:"progress-gauge pos-abs height-100 left-0 top-0 overflow-hidden text-right",style:"width:"+s.progress+"%"},[i("b",{staticClass:"white--text tw-800"},[t._v("  "+t._s(s.progress)+"%  ")])])])])],1)],1)]}},{key:"expanded-item",fn:function(e){var s=e.item;return[t.$data[t.getScheduleBookId(s)]?[i("unit-template",{attrs:{data:t.$data,menu:t.menu,headers:t.headers,item:s,is_mobile:t.is_mobile,getScheduleBookId:t.getScheduleBookId,setListBtnText:t.setListBtnText,setBtnText:t.setBtnText,grammarConfirm:t.grammarConfirm,vmaConfirm:t.vmaConfirm,shadowreadingConfirm:t.shadowreadingConfirm,openMockExamConfirm:t.openMockExamConfirm,studyConfirm:t.studyConfirm,testConfirm:t.testConfirm}})]:t._e()]}}],null,!0)}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.scroll_loading,expression:"scroll_loading"}],staticClass:"linear-activity overflow-hidden width-100 pos-abs bottom-0"},[i("div",{staticClass:"indeterminate pos-rel width-100 height-100"})])],1)],1):t._e(),(t.tab<=3||10===t.tab)&&0===t.course_mode?i("v-row",{staticClass:"mx-0 course-row"},[i("v-col",{staticClass:"py-0 pos-rel px-0 d-none",attrs:{cols:"12"}},[i("v-data-table",{staticClass:"temp-table",attrs:{id:"book-list-dttbl"}})],1),i("v-col",{staticClass:"py-0 pos-rel px-0 course-item-wrapper",attrs:{cols:"12"}},[t.final_keyword&&t.course_search_books&&0==t.course_search_books.length||t.isEmptyCourseBook||1===+t.is_openbook&&!t.isEmptyCourseBook&&0==t.course_books.length?[i("div",{staticClass:"v-data-table__empty-wrapper border-ede thin-b d-flex align-center justify-center",staticStyle:{color:"rgba(0, 0, 0, 0.38)","font-size":"1.1rem",padding:"1rem",height:"7vh"}},[t._v("\n 등록된 교재가 없습니다.\n ")])]:[i("v-col",{staticClass:"course-item-wrap"},t._l(t.course_search_books?t.course_search_books:t.course_books,(function(e,o){return i("v-lazy",{directives:[{name:"show",rawName:"v-show",value:t.showCourseBooks(e),expression:"showCourseBooks(item)"}],key:"course_table_"+o,attrs:{options:{threshold:.5},transition:"fade-transition"}},[i("v-card",{staticClass:"cursor",on:{click:function(s){return t.courseBookClick(e)}}},[i("div",{staticClass:"d-flex",class:[e.disable?"book-disabled pos-rel":""]},[e.disable?i("div",{staticClass:"pos-abs lock-div"},[i("img",{attrs:{src:s("1195")}})]):t._e(),i("img",{staticClass:"book-cover-img",staticStyle:{filter:"brightness(98%)"},attrs:{src:t.CDN+"/1/"+e.cover_path,alt:"book-cover",rel:"preload"}}),i("div",{staticClass:"course-book-info"},[i("span",{staticClass:"font-weight-bold badge"},[t._v("자체 콘텐츠")]),e.search_name&&t.course_search_books?i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"brand"))}}):i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[t._v("\n "+t._s(e.bookname&&e.bookname.split(" ")[0])+"\n ")]),i("div",{staticClass:"mb-1 d-flex"},[e.search_name&&t.course_search_books?i("div",[i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"bookname"))}})]):i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[t._v("\n "+t._s(1===t.tab?e.bookname.split(" ")[1]+" "+e.bookname.split(" ")[2]:e.bookname.split(" ").slice(1).join(" "))+"\n ")]),e.search_name&&t.course_search_books||1!==t.tab?e.search_name&&1===t.tab&&t.course_search_books?i("span",{staticClass:"grey--text text--darken-1 fs-1p1rem ml-1",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"grade"))}}):t._e():i("span",{staticClass:"grey--text text--darken-1 fs-1p1rem ml-1"},[t._v("\n "+t._s("(LEVEL "+e.bookname.split(" ")[e.bookname.split(" ").length-1]+")")+"\n ")])]),i("div",{staticClass:"course-tag-wrap"},t._l(t.course_tags[t.tab],(function(e,s){return i("span",{key:"course_tag_"+s,staticClass:"course-tag"},[t._v(t._s(e))])})),0)])])])],1)})),1)]],2)],1):t._e()],1),i("div",{directives:[{name:"show",rawName:"v-show",value:7==t.tab,expression:"tab == 7"}]},[i("book-list-latest",{key:"book-list-3",ref:"book_list_latest",attrs:{type:"course",query:t.query_startdate,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,getLearningStatus:t.getLearningStatus,tab:t.tab,updateSingleUnit:t.updateSingleUnit,unitStatusChecker:t.unitStatusChecker,updateTmpSelUpdate:t.updateTmpSelUpdate}})],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("alert_dialog")}},model:{value:t.alert_dialog,callback:function(e){t.alert_dialog=e},expression:"alert_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},["adm_null"==t.alert_type?[t._v("다른 학원의 수업자료를 무상 공유해드립니다."),i("br"),t._v("배정된 담당자를\n 통해 문의하세요!")]:[t._v("해당 교재는 비활성화 되어있습니다."),i("br"),t._v("담당 선생님께\n 문의하세요!")]],2)],1)],1),i("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeLearningDialog},model:{value:t.learning_dialog,callback:function(e){t.learning_dialog=e},expression:"learning_dialog"}},[i("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",{domProps:{textContent:t._s(t.dialog_title)}})])]),[1,11,12,16,17].includes(t.learning_dialog_type)?t._e():i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[i("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.setBookName)}}),i("br"),i("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.setUnitName)}})])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[i("v-row",{attrs:{dense:""}},[0==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[1,11,16].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)]:2==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:3==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.openRestudyDialog}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.STUDY})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[4,7].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:5==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:6==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:7!=t.learning_dialog_type||t.isProcessResult?[8,13].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[9,14].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[10,15].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[28].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[29,30].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){29==t.learning_dialog_type?t.closeLearningDialog():t.goStudyGRAMMAR({clear:!0})}}},[29==t.learning_dialog_type?i("span",{staticClass:"title"},[t._v("취소")]):i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[31].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultGRAMMAR}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[32].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[12,17].includes(t.learning_dialog_type)&&!t.isProcessResult?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:50==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:53==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!0,restudy:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult||"동화보기를 재학습하시겠습니까?"==t.dialog_title?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:51==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:99==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goShadowReading}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:t._e():[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]],2)],1),i("div",{staticClass:"pos-abs border-ede thin-l width-100 height-100 white",class:[t.restudy_dialog?"opacity-1":"opacity-0"],attrs:{id:"from-right-slide-dialog"}},[i("v-card-text",{staticClass:"text-center pa-0 pos-rel top-0",attrs:{id:"dialog-new-text"}},[i("div",{staticClass:"pos-abs rd-arrow"},[i("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1},on:{click:t.closeRestudyDialog}},[i("v-icon",[t._v(t._s(t.mdi_arrow_left))])],1)],1),i("v-row",{attrs:{align:"center",justify:"center","no-gutters":""}},[i("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.FLASHCARD},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.FLASHCARD)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",[i("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_volume_high))]),i("br"),i("b",{staticClass:"fs-title"},[t._v("리스닝 학습")]),i("br"),i("br"),i("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"}},[t._v("\n 무제한 듣기 학습\n ")])],1)]),i("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.STUDY},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.STUDY)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"border-ede thin-l"},[i("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_sync))]),i("br"),i("b",{staticClass:"fs-title"},[t._v("전체 재학습")]),i("br"),i("br"),i("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"},domProps:{textContent:t._s(t.restudy_cnt_ment)}})],1)])],1)],1),i("v-card-actions",{staticClass:"text-center pos-abs bottom-0 width-100 align-start",staticStyle:{height:"28%"},attrs:{id:"dialog-new-actions"}},[i("v-row",{attrs:{dense:"","no-gutters":"",justify:"center"}},[i("v-col",{attrs:{cols:"4"}},[i("v-btn",{staticClass:"subtitle-1",attrs:{color:"success",rounded:"",block:"",depressed:"",large:"",height:"2.7rem !important",ripple:!1},on:{click:t.startRestudy}},[i("b",{staticClass:"fw-800"},[t._v("재학습 시작")])])],1)],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.restudy_false_dialog=!1}},model:{value:t.restudy_false_dialog,callback:function(e){t.restudy_false_dialog=e},expression:"restudy_false_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("span",{staticClass:"title"},[t._v("재학습 가능 횟수(3회)를 모두 학습하셨습니다.")])])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[i("v-col",{staticClass:"py-3",attrs:{cols:"12"}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.restudy_false_dialog=!1}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeMockExamConfirm},model:{value:t.mockexam_dialog,callback:function(e){t.mockexam_dialog=e},expression:"mockexam_dialog"}},[i("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[t.sel_mockexam?[t.sel_mockexam.schedule_id&&!t.sel_mockexam.new_mockexam?[i("b",[t._v("\n 듣기"+t._s(t.sel_mockexam.booktype&&31===+t.sel_mockexam.booktype?"평가를":"학습을")+"\n 시작하시겠습니까?\n ")])]:[t.sel_mockexam.new_mockexam?i("b",[t._v("\n "+t._s(t.sel_mockexam.cnttext)+"를 시작하시겠습니까?\n ")]):20==t.sel_mockexam.question_cnt?i("b",[t._v("듣기평가를 시작하시겠습니까?")]):i("b",[t._v("모의평가를 시작하시겠습니까?")])]]:t._e()],2)]),i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[t.sel_mockexam&&t.sel_mockexam.bookname?i("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.sel_mockexam.bookname)}}):t._e(),i("br"),t.sel_mockexam&&t.sel_mockexam.unit_name?i("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.sel_mockexam.unit_name)}}):t._e()])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[t.sel_mockexam?i("v-row",{attrs:{dense:""}},[t.sel_mockexam.schedule_id?[null===t.sel_mockexam.record_id?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("재평가")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]]:[null===t.sel_mockexam.record_id?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("재시험")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]]],2):t._e()],1)],1)],1),i("v-dialog",{attrs:{"content-class":"cover-dialog",transition:!1,persistent:""},on:{"click:outside":function(e){t.coverimg_dialog=!1}},model:{value:t.coverimg_dialog,callback:function(e){t.coverimg_dialog=e},expression:"coverimg_dialog"}},[i("v-card",{staticClass:"ma-auto"},[i("img",{staticStyle:{"max-height":"40vh",height:"40vh"},attrs:{src:t.coverimg_url}})])],1),t.$store.state.product_type==t.PRODUCT_FREE||t.is_story&&0===+t.$store.state.promotion_check?i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_free_dialog")}},model:{value:t.prevent_free_dialog,callback:function(e){t.prevent_free_dialog=e},expression:"prevent_free_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--mode title",class:[t.is_mobile?"py-3":"py-8"]},[t.is_grammar||t.is_ng_book?i("span",[t._v("\n 해당 유닛은 유료 결제 이후 학습 가능합니다.\n ")]):t.is_story?i("span",[t._v("\n 각 레벨의 첫 번째 교재만 체험 가능하며,\n "),i("br"),t._v("\n 유료결제 이후 모든 콘텐츠 사용 가능합니다.\n ")]):i("span",[t._v(" 체험판에서는 유닛 1만 학습 가능합니다. ")])])],1)],1):t._e(),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_advanced_dialog")}},model:{value:t.prevent_advanced_dialog,callback:function(e){t.prevent_advanced_dialog=e},expression:"prevent_advanced_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[t._v("올해 개정된 교육과정으로"),i("br"),t._v("조만간 업데이트 될\n 예정입니다.")])],1)],1),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("null_vma_dialog")}},model:{value:t.null_vma_dialog,callback:function(e){t.null_vma_dialog=e},expression:"null_vma_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[t._v("곧 서비스 업데이트 될 예정입니다.")])],1)],1),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:t.$store.state.a_info_dialog,callback:function(e){t.$set(t.$store.state,"a_info_dialog",e)},expression:"$store.state.a_info_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[i("v-icon",{staticStyle:{width:"1.1rem !important",height:"1.1rem !important","margin-top":"-0.2rem"},attrs:{color:"success"}},[t._v(t._s(t.mdi_information_outline))]),t._v(" "),i("span",{staticClass:"success--text"},[t._v("잠깐! 체험해보셨나요?")]),i("br"),i("div",{staticStyle:{width:"100%",height:"12px"}}),i("span",[t._v("핵심 영상강의, 필수 주요구문에서는")]),i("br"),i("span",{staticClass:"black--text"},[t._v("문법과 리딩 콘텐츠")]),i("span",[t._v("가 포함되어 있습니다.")])],1)],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeGomain}},[i("span",{staticClass:"title"},[t._v("종료")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeCancel}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"35em","max-width":"450px",transition:!1,persistent:""},model:{value:t.trial_guide_dialog,callback:function(e){t.trial_guide_dialog=e},expression:"trial_guide_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[i("v-row",[i("v-col",{staticClass:"title text-center px-0 pb-0 pt-2",attrs:{cols:"12"}},[i("h3",{staticClass:"success--text pb-3 mb-2",staticStyle:{"border-bottom":"1px dashed #d8d8d8","font-size":"1.2rem","font-weight":"800 !important"}},[t._v("\n "+t._s(t.trial_title)+"\n ")])]),i("v-col",{staticClass:"text-center grey--text",staticStyle:{"font-size":"1.2rem","line-height":"1.4","padding-top":"2rem","padding-bottom":"2rem"},attrs:{cols:"12"},domProps:{innerHTML:t._s(t.trial_html)}})],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t pa-0"},[i("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-btn",{staticStyle:{height:"calc(2.5 * (1rem + 2px) + 24px) !important","background-color":"#1bd05b","border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.trial_guide_dialog=!1,t.closeTrialGuide()}}},[i("span",{staticClass:"title white--text"},[t._v("확인")])])],1)],1)],1)],1)],1)],1)},Ci=[],$i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"book-list-latest"}},[s("div",{staticClass:"px-1"},[s("v-row",{staticClass:"border-ede thin-b mx-n1 min-h-40px",attrs:{id:"lastest-search-row",dense:"","no-gutters":""}},[s("v-col",{attrs:{sm:"4",lg:"3",md:"3",xs:"7","offset-sm":"5","offset-md":"6","offset-lg":"6","offset-xs":"0"}},[s("v-row",{staticClass:"pl-3 height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"pl-0 pr-2 py-0 date-col d-flex align-center justify-center",attrs:{cols:"6"}},[s("v-dialog",{ref:"dialogstartdate",attrs:{"return-value":t.startdate,transition:!1,width:"290px"},on:{"update:returnValue":function(e){t.startdate=e},"update:return-value":function(e){t.startdate=e}},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on;return[s("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.startdate,expression:"startdate"}],staticClass:"date-input width-100 py-0 px-1 text-center",attrs:{type:"text",readonly:!0},domProps:{value:t.startdate},on:{input:function(e){e.target.composing||(t.startdate=e.target.value)}}},i))]}}]),model:{value:t.startdate_modal,callback:function(e){t.startdate_modal=e},expression:"startdate_modal"}},[s("v-date-picker",{attrs:{scrollable:"","event-color":"success","header-color":"success","next-icon":t.mdi_chevron_right,"prev-icon":t.mdi_chevron_left,"title-date-format":t.titleDateForm},on:{"click:date":t.startdateClick},model:{value:t.startdate,callback:function(e){t.startdate=e},expression:"startdate"}},[s("v-spacer"),s("v-btn",{attrs:{large:"",block:"",text:"",color:"black",ripple:!1},on:{click:function(e){t.startdate_modal=!1}}},[s("b",[t._v("취소")])])],1)],1)],1),s("v-col",{staticClass:"pr-0 pl-2 before-from-to date-col pos-rel d-flex align-center justify-center",attrs:{cols:"6"}},[s("v-dialog",{ref:"dialogenddate",attrs:{"return-value":t.enddate,transition:!1,width:"290px"},on:{"update:returnValue":function(e){t.enddate=e},"update:return-value":function(e){t.enddate=e}},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on;return[s("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.enddate,expression:"enddate"}],staticClass:"date-input width-100 py-0 px-1 text-center",attrs:{type:"text",readonly:!0},domProps:{value:t.enddate},on:{input:function(e){e.target.composing||(t.enddate=e.target.value)}}},i))]}}]),model:{value:t.enddate_modal,callback:function(e){t.enddate_modal=e},expression:"enddate_modal"}},[s("v-date-picker",{attrs:{scrollable:"","event-color":"success","header-color":"success","next-icon":t.mdi_chevron_right,"prev-icon":t.mdi_chevron_left,"title-date-format":t.titleDateForm},on:{"click:date":t.enddateClick},model:{value:t.enddate,callback:function(e){t.enddate=e},expression:"enddate"}},[s("v-spacer"),s("v-btn",{attrs:{large:"",block:"",text:"",color:"black",ripple:!1},on:{click:function(e){t.enddate_modal=!1}}},[s("b",[t._v("취소")])])],1)],1)],1)],1)],1),s("v-col",{attrs:{sm:"3",lg:"3",md:"3",xs:"6"}},[s("v-row",{staticClass:"pr-3 pl-1 height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"date-col d-flex align-center justify-center",staticStyle:{"padding-right":"2px !important"},attrs:{cols:"6"}},[s("v-btn",{ref:"prev-m-btn",class:[-1==t.btnactive?"success":"grey lighten-1"],staticStyle:{"border-radius":"2px"},attrs:{block:"",color:"white--text",depressed:"",height:"2.2rem !important","max-height":"30",ripple:!1},on:{click:function(e){return t.setMonth(-1)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",{staticClass:"fs-1rem"},[t._v("지난달")])])],1),s("v-col",{staticClass:"pl-0 date-col d-flex align-center justify-center",attrs:{cols:"6"}},[s("v-btn",{ref:"this-m-btn",class:[0==t.btnactive?"success":"grey lighten-1"],staticStyle:{"border-radius":"2px"},attrs:{block:"",color:"white--text",depressed:"",height:"2.2rem !important","max-height":"30",ripple:!1},on:{click:function(e){return t.setMonth(0)},touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("b",{staticClass:"fs-1rem"},[t._v("이번달")])])],1)],1)],1)],1),s("v-row",{staticClass:"latest-scroll",attrs:{dense:""}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[s("v-list",{staticClass:"pa-0"},[s("v-list-item-group",[t._l(t.units,(function(e,i){return[e.type==t.MOCK_EXAM?[e.schedule_id&&"3"!=e.category&&"1"!=e.booktype?s("v-list-item",{key:i+"-booklistlatest-"+e.schedule_id+"-"+e.id+"-"+e.type+"-"+e.schedule_type+"-"+(0==+e.schedule_type?e.unit_id:1==+e.schedule_type_v?e.s_u_id:e.unit_seq),staticClass:"border-ede thin-b px-0 min-h-40px",attrs:{ripple:!1},on:{click:function(s){return t.confirmMockExamDialog(e)}}},[s("v-list-item-content",{staticClass:"py-0"},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center border-ede thin-r height-7vh min-h-40px"},[s("v-icon",{staticClass:"grey--text text--lighten-1"},[t._v(t._s(t.mdi_menu_right))])],1),s("v-col",{staticClass:"height-7vh min-h-40px"},[s("div",{staticClass:"type-span mx-1 text-center",class:t.setTypeCls(e.type,e.schedule_id,e.category,e.booktype)},[s("b",{domProps:{textContent:t._s(t.setTypeTxt(e))}})]),s("div",{staticClass:"unit-title d-flex height-100 align-center before-divider"},[t._v("\n "+t._s(t.setBookName(e))+"\n ")]),s("div",{staticClass:"unit-subtitle grey--text d-inline-block"},[t._v("\n "+t._s(t.setUnitName(e))+"\n ")])]),s("v-col",{staticClass:"height-7vh text-center min-h-40px"},[s("span",{staticClass:"date-span"},[t._v(t._s(t.setPostdate(e.postdate)))])])],1)],1)],1):s("v-list-item",{key:i+"-booklistlatest-"+e.type+"-"+e.id+"-"+e.mockexam_id+"-"+e.schedule_id+"-"+(e.lastdate?e.lastdate.replace(/[ |\-|\:]/g,""):""),staticClass:"border-ede thin-b px-0 min-h-40px",attrs:{ripple:!1},on:{click:function(s){return t.confirmMockExamDialog(e)}}},[s("v-list-item-content",{staticClass:"py-0"},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center border-ede thin-r height-7vh min-h-40px"},[s("v-icon",{staticClass:"grey--text text--lighten-1"},[t._v(t._s(t.mdi_menu_right))])],1),s("v-col",{staticClass:"height-7vh min-h-40px"},[s("div",{staticClass:"type-span mx-1 text-center",class:t.setTypeCls(e.type)},[s("b",{domProps:{textContent:t._s(t.setTypeTxt(e))}})]),s("div",{staticClass:"unit-title d-flex height-100 align-center before-divider"},[t._v("\n "+t._s(t.setBookName(e))+"\n ")]),s("div",{staticClass:"unit-subtitle grey--text d-inline-block",domProps:{textContent:t._s(t.setBookSubName(e))}})]),s("v-col",{staticClass:"height-7vh text-center min-h-40px"},[s("span",{staticClass:"date-span"},[t._v(t._s(t.setPostdate(e.postdate)))])])],1)],1)],1)]:[s("v-list-item",{key:i+"-booklistlatest-"+e.schedule_id+"-"+e.id+"-"+e.type+"-"+e.schedule_type+"-"+(0==+e.schedule_type?e.unit_id:1==+e.schedule_type_v?e.s_u_id:e.unit_seq),staticClass:"border-ede thin-b px-0 min-h-40px",attrs:{ripple:!1},on:{click:function(s){return t.confirmDialog(e)}}},[s("v-list-item-content",{staticClass:"py-0"},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center border-ede thin-r height-7vh min-h-40px"},[s("v-icon",{staticClass:"grey--text text--lighten-1"},[t._v(t._s(t.mdi_menu_right))])],1),s("v-col",{staticClass:"height-7vh min-h-40px"},[s("div",{staticClass:"type-span mx-1 text-center",class:t.setTypeCls(e.type)},[s("b",{domProps:{textContent:t._s(t.setTypeTxt(e))}})]),s("div",{staticClass:"unit-title d-flex height-100 align-center before-divider"},[t._v("\n "+t._s(t.setBookName(e))+"\n ")]),s("div",{staticClass:"unit-subtitle grey--text d-inline-block"},[t._v("\n "+t._s(50===+e.booktype?e.subtitle:t.setUnitName(e))+"\n ")]),s("div",{staticClass:"unit-subtitle danger--text d-inline-block",domProps:{textContent:t._s(0==+e.done?" - 학습중":"")}})]),s("v-col",{staticClass:"height-7vh text-center min-h-40px"},[s("span",{staticClass:"date-span"},[t._v(t._s(t.setPostdate(e.postdate)))])])],1)],1)],1)]]}))],2)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeLearningDialog},model:{value:t.learning_dialog,callback:function(e){t.learning_dialog=e},expression:"learning_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",{directives:[{name:"show",rawName:"v-show",value:[4,10,11,12].includes(t.learning_dialog_type),expression:"[4, 10, 11, 12].includes(learning_dialog_type)"}]},[t._v("이미 학습된 내용이 있습니다.")]),s("b",{directives:[{name:"show",rawName:"v-show",value:0==t.learning_dialog_type,expression:"learning_dialog_type == 0"}]},[t._v("학습을 시작하시겠습니까?")]),s("b",{directives:[{name:"show",rawName:"v-show",value:6==t.learning_dialog_type,expression:"learning_dialog_type == 6"}]},[t._v("이미 진행된 내용이 있습니다.")]),s("b",{directives:[{name:"show",rawName:"v-show",value:8==t.learning_dialog_type,expression:"learning_dialog_type == 8"}]},[t._v("성적표를 확인하시겠습니까?")]),s("b",{directives:[{name:"show",rawName:"v-show",value:13==t.learning_dialog_type,expression:"learning_dialog_type == 13"}]},[t._v("동화보기를 재학습하시겠습니까?")])])]),s("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[s("span",{staticClass:"grey--text",domProps:{innerHTML:t._s(t.setPopupInfo)}})])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[0==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[s("span",{staticClass:"title"},[t._v("학습하기")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:t._e(),2==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[s("span",{staticClass:"title"},[t._v("시험보기")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:4==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[s("span",{staticClass:"title"},[t._v("이어서 학습")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!0})}}},[s("span",{staticClass:"title"},[t._v("처음부터 학습")])])],1)]:6==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[s("span",{staticClass:"title"},[t._v("이어서 시험")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!0})}}},[s("span",{staticClass:"title"},[t._v("처음부터 시험")])])],1)]:8==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResult}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:10==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[s("span",{staticClass:"title"},[t._v("이어서 학습")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!0})}}},[s("span",{staticClass:"title"},[t._v("처음부터 학습")])])],1)]:11==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!1})}}},[s("span",{staticClass:"title"},[t._v("이어서 학습")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[s("span",{staticClass:"title"},[t._v("처음부터 학습")])])],1)]:12==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[s("span",{staticClass:"title"},[t._v("이어서 학습")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!0})}}},[s("span",{staticClass:"title"},[t._v("처음부터 학습")])])],1)]:13==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory({clear:!0,restudy:!0})}}},[s("span",{staticClass:"title"},[t._v("재학습")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:t._e()],2)],1)],1)],1),s("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeMockExamConfirm},model:{value:t.mockexam_dialog,callback:function(e){t.mockexam_dialog=e},expression:"mockexam_dialog"}},[s("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[s("v-row",[s("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("성적표를 확인하시겠습니까?")])])]),s("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[t.sel_mockexam&&t.sel_mockexam.bookname?s("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.sel_mockexam.bookname)}}):t._e(),s("br"),t.sel_mockexam&&t.sel_mockexam.unit_name?s("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.sel_mockexam.unit_name)}}):t._e()])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[s("span",{staticClass:"title"},[t._v("재평가")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"35em","max-width":"450px",transition:!1,persistent:""},model:{value:t.trial_guide_dialog,callback:function(e){t.trial_guide_dialog=e},expression:"trial_guide_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[s("v-row",[s("v-col",{staticClass:"title text-center px-0 pb-0 pt-2",attrs:{cols:"12"}},[s("h3",{staticClass:"success--text pb-3 mb-2",staticStyle:{"border-bottom":"1px dashed #d8d8d8","font-size":"1.2rem","font-weight":"800 !important"}},[t._v("\n "+t._s(t.trial_title)+"\n ")])]),s("v-col",{staticClass:"text-center grey--text",staticStyle:{"font-size":"1.2rem","line-height":"1.4","padding-top":"2rem","padding-bottom":"2rem"},attrs:{cols:"12"},domProps:{innerHTML:t._s(t.trial_html)}})],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t pa-0"},[s("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[s("v-btn",{staticStyle:{height:"calc(2.5 * (1rem + 2px) + 24px) !important","background-color":"#1bd05b","border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.trial_guide_dialog=!1}}},[s("span",{staticClass:"title white--text"},[t._v("확인")])])],1)],1)],1)],1)],1)],1)},Si=[],Ti={name:"book-list-latest",props:["type","query","setBookInfo","setBookInfoVMA","setBookInfoGRAMMAR","getLearningStatus","tab","updateSingleUnit","unitStatusChecker","updateTmpSelUpdate"],data(){return{STUDY:g["bb"],TEST:g["hb"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],MOCK_EXAM:g["G"],GRAMMAR_THEORY:g["u"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"],loading:!1,startdate_modal:!1,enddate_modal:!1,startdate:null,enddate:null,btnactive:1,units:[],sel_book:{},sel_unit:{},first:!0,learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,sel_mockexam:null,mockexam_dialog:!1,refresh:!1,is_mobile:!1,is_openbook:0,mdi_menu_right:Lt["N"],mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"],grammar_type:"",trial_guide_dialog:!1,trial_title:"심화 스토리북",trial_html:""}},watch:{getLearningStatus(t,e){if(!0===e&&!1===t)if(7==this.tab){if(this.sel_book&&this.sel_unit&&this.$store.state.is_learned){this.getList();let t=this.sel_unit.id;1==this.sel_book.schedule_type&&1==this.sel_book.schedule_type_v&&(t=this.sel_unit.s_u_id),this.updateSingleUnit(this.sel_book,this.sel_unit.id),this.$store.commit("setIsLearned",!1)}}else this.refresh=!0},tab(t,e){7==t&&this.refresh&&(this.refresh=!1,this.getList())},getMockexamrecordId(t,e){if(null!==t&&0!==t)for(let s=0;s\n ${this.sel_book.bookname}\n
${this.sel_book.subtitle}`:`${this.sel_book.schedule_name?this.sel_book.schedule_name:this.sel_book.bookname}
${this.sel_unit.name}`:""},getMockexamrecordId(){return this.$store.state.mockexamrecord_id}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0),this.is_openbook=this.$store.state.settings.is_openbook,this.enddate=this.formatDate(new Date);let t=new Date,e=t.getDate();t.setDate(e-6),this.startdate=this.formatDate(t),this.getList()},mounted(){this.setTableHeight(),window.addEventListener("resize",this.setTableHeight)},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},exitSound(){this.$store.dispatch("soundEffectPlay","exit")},setLearningDialog(t){console.log(t,"num"),this.learning_dialog=!0,this.learning_dialog_type=t},titleDateForm(t){let e=t.split("-");return`${e[0]}년 ${e[1]}월 ${e[2]}일`},startdateClick(t){this.$refs["dialogstartdate"].save(t),this.getList()},enddateClick(t){this.$refs["dialogenddate"].save(t),this.getList()},setMonth(t){let e=new Date,s=e.getFullYear(),i=e.getMonth(),o=new Date(s,i+t,1),a=new Date(s,i+t+1,0);this.startdate=this.formatDate(o),this.enddate=this.formatDate(a),this.btnactive=t,this.first&&(this.first=!1),this.getList()},formatDate(t){let e=new Date(t),s=""+(e.getMonth()+1),i=""+e.getDate(),o=e.getFullYear();return s.length<2&&(s="0"+s),i.length<2&&(i="0"+i),[o,s,i].join("-")},setBookName(t){return t.schedule_name?t.schedule_name:t.bookname},setBookSubName(t){let e="";return e=20==t.question_cnt?"듣기평가":45==t.question_cnt?"모의평가":"듣기평가","듣기평가"==e&&(e=`${+t.prev_cnt+1}차 ${t.regular_id?"오답":"정규"}평가`),e},setUnitName(t){let e=Number(t.schedule_type);return e?1==t.schedule_type_v?t.unitname:"Unit "+(1+Number(t.unit_seq)):t.unitname},setPostdate(t){if(t){let e=t.split(" ");return e=e[0].replace(/-/gi,"."),e}return""},getList(){if(!this.startdate||!this.enddate)return;let t=this.$store.getters.getCIdForRecord;this.units=[],this.$axios.get(`${g["w"]}/v2/schedule/${t}/user/${this.$store.state.uid}/from/${this.startdate}/to/${this.enddate}?type=${this.type}&newtab=true`).then(t=>{let e;if(200==t.status)e=t.data||[];else if(202==t.status)e=[];else{if(204!=t.status)return!1;e=[]}if(!Array.isArray(e)){let t=Object.keys(e).map((t,s)=>e[s]);e=t}if([54,98,150].includes(Number(this.$store.state.cid)))for(let s=0,i=e.length;s0||Number(e[s].study_modules)>0)&&(e[s].booktype_1=0,e[s].booktype_2=0,e[s].booktype=0));this.units=e})},setPseudoBook(t){let e=0,s=0;return t.booktype&&(e=Math.floor(Number(t.booktype)/10),s=Number(t.booktype)%10),{id:t.id,academy_id:t.academy_id,category:t.category,origin_bookname:t.bookname,bookname:this.setBookName(t),publisher:t.publisher,grade:t.grade,level:+t.level||null,postdate:null,publishdate:t.publishdate,total_cnt:t.total_cnt,unit_cnt:t.unit_cnt,subtitle:t.subtitle,schedule_id:t.schedule_id,books_id:t.books_id,tot_unit_cnt:null,complete_unit_cnt:null,schedule_name:t.schedule_name,study_modules:t.study_modules,test_modules:t.test_modules,v_mod:t.v_mod,m_mod:t.m_mod,a_mod:t.a_mod,img_use:t.img_use,auto_exam:t.auto_exam,schedule_type:t.schedule_type,schedule_type_v:t.schedule_type_v?t.schedule_type_v:0,type:t.type,sentence_cnt:t.sentence_cnt,dist_seq:t.dist_seq,bookmark:null,progress:null,disable:null,booktype:t.booktype,booktype_1:e,booktype_2:s,cover_path:t.cover_path}},setPseudoUnit(t){console.log("setPseudoUnit",t,this.sel_book);const e=t.type,s=t.done_cnt,i=t.unit_record_id,o=t.done,a=t.random_sentences_ids;let n={id:0==Number(t.schedule_type)||1==Number(t.schedule_type_v)?Number(t.unit_id):Number(t.unit_seq)+1,book_id:t.books_id,origin_level:t.origin_level||null,s_u_id:t.s_u_id?t.s_u_id:0,seq:Number(t.unit_seq),name:this.setUnitName(t),sentences_cnt:Number(t.sentences_cnt),words_cnt:Number(t.words_cnt),schedule_id:t.schedule_id,test_cnt:e===g["hb"]?s:null,study_cnt:e===g["bb"]?s:null,voca_cnt:e===g["pb"]?s:null,major_cnt:[g["B"],g["sb"]].includes(e)?s:null,advanced_cnt:[g["a"],g["qb"]].includes(e)?s:null,story_v_cnt:e===g["ab"]?s:null,story_m_cnt:e===g["Z"]?s:null,story_a_cnt:e===g["W"]?s:null,test_pk:e===g["hb"]?i:null,study_pk:e===g["bb"]?i:null,voca_pk:e===g["pb"]?i:null,major_pk:[g["B"],g["sb"]].includes(e)?i:null,advanced_pk:[g["a"],g["qb"]].includes(e)?i:null,story_v_pk:e===g["ab"]?i:null,story_m_pk:e===g["Z"]?i:null,story_a_pk:e===g["W"]?i:null,test_done_modules:e===g["hb"]?t.done_modules:null,study_done_modules:e===g["bb"]?t.done_modules:null,voca_done_modules:e===g["pb"]?t.done_mod:null,major_done_modules:[g["B"],g["sb"]].includes(e)?t.done_mod:null,advanced_done_modules:[g["a"],g["qb"]].includes(e)?t.done_mod:null,story_v_done_modules:e===g["ab"]?t.done_mod:null,story_m_done_modules:e===g["Z"]?t.done_mod:null,story_a_done_modules:e===g["W"]?t.done_mod:null,test_done:e===g["hb"]?o:null,study_done:e===g["bb"]?o:null,voca_done:e===g["pb"]?o:null,major_done:[g["B"],g["sb"]].includes(e)?o:null,advanced_done:[g["a"],g["qb"]].includes(e)?o:null,story_v_done:e===g["ab"]?o:null,story_m_done:e===g["Z"]?o:null,story_a_done:e===g["W"]?o:null,test_random_sentences_ids:e===g["hb"]?a:null,study_random_sentences_ids:e===g["bb"]?a:null,voca_random_sentences_ids:e===g["pb"]?a:null,major_random_sentences_ids:[g["B"],g["sb"]].includes(e)?a:null,advanced_random_sentences_ids:[g["a"],g["qb"]].includes(e)?a:null};return isNaN(n.sentences_cnt)&&(n.sentences_cnt=Number(t.sentence_cnt)),n},checkStatus(t,e){let s;if(console.log("checkStatus",t,e),1==+t.schedule_type)if(1==t.schedule_type_v)switch(t.booktype_1){case g["h"]:e.voca_status=this.unitStatusChecker(e,g["pb"]),e.study_status=this.unitStatusChecker(e,g["bb"]),e.test_status=this.unitStatusChecker(e,g["hb"]),t.type==g["pb"]&&(s=e.voca_status),t.type==g["bb"]&&(s=e.study_status),t.type==g["hb"]&&(s=e.test_status);break;case g["e"]:e.voca_status=this.unitStatusChecker(e,g["pb"]),e.major_status=this.unitStatusChecker(e,g["B"]),e.advanced_status=this.unitStatusChecker(e,g["a"]),t.type==g["pb"]&&(s=e.voca_status),t.type==g["B"]&&(s=e.major_status),t.type==g["a"]&&(s=e.advanced_status);break;case g["j"]:break;case g["g"]:e.voca_status=this.unitStatusChecker(e,g["pb"]),e.study_status=this.unitStatusChecker(e,g["bb"]),3===+t.category&&(e.test_status=this.unitStatusChecker(e,g["hb"])),t.type==g["pb"]&&(s=e.voca_status),t.type==g["bb"]&&(s=e.study_status),t.type==g["hb"]&&3===+t.category&&(s=e.test_status);break;default:break}else switch(t.booktype_1){case g["j"]:e.major_status=this.unitStatusChecker(e,g["sb"]),e.advanced_status=this.unitStatusChecker(e,g["qb"]),t.type==g["sb"]&&(s=e.major_status),t.type==g["qb"]&&(s=e.advanced_status);break;default:e.study_status=this.unitStatusChecker(e,g["bb"]),e.test_status=this.unitStatusChecker(e,g["hb"]),t.type==g["bb"]&&(s=e.study_status),t.type==g["hb"]&&(s=e.test_status);break}else switch(t.booktype_1){case g["h"]:e.voca_status=this.unitStatusChecker(e,g["pb"]),e.study_status=this.unitStatusChecker(e,g["bb"]),e.test_status=this.unitStatusChecker(e,g["hb"]),t.type==g["pb"]&&(s=e.voca_status),t.type==g["bb"]&&(s=e.study_status),t.type==g["hb"]&&(s=e.test_status);break;case g["e"]:e.voca_status=this.unitStatusChecker(e,g["pb"]),e.major_status=this.unitStatusChecker(e,g["B"]),e.advanced_status=this.unitStatusChecker(e,g["a"]),t.type==g["pb"]&&(s=e.voca_status),t.type==g["B"]&&(s=e.major_status),t.type==g["a"]&&(s=e.advanced_status);break;case g["j"]:e.major_status=this.unitStatusChecker(e,g["sb"]),e.advanced_status=this.unitStatusChecker(e,g["qb"]),t.type==g["sb"]&&(s=e.major_status),t.type==g["qb"]&&(s=e.advanced_status);break;case g["g"]:e.voca_status=this.unitStatusChecker(e,g["pb"]),e.study_status=this.unitStatusChecker(e,g["bb"]),3===+t.category&&(e.test_status=this.unitStatusChecker(e,g["hb"])),t.type==g["pb"]&&(s=e.voca_status),t.type==g["bb"]&&(s=e.study_status),t.type==g["hb"]&&3===+t.category&&(s=e.test_status);break;case g["f"]:e.theory_status=this.unitStatusChecker(e,g["u"]),e.basics_status=this.unitStatusChecker(e,g["s"]),e.deep_status=this.unitStatusChecker(e,g["t"]),t.type==g["u"]&&(s=e.theory_status),t.type==g["s"]&&(s=e.basics_status),t.type==g["t"]&&(s=e.deep_status);break;case g["i"]:e.story_v_status=this.unitStatusChecker(e,g["ab"]),e.story_m_status=this.unitStatusChecker(e,g["Z"]),e.story_a_status=this.unitStatusChecker(e,g["W"]),t.type==g["ab"]&&(s=e.story_v_status),t.type==g["Z"]&&(s=e.story_m_status),t.type==g["W"]&&(s=e.story_a_status);break;default:break}return{book:t,unit:e,status:s}},setBookUnitData(t){console.log(t);let e=this.setPseudoBook(t),s=this.setPseudoUnit(t),i=!1;if(1==+e.schedule_type)if(1==e.schedule_type_v&&e.booktype_1!==g["j"])i="*";else switch(e.booktype_1){case g["j"]:e.type==g["sb"]&&(i=g["qb"]);break;default:e.type==g["bb"]&&(i=g["hb"]);break}else switch(e.booktype_1){case g["h"]:e.type==g["pb"]&&(i=g["bb"]),e.type==g["bb"]&&(i=g["hb"]);break;case g["e"]:e.type==g["pb"]&&(i=g["B"]),e.type==g["B"]&&(i=g["a"]);break;case g["j"]:e.type==g["sb"]&&(i=g["qb"]);break;case g["g"]:e.type==g["pb"]&&(i=g["bb"]);break;case g["f"]:e.type==g["u"]&&(i=g["u"]),e.type==g["s"]&&(i=g["s"]),e.type==g["t"]&&(i=g["t"]);break;default:break}return new Promise((o,a)=>{if(i){let a,n=t.book_id?t.book_id:t.id;a=0==+t.schedule_type?+t.unit_id:+t.unit_seq,this.$axios.get(`${g["w"]}/v2/schedule/${this.$store.state.cid}/user/${this.$store.state.uid}/getafterstatus?sid=${t.schedule_id}&bid=${n}&upk=${a}&st=${t.schedule_type}&stv=${t.schedule_type_v}&type=${i}`).then(t=>{if(200==t.status){let i=t.data;const{id:a,type:n,done:r,done_mod:l,done_modules:c,done_cnt:d}=i,h=(t,e,s)=>{t[e+"_pk"]=a,t[e+"_done_modules"]="mod"===s?l:c,t[e+"_done"]=r,t[e+"_cnt"]=d};if(1==+e.schedule_type)if(1==e.schedule_type_v&&e.booktype_1!=g["j"])switch(e.booktype_1){case g["h"]:e.type==g["bb"]?h(s,"study","modules"):e.type==g["hb"]&&h(s,"test","modules");break;case g["e"]:e.type==g["B"]?h(s,"major","mod"):e.type==g["a"]&&h(s,"advanced","mod");break;case g["g"]:console.log(e),e.type==g["pb"]?h(s,"voca","mod"):e.type==g["bb"]?h(s,"study","modules"):e.type==g["hb"]&&3===+e.category&&h(s,"test","modules");break;default:}else switch(e.booktype_1){case g["j"]:n==g["qb"]&&h(s,"advanced","mod");break;default:n==g["hb"]&&h(s,"test","modules");break}else switch(e.booktype_1){case g["h"]:n==g["bb"]?h(s,"study","modules"):n==g["hb"]&&h(s,"test","modules");break;case g["e"]:n==g["B"]?h(s,"major","mod"):n==g["a"]&&h(s,"advanced","mod");break;case g["j"]:n==g["qb"]&&h(s,"advanced","mod");break;case g["f"]:this.grammar_type=e.type,n==g["u"]?h(s,"grammar_theory","mod"):n==g["s"]?h(s,"grammar_basics","mod"):n==g["t"]&&h(s,"grammar_deep","mod");break;default:}let u=this.checkStatus(e,s);this.sel_book=u.book,this.sel_unit=u.unit,o(u.status)}else{let t=this.checkStatus(e,s);this.sel_book=t.book,this.sel_unit=t.unit,o(t.status)}}).catch(t=>{window.console.log(t)})}else{let t=this.checkStatus(e,s);this.sel_book=t.book,this.sel_unit=t.unit,o(t.status)}})},confirmDialog(t){this.setBookUnitData(t).then(t=>{console.log(t,this.sel_book,this.sel_unit);const{type:e,booktype:s,category:i}=this.sel_book;if([g["bb"],g["hb"]].includes(e)){let o=0;switch(t){case 1:case 2:o=e===g["bb"]?4:6,this.exitSound(),this.setLearningDialog(o);break;case 3:this.clickSound(),this.setLearningDialog(8);break;default:o=e===g["bb"]?0:31===+s&&1===+i?8:2,this.clickSound(),this.setLearningDialog(o);break}}else if([g["pb"],g["B"],g["a"],g["sb"],g["qb"]].includes(e))switch(this.learning_dialog_vma=e,t){case 1:case 2:this.exitSound(),this.setLearningDialog(10);break;case 3:this.clickSound(),this.setLearningDialog(8);break;default:this.clickSound(),this.setLearningDialog(0);break}else if([g["u"],g["s"],g["t"]].includes(e))switch(t){case 1:case 2:this.exitSound(),this.setLearningDialog(11);break;case 3:this.clickSound(),this.setLearningDialog(8);break;default:this.clickSound(),this.setLearningDialog(0);break}else if([g["ab"],g["Z"],g["W"]].includes(e))switch(this.learning_dialog_vma=e,console.log(t),t){case 1:case 2:{const t=e===g["ab"]?13:12;this.exitSound(),this.setLearningDialog(t);break}case 3:{const t=e===g["ab"]?13:8;this.clickSound(),this.setLearningDialog(t);break}default:this.clickSound(),this.setLearningDialog(0);break}})},getMockExamUnitSingle(t){return new Promise((e,s)=>{this.$axios.get(`${g["w"]}/mockexam/book/${t}`).then(t=>{200==t.status?e(t.data):s(!1)}).catch(t=>{window.console.err(t),s(!1)})})},confirmMockExamDialog(t){this.clickSound();let e=!1;"3"==t.category&&"1"==t.booktype&&"0"==t.unit_cnt&&(e=!0),t.mockexam_id&&t.question_cnt?(this.sel_mockexam={bookname:t.bookname,books_id:t.books_id,id:t.mockexam_id,postdate:t.postdate,question_cnt:t.question_cnt,record_id:t.id,time:t.exam_time,try_cnt:t.try_cnt,question_seq:"0"==t.is_regular?JSON.parse(t.question_seq):null,is_regular:t.is_regular,new_mockexam:e},e&&(this.sel_mockexam.cnttext=`${Number(t.prev_cnt)+1}차 ${"0"==t.is_regular?"오답":"정규"}평가`),e&&Number(t.schedule_id)>0&&(this.sel_mockexam.schedule_id=t.schedule_id),t.regular_id&&Number(t.regular_id)>0&&(this.sel_mockexam.regular_id=t.regular_id),this.mockexam_dialog=!0):this.getMockExamUnitSingle(t.books_id).then(s=>{if(s){let i={bookname:t.schedule_name?t.schedule_name:t.bookname,books_id:s.books_id,id:s.id,question_cnt:s.question_cnt,postdate:t.postdate,time:s.time,try_cnt:t.done_cnt,unit_id:t.unit_id?+t.unit_id:null,s_u_id:t.s_u_id?+t.s_u_id:null,schedule_id:t.schedule_id,unit_name:t.unitname,ur_id:t.unit_record_id,schedule_type:t.schedule_type,record_id:t.mock_record_id,question_seq:"0"==t.is_regular?JSON.parse(t.question_seq):null,is_regular:t.is_regular,new_mockexam:e};t.regular_id&&Number(t.regular_id)>0&&(i.regular_id=t.regular_id),e&&(i.cnttext=`${Number(t.prev_cnt)+1}차 ${"0"==t.is_regular?"오답":"정규"}평가`),1==i.schedule_type?(i.unit_seq=t.s_u_mode&&t.s_u_mode.length>1?+t.s_u_mode.replace(/[^0-9]/g,""):null,i.type_v_seq=t.seq?+t.seq:null):(i.unit_seq=t.seq?+t.seq:null,null===i.unit_seq&&(i.unit_seq=t.unit_seq?+t.unit_seq:null)),this.sel_mockexam=i,this.mockexam_dialog=!0}})},closeMockExamConfirm(){this.sel_mockexam=null,this.mockexam_dialog=!1,this.loading=!1},goMockExam(t){!this.loading&&this.sel_mockexam&&(this.loading=!0,t?(this.$store.commit("setMockExamResultId",this.sel_mockexam.record_id),this.$store.commit("setMockExam",this.sel_mockexam)):(this.$store.commit("setIsMockExam",!0),this.$store.commit("setMockExam",this.sel_mockexam)),this.$store.commit("setProcessType",g["G"]),this.$store.commit("setLearningStatus",!0),this.closeMockExamConfirm())},goStudy(t){if(!this.sel_unit)return!1;this.updateTmpSelUpdate(this.sel_book,this.sel_unit),this.setBookInfo(this.sel_book,this.sel_unit,g["bb"],t.clear,this.closeLearningDialog)},goTest(t){if(!this.sel_unit)return!1;1==Number(this.sel_book.schedule_type)&&1==this.sel_book.schedule_type_v&&this.sel_unit.s_u_id>0?(this.updateTmpSelUpdate(this.sel_book,this.sel_unit),this.setBookInfo(this.sel_book,this.sel_unit,g["hb"],t.clear,this.closeLearningDialog)):this.$axios.get(`${g["w"]}/schedule/getstudypk/${this.$store.state.uid}/${this.sel_book.schedule_id}/${this.sel_book.id}/${this.sel_book.schedule_type}/${0==Number(this.sel_book.schedule_type)?this.sel_unit.id:this.sel_unit.seq}`).then(e=>{200==e.status?(this.sel_unit.study_pk=e.data,this.updateTmpSelUpdate(this.sel_book,this.sel_unit),this.setBookInfo(this.sel_book,this.sel_unit,g["hb"],t.clear,this.closeLearningDialog)):(window.console.log("getStudyPk 204"),this.setBookInfo(this.sel_book,this.sel_unit,g["hb"],t.clear,this.closeLearningDialog))})},goStudyVMA(t){if(console.log(this.sel_unit,this.learning_dialog_vma),!this.sel_unit||!this.learning_dialog_vma)return!1;this.updateTmpSelUpdate(this.sel_book,this.sel_unit),this.setBookInfoVMA(this.sel_book,this.sel_unit,this.learning_dialog_vma,t.clear,this.closeLearningDialog)},goStudyGRAMMAR(t){this.updateTmpSelUpdate(this.sel_book,this.sel_unit),this.setBookInfoGRAMMAR(this.sel_book,this.sel_unit,this.grammar_type,t.clear,this.closeLearningDialog)},goStory(t){const e=this.$store.state.product_type;return"F"===e&&t.restudy&&this.$store.state.uclass==g["kb"]?(this.learning_dialog=!1,this.trial_html='무료체험은 1회 학습만 가능합니다.
\n
다른 레벨의 샘플 교재를
즉시 체험해보세요.
',void(this.trial_guide_dialog=!0)):(console.log(this.sel_book,this.sel_unit,this.learning_dialog_vma,t),!(!this.sel_unit||!this.learning_dialog_vma)&&(this.$store.commit("nextDisabled",!1),void this.setBookInfoVMA(this.sel_book,this.sel_unit,this.learning_dialog_vma,t.clear,this.closeLearningDialog)))},goResult(){if(!this.sel_unit)return!1;let t=this.sel_book.type+g["R"];this.updateTmpSelUpdate(this.sel_book,this.sel_unit),this.setBookInfo(this.sel_book,this.sel_unit,t,!1,this.closeLearningDialog)},closeLearningDialog(){this.learning_dialog=!1},setTypeCls(t,e,s,i){let o;switch(t){case g["bb"]:case g["B"]:case g["sb"]:case g["s"]:case g["Z"]:o="success--text";break;case g["pb"]:case g["u"]:case g["ab"]:o="warning--text";break;case g["hb"]:case g["a"]:case g["qb"]:case g["t"]:case g["W"]:o="info2--text";break;case g["G"]:o=e&&"3"!=s&&"1"!=i?"info2--text":"success--text";break;default:break}return o},setTypeTxt(t){let e,s=0,i=t.category?Number(t.category):1;if(t.booktype&&(s=Math.floor(Number(t.booktype)/10)),t.type==g["G"])return t.schedule_id&&"3"!=i&&"1"!=t.booktype?"듣기":"평가";if(t.type==g["u"])return"이론";if([g["s"],g["Z"]].includes(t.type))return"기본";if([g["t"]].includes(t.type))return"심화";if(t.type==g["ab"])return"동화";if(t.type==g["W"])return"실전";if(1==+t.schedule_type)if(1==t.schedule_type_v)switch(s){case g["h"]:case g["g"]:t.type==g["pb"]?e="어휘":t.type==g["bb"]?e=4!=i||+t.words_cnt?[2,4].includes(i)?"본문":3==i||1==i?"지문":"문장":"학습":t.type==g["hb"]&&(e=4!=i||+t.words_cnt?"심화":"시험");break;case g["e"]:t.type==g["pb"]?e="어휘":t.type==g["B"]?e=3==i?"지문":"본문":t.type==g["a"]&&(e="심화");break;case g["j"]:t.type==g["sb"]?e="학습":t.type==g["qb"]&&(e="시험");break;default:}else switch(s){case g["j"]:t.type==g["sb"]?e="학습":t.type==g["qb"]&&(e="시험");break;default:t.type==g["bb"]?e="학습":t.type==g["hb"]&&(e="시험");break}else switch(s){case g["h"]:case g["g"]:t.type==g["pb"]?e="어휘":t.type==g["bb"]?e=4!=i||+t.words_cnt?[2,4].includes(i)?"본문":3==i||1==i?"지문":"문장":"학습":t.type==g["hb"]&&(e=4!=i||+t.words_cnt?"심화":"시험");break;case g["e"]:t.type==g["pb"]?e="어휘":t.type==g["B"]?e=3==i?"지문":"본문":t.type==g["a"]&&(e="심화");break;case g["j"]:t.type==g["sb"]?e="학습":t.type==g["qb"]&&(e="시험");break;default:}return e},setTableHeight(){const t=document.querySelector(".custom-tab-wrapper"),e=t.getBoundingClientRect().height,s=document.querySelector(".latest-scroll");s&&(s.style.height=40===e?"calc(78vh - 80px)":"64vh")}},beforeDestroy(){window.removeEventListener("resize",this.setTableHeight)},destroyed(){this.$destroy()}},Ai=Ti,Ii=(s("b1e7"),s("2e4b")),Di=s("2fa4"),Ri=Object(p["a"])(Ai,$i,Si,!1,null,null,null),Pi=Ri.exports;y()(Ri,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDatePicker:Ii["a"],VDialog:ct["a"],VIcon:jt["a"],VList:Ls["a"],VListItem:zs["a"],VListItemContent:Os["a"],VListItemGroup:js["a"],VRow:ht["a"],VSpacer:Di["a"]});var Mi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pos-abs-i width-100",class:[t.GRAMMAR_THEORY,t.GRAMMAR_BASICS,t.GRAMMAR_DEEP].includes(t.mode)?"bg-white":"",staticStyle:{"z-index":"1",height:"80vh"},style:{height:t.mode===t.STORY_V?"78vh":"80vh"},attrs:{id:"learning-abs"}},[[t.STUDY,t.TEST,t.VOCA,t.MAJOR,t.ADVANCED,t.EXAM,t.FLASHCARD,t.VOCA_MAJOR,t.VOCA_ADVANCED,t.SHADOW_READING,t.GRAMMAR_THEORY,t.GRAMMAR_BASICS,t.GRAMMAR_DEEP,t.STORY_V,t.STORY_M,t.STORY_A].includes(t.mode)?s("div",{staticClass:"pos-rel width-100",attrs:{id:"learning-wrapper"}},[s("div",{staticClass:"py-0 bg-white d-flex",class:t.check_pc+" "+t.mode,attrs:{id:"learning-flex"}},[t.mode===t.STUDY?s("study",{on:{setToast:t.setToast}}):t.mode===t.TEST?s("test",{on:{setToast:t.setToast}}):t.mode===t.EXAM?s("exam",{on:{setToast:t.setToast}}):t.mode===t.VOCA?s("voca",{on:{setToast:t.setToast}}):t.mode===t.MAJOR?s("major",{on:{setToast:t.setToast}}):t.mode===t.ADVANCED?s("advanced",{on:{setToast:t.setToast}}):t.mode===t.FLASHCARD?s("flash-card",{on:{setToast:t.setToast}}):t.mode===t.VOCA_MAJOR?s("voca-major",{on:{setToast:t.setToast}}):t.mode===t.VOCA_ADVANCED?s("voca-advanced",{on:{setToast:t.setToast}}):t.mode===t.SHADOW_READING?s("shadow-reading",{attrs:{bookmode:t.bookmode},on:{setToast:t.setToast}}):[t.GRAMMAR_THEORY,t.GRAMMAR_BASICS,t.GRAMMAR_DEEP].includes(t.mode)?s("grammar-theory",{on:{setToast:t.setToast}}):[t.STORY_V,t.STORY_M,t.STORY_A].includes(t.mode)?s("story-book",{on:{setToast:t.setToast}}):t._e()],1)]):t.mode===t.MOCK_EXAM?s("div",{staticClass:"width-100 height-100 pos-rel bg-white",attrs:{id:"mock-exam-wrapper"}},[s("mock-exam",{attrs:{updateSingleMockExamUnit:t.updateSingleMockExamUnit}})],1):s("div",{staticClass:"body-default width-100 pos-rel",attrs:{id:"learning-result-wrapper"}},[s("result",{attrs:{tab:t.tab,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,setDialogText:t.setDialogText,setLearningDialog:t.setLearningDialog,setDialogVMA:t.setDialogVMA}})],1)])},Ei=[],Bi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"study-index"}},[1==[t.MATCHING,t.DICTATION,t.POPQUIZ,t.WRITING].includes(t.getModule)&&t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),-1==t.getNextModuleIdx&&1==t.is_skip?s("div",{attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e(),s("v-stepper",{staticClass:"elevation-0",model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+i,class:{"cursor-pointer":t.getNextModuleIdx==e.idx},attrs:{complete:t.getModule>Number(e.idx),step:i+1,color:"success","complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{staticClass:"success--text",domProps:{textContent:t._s(e.name)}}):s("span",{domProps:{textContent:t._s(e.name)}})]),i0?s("timer"):t._e(),t.LISTENING==t.getModule&&t.$store.state.current_step>0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_left))])],1):t._e(),s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",id:"go-next-btn",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{staticStyle:{"font-size":"5.4rem !important",width:"5.4rem !important",height:"5.4rem !important"},attrs:{size:"5.4rem"}},[t._v(t._s(t.mdi_chevron_double_right))])],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name)}}),s("span",{directives:[{name:"show",rawName:"v-show",value:[t.MATCHING,t.DICTATION].includes(t.next_module_idx),expression:"[MATCHING, DICTATION].includes(next_module_idx)"}]},[t._v("으")]),t._v("로 넘어가시겠습니까?\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("아니오")])])],1)],1)],1)],1)],1)],1)},Ni=[],qi={name:"mixindefault",methods:{pressEnter:function(t){let e=this.$store.getters.getCurModule;if([g["vb"],g["M"],g["Q"],g["v"],g["o"],g["xb"]].includes(e)||"SA"==this.$store.state.grammar_type)return t.preventDefault(),!1;if(this.$store.state.process_next_disabled||this.$store.state.init_guide_dialog||this.$store.state.loading_percent>0)return void t.preventDefault();if(document.getElementsByClassName("v-overlay__scrim").length>0)return void t.preventDefault();let s=t.which||t.keyCode;13==s&&(this.isAssessment?this.content.isReview||this.data.next_disabled||(console.log("GRAMMAR ENTER"),this.$set(this.data,"check_answer",!0)):this.go("next"))}},mounted(){this.$nextTick(()=>{document.addEventListener("keyup",this.pressEnter)})},beforeDestroy(){document.removeEventListener("keyup",this.pressEnter)}},Li=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"listening-window in-study left-0 right-0 top-0 bottom-0",attrs:{id:"listening-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[t.$store.state.words.length>0?t._l(t.$store.state.words,(function(e,i){return s("v-window-item",{key:"listening-win-"+i,staticClass:"height-100",attrs:{value:i}},[s("word-sheet",{attrs:{row:e,idx:i,flashShow:t.flashShow,img:t.$store.state.voca_imgs[i]}})],1)})):t._e(),t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"listening-win-"+(t.$store.state.words.length+i),staticClass:"height-inherit",attrs:{value:t.$store.state.words.length+i}},[s("sentence-sheet",{key:"sentence-sheet-"+i,attrs:{row:e,flashShow:t.flashShow,font_level:t.font_level,show_eng:t.show_eng,show_kor:t.show_kor}})],1)}))],2)},zi=[],Oi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-sheet",{staticClass:"height-inherit sentence-sheet"},[s("v-row",{directives:[{name:"show",rawName:"v-show",value:t.flashShow,expression:"flashShow"}],staticClass:"height-inherit"},[s("v-col",{staticClass:"listening-col pt-0 pb-0 pos-rel",staticStyle:{"max-height":"100%"},attrs:{cols:"12"}},[s("div",{staticClass:"text-center listening-sentence-wrapper width-100 height-100 d-flex flex-column"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.show_eng,expression:"show_eng"}],staticClass:"listen-eng justify-center align-end",class:t.show_eng?"d-flex":"d-none"},[s("auto-text",{attrs:{maxFontSize:3.2*t.font_level,maxHeight:.28*t.$store.state.screen_height,src:t.row.sentence}},[t._v(t._s(t.row.sentence))])],1),s("div",{directives:[{name:"show",rawName:"v-show",value:t.show_eng&&t.show_kor,expression:"show_eng && show_kor"}],staticClass:"width-100 h-3vh"}),s("div",{directives:[{name:"show",rawName:"v-show",value:t.show_kor,expression:"show_kor"}],staticClass:"listen-kor grey--text"},[s("auto-text",{attrs:{maxFontSize:2.2*t.font_level,maxHeight:.26*t.$store.state.screen_height,src:t.row.mean}},[t._v(t._s(t.row.mean))])],1)])])],1)],1)},ji=[],Vi={name:"sentence-sheet",components:{AutoText:Xt},props:{flashShow:Boolean,row:Object,font_level:{type:Number,default:1},show_eng:{type:Boolean,default:!0},show_kor:{type:Boolean,default:!0}},data(){return{}},created(){},mounted(){},watch:{},computed:{getCurModule(){return this.$store.getters.getCurModule},getIsSynthesia(){return this.$store.getters.isSynthesia}},methods:{},beforeDestroy(){}},Fi=Vi,Gi=(s("5e95"),Object(p["a"])(Fi,Oi,ji,!1,null,null,null)),Wi=Gi.exports;y()(Gi,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"]});var Ui=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.idx==t.$store.state.current_step?s("v-sheet",{staticClass:"height-100 word-sheet"},[!1!==t.img&&t.flashShow?[s("v-row",{staticClass:"height-100 overflow-hidden"},[s("v-col",{staticClass:"pt-0 pb-0 pos-rel",attrs:{cols:"6",sm:"6",md:"6",lg:"6"}},[s("div",{staticClass:"word-wrapper width-100 pos-abs pos-left"},[s("div",{staticClass:"word-img",staticStyle:{"max-width":"70%",float:"right"}},[0==t.idx?s("img",{attrs:{src:t.img,width:"100%"},on:{load:t.initLoaded}}):s("img",{attrs:{src:t.img,width:"100%"}})])])]),s("v-col",{staticClass:"pt-0 pb-0 pos-rel",attrs:{cols:"6",sm:"6",md:"6",lg:"6"}},[s("div",{staticClass:"word-wrapper pos-right text-center pos-abs width-100"},[s("p",{staticClass:"q-e-fs"},[t._v(t._s(t.row.word))]),s("p",{staticClass:"a-k-fs grey--text"},[t._v(t._s(t.row.mean))])])])],1)]:[s("v-row",{staticClass:"height-100"},[s("v-col",{staticClass:"pt-0 pb-0 pos-rel",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"word-wrapper empty-img text-center pos-abs width-100"},[s("p",{staticClass:"q-e-fs"},[t._v(t._s(t.row.word))]),s("p",{staticClass:"a-k-fs grey--text"},[t._v(t._s(t.row.mean))])])])],1)]],2):t._e()},Hi=[],Ki={name:"word-sheet",props:{flashShow:Boolean,row:Object,img:[String,Boolean],idx:[String,Number]},components:{},methods:{initLoaded:function(){this.$store.commit("onLoading",!1)}},created(){}},Zi=Ki,Yi=(s("59ac"),Object(p["a"])(Zi,Ui,Hi,!1,null,null,null)),Ji=Yi.exports;y()(Yi,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"]});var Xi={name:"listening",components:{SentenceSheet:Wi,WordSheet:Ji},props:["font_level","show_eng","show_kor"],data(){return{}},created(){},mounted(){},watch:{},computed:{flashShow(){return this.$store.getters.getFlashShow}},methods:{}},Qi=Xi,to=(s("6dca"),Object(p["a"])(Qi,Li,zi,!1,null,null,null)),eo=to.exports;y()(to,{VWindow:ni["a"],VWindowItem:ri["a"]});var so=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"matching-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",class:t.isStoryBook?"storybook":"",staticStyle:{height:"calc(100% + 13vh)"},attrs:{id:"matching-wrapper",touchless:""},model:{value:t.curStep,callback:function(e){t.curStep=e},expression:"curStep"}},t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"matching-sentence-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.curStep&&t.isStoryBook&&e.img_load?s("v-sheet",{staticClass:"float-left d-flex align-start justify-center height-100",staticStyle:{width:"50%"}},[s("img",{staticStyle:{height:"calc(100% - 4vh)"},attrs:{rel:"preload",src:e.img_src}})]):t._e(),i==t.curStep?s("v-sheet",{staticClass:"matching-main height-100",class:t.isStoryBook&&e.img_load?"storybook-image-true":""},[s("v-row",[s("v-col",{staticClass:"pa-0 d-flex height-inherit",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{key:"at-"+i+"-1",attrs:{src:e.sentence,maxHeight:.29*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"height-100"},[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center",class:[t.$store.state.long_chips[i]?"d-block wb-all":"d-flex flex-row flex-wrap justify-center align-content-center wb-nm"],staticStyle:{"font-size":"inherit"},domProps:{innerHTML:t._s(t.$store.getters.getMatcingResultHtml)}}):s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center",class:[t.$store.state.long_chips[i]?"d-block wb-all":"d-flex flex-row flex-wrap justify-center align-content-center wb-nm"],staticStyle:{"font-size":"inherit"}},[t._l(t.$store.state.matching_data.selected_words,(function(e,i){return[t.is_ios?[i==t.$store.state.matching_data.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",on:{touchstart:function(s){return t.subSelection(s,e,i)}}},[t._v(t._s(t.padSelection(e))+"\n ")]):s("span",{key:"matching-select-"+i},[t._v(t._s(t.padSelection(e)))])]:[i==t.$store.state.matching_data.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",on:{click:function(s){return t.subSelection(s,e,i)}}},[t._v(t._s(t.padSelection(e))+"\n ")]):s("span",{key:"matching-select-"+i},[t._v(t._s(t.padSelection(e)))])]]}))],2)])])],1)],1),s("v-row",[s("v-col",{staticClass:"pa-0 d-flex height-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"chips-wrapper py-0 text-center pos-rel ma-auto width-auto height-100 max-w-100 d-flex align-center justify-center align-content-center flex-wrap"},[t.$store.state.ox_show?[s("auto-text",{key:"at-"+i+"-2",attrs:{src:e.mean,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.2}},[s("div",{staticClass:"d-flex flex-wrap justify-center align-center align-content-center grey--text width-100"},[s("span",[t._v(t._s(e.mean))])])])]:[t.$store.state.is_mobile?s("auto-text",{key:"at-"+i+"-3",attrs:{step:i,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:e.sentence,type:"chips",pa:.8,ma:.5,minWidth:4}},[t.is_ios?[t._l(t.$store.state.matching_data.choice_words[i],(function(e,o){return s("div",{key:"mat-div-"+o,on:{touchstart:function(s){return t.selectWord(s,e,o)}}},[s("v-chip",{key:"matching-choice-"+o,staticClass:"matching-select-btn text-center",class:[t.$store.state.matching_data.selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})),s("div",{key:"mat-div-"+t.$store.state.matching_data.choice_words[i].length,on:{touchstart:function(e){return t.subSelection(e,t.$store.state.matching_data.choice_words[i][t.$store.state.matching_data.choice_words[i].length-1],t.$store.state.matching_data.choice_words[i].length-1)}}},[s("v-chip",{key:"matching-choice-backspace-btn",staticClass:"matching-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],1)]:[t._l(t.$store.state.matching_data.choice_words[i],(function(e,o){return s("v-touch",{key:"matching-touch-"+o,on:{pressup:function(s){return t.selectWord(s,e,o)}}},[s("v-chip",{key:"matching-choice-"+o,staticClass:"matching-select-btn text-center",class:[t.$store.state.matching_data.selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})),s("v-touch",{key:"matching-touch-"+(t.$store.state.matching_data.choice_words[i].length-1),on:{pressup:function(e){return t.subSelection(e,t.$store.state.matching_data.choice_words[i][t.$store.state.matching_data.choice_words[i].length-1],t.$store.state.matching_data.choice_words[i].length-1)}}},[s("v-chip",{key:"matching-choice-backspace-btn",staticClass:"matching-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""},on:{click:function(e){return e.stopPropagation(),t.subSelection(e,t.$store.state.matching_data.choice_words[i][t.$store.state.matching_data.choice_words[i].length-1],t.$store.state.matching_data.choice_words[i].length-1)}}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],1)]],2):s("auto-text",{key:"at-"+i+"-3",attrs:{step:i,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:e.sentence,type:"chips",pa:.8,ma:.5,minWidth:4}},[t._l(t.$store.state.matching_data.choice_words[i],(function(e,o){return s("v-chip",{key:"matching-choice-"+o,staticClass:"matching-select-btn text-center",class:[t.$store.state.matching_data.selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},attrs:{color:"grey",outlined:""},on:{click:function(s){return t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])})),s("v-chip",{key:"matching-choice-backspace-btn",staticClass:"matching-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""},on:{click:function(e){return t.subSelection(e,t.$store.state.matching_data.choice_words[i][t.$store.state.matching_data.choice_words[i].length-1],t.$store.state.matching_data.choice_words[i].length-1)}}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],2)]],2)])],1)],1):t._e()],1)})),1)},io=[],oo={name:"matching",components:{AutoText:Xt},props:["use"],data(){return{EBOOK_CDN:g["p"],is_ios:!1,doc_bind:!1,backspacePressed:!1}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0)},mounted(){(!this.$store.state.is_mobile||this.$store.state.is_mobile&&void 0!=window.ExternalKeyboard&&window.ExternalKeyboard.isUsed)&&this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},computed:{curStep(){return this.$store.getters.getCurrentStep-1},isStoryBook(){return this.use&&"StoryBook"==this.use}},methods:{selectWord:function(t,e,s){if(this.$store.state.matching_data.selected_keys.includes(s))return!1;this.$store.dispatch("getSelectChips",{word:e,key:s})},subSelection:function(t,e,s){this.backspacePressed=!0,this.$store.commit("subMatchingSelect",{word:e,key:s}),setTimeout(()=>{this.backspacePressed=!1},150)},padSelection:function(t){let e=t.replace(/\s+/gi," ");return/[a-zA-Z0-9]/i.test(e.substr(-1))&&(e+=" "),e},pcKeydown:function(t){const e=t.which||t.keyCode;if(8==e){if(0===this.$store.state.matching_data.selected_words.length)return;this.backspacePressed=!0;const e=this.$store.state.matching_data.selected_words,s=e[e.length-1],i=e.length-1;this.subSelection(t,s,i),setTimeout(()=>{this.backspacePressed=!1},150)}else{if(13!=e)return t.preventDefault(),!1;{let t=document.getElementById("go-next-btn");t&&t.click()}}}},beforeDestroy(){this.$store.commit("destroyMatching"),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},ao=oo,no=(s("c819"),Object(p["a"])(ao,so,io,!1,null,null,null)),ro=no.exports;y()(no,{VChip:Me["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var lo=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"dictation-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"dictation-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"dictation-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"height-100"},[s("v-row",{staticClass:"dictation-ans",attrs:{dense:""}},[s("v-col",{staticClass:"pa-0 height-inherit d-flex col-padd",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{attrs:{src:e.sentence,maxHeight:.26*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"height-100"},[t.$store.getters.getIsScoring&&t.$store.state.ox_show?s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 d-flex flex-row flex-wrap justify-center align-content-center align-center",staticStyle:{"font-size":"inherit"},domProps:{innerHTML:t._s(t.$store.getters.getDictationResultHtml)}}):s("div",{staticClass:"answer-wrapper ma-auto py-0 width-auto height-inherit max-w-100 d-flex flex-row flex-wrap justify-center align-content-center align-center",attrs:{id:"dic-ans-"+i}},[t.is_ios?[t._l(t.$store.state.dictation_select,(function(e,i){return[s("span",{key:"dic-sel-"+i,class:{"cursor-pointer":t.$store.state.dictation_choice_idx.includes(i)},staticStyle:{"font-size":"inherit"},domProps:{textContent:t._s(t.$store.state.dictation_uppercase.includes(i)?e.toUpperCase():e)},on:{touchstart:function(s){return t.subSelection(s,e,i)}}})]}))]:[t._l(t.$store.state.dictation_select,(function(e,i){return[s("span",{key:"dic-sel-"+i,class:{"cursor-pointer":t.$store.state.dictation_choice_idx.includes(i)},staticStyle:{"font-size":"inherit"},domProps:{textContent:t._s(t.$store.state.dictation_uppercase.includes(i)?e.toUpperCase():e)},on:{click:function(s){return t.subSelection(s,e,i)}}})]}))]],2)])])],1)],1),s("v-row",{attrs:{dense:""}},[t.ADVANCED==t.$store.state.process_type?s("v-col",{staticClass:"pa-0 col-padd",attrs:{cols:"12"}},[s("auto-text",{attrs:{src:e.mean,maxHeight:.14*t.$store.state.screen_height,maxFontSize:2.2}},[s("div",{staticStyle:{"font-size":"inherit"}},[s("div",{staticClass:"text-center grey--text width-100 top-0"},[s("span",[t._v(t._s(e.mean))])])])])],1):s("v-col",{staticClass:"pa-0 col-padd",attrs:{cols:"12"}},[t.$store.getters.getIsScoring?s("auto-text",{attrs:{src:e.mean,maxHeight:.14*t.$store.state.screen_height,maxFontSize:2.2}},[t.$store.state.ox_show?s("div",{staticStyle:{"font-size":"inherit"}},[s("div",{staticClass:"text-center grey--text width-100 top-0"},[s("span",[t._v(t._s(e.mean))])])]):t._e()]):t._e()],1)],1)],1):t._e()],1)})),1)},co=[],ho={name:"dictation",components:{AutoText:Xt},data(){return{ADVANCED:g["a"],is_ios:!1}},methods:{subSelection:function(t,e,s){this.$store.commit("subDictationSelect",{char:e,key:s})}},beforeDestroy(){this.$store.commit("destroyDictation")},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0)}},uo=ho,po=(s("96cc"),Object(p["a"])(uo,lo,co,!1,null,null,null)),_o=po.exports;y()(po,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var mo=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{key:"popquiz-wrapper-"+t.wrap_key,staticClass:"popquiz-window in-study",attrs:{id:"popquiz-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.storyReady?t.$store.state.words:t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"popquiz-win-"+i,attrs:{value:i}},[5===+t.$store.state.book.booktype_1?s("div",{staticClass:"pos-abs d-flex cursor-pointer",attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("A")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("A")])]):t._e(),i==t.$store.state.current_step?s("v-sheet",[s("v-row",[s("v-col",{staticClass:"py-0",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[5===+t.$store.state.book.booktype_1?s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+t.font_head+"vw; margin-bottom: 3vh;"},[s("span",{staticClass:"font-weight-bold"},[t._v("\n 다음 단어에 알맞은 뜻을 고르세요.\n ")])]):s("div",{staticClass:"question-wrapper text-center d-flex align-center justify-center overflow-hidden"},[s("auto-text",{attrs:{maxFontSize:2.4,maxHeight:.19*t.$store.state.screen_height,src:t.setQuestion(e,t.$store.state.popquiz_choices[0])}},[s("span",{staticClass:"font-weight-bold grey--text text--darken-2",domProps:{textContent:t._s(t.setQuestion(e,t.$store.state.popquiz_choices[0]))}})])],1),5===+t.$store.state.book.booktype_1?s("div",{staticClass:"text-center d-flex justify-center align-center dash-passage mb-0",staticStyle:{"min-height":"22vh !important"},style:"font-size:"+t.font_main+"vw",domProps:{innerHTML:t._s(t.setQuestion(e,t.$store.state.popquiz_choices[0]))}}):t._e(),5===+t.$store.state.book.booktype_1?s("div",{staticClass:"selection-wrapper",staticStyle:{height:"38vh"},style:"font-size:"+t.font_main+"vw"},[t.$store.state.popquiz_choices&&t.$store.state.popquiz_choices.length>0?s("v-row",{staticClass:"padder height-100 align-center",staticStyle:{"align-content":"center"}},[t.is_ios?t._l(t.$store.state.popquiz_choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"1rem",height:"40%"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left justify-center mb-0",class:t.setClass(i),staticStyle:{"font-size":"inherit",height:"100% !important"},attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"idx-content d-inline-block pl-0"},[s("b",{domProps:{innerHTML:t._s(e)}})])])],1)})):t._l(t.$store.state.popquiz_choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"1rem",height:"40%"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left mb-0 justify-center",class:t.setClass(i),staticStyle:{"font-size":"inherit",height:"100% !important"},attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"idx-content d-inline-block pl-0"},[s("b",{domProps:{innerHTML:t._s(e)}})])])],1)}))],2):t._e()],1):s("div",{staticClass:"selection-wrapper"},[t.$store.state.popquiz_choices&&t.$store.state.popquiz_choices.length>0?s("div",{staticClass:"padder"},[t.is_ios?[t._l(t.$store.state.popquiz_choices,(function(e,i){return[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:2,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])]}))]:[t._l(t.$store.state.popquiz_choices,(function(e,i){return[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.4,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])]}))]],2):t._e()])])],1)],1):t._e()],1)})),1)},go=[];const bo=.6,vo=1.4,fo=1.8,wo=2,yo=1.6,xo=1.8;var ko={name:"popquiz",components:{AutoText:Xt},data(){return{wrap_key:0,is_ios:!1,unwatch_once:null,doc_bind:!1,storyReady:!1,font_level:1,font_head:fo,font_std:wo,font_main:yo,font_foot:xo}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0);const t=this.$store.state;t.book&&50!==+t.booktype&&t.current_tts_audio&&(t.current_tts_audio.onloadeddata=()=>{})},mounted(){this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.sentences"(t){5!==this.$store.state.book.booktype_1||this.storyReady||t&&t.length>0&&this.$store.state.words.length>0&&(this.storyReady=!0)},"$store.state.words"(t){5!==this.$store.state.book.booktype_1||this.storyReady||t&&t.length>0&&this.$store.state.sentences.length>0&&(this.storyReady=!0)},storyReady(t){console.log("storyReady:",t),this.wrap_key++},font_level(t,e){this.font_head=fo*t,this.font_std=wo*t,this.font_main=yo*t,this.font_foot=xo*t}},computed:{setClass(){return t=>{let e="";const s=this.$store.getters.getPopquizClass(t);if(this.$store.getters.getIsScoring){const t={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=t[s]||"grey--text",e}{const t={1:"select",2:"select",3:"select",4:"grey--text"};return e=t[s]||"grey--text",e}}},setIcon(){return t=>this.$store.getters.getIsScoring?this.$store.getters.getPopquizClass(t):10}},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},selectPopquiz:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.commit("getPopquizSelect",{key:e})},setQuestion:function(t,e){return e?e.match(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/g)?this.storyReady?t.word:t.sentence:t.mean:""},pcKeydown(t){const e=t.which||t.keyCode;49<=e&&52>=e&&this.selectPopquiz(null,e-49)},setSize:function(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.font_level;if(t<0&&bo>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&vo<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.font_level=s,this.setToast(e)}},beforeDestroy(){this.$store.commit("destroyPopquiz"),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},Co=ko,$o=(s("7bd3"),Object(p["a"])(Co,mo,go,!1,null,null,null)),So=$o.exports;y()($o,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]}),fi()($o,{Ripple:wi["b"]});var To=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"writing-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[t.$store.state.settings.is_usinghint?s("div",{attrs:{id:"hint-btn"}},[s("button",{attrs:{type:"button",disabled:t.disableHint},on:{click:t.getHint}},[s("div",{staticClass:"btn-responsive",class:[t.disableHint?"no":"yes"]})])]):t._e(),t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"writing-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"writing-main height-100"},[s("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"py-0 px-col d-flex justify-center align-center text-center",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{attrs:{src:e.mean,maxHeight:.2*t.$store.state.screen_height,maxFontSize:2.2}},[s("span",{staticClass:"font-weight-bold grey--text text--darken-2"},[t._v(t._s(e.mean))])])],1)],1),s("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"py-0 px-col d-flex",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{attrs:{src:e.sentence,maxHeight:.2*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"height-100"},[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"answer-wrapper ma-auto width-auto height-100 max-w-100 align-center",class:[t.$store.state.long_chips[i]?"d-block wb-all":"d-flex flex-row flex-wrap justify-center align-content-center wb-nm"],staticStyle:{"font-size":"inherit"},domProps:{innerHTML:t._s(t.$store.getters.getWritingResultHtml)}}):s("div",{staticClass:"answer-wrapper ma-auto width-auto height-100 max-w-100 align-center",class:[t.$store.state.long_chips[i]?"d-block wb-all":"d-flex flex-row flex-wrap justify-center align-content-center wb-nm"],staticStyle:{"font-size":"inherit"}},[t._l(t.$store.state.writing_data.selected_words,(function(e,i){return[t.is_ios?[i==t.$store.state.writing_data.selected_words.length-1?s("span",{key:"writing-select-"+i,staticClass:"cursor-pointer",class:t.getClass(i),on:{touchstart:function(s){return t.subSelection(s,e,i)}}},[t._v(t._s(t.padSelection(e))+"\n ")]):s("span",{key:"writing-select-"+i,class:t.getClass(i)},[t._v(t._s(t.padSelection(e)))])]:[i==t.$store.state.writing_data.selected_words.length-1?s("span",{key:"writing-select-"+i,staticClass:"cursor-pointer",class:t.getClass(i),on:{click:function(s){return t.subSelection(s,e,i)}}},[t._v(t._s(t.padSelection(e))+"\n ")]):s("span",{key:"writing-select-"+i,class:t.getClass(i)},[t._v(t._s(t.padSelection(e)))])]]}))],2)])])],1)],1),s("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"pa-0 d-flex",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"chips-wrapper py-0 text-center ma-auto width-auto pos-rel height-100 max-w-100 d-flex align-center justify-center align-content-center flex-wrap"},[t.$store.state.ox_show?t._e():[t.$store.state.is_mobile?s("auto-text",{attrs:{step:i,maxHeight:.3*t.$store.state.screen_height,maxFontSize:2.3,src:e.sentence,type:"chips",pa:.8,ma:.5,minWidth:4}},[t.is_ios?[t._l(t.$store.state.writing_data.choice_words[i],(function(e,o){return s("div",{key:"tmp12-"+o,on:{touchstart:function(s){return t.selectWord(s,e,o)}}},[s("v-chip",{key:"writing-choice-"+o,staticClass:"writing-select-btn text-center",class:[t.$store.state.writing_data.selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})),s("div",{key:"mat-div-"+t.$store.state.writing_data.choice_words[i].length,on:{touchstart:function(e){return t.subSelection(e,t.$store.state.writing_data.choice_words[i][t.$store.state.writing_data.choice_words[i].length-1],t.$store.state.writing_data.choice_words[i].length-1)}}},[s("v-chip",{key:"writing-choice-backspace-btn",staticClass:"writing-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],1)]:[t._l(t.$store.state.writing_data.choice_words[i],(function(e,o){return s("v-touch",{key:"v-touch-key-"+o,on:{pressup:function(s){return t.selectWord(s,e,o)}}},[s("v-chip",{key:"writing-choice-"+o,staticClass:"writing-select-btn text-center",class:[t.$store.state.writing_data.selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})),s("v-touch",{key:"writing-touch-"+(t.$store.state.writing_data.choice_words[i].length-1),on:{pressup:function(e){return t.subSelection(e,t.$store.state.writing_data.choice_words[i][t.$store.state.writing_data.choice_words[i].length-1],t.$store.state.writing_data.choice_words[i].length-1)}}},[s("v-chip",{key:"writing-choice-backspace-btn",staticClass:"writing-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""},on:{click:function(e){return e.stopPropagation(),t.subSelection(e,t.$store.state.writing_data.choice_words[i][t.$store.state.writing_data.choice_words[i].length-1],t.$store.state.writing_data.choice_words[i].length-1)}}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],1)]],2):s("auto-text",{attrs:{step:i,maxHeight:.3*t.$store.state.screen_height,maxFontSize:2.3,src:e.sentence,type:"chips",pa:.8,ma:.5,minWidth:4}},[t._l(t.$store.state.writing_data.choice_words[i],(function(e,o){return s("div",{key:"tmp11-"+o},[s("v-chip",{key:"writing-choice-"+o,staticClass:"writing-select-btn text-center",class:[t.$store.state.writing_data.selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},attrs:{color:"grey",outlined:""},on:{click:function(s){return t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})),s("v-chip",{key:"writing-choice-backspace-btn",staticClass:"writing-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""},on:{click:function(e){return t.subSelection(e,t.$store.state.writing_data.choice_words[i][t.$store.state.writing_data.choice_words[i].length-1],t.$store.state.writing_data.choice_words[i].length-1)}}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],2)]],2)])],1)],1):t._e()],1)}))],2)},Ao=[],Io={name:"writing",components:{AutoText:Xt},data(){return{wrong_pos:[],unwatch1:null,is_ios:!1,doc_bind:!1,backspacePressed:!1}},methods:{pcKeydown:function(t){const e=t.which||t.keyCode;if(8==e){if(0===this.$store.state.writing_data.selected_words.length)return;this.backspacePressed=!0;const e=this.$store.state.writing_data.selected_words,s=e[e.length-1],i=e.length-1;this.subSelection(t,s,i),setTimeout(()=>{this.backspacePressed=!1},150)}else{if(13!=e)return t.preventDefault(),!1;{let t=document.getElementById("go-next-btn");t&&t.click()}}},selectWord:function(t,e,s){if(this.$store.state.writing_data.selected_keys.includes(s))return!1;this.$store.dispatch("getSelectChips",{word:e,key:s})},subSelection:function(t,e,s){this.backspacePressed=!0,this.wrong_pos.includes(s)&&this.wrong_pos.splice(this.wrong_pos.indexOf(s),1),this.$store.commit("subWritingSelect",{word:e,key:s}),setTimeout(()=>{this.backspacePressed=!1},150)},getHint:function(){this.$store.dispatch("soundEffectPlay","hint"),this.$store.dispatch("getWritingHint").then(t=>{Array.isArray(t)?this.wrong_pos=t:!1!==t&&this.$store.dispatch("getSelectChips",t)})},padSelection:function(t){let e=t.replace(/\s+/gi," ");return/[a-zA-Z0-9]/i.test(e.substr(-1))&&(e+=" "),e}},computed:{getClass(){return t=>this.wrong_pos.includes(t)?"red--text":this.$store.getters.getWritingHintClass(t)},disableHint(){return this.$store.getters.getWritingHintDisabled}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0),this.unwatch1=this.$store.watch(t=>t.current_step,(t,e)=>{t>e&&(this.wrong_pos=[])})},mounted(){(!this.$store.state.is_mobile||this.$store.state.is_mobile&&void 0!=window.ExternalKeyboard&&window.ExternalKeyboard.isUsed)&&this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},beforeDestroy(){this.$store.commit("destroyWriting"),this.unwatch1(),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},Do=Io,Ro=(s("23c9"),Object(p["a"])(Do,To,Ao,!1,null,null,null)),Po=Ro.exports;y()(Ro,{VChip:Me["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var Mo=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"pos-rel width-100 height-0",attrs:{id:"ox-wrapper"}},[s("div",{staticClass:"bg-center bg-contain bg-norepeat pos-abs-i",class:t.setClass}),s("auto-text",{directives:[{name:"show",rawName:"v-show",value:t.comment,expression:"comment"}],attrs:{maxFontSize:1.5,maxHeight:.3*t.$store.state.screen_height,src:t.comment?t.comment:""}},[s("div",{staticClass:"comment-wrapper pos-abs-i"},[t._v("\n "+t._s(t.comment)+"\n ")])])],1)},Eo=[],Bo={components:{AutoText:Xt},data(){return{comment:null}},props:{show:{type:Boolean,required:!0},right:{type:Boolean,required:!0}},watch:{show:function(t,e){if(t){this.$store.dispatch("soundEffectPlay",this.right?"correct":"wrong"),this.comment=null;const t=+this.$store.state.unit.book_id;let e=this.$store.getters.getCurModule,s=this.$store.getters.getNextModuleSeq;if(g["zb"].includes(t)){if("GD_1"==e&&-1===s){let t=this.$store.state.current_step,e=this.$store.state.sentences[t];e.comment&&(this.comment=e.comment)}}else if(g["Ab"].includes(t)){let t=this.$store.state.current_step,e=this.$store.state.sentences[t];e.comment&&(this.comment=e.comment)}}}},computed:{getIsScoring:function(){return this.$store.getters.getIsScoring},setClass:function(){let t="";return t=this.$store.state.is_mobile?this.right?"o-mark-m":"x-mark-m":this.right?"o-mark":"x-mark",t}},destroyed(){this.$destroy()}},No=Bo,qo=(s("2df3"),Object(p["a"])(No,Mo,Eo,!1,null,null,null)),Lo=qo.exports,zo=function(){var t,e,s=this,i=s.$createElement,o=s._self._c||i;return o("div",{staticClass:"dictation-keyboard border-ede thin-t width-100"},[o("v-row",{staticClass:"width-100 height-100 ma-0",attrs:{align:"center",justify:"center","no-gutters":""}},[o("v-col",{staticClass:"width-100 height-100 d-flex",style:1!==s.scale_val?"transform: scale("+s.scale_val+")":"",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s.tmptxt?o("auto-text",{attrs:{type:"keyboard",maxFontSize:s.maxFontSize,maxHeight:.3*s.$store.state.screen_height,src:s.tmptxt,step:s.getStep,wrapWidth:s.wrapWidth,wrapHeight:s.wrapHeight,ml:s.ml,mt:s.mt,mtn:s.mtn}},[s.is_ios?[[s._l(s.$store.state.dictation_choice,(function(t,e){return o("button",{key:"keybtn-"+t.char+"-"+e,staticClass:"keywrap d-block pos-rel",class:[0===t.cnt?"pressed keywrap-"+s.getStep:"keywrap-"+s.getStep],attrs:{id:"k-"+t.char},on:{touchstart:function(i){return s.toggleLetter(i,t.char,t.cnt,e)}}},[t.max>1?o("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[e1?o("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[e1&&(t=1+.7*(t-1)),t<1&&(t=1-.7*(1-t)),this.scale_val=t}},computed:{setTempSrc:function(){return res},getStep:function(){return this.$store.state.current_step},isBackspaceDisabled:function(){return 0===this.$store.state.dictation_choice_idx.length}},methods:{toggleLetter:function(t,e,s,i){if(s<=0)return!1;this.is_ios||this.$store.dispatch("soundEffectPlay","dicbtn"),this.$store.commit("toggleDictationLetter",{char:e,key:e+s,buttonIndex:i})},pcKeydown:function(t){const e=t.which||t.keyCode;if(e>64&&e<91){const e=t.key.toLowerCase(),s=this.$store.state.book&&this.$store.state.book.grade&&this.$store.state.book.grade.includes("e"),i=this.$store.state.book&&this.$store.state.book.level&&Number(this.$store.state.book.level)<=10;if(s||i){const s=this.$store.state.dictation_choice;for(let i=0;i0){let e=document.getElementById("k-"+s[i].char);e&&(e.focus(),this.toggleLetter(t,s[i].char,s[i].cnt,i));break}}else{const t=this.$store.state.dictation_choice;for(let s=0;s{this.backspacePressed=!1},150)}else{if(13!=e)return t.preventDefault(),!1;{let t=document.getElementById("go-next-btn");t&&t.click()}}},onBackspace(){if(this.isBackspaceDisabled)return;let t=document.getElementById("dic-ans-"+this.$store.state.current_step).getElementsByClassName("cursor-pointer");if(0!==t.length){if(this.is_ios||this.$store.dispatch("soundEffectPlay","dicbtn"),this.backspacePressed=!0,this.is_ios){const e=t[t.length-1],s=document.getElementById("dic-ans-"+this.$store.state.current_step).getElementsByTagName("span");let i=-1;for(let t=0;t=0){const t=e.textContent;this.$store.commit("subDictationSelect",{char:t,key:i})}}else t[t.length-1].click();setTimeout(()=>{this.backspacePressed=!1},150)}}},mounted(){(!this.$store.state.is_mobile||this.$store.state.is_mobile&&void 0!=window.ExternalKeyboard&&window.ExternalKeyboard.isUsed)&&this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},created(){"function"==typeof window.ExternalKeyboard&&window.ExternalKeyboard.checkOnce(),"ios"===this.$store.state.platform&&(this.is_ios=!0),this.scaleValue&&(this.scale_val=this.scaleValue),this.unwatch1=this.$store.watch(t=>t.dictation_choice,(t,e)=>{if(t){let e="";for(let s=0;s13){let t=Math.ceil(e.length/13);this.top_class_cnt=Math.ceil(e.length/t)}else this.top_class_cnt=0;this.tmptxt=e}else this.tmptxt=!1})},beforeDestroy(){this.unwatch1&&this.unwatch1(),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},Vo=jo,Fo=(s("18fb"),Object(p["a"])(Vo,zo,Oo,!1,null,null,null)),Go=Fo.exports;y()(Fo,{VCol:rt["a"],VRow:ht["a"]});var Wo={name:"learning-study",props:["id"],mixins:[qi],components:{Listening:eo,Matching:ro,Dictation:_o,Timer:ti,Popquiz:So,Writing:Po,OXDisplayer:Lo,Keyboard:Go,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt},data(){return{LISTENING:g["A"],MATCHING:g["D"],DICTATION:g["o"],POPQUIZ:g["N"],WRITING:g["wb"],is_skip:0,is_mobile:!1,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,skip_dialog:!1,next_module_idx:0,next_module_name:"",mdi_chevron_double_left:Lt["q"],mdi_chevron_double_right:Lt["r"],mdi_chevron_right:Lt["v"],mdi_check:Lt["n"],mdi_chevron_right_circle_outline:Lt["x"]}},computed:{getScoringTimer:function(){return this.$store.getters.getScoringTimer},getModule:function(){return this.$store.getters.getCurModule},getStepper:function(){return this.$store.getters.getCurStepper},getCurrentStep:function(){return this.$store.getters.getCurrentStep},getNextDisabled:function(){return this.$store.getters.getNextDisabled},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case g["A"]:t="in-listening";break;case g["D"]:t="in-matching";break;case g["o"]:t="in-dictation";break;case g["N"]:t="in-popquiz";break;case g["wb"]:t="in-writing";break;default:}return t},checkExternalKeyboard:function(){return!(void 0==window.ExternalKeyboard||!window.ExternalKeyboard.isUsed)},getNextModuleIdx:function(){return this.$store.getters.getNextModule},showLoading:function(){return this.$store.state.loading_percent>0},getBlockClick:function(){return this.$store.getters.getBlockClick}},methods:{go:function(t){let e=this.getModule,s=this.getCurrentStep,i=800;return!isNaN(e)&&(!isNaN(s)&&(g["A"]>this.prev_module&&(this.prev_module=e),!this.moving&&((this.prev_step!=s||this.prev_module!=e)&&(this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),void("next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev"))))))},getStudyData:async function(t,e,s,i){try{let t;if(0==Number(s))t=await this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${i}`);else if(1==this.$store.state.book.schedule_type_v)t=await this.$axios.get(`${g["w"]}/v1/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&type=${g["bb"]}&s_u_id=${this.$store.state.unit.s_u_id}&unit_id=${this.$store.state.unit.id}`);else{let s=this.$store.state.book.sentence_cnt,o=i*s;t=await this.$axios.get(`${g["w"]}/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&start=${o}&leng=${s}`)}this.$store.dispatch("ingLoad").then(e=>{this.$store.dispatch("setStudyInfo",{sentences:t.data||[],words:[],loadeddata:e}).then(t=>{window.console.log("getStudyData - res :",e),window.console.log("getStudyData - res2 :",t),e&&!this.$store.state.init?(this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",e).then(()=>{this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getModule)})})})})):this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getModule)})})})})})}catch(o){window.console.error(o)}},skipModule:function(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getModule)return!1;if(this.next_module_idx=this.getNextModuleIdx,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i=0==s?this.$store.state.unit.id:this.$store.state.unit.seq,o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.study_pk&&Number(this.$store.state.unit.study_pk),n=!!this.$store.state.book.startdate;o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.$store.commit("addLoadingPercent",5),console.log("getstudy"),this.getStudyData(t,e,s,i),this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("setIsLearned",!0),this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){switch(this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyModules"),this.getModule){case g["D"]:this.$store.commit("destroyMatching");break;case g["o"]:this.$store.commit("destroyDictation");break;case g["N"]:this.$store.commit("destroyPopquiz");break;case g["wb"]:this.$store.commit("destroyWriting");break;default:}},destroyed(){this.$destroy()}},Uo=Wo,Ho=s("ce7e"),Ko=s("7e85"),Zo=s("9c54"),Yo=s("56a4"),Jo=Object(p["a"])(Uo,Bi,Ni,!1,null,null,null),Xo=Jo.exports;y()(Jo,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var Qo=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"test-index"}},[1==[t.MATCHING,t.DICTATION,t.POPQUIZ,t.WRITING,t.WRITING_K].includes(t.getModule)&&t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),-1==t.getNextModuleIdx&&1==t.is_skip?s("div",{attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e(),s("v-stepper",{staticClass:"elevation-0 page-test",class:{"visibility-hidden":t.$store.state.modules&&1===t.$store.state.modules.length},model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"test-step-"+i,class:{"cursor-pointer":t.getNextModuleIdx==e.idx},attrs:{complete:t.getModule>Number(e.idx),step:i+1,color:"info2","complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{staticClass:"info2--text",domProps:{textContent:t._s(e.name)}}):s("span",{domProps:{textContent:t._s(e.name)}})]),i0?s("timer"):t._e(),0==t.getModule&&t.$store.state.current_step>0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left d-none",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",disabled:t.$store.state.tts_playing,ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_left))])],1):t._e(),s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{"speaking-next":t.SPEAKING==t.getModule},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",id:"go-next-btn",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_right))])],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name)}}),s("span",{directives:[{name:"show",rawName:"v-show",value:[t.MATCHING,t.DICTATION].includes(t.next_module_idx),expression:"[MATCHING, DICTATION].includes(next_module_idx)"}]},[t._v("으")]),t._v("로 넘어가시겠습니까?\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("아니오")])])],1)],1)],1)],1)],1)],1)},ta=[],ea=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"writing-k-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[s("form",{ref:"writing-k-ans",staticClass:"underscore-grey",attrs:{id:"writing-k-ans",name:"writing-k-ans",action:""},on:{submit:function(e){return t.answerSubmit(e)}}},[t.$store.state.process_type!==t.VOCA_ADVANCED&&t.$store.state.settings.is_usinghint?s("div",{class:{"m-expended-hint":t.mobile_focus},attrs:{id:"hint-btn"}},[s("button",{attrs:{type:"button",disabled:t.disableHint},on:{click:t.getHint}},[s("div",{staticClass:"btn-responsive",class:[t.disableHint?"no":"yes"]})])]):t._e(),t.mobile_focus?s("div",{staticClass:"pos-fix",staticStyle:{top:"3.5vh","z-index":"15",right:"7%"}},[s("v-btn",{attrs:{text:"",icon:"",color:"grey","x-large":"",absolute:"",right:""},on:{click:t.hideMobileFocus}},[s("v-icon",{staticStyle:{"font-size":"24px",color:"#aaa"},attrs:{size:"24px"}},[t._v(t._s(t.mdi_close))])],1)],1):t._e(),t._l(t.contents,(function(e,i){return s("v-window-item",{key:"writing-k-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"writing-k-main height-100 w-k-pc",attrs:{id:"wk-wrap-"+i}},[s("div",{staticClass:"responsive-wrapper",staticStyle:{"padding-top":"5.5vh"}},[s("v-row",{staticClass:"ma-0",class:{"m-expended-q":t.mobile_focus}},[s("v-col",{staticClass:"d-flex py-0 px-col justify-center align-center flex-wrap text-center",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{attrs:{maxFontSize:2.4,maxHeight:.13*t.$store.state.screen_height,src:e.mean}},[s("span",{staticClass:"font-weight-bold grey--text text--darken-2"},[t._v(t._s(e.mean))])])],1)],1),s("v-row",{staticClass:"ma-0",class:{"m-expended-a":t.mobile_focus}},[s("v-col",{staticClass:"height-100 py-0 px-col",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"answer-wrapper width-100 height-100 d-flex justify-center align-start flex-wrap pos-rel"},[t.init_hint?s("div",{staticClass:"hint shadow-hint pos-abs top-0 left-0 width-100 height-100 text-center grey--text"},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp1-"+i,staticClass:"pos-rel"},[t._v(t._s(e)),new RegExp("[a-zA-Z]").test(e)?s("span",{staticClass:"pos-abs bottom-0 left-0 u-s"}):t._e()])})),0):t._e(),t.show_hint?s("div",{staticClass:"hint real-hint pos-abs top-0 left-0 width-100 height-100 text-center",on:{click:function(e){t.show_hint=!1}}},[1==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp2-"+i,class:[t.hint_pos.includes(i)?"primary--text":"opacity-0"],domProps:{textContent:t._s(e)}})})):2==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp3-"+i,class:[t.hint_pos.includes(i)?e!=t.input_val[i]?"danger--text":"black--text":"opacity-0"],domProps:{textContent:t._s(e!=t.input_val[i]?t.input_val[i]:e)}})})):t._e()],2):t._e(),t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"hint result pos-abs top-0 left-0 width-100 height-100 text-center white"},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp4-"+i,class:[t.$store.state.writing_k_wrong_pos.includes(i)?"danger--text":"black--text"],domProps:{textContent:t._s(e)}})})),0):t._e(),s("textarea",{ref:"wki-"+i,refInFor:!0,staticClass:"width-100 height-100",staticStyle:{resize:"none"},attrs:{id:"wki-"+i,autocomplete:"off",disabled:t.$store.state.ox_show,spellcheck:!1},on:{keydown:t.keydownKeyboard,keypress:function(e){return e.preventDefault(),t.keypressKeyboard(e)},paste:t.forbiddenPaste,keyup:t.keyupKeyboardPC,blur:function(e){return t.blurInput(i)}}})])])],1)],1)]):t._e()],1)}))],2),s("div",{directives:[{name:"show",rawName:"v-show",value:t.init_hint,expression:"init_hint"}],staticClass:"init-hint-ment grey--text pos-abs-i width-100 text-center"},[t._v("\n 잠시 뒤에 철자가 사라집니다.\n ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.init_hint&&t.alert_eng,expression:"!init_hint && alert_eng"}],staticClass:"init-hint-ment grey--text pos-abs-i width-100 text-center"},[t._v("\n 키보드 입력을 영어로 설정하세요.\n ")])])},sa=[];const ia=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];var oa={name:"writing_k",components:{AutoText:Xt},data(){return{VOCA_ADVANCED:g["qb"],contents:[],os_mode:0,hint_term:3e3,init_hint:!1,show_hint:!1,hint_hit:0,hint_limit:null,hint_type:null,hint_pos:[],char_limit:0,charpos:0,cur_question_txt:null,cur_answer_txt:null,cur_empty_pos:null,cur_input:null,input_val:"",settimeout1:null,disable_timeout:!1,is_mobile:this.$store.state.is_mobile,unwatch1:null,unwatch2:null,unwatch3:null,unwatch4:null,unwatch5:null,unwatch6:null,unwatch_once:null,unwatch_once2:null,mobile_focus:!1,mobile_top:0,focus_status:!1,alert_eng:!1,delegate:null,m_typing:!1,mdi_close:Lt["B"]}},watch:{input_val:function(t,e){this.$store.commit("updateAnswerPC",t)}},methods:{getHint:function(){if(this.init_hint)return!1;if(this.hint_limit<=this.hint_hit)return!1;if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","hint");let t=this.$store.state.current_step,e=this.getCursorPos(this.cur_input).start,s=this.cur_input.value;new RegExp("[a-zA-Z]");if(e>=this.cur_question_txt.length)return!1;this.$store.dispatch("getWritingKHint",{pos:e,key:t,val:s}).then(t=>{if(s=Array.from(s),1===t.type)for(let e=0;e=this.cur_question_txt.length)break;this.setCursorPos(this.cur_input,this.charpos,this.charpos),this.hint_type=t.type,this.hint_hit+=1,this.show_hint=!0,this.input_val=this.cur_input.value})},answerSubmit:function(t){t.preventDefault()},forbiddenPaste:function(t){return t.preventDefault(),t.stopPropagation(),!1},cursorMoveMobile:function(t){if(this.setCursorPos(this.cur_input,this.charpos,this.charpos),!t)return!1;let e=this.cur_question_txt.length;if("right"==t)while(!this.cur_empty_pos.includes(this.charpos)){if(e<=this.charpos)break;this.charpos+=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)}else if("left"==t)while(!this.cur_empty_pos.includes(this.charpos-1)){if(0>=this.charpos)break;this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)}},touchKeyboard:function(t,e){if(this.m_typing){this.cur_input.execCommand("undo");return!1}this.m_typing=!0;let s=t.data?Array.from(t.data):null;this.charpos=this.getCursorPos(this.cur_input).start;let i=this.cur_input.value;if(i.length>this.cur_answer_txt.length){let t=s?1:0;i=i.substr(0,this.cur_question_txt.length+t)}if(null===s&&"deleteContentBackward"===t.inputType)return this.cur_input.value=i.substr(0,this.charpos)+this.cur_answer_txt[this.charpos]+i.substr(this.charpos),this.cursorMoveMobile("left"),this.$store.commit("updateAnswerPC",this.cur_input.value),!1;if(null===s&&"insertLineBreak"===t.inputType)return this.cur_input.value=i.replace(/(?:\r\n|\r|\n)/g,""),this.$store.commit("updateAnswerPC",this.cur_input.value),this.$store.dispatch("processNext"),!1;for(let o=0;o0){let t=this.cur_input.value;s<=t.length&&(t=this.koreanReplace(t),t=t.substr(0,s),this.cur_input.value=t);do{this.charpos-=1,this.cur_empty_pos.includes(this.charpos)&&(this.cur_input.value=t.substr(0,this.charpos)+this.cur_answer_txt[this.charpos]+t.substr(this.charpos+1),this.input_val=this.cur_input.value),this.setCursorPos(this.cur_input,this.charpos,this.charpos)}while(!this.cur_empty_pos.includes(this.charpos)&&this.charpos>0)}return!1}if(!(s<=this.cur_input.value)){if(37==e)return this.charpos>0&&(this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)),!1;if((32==e||39==e)&&this.charpos<=s)return this.charpos+=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(!this.cur_empty_pos.includes(this.charpos))return t.preventDefault(),!1;if(ia.includes(t.key)){this.$store.dispatch("soundEffectPlay","dicbtn");let e=this.cur_input.value;return this.cur_input.value=e.substr(0,this.charpos)+t.key+e.substr(this.charpos+1),this.charpos+=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos),this.input_val=this.cur_input.value,!0}return t.preventDefault(),t.stopPropagation(),!1}t.preventDefault()}else t.preventDefault()},keypressKeyboard:function(t){return t.preventDefault(),t.stopPropagation(),!1},keyupKeyboardPC:function(t){let e=t.which||t.keyCode,s=0,i=!1,o=!1,a=this.cur_question_txt.length;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(console.log("keyupKeyboardPC",e),229===e||"229"===e||t.isComposing)return t.preventDefault(),t.stopPropagation(),!1;if(13==e&&this.$store.dispatch("processNext"),8==e){t.preventDefault(),t.stopPropagation(),this.setCursorPos(this.cur_input,this.charpos,this.charpos);let e=this.cur_input.value;if(a<=e.length){let t=this.koreanReplace(this.cur_input.value);this.cur_input.value=t.substr(0,a)}while(!this.cur_empty_pos.includes(this.charpos)&&this.charpos>0)if(this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos),s++,s>300)break;return!1}let n=Array.from(this.cur_input.value),r=n.filter((t,e)=>a<=e||(!(!this.cur_empty_pos.includes(e)||new RegExp("[a-zA-Z_]","gi").test(t))||void 0));if(r.length>0)return this.input_val=this.koreanReplace(this.input_val),this.cur_input.value=this.input_val,this.alert_eng=!0,this.settimeout1&&window.clearTimeout(this.settimeout1),this.settimeout1=window.setTimeout(()=>{this.alert_eng=!1},2500),!1;if(37==e?i=!0:o=!0,this.cur_empty_pos.includes(this.charpos))return t.preventDefault(),t.stopPropagation(),this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1;let l=!0;while(l&&this.charpos>0&&this.charpos<=a){if(i)this.charpos-=1;else{if(!o){l=!1;break}this.charpos+=1}if((this.cur_empty_pos.includes(this.charpos)||this.charpos>=a||this.charpos<=0)&&(l=!1),this.setCursorPos(this.cur_input,this.charpos,this.charpos),s++,s>300)break}},koreanReplace:function(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t;return e.test(s)&&(s=s.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi,(t,e)=>"")),s},setCursorPos:function(t,e,s){if(arguments.length<3&&(s=e),t.selectionStart)setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},1);else if(t.createTextRange){let i=t.createTextRange();i.moveStart("character",e),i.collapse(),i.moveEnd("character",s-e),i.select()}},getCursorPos:function(t){let e,s,i,o,a,n=0,r=0;return"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd?(n=t.selectionStart,r=t.selectionEnd):(s=document.selection.createRange(),s&&s.parentElement()==t&&(o=t.value.length,e=t.value.replace(/\r\n/g,"\n"),i=t.createTextRange(),i.moveToBookmark(s.getBookmark()),a=t.createTextRange(),a.collapse(!1),i.compareEndPoints("StartToEnd",a)>-1?n=r=o:(n=-i.moveStart("character",-o),n+=e.slice(0,n).split("\n").length-1,i.compareEndPoints("EndToEnd",a)>-1?r=o:(r=-i.moveEnd("character",-o),r+=e.slice(0,r).split("\n").length-1)))),{start:n,end:r}},setFirst:function(t){t-=1,this.init_hint=!0,this.settimeout1&&clearTimeout(this.settimeout1),this.$store.state.is_mobile||document.removeEventListener("click",this.delegateFocus),this.disable_timeout=!0,this.$store.commit("nextDisabled",!0),this.settimeout1=setTimeout(()=>{this.timeoutFirst(t),this.disable_timeout=!1,this.$store.state.is_mobile||document.addEventListener("click",this.delegateFocus)},this.hint_term)},timeoutFirst:function(t){this.cur_input=document.getElementById("wki-"+t),this.cur_input&&(this.cur_input.value=this.input_val,this.cur_input.focus(),this.setCursorPos(this.cur_input,this.cur_empty_pos[0],this.cur_empty_pos[0]),console.log(this.cur_input.value)),this.$store.commit("nextDisabled",!1),this.init_hint=!1,this.focus_status=!0},hideMobileFocus:function(){this.mobile_focus=!1},delegateFocus:function(t){this.focusInput("wki-"+this.$store.state.current_step)}},computed:{disableHint:function(){return this.hint_hit>=this.hint_limit}},created(){let t;this.$store.state.is_mobile&&(this.is_mobile=!0),this.$store.state.process_type===g["qb"]?(this.hint_term=5,t="words"):(this.hint_term=1==this.$store.state.cid?100:3e3,t="sentences"),this.contents=this.$store.state[t].map(t=>t),0==this.contents.length&&(this.unwatch_once2=this.$store.watch(e=>e[t],(t,e)=>{t.length>0&&(this.contents=t,this.unwatch_once2(),this.unwatch_once2=null)}));let e=window.navigator.userAgent,s=window.navigator.platform,i=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],a=["iPhone","iPad","iPod"],n=null;-1!==i.indexOf(s)?n="Mac OS":-1!==a.indexOf(s)?n="iOS":-1!==o.indexOf(s)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(s)&&(n="Linux"),"Mac OS"!=n&&"iOS"!=n||(this.os_mode=1),this.hint_limit=this.$store.state.process_type==g["hb"]?g["ib"]:g["C"],this.$store.state.load_start&&(this.$store.state.writing_k_empty_pos&&(this.cur_empty_pos=this.$store.state.writing_k_empty_pos),this.$store.state.writing_k_current_answer&&(this.cur_answer_txt=this.$store.state.writing_k_current_answer.join(""),this.input_val=this.cur_answer_txt),this.$store.state.writing_k_current_question&&(this.cur_question_txt=this.$store.state.writing_k_current_question.join(""))),this.unwatch2=this.$store.watch((t,e)=>this.$store.getters.getCurrentStep,(t,e)=>{t>0&&t!=e&&(this.setFirst(t),this.cur_question_txt="",this.cur_answer_txt="",this.input_val="",this.cur_empty_pos="",this.hint_type=0,this.hint_hit=0,this.hint_show=!1)}),this.unwatch_once=this.$store.watch(t=>t.loading_percent,(t,e)=>{0==t&&(this.$store.state.load_start?(this.setFirst(this.$store.getters.getCurrentStep),this.$store.commit("setLoadStart",!1)):this.setFirst(1),this.unwatch_once(),this.unwatch_once=null)}),this.$store.state.is_mobile||(this.unwatch3=this.$store.watch(t=>t.dialog_leaning_stop,(t,e)=>{1==e&&0==t&&0==this.disable_timeout&&this.focusInput("wki-"+this.$store.state.current_step)})),this.unwatch4=this.$store.watch(t=>t.writing_k_current_question,(t,e)=>{this.cur_question_txt=t.join("")}),this.unwatch5=this.$store.watch(t=>t.writing_k_current_answer,(t,e)=>{this.cur_answer_txt=t.join(""),this.input_val=t.join("")}),this.unwatch6=this.$store.watch(t=>t.writing_k_empty_pos,(t,e)=>{this.cur_empty_pos=t})},beforeDestroy(){this.unwatch2(),this.unwatch_once&&this.unwatch_once(),this.unwatch_once2&&this.unwatch_once2(),this.settimeout1&&window.clearTimeout(this.settimeout1),this.$store.state.is_mobile||(document.removeEventListener("click",this.delegateFocus),this.unwatch3()),this.unwatch4(),this.unwatch5(),this.unwatch6(),this.$store.commit("destroyWritingK")},destroyed(){this.$destroy()}},aa=oa,na=(s("294f"),Object(p["a"])(aa,ea,sa,!1,null,null,null)),ra=na.exports;y()(na,{VBtn:ot["a"],VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var la=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"writing-k-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[s("form",{ref:"writing-k-ans",staticClass:"underscore-grey",attrs:{id:"writing-k-ans",name:"writing-k-ans",action:""},on:{submit:function(e){return t.answerSubmit(e)}}},[t.$store.state.process_type!==t.VOCA_ADVANCED&&t.$store.state.settings.is_usinghint?s("div",{attrs:{id:"hint-btn"}},[s("button",{attrs:{type:"button",disabled:t.disableHint},on:{click:t.getHint}},[s("div",{staticClass:"btn-responsive",class:[t.disableHint?"no":"yes"]})])]):t._e(),t._l(t.contents,(function(e,i){return s("v-window-item",{key:"writing-k-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"writing-k-main height-100 w-k-m",attrs:{id:"wk-wrap-"+i}},[s("div",{staticClass:"responsive-wrapper"},[s("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"d-flex py-0 px-col justify-center align-center flex-wrap text-center",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{attrs:{maxFontSize:2.4,maxHeight:.13*t.$store.state.screen_height,src:e.mean}},[s("span",{staticClass:"font-weight-bold grey--text text--darken-2"},[t._v(t._s(e.mean))])])],1)],1),s("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"height-100 py-0 px-col",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"answer-wrapper width-100 height-100 d-flex justify-center align-start flex-wrap"},[s("input",{ref:"wki-"+i,refInFor:!0,staticClass:"hidden-input pos-abs left-m9999",staticStyle:{opacity:"0","z-index":"-1"},attrs:{type:"text",autocomplete:"off",autocorrect:"off",id:"wki-"+i,disabled:t.$store.state.ox_show,spellcheck:!1},on:{input:function(e){return t.touchKeyboard(e,i)},keyup:function(e){return t.keyupKeyboard(e)},keydown:function(e){return t.keydownKeyboard(e)},focus:t.checkFocus,blur:t.checkBlur}}),s("auto-text",{attrs:{maxFontSize:3,maxHeight:.3*t.$store.state.screen_height,src:e.txt,step:i,type:"writingk"}},[s("div",{ref:"wki-show-"+i,refInFor:!0,staticClass:"pos-rel show-field",class:[t.focus_status?"focus":""],attrs:{id:"wki-show-"+i,rel:""+t.init_hint_underscore},domProps:{innerHTML:t._s(t.showAnswerHtml)},on:{click:function(e){return t.focusInput("wki-"+i)}}})])],1)])],1),s("v-row",{directives:[{name:"show",rawName:"v-show",value:t.mobile_focus,expression:"mobile_focus"}],staticClass:"width-100 bg-white",style:"height: calc(37vh + "+t.mobile_top+"px); "})],1)]):t._e()],1)}))],2),s("div",{directives:[{name:"show",rawName:"v-show",value:t.init_hint,expression:"init_hint"}],staticClass:"init-hint-ment grey--text pos-abs-i width-100 text-center"},[t._v("\n 잠시 뒤에 철자가 사라집니다.\n ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.init_hint&&t.alert_eng,expression:"!init_hint && alert_eng"}],staticClass:"init-hint-ment grey--text pos-abs-i width-100 text-center"},[t._v("\n 키보드 입력을 영어로 설정하세요.\n ")])])},ca=[],da={name:"writing_k",components:{AutoText:Xt},data(){return{VOCA_ADVANCED:g["qb"],hint_term:3e3,contents:[],is_ios:!1,init_hint:!1,init_hint_underscore:null,char_limit:0,settimeout1:null,disable_timeout:!1,is_mobile:this.$store.state.is_mobile,unwatch1:null,unwatch2:null,unwatch3:null,unwatch_once:null,unwatch_once2:null,mobile_focus:!1,mobile_top:0,focus_status:!1,alert_eng:!1,delegate:null,viewportResizeHandler:null,initialViewportHeight:null,viewportResizeDetected:!1,focusTimeout:null,get_vh:null}},methods:{getHint(){if(this.init_hint)return!1;this.$store.dispatch("soundEffectPlay","hint");let t=this.$store.state.current_step,e=document.getElementById("wki-show-"+t).getElementsByClassName("current_pos"),s=(document.getElementById("wki-"+t).value,document.getElementById("wki-show-"+t).getElementsByClassName("q")),i=void 0,o="";if(!(s.length>0))return!1;for(let a=0;a0&&(i=Number(e[0].getAttribute("data-idx"))),void 0!==i&&this.$store.dispatch("getWritingKHintMobile",{pos:i,key:t,val:o}).then(e=>{e.add&&(document.getElementById("wki-"+t).value=e.txt),document.getElementById("wki-"+t)&&document.getElementById("wki-"+t).focus()})},answerSubmit(t){t.preventDefault()},touchKeyboard(t,e){if(this.init_hint)return void(t.target.value="");let s=t.target.value,i=Array.from(s);i.length>this.char_limit&&(t.target.value=i.splice(0,this.char_limit).join("")),new RegExp("^[A-Za-z0-9]*$","g").test(s)||(i.pop(),t.target.value=i.join("")),this.$store.commit("updateAnswerMobile",s)},timeoutFirst(t){document.getElementById("writing-k-ans").classList.remove("underscore-grey"),document.getElementById("wki-"+t)&&document.getElementById("wki-"+t).focus(),this.$store.commit("nextDisabled",!1),this.init_hint=!1,this.init_hint_underscore=null,this.focus_status=!0},focusInput(t){document.getElementById(t).focus(),this.focus_status=!0},keyupKeyboard(t){let e=t.which||t.keyCode;13==e&&this.$store.dispatch("processNext"),8==e&&(console.log(t.target.value),this.$store.commit("updateAnswerMobile",t.target.value))},keydownKeyboard(t){if(this.init_hint)return void(t.target.value="");const e=t.which||t.keyCode,s=37===e||"ArrowLeft"===t.key||"ArrowLeft"===t.code,i=39===e||"ArrowRight"===t.key||"ArrowRight"===t.code;(s||i)&&t.preventDefault()},engCheck(t){const e=function(t){return"%u"==t.substring(0,2)?"00"==t.substring(2,4)?1:2:"%"==t.substring(0,1)&&parseInt(t.substring(1,3),16)>127?2:1};for(let s=0;s{this.timeoutFirst(t),this.disable_timeout=!1,this.$store.state.is_mobile||document.addEventListener("click",this.delegateFocus)},this.hint_term)},checkFocus(){this.$store.state.current_step;this.mobile_focus=!0,this.$store.state.is_mobile&&"android"===this.$store.state.platform&&(this.viewportResizeDetected=!1,this.focusTimeout&&clearTimeout(this.focusTimeout),this.focusTimeout=setTimeout(()=>{this.viewportResizeDetected||this.setupFallbackScroll()},500))},checkBlur(){this.mobile_focus=!1,this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null);const t=document.querySelector(".responsive-wrapper");t&&(t.style.marginTop=""),this.is_ios&&window.scrollTo(0,NaN)},delegateFocus(t){this.focusInput("wki-"+this.$store.state.current_step)},setupKeyboardDetection(){this.initialViewportHeight=window.visualViewport?window.visualViewport.height:window.innerHeight,this.viewportResizeHandler=()=>{this.viewportResizeDetected=!0,this.handleKeyboardResize()},window.visualViewport&&"function"===typeof window.visualViewport.addEventListener&&window.visualViewport.addEventListener("resize",this.viewportResizeHandler)},handleKeyboardResize(){const t=this.$store.state.current_step,e=document.getElementById("wki-show-"+t);if(!e)return;const s=e.getBoundingClientRect(),i=window.visualViewport?window.visualViewport.height:window.innerHeight;s.bottom>i&&e.scrollIntoView({behavior:"smooth",block:"center"})},setupFallbackScroll(){const t=this.$store.state.current_step,e=document.getElementById("wki-show-"+t);if(!e)return;const s=document.querySelector(".responsive-wrapper");if(!s)return;const i=e.getBoundingClientRect(),o=i.top/this.get_vh*100;if(o>=34){const t=-(o-33);s.style.marginTop=t+"vh"}}},mounted(){this.get_vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&this.setupKeyboardDetection()},computed:{showAnswerHtml(){return this.init_hint?this.$store.state.writing_k_current_question.join(""):this.$store.state.writing_k_current_answer.join("")},disableHint(){return this.$store.getters.getWritingKHintDisabled}},created(){let t;this.$store.state.process_type===g["qb"]?(this.hint_term=5,t="word"):(this.hint_term=3e3,t="sentence"),this.$store.state[t+"s"]&&this.$store.state[t+"s"].length>0&&(this.contents=this.$store.state[t+"s"].map(e=>({...e,txt:e[t]}))),0==this.contents.length&&(this.unwatch_once2=this.$store.watch(e=>e[t+"s"],(e,s)=>{e.length>0&&(this.contents=e.map(e=>({...e,txt:e[t]})),this.unwatch_once2(),this.unwatch_once2=null)})),"ios"===this.$store.state.platform&&(this.is_ios=!0),this.$store.state.load_start&&(this.$store.state.writing_k_empty_pos&&(this.cur_empty_pos=this.$store.state.writing_k_empty_pos),this.$store.state.writing_k_current_answer&&(this.cur_answer_txt=this.$store.state.writing_k_current_answer.join(""),this.input_val=this.cur_answer_txt),this.$store.state.writing_k_current_question&&(this.cur_question_txt=this.$store.state.writing_k_current_question.join(""))),this.unwatch1=this.$store.watch((t,e)=>e.getWritingKQuestion,(t,e)=>{let s=t,i="",o=0;for(let a=0;athis.$store.getters.getCurrentStep,(t,e)=>{t>0&&t!=e&&this.setFirst(t)}),this.unwatch_once=this.$store.watch(t=>t.loading_percent,(t,e)=>{0==t&&(this.$store.state.load_start?(this.setFirst(this.$store.getters.getCurrentStep),this.$store.commit("setLoadStart",!1)):this.setFirst(1),this.unwatch_once(),this.unwatch_once=null)}),this.$store.state.is_mobile||(this.unwatch3=this.$store.watch(t=>t.dialog_leaning_stop,(t,e)=>{1==e&&0==t&&0==this.disable_timeout&&this.focusInput("wki-"+this.$store.state.current_step)}))},beforeDestroy(){this.unwatch1(),this.unwatch2(),this.unwatch_once&&this.unwatch_once(),this.unwatch_once2&&this.unwatch_once2(),this.settimeout1&&window.clearTimeout(this.settimeout1),this.focusTimeout&&clearTimeout(this.focusTimeout),this.$store.state.is_mobile||(document.removeEventListener("click",this.delegateFocus),this.unwatch3()),this.$store.commit("destroyWritingK"),this.viewportResizeHandler&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeHandler)},destroyed(){this.$destroy()}},ha=da,ua=(s("8d8e"),Object(p["a"])(ha,la,ca,!1,null,null,null)),pa=ua.exports;y()(ua,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var _a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"speaking-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"speaking-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"height-100"},[s("div",{staticClass:"d-flex flex-column justify-center height-100",staticStyle:{gap:"0.3rem"}},[s("div",[s("auto-text",{attrs:{src:e.sentence,maxHeight:.19*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"question-wrapper text-center"},[t.pivot_num>i?[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.speakingResult)}}):s("span",{staticClass:"font-weight-bold grey--text text--darken-2",domProps:{textContent:t._s(e.sentence)}})]:[t.$store.getters.getIsScoring&&t.showKor?s("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.speakingResult)}}):s("span",{staticClass:"font-weight-bold grey--text text--darken-2",domProps:{textContent:t._s(e.mean)}})]],2)])],1),s("div",[t.$store.getters.getIsScoring?s("auto-text",{attrs:{src:e.mean,maxHeight:.16*t.$store.state.screen_height,maxFontSize:2}},[t.pivot_num>i?[s("div",{staticClass:"answer-wrapper d-flex justify-center align-center height-100"},[s("span",{staticClass:"grey--text",style:t.$store.state.ox_show?"":"color: transparent !important"},[t._v(t._s(e.mean))])])]:[t.showKor?s("div",{staticClass:"answer-wrapper d-flex justify-center align-center height-100"},[s("span",{staticClass:"grey--text"},[t._v(t._s(e.mean))])]):t._e()]],2):t._e()],1)])]):t._e()],1)})),t.is_mobile?s("speech-recognition",{attrs:{prompt:t.setNextPrompt2}}):s("webkit-speech-recognition",{attrs:{sentence:t.setNextPrompt}})],2)},ma=[],ga={name:"speaking",components:{SpeechRecognition:ds,WebkitSpeechRecognition:xs,AutoText:Xt},data(){return{is_mobile:!1,prev_step:0,prompt:"",settimeout1:null,prev_spk_cnt:0,setNextPrompt2:"제시된 문장을 따라 읽어보세요.",pivot_num:9999,unwatch_once:null}},computed:{setNextPrompt:function(){return this.$store.state.sentences&&this.$store.state.sentences.length>0?this.$store.state.sentences[this.$store.state.current_step].sentence:null},speakingResult:function(){return this.$store.getters.getSpeakingResult},showKor:function(){return this.$store.state.ox_show&&this.$store.state.speaking_kor_show}},mounted(){},created(){this.$store.state.is_mobile&&(this.is_mobile=!0);let t=this.$store.getters.getTotalStepCnt;t?this.pivot_num=Math.round(.6*Number(t)):this.unwatch_once=this.$store.watch((t,e)=>e.getTotalStepCnt,(t,e)=>{t>0&&(this.pivot_num=Math.round(.6*Number(t)),this.unwatch_once(),this.unwatch_once=null)})},beforeDestroy(){this.$store.commit("destroySpeaking"),this.settimeout1&&clearTimeout(this.settimeout1),this.unwatch_once&&this.unwatch_once(),this.settimeout1=null}},ba=ga,va=(s("942b"),Object(p["a"])(ba,_a,ma,!1,null,null,null)),fa=va.exports;y()(va,{VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var wa={name:"learning-test",props:["id"],mixins:[qi],components:{Matching:ro,Dictation:_o,Popquiz:So,Writing:Po,WritingK:ra,WritingKMobile:pa,Speaking:fa,OXDisplayer:Lo,Keyboard:Go,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt,Timer:ti},data(){return{MATCHING:g["D"],DICTATION:g["o"],POPQUIZ:g["N"],WRITING:g["wb"],WRITING_K:g["xb"],SPEAKING:g["V"],is_skip:0,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,next_module_idx:0,skip_dialog:!1,next_module_name:"",is_mobile:!1,mdi_chevron_double_left:Lt["q"],mdi_chevron_double_right:Lt["r"],mdi_check:Lt["n"],mdi_chevron_right:Lt["v"],mdi_chevron_right_circle_outline:Lt["x"]}},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},getNextModuleIdx(){return this.$store.getters.getNextModule},getModule(){return this.$store.getters.getCurModule},getStepper(){return this.$store.getters.getCurStepper},getCurrentStep(){return this.$store.getters.getCurrentStep},getNextDisabled(){return this.$store.getters.getNextDisabled},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case g["D"]:t="in-matching";break;case g["o"]:t="in-dictation";break;case g["N"]:t="in-popquiz";break;case g["wb"]:t="in-writing";break;case g["xb"]:t="in-writing-k";break;case g["V"]:t="in-speaking";break;default:}return t},checkExternalKeyboard(){return!(void 0==window.ExternalKeyboard||!window.ExternalKeyboard.isUsed)},showLoading(){return this.$store.state.loading_percent>0},getBlockClick(){return this.$store.getters.getBlockClick}},methods:{skipModule(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getModule)return!1;if(this.next_module_idx=this.getNextModuleIdx,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})},go(t){let e=this.getModule,s=this.getCurrentStep,i=800;return!isNaN(e)&&(!isNaN(s)&&(0>this.prev_module&&(this.prev_module=e),!this.moving&&((this.prev_step!=s||this.prev_module!=e)&&(this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),void("next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev"))))))},getStudyData(t,e,s,i,o){try{let t,a,n=this.$store.getters.getIsFreePass;if(!this.$store.state.book.schedule_type_v&&!n&&isNaN(Number(o)))return;let r=[];this.$store.dispatch("ingLoad").then(async l=>{if(0==Number(s))t=await this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${i}`);else if(1==this.$store.state.book.schedule_type_v)t=await this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${i}`);else{let s=this.$store.state.book.sentence_cnt,o=i*s;t=await this.$axios.get(`${g["w"]}/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&start=${o}&leng=${s}`)}if(l&&!this.$store.state.init){let e=JSON.parse(l);if(t){for(let s=0;s{this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",l).then(()=>{this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getModule)})})})})}}else if(a=1==this.$store.state.book.schedule_type_v||n?{data:"null"}:await this.$axios.get(`${g["w"]}/result/getwrongsentences/${o}`),t&&a){let e=I(t.data),s=!(!a.data||"null"==a.data)&&Array.from(new Set(JSON.parse(a.data))),i=Math.round(.7*e.length),o=[];if(s)t:for(let t=0;t{this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareAudioSource"),this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getModule)})})}})}catch(a){console.error(a)}}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i,o=this.$store.state.unit.study_pk;i=0==s||1==this.$store.state.book.schedule_type_v?this.$store.state.unit.id:this.$store.state.unit.seq,this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i,o),this.$store.commit("setIsLearned",!0),this.$store.state.unit.test_pk||this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0),console.log(this.is_mobile)},beforeDestroy(){switch(this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyModules"),this.getModule){case g["D"]:this.$store.commit("destroyMatching");break;case g["o"]:this.$store.commit("destroyDictation");break;case g["N"]:this.$store.commit("destroyPopquiz");break;case g["wb"]:this.$store.commit("destroyWriting");break;case g["xb"]:this.$store.commit("destroyWritingK");break;case g["V"]:this.$store.commit("destroySpeaking");break;default:}},destroyed(){this.$destroy()}},ya=wa,xa=(s("08c2"),Object(p["a"])(ya,Qo,ta,!1,null,null,null)),ka=xa.exports;y()(xa,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var Ca=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"study-index"}},[[t.DICTATION,t.WORD_INFERENCE,t.POPQUIZ].includes(t.getCurModule)&&t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),t.booktype_1==t.BOOK_BANK||[t.BOOK_NORMAL,t.BOOK_LISTENING].includes(t.booktype_1)?[-1==t.$store.getters.getNextModule&&1==t.is_skip?s("div",{attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e()]:t._e(),s("v-stepper",{staticClass:"elevation-0 page-v",class:{"visibility-hidden":t.$store.state.modules&&1===t.$store.state.modules.length},model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+e.seq,class:{"cursor-pointer":t.getNextModuleSeq==e.seq},attrs:{complete:t.getCurModuleSeq>e.seq,step:e.seq+1,color:"warning","complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{staticClass:"warning--text",domProps:{textContent:t._s(t.setStepperName(e.name))}}):s("span",{domProps:{textContent:t._s(t.setStepperName(e.name))}})]),e.seq0?s("timer"):t._e(),t.LISTENING==t.getCurModule&&t.$store.state.current_step>0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_left))])],1):t._e(),s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{"d-none":t.checkBankModule},attrs:{text:"",icon:"",absolute:"",color:"grey",id:"go-next-btn","x-large":"",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_right))])],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name)}}),[t.DICTATION,t.WORD_INFERENCE].includes(t.next_module_idx)?s("span",[t._v("으")]):t._e(),t._v("로 넘어가시겠습니까?\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("아니오")])])],1)],1)],1)],1)],1)],2)},$a=[],Sa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"dictation-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"dictation-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.words,(function(e,i){return s("v-window-item",{key:"dictation-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"height-100"},[s("v-row",{staticClass:"dictation-ans",attrs:{dense:""}},[s("v-col",{staticClass:"pa-0 height-inherit d-flex col-padd",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{attrs:{src:e.word,maxHeight:.26*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"height-100"},[t.$store.getters.getIsScoring&&t.$store.state.ox_show?s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 d-flex flex-row flex-wrap justify-center align-content-center align-center",staticStyle:{"font-size":"inherit"},domProps:{innerHTML:t._s(t.$store.getters.getDictationResultHtml)}}):s("div",{staticClass:"answer-wrapper ma-auto py-0 width-auto height-inherit max-w-100 d-flex flex-row flex-wrap justify-center align-content-center align-center",attrs:{id:"dic-ans-"+i}},[t.is_ios?[t._l(t.$store.state.dictation_select,(function(e,i){return[s("span",{key:"dic-sel-"+i,class:{"cursor-pointer":t.$store.state.dictation_choice_idx.includes(i)},staticStyle:{"font-size":"inherit"},domProps:{textContent:t._s(t.$store.state.dictation_uppercase.includes(i)?e.toUpperCase():e)},on:{touchstart:function(s){return t.subSelection(s,e,i)}}})]}))]:[t._l(t.$store.state.dictation_select,(function(e,i){return[s("span",{key:"dic-sel-"+i,class:{"cursor-pointer":t.$store.state.dictation_choice_idx.includes(i)},staticStyle:{"font-size":"inherit"},domProps:{textContent:t._s(t.$store.state.dictation_uppercase.includes(i)?e.toUpperCase():e)},on:{click:function(s){return t.subSelection(s,e,i)}}})]}))]],2)])])],1)],1),s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"pa-0 col-padd",attrs:{cols:"12"}},[t.$store.getters.getIsScoring?s("auto-text",{attrs:{src:e.mean,maxHeight:.14*t.$store.state.screen_height,maxFontSize:2.2}},[t.$store.state.ox_show?s("div",{staticStyle:{"font-size":"inherit"}},[s("div",{staticClass:"text-center grey--text width-100 top-0"},[s("span",[t._v(t._s(e.mean))])])]):t._e()]):t._e()],1)],1)],1):t._e()],1)})),1)},Ta=[],Aa={name:"dictation",components:{AutoText:Xt},data(){return{is_ios:!1}},methods:{subSelection:function(t,e,s){this.$store.commit("subDictationSelect",{char:e,key:s})}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0)},beforeDestroy(){this.$store.commit("destroyDictation")}},Ia=Aa,Da=(s("7167"),Object(p["a"])(Ia,Sa,Ta,!1,null,null,null)),Ra=Da.exports;y()(Da,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var Pa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"wordbingo-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"wordbingo-wrapper"}},[s("v-row",{attrs:{id:"flip-question",align:"end",justify:"center"}},[s("flip",{staticClass:"mx-1per",attrs:{flip:t.$store.state.wordbingo_question_hide,width:"24%",height:"14vh",innerclass:t.$store.state.wordbingo_question_cls,is_question:!0}},[s("template",{slot:"front"},[t._l(t.$store.state.wordbingo_words,(function(e,i){return[i==t.step?s("div",{key:"wb-"+i,staticClass:"height-100 width-100 d-flex align-center justify-center px-1",staticStyle:{"font-size":"1.4vw"}},[s("span",{staticClass:"white--text text-center",domProps:{textContent:t._s(e.word)}})]):t._e()]}))],2),s("template",{slot:"back"},[t._l(t.$store.state.wordbingo_words,(function(e,i){return[i==t.next_step?s("div",{key:"wb-2-"+i,staticClass:"height-100 width-100 d-flex align-center justify-center px-1",staticStyle:{"font-size":"1.4vw"}},[s("span",{staticClass:"text-center fw-500",domProps:{textContent:t._s(e.mean)}})]):t._e()]}))],2)],2)],1),t.$store.state.wordbingo_selections.length>0?s("v-row",{attrs:{id:"flip-selection",align:"center",justify:"center"}},[t._l(t.$store.state.wordbingo_selections,(function(e,i){return[0!=t.width&&0!=t.height?s("flip",{key:"flip-"+i,staticClass:"mx-1per",attrs:{flip:e.right,width:t.width,height:t.height,innerclass:e.cls},nativeOn:{click:function(s){return t.checkRight(e,i)}}},[s("template",{slot:"front"},[s("div",{staticClass:"height-100 width-100 d-flex align-center justify-center px-1",staticStyle:{"font-size":"1.4vw"}},[s("span",{staticClass:"text-center",domProps:{textContent:t._s(e.word)}})])])],2):t._e()]}))],2):t._e()],1)},Ma=[],Ea=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flip-container",class:{hover:t.flip},style:{width:t.width,height:t.height}},[s("div",{staticClass:"flipper card",class:t.innerclass},[s("div",{staticClass:"front"},[t._t("front")],2),t.is_question?s("div",{staticClass:"back px-0"},[t._t("back")],2):s("div",{staticClass:"back d-flex justify-center align-center",staticStyle:{"background-color":"#ffffff"}},[t.$store.state.clogofile?s("div",{staticClass:"width-100 height-100",staticStyle:{display:"inline-grid"}},[s("academy-logo",{attrs:{logo:t.$store.state.clogofile}})],1):s("div",{staticClass:"width-100",staticStyle:{display:"inline-grid"}},[s("app-logo",{attrs:{color:"#a8e7b7",backgroundColor:"#ffffff",inColor:"#ffffff"}})],1)])])])},Ba=[],Na=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticStyle:{"max-width":"100%","max-height":"100%"}},[s("v-responsive",{style:"background-image: url("+t.HOST+"/media/images/logo/"+t.logo+");",attrs:{id:"academy-logo",width:"100%",height:"100%"}})],1)},qa=[],La={props:["logo"],data(){return{HOST:g["w"]}}},za=La,Oa=s("6b53"),ja=Object(p["a"])(za,Na,qa,!1,null,null,null),Va=ja.exports;y()(ja,{VResponsive:Oa["a"]});var Fa={name:"flip",components:{AppLogo:et,AcademyLogo:Va},props:{width:{type:String,required:!0},height:{type:String,required:!0},flip:{type:Boolean,required:!1,default:!1},is_question:{type:Boolean,required:!1,default:!1},innerclass:{type:String,required:!0}}},Ga=Fa,Wa=(s("fc8b"),Object(p["a"])(Ga,Ea,Ba,!1,null,"4075ca86",null)),Ua=Wa.exports,Ha={name:"wordbingo",components:{Flip:Ua},data(){return{step:0,next_step:0,last_key:null,last_sel:null,cur_data:null,cur_flip:!1,width:0,height:0,padding:0,disable:!1,click_cnt:0,is_ios:!1,unwatch_once:null,unwatch1:null,unwatch2:null,timeout1:null}},methods:{checkRight(t,e){let s=t,i=e;if(this.$store.state.process_next_disabled||this.disable||s.right||!this.$store.state.wordbingo_words[this.step])return!1;let o=this.$store.state.wordbingo_words[this.step].word.trim(),a=s.word.trim(),n=1!=this.$store.state.cid?this.$store.state.current_tts_audio.duration?1e3*this.$store.state.current_tts_audio.duration+500:1500:100;this.is_ios&&1!=this.$store.state.cid&&!isNaN(this.$store.state.lesson_speed)&&this.$store.state.lesson_speed&&100!==this.$store.state.lesson_speed&&this.$store.state.current_tts_audio.duration&&(n=this.$store.state.current_tts_audio.duration*(100/this.$store.state.lesson_speed)*1e3+500);let r=o==a;this.disable=!0,0!=this.click_cnt||r?(r?s.cls="greencard":(s.right=!1,s.cls="redcard"),this.$store.commit("updateWordBingoSel",{key:i,value:s}),this.$store.dispatch("setBingoAnswer",a).then(()=>{this.$store.dispatch("processNext").then(()=>{this.timeout1=window.setTimeout(()=>{r?(s.right=!0,s.cls="",this.$store.commit("updateWordBingoSel",{key:i,value:s})):(this.last_key=i,this.last_sel=s),this.timeout1=null},n)})})):(s.right=!1,s.cls="redcard",this.$store.commit("updateWordBingoSel",{key:i,value:s}),this.$store.dispatch("soundEffectPlay","try_again"),this.timeout1=window.setTimeout(()=>{s.cls="defaultcard",this.$store.commit("updateWordBingoSel",{key:i,value:s}),this.timeout1=window.setTimeout(()=>{this.disable=!1,this.timeout1=null},1!=this.$store.state.cid?500:100)},1!=this.$store.state.cid?1e3:100)),this.click_cnt+=1}},mounted(){this.unwatch_once=this.$store.watch(t=>t.wordbingo_selections,(t,e)=>{if(t&&t.length>0){let e=t.length;e<=5&&(this.height="14vh",this.width=`calc(${100/e-2}% - 2px)`),e>5&&e<=10&&(this.height="14vh",this.width="calc(18% - 2px)"),e>10&&e<=15&&(this.height="10vh",this.width="calc(18% - 2px)"),this.unwatch_once(),this.unwatch_once=null}}),this.unwatch1=this.$store.watch(t=>t.current_step,(t,e)=>{this.step=t,this.next_step=t,this.click_cnt=0,this.disable=!1,null!==this.last_key&&null!==this.last_sel&&(this.last_sel.cls="defaultcard",this.$store.commit("updateWordBingoSel",{key:this.last_key,value:this.last_sel}),this.last_key=null,this.last_sel=null)}),this.unwatch2=this.$store.watch(t=>t.wordbingo_question_hide,(t,e)=>{!0===t&&!1===e&&(this.next_step=this.step+1)})},created(){"ios"==this.$store.state.platform&&(this.is_ios=!0)},beforeDestroy(){this.unwatch_once&&this.unwatch_once(),this.unwatch1&&this.unwatch1(),this.unwatch2&&this.unwatch2(),this.$store.commit("destroyWordBingo")}},Ka=Ha,Za=(s("80fd"),Object(p["a"])(Ka,Pa,Ma,!1,null,null,null)),Ya=Za.exports;y()(Za,{VRow:ht["a"]});var Ja=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pos-rel"},[s("div",{staticClass:"pos-abs d-flex cursor-pointer",attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("A")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("A")])]),t.$store.state.bank_questions.length>0?s("v-window",{staticClass:"bank-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"bank-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.bank_questions,(function(e,i){return s("v-window-item",{key:"bank-win-"+i,staticClass:"height-100",attrs:{value:i}},[1==+e.type&&t.$store.state.current_step==i?s("bank1",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}}):2==+e.type&&t.$store.state.current_step==i?s("bank2",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}}):3==+e.type&&t.$store.state.current_step==i?s("bank3",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}}):4==+e.type&&t.$store.state.current_step==i?s("bank4",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}}):5==+e.type&&t.$store.state.current_step==i?s("bank5",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}}):6==+e.type&&t.$store.state.current_step==i?s("bank6",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}}):7==+e.type&&t.$store.state.current_step==i?s("bank7",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}}):t._e()],1)})),1):t._e(),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.fake_btn_show,expression:"fake_btn_show"}],staticClass:"study-module-arrow pos-fix-i right",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",disabled:"",ripple:!1}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1)],1)},Xa=[],Qa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank1 height-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank1-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank1-text",value:t.onScroll,expression:"onScroll",arg:"#bank1-text"}],staticClass:"text-container lh-1d8 width-100 pt-4vh pb-4vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank1-text-con"}},[s("div",{staticClass:"b-dash dash-pad"},[t._l(t.texts,(function(e,i){return[s("span",{key:"b1-texts-span-"+i,domProps:{innerHTML:t._s(e)}}),t.selections[i]&&t.selections[i].length>0?[s("strong",{key:"b1-texts-strong-"+i,staticClass:"cursor-pointer",class:t.setClass(i,0),domProps:{textContent:t._s(t.selections[i][0])},on:{click:function(e){return t.selectWord(i,t.selections[i][0])}}}),s("b",{key:"b1-texts-b-"+i,class:t.setClass(i,-1)},[t._v(" / ")]),s("strong",{key:"b1-texts-strong-2-"+i,staticClass:"cursor-pointer",class:t.setClass(i,1),domProps:{textContent:t._s(t.selections[i][1])},on:{click:function(e){return t.selectWord(i,t.selections[i][1])}}})]:t._e()]}))],2)])]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t.$store.state.ox_show?[t._l(t.rights,(function(e,i){return[s("strong",{key:"b1-rights-strong-"+i,class:[t.answers[i]==e?"c_b":"c_r"]},[t._v("\n "+t._s(e)+"\n ")]),t.rights.length-1>i?s("b",{key:"b1-rights-b-"+i,staticClass:"grey--text"},[t._v("\n -\n ")]):t._e()]}))]:[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-strong-"+i,staticClass:"success--text"},[t._v("\n "+t._s(e)+"\n ")]),t.showBar(i)?s("b",{key:"b1-answers-b-"+i,staticClass:"success--text"},[t._v("\n -\n ")]):t._e()]}))]],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-s-2-"+i},[t._v(t._s(e))]),t.answers[i]&&t.answers[i+1]?s("b",{key:"b1-answers-b-2-"+i},[t._v("\n -\n ")]):t._e()]}))],2),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},tn=[];const en=1.8,sn=2,on=1.6,an=1.8,nn=8;var rn={name:"bankmixin",props:["resource","nextclicked","fontLevel"],data(){return{question:"",texts:[],selections:[],rights:[],answers:[],btn_active:!1,stdtext:"",scroll_pad:0,over_shadow_top:!1,over_shadow_bottom:!1,timeout1:null,unwatch1:null,unwatch2:null,text_el:null,text_child_el:null,text_child_el2:null,text_child_el3:null,font_head:en,font_std:sn,font_main:on,font_foot:an,sel_height:nn,is_scoring:this.$store.getters.getIsScoring,is_wrong_term:!1,prevent_wrong_trem:!1,timeout:null,DEFAULT_TIME:g["m"],mdi_chevron_double_right:Lt["r"]}},watch:{fontLevel(t,e){this.font_head=en*t,this.font_std=sn*t,this.font_main=on*t,this.font_foot=an*t,this.sel_height=nn*t}},computed:{isScoring(){return this.$store.getters.getIsScoring},setIconSize(){return this.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},methods:{checkScroll(){this.scroll_pad=Math.round(.02*this.$store.state.screen_height),this.onScroll()},goNext(){if(this.prevent_wrong_trem)return;if(this.btn_active=!1,this.is_wrong_term)return this.nextclicked(!0),this.$store.dispatch("processNext"),!1;let t=this.calcResult(),e="Bank";this.use&&"StoryAdvanced"==this.use&&(e="GrammarBank"),this.$store.dispatch(`update${e}Data`,{right:t.right,result_html:t.result_html}).then(()=>{if(this.$store.commit("oxRight",t.right),this.$store.commit("oxShow",!0),this.isScoring)if(t.right)this.nextclicked(!0),this.$store.dispatch("processNext");else{this.is_wrong_term=!0,this.btn_active=!0,this.prevent_wrong_trem=!0;let t=3e3;this.timeout=window.setTimeout(()=>{this.prevent_wrong_trem=!1},t)}else this.nextclicked(!0),this.$store.dispatch("processNext")})},onScroll(t){let e=null,s=null,i=null,o=null;this.text_el&&(e=this.text_el.getBoundingClientRect()),this.text_child_el&&(s=this.text_child_el.getBoundingClientRect()),this.text_child_el2&&(i=this.text_child_el2.getBoundingClientRect()),this.text_child_el3&&(o=this.text_child_el3.getBoundingClientRect());let a=e?e.bottom:0,n=s?s.bottom:0,r=e?e.top:0,l=s?s.top:0,c=i?i.height:0,d=o?o.height:0;if(a+this.scroll_padl+this.scroll_pad?this.over_shadow_top=!0:this.over_shadow_top=!1,void 0!==this.std_top&&void 0!==this.question_top&&0=i.top-this.question_top&&(t=this.question_top-e.top),this.std_top=t}},setCreated(){this.font_head=en*this.fontLevel,this.font_std=sn*this.fontLevel,this.font_main=on*this.fontLevel,this.font_foot=an*this.fontLevel,this.sel_height=nn*this.fontLevel,this.timeout1=window.setTimeout(()=>{this.nextclicked(!1),this.btn_active=!0},1e3),this.unwatch1=this.$store.watch((t,e)=>e.getCanvasWidth,(t,e)=>{this.checkScroll()}),this.unwatch2=this.$store.watch((t,e)=>e.getCanvasHeight,(t,e)=>{this.checkScroll()})},pressEnter(t){if(this.$store.state.process_next_disabled||this.$store.state.init_guide_dialog||this.$store.state.loading_percent>0)return void t.preventDefault();if(document.getElementsByClassName("v-dialog__content--active").length>0)return void t.preventDefault();let e=t.which||t.keyCode;if(13==e&&this.goNext(),e>47&&e<58){let t=e-48,s=document.getElementById("bank-sel-"+t);s&&s.click()}else if(e>64&&e<74){let t=e-64,s=document.getElementById("bank-sel-"+t);s&&s.click()}},replaceLineBreak(t){return t.replace(/\/\/\//gi,"
")},replaceBlankUnderline(t){return t.replace(/\[\[.*?\]\]/gi,t=>{let e="";if(this.resource.right){let t=Math.round(1.4*this.resource.right.length);t<15&&(t=15),e='';for(let s=0;s"}else e=t;return e})},replaceUnderline(t){let e=t.replace(/\{\{(.*?)\}\}/g,t=>{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""});return e}},mounted(){this.disablePressEnter||document.addEventListener("keyup",this.pressEnter)},beforeDestroy(){this.timeout1&&window.clearTimeout(this.timeout1),this.unwatch1&&this.unwatch1(),this.unwatch2&&this.unwatch2(),document.removeEventListener("keyup",this.pressEnter)}},ln={name:"bank1",mixins:[rn],computed:{setClass:function(){return function(t,e){return this.is_scoring&&this.$store.state.ox_show?this.answers[t]==this.rights[t]?this.selections[t][e]==this.rights[t]?"c_b":"grey--text text--lighten-3":this.selections[t][e]==this.rights[t]?"c_b":this.answers[t]?"c_r":"grey--text text--lighten-3":this.answers[t]?-1===e?"grey--text text--lighten-3":this.answers[t]==this.selections[t][e]?"success--text":"grey--text text--lighten-3":"info2--text"}},showBar:function(){return function(t){let e=!1,s=this.answers;if(t==s.length-1)return!1;for(let i=s.length;i>0;i--)s[i]&&(e=!0),t>0&&t`;e+=`${this.question}
`;for(let s=0;s${this.texts[s]}
 `,this.selections[s]&&this.selections[s].length>0){let t="";t=this.selections[s][0]==this.rights[s]?"c_b":this.selections[s][0]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][0]} `,e+=" / ";let i="";i=this.selections[s][1]==this.rights[s]?"c_b":this.selections[s][1]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][1]} `}return e+="",{right:t,result_html:e}}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank1-text"),this.text_child_el=document.getElementById("bank1-text-con"),this.checkScroll()})},created(){this.question=this.resource.question;let t=this.resource.text,e=/\[\[.*?\]\]/gi,s=[],i=t.replace(e,(t,e)=>(s.push(t),"$_$"));if(i=i.replace(/\/\/\//gi,"
"),this.texts=i.split("$_$"),s){for(let t=0;t-1?i.split("///"):i.split("//"),this.rights.push(e[0]),Math.random()>.5?this.selections.push([e[1],e[0]]):this.selections.push([e[0],e[1]])}this.answers=new Array(s.length)}this.setCreated()}},cn=ln,dn=(s("8978"),s("f977")),hn=Object(p["a"])(cn,Qa,tn,!1,null,null,null),un=hn.exports;y()(hn,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(hn,{Scroll:dn["b"]});var pn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank2 height-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank2-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank2-text",value:t.onScroll,expression:"onScroll",arg:"#bank2-text"}],staticClass:"text-container lh-1d8 width-100 pt-4vh pb-4vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank2-text-con"}},[s("div",{staticClass:"b-dash dash-pad"},[t._l(t.texts,(function(e,i){return[s("span",{key:"texts-span-"+i,domProps:{innerHTML:t._s(e)}}),t.selections[i]?[s("strong",{key:"texts-strong-"+i,staticClass:"cursor-pointer",class:t.setClass(i),domProps:{textContent:t._s(t.selections[i].txt)},on:{click:function(e){return t.selectWord(i,t.selections[i])}}})]:t._e()]}))],2)])]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b2-answers-s-"+i,class:[t.$store.state.ox_show?e.idx==t.rights[0].idx?"c_b":"c_r":"success--text"]},[t._v(t._s(t.$store.state.ox_show?t.rights[0].txt:e.txt))])]}))],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b2-answers-s-2-"+i},[t._v(t._s(e.txt))])]}))],2),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},_n=[],mn={name:"bank2",mixins:[rn],computed:{setClass:function(){return function(t){let e=this.rights[0],s=this.answers[0],i=this.selections[t];return this.is_scoring&&this.$store.state.ox_show?i.idx==e.idx?"c_b":s&&i.idx==s.idx?"c_r":"grey--text text--lighten-3":0==this.answers.length?"info2--text":s&&i.idx==s.idx?"success--text":"grey--text text--lighten-3"}}},methods:{selectWord:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e);this.answers[0],this.rights[0]},calcResult:function(){let t=0,e=this.answers[0],s=this.rights[0];e&&e.idx==s.idx&&(t=1);let i=``;i+=`${this.question}
`;for(let o=0;o${this.texts[o]}
 `,t){let o="";o=t.idx==s.idx?"c_b":e&&t.idx==e.idx?"c_r":"grey--text text--lighten-3",i+=`${t.txt} `}}return i+="",{right:t,result_html:i}}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank2-text"),this.text_child_el=document.getElementById("bank2-text-con"),this.checkScroll()})},created(){this.question=this.resource.question;let t=this.resource.right.trim(),e=this.resource.text,s=/\[\[.*?\]\]/gi,i=[],o=e.replace(s,(t,e)=>(i.push(t),"$_$"));o=o.replace(/\/\/\//gi,"
"),this.texts=o.split("$_$");let a=0;if(i)for(let n=0;n"),t=t.replace(/\[\[.*?\]\]/gi,t=>{let e="";if(this.resource.right){let t=Math.round(1.4*this.resource.right.length);t<15&&(t=15),e='';for(let s=0;s"}else e=t;return e}),this.stdtext=""+t+""):this.stdtext=t,this.isStoryAdvanced)this.rights=this.resource.rightanswer.split("//");else{let t=/^st_[0-9]$/;for(let[e,s]of Object.entries(this.resource))t.test(e)&&s&&this.rights.push(s)}this.selections=R(this.rights),this.selections=I(this.selections),this.setCreated()},mounted(){this.$nextTick(()=>{if(this.text_el=document.getElementById("bank3-text"),this.text_child_el=document.getElementById("bank3-text-con"),this.text_child_el2=document.getElementById("bank3-text-con-std"),this.stdtext){let t=document.getElementById("bank-std-ques");t&&(this.question_top=t.getBoundingClientRect().top)}this.checkScroll()})},computed:{setClass(){return function(t){if(this.is_scoring&&this.$store.state.ox_show){let e=this.selections[t];return this.rights.indexOf(e)==this.answers.indexOf(t)?this.right?"c_b correct":"black--text":"c_r wrong"}return this.answers.includes(t)?"success--text select":"grey--text"}},isStoryAdvanced(){return this.use&&"StoryAdvanced"===this.use}},methods:{selectSentence(t,e){if(this.$store.state.ox_show)return!1;if(this.$store.dispatch("soundEffectPlay","click"),this.answers.includes(e)){if(this.answers[this.answers.length-1]!=e)return!1;this.answers.splice(this.answers.indexOf(e),1)}else this.answers.push(e)},calcResult(){for(let e=0;e`;t+=`${this.question}
`,t+=`${this.stdtext} `;for(let e=0;e${this.selections[e]}
 `}return t+="",{right:this.right,result_html:t}}}},xn=yn,kn=(s("4fbf"),Object(p["a"])(xn,fn,wn,!1,null,null,null)),Cn=kn.exports;y()(kn,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(kn,{Scroll:dn["b"]});var $n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank4 height-100 common-bank"},[t.$store.state.settings.is_usinghint?s("div",{attrs:{id:"hint-btn"}},[s("button",{attrs:{type:"button",disabled:t.hint_cnt>0},on:{click:t.getHint}},[s("div",{staticClass:"btn-responsive",class:[t.hint_cnt>0?"no":"yes"]})])]):t._e(),s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank4-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank4-text",value:t.onScroll,expression:"onScroll",arg:"#bank4-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank4-text-con"}},[t._l(t.selections,(function(e,i){return[s("div",{key:"bank4-select-"+i,staticClass:"selection-btn text-left width-100",class:t.setClass(i),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(i+1)},on:{click:function(e){return t.selectSentence(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[s("b",[t._v(t._s(i+1))])]),s("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[s("span",{domProps:{textContent:t._s(e)}})])])]}))],2)]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t.$store.state.ox_show?[t._l(t.rights,(function(e,i){return[s("strong",{key:"rights-s-"+i,class:[t.selections[t.answers[i]]!=e?"c_r":t.right?"c_b":"black--text"]},[t._v(t._s(t.selections.indexOf(e)+1))]),void 0!==t.rights[i+1]?s("b",{key:"rights-b-"+i,class:[t.$store.state.ox_show?"grey--text":"success--text"]},[t._v("-")]):t._e()]}))]:[t._l(t.answers,(function(e,i){return[s("strong",{key:"else-answers-s-"+i,staticClass:"success--text"},[t._v("\n "+t._s(e+1)+"\n ")]),void 0!==t.answers[i+1]?s("b",{key:"else-answers-b-"+i,staticClass:"success--text"},[t._v("-")]):t._e()]}))]],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"answer-s-"+i},[t._v(t._s(e+1))]),void 0!==t.answers[i+1]?s("b",{key:"answer-b-"+i},[t._v("-")]):t._e()]}))],2),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},Sn=[],Tn={name:"bank4",mixins:[rn],data(){return{right:1,hint_cnt:0,hint_wrongs:[]}},computed:{setClass:function(){return function(t){if(this.is_scoring&&this.$store.state.ox_show){let e=this.selections[t];return this.rights.indexOf(e)==this.answers.indexOf(t)?this.right?"c_b correct":"black--text":"c_r wrong"}return this.answers.includes(t)?this.hint_wrongs.includes(t)?"c_r wrong":"success--text select":"grey--text"}}},methods:{selectSentence:function(t,e){if(this.$store.state.ox_show)return!1;if(this.$store.dispatch("soundEffectPlay","click"),this.answers.includes(e)){if(this.answers[this.answers.length-1]!=e)return!1;this.answers.splice(this.answers.indexOf(e),1),this.hint_wrongs.length>0&&this.hint_wrongs.includes(e)&&this.hint_wrongs.splice(this.hint_wrongs.indexOf(e),1)}else this.answers.push(e)},calcResult:function(){for(let e=0;e`;t+=`${this.question}
`;for(let e=0;e${this.selections[e]} `}return t+="",{right:this.right,result_html:t}},getHint:function(){if(this.hint_cnt>0)return!1;if(this.$store.dispatch("soundEffectPlay","click"),this.answers.length>0){let t=!1;for(let e=0;e{this.text_el=document.getElementById("bank4-text"),this.text_child_el=document.getElementById("bank4-text-con"),this.checkScroll()})},created(){this.question=this.resource.question;let t=this.resource.st_std;t?(t=t.replace(/\/\/\//gi,"
"),t=t.replace(/\[\[.*?\]\]/gi,t=>{let e="";if(this.resource.right){let t=Math.round(1.4*this.resource.right.length);t<15&&(t=15),e='';for(let s=0;s"}else e=t;return e}),this.stdtext=""+t+""):this.stdtext=t;let e=/^st_[0-9]$/;for(let[s,i]of Object.entries(this.resource))e.test(s)&&i&&this.rights.push(i);this.selections=R(this.rights),this.selections=I(this.selections),this.setCreated()}},An=Tn,In=(s("85e6"),Object(p["a"])(An,$n,Sn,!1,null,null,null)),Dn=In.exports;y()(In,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(In,{Scroll:dn["b"]});var Rn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank5 height-100 common-bank"},[s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank5-text"}},[t.stdtext?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-left align-center min-h-7vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank5-text",value:t.onScroll,expression:"onScroll",arg:"#bank5-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con"}},[t._l(t.parsed_selections,(function(e,i){return[s("div",{key:"bank5-select-"+i,staticClass:"selection-btn text-left width-100",class:t.setClass(i),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(i+1)},on:{click:function(e){return t.selectSentence(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[s("b",[t._v(t._s(i+1))])]),s("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[s("span",{domProps:{innerHTML:t._s(e)}})])])]}))],2)]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},Pn=[],Mn={name:"bank5",mixins:[rn],data(){return{parsed_selections:[]}},computed:{setClass:function(){return function(t){return this.is_scoring&&this.$store.state.ox_show&&this.rights[0]==this.selections[t]?this.rights[0]==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}}},methods:{selectSentence:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e)},calcResult:function(){let t=1;this.selections[this.answers[0]]!=this.rights[0]&&(t=0);let e=``;e+=`${this.question}
`;for(let s=0;s${s+1}. ${this.selections[s]}

`}return e+="
",{right:t,result_html:e}}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank5-text"),this.text_child_el=document.getElementById("bank5-text-con"),this.text_child_el2=document.getElementById("bank5-text-con-std"),this.checkScroll()})},created(){this.question=this.resource.question;let t=this.resource.text,e=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"];t?(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.stdtext=""+t+""):this.stdtext=t;let s=/^st_[0-9]$/,i=[];for(let[a,n]of Object.entries(this.resource))s.test(a)&&n&&i.push(n);i.includes(this.resource.right)||i.push(this.resource.right);let o=!!this.resource.right&&this.resource.right.trim();o&&e.includes(o)?this.selections=i.sort((t,s)=>(t=t.trim(),s=s.trim(),e.indexOf(t)-e.indexOf(s))):this.selections=I(i),this.parsed_selections=this.selections.map(t=>this.replaceUnderline(t)),this.rights.push(this.resource.right),this.setCreated()}},En=Mn,Bn=(s("2bfe"),Object(p["a"])(En,Rn,Pn,!1,null,null,null)),Nn=Bn.exports;y()(Bn,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(Bn,{Scroll:dn["b"]});var qn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank6 height-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw",attrs:{id:"bank-std-ques"}},[s("span",{class:{"font-weight-bold":!t.stdtext},domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"}),t.stdtext?s("div",{staticClass:"width-100 pos-abs left-0 right-0",style:"top:"+t.std_top+"px;",attrs:{id:"bank-std-div"}},[s("div",{staticClass:"std-text min-h-7vh lh-1d8 d-flex justify-center align-center font-weight-bold",style:"font-size:"+t.font_main+"vw;",domProps:{innerHTML:t._s(t.stdtext)}})]):t._e()]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank6-text"}},[t.stdtext?s("div",{staticClass:"width-100 std-text lh-1d8 min-h-7vh d-flex justify-center align-center opacity-0 font-weight-bold",style:"font-size:"+t.font_main+"vw;",attrs:{id:"bank6-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),t.is_alpha_type?[s("div",{staticClass:"width-100 std-text lh-1d8 min-h-7vh text-left b-dash dash-pad",style:"font-size:"+t.font_main+"vw; margin-bottom:2vh;",attrs:{id:"bank6-text-con-std2"}},[t._l(t.parsed_selections,(function(e,i){return[t.linebreaks.includes(i)?s("br",{key:"parsed_selections-br-"+i}):t._e(),t.selections.includes(i)?s("span",{key:"parsed_selections-span-"+i,staticClass:"cursor-pointer font-weight-bold",class:t.setClass2(i,e),attrs:{id:"bank-sel-"+(t.selections.indexOf(i)+1)},domProps:{innerHTML:t._s(e)},on:{click:function(s){t.selectNumber(t.selections.indexOf(i),e)}}}):s("span",{key:"parsed_selections-span-else-"+i,domProps:{innerHTML:t._s(e)}})]}))],2)]:[t.stdtext2?s("div",{staticClass:"width-100 std-text lh-1d8 min-h-7vh d-flex justify-left align-center b-dash dash-pad",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank6-text-con-std2"},domProps:{innerHTML:t._s(t.stdtext2)}}):t._e(),s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank6-text",value:t.onScroll,expression:"onScroll",arg:"#bank6-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank6-text-con"}},[t._l(t.parsed_selections,(function(e,i){return[s("div",{key:"bank6-select-"+i,staticClass:"selection-btn text-left width-100",class:t.setClass(i),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(i+1)},on:{click:function(e){return t.selectSentence(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[s("b",[t._v(t._s(i+1))])]),s("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[s("span",{domProps:{innerHTML:t._s(e)}})])])]}))],2)]],2),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},Ln=[],zn={name:"bank6",mixins:[rn],props:["use"],data(){return{stdtext2:"",std_top:0,question_top:0,is_alpha_type:!1,linebreaks:[],parsed_selections:[]}},created(){this.question=this.resource.question,console.log(this.resource);let t=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"],e=["①","②","③","④","⑤","⑥"],s="",i="",o="";if(this.isStoryAdvanced){s=this.resource.rightanswer.trim(),i=this.resource.passage,o=this.resource.passage;const t=/(\☆\☆(.*?)\☆\☆)/,e=this.resource.passage.match(t);e&&(e[2]?i=e[2]:e[0]?i=e[0].replace(/☆☆/g,""):e[1]&&(i=e[1].replace(/☆☆/g,"")),o=o.replace(/(\☆\☆(.*?)\☆\☆)/g,""))}else s=this.resource.right.trim(),i=this.resource.st_std,o=this.resource.text;if((t.includes(s)||e.includes(s))&&(this.is_alpha_type=!0),i?(i=this.replaceLineBreak(i),i=this.replaceBlankUnderline(i),i=this.replaceUnderline(i),this.stdtext=""+i+""):this.stdtext=i,this.is_alpha_type){let t=0;while(o.indexOf("///")>-1){let e=o.indexOf("///");if(this.linebreaks.push(e),o=o.substr(0,e)+o.substr(e+3),t++,t>200)break}o=o.replace(/\[\[.*?\]\]/gi,t=>{let e=s.length,i="";for(let s=0;s(a.push(e),t)),this.stdtext2=Array.from(this.stdtext2);for(let t=0;t"),o.includes(s)||o.push(s),t.includes(s)){let e=new Array(o.length),s=[];for(let i=0;i-1?e[a]=o[i]:s.push(o[i])}this.selections=e.concat(s)}else if(e.includes(s)){let e=new Array(o.length),s=[];for(let i=0;i-1?e[a]=o[i]:s.push(o[i])}this.selections=e.concat(s)}else this.selections=I(o);this.parsed_selections=this.selections.map(t=>this.replaceUnderline(t))}this.rights.push(s),this.setCreated()},mounted(){this.$nextTick(()=>{if(this.text_el=document.getElementById("bank6-text"),this.text_child_el=document.getElementById("bank6-text-con"),this.text_child_el2=document.getElementById("bank6-text-con-std"),this.text_child_el3=document.getElementById("bank6-text-con-std2"),this.stdtext){let t=document.getElementById("bank-std-ques");t&&(this.question_top=t.getBoundingClientRect().top)}this.checkScroll()})},computed:{setClass(){return function(t){return this.is_scoring&&this.$store.state.ox_show&&this.rights[0]==this.selections[t]?this.rights[0]==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}},setClass2(){return function(t,e){return this.is_scoring&&this.$store.state.ox_show?this.answers[0]==e?this.rights[0]==e?"c_b":"success--text":this.rights[0]==e?"c_r":"grey--text text--lighten-2":this.answers.includes(e)?"success--text":0==this.answers.length?"info--text":"grey--text text--lighten-2"}},isStoryAdvanced(){return this.use&&"StoryAdvanced"===this.use}},methods:{selectSentence(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e)},selectNumber(t,e,s){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e)},calcResult(){let t,e=1;if(this.is_alpha_type){this.rights[0]!=this.answers[0]&&(e=0),t=``,t+=`${this.question}
`;let s=this.stdtext2.join("");if(this.linebreaks.length>0){let t=[],e=0;for(let i=0;i"),e=this.linebreaks[i];t.push(s.substr(e)),s=t.join("")}if(t+="",e)s=s.split(this.rights[0]),t+=s[0],t+=`${this.rights[0]} ${this.stdtext}`,t+=s[1];else{let e=this.stdtext2.indexOf(this.rights[0]),i=this.stdtext2.indexOf(this.answers[0]),o=`${this.rights[0]} ${this.stdtext} `;if(i>-1){let a=e${this.answers[0]} `;t+=a?s.substr(0,e)+o+s.substr(e+1,i-e-1)+n+s.substr(i+1):s.substr(0,i)+n+s.substr(i+1,e-i-1)+o+s.substr(e+1)}else t+=s.substr(0,e)+o+s.substr(e+1)}t+="
"}else{this.selections[this.answers[0]]!=this.rights[0]&&(e=0),t=``,t+=`${this.question}
`,t+=`${this.stdtext}
`,t+=`${this.stdtext2}
`;for(let e=0;e${e+1}. ${this.selections[e]}

`}t+=""}return{right:e,result_html:t}}}},On=zn,jn=(s("e401"),Object(p["a"])(On,qn,Ln,!1,null,null,null)),Vn=jn.exports;y()(jn,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(jn,{Scroll:dn["b"]});var Fn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank7 height-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank7-text"}},[t.show_text?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-left align-center min-h-7vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank7-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank7-text",value:t.onScroll,expression:"onScroll",arg:"#bank7-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank7-text-con"}},[t._l(t.parsed_selections,(function(e,i){return[s("div",{key:"bank7-select-"+i,staticClass:"selection-btn text-left width-100",class:t.setClass(i),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(i+1)},on:{click:function(e){return t.selectSentence(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[s("b",[t._v(t._s(i+1))])]),s("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[s("span",{domProps:{innerHTML:t._s(e)}})])])]}))],2)]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},Gn=[],Wn={name:"bank7",mixins:[rn],data(){return{show_text:!1,parsed_selections:[]}},computed:{setClass:function(){return function(t){return this.is_scoring&&this.$store.state.ox_show&&this.rights[0]==this.selections[t]?this.rights[0]==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}}},methods:{selectSentence:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e)},calcResult:function(){let t=1;this.selections[this.answers[0]]!=this.rights[0]&&(t=0);let e=``;e+=`${this.question}
`;for(let s=0;s${s+1}. ${this.selections[s]}

`}return e+="",{right:t,result_html:e}}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank7-text"),this.text_child_el=document.getElementById("bank7-text-con"),this.checkScroll()})},created(){this.question=this.resource.question;let t=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"];if(this.resource&&null!=this.resource.text){let t=this.resource.text;t&&(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.stdtext=""+t+"",this.show_text=!0)}let e=/^st_[0-9]$/,s=[];for(let[o,a]of Object.entries(this.resource))e.test(o)&&a&&s.push(a);s.includes(this.resource.right)||s.push(this.resource.right);let i=!!this.resource.right&&this.resource.right.trim();i&&t.includes(i)?this.selections=s.sort((e,s)=>(e=e.trim(),s=s.trim(),t.indexOf(e)-t.indexOf(s))):this.selections=I(s),this.parsed_selections=this.selections.map(t=>this.replaceUnderline(t)),this.rights.push(this.resource.right),this.setCreated()}},Un=Wn,Hn=(s("6d13"),Object(p["a"])(Un,Fn,Gn,!1,null,null,null)),Kn=Hn.exports;y()(Hn,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(Hn,{Scroll:dn["b"]});const Zn=.6,Yn=1.4;var Jn={name:"bank-modules",props:["mode"],components:{Bank1:un,Bank2:vn,Bank3:Cn,Bank4:Dn,Bank5:Nn,Bank6:Vn,Bank7:Kn},directives:{Ripple:wi["a"]},data(){return{fake_btn_show:!1,font_level:1,is_mobile:!1,mdi_chevron_double_right:Lt["r"]}},computed:{setIconSize(){return this.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},callBankData(){let t=this.$store.state.current_book_id,e=this.$store.state.current_unit_id;this.$axios.get(`${g["w"]}/v1/modules/${this.mode}/getbankdata/${t}/${e}`).then(t=>{if(200==t.status&&t.data){let e=[];for(let s=0;s0||this.$store.state.unit.advanced_cnt>0)&&(e=I(e)),this.$store.commit("updateBankQuestion",e),this.$store.commit("updateModule",e.length)}})},nextClicked(t){this.fake_btn_show=t},setSize(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.$store.state.bank_font_level;if(t<0&&Zn>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Yn<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.setToast(e)}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0),this.font_level=this.$store.state.bank_font_level,this.callBankData()},beforeDestroy(){this.$store.commit("destroyBank")}},Xn=Jn,Qn=(s("a2a5"),Object(p["a"])(Xn,Ja,Xa,!1,null,null,null)),tr=Qn.exports;y()(Qn,{VBtn:ot["a"],VIcon:jt["a"],VWindow:ni["a"],VWindowItem:ri["a"]}),fi()(Qn,{Ripple:wi["b"]});var er=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"popquiz-window in-study",attrs:{id:"popquiz-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.words,(function(e,i){return s("v-window-item",{key:"popquiz-win-"+i,attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",[s("v-row",[s("v-col",{staticClass:"py-0",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"question-wrapper text-center d-flex align-center justify-center overflow-hidden"},[s("auto-text",{attrs:{maxFontSize:2.4,maxHeight:.19*t.$store.state.screen_height,src:t.setQuestion(e)}},[s("span",{staticClass:"font-weight-bold grey--text text--darken-2",domProps:{textContent:t._s(t.setQuestion(e))}})])],1),s("div",{staticClass:"selection-wrapper"},[t.$store.state.popquiz_choices&&t.$store.state.popquiz_choices.length>0?s("div",{staticClass:"padder"},[t.is_ios?[t._l(t.$store.state.popquiz_choices,(function(e,i){return[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:"2",maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])]}))]:[t._l(t.$store.state.popquiz_choices,(function(e,i){return[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:"1.4",maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])]}))]],2):t._e()])])],1)],1):t._e()],1)})),1)},sr=[],ir={name:"popquiz",components:{AutoText:Xt},data(){return{is_ios:!1,sel_korean:!0,unwatch_once:null,doc_bind:!1}},methods:{selectPopquiz:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.commit("getPopquizSelect",{key:e})},setQuestion:function(t){let e="",s=this.$store.state,i=-1;return s.except_books&&(i=JSON.parse(s.except_books).findIndex(t=>+t.book_id===+s.book.books_id)),e=this.sel_korean||-1!=i?t.word:t.mean,e},pcKeydown:function(t){const e=t.which||t.keyCode;49<=e&&52>=e&&this.selectPopquiz(null,e-49)}},computed:{setClass(){return t=>{let e="";if(this.$store.getters.getIsScoring){switch(this.$store.getters.getPopquizClass(t)){case 1:e="select";break;case 2:e="correct grey--text";break;case 3:e="select";break;case 4:e="wrong grey--text";break;default:e="grey--text";break}return e}switch(this.$store.getters.getPopquizClass(t)){case 1:e="select";break;case 2:e="select";break;case 3:e="select";break;case 4:e="grey--text";break;default:e="grey--text";break}return e}},setIcon(){return t=>this.$store.getters.getIsScoring?this.$store.getters.getPopquizClass(t):10}},mounted(){this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0),this.unwatch_once=this.$store.watch(t=>t.popquiz_choices,(t,e)=>{t&&t.length>0&&(t.join("").match(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/g)||(this.sel_korean=!1),this.unwatch_once(),this.unwatch_once=null)})},beforeDestroy(){this.$store.commit("destroyPopquiz"),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},or=ir,ar=(s("228f"),Object(p["a"])(or,er,sr,!1,null,null,null)),nr=ar.exports;y()(ar,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var rr={name:"learning-study",props:["id"],mixins:[qi],components:{Listening:eo,DictationWord:Ra,WordBingo:Ya,BankModules:tr,PopquizWord:nr,OXDisplayer:Lo,Keyboard:Go,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt,Timer:ti},data(){return{LISTENING:g["A"],WORDBINGO:g["ub"],DICTATION:g["o"],WORD_INFERENCE:g["vb"],POPQUIZ:g["N"],BOOK_BANK:g["e"],BOOK_NORMAL:g["h"],BOOK_LISTENING:g["g"],is_skip:0,is_mobile:!1,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,skip_dialog:!1,next_module_idx:0,next_module_seq:0,next_module_name:"",booktype_1:0,mdi_chevron_double_left:Lt["q"],mdi_chevron_double_right:Lt["r"],mdi_chevron_right:Lt["v"],mdi_check:Lt["n"],mdi_chevron_right_circle_outline:Lt["x"]}},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},getCurModule:function(){return this.$store.getters.getCurModule},getCurModuleSeq:function(){return this.$store.getters.getCurModuleSeq},getStepper:function(){return this.$store.getters.getCurStepper},getCurrentStep:function(){return this.$store.getters.getCurrentStep},getNextDisabled:function(){return this.$store.getters.getNextDisabled},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case g["A"]:t="in-listening";break;case g["ub"]:t="in-wordbingo";break;case g["vb"]:t="in-bankmodules";break;case g["o"]:t="in-dictation";break;default:}return t},getNextModuleSeq:function(){return this.$store.getters.getNextModuleSeq},checkBankModule:function(){return this.$store.getters.checkBankModule},showLoading:function(){return this.$store.state.loading_percent>0},getBlockClick:function(){return this.$store.getters.getBlockClick}},methods:{go:function(t){let e=this.getCurModule,s=this.getCurrentStep,i=800;return!isNaN(e)&&(!isNaN(s)&&(g["A"]>this.prev_module&&(this.prev_module=e),!this.moving&&((this.prev_step!=s||this.prev_module!=e)&&(this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),void("next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev"))))))},getStudyData:function(t,e,s,i){try{this.$store.dispatch("ingLoad").then(t=>{let e=!!t&&JSON.parse(t);if(t&&e.words_ids&&e.words_ids.length>0){let s=e.words_ids.join(",");this.$axios.get(`${g["w"]}/v2/book/getwordeach?wordids=${s}`).then(e=>{this.$store.dispatch("setStudyInfoVMA",{sentences:[],words:e.data||[],loadeddata:t}).then(e=>{this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",t).then(()=>{this.$store.dispatch("clearAudioCtx").then(async()=>{const t=await this.$store.getters.checkRequireVocaAudio;t?this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})}):this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})})})})}else this.$axios.get(`${g["w"]}/v2/book/getunitwordvoca?unitids=${i}&schedule_id=${this.$store.state.book.schedule_id}`).then(e=>{this.$store.dispatch("setStudyInfoVMA",{sentences:[],words:e.data||[],loadeddata:t}).then(t=>{this.$store.dispatch("clearAudioCtx").then(async()=>{const t=await this.$store.getters.checkRequireVocaAudio;t?this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})}):(this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)}))})})})})}catch(o){window.console.error(o)}},skipModule:function(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getCurModule)return!1;if(this.next_module_idx=this.$store.getters.getNextModule,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})},setStepperName:function(t){return"문장찾기"==t?"팝퀴즈":t}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i,o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.voca_pk&&Number(this.$store.state.unit.voca_pk),n=!!this.$store.state.book.startdate;i=0==s||1==this.$store.state.book.schedule_type_v?this.$store.state.unit.id:this.$store.state.unit.seq,o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.booktype_1=this.$store.state.book.booktype_1,this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("setIsLearned",!0),new RegExp("^"+g["A"]).test(this.$store.state.unit.v_mod)&&!a&&this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyWordBingo"),this.$store.commit("destroyDictation"),this.$store.commit("destroyBank"),this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},lr=rr,cr=Object(p["a"])(lr,Ca,$a,!1,null,null,null),dr=cr.exports;y()(cr,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var hr=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"study-index"}},[1==[t.MATCHING,t.POPQUIZ,t.WRITING_K].includes(t.getModule)&&t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),-1==t.$store.getters.getNextModule&&1==t.is_skip?s("div",{attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e(),s("v-stepper",{staticClass:"elevation-0",model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+e.seq,class:{"cursor-pointer":t.getNextModuleSeq==e.seq},attrs:{complete:t.getCurModuleSeq>e.seq,step:e.seq+1,color:"success","complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{staticClass:"success--text",domProps:{textContent:t._s(e.name)}}):s("span",{domProps:{textContent:t._s(e.name)}})]),e.seq0?s("timer"):t._e(),t.LISTENING==t.getModule&&t.$store.state.current_step>0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_left))])],1):t._e(),s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",id:"go-next-btn",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_right))])],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name)}}),s("span",{directives:[{name:"show",rawName:"v-show",value:[t.MATCHING,t.SPEAKING].includes(t.next_module_idx),expression:"[MATCHING, SPEAKING].includes(next_module_idx)"}]},[t._v("으")]),t._v("로 넘어가시겠습니까?\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("아니오")])])],1)],1)],1)],1)],1)],1)},ur=[],pr=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"height-100 d-flex",class:"video-view-"+(t.videoView?"on":"off"),style:{maxHeight:0===t.getCurModule?"60vh":""},attrs:{id:"video-listening-wrapper"}},[0===t.getCurModule&&t.getIsSynthesia?s("v-row",{staticClass:"width-100 pos-abs top-0 left-0",staticStyle:{margin:"0 auto"}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-switch",{staticClass:"ai-switch width-100 mt-0",class:"mode-"+t.getCurModule,attrs:{label:"AI 선생님",color:"success","hide-details":"",ripple:!1,dense:!0},on:{change:function(e){return t.switchAiTeacher(e)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}},model:{value:t.switch_val,callback:function(e){t.switch_val=e},expression:"switch_val"}})],1)],1):t._e(),s("video-player",{key:"synthesia-video-player-"+t.videoKey,ref:"synthesia-video-player",staticClass:"width-100 height-100",attrs:{id:"synthesia-video-player",blob:t.getVideoURL}}),s("v-window",{staticClass:"listening-window in-study left-0 right-0 top-0 bottom-0 pos-rel",staticStyle:{padding:"0"},style:99===t.getCurModule?"flex: 1; height: inherit;":"",attrs:{id:"listening-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[t.$store.state.words.length>0?t._l(t.$store.state.words,(function(e,i){return s("v-window-item",{key:"listening-win-"+i,staticClass:"height-100",attrs:{value:i}},[s("word-sheet",{attrs:{row:e,idx:i,flashShow:t.flashShow,img:t.$store.state.voca_imgs[i]}})],1)})):t._e(),t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"listening-win-"+(t.$store.state.words.length+i),staticClass:"height-inherit",attrs:{value:t.$store.state.words.length+i}},[s("sentence-sheet",{key:"sentence-sheet-"+i+"-"+t.sheetKey,staticClass:"video-listening",attrs:{row:e,flashShow:t.flashShow,font_level:t.font_level,show_eng:t.show_eng,show_kor:t.show_kor}})],1)}))],2)],1)},_r=[],mr={name:"video-listening",components:{SentenceSheet:Wi,WordSheet:Ji,VideoPlayer:de},props:["font_level","show_eng","show_kor"],data(){return{switch_val:!1,videoKey:0,sheetKey:0,firstCheck:!1,propsWatch:null}},created(){this.switch_val="synthesia"===this.$store.state.listening_mode,this.propsWatch=this.$watch(()=>[this.font_level,this.show_eng,this.show_kor],()=>{this.sheetKey++})},mounted(){},watch:{},computed:{flashShow(){return this.$store.getters.getFlashShow},getCurModule(){return this.$store.getters.getCurModule},getIsSynthesia(){return this.$store.getters.isSynthesia},getTtsPlaying(){return this.$store.getters.getTtsPlaying},getCurStep(){return this.$store.state.current_step},getVideoURL(){const t=this.$store.state.sentences,e=this.$store.state.video_ctx,s=this.getCurStep;return 0===this.$store.state.loading_percent&&t.length===e.length&&e[s]&&(console.log("getVideoURL",s,e[s]),this.increaseVideoKey()),e[s]||null},videoView(){let t=!1;return 99===this.getCurModule?t=0===this.$store.state.loading_percent:0===this.getCurModule&&(t=0===this.$store.state.loading_percent&&this.switch_val),t}},methods:{switchAiTeacher(t){console.log(t),this.$store.state.listening_mode=t?"synthesia":"text",this.$store.dispatch("updateSynthesiaOption",{column:"listening_synthesia",value:+t}),this.$store.state.current_tts_audio&&("ios"===this.$store.state.platform?this.$store.dispatch("pauseAudioIos"):(this.$store.state.current_tts_audio.pause(),this.$store.state.current_tts_audio.currentTime=0)),this.$store.state.current_synthesia_video&&(this.$store.state.current_synthesia_video.pause(),this.$store.state.current_synthesia_video.currentTime=0),this.$store.commit("setTTSPlayingStatus",!1)},increaseVideoKey(){this.videoKey++}},beforeDestroy(){this.propsWatch()}},gr=mr,br=(s("3f0e"),Object(p["a"])(gr,pr,_r,!1,null,null,null)),vr=br.exports;y()(br,{VCol:rt["a"],VRow:ht["a"],VSwitch:ye["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var fr={name:"learning-study",props:["id"],mixins:[qi],components:{VideoListening:vr,Listening:eo,Matching:ro,Popquiz:So,WritingK:ra,WritingKMobile:pa,Speaking:fa,OXDisplayer:Lo,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt,Timer:ti},data(){return{LISTENING:g["A"],MATCHING:g["D"],POPQUIZ:g["N"],WRITING_K:g["xb"],SPEAKING:g["V"],moduleKorname:g["Cb"],is_skip:0,is_mobile:!1,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,skip_dialog:!1,next_module_idx:0,next_module_name:"",mdi_chevron_double_left:Lt["q"],mdi_chevron_double_right:Lt["r"],mdi_chevron_right:Lt["v"],mdi_check:Lt["n"],mdi_chevron_right_circle_outline:Lt["x"]}},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},getModule(){return this.$store.getters.getCurModule},getCurModuleSeq(){return this.$store.getters.getCurModuleSeq},getStepper(){return this.$store.getters.getCurStepper},getCurrentStep(){return this.$store.getters.getCurrentStep},getNextDisabled(){return this.$store.getters.getNextDisabled},getIsSynthesia(){return this.$store.getters.isSynthesia},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case g["A"]:t="in-listening";break;case g["D"]:t="in-matching";break;case g["N"]:t="in-popquiz";break;case g["xb"]:t="in-writing-k";break;case g["V"]:t="in-speaking";break;default:}return t},checkExternalKeyboard(){return!(void 0==window.ExternalKeyboard||!window.ExternalKeyboard.isUsed)},getNextModuleSeq(){return this.$store.getters.getNextModuleSeq},showLoading(){return this.$store.state.loading_percent>0},getBlockClick(){return this.$store.getters.getBlockClick}},methods:{go(t){let e=this.getModule,s=this.getCurrentStep,i=800;return!isNaN(e)&&(!isNaN(s)&&(g["A"]>this.prev_module&&(this.prev_module=e),!this.moving&&((this.prev_step!=s||this.prev_module!=e)&&(this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),void("next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev"))))))},getStudyData:async function(t,e,s,i){try{let t,o;if(0==Number(s))t=await this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${i}`),o={data:[]};else{if(1==this.$store.state.book.schedule_type_v)t=await this.$axios.get(`${g["w"]}/v1/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&type=${g["B"]}&s_u_id=${this.$store.state.unit.s_u_id}&unit_id=${this.$store.state.unit.id}`);else{let s=this.$store.state.book.sentence_cnt,o=i*s;t=await this.$axios.get(`${g["w"]}/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&start=${o}&leng=${s}`)}o={data:[]}}this.$store.dispatch("ingLoad").then(e=>{this.$store.dispatch("setStudyInfo",{sentences:t.data||[],words:o.data||[],loadeddata:e}).then(t=>{e&&!this.$store.state.init?(this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",e).then(()=>{this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareVideoSource"),this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getModule)})})})})):this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareVideoSource"),this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.dispatch("initPage").then(()=>{this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getModule)})})})})})})})}catch(o){window.console.error(o)}},skipModule(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getModule)return!1;if(this.next_module_idx=this.$store.getters.getNextModule,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i=0==s?this.$store.state.unit.id:this.$store.state.unit.seq,o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.major_pk&&Number(this.$store.state.unit.major_pk),n=!!this.$store.state.book.startdate;o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("setIsLearned",!0),this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyMatching"),this.$store.commit("destroyPopquiz"),this.$store.commit("destroyWritingK"),this.$store.commit("destroySpeaking"),this.$store.commit("destroyBank"),this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},wr=fr,yr=Object(p["a"])(wr,hr,ur,!1,null,null,null),xr=yr.exports;y()(yr,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var kr=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"study-index"}},[t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),-1==t.$store.getters.getNextModule&&1==t.is_skip?s("div",{attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e(),s("v-stepper",{staticClass:"elevation-0 page-a",class:{"visibility-hidden":t.$store.state.modules&&1===t.$store.state.modules.length},model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+e.seq,class:{"cursor-pointer":t.getNextModuleSeq==e.seq},attrs:{complete:t.getCurModuleSeq>e.seq,step:e.seq+1,color:"info2","complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{staticClass:"info2--text",domProps:{textContent:t._s("딕테이션"==e.name?"빈칸추론":e.name)}}):s("span",{domProps:{textContent:t._s("딕테이션"==e.name?"빈칸추론":e.name)}})]),e.seq=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Ar<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.setToast(e),this.setFontSize(),this.setQuestionSize("")},setFontSize:function(){this.font_head=Ir*this.font_level,this.font_main=Dr*this.font_level},setQuestionSize:function(t){this.$nextTick(()=>{if(!this.std_div){if(this.std_div=document.getElementById("std-div-"+this.$store.state.current_step),!this.std_div)return;this.std_div_width=this.std_div.getBoundingClientRect().width}t||(t=this.$store.state.dictation_select);let e=t.join(""),s="Inconsolata",i=this.$store.state.screen_width/100*this.font_head;if(this.text_width=B(e,s,i),this.text_width&&this.std_div_width){let t=Math.floor(this.text_width/this.std_div_width);this.change_width=t>0?Math.floor((this.text_width+30)/2):this.std_div_width}})}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0),this.$store.state.is_mobile&&(this.is_mobile=!0),this.font_level=this.$store.state.bank_font_level,this.setFontSize(),this.unwatch1=this.$store.watch(t=>t.dictation_select,t=>{this.setQuestionSize(t)}),this.unwatch2=this.$store.watch(t=>t.screen_width,t=>{this.setQuestionSize("")})},beforeDestroy(){this.$store.commit("destroyDictation"),this.unwatch1&&this.unwatch1(),this.unwatch2&&this.unwatch2()}},Pr=Rr,Mr=(s("30ad"),Object(p["a"])(Pr,$r,Sr,!1,null,null,null)),Er=Mr.exports;y()(Mr,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]}),fi()(Mr,{Ripple:wi["b"]});var Br,Nr,qr={name:"learning-study",props:["id"],mixins:[qi],components:{BankModules:tr,DictationAdvanced:Er,Keyboard:Go,OXDisplayer:Lo,Loading:Bt},data(){return{DICTATION:g["o"],PARAGRAPH_ORDER:g["M"],READING_QUIZ:g["Q"],GRAMMER_QUIZ:g["v"],is_skip:0,is_mobile:!1,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,skip_dialog:!1,next_module_idx:0,next_module_seq:0,next_module_name:"",mdi_chevron_double_right:Lt["r"],mdi_chevron_right:Lt["v"],mdi_check:Lt["n"],mdi_chevron_right_circle_outline:Lt["x"]}},computed:{getCurModule:function(){return this.$store.getters.getCurModule},getCurModuleSeq:function(){return this.$store.getters.getCurModuleSeq},getStepper:function(){return this.$store.getters.getCurStepper},getCurrentStep:function(){return this.$store.getters.getCurrentStep},getNextDisabled:function(){return this.$store.getters.getNextDisabled},getNextModuleSeq:function(){return this.$store.getters.getNextModuleSeq},checkBankModule:function(){return this.$store.getters.checkBankModule},showLoading:function(){return this.$store.state.loading_percent>0},getBlockClick:function(){return this.$store.getters.getBlockClick},checkBlick:function(){return this.$store.getters.getIsScoring&&this.$store.state.checked_wrong}},methods:{go:function(t){if(this.$store.state.prevent_click)return!1;let e=this.getCurModule,s=this.getCurrentStep,i=800;return!isNaN(e)&&(!isNaN(s)&&(this.prev_module=e,!this.moving&&((this.prev_step!=s||this.prev_module!=e)&&(this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),void("next"==t&&this.$store.dispatch("processNext"))))))},getStudyData:function(t,e,s,i){try{this.$store.dispatch("ingLoad").then(t=>{let e=!!t&&JSON.parse(t);if(t&&e.sentences_ids&&e.sentences_ids.length>0){let s=e.sentences_ids.join(",");this.$axios.get(`${g["w"]}/v1/book/getsentenceeach?senids=${s}`).then(e=>{let s=e.data;this.$store.dispatch("setStudyInfoVMA",{sentences:s,words:[],loadeddata:t}).then(e=>{this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",t).then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})})}else this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${i}`).then(e=>{let s=e.data;s=I(s),s=s.splice(0,5),this.$store.dispatch("setStudyInfoVMA",{sentences:s,words:[],loadeddata:t}).then(t=>{this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})})})}catch(o){window.console.error(o)}},skipModule:function(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getCurModule)return!1;if(this.next_module_idx=this.$store.getters.getNextModule,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})},setCustomSize:function(t){return.8*t}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i,o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.advanced_pk&&Number(this.$store.state.unit.advanced_pk),n=!!this.$store.state.book.startdate;i=0==s||1==this.$store.state.book.schedule_type_v?this.$store.state.unit.id:this.$store.state.unit.seq,o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("setIsLearned",!0),a||this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyDictation"),this.$store.commit("destroyBank"),this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},Lr=qr,zr=Object(p["a"])(Lr,kr,Cr,!1,null,null,null),Or=zr.exports;y()(zr,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var jr={},Vr=Object(p["a"])(jr,Br,Nr,!1,null,null,null),Fr=Vr.exports,Gr=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"result-contents v-book-index static-container",attrs:{id:"result-index"}},[s("left-bar-static",{staticClass:"child-white"},[s("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[s("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[s("v-switch",{staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"틀린 문제만 보기",color:"success","hide-details":"",ripple:!1,dense:t.is_mobile,disabled:t.disableSwitch},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}},model:{value:t.wrong_show,callback:function(e){t.wrong_show=e},expression:"wrong_show"}})],1),s("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[t.use_main&&t.ADVANCED_RESULT!==t.setProcessType?s("v-switch",{staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"주요 문제만 보기",color:"success","hide-details":"",ripple:!1,dense:t.is_mobile,disabled:t.disableSwitch},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}},model:{value:t.main_show,callback:function(e){t.main_show=e},expression:"main_show"}}):t._e()],1),s("div",{staticStyle:{width:"100%",height:"24px",flex:"1 1 auto"}},[s("div",{staticStyle:{"border-top":"thin solid #edeeef",width:"auto","margin-left":"12%","margin-right":"12%","margin-top":"4%"}})])]),t.showLeftBtns?s("div",{staticStyle:{position:"absolute",width:"100%",bottom:"0"}},[s("div",{staticClass:"px-4 pt-2",staticStyle:{width:"100%"}},[null!=t.leftbar_btn_1&&null!=t.leftbar_btn_1_cls?s("v-btn",{attrs:{block:"","x-large":"",color:t.leftbar_btn_1_cls,dark:"",elevation:"0",ripple:!1},on:{click:t.openConfirm}},[s("b",{staticClass:"subtitle",domProps:{textContent:t._s(t.leftbar_btn_1)}}),s("v-icon",{attrs:{dark:"",right:""}},[t._v(t._s(t.mdi_chevron_right))])],1):t._e()],1),s("div",{staticClass:"px-4 pb-4 pt-2",staticStyle:{width:"100%"}},[null!=t.leftbar_btn_2&&null!=t.leftbar_btn_2_cls?s("v-btn",{staticStyle:{background:"#fff"},attrs:{outlined:"",block:"","x-large":"",color:t.leftbar_btn_2_cls,ripple:!1},on:{click:t.exitLeaning}},[s("b",{staticClass:"subtitle",domProps:{textContent:t._s(t.leftbar_btn_2)}}),s("v-icon",{attrs:{dark:"",right:""}},[t._v(t._s(t.mdi_chevron_right))])],1):t._e()],1)]):t._e()]),s("div",{staticClass:"right"},[s("v-sheet",{staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[s("result-list",{attrs:{wrongshow:t.wrong_show,mainshow:t.main_show,setChildTab:t.setChildTab,checkMainExist:t.checkMainExist}})],1)],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog},model:{value:t.$store.state.dialog_leaning_result,callback:function(e){t.$set(t.$store.state,"dialog_leaning_result",e)},expression:"$store.state.dialog_leaning_result"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("학습 능률을 위해 "+t._s(t.dialog_content)+" 권장합니다."),s("br"),t._v(t._s(t.dialog_content)+"\n 시작하시겠습니까?")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goDirect}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.resultEndDialog}},[s("span",{staticClass:"title"},[t._v("종료")])])],1)],1)],1)],1)],1)],1)},Wr=[],Ur=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"result-wrapper"}},[i("v-tabs",{staticClass:"height-100",attrs:{id:"result-list","background-color":"grey lighten-4",color:t.type_class,light:"",grow:"","hide-slider":!0,"show-arrows":!1},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab",{key:"result-tab-0",staticClass:"first-tab",class:"bg-"+t.type_class,attrs:{ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("b",{staticClass:"tab-title"},[t._v("Report")])]),t._l(t.tabs,(function(e,s){return i("v-tab",{key:"result-tab-"+(s+1),attrs:{ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tab,expression:"tab == 0"}],staticClass:"under-line pos-abs-i width-100 bottom-0 left-0",class:"bg-"+t.type_class}),i("b",{staticClass:"tab-title"},[t._v(t._s(t.setTitle(e)))])])})),i("v-tabs-items",{class:{"bg-grey":0==t.tab},staticStyle:{"overflow-y":"auto"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab-item",{key:"result-tab-item-0",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("v-container",{staticClass:"pa-0",attrs:{fluid:""}},[i("v-row",[i("v-col",{staticClass:"vertical-helf py-0 pl-0 pr-1 height-100",attrs:{cols:"8"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"before-divider divider-bottom row-20per"},[i("v-col",{staticClass:"pl-6",attrs:{cols:"12"}},[t._v("레포트 정보\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))]),t._v("\n   "),i("span",{staticClass:"grey--text text--darken-1"},[t._v(t._s(t.postdate))]),t._v("\n   "),i("span",{staticClass:"grey--text text--darken-1"},[t._v("("+t._s(t.cnttext)+")")])],1)],1),i("v-row",{staticClass:"before-divider divider-bottom row-40per"},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"7.5vh",width:"7.5vh",contain:"",src:s("c60a"),"lazy-src":s("c60a"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[i("h3",{staticClass:"title ellipsis width-100"},[t._v("\n "+t._s(t.$store.state.uname)+"\n ")]),i("span",{staticClass:"grey--text text--darken-1 ellipsis width-100"},[t._v("\n "+t._s(t.classname)+"\n ")])])],1),i("v-row",{staticClass:"row-40per"},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"8vh",width:"8vh",contain:"",src:s("24dd"),"lazy-src":s("24dd"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[50===+t.$store.state.book.booktype?[i("h3",{staticClass:"title ellipsis width-100",domProps:{textContent:t._s("내공백서 스토리북 Lv."+t.$store.state.book.level)}}),i("span",{staticClass:"grey--text text--darken-1 ellipsis width-100",domProps:{textContent:t._s(t.setStoryBookUnitName())}})]:[i("h3",{staticClass:"title ellipsis width-100",domProps:{textContent:t._s(t.$store.state.book.schedule_name)}}),i("span",{staticClass:"grey--text text--darken-1 ellipsis width-100",domProps:{textContent:t._s(t.$store.state.unit.name)}})]],2)],1)],1)],1),i("v-col",{staticClass:"vertical-helf pl-0 pt-0 pr-0 pb-0 height-100",attrs:{cols:"4"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6",attrs:{cols:"12"}},[t._v("\n 종합 스코어\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"row-80per",attrs:{id:"circle-row"}},[i("v-col",{staticClass:"text-center",attrs:{id:"circle-col",cols:"12"}},[t.circle_size>0&&t.circle_width>0?i("v-progress-circular",{class:{"gradient-circle-green":"success"===t.type_class,"gradient-circle-orange":"warning"===t.type_class,"gradient-circle-sky":"info2"===t.type_class},style:"font-size:"+t.circle_font+"px; font-weight:500;",attrs:{indeterminate:!1,rotate:.3,size:t.circle_size,value:t.avgscore,width:t.circle_width,color:t.type_class}},[i("span",{staticClass:"black--text"},[t._v("\n "+t._s(t.avgscore)),i("small",[t._v("점")])])]):t._e()],1)],1)],1)],1)],1),i("v-row",[i("v-col",{staticClass:"vertical-helf px-0 pb-0 pt-1 height-100",attrs:{cols:"12"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6",attrs:{cols:"12"}},[t._v("\n 레포트 분석\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"row-80per padding-x-10per",staticStyle:{position:"relative"}},[i("v-col",{staticClass:"col-center py-0",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("a383"),"lazy-src":s("a383"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 학습 문항\n ")]),i("h3",{staticClass:"black--text title"},[t._v(t._s(t.wordcnt)+"문항")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("3868"),"lazy-src":s("3868"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 오답 문항\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.wrongcnt?t.wrongcnt:0)+"개\n ")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("6502"),"lazy-src":s("6502"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 오답률\n ")]),i("h3",{staticClass:"black--text title"},[t._v(t._s(t.wrongpercent)+"%")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",{staticClass:"detail-caption"},[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("185c"),"lazy-src":s("185c"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 학습 시간\n ")]),i("h3",{staticClass:"black--text title"},[t._v(t._s(t.totminute)+"분")])],1)])],1)],1)],1)],1)],1)],1),t._l(t.tabs,(function(e,o){return i("v-tab-item",{key:"result-tab-item-"+(o+1),attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("v-list",{staticClass:"py-0",attrs:{flat:""}},[i("v-list-item-group",{attrs:{mandatory:"",color:"indigo"},model:{value:t.model,callback:function(e){t.model=e},expression:"model"}},[t.$data[e]&&t.$data[e].length?[t.wrongshow&&!t.$data[e].some((function(s){return t.showWords(s.right,s.main,e)}))?[i("v-row",{staticClass:"pa-0",staticStyle:{width:"100%"},attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("div",{staticClass:"text-center grey--text",staticStyle:{width:"100%","padding-top":"2rem"}},[t._v("\n 틀린 문제가 없습니다.\n ")])])],1)]:t._e(),t._l(t.$data[e],(function(a,n){return[t.showWords(a.right,a.main,e)?i("v-list-item",{key:"result-tab-item-"+(o+1)+"-"+n,staticClass:"border-ede thin-b",attrs:{ripple:!1}},[i("v-row",{staticClass:"pa-0",attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[i("v-list-item-content",{staticClass:"py-3 d-block"},[i("div",{staticClass:"number-wrap text-center d-block ma-auto overflow-hidden",domProps:{textContent:t._s(n+1)}})])],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[t.is_ios?i("v-list-item-content",{staticClass:"py-3 d-block",staticStyle:{"max-height":"54px","padding-left":"10%"}},["speaking"==e?[a.right&&1===Number(JSON.parse(a.right))?i("img",{attrs:{src:s("963b"),width:"30",height:"30"}}):a.right&&2===Number(JSON.parse(a.right))?i("img",{attrs:{src:s("4a42"),width:"30",height:"30"}}):i("img",{attrs:{src:s("7927"),width:"30",height:"30"}})]:[a.right&&JSON.parse(a.right)?i("img",{attrs:{src:s("963b"),width:"30",height:"30"}}):i("img",{attrs:{src:s("7927"),width:"30",height:"30"}})]],2):i("v-list-item-content",{staticClass:"py-3 d-block",staticStyle:{"max-height":"54px","padding-left":"10%"}},["speaking"==e?[a.right&&1===Number(JSON.parse(a.right))?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-"+(o+1)+"-"+n}}):a.right&&2===Number(JSON.parse(a.right))?i("icon-report-t",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"t-"+(o+1)+"-"+n}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-"+(o+1)+"-"+n}})]:[a.right&&JSON.parse(a.right)?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-"+(o+1)+"-"+n}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-"+(o+1)+"-"+n}})]],2)],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"9"}},[i("v-list-item-content",{staticStyle:{padding:"10px 0","min-height":"54px"}},[i("v-list-item-title",{domProps:{innerHTML:t._s(t.distContents(a,e))}})],1)],1),t.bank_modules.includes(e)?"speaking"!=e||t.VOCA_ADVANCED_RESULT!==t.process_type||t.is_ios?t._e():i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[i("v-row",{staticStyle:{height:"100%"},attrs:{dense:"","no-gutters":""}},[i("v-col",{staticClass:"end-col",attrs:{cols:"6","offset-md":"6","offset-sm":"6"}},[i("div",{staticClass:"cap-wrapper"},[i("circular-audio-player",{attrs:{id:a.id,audio_src:t.HOST+"/speaking/"+t.$store.state.cid+"/"+t.$store.state.uid+"/u-"+t.$store.state.uid+"-s-"+t.$store.state.book.schedule_id+"-b-"+t.$store.state.book.id+"-"+a.id}})],1)])],1)],1):i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},["speaking"!=e||t.is_ios?i("v-row",{staticStyle:{height:"100%"},attrs:{dense:"","no-gutters":""}},[i("v-col",{staticClass:"end-col",attrs:{cols:"6","offset-md":"6","offset-sm":"6"}},[JSON.parse(a.right)||["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"].includes(e)?t._e():i("div",{staticClass:"width-100"},[t.checkIncludesId(a.id)?i("v-btn",{attrs:{text:"","x-large":"",icon:"",color:"success",disabled:t.pocket_disabled,ripple:!1},on:{click:function(e){return t.deletePocket(a.id)}}},[i("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(2).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_bookmark))])],1):i("v-btn",{attrs:{text:"","x-large":"",icon:"",color:"lightgrey",disabled:t.pocket_disabled,ripple:!1},on:{click:function(e){return t.insertPocket(a.id)}}},[i("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(2).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_bookmark_outline))])],1)],1)])],1):i("v-row",{staticClass:"speaking-ops-row height-100",attrs:{dense:"","no-gutters":""}},[i("v-col",{staticClass:"end-col",attrs:{cols:"6"}},[JSON.parse(a.right)?t._e():i("div",{staticClass:"width-100"},[t.checkIncludesId(a.id)?i("v-btn",{attrs:{text:"","x-large":"",icon:"",color:"success",disabled:t.pocket_disabled,ripple:!1},nativeOn:{click:function(e){return t.deletePocket(a.id)}}},[i("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(2).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_bookmark))])],1):i("v-btn",{attrs:{text:"","x-large":"",icon:"",color:"lightgrey",disabled:t.pocket_disabled,ripple:!1},nativeOn:{click:function(e){return t.insertPocket(a.id)}}},[i("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(2).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_bookmark_outline))])],1)],1)]),i("v-col",{staticClass:"end-col",attrs:{cols:"6"}},[i("div",{staticClass:"cap-wrapper"},[i("circular-audio-player",{attrs:{id:a.id,audio_src:t.HOST+"/speaking/"+t.$store.state.cid+"/"+t.$store.state.uid+"/u-"+t.$store.state.uid+"-s-"+t.$store.state.book.schedule_id+"-b-"+t.$store.state.book.id+"-"+a.id}})],1)])],1)],1)],1)],1):t._e()]}))]:[i("v-list-item",{staticClass:"border-ede thin-b",attrs:{ripple:!1}},[i("v-row",{staticClass:"pa-0",attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-list-item-content",{staticClass:"py-3 d-block"},[i("div",{staticClass:"text-center grey--text"},[t._v("\n Skip. 학습된 내용이 없습니다.\n ")])])],1)],1)],1)]],2)],1)],1)}))],2)],2)],1)},Hr=[],Kr=s("c8b4"),Zr=Kr["a"],Yr=(s("eda7"),s("f5ce"),Object(p["a"])(Zr,Ur,Hr,!1,null,"1419bc56",null)),Jr=Yr.exports;y()(Yr,{VBtn:ot["a"],VCard:at["a"],VCol:rt["a"],VContainer:lt["a"],VIcon:jt["a"],VImg:qs["a"],VList:Ls["a"],VListItem:zs["a"],VListItemContent:Os["a"],VListItemGroup:js["a"],VListItemTitle:Os["b"],VProgressCircular:Vs["a"],VRow:ht["a"],VTab:as["a"],VTabItem:ns["a"],VTabs:rs["a"],VTabsItems:ls["a"]});var Xr={name:"learning-result",props:{tab:[String,Number],setBookInfo:{type:Function,default:()=>0},setBookInfoVMA:{type:Function,default:()=>0},setBookInfoGRAMMAR:{type:Function,default:()=>0},setDialogText:{type:Function,default:()=>0},setLearningDialog:{type:Function,default:()=>0},setDialogVMA:{type:Function,default:()=>0}},components:{LeftBarStatic:Is["a"],ResultList:Jr,Loading:Bt},data(){return{STUDY_RESULT:g["bb"]+g["R"],TEST_RESULT:g["hb"]+g["R"],VOCA_RESULT:g["pb"]+g["R"],MAJOR_RESULT:g["B"]+g["R"],ADVANCED_RESULT:g["a"]+g["R"],VOCA_MAJOR_RESULT:g["sb"]+g["R"],VOCA_ADVANCED_RESULT:g["qb"]+g["R"],BOOK_BANK:g["e"],BOOK_NORMAL:g["h"],BOOK_VOCA:g["j"],BOOK_LISTENING:g["g"],GRAMMAR_THEORY_RESULT:g["u"]+g["R"],GRAMMAR_BASICS_RESULT:g["s"]+g["R"],GRAMMAR_DEEP_RESULT:g["t"]+g["R"],wrong_show:!1,main_show:!1,dialog3:!1,dialog4:!1,dialog6:!1,dialog8:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",is_restudy:0,child_tab:0,use_main:!1,booktype_1:0,dialog_content:"",leftbar_btn_1_cls:null,leftbar_btn_1:null,leftbar_btn_2_cls:null,leftbar_btn_2:null,is_type_v:!1,next_unit:!1,is_mobile:!1,mdi_chevron_right:Lt["v"],grammar_l_type:null}},created(){this.is_restudy=this.$store.state.settings.is_restudy,this.booktype_1=this.$store.state.book.booktype_1,this.$store.state.is_mobile&&(this.is_mobile=!0),this.setBtnText(),1==this.$store.state.book.schedule_type&&1==this.$store.state.book.schedule_type_v&&this.booktype_1!=g["j"]&&(this.is_type_v=!0)},watch:{disableSwitch:{deep:!0,handler(t){t&&(this.wrong_show=!1,this.main_show=!1)}}},computed:{setPopupInfo(){return this.$store.state.unit&&this.$store.state.book?`${this.$store.state.book.schedule_name?this.$store.state.book.schedule_name:this.$store.state.book.bookname}
${this.$store.state.unit.name}`:""},setProcessType(){return this.$store.state.process_type},showLeftBtns(){let t=!0;return"report-lookup-learning"===this.$route.name&&(t=!1),"schedule-learningschedule"===this.$route.name&&(t=!1),t},disableSwitch(){return 0==this.child_tab},showLoading(){return this.$store.state.loading_percent>0}},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},exitSound(){this.$store.dispatch("soundEffectPlay","exit")},openConfirm(){let t=R(this.$store.state.book),e=R(this.$store.state.unit),s=this.$store.state.process_type.replace("R",""),i=+t.schedule_type,o=t.booktype_1,a=+t.category,n=null,r=null,l=0;if("coursebook"==this.$route.name&&(a=1),console.log("cat",a),console.log("type",s),console.log("booktype_1",o),0===i)switch(a){case 1:case 4:case 10:switch(o){case g["h"]:case g["g"]:console.log("여기",s,g["pb"]),s===g["pb"]?(n=g["bb"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===g["bb"]&&(n=g["hb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;case g["j"]:s===g["sb"]&&(n=g["qb"],e.major_cnt=+e.major_cnt+1,l=e.major_cnt);break;case g["e"]:s===g["pb"]?(n=g["B"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===g["B"]&&(n=g["a"],e.major_cnt=+e.major_cnt+1,l=e.major_cnt);break;case g["f"]:s===g["u"]?(n=g["s"],e.grammar_theory_cnt=+e.grammar_theory_cnt+1,l=e.grammar_theory_cnt):s===g["s"]&&(n=g["t"],e.grammar_basics_cnt=+e.grammar_basics_cnt+1,l=e.grammar_basics_cnt);break;default:break}break;case 2:case 3:switch(o){case g["h"]:case g["g"]:s===g["pb"]?(n=g["bb"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===g["bb"]&&(n=g["hb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;case g["e"]:s===g["pb"]?(n=g["B"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===g["B"]&&(n=g["a"],e.major_cnt=+e.major_cnt+1,l=e.major_cnt);break;default:break}break;default:break}else if(1===i)switch(o){case g["h"]:case g["g"]:s===g["bb"]&&(n=g["hb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;case g["j"]:s===g["sb"]&&(n=g["qb"],e.major_cnt=+e.major_cnt+1,l=e.major_cnt);break;case g["e"]:s===g["bb"]&&(n=g["hb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;default:break}console.log("next_type",n);let c="";switch(n){case g["bb"]:if(this.is_restudy>0&&l>2)this.clickSound(),r=7;else switch(e.study_status){case 1:case 2:this.exitSound(),r=4;break;case 3:this.clickSound(),r=3;break;default:this.clickSound(),r=0;break}break;case g["hb"]:if(this.is_restudy>0&&l>2)this.clickSound(),r=7;else if(null==e.study_pk||Number(e.study_cnt)<1)this.exitSound(),r=1;else switch(e.test_status){case 1:case 2:this.exitSound(),r=6;break;case 3:this.clickSound(),r=5;break;default:this.clickSound(),r=2;break}break;case g["pb"]:case g["B"]:case g["sb"]:case g["a"]:case g["qb"]:let t=o==g["j"]?5:0;switch(n){case g["pb"]:c="voca_status";break;case g["B"]:case g["sb"]:c="major_status";break;case g["a"]:case g["qb"]:c="advanced_status";break;default:}if(this.is_restudy>0&&l>2?(this.clickSound(),r=12+t,this.setDialogVMA(n)):n!=g["a"]&&n!=g["qb"]||(null==e.major_pk||Number(e.major_cnt)<1)&&(this.exitSound(),r=11+t,this.setDialogVMA(n)),null==r)switch(e[c]){case 1:case 2:this.exitSound(),r=10+t;break;case 3:this.clickSound(),r=9+t;break;default:this.clickSound(),r=8+t;break}break;case g["s"]:case g["t"]:switch(n===g["s"]?c="basics_status":n===g["t"]&&(c="deep_status"),e[c]){case 1:case 2:this.exitSound(),r=30;break;case 3:this.clickSound(),r=29;break;default:this.clickSound(),r=28;break}this.grammar_l_type=r;break;default:break}window.console.log(n,r,e),null!==n&&(this.setDialogVMA(n),this.setDialogText(t,e,n,r,this.setLearningDialog))},goStudy1(t){if(!this.$store.state.book.id||!this.$store.state.unit)return!1;this.setBookInfo(this.$store.state.book,this.$store.state.unit,g["bb"],t.clear,()=>{this.exitDialogNum("all")})},goTest1(t){return!(!this.$store.state.book.id||!this.$store.state.unit)&&(!!+this.$store.state.unit.study_pk&&void this.setBookInfo(this.$store.state.book,this.$store.state.unit,g["hb"],t.clear,()=>{this.exitDialogNum("all")}))},goMajor(t){if(!this.$store.state.book.id||!this.$store.state.unit)return!1;this.setBookInfoVMA(this.$store.state.book,this.$store.state.unit,g["B"],t.clear,()=>{this.exitDialogNum("all")})},goAdvanced(t){if(!this.$store.state.book.id||!this.$store.state.unit)return!1;this.setBookInfoVMA(this.$store.state.book,this.$store.state.unit,g["a"],t.clear,()=>{this.exitDialogNum("all")})},goVocaAdvanced(t){if(!this.$store.state.book.id||!this.$store.state.unit)return!1;this.setBookInfoVMA(this.$store.state.book,this.$store.state.unit,g["qb"],t.clear,()=>{this.exitDialogNum("all")})},goStudyGRAMMAR(t){if(console.log(t),!this.$store.state.book.id||!this.$store.state.unit)return!1;this.setBookInfoGRAMMAR(this.$store.state.book,this.$store.state.unit,t.type,t.clear,()=>{this.exitDialogNum("all")})},exitDialogNum(){this.dialog3=!1,this.dialog4=!1,this.dialog6=!1},exitLeaning(){this.$router.push({path:"/",query:{t:"btn"}})},setChildTab(t){this.child_tab=t},checkMainExist(t){this.use_main=!!t},goDirect(){switch(this.$store.commit("setDialogResolve","gotest"),this.$store.commit("setDialog",{d_name:"dialog_leaning_result",value:!1}),this.setProcessType){case this.STUDY_RESULT:this.goTest1({clear:!1});break;case this.VOCA_RESULT:this.booktype_1==g["e"]?this.goMajor({clear:!1}):this.booktype_1!=g["h"]&&this.booktype_1!=g["g"]||this.goStudy1({clear:!1});break;case this.MAJOR_RESULT:this.goAdvanced({clear:!1});break;case this.VOCA_MAJOR_RESULT:this.goVocaAdvanced({clear:!1});break;case this.GRAMMAR_THEORY_RESULT:this.goStudyGRAMMAR({clear:!1,type:g["s"]});break;case this.GRAMMAR_BASICS_RESULT:this.goStudyGRAMMAR({clear:!1,type:g["t"]});break;default:}},resultEndDialog(){this.$store.commit("setDialogResolve","resultend"),this.$store.commit("setDialog",{d_name:"dialog_leaning_result",value:!1})},closeDialog(){this.$store.commit("setDialogResolve","cancel"),this.$store.commit("setDialog",{d_name:"dialog_leaning_result",value:!1})},setBtnText(){let t=this.$store.state.process_type.replace("R",""),e=Number(this.$store.state.book.schedule_type),s=this.$store.state.book.booktype_1,i=Number(this.$store.state.book.category);const o=this.$store.state.book.parent_books_id?this.$store.state.book.parent_books_id:this.$store.state.book.id,a=this.$store.state.unit.seq,n=this.$store.state.disable_units[o]?this.$store.state.disable_units[o].findIndex(t=>t==a):-1;if("coursebook"==this.$route.name&&(i=1),0===e)switch(i){case 1:case 4:switch(s){case g["h"]:case g["g"]:4!=i||+this.$store.state.unit.words_cnt?t===g["pb"]?(this.leftbar_btn_1_cls="success",4==i?this.leftbar_btn_1="본문학습":1==i&&s==g["g"]?this.leftbar_btn_1="지문학습":this.leftbar_btn_1="문장학습",this.leftbar_btn_2_cls="warning",this.leftbar_btn_2="어휘완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["bb"]?(this.leftbar_btn_2_cls="success",4==i?this.leftbar_btn_2="본문완료":1==i&&s===g["g"]?this.leftbar_btn_2="지문완료":this.leftbar_btn_2="문장완료",(g["g"]!=s||"listeningbook"==this.$route.name&&s===g["g"])&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="심화학습",this.dialog_content=this.leftbar_btn_1+"을")):t===g["hb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료"):t===g["bb"]?(this.leftbar_btn_2_cls="success",this.leftbar_btn_2="학습완료",g["g"]!=s&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="시험보기",this.dialog_content=this.leftbar_btn_1+"를")):t===g["hb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case g["j"]:t===g["sb"]?(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="시험보기",this.leftbar_btn_2_cls="success",this.leftbar_btn_2="학습완료",this.dialog_content=this.leftbar_btn_1+"를"):t===g["qb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case g["e"]:t===g["pb"]?(this.leftbar_btn_1_cls="success",this.leftbar_btn_1="본문학습",this.leftbar_btn_2_cls="warning",this.leftbar_btn_2="어휘완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["B"]?(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="심화학습",this.leftbar_btn_2_cls="success",this.leftbar_btn_2="본문완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["a"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료");break;case g["f"]:t===g["u"]?(this.leftbar_btn_1_cls="success",this.leftbar_btn_1="기본학습",this.leftbar_btn_2_cls="warning",this.leftbar_btn_2="이론완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["s"]?(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="심화학습",this.leftbar_btn_2_cls="success",this.leftbar_btn_2="기본완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["t"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료");break;default:break}break;case 2:case 3:case 10:switch(s){case g["h"]:case g["g"]:t===g["pb"]?(this.leftbar_btn_1_cls="success","listeningbook"==this.$route.name&&[1,2,3].includes(i)||"schoolbook"==this.$route.name&&[3].includes(i)?this.leftbar_btn_1="지문학습":this.leftbar_btn_1="본문학습",this.leftbar_btn_2_cls="warning",this.leftbar_btn_2="어휘완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["bb"]?(this.leftbar_btn_2_cls="success",this.leftbar_btn_2=3==i?"지문완료":"본문완료",(g["g"]!=s||g["g"]==s&&"listeningbook"==this.$route.name)&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="심화학습",this.dialog_content=this.leftbar_btn_1+"을")):t===g["hb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료");break;case g["e"]:t===g["pb"]?(this.leftbar_btn_1_cls="success",this.leftbar_btn_1=3==i?"지문학습":"본문학습",this.leftbar_btn_2_cls="warning",this.leftbar_btn_2="어휘완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["B"]?(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="심화학습",this.leftbar_btn_2_cls="success",this.leftbar_btn_2=3==i?"지문완료":"본문완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["a"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료");break;default:break}break;default:break}else if(1===e)if(1==this.$store.state.book.schedule_type_v&&s!==g["j"])this.leftbar_btn_1_cls=null,this.leftbar_btn_1=null,this.leftbar_btn_2="학습완료",[g["bb"],g["B"],g["sb"]].includes(t)?this.leftbar_btn_2_cls="success":g["pb"]===t?this.leftbar_btn_2_cls="warning":this.leftbar_btn_2_cls="info2";else switch(s){case g["h"]:case g["g"]:t===g["bb"]?(this.leftbar_btn_2_cls="success",this.leftbar_btn_2="학습완료",g["g"]!=s&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="시험보기",this.dialog_content=this.leftbar_btn_1+"를")):t===g["hb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case g["j"]:t===g["sb"]?(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="시험보기",this.leftbar_btn_2_cls="success",this.leftbar_btn_2="학습완료",this.dialog_content=this.leftbar_btn_1+"를"):t===g["qb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case g["e"]:t===g["bb"]?(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="시험보기",this.leftbar_btn_2_cls="success",this.leftbar_btn_2="학습완료",this.dialog_content=this.leftbar_btn_1+"을"):t===g["hb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;default:break}this.tab>=7&&(this.leftbar_btn_2="목록"),-1!=n&&t===g["B"]&&(this.leftbar_btn_1=null)}}},Qr=Xr,tl=(s("d8b1"),Object(p["a"])(Qr,Gr,Wr,!1,null,null,null)),el=tl.exports;y()(tl,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"],VSheet:Se["a"],VSwitch:ye["a"]});var sl=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"flash-index"}},[s("div",{attrs:{id:"listening-settings-temp"}},[s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){t.settings_dialog=!0}}},[t._v("\n SETTINGS\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),s("v-stepper",{staticClass:"elevation-0"},[s("v-stepper-header",{staticClass:"elevation-0"})],1),s("v-card",{staticClass:"elevation-0"},[s("flash-listening")],1),s("v-card",{staticClass:"in-study-module-control elevation-0 in-listening"},[s("t-t-s-player"),s("t-t-s-audio")],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.settings_dialog=!1}},model:{value:t.settings_dialog,callback:function(e){t.settings_dialog=e},expression:"settings_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("v-row",{staticClass:"py-1",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"d-flex align-center justify-end",attrs:{cols:"4"}},[s("b",[t._v("전체반복")])]),s("v-col",{attrs:{cols:"2"}}),s("v-col",{attrs:{sm:"5",md:"4",lg:"4"}},[s("v-text-field",{staticClass:"text-center setting-input",attrs:{"hide-details":"",filled:"",type:"text",readonly:"",dense:"",flat:"",solo:"","prepend-icon":t.mdi_chevron_left,"append-outer-icon":t.mdi_chevron_right},on:{"click:append-outer":function(e){return t.plusData("all_repeat")},"click:prepend":function(e){return t.minusData("all_repeat")}},model:{value:t.all_repeat,callback:function(e){t.all_repeat=e},expression:"all_repeat"}})],1)],1),s("v-row",{staticClass:"py-1",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"d-flex align-center justify-end",attrs:{cols:"4"}},[s("b",[t._v("문항반복")])]),s("v-col",{attrs:{cols:"2"}}),s("v-col",{attrs:{sm:"5",md:"4",lg:"4"}},[s("v-text-field",{staticClass:"text-center setting-input",attrs:{"hide-details":"",filled:"",type:"text",readonly:"",dense:"",flat:"",solo:"","prepend-icon":t.mdi_chevron_left,"append-outer-icon":t.mdi_chevron_right},on:{"click:append-outer":function(e){return t.plusData("sen_repeat")},"click:prepend":function(e){return t.minusData("sen_repeat")}},model:{value:t.sen_repeat,callback:function(e){t.sen_repeat=e},expression:"sen_repeat"}})],1)],1),s("v-row",{staticClass:"py-1",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"d-flex align-center justify-end",attrs:{cols:"4"}},[s("b",[t._v("재생속도")])]),s("v-col",{attrs:{cols:"2"}}),s("v-col",{attrs:{sm:"5",md:"4",lg:"4"}},[s("v-text-field",{staticClass:"text-center setting-input",attrs:{"hide-details":"",filled:"",type:"text",readonly:"",dense:"",flat:"",solo:"","prepend-icon":t.mdi_chevron_left,"append-outer-icon":t.mdi_chevron_right},on:{"click:append-outer":function(e){return t.plusData("listening_speed")},"click:prepend":function(e){return t.minusData("listening_speed")}},model:{value:t.listening_speed,callback:function(e){t.listening_speed=e},expression:"listening_speed"}})],1)],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.setTempSettings}},[s("span",{staticClass:"title"},[t._v("설정")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.settings_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog2},model:{value:t.dialog2,callback:function(e){t.dialog2=e},expression:"dialog2"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("b",[t._v("학습 설정이 수정되었습니다.")])])],1)],1)],1)},il=[],ol=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"listening-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"flash-listening-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.flashcard_engs,(function(e,i){return s("v-window-item",{key:"listening-win-"+i,class:[t.checkSentence(e)?"height-100":"height-inherit"],attrs:{value:i}},[t.checkSentence(e)?[s("sentence-sheet",{attrs:{row:e,flashShow:t.flashShow}})]:[s("word-sheet",{attrs:{row:e,idx:i,flashShow:t.flashShow,img:t.$store.state.voca_imgs[i]}})]],2)})),1)},al=[],nl={name:"listening",components:{SentenceSheet:Wi,WordSheet:Ji},computed:{flashShow:function(){return this.$store.getters.getFlashShow}},methods:{checkSentence:function(t){return null!==t.sentences_id&&null===t.words_id}},created(){}},rl=nl,ll=(s("5681"),Object(p["a"])(rl,ol,al,!1,null,null,null)),cl=ll.exports;y()(ll,{VWindow:ni["a"],VWindowItem:ri["a"]});var dl={name:"flashcard-study",components:{FlashListening:cl,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt},data(){return{moving:!1,timeout_moving:null,origin_settings:null,settings_dialog:!1,dialog2:!1,all_repeat:0,sen_repeat:0,listening_speed:0,is_mobile:!1,mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"]}},computed:{showLoading:function(){return this.$store.state.loading_percent>0}},methods:{go:function(t){if(this.moving)return!1;"next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev"),this.moving=!0,this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null},300)},getStudyData:async function(){try{this.$store.dispatch("setFlashCardInfo").then(t=>{this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareAudioSourceInFlashCard").then(t=>{this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",g["A"])})})})})}catch(t){window.console.error(t)}},plusData:function(t){"ios"!=this.$store.state.platform&&this.$store.dispatch("soundEffectPlay","click");let e=this[t]+1;"listening_speed"==t&&e>5&&(e=5),this[t]=e},minusData:function(t){"ios"!=this.$store.state.platform&&this.$store.dispatch("soundEffectPlay","click");let e=this[t]-1;e<1&&(e=1),this[t]=e},setTempSettings:function(){let t={all_repeat:this.all_repeat,sen_repeat:this.sen_repeat,listening_speed:this.listening_speed};this.$store.commit("setListeningSettings",t),this.settings_dialog=!1,window.setTimeout(()=>{this.dialog2=!0,this.timeout1=window.setTimeout(()=>{this.dialog2=!1,this.timeout1=null},1500)},100)},closeDialog2:function(){this.dialog2=!1,this.timeout1&&(window.clearTimeout(this.timeout1),this.timeout1=null)}},created(){this.origin_settings=R(this.$store.state.listening_settings),this.all_repeat=this.origin_settings.all_repeat,this.sen_repeat=this.origin_settings.sen_repeat,this.listening_speed=this.origin_settings.listening_speed,this.getStudyData()},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.commit("setListeningSettings",this.origin_settings),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},hl=dl,ul=(s("95a9"),Object(p["a"])(hl,sl,il,!1,null,null,null)),pl=ul.exports;y()(ul,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VTextField:ut["a"]});var _l=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"shadowreading-index"}},[s("div",{staticClass:"new-all-listening-wrap"},[s("div",{staticClass:"pos-rel width-100 d-flex justify-space-between",staticStyle:{"margin-top":"2.5vh",padding:"0 3%"},style:{height:t.isSynthesia?"auto":"",alignItems:t.isSynthesia?"center":""},attrs:{id:"head-ctrl"}},[t.isSynthesia?[s("div",[s("v-btn-toggle",{attrs:{id:"content-toggle","active-class":"white--text",mandatory:""},model:{value:t.contentType,callback:function(e){t.contentType=e},expression:"contentType"}},[s("v-btn",{attrs:{disabled:t.going,value:"synthesia"}},[t._v(" 소리영어 ")]),s("v-btn",{attrs:{disabled:t.going,value:"text"}},[t._v(" 텍스트만 ")])],1)],1),s("div",{staticClass:"d-flex flex-column",staticStyle:{gap:"0.5rem"}},[s("div",{staticClass:"d-flex align-center",staticStyle:{gap:"1rem"}},[s("label",[t._v("유형")]),s("div",{staticClass:"pos-rel d-flex cursor-pointer",staticStyle:{right:"0"},attrs:{id:"eng-kor-ctl"}},[s("div",{class:{"active font-weight-bold":t.show_eng},on:{click:function(e){return t.toggleShow("eng")}}},[t._v("\n ENG\n ")]),s("div",{class:{"active font-weight-bold":t.show_kor},on:{click:function(e){return t.toggleShow("kor")}}},[t._v("\n KOR\n ")])])]),s("div",{staticClass:"d-flex align-center",staticStyle:{gap:"1rem"}},[s("label",[t._v("글씨")]),s("div",{staticClass:"pos-rel d-flex cursor-pointer",class:"is-synthesia-"+t.isSynthesia,staticStyle:{transform:"none"},attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("\n A\n ")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("\n A\n ")])])])])]:[s("div",{staticClass:"pos-rel d-flex cursor-pointer",staticStyle:{transform:"none"},attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("\n A\n ")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("\n A\n ")])]),s("div",{staticClass:"pos-rel d-flex cursor-pointer",staticStyle:{right:"0"},attrs:{id:"eng-kor-ctl"}},[s("div",{class:{"active font-weight-bold":t.show_eng},on:{click:function(e){return t.toggleShow("eng")}}},[t._v("\n ENG\n ")]),s("div",{class:{"active font-weight-bold":t.show_kor},on:{click:function(e){return t.toggleShow("kor")}}},[t._v("\n KOR\n ")])]),s("div",{staticClass:"width-100 pos-abs left-0 scroll-shadow-top",staticStyle:{bottom:"-5vh"}})]],2),s("v-card",{directives:[{name:"show",rawName:"v-show",value:t.isSynthesia&&"synthesia"==t.contentType,expression:"isSynthesia && contentType == 'synthesia'"}],staticClass:"elevation-0",staticStyle:{width:"88%",margin:"0 auto",flex:"1"},style:t.cardMaxHeight},[t.is_ready?s("video-listening",{ref:"VideoListening",attrs:{font_level:t.font_level,show_eng:t.show_eng,show_kor:t.show_kor}}):t._e()],1),s("v-card",{directives:[{name:"show",rawName:"v-show",value:!(t.isSynthesia&&"synthesia"==t.contentType),expression:"!(isSynthesia && contentType == 'synthesia')"}],staticClass:"elevation-0",staticStyle:{width:"88%",margin:"0 auto",flex:"1"}},[t.is_ready?s("all-listening",{staticStyle:{width:"110%",margin:"0",left:"-5% !important"},attrs:{isSynthesia:t.isSynthesia,sentences:t.sentences,font_level:t.font_level,show_eng:t.show_eng,show_kor:t.show_kor}}):t._e()],1),s("v-card",{staticClass:"in-study-module-control elevation-0 in-all-listening"},[t.isSynthesia&&"synthesia"==t.contentType?t._e():s("div",{staticClass:"width-100 pos-abs left-0 scroll-shadow-bottom",staticStyle:{"margin-top":"-5vh"}}),s("t-t-s-player",{attrs:{spacekey:t.spacekey}}),s("t-t-s-audio")],1)],1),t.isSynthesia&&"synthesia"==t.contentType?[t.$store.state.current_step>0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",disabled:t.going||t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdiChevronDoubleLeft))])],1):t._e(),t.getScoringTimer>0?s("timer"):t._e(),s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",id:"go-next-btn",disabled:t.going||t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{staticStyle:{"font-size":"5.4rem !important",width:"5.4rem !important",height:"5.4rem !important"},attrs:{size:"5.4rem"}},[t._v(t._s(t.mdiChevronDoubleRight))])],1)]:t._e(),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]})],2)},ml=[],gl=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"height-100 overflow-hidden in-study pos-abs-i left-0 right-0 top-0 bottom-0 pt-3vh pb-4bh",style:"font-size:"+1.5*t.font_level+"vw;",attrs:{id:"al-row"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:!t.show_eng,expression:"!show_eng"}],staticClass:"pos-fix grey--text text--lighten-2",staticStyle:{top:"44%",left:"26%","font-size":"0.85em"}},[t._v("\n 영어\n ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.show_kor,expression:"!show_kor"}],staticClass:"pos-fix grey--text text--lighten-2",staticStyle:{top:"44%",right:"26%","font-size":"0.85em"}},[t._v("\n 해석\n ")]),t._l(t.sentences,(function(e,i){return[s("v-row",{key:"sentences-row-"+i,staticClass:"width-100",staticStyle:{margin:"0 auto"}},[s("v-col",{key:"sentences-col-1-"+i,staticClass:"py-0 pos-rel pl-0",class:{"mt-3vh":0==i&&!t.isSynthesia,"mb-4vh":i==t.sentences.length-1},style:t.$store.state.current_step==i&&t.show_eng?"background-color: #e1feff;":"",attrs:{id:"sr-sen-"+i,cols:"6",sm:"6",md:"6",lg:"6"}},[s("div",{staticClass:"pl-10p py-2vh",class:{"visibility-hidden":!t.show_eng}},[s("b",{class:[t.$store.state.current_step==i?"info3--text":"cursor-pointer"],style:t.$store.state.current_step!=i?"color: rgb(169, 169, 169);":"",on:{click:function(e){return t.selectStep(i)}}},[t._v(t._s(e.sentence))])])]),s("v-col",{key:"sentences-col-2-"+i,staticClass:"py-0 pos-rel pr-0 border-ede thin-l",class:{"mt-3vh":0==i&&!t.isSynthesia,"mb-4vh":i==t.sentences.length-1},style:t.$store.state.current_step==i&&t.show_kor?"background-color: #e1feff;":"",attrs:{cols:"6",sm:"6",md:"6",lg:"6"}},[s("div",{staticClass:"pr-10p py-2vh",class:{"visibility-hidden":!t.show_kor}},[s("b",{class:[t.$store.state.current_step==i?"info3--text":"cursor-pointer"],style:t.$store.state.current_step!=i?"color: rgb(169, 169, 169);":"",on:{click:function(e){return t.selectStep(i)}}},[t._v(t._s(e.mean))])])])],1)]}))],2)},bl=[],vl={name:"all-listening",props:["isSynthesia","sentences","font_level","show_eng","show_kor"],data(){return{activekey:0,unwatch:null,unwatch2:null,std_top:0}},methods:{selectStep:function(t){if(this.$store.state.current_step==t)return!1;this.$store.dispatch("checkAudioStop").then(()=>{this.$store.commit("clearAudioIterator"),this.$store.dispatch("setStep",t).then(()=>{window.currentAudioIterator.push(window.setTimeout(()=>{this.$store.dispatch("updateAudio","next"),window.currentAudioIterator=[]},600))})})}},mounted(){this.$nextTick(()=>{const t=document.getElementById("al-row");this.unwatch=this.$store.watch(t=>t.current_step,(e,s)=>{if(e!==s){let s=document.getElementById("sr-sen-"+e);if(s){let e=s.offsetTop-this.std_top+s.offsetHeight/2;e>0&&t.scrollTo({top:e,left:0,behavior:"smooth"})}}})})},created(){this.std_top=parseInt(.3*this.$store.state.screen_height),this.unwatch2=this.$store.watch(t=>t.screen_height,(t,e)=>{t!==e&&(this.std_top=parseInt(.3*t))})},beforeDestroy(){this.unwatch&&this.unwatch(),this.unwatch2&&this.unwatch2()}},fl=vl,wl=(s("552f"),Object(p["a"])(fl,gl,bl,!1,null,null,null)),yl=wl.exports;y()(wl,{VCol:rt["a"],VRow:ht["a"]});const xl=.6,kl=1.4;var Cl={name:"shadowreading-index",components:{AllListening:yl,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt,VideoListening:vr,Timer:ti},data(){return{is_mobile:!1,is_ready:!1,sentences:[],show_eng:!0,show_kor:!0,font_level:1,spacekey:!1,going:!1,contentType:"text",cardMaxHeight:null,mdiChevronDoubleLeft:Lt["q"],mdiChevronDoubleRight:Lt["r"]}},props:["bookmode"],created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i=0==s?this.$store.state.unit.id:this.$store.state.unit.seq;this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.$store.state.is_mobile&&(this.is_mobile=!0),this.font_level=this.$store.state.bank_font_level,this.is_mobile||window.addEventListener("keydown",this.keyDownEvent)},mounted(){},watch:{contentType(t){this.$store.state.shadow_mode=t,this.$store.dispatch("updateSynthesiaOption",{column:"shadow_synthesia",value:"synthesia"===t?1:0}),this.isSynthesia&&("synthesia"===t&&(window.addEventListener("resize",this.resizeEvent),this.resizeEvent(),"ios"===this.$store.state.platform&&this.$store.dispatch("pauseAudioIos")),this.$store.state.current_tts_audio&&(this.$store.state.current_tts_audio.pause(),this.$store.state.current_tts_audio.currentTime=0),this.$store.state.current_synthesia_video&&(this.$store.state.current_synthesia_video.pause(),this.$store.state.current_synthesia_video.currentTime=0),this.$store.commit("setTTSPlayingStatus",!1)),this.isSynthesia&&"synthesia"===t||window.removeEventListener("resize",this.resizeEvent)}},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},showLoading(){return this.$store.state.loading_percent>0},getNextDisabled(){return this.$store.getters.getNextDisabled},isSynthesia(){return this.$store.getters.isSynthesia}},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},toggleShow(t){let e=0,s="show_"+t;this.show_eng&&(e+=1),this.show_kor&&(e+=1),e<=1?"eng"===t?this.show_eng?(this.show_kor=!0,this.show_eng=!1):this[s]=!this[s]:"kor"===t&&(this.show_kor?(this.show_kor=!1,this.show_eng=!0):this[s]=!this[s]):this[s]=!this[s]},async getStudyData(t,e,s,i){try{let t;this.$store.state.book;if(0==Number(s))t=await this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${i}`);else if(1==this.$store.state.book.schedule_type_v){let s=g["bb"];this.$store.state.book.booktype_1==g["e"]&&(s=g["B"]),t=await this.$axios.get(`${g["w"]}/v1/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&type=${s}&s_u_id=${this.$store.state.unit.s_u_id}&unit_id=${this.$store.state.unit.id}`)}else{let s=this.$store.state.book.sentence_cnt,o=i*s;t=await this.$axios.get(`${g["w"]}/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&start=${o}&leng=${s}`)}this.$store.dispatch("setShadowReadingInfo",{sentences:t.data||[]}).then(t=>{this.sentences=this.$store.state.sentences,this.isSynthesia&&(this.contentType=this.$store.state.shadow_mode),this.$store.dispatch("clearAudioCtx").then(()=>{this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("prepareVideoSource"),this.$store.dispatch("initStep").then(()=>{this.$store.dispatch("nextActions",g["b"]),this.is_ready=!0})})})}catch(o){window.console.error(o)}},setSize(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.$store.state.bank_font_level;if(t<0&&xl>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&kl<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.setToast(e)},keyDownEvent(t){32!=t.keyCode&&"Space"!=t.code||(this.spacekey=!this.spacekey)},resizeEvent(){this.isSynthesia&&"synthesia"===this.contentType&&this.$nextTick(()=>{const t=document.getElementById("head-ctrl"),e=t.getBoundingClientRect().height;this.cardMaxHeight=`height: calc(67.5vh - ${e}px); max-height: calc(67.5vh - ${e}px);`})},go(t){this.going||(this.going=!0,this.$store.state.current_synthesia_video?(this.$store.state.current_synthesia_video.pause(),this.$store.state.current_synthesia_video.currentTime=0,this.$store.state.tts_playing=!1,this.$store.commit("clearAudioIterator"),this.$store.commit("pauseAudio"),setTimeout(()=>{const e="prev"===t?"sub":"add";this.$store.dispatch(e+"Step").then(()=>{let t=1e3;"ios"===this.$store.state.platform&&(t=3e3),setTimeout(()=>{this.$store.dispatch("updateSynthesia","next"),this.going=!1},t)})},0)):this.going=!1)}},beforeDestroy(){console.log("ShadowReading beforeDestroy"),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyModules"),this.is_mobile||window.addEventListener("keydown",this.keyDownEvent),window.removeEventListener("resize",this.resizeEvent)},destroyed(){this.$destroy()}},$l=Cl,Sl=(s("fd1b"),Object(p["a"])($l,_l,ml,!1,null,null,null)),Tl=Sl.exports;y()(Sl,{VBtn:ot["a"],VBtnToggle:_i["a"],VCard:at["a"],VIcon:jt["a"]}),fi()(Sl,{Ripple:wi["b"]});var Al=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"studying-contents d-flex",class:{"bg-default":!t.isMockexam},attrs:{id:"mock-exam-index"}},[t.isMockexam?[i("div",{staticClass:"pos-rel",staticStyle:{width:"5%","max-height":"80vh"},style:t.is_mobile?"min-width: 15vh; max-height: 78vh; font-size: 2.5vh;":""},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showScrTop,expression:"showScrTop"}],staticClass:"vs-before pos-abs top-0"}),i("vertical-stepper",{attrs:{totcnt:t.totcnt,dialog:t.dialog}}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showScrBtm,expression:"showScrBtm"}],staticClass:"vs-after pos-abs bottom-0"})],1),i("div",{staticClass:"pos-rel d-flex flex-column align-center",staticStyle:{width:"95%","max-height":"80vh"},style:t.is_mobile?"max-width: calc(100% - 15vh); max-height: 78vh;":""},[i("div",{staticClass:"pos-abs",staticStyle:{"margin-top":"2.5vh","box-sizing":"border-box",left:"2%"},attrs:{id:"head-ctrl"}},[i("div",{staticClass:"pos-abs d-flex cursor-pointer",attrs:{id:"font-level-ctl"}},[45==t.totcnt?i("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],staticClass:"d-flex justify-center align-center",style:"background: "+(t.resize_on?"linear-gradient(0deg, #4fcb49 0%, #60d467 50%, #6cdd7f 100%)":""),on:{click:function(e){return t.setSizeFit()}}},[i("v-icon",{attrs:{color:t.resize_on?"#ffffff":"#505050"}},[t._v(t._s(t.mdi_arrow_collapse))])],1):t._e(),i("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],staticClass:"d-flex justify-center align-center",on:{click:function(e){return t.setSize(-5)}}},[t._v("\n A\n ")]),i("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],staticClass:"d-flex justify-center align-center",on:{click:function(e){return t.setSize(5)}}},[t._v("\n A\n ")])])]),i("div",{staticClass:"width-100 flex-grow-1",style:"max-width: "+(t.is_mobile?"80vw":"100vw")},[i("div",{staticClass:"height-100 d-flex mx-auto align-center justify-center width-100",class:t.resize_on?"":"over-y-scroll",attrs:{id:"exam-main"}},[t._l(t.questions,(function(e,s){return[t.cachestep+1>=s?[i("div",{key:"question-div-"+s,staticClass:"width-100",class:[1===Number(e.is_listening)?"max-h-69vh":"max-h-80vh",t.step===s||t.step+1===s?"d-block":"d-none"],style:t.step===s?"max-width: "+t.maxWidth+"px;":"max-width:0px!important;"},[i("div",{staticClass:"d-flex align-center justify-center pt-2vh pb-2vh",class:[1===Number(e.is_listening)?"min-h-69vh":"min-h-80vh",t.step+1===s?"width-0 min-h-1px":"width-100"]},[i("v-img",{staticClass:"mx-auto",class:[t.step+1===s?"prepare-img":"",t.step===s?"cur-img":""],attrs:{"lazy-src":t.getImageSrc(e,s),src:t.getImageSrc(e,s),contain:"",width:(t.resize_on?"":t.font_level)+"%",height:t.resize_on?1===Number(e.is_listening)?"64vh":"74vh":"","max-width":t.resize_on?"80%":t.maxWidth*(t.font_level-10)/100+"px"},on:{error:function(e){return t.onImgError(s)}}})],1)])]:t._e()]}))],2)]),20==t.totcnt||45==t.totcnt&&t.step<17?i("v-card",{staticClass:"in-study-module-control elevation-0 in-listening",staticStyle:{height:"11vh","margin-right":"5.26%"}},[i("div",{attrs:{id:"audio-ctl-btn"}},[i("button",{attrs:{type:"button"},on:{click:t.audioToggle}},[i("div",{staticClass:"btn-responsive",class:[t.lc_playing?"play":"pause"]},[t.lc_playing?i("div",{staticClass:"wave-icon pos-abs-i right-0 left-0 ma-auto"},[i("icon-sound-wave",{attrs:{color:"#00dcff"}}),i("div",{staticClass:"horiz-line width-100 pos-abs top-0"})],1):t._e()])])])]):t._e(),i("div",{staticClass:"d-none"},[t._l(t.questions,(function(e,s){return[1==e.is_listening&&t.cachestep>=s?i("audio",{key:"question-audio-"+s,attrs:{id:"mea-"+s,preload:"auto"}},[i("source",{attrs:{src:t.NAS_HOST+"/media/mockexam/"+t.me_id+"/sound/"+e.seq.padStart(3,"0")+".mp3",type:"audio/mpeg"}})]):t._e()]}))],2),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:"","hide-overlay":""},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center title",class:[t.is_mobile?"py-3":"py-4"],staticStyle:{"background-color":"#404040"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("span",{staticClass:"white--text",domProps:{innerHTML:t._s(t.dialog_ment)}})])],1)],1)],1)],1)],1),i("div",{staticClass:"pos-rel",staticStyle:{width:"0"}},[t.$store.state.mockexam_allchk?i("div",[i("button",{staticClass:"me-next-btn pos-fix-i white--text submit-btn",style:t.is_mobile?"right:3%;":"right:2%;",attrs:{disabled:t.resultbtn_disabled},on:{click:t.sendResult}},[i("div",{staticClass:"d-flex align-center justify-center"},[i("b",{staticStyle:{"margin-left":"0.7rem"}},[t._v("제출")]),i("v-icon",{staticStyle:{"margin-left":"-0.7rem"},attrs:{color:"white",size:"36"}},[t._v(t._s(t.mdi_chevron_right))])],1)])]):i("div",[i("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.showNextBtn,expression:"showNextBtn"}],staticClass:"me-next-btn study-module-arrow pos-fix-i grey--text",style:t.is_mobile?"right:3%;":"right:0.5%;",attrs:{"x-large":"",text:"",icon:"",ripple:!1},on:{click:t.goNext}},[i("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_right))])],1)],1)])]:[i("div",{staticClass:"result-contents v-book-index static-container ma-0 mt-0 width-100",attrs:{id:"result-index"}},[i("left-bar-static",{staticClass:"child-white"},[i("div",{staticStyle:{position:"absolute",width:"100%",bottom:"0"}},[i("div",{staticClass:"px-4 pb-4 pt-2",staticStyle:{width:"100%"}},[i("v-btn",{staticStyle:{background:"#fff"},attrs:{outlined:"",block:"","x-large":"",color:t.type_class,ripple:!1},on:{click:function(e){return t.$store.dispatch("exitLeaning")}}},[i("b",{staticClass:"subtitle"},[t._v("목록")]),i("v-icon",{attrs:{dark:"",right:""}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)])]),i("div",{staticClass:"right"},[i("v-sheet",{staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[i("div",{attrs:{id:"result-wrapper"}},[i("v-tabs",{staticClass:"height-100",attrs:{id:"result-list","background-color":"grey lighten-4",color:t.type_class,light:"",grow:"","hide-slider":!0,"show-arrows":!1},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab",{key:"result-tab-0",staticClass:"first-tab",class:"bg-"+t.type_class,attrs:{ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("b",{staticClass:"tab-title"},[t._v("Report")])]),i("v-tab",{key:"result-tab-1",attrs:{ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tab,expression:"tab == 0"}],staticClass:"under-line pos-abs-i width-100 bottom-0 left-0",class:"bg-"+t.type_class}),i("b",{staticClass:"tab-title"},[t._v("상세내용")])]),i("v-tabs-items",{class:{"bg-grey":0==t.tab},staticStyle:{"overflow-y":"overlay"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab-item",{key:"result-tab-item-0",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("v-container",{staticClass:"pa-0",attrs:{fluid:""}},[i("v-row",[i("v-col",{staticClass:"vertical-helf py-0 pl-0 pr-1 height-100",attrs:{cols:"8"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"before-divider divider-bottom row-20per"},[i("v-col",{staticClass:"pl-6",attrs:{cols:"12"}},[t._v("레포트 정보\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))]),t._v("\n   "),i("span",{staticClass:"grey--text text--darken-1"},[t._v(t._s(t.postdate))]),t._v("\n   "),i("span",{staticClass:"grey--text text--darken-1"},[t._v("("+t._s(t.cnttext)+")")])],1)],1),i("v-row",{staticClass:"before-divider divider-bottom row-40per"},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"7.5vh",width:"7.5vh",contain:"",src:s("c60a"),"lazy-src":s("c60a"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[i("h3",{staticClass:"title ellipsis width-100"},[t._v("\n "+t._s(t.$store.state.uname)+"\n ")]),i("span",{staticClass:"grey--text text--darken-1 ellipsis width-100"},[t._v("\n "+t._s(t.classname)+"\n ")])])],1),i("v-row",{staticClass:"row-40per"},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"8vh",width:"8vh",contain:"",src:s("24dd"),"lazy-src":s("24dd"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[i("h3",{staticClass:"title ellipsis"},[t._v("\n "+t._s(t.$store.state.mockexam.bookname)+"\n ")]),t.$store.state.mockexam.unit_name?i("span",{staticClass:"grey--text text--darken-1 ellipsis width-100",domProps:{textContent:t._s(t.$store.state.mockexam.unit_name)}}):t._e()])],1)],1)],1),i("v-col",{staticClass:"vertical-helf pl-0 pt-0 pr-0 pb-0 height-100",attrs:{cols:"4"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6",attrs:{cols:"12"}},[t._v("\n 종합 스코어\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"row-80per",attrs:{id:"circle-row"}},[i("v-col",{staticClass:"text-center",attrs:{id:"circle-col",cols:"12"}},[t.circle_size>0&&t.circle_width>0?i("v-progress-circular",{class:{"gradient-circle-green":"success"===t.type_class,"gradient-circle-orange":"warning"===t.type_class,"gradient-circle-sky":"info2"===t.type_class},style:"font-size:"+t.circle_font+"px; font-weight:500;",attrs:{indeterminate:!1,rotate:.3,size:t.circle_size,value:t.avgscore,width:t.circle_width,color:t.type_class}},[i("span",{staticClass:"black--text"},[t._v("\n "+t._s(t.avgscore)),i("small",[t._v("점")])])]):t._e()],1)],1)],1)],1)],1),i("v-row",[i("v-col",{staticClass:"vertical-helf px-0 pb-0 pt-1 height-100",attrs:{cols:"12"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6",attrs:{cols:"12"}},[t._v("\n 레포트 분석\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"row-80per padding-x-10per",staticStyle:{position:"relative"}},[i("v-col",{staticClass:"col-center py-0",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("a383"),"lazy-src":s("a383"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 학습 문항\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.wordcnt)+"문항\n ")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("3868"),"lazy-src":s("3868"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 오답 문항\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.wrongcnt)+"개\n ")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("6502"),"lazy-src":s("6502"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 오답률\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.wrongpercent)+"%\n ")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",{staticClass:"detail-caption"},[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("185c"),"lazy-src":s("185c"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 학습 시간\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.totminute)+"분\n ")])],1)])],1)],1)],1)],1)],1)],1),i("v-tab-item",{key:"result-tab-item-1",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("v-list",{staticClass:"py-0",attrs:{flat:""}},[i("v-list-item-group",{attrs:{mandatory:"",color:"indigo"},model:{value:t.model,callback:function(e){t.model=e},expression:"model"}},[t._l(t.details,(function(e,o){return[t.showWords(e.right)?i("v-list-item",{key:"result-tab-item-1-"+o,staticClass:"border-ede thin-b pa-0",attrs:{ripple:!1}},[i("v-row",{staticClass:"pa-0 width-100 mr-0 ml-0"},[i("v-col",{staticClass:"pa-0",attrs:{cols:"6"}},[i("div",{staticClass:"float-left",staticStyle:{width:"15%","min-width":"44px"}},[i("v-list-item-content",{staticClass:"py-3 d-block"},[i("div",{staticClass:"number-wrap text-center d-block ma-auto overflow-hidden",domProps:{textContent:t._s(o+1)}})])],1),t.is_ios?i("div",{staticClass:"float-left py-3",staticStyle:{width:"15%","max-height":"54px","min-width":"44px"}},[e.correct?i("img",{attrs:{src:s("963b"),width:"30",height:"30"}}):i("img",{attrs:{src:s("7927"),width:"30",height:"30"}})]):i("div",{staticClass:"float-left py-3",staticStyle:{width:"15%","max-height":"56px","min-width":"44px"}},[e.correct?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-1-"+o}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-1-"+o}})],1),i("div",{staticStyle:{clear:"both"}}),i("div",{staticClass:"pos-abs pa-2",staticStyle:{height:"calc(100% - 24px)",width:"50%",top:"0","border-right":"1px solid #ededed",margin:"12px 0"}},[i("span",{staticClass:"pos-abs translate-a title-1",domProps:{textContent:t._s("기록 "+e.answer+"번")}})])]),i("v-col",{staticClass:"pa-0",attrs:{cols:"6"}},[i("div",{staticClass:"height-100 width-100 pos-rel"},[i("span",{staticClass:"pos-abs translate-a title-1",class:[e.correct?"c_b":"c_r"],domProps:{textContent:t._s("정답 "+e.right+"번")}})])])],1)],1):t._e()]}))],2)],1)],1)],1)],1)],1)])],1)],1)],i("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]})],2)},Il=[],Dl=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"height-100 width-100 d-flex flex-column over-y-scroll border-ede thin-r",attrs:{id:"vertical-stepper"}},t._l(t.totcnt,(function(e,i){return s("div",{key:"totcnt-"+i,staticClass:"step-num border-ede thin-b",style:"min-height: "+(t.is_mobile?"9.17vh":"7.5%")+"; height: "+(t.is_mobile?"9.17vh":"7.5%")},[s("button",{staticClass:"width-100 height-100",class:t.checkClass(i),attrs:{id:"vstep-"+i},on:{click:function(e){return t.selStep(i)}}},[s("b",{domProps:{textContent:t._s(e+"번")}})])])})),0)},Rl=[],Pl={name:"vertical-stepper",props:{totcnt:Number,dialog:Boolean},data(){return{unwatch:null,unwatch2:null,half:0,scroll_div:null,is_mobile:!1}},computed:{checkClass:function(t){return function(t){return t===this.$store.state.mockexam_step?"current":this.$store.state.mockexam_selects[t]>0?"checked":""}}},methods:{selStep:function(t){if(console.log(this.dialog),this.dialog)return;let e=document.getElementById("vstep-"+t);e&&e.blur(),this.$store.commit("setMockExamStep",t)},smoothMove:function(t){let e=document.getElementById("vstep-"+t);if(e){let t=e.getBoundingClientRect(),s=t.top+t.height/2-this.half,i=this.scroll_div.scrollTop;this.scroll_div.scrollTo({top:i+s,left:0,behavior:"smooth"})}}},mounted(){this.$nextTick(()=>{this.scroll_div=document.getElementById("vertical-stepper")})},created(){this.half=this.$store.state.screen_height/2,this.unwatch=this.$store.watch(t=>t.screen_height,(t,e)=>{this.half=t/2}),this.unwatch2=this.$store.watch(t=>t.mockexam_step,(t,e)=>{this.smoothMove(t)}),this.is_mobile=this.$store.state.is_mobile},beforeDestroy(){this.unwatch&&this.unwatch(),this.unwatch2&&this.unwatch2()}},Ml=Pl,El=(s("1751"),Object(p["a"])(Ml,Dl,Rl,!1,null,null,null)),Bl=El.exports;window.setTimeout1=null,window.setTimeout2=null,window.setTimeout3=null,window.setInterval1=null,window.setInterval2=null,window.setInterval3=null;var Nl={name:"mock-exam",props:["updateSingleMockExamUnit"],components:{VerticalStepper:Bl,IconSoundWave:ve,Loading:Bt,LeftBarStatic:Is["a"],IconReportO:Ps["a"],IconReportX:Ms["a"]},data(){return{HOST:g["w"],NAS_HOST:g["H"],MIN:70,MAX:90,me_id:null,unit_seq:-1,loading:!1,totcnt:45,question_seq:[],new_mockexam:!1,new_mock_record_id:null,prev_step:0,step:0,cachestep:1,questions:[],tot_question_cnt:0,cur_audio:null,failedImages:new Set,lc_playing:!1,is_mobile:!1,is_ios:!1,is_regular:1,regular_id:null,dialog:!1,dialog_ment:"듣기 영역이 시작됩니다.",font_level:80,resultbtn_disabled:!1,type_class:"success",tab:0,wrongshow:!1,model:[],resultinfo:null,details:[],postdate:"",cnttext:"",classname:"",circle_size:null,circle_width:null,avgscore:null,circle_font:null,wordcnt:0,wrongcnt:0,wrongpercent:0,totminute:0,unwatch:null,unwatch2:null,resultIntervalId:null,mdi_chevron_double_right:Lt["r"],mdi_close:Lt["B"],mdi_chevron_right:Lt["v"],mdi_arrow_collapse:Lt["b"],resize_on:!1,maxWidth:1024,mockVer:0}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0),this.is_mobile=this.$store.state.is_mobile;const t=this.$store.state.mockexam;t&&(this.me_id=t.id||0,this.new_mockexam=t.new_mockexam,this.new_mock_record_id=t.record_id||null,this.totcnt=+t.question_cnt,this.question_seq=t.question_seq||null,this.is_regular=0==t.is_regular?0:1,this.regular_id=t.regular_id||null,this.tot_question_cnt=+t.question_cnt,void 0!==t.unit_seq&&(this.unit_seq=+t.unit_seq)),this.is_mobile?this.maxWidth=+screen.availWidth*(45==this.totcnt?.8:.9):this.maxWidth=.7*+screen.width,this.getStudyData(),this.isMockexam?this.unwatch2=this.$store.watch(t=>t.mockexam_minute,(t,e)=>{45===this.totcnt?(9==t&&(this.dialog_ment="시험 종료까지 10분 남았습니다.",this.dialog=!0,window.setTimeout2=window.setTimeout(()=>{this.dialog=!1,this.dialog_ment=""},3e3)),4==t&&(this.dialog_ment="시험 종료까지 5분 남았습니다.",this.dialog=!0,window.setTimeout2=window.setTimeout(()=>{this.dialog=!1,this.dialog_ment=""},3e3)),0==t&&(this.dialog_ment="1분 뒤 모의평가가 자동 종료됩니다.",this.dialog=!0,window.setTimeout2=window.setTimeout(()=>{this.dialog=!1,this.dialog_ment=""},3e3))):20==this.totcnt&&(4==t&&(this.dialog_ment="시험 종료까지 5분 남았습니다.",this.dialog=!0,window.setTimeout2=window.setTimeout(()=>{this.dialog=!1,this.dialog_ment=""},3e3)),0==t&&(this.dialog_ment="1분 뒤 듣기평가가 자동 종료됩니다.",this.dialog=!0,window.setTimeout2=window.setTimeout(()=>{this.dialog=!1,this.dialog_ment=""},3e3)))}):this.getResult()},mounted(){this.$nextTick(()=>{this.isMockexam?this.initMockExam():this.initResult()})},watch:{dialog(t){if(t)this.$nextTick(()=>{let t=document.querySelector(".v-dialog__content--active");t&&(t.style.background="rgba(33, 33, 33, 0.46)")});else{let t=document.querySelector(".v-dialog__content--active");t&&(t.style.background="")}}},computed:{showLoading(){return this.$store.state.loading_percent>0},showScrTop(){return+this.$store.state.mockexam_step>6},showScrBtm(){return+this.$store.state.mockexam_step{this.mockVer=+t.data||0}).catch(t=>{console.log(t)});let t="";this.unit_seq>-1&&(t="?unit_seq="+this.unit_seq),this.totcnt>0&&(""===t?t="?term="+this.totcnt:t+="&term="+this.totcnt),this.question_seq&&(""===t?t="?seq="+this.question_seq.toString():t+="&seq="+this.question_seq.toString()),this.$axios.get(`${g["w"]}/v2/mockexam/${this.me_id}/rights${t}`).then(t=>{if(200==t.status&&t.data&&t.data.length>0){for(let e=0;e{window.console.error(t)})}},audioToggle(){if(!this.dialog&&!this.loading){if(this.loading=!0,this.is_ios){if(this.cur_audio){let t=this.cur_audio;this.lc_playing?(t.pause(),this.lc_playing=!1):(t.play({playAudioWhenScreenIsLocked:!1}),this.lc_playing=!0)}}else this.cur_audio||this.setCurAudio(),this.cur_audio&&(this.lc_playing?(this.cur_audio.pause(),this.lc_playing=!1):(this.cur_audio.play(),this.lc_playing=!0));this.loading=!1}},setCurAudio(){this.cur_audio=document.getElementById("mea-"+this.step)},stopPlay(){this.is_ios?this.cur_audio&&(this.lc_playing&&(this.cur_audio.pause(),this.cur_audio.seekTo(0),this.lc_playing=!1),this.cur_audio=null):this.lc_playing&&this.cur_audio?(this.cur_audio.pause(),this.cur_audio.currentTime=0,this.cur_audio.onended&&(this.cur_audio.onended=null),this.lc_playing=!1,this.cur_audio=null):window.setTimeout1&&(window.clearTimeout(window.setTimeout1),this.cur_audio&&this.cur_audio.onended&&(this.cur_audio.onended=null),this.cur_audio=null)},autoPlay(){if(window.setTimeout1&&window.clearTimeout(window.setTimeout1),this.is_ios){if(!this.cur_audio){let t=`${g["H"]}/media/mockexam/${this.me_id}/sound/${String(this.questions[this.step].seq).padStart(3,"0")}.mp3`,e=new window.Media(t,()=>{},t=>{},t=>{t===window.Media.MEDIA_STOPPED&&(this.lc_playing=!1,e.seekTo(0))});this.cur_audio=e}window.setTimeout1=setTimeout(()=>{this.lc_playing=!0,this.cur_audio.play({playAudioWhenScreenIsLocked:!1})},1e3)}else this.setCurAudio(),this.cur_audio?(this.cur_audio.onended=()=>{this.lc_playing=!1},window.setTimeout1=setTimeout(()=>{this.cur_audio.play(),this.lc_playing=!0},1e3)):this.$nextTick(()=>{this.setCurAudio(),this.cur_audio&&(this.cur_audio.onended=()=>{this.lc_playing=!1},window.setTimeout1=setTimeout(()=>{this.cur_audio.play(),this.lc_playing=!0},1e3))})},goNext(){this.dialog||this.$store.commit("setMockExamStep",this.$store.state.mockexam_step+1)},startTimer(){console.log("startTimer"),window.setInterval1=window.setInterval(()=>{this.$store.commit("updateExamTime"),0==Number(this.$store.state.mockexam_minute)&&0==Number(this.$store.state.mockexam_second)&&(this.sendResult(),window.clearInterval(window.setInterval1),window.setInterval1=null)},1e3)},pcKeydown(t){const e=t.which||t.keyCode;if(13==e)this.$store.state.mockexam_step+148&&e<54){let t=e-48;this.$store.commit("setMockExamSelNum",t)}},sendResult(){if(this.dialog)return;if(this.loading)return;if(this.resultbtn_disabled)return;this.loading=!0;let t=60*Number(this.$store.state.mockexam_minute)+Number(this.$store.state.mockexam_second),e=100,s=this.$store.state.mockexam_selects,i=0,o=0,a=[];for(let l=0;l{200==t.status&&(window.clearInterval(window.setInterval1),window.setInterval1=null,this.$store.dispatch("soundEffectPlay","correct"),20==this.totcnt?this.dialog_ment="수고하셨습니다.
듣기평가가 제출되었습니다.":this.new_mockexam?this.dialog_ment="수고하셨습니다.
오답평가가 제출되었습니다.":this.dialog_ment="수고하셨습니다.
모의평가가 제출되었습니다.",this.dialog=!0,window.setTimeout2=window.setTimeout(()=>{if(this.dialog=!1,this.dialog_ment="",this.$store.commit("setMockExamResultId",t.data.mr_id),this.$store.getters.getMockexamInUnit||this.new_mockexam){const e=1==this.$store.state.mockexam.schedule_type?+this.$store.state.mockexam.type_v_seq:+this.$store.state.mockexam.unit_seq;r.try_cnt=+r.try_cnt+1,this.$store.commit("setMockExam",r),this.updateSingleMockExamUnit({id:r.books_id,schedule_id:r.schedule_id,mock_pk:t.data.ur_id,record_id:t.data.mr_id,unit_seq:e,done_cnt:r.try_cnt,new_mockexam:this.new_mockexam})}this.$store.commit("setIsMockExam",!1),this.setResultInfo(),this.initResult()},3e3),this.resultbtn_disabled=!0),this.loading=!1}).catch(t=>{window.console.error(t),this.loading=!1})},getResult(){if(null===this.resultinfo){let t=this.$store.state.mockexamrecord_id;window.console.log(this.$store.state),t&&this.$axios.get(`${g["w"]}/mockexam/${this.me_id}/getresult/${t}`).then(t=>{window.console.log(t),200==t.status&&(this.resultinfo=t.data,this.setResultInfo())}).catch(t=>{window.console.error(t)})}},setCircleSize(t,e){if(this.tab>0)return!1;let s=document.getElementById("circle-row"),i=document.getElementById("circle-col");if(!s||!i)return!1;let o=window.getComputedStyle(i),a=s.offsetHeight,n=s.offsetWidth;a-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight);let r=a>n?n:a;isNaN(r)||(this.circle_size=.82*r,this.circle_width=.9*Math.round(r/12),this.circle_font=.9*Math.round(r/6)),e&&"function"===typeof e&&e()},setResultInfo(){const t=this.$store.state.mockexam;this.postdate=this.resultinfo.postdate;let e=t&&t.try_cnt?+t.try_cnt:1;t.new_mockexam?(console.log("resultinfo",this.resultinfo,t),this.cnttext=t.cnttext):this.cnttext=1==e?"정규 평가":e-1+"차 재평가",this.$store.state.class[0]&&this.$store.state.class[0]["name"]&&(this.classname=this.$store.state.class[0]["name"]),this.avgscore=+this.resultinfo.score,this.wordcnt=+t.question_cnt;let s=60*+t.time-+this.resultinfo.time;this.totminute=Math.floor(s/60)+(s%60>30?1:0)},initResult(){this.$store.commit("addLoadingPercent",5),this.$store.getters.getMockexamInUnit&&31!==+this.$store.state.mockexam.booktype&&(this.type_class="info2"),this.$nextTick(()=>{this.setCircleSize(null,(function(){setTimeout(()=>{let t=document.getElementById("circle-col").getElementsByTagName("svg");t=t[0];let e=t.childNodes[0];e.classList.remove("v-progress-circular__underlay"),e.setAttribute("stroke","#f5f5f5")},50)})),window.addEventListener("resize",this.setCircleSize),this.$store.dispatch("fillLoadingPercent").then(()=>{this.$store.dispatch("soundEffectPlay","report")})});let t=0;this.resultIntervalId=setInterval(()=>{if(this.questions.length>0&&null!=this.resultinfo){let t=JSON.parse(this.resultinfo.select_nums),e=0,s=this.questions.length;for(let i=0;i600&&(clearInterval(this.resultIntervalId),this.resultIntervalId=null),t+=1},100)},initMockExam(){this.$store.commit("addLoadingPercent",5),this.$store.dispatch("fillLoadingPercent").then(()=>{this.dialog=!0,window.setTimeout1=window.setTimeout(()=>{this.dialog=!1,this.autoPlay(),this.startTimer(),window.setTimeout1=null,(!this.is_mobile||this.is_mobile&&void 0!=window.ExternalKeyboard&&window.ExternalKeyboard.isUsed)&&document.addEventListener("keydown",this.pcKeydown)},3e3)});let t=document.getElementById("exam-main");this.unwatch=this.$store.watch(t=>t.mockexam_step,(e,s)=>{this.prev_step=s,this.step=e,this.cachestep{this.dialog=!1,this.dialog_ment=""},3e3))})},showWords(t){let e=!0;return void 0!==t&&(t=JSON.parse(t),this.wrongshow&&(e=!t),e)},setSize(t){if(this.dialog)return;if(this.resize_on)return;let e;this.$store.state.mockexam_step>16&&this.$store.dispatch("soundEffectPlay","click");let s=this.font_level;if(t<0&&this.MIN>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&this.MAX<=s)e="가장 큰 글씨 크기입니다.";else switch(e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(2)),s){case 70:e+=" (작게)";break;case 75:e+=" (조금 작게)";break;case 80:e+=" (기본)";break;case 85:e+=" (조금 크게)";break;case 90:e+=" (크게)";break;default:}this.font_level=s,this.setToast(e)},setSizeFit(){if(this.dialog)return;this.resize_on=!this.resize_on;let t=this.resize_on?"지문 전체보기로 설정하였습니다.":"지문 전체보기를 해제하였습니다.";this.setToast(t)}},beforeDestroy(){this.stopPlay(),this.cur_audio=null,this.$store.commit("destroyMockExam"),this.unwatch&&this.unwatch(),this.unwatch2&&this.unwatch2(),window.setTimeout1&&window.clearTimeout(window.setTimeout1),window.setTimeout2&&window.clearTimeout(window.setTimeout2),window.setInterval1&&window.clearInterval(window.setInterval1),this.resultIntervalId&&clearInterval(this.resultIntervalId),window.setInterval2&&window.clearInterval(window.setInterval2),window.setInterval3&&window.clearInterval(window.setInterval3),(!this.is_mobile||this.is_mobile&&void 0!=window.ExternalKeyboard&&window.ExternalKeyboard.isUsed)&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){}},ql=Nl,Ll=(s("46b0"),s("4f8a"),Object(p["a"])(ql,Al,Il,!1,null,"33593d5a",null)),zl=Ll.exports;y()(Ll,{VBtn:ot["a"],VCard:at["a"],VCardText:nt["b"],VCol:rt["a"],VContainer:lt["a"],VDialog:ct["a"],VIcon:jt["a"],VImg:qs["a"],VList:Ls["a"],VListItem:zs["a"],VListItemContent:Os["a"],VListItemGroup:js["a"],VProgressCircular:Vs["a"],VRow:ht["a"],VSheet:Se["a"],VTab:as["a"],VTabItem:ns["a"],VTabs:rs["a"],VTabsItems:ls["a"]}),fi()(Ll,{Ripple:wi["b"]});var Ol=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{key:"grammar-index-"+t.action_count,staticClass:"studying-contents mode-grammar",class:"is-mobile-"+t.is_mobile,attrs:{id:"grammar-index"}},[s("input",{attrs:{type:"hidden"},domProps:{value:t.getGrammarActionCount}}),"review"!=t.$store.state.grammar_type&&"GT_0"!=t.getCurModule?s("div",{staticClass:"pos-abs d-flex cursor-pointer",staticStyle:{top:"10vh"},attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("A")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("A")])]):t._e(),t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),t.basicGrammarBooks.includes(+t.$store.state.unit.book_id)&&["GT_2","GB_4","GD_2"].includes(t.getCurModule)||t.middleGrammarBooks.includes(+t.$store.state.unit.book_id)&&["GT_2","GB_2","GD_2"].includes(t.getCurModule)?[-1==t.$store.getters.getNextModule&&1==t.is_skip?s("div",{staticClass:"grammar-skip-btn",attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticClass:"bg-white",staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e()]:t._e(),"GT_0"!=t.getCurModule?[1===t.$store.state.modules.length?[s("div",{staticStyle:{"padding-top":"10vh"}})]:[s("v-stepper",{staticClass:"elevation-0",model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+e.seq,class:{"cursor-pointer":t.getNextModuleSeq==e.seq},attrs:{complete:t.getCurModuleSeq>e.seq,step:e.seq+1,color:t.sub_color[t.getCurModule?t.getCurModule.split("_")[0]:"warning"],"complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{class:t.sub_color[t.getCurModule?t.getCurModule.split("_")[0]:"warning"]+"--text",domProps:{textContent:t._s(t.setStepperName(e.name))}}):s("span",{domProps:{textContent:t._s(t.setStepperName(e.name))}})]),e.seq0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_left))])],1):t._e(),t.getScoringTimer>0?s("timer"):t._e(),t.basicGrammarBooks.includes(+t.$store.state.unit.book_id)&&(+t.$store.state.unit.seq+1)%3===0&&"GD_1"==t.getCurModule||t.middleGrammarBooks.includes(+t.$store.state.unit.book_id)&&t.$store.state.unit.name.match("Review")&&["GB_1","GD_1"].includes(t.getCurModule)?t._e():s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{"d-none":t.checkBankModule},staticStyle:{"z-index":"1"},attrs:{text:"",icon:"",absolute:"",color:t.arrowColor,id:"go-next-btn","x-large":"",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_right))])],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",["GT_0"==t.getCurModule?[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("이론 영상강의가 종료되었습니다.")])])]),s("v-col",{staticClass:"text-center px-0 grey--text",attrs:{cols:"12"}},[s("span",[t._v("개념이해가 부족했다면 영상강의 재시청을,")]),s("br"),s("span",[t._v("문제풀이를 하려면 ")]),-1!==t.$store.getters.getNextModule?s("span",[t._v("\n 다음학습을 시작하세요.\n ")]):-1===t.$store.getters.getNextModule?s("span",[t._v("\n 확인을 선택하세요.\n ")]):t._e()])]:[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name+t.particle(t.next_module_name))}}),t._v("\n 넘어가시겠습니까?\n ")])]],2)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},["GT_0"==t.getCurModule?[-1!==t.$store.getters.getNextModule?[t._v("\n 다음 학습\n ")]:-1===t.$store.getters.getNextModule?[t._v("\n 확인\n ")]:t._e()]:[t._v(" 예 ")]],2)])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},["GT_0"==t.getCurModule?[t._v(" 재시청 ")]:[t._v(" 아니오 ")]],2)],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog_2=!1}},model:{value:t.skip_dialog_2,callback:function(e){t.skip_dialog_2=e},expression:"skip_dialog_2"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v(" 정말 이론 영상을 넘어가시겠습니까? ")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog_2=!1}}},[s("span",{staticClass:"title"},[t._v(" 취소 ")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[t._v("\n 확인\n ")])],1)],1)],1)],1)],1)],2)},jl=[],Vl=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-window",{key:t.wrap_key,staticClass:"popquiz-window in-study",attrs:{id:"popquiz-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.contents,(function(e,o){return i("v-window-item",{key:"popquiz-win-"+o,attrs:{value:o}},[o==t.$store.state.current_step?i("v-sheet",[i("v-row",[i("v-col",{staticClass:"py-0",staticStyle:{height:"70vh","overflow-x":"hidden","overflow-y":"auto"},attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[i("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+t.font_head+"vw"},[i("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(e.question)}})]),e.img?i("div",{staticClass:"d-flex align-center justify-center"},[i("img",{staticStyle:{"margin-bottom":"3vh"},style:"width:"+t.img_width+"vw",attrs:{src:t.NG_CDN+"/lecture_img/"+("development"==t.NODE_ENV?"test/"+e.img:e.img)}})]):t._e(),e.passage?i("div",{staticClass:"text-center d-flex justify-center align-center dash-passage",staticStyle:{"min-height":"22vh !important","margin-bottom":"0"},style:"font-size:"+t.font_main+"vw"},[i("span",{domProps:{innerHTML:t._s(e.passage)}})]):t._e(),i("div",{staticClass:"selection-wrapper",class:"passage-"+!!e.passage,staticStyle:{height:"38vh"},style:"font-size:"+t.font_main+"vw"},[e.split_leng>0?i("v-row",{staticClass:"padder height-100",staticStyle:{"align-content":"center","align-items":"center"}},[t.is_ios?[e.example?t._l(e.split_exam,(function(o,a){return i("v-col",{key:"example-"+a,staticStyle:{padding:"1rem"},style:{height:[2,3].includes(e.split_leng)?"65%":"40%"},attrs:{cols:[2,4].includes(e.split_leng)?6:4}},[i("v-btn",{key:"popquiz-select-"+a,staticClass:"selection-btn text-left",class:t.setClass(a),staticStyle:{"justify-content":"center","margin-bottom":"0","font-size":"inherit"},style:{height:[2,3,4].includes(e.split_leng)?"100% !important":""},attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,a)}}},["O"==o?[i("img",{directives:[{name:"show",rawName:"v-show",value:0===t.$store.getters.getGrammarPopquizClass(a)||3===t.$store.getters.getGrammarPopquizClass(a)||4===t.$store.getters.getGrammarPopquizClass(a),expression:"\n $store.getters.getGrammarPopquizClass(i) === 0 ||\n $store.getters.getGrammarPopquizClass(i) === 3 ||\n $store.getters.getGrammarPopquizClass(i) === 4\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("3f44")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:[1,2,4].includes(t.$store.getters.getGrammarPopquizClass(a)),expression:"\n [1, 2, 4].includes(\n $store.getters.getGrammarPopquizClass(i)\n )\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("2b3f")}})]:"X"==o?[i("img",{directives:[{name:"show",rawName:"v-show",value:0===t.$store.getters.getGrammarPopquizClass(a)||3===t.$store.getters.getGrammarPopquizClass(a)||4===t.$store.getters.getGrammarPopquizClass(a),expression:"\n $store.getters.getGrammarPopquizClass(i) === 0 ||\n $store.getters.getGrammarPopquizClass(i) === 3 ||\n $store.getters.getGrammarPopquizClass(i) === 4\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("18e5")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:[1,2].includes(t.$store.getters.getGrammarPopquizClass(a)),expression:"\n [1, 2].includes(\n $store.getters.getGrammarPopquizClass(i)\n )\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("6342")}})]:[i("span",{staticClass:"idx-content d-inline-block pl-0"},[i("b",{domProps:{innerHTML:t._s(o)}})])]],2)],1)})):t._e()]:[e.example?t._l(e.split_exam,(function(o,a){return i("v-col",{key:"example-"+a,staticStyle:{padding:"1rem"},style:{height:[2,3].includes(e.split_leng)?"65%":"40%"},attrs:{cols:[2,4].includes(e.split_leng)?6:4}},[i("v-btn",{key:"popquiz-select-"+a,staticClass:"selection-btn text-left",class:t.setClass(a),staticStyle:{"justify-content":"center","margin-bottom":"0","font-size":"inherit"},style:{height:[2,3,4].includes(e.split_leng)?"100% !important":""},attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,a)}}},["O"==o?[i("img",{directives:[{name:"show",rawName:"v-show",value:0===t.$store.getters.getGrammarPopquizClass(a)||3===t.$store.getters.getGrammarPopquizClass(a)||4===t.$store.getters.getGrammarPopquizClass(a),expression:"\n $store.getters.getGrammarPopquizClass(i) === 0 ||\n $store.getters.getGrammarPopquizClass(i) === 3 ||\n $store.getters.getGrammarPopquizClass(i) === 4\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("3f44")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:[1,2].includes(t.$store.getters.getGrammarPopquizClass(a)),expression:"\n [1, 2].includes(\n $store.getters.getGrammarPopquizClass(i)\n )\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("2b3f")}})]:"X"==o?[i("img",{directives:[{name:"show",rawName:"v-show",value:0===t.$store.getters.getGrammarPopquizClass(a)||3===t.$store.getters.getGrammarPopquizClass(a)||4===t.$store.getters.getGrammarPopquizClass(a),expression:"\n $store.getters.getGrammarPopquizClass(i) === 0 ||\n $store.getters.getGrammarPopquizClass(i) === 3 ||\n $store.getters.getGrammarPopquizClass(i) === 4\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("18e5")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:[1,2].includes(t.$store.getters.getGrammarPopquizClass(a)),expression:"\n [1, 2].includes(\n $store.getters.getGrammarPopquizClass(i)\n )\n "}],staticClass:"OX_img",staticStyle:{"z-index":""},attrs:{src:s("6342")}})]:[i("span",{staticClass:"idx-content d-inline-block pl-0"},[i("b",{domProps:{innerHTML:t._s(o)}})])]],2)],1)})):t._e()]],2):t._e()],1)])],1)],1):t._e()],1)})),1)},Fl=[];const Gl=1.8,Wl=2,Ul=1.6,Hl=1.8,Kl=49.5,Zl=8;var Yl={name:"grammarmixin",props:["resource","nextclicked","fontLevel"],data(){return{font_head:Gl,font_std:Wl,font_main:Ul,font_foot:Hl,sel_height:Zl,img_width:Kl}},created(){this.setCreated()},mounted(){},watch:{fontLevel:function(t,e){this.font_head=Gl*t,this.font_std=Wl*t,this.font_main=Ul*t,this.font_foot=Hl*t,this.sel_height=Zl*t,this.setImageWidth(t),this.setInputSize(t)}},computed:{},methods:{setCreated:function(){this.font_head=Gl*this.fontLevel,this.font_std=Wl*this.fontLevel,this.font_main=Ul*this.fontLevel,this.font_foot=Hl*this.fontLevel,this.sel_height=Zl*this.fontLevel,this.setImageWidth(this.fontLevel),this.setInputSize(this.fontLevel)},setImageWidth(t){switch(this.fontLevel){case.6:this.img_width=44;break;case.8:this.img_width=46.75;break;case 1:this.img_width=49.5;break;case 1.2:this.img_width=52.25;break;case 1.4:this.img_width=55;break}},setInputSize(t){let e=this.$store.state.grammar_type;this.$nextTick(()=>{if("SA"==e){let e=this.$store.state.grammar_sa_type,s=this.$store.state.current_step;if(0===e){let e=document.getElementById("wki-"+s);if(e){let s=e.getAttribute("data-textleng")?e.getAttribute("data-textleng"):5;s=(+s+7)*t,e.style.width=s+"vw"}}else if(2===e){let e=document.getElementsByClassName("sa_input");if(e)for(let s=0,i=e.length;s0)for(let s=0,i=e.length;s{let e=this.$store.state.grammar_sub_unit,s=this.$store.state[`grammar_${e}_data`],i=s?s.passage:"",o=s?s.choices:"";if(o&&o.length>0){for(let a=0,n=t.length;a0)for(let e=0,s=t[a].split_exam.length;e").replace(/\}\}/g,""))}else for(let a=0,n=t.length;a0)for(let e=0,s=t[a].split_exam.length;e").replace(/\}\}/g,""));this.$forceUpdate()})}},methods:{selectPopquiz:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.commit("getPopquizSelect",{key:e})},pcKeydown:function(t){const e=t.which||t.keyCode;49<=e&&52>=e&&this.selectPopquiz(null,e-49)}},computed:{setClass(){return t=>{let e="";if(this.$store.getters.getIsScoring){switch(this.$store.getters.getGrammarPopquizClass(t)){case 1:e="select";break;case 2:e="correct grey--text";break;case 3:e="select";break;case 4:e="wrong grey--text";break;default:e="grey--text";break}return e}switch(this.$store.getters.getGrammarPopquizClass(t)){case 1:e="select";break;case 2:e="select";break;case 3:e="select";break;case 4:e="grey--text";break;default:e="grey--text";break}return e}},setIcon(){return t=>this.$store.getters.getIsScoring?this.$store.getters.getGrammarPopquizClass(t):10}},created(){if(this.contents=[],this.$store.state[this.sub_unit+"_sentences"]&&this.$store.state[this.sub_unit+"_sentences"].length>0)this.contents=this.$store.state[this.sub_unit+"_sentences"];else{let t=setInterval(()=>{this.$store.state[this.sub_unit+"_sentences"]&&this.$store.state[this.sub_unit+"_sentences"].length>0&&(this.contents=this.$store.state[this.sub_unit+"_sentences"],clearInterval(t))},750)}"ios"===this.$store.state.platform&&(this.is_ios=!0),this.unwatch_once=this.$store.watch(t=>t.popquiz_choices,(t,e)=>{t&&t.length>0&&(t.join("").match(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/g)||(this.sel_korean=!1),this.unwatch_once(),this.unwatch_once=null)})},mounted(){this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},beforeDestroy(){console.log("--- GrammarMc beforeDestroy ---"),this.$store.commit("destroyPopquiz"),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){console.log("--- GrammarMc Destroyed ---"),this.$destroy()}},Xl=Jl,Ql=(s("b38b"),Object(p["a"])(Xl,Vl,Fl,!1,null,null,null)),tc=Ql.exports;y()(Ql,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var ec=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"g-writing-k-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[s("form",{ref:"writing-k-ans",staticClass:"underscore-grey",attrs:{id:"writing-k-ans",name:"writing-k-ans",action:""},on:{submit:function(e){return t.answerSubmit(e)}}},[t.mobile_focus?s("div",{staticClass:"pos-fix",staticStyle:{top:"3.5vh","z-index":"15",right:"7%"}},[s("v-btn",{attrs:{text:"",icon:"",color:"grey","x-large":"",absolute:"",right:""},on:{click:t.hideMobileFocus}},[s("v-icon",{staticStyle:{"font-size":"24px",color:"#aaa"},attrs:{size:"24px"}},[t._v(t._s(t.mdi_close))])],1)],1):t._e(),t._l(t.contents,(function(e,i){return s("v-window-item",{key:"writing-k-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"writing-k-main height-100",attrs:{id:"wk-wrap-"+i}},[s("div",{staticClass:"responsive-wrapper",staticStyle:{height:"70vh","overflow-x":"hidden","overflow-y":"auto"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+t.font_head+"vw"},[s("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(e.question)}})]),e.img?s("div",{staticClass:"d-flex align-center justify-center"},[s("img",{staticStyle:{"margin-bottom":"3vh"},style:"width:"+t.img_width+"vw",attrs:{src:t.NG_CDN+"/lecture_img/"+("development"==t.NODE_ENV?"test/"+e.img:e.img)}})]):t._e(),2!=t.sa_type&&e.passage?s("v-row",{staticClass:"ma-0 dash-passage",class:{"m-expended-q":t.mobile_focus},staticStyle:{"min-height":"11vh","margin-bottom":"3vh !important"}},[s("v-col",{staticClass:"d-flex py-0 px-col justify-center align-center flex-wrap text-center",style:"font-size:"+t.font_main+"vw",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("span",{domProps:{innerHTML:t._s(e.passage)}})])],1):t._e(),2===t.sa_type?s("v-row",{staticClass:"ma-0 align-center",class:{"m-expended-a":t.mobile_focus},style:{minHeight:e.img?"30vh":"60vh"}},[s("v-col",{staticClass:"height-100 py-0 px-col",style:{marginTop:e.img?"-3vh":"-20vh"},attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"answer-wrapper width-100 height-100 d-flex justify-center align-start flex-wrap pos-rel"},[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"hint result pos-rel top-0 left-0 width-100 height-100 text-center white small-kor",staticStyle:{"font-size":"unset !important"}},[t.$store.state.writing_k_current_answer[0]?s("div",{staticStyle:{"line-height":"1.5"},style:"font-size:"+(t.font_std+.3)+"vw",domProps:{innerHTML:t._s(t.$store.state.writing_k_current_answer[0])}}):t._e()]):s("div",{class:"fs-"+t.font_std.toString().replace(".","")+" small-kor",staticStyle:{"line-height":"1.5"},style:"font-size:"+(t.font_std+.3)+"vw",attrs:{id:"wki-"+i},domProps:{innerHTML:t._s(e.passage)}})])])],1):s("v-row",{staticClass:"ma-0",class:{"m-expended-a":t.mobile_focus},staticStyle:{"min-height":"36vh"}},[s("v-col",{staticClass:"py-0 px-col pos-rel",staticStyle:{"min-height":"inherit"},style:0===t.sa_type?"":"display: flex; justify-content: center;",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"answer-wrapper width-100 d-flex justify-center align-start flex-wrap pos-abs",style:0===t.sa_type?e.img?"top: 50%; left: 50%; transform: translate(-50%, -50%); margin-top: -2vh;":"top: 50%; left: 50%; transform: translate(-50%, -50%); margin-top: -12.05vh;":"padding-top: 3vh"},[0===t.sa_type?[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"hint result pos-abs top-0 left-0 width-100 height-100 text-center white",staticStyle:{"font-size":"unset !important",top:"50% !important",left:"50% !important",transform:"translate(-50%, -50%)",width:"auto !important"}},[s("div",{staticClass:"d-flex align-center justify-center",staticStyle:{height:"inherit"}},t._l(Array.from(t.sa_rightanswer||""),(function(e,i){return s("span",{key:"tmp4-"+i,class:[t.$store.state.writing_k_wrong_pos.includes(i)?"danger--text":"black--text"],style:"font-size:"+t.font_std+"vw",domProps:{textContent:t._s(e)}})})),0)]):s("input",{ref:"wki-"+i,refInFor:!0,staticClass:"sa_input",staticStyle:{resize:"none"},style:"font-size:"+t.font_std+"vw !important",attrs:{type:"text",autocomplete:"off",id:"wki-"+i,disabled:t.getInputDisabled},on:{keydown:t.keydownKeyboardInput,keyup:t.keyupKeyboardPCInput,paste:t.forbiddenPaste}})]:1===t.sa_type?[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticStyle:{"font-size":"unset !important"}},t._l(Array.from(t.cur_rightanswer||""),(function(e,i){return s("span",{key:"tmp5-"+i,class:[t.$store.state.writing_k_wrong_pos.includes(i)?"danger--text":"black--text"],style:"font-size:"+t.font_std+"vw",domProps:{textContent:t._s(e)}})})),0):s("textarea",{ref:"wki-"+i,refInFor:!0,staticClass:"width-100 height-100",staticStyle:{resize:"none"},style:"font-size:"+t.font_std+"vw",attrs:{autocomplete:"off",id:"wki-"+i,disabled:t.$store.state.ox_show,spellcheck:!1},on:{keydown:t.keydownKeyboard,keypress:function(e){return e.preventDefault(),t.keypressKeyboard(e)},paste:t.forbiddenPaste,keyup:t.keyupKeyboardPC,blur:function(e){return t.blurInput(i)}}})]:t._e()],2)])],1)],1)]):t._e()],1)}))],2),s("div",{directives:[{name:"show",rawName:"v-show",value:t.init_hint,expression:"init_hint"}],staticClass:"init-hint-ment grey--text pos-abs-i width-100 text-center"},[t._v("\n 잠시 뒤에 철자가 사라집니다.\n ")]),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.init_hint&&t.alert_eng,expression:"!init_hint && alert_eng"}],staticClass:"init-hint-ment grey--text pos-abs-i width-100 text-center"},[t._v("\n 키보드 입력을 영어로 설정하세요.\n ")])])},sc=[];const ic=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",".","?","!","'",",","0","1","2","3","4","5","6","7","8","9","-"];var oc={name:"grammar_writing_k",mixins:[Yl],props:["sub_unit","gkey","data","isAssessment"],data(){return{NG_CDN:g["I"],NODE_ENV:g["J"],VOCA_ADVANCED:g["qb"],contents:[],os_mode:0,hint_term:500,showTerm:this.isAssessment?100:500,init_hint:!1,show_hint:!1,hint_hit:0,hint_limit:null,hint_type:null,hint_pos:[],char_limit:0,charpos:0,cur_question_txt:null,cur_answer_txt:null,cur_empty_pos:null,cur_input:null,input_val:"",settimeout1:null,disable_timeout:!1,is_mobile:this.$store.state.is_mobile,unwatch1:null,unwatch2:null,unwatch3:null,unwatch4:null,unwatch5:null,unwatch6:null,unwatch_once:null,unwatch_once2:null,mobile_focus:!1,mobile_top:0,focus_status:!1,alert_eng:!1,delegate:null,m_typing:!1,mdi_close:Lt["B"],sa_type:null,sa_rightanswer:null,sa_rightanswer_2:null,cur_rightanswer:null}},watch:{input_val:function(t,e){2===this.sa_type?this.$nextTick(()=>{let t=document.getElementsByClassName("sa_input"),e=[];for(let s=0;s{if(this.$store.state.assessmentInfo&&t&&t.length>0){const e=t[0];e&&void 0!==e.sa_type&&this.$store.state.grammar_sa_type!==e.sa_type&&(this.$store.state.grammar_sa_type=e.sa_type)}this.sa_type=Number(this.$store.state.grammar_sa_type),t&&setTimeout(()=>{if(0===this.sa_type){let t=document.getElementById("wki-"+this.$store.state.current_step);if(t){let e=this.contents[this.$store.state.current_step].rightanswer.split("");t.setAttribute("data-textleng",e.length),t.setAttribute("maxlength",e.length+3),t.style.width=e.length+7+"vw",this.$forceUpdate()}}else if(2===this.sa_type){let t=document.getElementsByClassName("sa_input");if(t&&t.length>0)for(let e=0;e{setTimeout(()=>{if(0===this.sa_type){let e=document.getElementById("wki-"+t),s=this.contents[t].rightanswer.split("");e&&(e.setAttribute("data-textleng",s.length),e.setAttribute("maxlength",s.length+3),e.style.width=s.length+7+"vw")}else if(2===this.sa_type){let t=document.getElementsByClassName("sa_input");if(t&&t.length>0)for(let e=0;e0&&(this.cur_question_txt=t.join(""),this.$store.commit("setGrammarDisabled",!1))}},methods:{goNext(){this.isAssessment?this.data.next_disabled||this.$set(this.data,"check_answer",!0):this.$store.dispatch("processNext")},answerSubmit:function(t){t.preventDefault()},forbiddenPaste:function(t){return t.preventDefault(),t.stopPropagation(),!1},cursorMoveMobile:function(t){if(this.setCursorPos(this.cur_input,this.charpos,this.charpos),!t)return!1;let e=this.cur_question_txt.length;if("right"==t)while(!this.cur_empty_pos.includes(this.charpos)){if(e<=this.charpos)break;this.charpos+=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)}else if("left"==t)while(!this.cur_empty_pos.includes(this.charpos-1)){if(0>=this.charpos)break;this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)}},touchKeyboard:function(t,e){if(this.m_typing){this.cur_input.execCommand("undo");return!1}this.m_typing=!0;let s=t.data?Array.from(t.data):null;this.charpos=this.getCursorPos(this.cur_input).start;let i=this.cur_input.value;if(i.length>this.cur_answer_txt.length){let t=s?1:0;i=i.substr(0,this.cur_question_txt.length+t)}if(null===s&&"deleteContentBackward"===t.inputType)return this.cur_input.value=i.substr(0,this.charpos)+this.cur_answer_txt[this.charpos]+i.substr(this.charpos),this.cursorMoveMobile("left"),this.$store.commit("updateAnswerPC",this.cur_input.value),!1;if(null===s&&"insertLineBreak"===t.inputType)return this.cur_input.value=i.replace(/(?:\r\n|\r|\n)/g,""),this.$store.commit("updateAnswerPC",this.cur_input.value),this.goNext(),!1;for(let o=0;o0){let t=this.cur_input.value;s<=t.length&&(t=this.koreanReplace(t),t=t.substr(0,s),this.cur_input.value=t);do{this.charpos-=1,this.cur_empty_pos.includes(this.charpos)&&(this.cur_input.value=t.substr(0,this.charpos)+this.cur_answer_txt[this.charpos]+t.substr(this.charpos+1),this.input_val=this.cur_input.value),this.setCursorPos(this.cur_input,this.charpos,this.charpos)}while(!this.cur_empty_pos.includes(this.charpos)&&this.charpos>0)}return!1}if(!(s<=this.cur_input.value)){if(37==e)return this.charpos>0&&(this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)),!1;if((32==e||39==e)&&this.charpos<=s)return this.charpos+=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(!this.cur_empty_pos.includes(this.charpos))return t.preventDefault(),!1;if(ic.includes(t.key)){this.$store.dispatch("soundEffectPlay","dicbtn");let e=this.cur_input.value;return this.cur_input.value=e.substr(0,this.charpos)+t.key+e.substr(this.charpos+1),this.charpos+=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos),this.input_val=this.cur_input.value,this.alert_eng=!1,!0}return t.preventDefault(),t.stopPropagation(),!1}t.preventDefault()},keydownKeyboardInput:function(t){if(222===t.keyCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'")),t.defaultPrevented)return;if(t.repeat)return void t.preventDefault();if(this.show_hint&&(this.show_hint=!1),this.init_hint)return;let e=t.which||t.keyCode,s=this.cur_question_txt.length,i=this.cur_input?this.cur_input.selectionStart:null;if(null===i)return!1;if(91==e)return!1;if([9].includes(e))return!0;if(8==e||"Backspace"==t.code||"Backspace"==t.key){t.preventDefault(),t.stopPropagation();let e=this.cur_input.value;return e=this.koreanReplace(e),e=e.substr(0,i-1)+e.substr(i,i+1),this.cur_input.value=e,this.cur_input.setSelectionRange(i-1,i-1),!1}if(!(s+3<=this.cur_input.value.length))return 37==e||32==e||39==e?(this.cur_input.setSelectionRange(i,i),!1):46==e?(t.preventDefault(),t.stopPropagation(),!1):ic.includes(t.key)?(this.$store.dispatch("soundEffectPlay","dicbtn"),this.input_val=this.cur_input.value.replace(/‘/g,"'"),this.alert_eng=!1,!0):(t.preventDefault(),t.stopPropagation(),!1);t.preventDefault()},keydownKeyboardInput2:function(t){if(32===t.keyCode)return t.preventDefault(),t.stopPropagation(),void(t.target.value=t.target.value.replace(/ /g,""));if(222===t.keyCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'")),t.defaultPrevented)return;if(t.repeat)return void t.preventDefault();if(this.show_hint&&(this.show_hint=!1),this.init_hint)return;let e=t.which||t.keyCode,s=t.target?t.target.selectionStart:null;if(null===s)return!1;if([9].includes(e))return!0;if(91==e)return!1;if(8==e||"Backspace"==t.code||"Backspace"==t.key){t.preventDefault(),t.stopPropagation();let e=t.target.value;return e=this.koreanReplace(e),e=e.substr(0,s-1)+e.substr(s,s+1),t.target.value=e,t.target.setSelectionRange(s-1,s-1),!1}return 37==e||32==e||39==e?(t.target.setSelectionRange(s,s),!1):46==e?(t.preventDefault(),t.stopPropagation(),!1):ic.includes(t.key)?(this.$store.dispatch("soundEffectPlay","dicbtn"),this.input_val=t.target.value,this.alert_eng=!1,!0):(t.preventDefault(),t.stopPropagation(),!1)},keypressKeyboard:function(t){return t.preventDefault(),t.stopPropagation(),!1},keyupKeyboardPC:function(t){if(!this.cur_input)return;let e=t.which||t.keyCode,s=0,i=!1,o=!1,a=this.cur_question_txt.length;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(13==e&&this.goNext(),8==e){t.preventDefault(),t.stopPropagation(),this.setCursorPos(this.cur_input,this.charpos,this.charpos);let e=this.cur_input.value;if(a<=e.length){let t=this.koreanReplace(this.cur_input.value);this.cur_input.value=t.substr(0,a)}while(!this.cur_empty_pos.includes(this.charpos)&&this.charpos>0)if(this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos),s++,s>300)break;return!1}let n=Array.from(this.cur_input.value),r=n.filter((t,e)=>a<=e||(!(!this.cur_empty_pos.includes(e)||new RegExp("[a-zA-Z_ .,?!]","gi").test(t))||void 0));if(r.length>0)return this.input_val=this.koreanReplace(this.input_val),this.cur_input.value=this.input_val,this.alert_eng=!0,this.settimeout1&&window.clearTimeout(this.settimeout1),this.settimeout1=window.setTimeout(()=>{this.alert_eng=!1},2500),!1;if(37==e?i=!0:o=!0,this.cur_empty_pos.includes(this.charpos))return t.preventDefault(),t.stopPropagation(),this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1;let l=!0;while(l&&this.charpos>0&&this.charpos<=a){if(i)this.charpos-=1;else{if(!o){l=!1;break}this.charpos+=1}if((this.cur_empty_pos.includes(this.charpos)||this.charpos>=a||this.charpos<=0)&&(l=!1),this.setCursorPos(this.cur_input,this.charpos,this.charpos),s++,s>300)break}},keyupKeyboardPCInput:function(t){222===t.keyCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'"));let e=t.which||t.keyCode,s=this.cur_question_txt?this.cur_question_txt.length:0;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(13==e&&(this.input_val=this.cur_input?this.cur_input.value:"",this.goNext()),8==e)return t.preventDefault(),t.stopPropagation(),!1;let i=this.cur_input?Array.from(this.cur_input.value):null;if(null===i)return!1;let o=i.filter((t,e)=>s<=e||(!new RegExp("[a-zA-Z0-9_ .?!']","gi").test(t)||void 0));if(o.length>0)return this.cur_input.value=this.koreanReplace(this.cur_input.value.replace(/‘/g,"'")),this.alert_eng=!0,this.settimeout1&&window.clearTimeout(this.settimeout1),this.settimeout1=window.setTimeout(()=>{this.alert_eng=!1},2500),!1;this.input_val=this.cur_input.value.replace(/‘/g,"'")},keyupKeyboardPCInput2:function(t){222===t.keyCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'"));let e=t.which||t.keyCode;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(13==e&&(this.input_val=t.target.value,this.goNext()),8==e)return t.preventDefault(),t.stopPropagation(),!1;let s=Array.from(t.target.value),i=s.filter((t,e)=>{if(!new RegExp("[a-zA-Z_0-9 .?!']","gi").test(t))return!0});if(i.length>0)return t.target.value=this.koreanReplace(t.target.value.replace(/‘/g,"'")),this.alert_eng=!0,this.settimeout1&&window.clearTimeout(this.settimeout1),this.settimeout1=window.setTimeout(()=>{this.alert_eng=!1},2500),!1;this.input_val=t.target.value.replace(/‘/g,"'")},koreanReplace:function(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t;return e.test(s)&&(s=s.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi,(t,e)=>"")),s},setCursorPos:function(t,e,s){if(arguments.length<3&&(s=e),t.selectionStart)setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},1);else if(t.createTextRange){let i=t.createTextRange();i.moveStart("character",e),i.collapse(),i.moveEnd("character",s-e),i.select()}},getCursorPos:function(t){let e,s,i,o,a,n=0,r=0;if(t&&"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd)n=t.selectionStart,r=t.selectionEnd;else{if(s=document.selection?document.selection.createRange():null,null===s)return!1;s&&s.parentElement()==t&&(o=t.value.length,e=t.value.replace(/\r\n/g,"\n"),i=t.createTextRange(),i.moveToBookmark(s.getBookmark()),a=t.createTextRange(),a.collapse(!1),i.compareEndPoints("StartToEnd",a)>-1?n=r=o:(n=-i.moveStart("character",-o),n+=e.slice(0,n).split("\n").length-1,i.compareEndPoints("EndToEnd",a)>-1?r=o:(r=-i.moveEnd("character",-o),r+=e.slice(0,r).split("\n").length-1)))}return{start:n,end:r}},setFirst:function(){this.init_hint=!1,this.settimeout1&&clearTimeout(this.settimeout1),this.$store.state.is_mobile||document.removeEventListener("click",this.delegateFocus),this.disable_timeout=!0,this.$store.commit("nextDisabled",!0),this.settimeout1=setTimeout(()=>{this.timeoutFirst(),this.disable_timeout=!1,this.$store.state.is_mobile||document.addEventListener("click",this.delegateFocus)},this.hint_term)},timeoutFirst:function(){const t=this.isAssessment?0:this.$store.state.current_step;if(this.cur_input=document.getElementById("wki-"+t),this.cur_input&&(0===this.sa_type&&!this.sa_rightanswer&&this.contents&&(this.sa_rightanswer=this.contents[t].rightanswer),this.cur_input.value=this.input_val,this.contents[0].img||setTimeout(()=>{this.cur_input.focus()},500),1===this.sa_type&&this.setCursorPos(this.cur_input,this.cur_empty_pos[0],this.cur_empty_pos[0])),2===this.sa_type){let t=this.contents,e=this.$store.state.current_step,s=!0;t[e].img&&(s=!1);let i=document.getElementsByClassName("sa_input");if(i)for(let o=0;o=this.hint_limit},getCurStep(){return this.$store.state.current_step},getInputDisabled(){return this.$store.getters.getNextDisabled}},created(){setTimeout(()=>{this.contents=this.$store.state.sentences.map(t=>t),0==this.contents.length&&(this.unwatch_once2=this.$store.watch(t=>t.sentences,(t,e)=>{t.length>0&&(this.contents=t,this.unwatch_once2(),this.unwatch_once2=null)}));let t=window.navigator.userAgent,e=window.navigator.platform,s=["Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],o=["iPhone","iPad","iPod"],a=null;if(-1!==s.indexOf(e)?a="Mac OS":-1!==o.indexOf(e)?a="iOS":-1!==i.indexOf(e)?a="Windows":/Android/.test(t)?a="Android":!a&&/Linux/.test(e)&&(a="Linux"),"Mac OS"!=a&&"iOS"!=a||(this.os_mode=1),this.hint_limit=this.$store.state.process_type==g["hb"]?g["ib"]:g["C"],this.$store.state.writing_k_empty_pos&&(this.cur_empty_pos=this.$store.state.writing_k_empty_pos),this.$store.state.writing_k_current_answer&&(this.cur_answer_txt=this.$store.state.writing_k_current_answer.join(""),this.input_val=this.cur_answer_txt),this.$store.state.writing_k_current_question&&(this.cur_question_txt=this.$store.state.writing_k_current_question.join("")),this.$store.state.writing_k_current_rightanswer&&(this.cur_rightanswer=this.$store.state.writing_k_current_rightanswer.join("")),0===this.input_val.indexOf("rightanswer::")){let t=this.input_val.split("::")[1];this.cur_answer_txt="",this.input_val="",this.sa_rightanswer=t}this.unwatch2=this.$store.watch((t,e)=>this.$store.getters.getCurrentStep,(t,e)=>{t>0&&t!=e&&(this.setFirst(),this.cur_question_txt="",this.cur_answer_txt="",this.input_val="",this.cur_empty_pos="",this.hint_type=0,this.hint_hit=0,this.hint_show=!1)}),this.unwatch_once=this.$store.watch(t=>t.loading_percent,(t,e)=>{0==t&&(this.$store.state.load_start?(this.setFirst(),this.$store.commit("setLoadStart",!1)):this.setFirst(),this.unwatch_once(),this.unwatch_once=null)}),this.$store.state.is_mobile||(this.unwatch3=this.$store.watch(t=>t.dialog_leaning_stop,(t,e)=>{1==e&&0==t&&0==this.disable_timeout&&this.focusInput("wki-"+this.$store.state.current_step)})),this.unwatch5=this.$store.watch(t=>t.writing_k_current_answer,(t,e)=>{if(t&&t.length>0&&(this.cur_rightanswer=this.$store.state.writing_k_current_rightanswer?this.$store.state.writing_k_current_rightanswer.join(""):"",this.cur_answer_txt=t.join(""),this.input_val=t.join(""),0===this.input_val.indexOf("rightanswer::"))){let t=this.input_val.split("::")[1];this.cur_answer_txt="",this.input_val="",this.sa_rightanswer=t}}),this.unwatch6=this.$store.watch(t=>t.writing_k_empty_pos,(t,e)=>{this.cur_empty_pos=t})},this.showTerm)},mounted(){setTimeout(()=>{this.isAssessment&&(this.unwatch_once&&(this.unwatch_once(),this.unwatch_once=null),this.$store.dispatch("setGrammarWritingK").then(()=>{this.setFirst()}))},this.showTerm)},beforeDestroy(){this.$store.state.modules;if(this.unwatch2&&this.unwatch2(),this.unwatch_once&&this.unwatch_once(),this.unwatch_once2&&this.unwatch_once2(),this.settimeout1&&window.clearTimeout(this.settimeout1),this.$store.state.is_mobile||(document.removeEventListener("click",this.delegateFocus),this.unwatch3&&this.unwatch3()),this.unwatch4&&this.unwatch4(),this.unwatch5&&this.unwatch5(),this.unwatch6&&this.unwatch6(),2===this.sa_type){let t=document.getElementsByClassName("sa_input");for(let e=0;e{this.$store.state[t+"s"]&&this.$store.state[t+"s"].length>0&&(this.contents=this.$store.state[t+"s"].map(e=>({...e,txt:e[t]})),this.sa_type=this.$store.state.grammar_sa_type),0==this.contents.length&&(this.unwatch_once2=this.$store.watch(e=>e[t+"s"],(e,s)=>{e.length>0&&(this.contents=e.map(e=>({...e,txt:e[t]})),this.sa_type=this.$store.state.grammar_sa_type,this.unwatch_once2(),this.unwatch_once2=null)})),"ios"===this.$store.state.platform&&(this.is_ios=!0),this.$store.state.writing_k_empty_pos&&(this.cur_empty_pos=this.$store.state.writing_k_empty_pos),this.$store.state.writing_k_current_answer&&(this.cur_answer_txt=this.$store.state.writing_k_current_answer.join(""),this.input_val=this.cur_answer_txt),this.$store.state.writing_k_current_question&&(this.cur_question_txt=this.$store.state.writing_k_current_question.join(""),this.char_limit=this.$store.state.writing_k_empty_pos.length),this.unwatch1=this.$store.watch((t,e)=>e.getWritingKQuestion,(t,e)=>{let s=t,i="";for(let o=0;ot.dialog_leaning_stop,(t,e)=>{1==e&&0==t&&0==this.disable_timeout&&this.focusInput("wki-"+this.$store.state.current_step)}))},500)},watch:{contents(t){this.$nextTick(()=>{if(this.$store.state.assessmentInfo&&t&&t.length>0){const e=t[0];e&&void 0!==e.sa_type&&this.$store.state.grammar_sa_type!==e.sa_type&&(this.$store.state.grammar_sa_type=e.sa_type)}this.sa_type=Number(this.$store.state.grammar_sa_type)})},"$store.state.grammar_disabled"(t){console.log("grammar_disabled : ",t)},"$store.getters.getCurrentStep"(t,e){console.log("Watch $store.getters.getCurrentStep",t,e),t>0&&t!=e&&this.setFirst()},"$store.state.loading_percent"(t){0==t&&(console.log("Watch $store.state.loading_percent",t),this.setFirst())}},computed:{showAnswerHtml(){return this.$store.state.writing_k_current_answer.join("")},getNextDisabled(){return this.$store.getters.getNextDisabled}},methods:{answerSubmit(t){t.preventDefault()},touchKeyboard(t,e){if(this.init_hint)return void(t.target.value="");let s=t.target.value;t.target.value=t.target.value.replace(/‘|’/g,"'");let i=Array.from(s);i.length>this.char_limit&&(t.target.value=i.splice(0,this.char_limit).join("")),this.$store.commit("updateGrammarAnswerMobile",s)},touchKeyboard0(t,e){if(this.init_hint)return void(t.target.value="");let s=t.target.value;t.target.value=t.target.value.replace(/‘|’/g,"'"),this.$store.commit("updateGrammarAnswerMobile",s)},touchKeyboard2(t=""){let e=document.getElementsByClassName("sa_input"),s=[];for(let i=0;i{if(0===+this.$store.state.grammar_sa_type){let t=document.getElementById("wki-"+e);t&&!this.contents[e].img&&t.focus()}else if(2===+this.$store.state.grammar_sa_type){let t=document.getElementsByClassName("sa_input");t&&t.length>0&&!this.contents[e].img&&t[0].focus()}}),this.$store.commit("nextDisabled",!1),this.$store.commit("setGrammarDisabled",!1),this.init_hint=!1,this.init_hint_underscore=null,this.focus_status=!0},focusInput(t,e){"sa1"===e&&this.is_ios?this.checkFocus():(console.log("focusInput"),document.getElementById(t).focus(),this.focus_status=!0)},keyupKeyboard(t,e=""){let s=t.which||t.keyCode;if(222===t.ketCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'")),229==s&&""!=e){let t=document.getElementsByClassName("sa_input")[e];t.value=t.value.replace(/ /g,"")}if(13==s){if(""!=e){let t=document.getElementsByClassName("sa_input")[e];t&&t.blur()}this.$store.getters.getNextDisabled||this.$store.dispatch("processNext")}if(8==s)if(2===this.sa_type){let t=document.getElementsByClassName("sa_input"),e=[];for(let s=0;s127?2:1};for(let s=0;s{this.$nextTick(()=>{let e=document.getElementById("wki-"+t);if(e){let s=this.contents[t].rightanswer.split("").length;e.setAttribute("data-textleng",s),e.setAttribute("maxlength",+s+3),e.style.width=+s+7+"vw",e.style.display="block",this.$forceUpdate()}})},0),setTimeout(()=>{let e=document.getElementById("wki-"+t);e&&(this.contents[t].img||setTimeout(()=>{e.focus()},this.hint_term))},500)):1===+this.$store.state.grammar_sa_type?setTimeout(()=>{let e=document.getElementById("wki-"+t);e&&setTimeout(()=>{e.value="",e.focus()},this.hint_term)},500):2===+this.$store.state.grammar_sa_type&&(setTimeout(()=>{this.$nextTick(()=>{let t=document.getElementsByClassName("sa_input");if(t&&t.length>0)for(let e=0;e{let e=document.getElementById("wki-"+t);if(e){let t=e.getElementsByClassName("sa_input");if(t)for(let e=0;e{this.checkFocus(e)}),t[e].addEventListener("blur",()=>{this.checkBlur(e)}),t[e].addEventListener("input",t=>{t.target.value=t.target.value.replace(/ /g,""),this.touchKeyboard2(e)}),t[e].addEventListener("keyup",t=>{this.keyupKeyboard(t,e)})}},500)),this.settimeout1&&clearTimeout(this.settimeout1),this.$store.state.is_mobile||document.removeEventListener("click",this.delegateFocus),document.getElementById("writing-k-ans")&&document.getElementById("writing-k-ans").classList.add("underscore-grey"),this.disable_timeout=!0,this.$store.commit("nextDisabled",!0),this.settimeout1=setTimeout(()=>{this.timeoutFirst(),this.disable_timeout=!1,this.$store.state.is_mobile||document.addEventListener("click",this.delegateFocus)},this.hint_term)},checkFocus(t=""){let e=this.$store.state.current_step;this.$store.state.assessmentInfo&&(e=0);let s=this.contents[e];if(this.is_ios){if(1==s.sa_type){const t=document.getElementById("wki-"+e);console.log(t),t&&(console.log("IOS FOCUS"),t.focus(),t.scrollTo(0,0))}return}if(this.mobile_focus=!0,this.$store.state.is_mobile&&"android"===this.$store.state.platform)return this.viewportResizeDetected=!1,this.focusTimeout&&clearTimeout(this.focusTimeout),void(this.focusTimeout=setTimeout(()=>{this.viewportResizeDetected||this.setupFallbackScroll()},500));let i=document.getElementsByClassName("responsive-wrapper");i=i?i[0]:null,i&&(this.focus_timeout&&clearTimeout(this.focus_timeout),this.focus_timeout=setTimeout(()=>{if(!this.$store.state.ox_show)if(2!=s.sa_type&&s.passage){if(0===+s.sa_type){let t=document.getElementById("wki-"+e),s=t.getBoundingClientRect().top/this.get_vh*100;s>=34&&(i.style.marginTop=`-${s-33}vh`)}else if(1===+s.sa_type){let t=document.getElementById("wki-show-"+e),s=t.getBoundingClientRect().top/this.get_vh*100;s>=34&&(i.style.marginTop=`-${s-34}vh`)}}else if(2==s.sa_type){let e=document.getElementsByClassName("sa_input")[t],s=e.getBoundingClientRect().top/this.get_vh*100;s>=34&&(i.style.marginTop=`-${s-34}vh`)}},270))},checkBlur(t=""){let e=this.$store.state.current_step;this.contents[e];this.mobile_focus=!1,this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null);let s=document.getElementsByClassName("responsive-wrapper");s=s?s[0]:null,s&&(s.style.marginTop=""),this.is_ios&&window.scrollTo(0,NaN)},delegateFocus(t){this.focusInput("wki-"+this.$store.state.current_step)},setupKeyboardDetection(){this.initialViewportHeight=window.visualViewport?window.visualViewport.height:window.innerHeight,this.viewportResizeHandler=()=>{this.viewportResizeDetected=!0,this.handleKeyboardResize()},window.visualViewport&&"function"===typeof window.visualViewport.addEventListener&&window.visualViewport.addEventListener("resize",this.viewportResizeHandler)},handleKeyboardResize(){const t=this.$store.state.assessmentInfo?0:this.$store.state.current_step;let e=null;if(0===+this.$store.state.grammar_sa_type?e=document.getElementById("wki-"+t):1===+this.$store.state.grammar_sa_type?e=document.getElementById("wki-show-"+t):2===+this.$store.state.grammar_sa_type&&(e=document.getElementsByClassName("sa_input")[0]),!e)return;const s=e.getBoundingClientRect(),i=window.visualViewport?window.visualViewport.height:window.innerHeight;s.bottom>i&&(console.log("❗ 입력창이 키보드에 가려져 있습니다"),e.scrollIntoView({behavior:"smooth",block:"center"}))},setupFallbackScroll(){let t=this.$store.state.current_step;this.$store.state.assessmentInfo&&(t=0);let e=this.contents[t],s=document.getElementsByClassName("responsive-wrapper");if(s=s?s[0]:null,s)if(2!=e.sa_type&&e.passage){if(0===+e.sa_type){let e=document.getElementById("wki-"+t);if(!e)return;let i=e.getBoundingClientRect().top/this.get_vh*100;i>=34&&(s.style.marginTop=`-${i-33}vh`)}else if(1===+e.sa_type){let e=document.getElementById("wki-show-"+t);if(!e)return;let i=e.getBoundingClientRect().top/this.get_vh*100;i>=34&&(s.style.marginTop=`-${i-34}vh`)}}else if(2==e.sa_type){let t=document.getElementsByClassName("sa_input")[0];if(!t)return;let e=t.getBoundingClientRect().top/this.get_vh*100;e>=34&&(s.style.marginTop=`-${e-34}vh`)}}},mounted(){this.$store.state.is_mobile&&"android"===this.$store.state.platform&&this.setupKeyboardDetection(),setTimeout(()=>{this.$store.state.assessmentInfo&&(this.unwatch_once&&(this.unwatch_once(),this.unwatch_once=null),this.$store.dispatch("setGrammarWritingK").then(()=>{this.setFirst()}))},this.showTerm)},beforeDestroy(){console.log("::GrammarSaMobile beforeDestroy::"),this.unwatch1&&this.unwatch1(),this.unwatch2&&this.unwatch2(),this.unwatch_once&&this.unwatch_once(),this.unwatch_once2&&this.unwatch_once2(),this.settimeout1&&window.clearTimeout(this.settimeout1),this.focus_timeout&&clearTimeout(this.focus_timeout),this.focusTimeout&&clearTimeout(this.focusTimeout),this.viewportResizeHandler&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeHandler),this.$store.state.is_mobile||(document.removeEventListener("click",this.delegateFocus),this.unwatch3())},destroyed(){console.log("::GrammarSaMobile destroyed::"),this.$destroy()}},hc=dc,uc=(s("feff"),Object(p["a"])(hc,lc,cc,!1,null,null,null)),pc=uc.exports;y()(uc,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var _c=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{key:t.wrap_key,staticClass:"popquiz-window in-study",attrs:{id:"popquiz-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.contents,(function(e,i){return s("v-window-item",{key:"popquiz-win-"+i,attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",[s("v-row",{staticStyle:{height:"70vh","overflow-x":"hidden","overflow-y":"auto"}},[s("v-col",{staticClass:"py-0",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+t.font_head+"vw"},[s("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(e.question)}})]),e.img?s("div",{staticClass:"d-flex align-center justify-center"},[s("img",{style:"width:"+t.img_width+"vw",attrs:{src:t.NG_CDN+"/lecture_img/"+("development"==t.NODE_ENV?"test/"+e.img:e.img)}})]):t._e(),s("div",{staticClass:"text-center d-flex align-center justify-center",style:{fontSize:t.font_main+.5+"vw",minHeight:(e.img?30:60)+"vh"}},[s("div",{staticStyle:{"line-height":"1.8"},style:{marginTop:e.img?"":"-20vh"}},[t._l(e.passage.split("
"),(function(o,a){return[0!=a?[s("br",{key:"passage-br-"+i+"-"+a})]:t._e(),"<"==o.charAt(0)?[s("span",{key:"passage-tag-"+i+"-"+a,domProps:{innerHTML:t._s(o)}})]:[t._l(Array.from(o),(function(o,n){return["ⓐ"==o?[s("strong",{key:"passage-span-"+i+"-"+a+"-"+n,staticClass:"cursor-pointer",class:t.setClass(i,0),domProps:{textContent:t._s(e.choose_a)},on:{click:function(s){return t.selectWord(i,e.choose_a)}}})]:"ⓑ"==o?[s("strong",{key:"passage-span-"+i+"-"+a+"-"+n,staticClass:"cursor-pointer",class:t.setClass(i,1),domProps:{textContent:t._s(e.choose_b)},on:{click:function(s){return t.selectWord(i,e.choose_b)}}})]:"/"==o?[s("b",{key:"passage-span-"+i+"-"+a+"-"+n,class:t.setClass(i,-1),domProps:{textContent:t._s(" / ")}})]:[s("span",{key:"passage-span-"+i+"-"+a+"-"+n,domProps:{textContent:t._s(o)}})]]}))]]}))],2)])])],1)],1):t._e()],1)})),1)},mc=[],gc={name:"grammar_cab",mixins:[Yl],props:["sub_unit"],data(){return{NG_CDN:g["I"],NODE_ENV:g["J"],wrap_key:0,contents:[],answers:[]}},created(){this.contents=[];let t=new Promise(t=>{if(this.$store.state[this.sub_unit+"_sentences"])this.contents=this.$store.state[this.sub_unit+"_sentences"],t();else{let e=setInterval(()=>{this.$store.state[this.sub_unit+"_sentences"]&&(this.contents=this.$store.state[this.sub_unit+"_sentences"],clearInterval(e),t())},1e3)}});t.then(()=>{let t=this.$store.state.grammar_sub_unit,e=this.$store.state[`grammar_${t}_data`]?this.$store.state[`grammar_${t}_data`].choices:null;if(this.selections=[],this.rights=[],e&&e.length>0)for(let s=0,i=this.contents.length;s0&&(this.answers=new Array(t.length))},"$store.state.current_step"(t,e){t!=e&&setTimeout(()=>{this.$store.commit("setGrammarDisabled",!1)},500)},"$store.state.grammar_disabled"(t){console.log("grammar_disabled : ",t)}},computed:{getCurrentStep(){return this.$store.state.current_step},setClass:function(){return function(t,e){return this.answers.length>0?this.$store.getters.getIsScoring&&this.$store.state.ox_show?this.answers[t]==this.rights[t]?this.selections[t][e]==this.rights[t]?"c_b":"grey--text text--lighten-3":this.selections[t][e]==this.rights[t]?"c_b":this.answers[t]?"c_r":"grey--text text--lighten-3":this.answers[t]?-1===e?"grey--text text--lighten-3":this.answers[t]==this.selections[t][e]?"success--text":"grey--text text--lighten-3":"info2--text":"info2--text"}}},methods:{selectWord:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(t,1,e),this.$store.commit("getCabSelect",{word:e})}}},bc=gc,vc=Object(p["a"])(bc,_c,mc,!1,null,null,null),fc=vc.exports;y()(vc,{VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var wc=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"matching-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"matching-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"matching-sentence-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"matching-main height-100"},[s("v-row",{staticStyle:{height:"34.6% !important"}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-7vh",style:"font-size:"+t.font_head+"vw"},[s("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(e.question)}})]),e.img?s("div",{staticClass:"d-flex align-center justify-center"},[s("img",{style:"width:"+t.img_width+"vw",attrs:{src:t.NG_CDN+"/lecture_img/"+("development"==t.NODE_ENV?"test/"+e.img:e.img)}})]):t._e(),s("div",{staticClass:"d-flex align-center justify-center text-center dash-passage",staticStyle:{"min-height":"50%"},style:"font-size:"+t.font_main+"vw"},[s("span",{domProps:{innerHTML:t._s(e.passage)}})])])],1),s("v-row",{staticClass:"align-content-center",staticStyle:{height:"27.6% !important"}},[s("v-col",{staticClass:"pa-0 d-flex height-inherit align-content-center justify-center",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"height-100",style:"font-size:"+t.font_std+"vw"},[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center",class:[t.$store.state.long_chips[i]?"d-block wb-all":"d-flex flex-row flex-wrap justify-center align-content-center wb-nm"],staticStyle:{"font-size":"inherit"},domProps:{innerHTML:t._s(t.getResultHtml)}}):s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center",class:[t.$store.state.long_chips[i]?"d-block wb-all":"d-flex flex-row flex-wrap justify-center align-content-center wb-nm"],staticStyle:{"font-size":"inherit"}},[t._l(t.$store.state.grammar_matching_data.selected_words,(function(e,i){return[t.is_ios?[i==t.$store.state.grammar_matching_data.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",domProps:{innerHTML:t._s(e)},on:{touchstart:function(s){return t.subSelection(s,e,i)}}}):s("span",{key:"matching-select-"+i,domProps:{innerHTML:t._s(e)}})]:[i==t.$store.state.grammar_matching_data.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",domProps:{innerHTML:t._s(e)},on:{click:function(s){return t.subSelection(s,e,i)}}}):s("span",{key:"matching-select-"+i,domProps:{innerHTML:t._s(e)}})]]}))],2)])])],1),s("v-row",{staticStyle:{height:"37.3% !important"}},[s("v-col",{staticClass:"pa-0 d-flex height-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"chips-wrapper py-0 text-center pos-rel ma-auto width-auto height-100 max-w-100 d-flex align-center justify-center align-content-center flex-wrap"},[t.$store.state.is_mobile?s("auto-text",{key:"at-"+i+"-3",attrs:{step:i,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:e.rightanswer,type:"chips",pa:.8,ma:.5,minWidth:4}},[t.is_ios?t._l(t.$store.state["grammar_matching_data"].choice_words[i],(function(e,o){return s("div",{key:"mat-div-"+o,on:{touchstart:function(s){return t.selectWord(s,e,o)}}},[s("v-chip",{key:"matching-choice-"+o,staticClass:"matching-select-btn text-center",class:[t.$store.state["grammar_matching_data"].selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})):t._l(t.$store.state["grammar_matching_data"].choice_words[i],(function(e,o){return s("v-touch",{key:"matching-touch-"+o,on:{pressup:function(s){return t.selectWord(s,e,o)}}},[s("v-chip",{key:"matching-choice-"+o,staticClass:"matching-select-btn text-center",class:[t.$store.state["grammar_matching_data"].selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})),s("div",{key:"mat-div-"+t.$store.state.grammar_matching_data.choice_words[i].length,on:{touchstart:function(e){return t.subSelection(e,t.$store.state.grammar_matching_data.choice_words[i][t.$store.state.grammar_matching_data.choice_words[i].length-1],t.$store.state.grammar_matching_data.choice_words[i].length-1)}}},[s("v-chip",{key:"matching-choice-backspace-btn",staticClass:"matching-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],1)],2):s("auto-text",{key:"at-"+i+"-3",attrs:{step:i,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:e.rightanswer,type:"chips",pa:.8,ma:.5,minWidth:4}},[t._l(t.$store.state.grammar_matching_data.choice_words[i],(function(e,o){return s("v-chip",{key:"matching-choice-"+o,staticClass:"matching-select-btn text-center",class:[t.$store.state["grammar_matching_data"].selected_keys.includes(o)?"visibility-hidden chip-"+i:"chip-"+i],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return t.selectWord(s,e,o)}}},[t._v("\n "+t._s(e)+"\n ")])})),s("v-chip",{key:"matching-choice-backspace-btn",staticClass:"matching-select-btn text-center backspace-btn",class:["chip-"+i,{"backspace-btn-pressed":t.backspacePressed}],style:t.backspacePressed?"":"background-color: #fff1f1 !important",attrs:{color:"grey",outlined:""},on:{click:function(e){return t.subSelection(e,t.$store.state.grammar_matching_data.choice_words[i][t.$store.state.grammar_matching_data.choice_words[i].length-1],t.$store.state.grammar_matching_data.choice_words[i].length-1)}}},[s("div",{staticClass:"key d-flex align-center justify-center svg-cover"},[s("svg",{staticClass:"backspace-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:t.backspacePressed?"#fff":"#9e9e9e","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[s("line",{attrs:{x1:"3",y1:"12",x2:"21",y2:"12"}}),s("polyline",{attrs:{points:"9 6 3 12 9 18"}})])])])],2)],1)])],1)],1):t._e()],1)})),1)},yc=[],xc={name:"grammar-matching",components:{AutoText:Xt},mixins:[Yl],props:["sub_unit"],data(){return{NG_CDN:g["I"],NODE_ENV:g["J"],is_ios:!1,backspacePressed:!1,doc_bind:!1}},created(){},mounted(){(!this.$store.state.is_mobile||this.$store.state.is_mobile&&void 0!=window.ExternalKeyboard&&window.ExternalKeyboard.isUsed)&&this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.current_step"(t,e){t!=e&&setTimeout(()=>{this.$store.commit("setGrammarDisabled",!1)},500)}},computed:{getResultHtml(){return this.$store.getters.getGrammarMatcingResultHtml}},methods:{selectWord:function(t,e,s){if(this.$store.state.grammar_matching_data.selected_keys.includes(s))return!1;this.$store.dispatch("getGrammarSelectChips",{word:e,key:s})},subSelection:function(t,e,s){this.backspacePressed=!0,this.$store.commit("subGrammarMatchingSelect",{word:e,key:s}),setTimeout(()=>{this.backspacePressed=!1},150)},pcKeydown:function(t){const e=t.which||t.keyCode;if(8==e){if(0===this.$store.state.grammar_matching_data.selected_words.length)return;this.backspacePressed=!0;const e=this.$store.state.grammar_matching_data.selected_words,s=e[e.length-1],i=e.length-1;this.subSelection(t,s,i),setTimeout(()=>{this.backspacePressed=!1},150)}else{if(13!=e)return t.preventDefault(),!1;{let t=document.getElementById("go-next-btn");t&&t.click()}}}},beforeDestroy(){this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},kc=xc,Cc=(s("27e0"),Object(p["a"])(kc,wc,yc,!1,null,null,null)),$c=Cc.exports;y()(Cc,{VChip:Me["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var Sc=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"pos-rel"},[s("div",{staticClass:"pos-abs d-flex cursor-pointer",attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("A")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("A")])]),t.$store.state.sentences.length>0?s("v-window",{staticClass:"bank-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"bank-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"bank-win-"+i,staticClass:"height-100",attrs:{value:i}},["MC"==e.type&&t.$store.state.current_step==i?[s("bank5",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"CAB"==e.type&&t.$store.state.current_step==i?[s("bank1",{attrs:{resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"SA"==e.type&&t.$store.state.current_step==i?[s("bank-sa",{attrs:{rkey:i,resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"SC"==e.type&&t.$store.state.current_step==i?[s("bank-sc",{attrs:{rkey:i,resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:t._e()],2)})),1):t._e(),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.fake_btn_show,expression:"fake_btn_show"}],staticClass:"study-module-arrow pos-fix-i right",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",disabled:"",ripple:!1}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdiChevronDoubleRight))])],1)],1)])},Tc=[],Ac=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank1 height-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank1-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank1-text",value:t.onScroll,expression:"onScroll",arg:"#bank1-text"}],staticClass:"text-container lh-1d8 width-100 pt-4vh pb-4vh text-center",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank1-text-con"}},[s("div",{staticClass:"b-dash dash-pad"},[t._l(t.texts,(function(e,i){return[s("span",{key:"b1-texts-span-"+i,domProps:{innerHTML:t._s(e)}}),t.selections[i]&&t.selections[i].length>0?[s("strong",{key:"b1-texts-strong-"+i,staticClass:"cursor-pointer",class:t.setClass(i,0),domProps:{textContent:t._s(t.selections[i][0])},on:{click:function(e){return t.selectWord(i,t.selections[i][0])}}}),s("b",{key:"b1-texts-b-"+i,class:t.setClass(i,-1)},[t._v(" / ")]),s("strong",{key:"b1-texts-strong-2-"+i,staticClass:"cursor-pointer",class:t.setClass(i,1),domProps:{textContent:t._s(t.selections[i][1])},on:{click:function(e){return t.selectWord(i,t.selections[i][1])}}})]:t._e()]}))],2)])]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t.$store.state.ox_show?[t._l(t.rights,(function(e,i){return[s("strong",{key:"b1-rights-strong-"+i,class:[t.answers[i]==e?"c_b":"c_r"]},[t._v("\n "+t._s(e)+"\n ")]),t.rights.length-1>i?s("b",{key:"b1-rights-b-"+i,staticClass:"grey--text"},[t._v("\n -\n ")]):t._e()]}))]:[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-strong-"+i,staticClass:"success--text"},[t._v("\n "+t._s(e)+"\n ")]),t.showBar(i)?s("b",{key:"b1-answers-b-"+i,staticClass:"success--text"},[t._v("\n -\n ")]):t._e()]}))]],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-s-2-"+i},[t._v(t._s(e))]),t.answers[i]&&t.answers[i+1]?s("b",{key:"b1-answers-b-2-"+i},[t._v("\n -\n ")]):t._e()]}))],2),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},Ic=[];const Dc=1.8,Rc=2,Pc=1.6,Mc=1.8,Ec=8;var Bc={name:"bankmixin",props:["use","resource","nextclicked","fontLevel"],data(){return{question:"",texts:[],selections:[],rights:[],answers:[],btn_active:!1,stdtext:"",scroll_pad:0,over_shadow_top:!1,over_shadow_bottom:!1,timeout1:null,unwatch1:null,unwatch2:null,text_el:null,text_child_el:null,text_child_el2:null,text_child_el3:null,font_head:Dc,font_std:Rc,font_main:Pc,font_foot:Mc,sel_height:Ec,is_scoring:this.$store.getters.getIsScoring,is_wrong_term:!1,prevent_wrong_trem:!1,timeout:null,DEFAULT_TIME:g["m"],mdi_chevron_double_right:Lt["r"]}},watch:{fontLevel(t,e){this.font_head=Dc*t,this.font_std=Rc*t,this.font_main=Pc*t,this.font_foot=Mc*t,this.sel_height=Ec*t}},computed:{isScoring(){return this.$store.getters.getIsScoring},setIconSize(){return this.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)},isStoryAdvanced(){return this.use&&"StoryAdvanced"===this.use}},methods:{checkScroll(){this.scroll_pad=Math.round(.02*this.$store.state.screen_height),this.onScroll()},goNext(t=""){if(this.focus_timeout){clearTimeout(this.focus_timeout);let t=document.getElementsByClassName("banksa");t=t[0]||null;let e=document.getElementsByClassName("banksa--wrap");e=e[0]||null,t&&e&&(e.style.marginTop="")}if(this.prevent_wrong_trem)return;if(this.btn_active=!1,this.is_wrong_term)return this.nextclicked(!0),this.$store.dispatch("processNext"),!1;if(this.is_mobile&&"click"!=t&&2==this.sa_type){let t=document.getElementsByClassName("sa_input"),e=this.cur_input.classList;if(e&&e[2]&&(e=Number(e[2].replace("num_","")),e{if(console.log(this.$store.state.grammar_bank_data),this.$store.commit("oxRight",e.right),this.$store.commit("oxShow",!0),this.isScoring)if(e.right)this.nextclicked(!0),this.$store.dispatch("processNext");else{this.is_wrong_term=!0,this.btn_active=!0,this.prevent_wrong_trem=!0;let t=3e3;this.timeout=window.setTimeout(()=>{this.prevent_wrong_trem=!1},t)}else this.nextclicked(!0),this.$store.dispatch("processNext")})},onScroll(t){let e=null,s=null,i=null,o=null;this.text_el&&(e=this.text_el.getBoundingClientRect()),this.text_child_el&&(s=this.text_child_el.getBoundingClientRect()),this.text_child_el2&&(i=this.text_child_el2.getBoundingClientRect()),this.text_child_el3&&(o=this.text_child_el3.getBoundingClientRect());let a=e?e.bottom:0,n=s?s.bottom:0,r=e?e.top:0,l=s?s.top:0,c=i?i.height:0,d=o?o.height:0;if(a+this.scroll_padl+this.scroll_pad?this.over_shadow_top=!0:this.over_shadow_top=!1,void 0!==this.std_top&&void 0!==this.question_top&&0=i.top-this.question_top&&(t=this.question_top-e.top),this.std_top=t}},setCreated(){this.font_head=Dc*this.fontLevel,this.font_std=Rc*this.fontLevel,this.font_main=Pc*this.fontLevel,this.font_foot=Mc*this.fontLevel,this.sel_height=Ec*this.fontLevel,this.timeout1=window.setTimeout(()=>{this.nextclicked(!1),this.btn_active=!0},1e3),this.unwatch1=this.$store.watch((t,e)=>e.getCanvasWidth,(t,e)=>{this.checkScroll()}),this.unwatch2=this.$store.watch((t,e)=>e.getCanvasHeight,(t,e)=>{this.checkScroll()})},pressEnter(t){if(this.$store.state.process_next_disabled)return void t.preventDefault();if(document.getElementsByClassName("v-dialog__content--active").length>0)return void t.preventDefault();let e=t.which||t.keyCode;if(13==e&&this.goNext(),e>47&&e<58){let t=e-48,s=document.getElementById("bank-sel-"+t);s&&s.click()}else if(e>64&&e<74){let t=e-64,s=document.getElementById("bank-sel-"+t);s&&s.click()}},replaceLineBreak(t){return t.replace(/\/\/\//gi,"
")},replaceLineBreakAll(t){let e=t.replace(/\/\/\//gi,"
").replace(/\/\//gi,"
");return e},replaceBlankUnderline(t){return t.replace(/\[\[.*?\]\]/gi,t=>{let e="";if(this.resource.right){let t=Math.round(1.4*this.resource.right.length);t<15&&(t=15),e='';for(let s=0;s"}else e=t;return e})},replaceUnderline(t){let e=t.replace(/\{\{(.*?)\}\}/g,t=>{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""});return e}},mounted(){this.disablePressEnter||document.addEventListener("keyup",this.pressEnter)},beforeDestroy(){this.timeout1&&window.clearTimeout(this.timeout1),this.unwatch1&&this.unwatch1(),this.unwatch2&&this.unwatch2(),document.removeEventListener("keyup",this.pressEnter)},destroyed(){console.log("::BankMixin::destroyed()::"),this.$destroy()}},Nc={name:"bank1",mixins:[Bc],props:["use"],created(){this.question=this.resource.question;let t=this.resource.origin_passage,e=/\[\[.*?\]\]/gi,s=[],i=t?t.replace(e,(t,e)=>(s.push(t),"$_$")):"";if(i=i.replace(/\/\/\//gi,"
").replace(/\/\//gi,"
").replace(/\{\{/gi,'').replace(/\}\}/gi,""),this.texts=i.split("$_$"),s){for(let t=0;t-1?i.split("///"):i.split("//"),Math.random()>.5?this.selections.push([e[1],e[0]]):this.selections.push([e[0],e[1]])}"StoryAdvanced"===this.use?this.rights=this.resource.rightanswer.split("//"):this.rights.push(this.resource.rightanswer),this.answers=new Array(s.length)}this.setCreated()},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank1-text"),this.text_child_el=document.getElementById("bank1-text-con"),this.checkScroll()})},computed:{setClass:function(){return function(t,e){return this.is_scoring&&this.$store.state.ox_show?this.answers[t]==this.rights[t]?this.selections[t][e]==this.rights[t]?"c_b":"grey--text text--lighten-3":this.selections[t][e]==this.rights[t]?"c_b":this.answers[t]?"c_r":"grey--text text--lighten-3":this.answers[t]?-1===e?"grey--text text--lighten-3":this.answers[t]==this.selections[t][e]?"success--text":"grey--text text--lighten-3":"info2--text"}},showBar:function(){return function(t){let e=!1,s=this.answers;if(t==s.length-1)return!1;for(let i=s.length;i>0;i--)s[i]&&(e=!0),t>0&&t`;e+=`${this.question}
`;for(let s=0;s${this.texts[s]}
 `,this.selections[s]&&this.selections[s].length>0){let t="";t=this.selections[s][0]==this.rights[s]?"c_b":this.selections[s][0]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][0]} `,e+=" / ";let i="";i=this.selections[s][1]==this.rights[s]?"c_b":this.selections[s][1]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][1]} `}return e+="",{right:t,result_html:e}}}},qc=Nc,Lc=(s("84f5"),Object(p["a"])(qc,Ac,Ic,!1,null,null,null)),zc=Lc.exports;y()(Lc,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(Lc,{Scroll:dn["b"]});var Oc=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bank5 height-100 grammar-bank",attrs:{id:"bank5-wrap"}},[i("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[i("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),i("div",{staticClass:"pos-rel width-100"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),i("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank5-text"}},[t.stdtext?i("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center min-h-7vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),i("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank5-text",value:t.onScroll,expression:"onScroll",arg:"#bank5-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con"}},[t.isStoryAdvanced?[i("v-row",{staticClass:"width-100 height-100",staticStyle:{margin:"0 auto"},style:{height:t.parsed_selections.some((function(t){return"O"===t||"X"===t}))||2==t.parsed_selections.length?"":"auto !important"}},t._l(t.parsed_selections,(function(e,o){return i("v-col",{key:"sa-bank5-select-"+o},[i("div",{staticClass:"selection-btn text-left width-100",class:t.setClass(o),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(o+1)},on:{click:function(e){return t.selectSentence(e,o)}}},["O"==e?[i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]!==o,expression:"answers[0] !== i"}],staticClass:"OX_img",attrs:{src:s("3f44")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]===o,expression:"answers[0] === i"}],staticClass:"OX_img",attrs:{src:s("2b3f")}})]:"X"==e?[i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]!==o,expression:"answers[0] !== i"}],staticClass:"OX_img",attrs:{src:s("18e5")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]===o,expression:"answers[0] === i"}],staticClass:"OX_img",attrs:{src:s("6342")}})]:[i("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[i("b",[t._v(t._s(o+1))])]),i("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[i("span",{domProps:{innerHTML:t._s(e)}})])]],2)])})),1)]:t._l(t.parsed_selections,(function(e,s){return i("div",{key:"bank5-select-"+s,staticClass:"selection-btn text-left width-100",class:t.setClass(s),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(s+1)},on:{click:function(e){return t.selectSentence(e,s)}}},[i("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center translate-y"},[i("b",[t._v(t._s(s+1))])]),i("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[i("span",{domProps:{innerHTML:t._s(e)}})])])}))],2)]),i("div",{staticClass:"pos-rel width-100"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.btn_active?i("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[i("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},jc=[],Vc={name:"bank5",mixins:[Bc],props:["use"],data(){return{parsed_selections:[],mc_type:null}},created(){console.log(this.resource),this.question=this.resource.question;let t=this.resource.passage,e=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"];t?(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.isStoryAdvanced&&(t=this.replaceLineBreakAll(t)),this.stdtext=`${t}`):this.stdtext=t;let s=[],i=this.resource.example.split("//");for(let a=0,n=i.length;a0)for(let e=0;e(t=t.trim(),s=s.trim(),e.indexOf(t)-e.indexOf(s))):this.selections=I(s),this.parsed_selections=this.selections.map(t=>{let e=this.replaceUnderline(t);return e=e.replace("@@","
"),e}),this.setCreated()},mounted(){this.$nextTick(()=>{if(this.isStoryAdvanced){const t=document.getElementById("bank5-wrap"),e=2===this.selections.length?2:4;t.classList.add("examples-"+e)}this.text_el=document.getElementById("bank5-text"),this.text_child_el=document.getElementById("bank5-text-con"),this.text_child_el2=document.getElementById("bank5-text-con-std"),this.checkScroll()})},computed:{setClass(){return function(t){if(this.is_scoring&&this.$store.state.ox_show){if(2==this.mc_type){let e="",s=this.selections[t].replace(/{{/g,"").replace(/}}/g,"");for(let t=0;t"));return e=this.rights.includes(this.selections[t])||this.rights.includes(s)?this.answers.includes(t)?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text",e}{let e=this.rights[0];-1!=e.indexOf("@@")&&(e=e.replace("@@","
"));let s=this.selections[t].replace(/{{/g,"").replace(/}}/g,"");return e==this.selections[t]||e==s?e==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}}return this.answers.includes(t)?"success--text select":"grey--text"}}},methods:{selectSentence(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),2==this.mc_type?-1==this.answers.indexOf(e)?(this.answers.length>1&&this.answers.shift(),this.answers.push(e)):this.answers.splice(this.answers.indexOf(e),1):this.answers.splice(0,1,e),console.log(this.answers)},calcResult(){let t=1;if(2==this.mc_type){t=0;let e=0;for(let t=0;t`;e+=`${this.question}
`;let s=R(this.selections);if(2==this.mc_type){this.answers=this.answers.sort();let t=0;for(let i=0;i0)for(let e=t;e"),this.selections[i]=s[i]),-1!=s[i].indexOf("{{")&&-1!=s[i].indexOf("}}")&&(s[i]=s[i].replace(/{{/g,''),s[i]=s[i].replace(/}}/g,"")),e+=`${i+1}. ${s[i]}
`}}else for(let i=0;i"),this.selections[i]=s[i]),-1!=s[i].indexOf("{{")&&-1!=s[i].indexOf("}}")&&(s[i]=s[i].replace(/{{/g,''),s[i]=s[i].replace(/}}/g,"")),e+=`${i+1}. ${s[i]}
`}return e+="",{right:t,result_html:e}}}},Fc=Vc,Gc=(s("2551"),Object(p["a"])(Fc,Oc,jc,!1,null,null,null)),Wc=Gc.exports;y()(Gc,{VBtn:ot["a"],VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"]}),fi()(Gc,{Scroll:dn["b"]});var Uc=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"banksa",class:"is-mobile-"+t.is_mobile+" is-story-advanced-"+t.isStoryAdvanced,staticStyle:{height:"70vh",position:"relative","overflow-y":"scroll","overflow-x":"hidden"},attrs:{id:"banksa-wrap"}},[s("div",{staticClass:"banksa--wrap",staticStyle:{height:"70vh",transition:"0.3s"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw",class:{"over-y-scroll":"android"!==t.platform},attrs:{id:"banksa-text"}},[t.stdtext&&0!==t.sa_type?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center min-h-7vh",style:"font-size:"+t.font_main+"vw;",attrs:{id:"bank5-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t.stdtext&&0===t.sa_type?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center",staticStyle:{"min-height":"11vh","margin-bottom":"3vh"},style:"font-size:"+t.font_main+"vw;",attrs:{id:"bank5-text-con-std"}},[s("div",{staticClass:"d-flex text-center"},[s("div",{domProps:{innerHTML:t._s(t.stdtext)}})])]):t._e(),s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank5-text",value:t.onScroll,expression:"onScroll",arg:"#bank5-text"}],staticClass:"text-container lh-1d8 width-100",staticStyle:{"padding-top":"3vh"},style:"font-size:"+t.font_std+"vw",attrs:{id:"bank5-text-con"}},[0===t.sa_type?[s("div",{staticClass:"d-block text-center",staticStyle:{"min-height":"31vh"}},[s("div",{staticClass:"d-flex justify-center align-center pos-rel",attrs:{id:"wki-show-0"}},[s("input",{ref:"wki-0",staticClass:"sa_input text-center",staticStyle:{resize:"none","font-family":"'Inconsolata' !important"},style:"font-size:"+t.font_std+"vw !important; width: "+(t.resource.rightanswer.length+7)+"vw; visibility: "+(!t.$store.state.ox_show||t.$store.state.ox_show&&!t.is_scoring?"visible":"hidden")+";",attrs:{type:"text",autocomplete:"off",id:"wki-0",maxlength:t.resource.rightanswer.length+3,disabled:t.getInputDisabled},on:{keydown:t.keydownKeyboard,keyup:t.keyupKeyboardPC,focus:function(e){return t.focusInput("wki-0")},blur:t.checkBlur,paste:t.forbiddenPaste}}),t.$store.state.ox_show&&t.is_scoring?s("div",{staticClass:"sa2-input height-100 pos-abs d-table",staticStyle:{"line-height":"1.1",padding:"8px 0"},domProps:{innerHTML:t._s(t.right_html)}}):t._e()])])]:1===t.sa_type?[t.is_mobile?[s("input",{ref:"wki-0",staticClass:"hidden-input pos-abs",class:t.is_ios?"left-m9999":"bottom-0",staticStyle:{opacity:"0","z-index":"-1"},attrs:{type:"text",autocomplete:"off",id:"wki-0",disabled:t.$store.state.ox_show,spellcheck:!1},on:{input:function(e){return t.touchKeyboard(e)},keyup:function(e){return t.keyupKeyboard(e)},focus:t.checkFocus,blur:t.checkBlur}}),s("auto-text",{attrs:{maxFontSize:3,maxHeight:.3*t.$store.state.screen_height,src:t.resource.rightanswer,step:t.resource.seq,type:"writingk"}},[s("div",{ref:"wki-show-0",staticClass:"pos-rel show-field",class:[t.focus_status?"focus":""],staticStyle:{"margin-top":"7vh"},style:"font-size:"+t.font_std+"vw",attrs:{id:"wki-show-0",rel:""+t.init_hint_underscore},domProps:{innerHTML:t._s(t.showAnswerHtml)},on:{click:function(e){return t.focusInput("wki-0")}}})])]:[t.$store.state.ox_show&&t.is_scoring?s("div",{staticClass:"sa1-result-div width-100 height-100 d-flex justify-center",staticStyle:{"min-height":"31vh"}},[s("div",{staticStyle:{"margin-top":"7.5vh"}},t._l(Array.from(t.resource.rightanswer),(function(e,i){return s("span",{key:"char-"+i,class:e!==Array.from(t.cur_input.value.trim())[i]?"danger--text":"",domProps:{innerHTML:t._s(e)}})})),0)]):s("div",{staticClass:"d-flex justify-center",staticStyle:{"min-height":"31vh"}},[s("textarea",{ref:"wki-0",staticClass:"width-100",staticStyle:{"margin-top":"7.5vh"},attrs:{autocomplete:"off",id:"wki-0",disabled:t.$store.state.ox_show,spellcheck:!1},on:{keydown:t.keydownKeyboard,keypress:function(e){return e.preventDefault(),t.keypressKeyboard(e)},paste:t.forbiddenPaste,keyup:t.keyupKeyboardPC,blur:function(e){return t.blurInput(0)},focus:function(e){return t.focusInput(0)}}})])]]:2===t.sa_type?[s("div",{staticClass:"d-flex justify-center align-center",staticStyle:{height:"31vh"},style:"font-size:"+(t.font_main+.5)+"vw"},[!t.$store.state.ox_show||t.$store.state.ox_show&&!t.is_scoring?s("div",{staticClass:"sa2-input",attrs:{id:"wki-0"},domProps:{innerHTML:t._s(t.passage)},on:{input:function(e){return t.touchKeyboard(e)}}}):t.$store.state.ox_show&&t.is_scoring?s("div",{staticClass:"sa2-input",domProps:{innerHTML:t._s(t.type2_right_html)}}):t._e()])]:t._e()],2)])]),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:function(e){return t.goNext("click")}}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},Hc=[];const Kc=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",".","?","!","'",",","0","1","2","3","4","5","6","7","8","9"];var Zc={name:"bankSa",mixins:[Bc],components:{AutoText:Xt},props:["use"],data(){return{parsed_selections:[],right_html:null,type2_right_html:null,is_mobile:!1,get_vh:null,focus_timeout:null,is_ios:!1,init_hint:!1,init_hint_underscore:null,focus_status:!1,char_limit:0,current_answer:[],fill_pos:[],mobile_focus:!1,viewportResizeHandler:null,initialViewportHeight:null,viewportResizeDetected:!1,focusTimeout:null}},created(){this.is_mobile=this.$store.state.is_mobile,"ios"===this.$store.state.platform&&(this.is_ios=!0),this.get_vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),this.question=this.resource.question,this.sa_type=+this.resource.sa_type;let t=this.resource.passage;this.passage=this.resource.passage;const e=Kc.findIndex(t=>" "===t);if(-1!==e&&Kc.splice(e,1),0===this.sa_type)Kc.push(" "),this.isStoryAdvanced&&t.match(/\/\//)&&(t=t.replace(/\/\//g,"
")),this.stdtext=t;else if(1===this.sa_type){let e=this.resource.rightanswer.split(""),s="",i=!0;for(let t=0;t${n}`;this.current_answer.push(r)}this.init_hint_underscore=s,this.char_limit=this.fill_pos.length,t?(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.stdtext=""+t+""):this.stdtext=t}this.rights.push(this.resource.rightanswer),this.setCreated()},mounted(){this.$store.state.is_mobile&&"android"===this.$store.state.platform&&this.setupKeyboardDetection(),this.$nextTick(()=>{if(this.text_el=document.getElementById("bank5-text"),this.text_child_el=document.getElementById("bank5-text-con"),this.text_child_el2=document.getElementById("bank5-text-con-std"),this.checkScroll(),0===this.sa_type)setTimeout(()=>{this.focusInput("wki-0"),this.focus_status=!0},2e3);else if(1===this.sa_type){this.rightanswer_arr=this.resource.rightanswer.replace(/[^ ]/g,"_").split(""),this.rightanswer_empty=[],this.rightanswer_arr.forEach((t,e)=>{" "==t&&this.rightanswer_empty.push(e)});let t=document.getElementById("wki-0");t&&(this.cur_input=t,this.is_mobile||(t.value=this.resource.rightanswer.replace(/[^ ]/g,"_")),setTimeout(()=>{this.focusInput("wki-0"),this.init_hint=!0,this.focus_status=!0},2e3))}else if(2===this.sa_type){this.rightanswer_arr=this.resource.rightanswer.replace(/[^ ]/g,"_").split("");let t=document.getElementsByClassName("sa_input");if(t){for(let e=0,s=t.length;e{this.touchKeyboard(t)}),t[e].addEventListener("keyup",t=>{this.keyupKeyboard(t,e)}),t[e].addEventListener("focus",()=>{this.focusInput("sa_input",e)}),t[e].addEventListener("blur",this.checkBlur)):(t[e].addEventListener("keydown",this.keydownKeyboard),t[e].addEventListener("keyup",this.keyupKeyboardPC));setTimeout(()=>{this.focusInput("sa_input",0),this.focus_status=!0},2e3)}}})},watch:{},computed:{getInputDisabled(){return this.$store.getters.getNextDisabled},setClass(){return function(t){return this.is_scoring&&this.$store.state.ox_show&&this.rights[0]==this.selections[t]?this.rights[0]==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}},showAnswerHtml(){let t;return t=this.$store.state.ox_show&&this.is_scoring?this.calcResult().answer_result_html:this.init_hint?this.current_answer.join(""):this.init_hint_underscore,t}},methods:{calcResult(){let t=1,e=this.resource.rightanswer.trim(),s=Array.from(e);if(0===this.sa_type){const t=document.getElementById("wki-0");this.answer=t.value.trim()}else if(1===this.sa_type)if(this.is_mobile){let t=this.cur_input.value.replace(/‘|’/g,"'").split(""),e=[],s=0;for(let i=0;i`;if(o+=`${this.question}
`,this.stdtext&&(o+=`${this.stdtext}
`),console.log("sa_type",this.sa_type),0===this.sa_type||1===this.sa_type){if(0===t){let t=Array.from(this.answer);for(let e=0,a=s.length;e${s[e]}`,i+=`${s[e]}`):(o+=`${s[e]}`,i+=`${s[e]}`)}else o+=`${this.answer}`,i+=`${e}`;this.right_html=i}else if(2===this.sa_type){let t=this.resource.passage,s=this.resource.passage,i=e.split(" / "),a=this.answer.split(" / ");for(let e=0;e${t[e]}`):(o+=`${t[e]}`,n+=`${t[e]}`)}else o=`${i[e]}`,n=`${i[e]}`;t=t.replace(/\/i,o),s=s.replace(/\/i,n)}this.type2_right_html=t,o+=s}return o+="",{right:t,result_html:o,answer_result_html:i}},keydownKeyboard(t){let e=t.keyCode,s=t.target.selectionStart,i=t.target.value;i=this.koreanReplace(i);let o=Array.from(i).map((t,e)=>t);if(2===this.sa_type){if([9].includes(e))return!0;if(13==e&&this.is_mobile)return t.stopPropagation(),t.preventDefault(),!1}if(8==e||"Backspace"==t.key||"Backspace"==e){if(0===s)return this.keyFalse(t),!1;if(1===this.sa_type){let e=s-1;return o[e]&&"_"!=o[e]&&(this.rightanswer_empty.includes(e)?o[e]=" ":o[e]="_"),t.target.value=o.join(""),t.target.setSelectionRange(e,e),this.keyFalse(t),!1}return!0}if(37==e||"ArrowLeft"==t.key||"ArrowLeft"==e){let e=s-1;return e>=0&&t.target.setSelectionRange(e,e),this.keyFalse(t),!1}if(39==e||"ArrowRight"==t.key||"ArrowRight"==e){let e=s+1;return e<=o.length&&t.target.setSelectionRange(e,e),this.keyFalse(t),!1}if(Kc.includes(t.key)){if(1!==this.sa_type)return!0;if(o[s]){let e;"_"==o[s]?(o[s]=t.key,e=s+1):" "==o[s]&&(o[s+1]=t.key,e=s+2),t.target.value=o.join(""),t.target.setSelectionRange(e,e)}return this.keyFalse(t),!1}return this.keyFalse(t),!1},keypressKeyboard(t){return t.preventDefault(),t.stopPropagation(),!1},forbiddenPaste(t){return this.keyFalse(t),!1},keyupKeyboardPC(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t.keyCode,i=t.target.selectionStart,o=t.target.value,a=e.test(o);if(o=this.koreanReplace(o),8==s||"Backspace"==t.key||"Backspace"==s)return this.keyFalse(t),!1;if(1===this.sa_type&&!a&&this.rightanswer_empty.includes(i)){let e=i+1;t.target.setSelectionRange(e,e)}t.target.value=o,a&&t.target.setSelectionRange(i-1,i-1)},focusInput(t,e=""){if(this.is_mobile){if(this.focus_status=!0,this.is_ios)return void(0===this.sa_type||1===this.sa_type?document.getElementById(t).focus():2===this.sa_type&&document.getElementsByClassName(t)[e].focus());if(this.$store.state.is_mobile&&"android"===this.$store.state.platform)return this.viewportResizeDetected=!1,this.focusTimeout&&clearTimeout(this.focusTimeout),this.focusTimeout=setTimeout(()=>{this.viewportResizeDetected||this.setupFallbackScroll()},500),void(0===this.sa_type||1===this.sa_type?document.getElementById(t).focus():2===this.sa_type&&document.getElementsByClassName(t)[e]&&document.getElementsByClassName(t)[e].focus());let s=document.getElementsByClassName("banksa");s=s[0]?s[0]:null;let i=document.getElementsByClassName("banksa--wrap");i=i[0]?i[0]:null,0===this.sa_type?(this.focus_timeout&&clearTimeout(this.focus_timeout),this.focus_timeout=setTimeout(()=>{if(s&&i){let e=document.getElementById("wki-show-0");if(e){let t=e.getBoundingClientRect().top/this.get_vh*100;t>=34&&(i.style.marginTop=`-${t-34}vh`)}console.log(t),document.getElementById(t).focus()}},400)):1===this.sa_type?(this.focus_timeout&&clearTimeout(this.focus_timeout),this.focus_timeout=setTimeout(()=>{if(s&&i){let e=document.getElementById("wki-show-0");if(e){let t=e.getBoundingClientRect().top/this.get_vh*100;t>=34&&(i.style.marginTop=`-${t-34}vh`)}document.getElementById(t).focus()}},400)):2===this.sa_type&&(this.focus_timeout&&clearTimeout(this.focus_timeout),this.focus_timeout=setTimeout(()=>{if(s&&i){let s=document.getElementsByClassName(t)[e];if(this.cur_input=s,s){let t=s.getBoundingClientRect().top/this.get_vh*100;t>=34&&(i.style.marginTop=`-${t-33}vh`),s.focus()}}},400))}else if(0===this.sa_type){let t=document.getElementById("wki-0");t&&(t.focus(),t.setSelectionRange(0,0))}else if(1===this.sa_type){let t=document.getElementById("wki-0");t&&(t.focus(),t.setSelectionRange(0,0))}else 2===this.sa_type&&document.getElementsByClassName(t)[e]&&document.getElementsByClassName(t)[e].focus()},blurInput(t){},keyFalse(t){t.preventDefault(),t.stopPropagation()},koreanReplace(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t;return e.test(s)&&(s=s.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi,(t,e)=>"")),s},checkFocus(t=""){this.mobile_focus=!0},checkBlur(t=""){if(this.mobile_focus=!1,this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null),this.is_mobile){let t=document.getElementsByClassName("banksa");t=t[0]?t[0]:null;let e=document.getElementsByClassName("banksa--wrap");e=e[0]?e[0]:null,t&&e&&(e.style.marginTop=""),this.is_ios&&window.scrollTo(0,NaN)}},keyupKeyboard(t,e=""){let s=t.which||t.keyCode;if(222===t.keyCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'")),13==s){let t=document.getElementsByClassName("sa_input");t[e].blur(),t[e+1]&&t[e+1].focus(),this.$store.getters.getNextDisabled||this.goNext()}},touchKeyboard(t,e){if(1==this.sa_type){let e=t.target.value;e=e.replace(/‘|’/g,"'");let s=Array.from(e);s.length>this.char_limit&&(t.target.value=s.splice(0,this.char_limit).join("")),new RegExp("^[A-Za-z0-9]*$","g").test(e)||(t.target.value=s.join("")),this.cur_input.value=t.target.value,this.updateGrammarAnswerMobile(e)}else 2==this.sa_type&&(this.passage=this.passage.replace(/‘|’/g,"'"))},updateGrammarAnswerMobile(t){if(1==this.sa_type){let e=Array.from(t),s=0;if(e.length>this.fill_pos.length)return!1;for(let t=0;t${o}`;this.current_answer.splice(t,1,a),s++}}},setupKeyboardDetection(){this.initialViewportHeight=window.visualViewport?window.visualViewport.height:window.innerHeight,this.viewportResizeHandler=()=>{this.viewportResizeDetected=!0,this.handleKeyboardResize()},window.visualViewport&&"function"===typeof window.visualViewport.addEventListener&&window.visualViewport.addEventListener("resize",this.viewportResizeHandler)},handleKeyboardResize(){let t=null;if(0===this.sa_type?t=document.getElementById("wki-0"):1===this.sa_type?t=document.getElementById("wki-show-0"):2===this.sa_type&&(t=document.getElementsByClassName("sa_input")[0]),!t)return;const e=t.getBoundingClientRect(),s=window.visualViewport?window.visualViewport.height:window.innerHeight;e.bottom>s&&(t.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{const e=t.getBoundingClientRect().height;window.scrollBy({top:e,behavior:"smooth"})},100))},setupFallbackScroll(){let t=null;if(0===this.sa_type?t=document.getElementById("wki-0"):1===this.sa_type?t=document.getElementById("wki-show-0"):2===this.sa_type&&(t=document.getElementsByClassName("sa_input")[0]),!t)return;const e=document.getElementsByClassName("banksa--wrap")[0];if(!e)return;const s=t.getBoundingClientRect(),i=s.top/this.get_vh*100;if(i>=34){const t=-(i-34);e.style.marginTop=t+"vh"}}},beforeDestroy(){this.viewportResizeHandler&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeHandler),this.focus_timeout&&clearTimeout(this.focus_timeout),this.focusTimeout&&clearTimeout(this.focusTimeout)}},Yc=Zc,Jc=(s("bb6f"),Object(p["a"])(Yc,Uc,Hc,!1,null,null,null)),Xc=Jc.exports;y()(Jc,{VBtn:ot["a"],VIcon:jt["a"]}),fi()(Jc,{Scroll:dn["b"]});var Qc=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"banksc height-100",class:"is-story-advanced-"+t.isStoryAdvanced},[s("div",{staticClass:"bank-question d-flex align-center justify-center h-7vh",style:"font-size:"+t.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank5-text"}},[t.passage?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center min-h-7vh",staticStyle:{padding:"2vh 2%"},attrs:{id:"bank5-text-con-std"}},[s("span",{style:"font-size:"+t.font_main+"vw",domProps:{innerHTML:t._s(t.passage)}})]):t._e(),s("v-row",{staticClass:"align-content-center",staticStyle:{height:"22vh !important"}},[s("v-col",{staticClass:"pa-0 d-flex height-inherit align-content-center",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{key:"at-"+t.seq+"-1",attrs:{src:t.rightanswer,maxHeight:.29*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"height-100"},[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center d-flex flex-row flex-wrap justify-center align-content-center wb-nm",style:"font-size:"+t.font_std+"vw",domProps:{innerHTML:t._s(t.result_html)}}):s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center d-flex flex-row flex-wrap justify-center align-content-center wb-nm",style:"font-size:"+t.font_std+"vw"},[t._l(t.selected_words,(function(e,i){return[t.is_ios?[i==t.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",domProps:{innerHTML:t._s(e)},on:{touchstart:function(s){return t.subSelection(s,e,i)}}}):s("span",{key:"matching-select-"+i,domProps:{innerHTML:t._s(e)}})]:[i==t.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",domProps:{innerHTML:t._s(e)},on:{click:function(s){return t.subSelection(s,e,i)}}}):s("span",{key:"matching-select-"+i,domProps:{innerHTML:t._s(e)}})]]}))],2)])])],1)],1),s("v-row",{staticStyle:{height:"31vh !important"}},[s("v-col",{staticClass:"pa-0 d-flex height-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"chips-wrapper py-0 text-center pos-rel ma-auto width-auto height-100 max-w-100 d-flex align-center justify-center align-content-center flex-wrap"},[t.$store.state.is_mobile?s("auto-text",{key:"at-"+t.seq+"-2",attrs:{step:0,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:t.rightanswer,type:"chips",pa:.8,ma:.5,minWidth:4}},[t.is_ios?t._l(t.split_example,(function(e,i){return s("div",{key:"mat-div-"+i,on:{touchstart:function(s){return t.selectWord(s,e,i)}}},[s("v-chip",{key:"matching-choice-"+i,staticClass:"matching-select-btn text-center",class:[t.selected_keys.includes(i)?"visibility-hidden chip-0":"chip-0"],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,i)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})):t._l(t.split_example,(function(e,i){return s("v-touch",{key:"matching-touch-"+i,on:{pressup:function(s){return t.selectWord(s,e,i)}}},[s("v-chip",{key:"matching-choice-"+i,staticClass:"matching-select-btn text-center",class:[t.selected_keys.includes(i)?"visibility-hidden chip-0":"chip-0"],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,i)}}},[t._v("\n "+t._s(e)+"\n ")])],1)}))],2):s("auto-text",{key:"at-"+t.seq+"-3",attrs:{step:0,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:t.rightanswer,type:"chips",pa:.8,ma:.5,minWidth:4}},t._l(t.split_example,(function(e,i){return s("v-chip",{key:"matching-choice-"+i,staticClass:"matching-select-btn text-center",class:[t.selected_keys.includes(i)?"visibility-hidden chip-0":"chip-0"],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return t.selectWord(s,e,i)}}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1)])],1)],1),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.btn_active?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{blink:t.is_wrong_term},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdi_chevron_double_right))])],1):t._e()],1)},td=[],ed={name:"bankSc",mixins:[Bc],components:{AutoText:Xt},props:["use"],data(){return{is_ios:!1,selected_keys:[],selected_words:[],result_html:null}},created(){this.seq=this.resource.seq,this.question=this.resource.question,this.passage=this.resource.passage,this.example=this.resource.example,this.rightanswer=this.resource.rightanswer,this.isStoryAdvanced&&!this.example?this.split_example=I(this.rightanswer.split(" ")):this.split_example=I(this.example.split("//")),this.setCreated()},computed:{},methods:{selectWord:function(t,e,s){if(this.selected_keys.includes(s))return!1;let i=this.selected_words.length-1;[".","!","?"].includes(e)?i>=0&&(this.selected_words[i]=this.selected_words[i].replace(" ","")):i>=0&&-1===this.selected_words[i].indexOf(" ")&&(this.selected_words[i]=this.selected_words[i]+" "),this.selected_words.push(e+" "),this.selected_keys.push(s)},subSelection:function(t,e,s){this.selected_words.pop(),this.selected_keys.pop()},calcResult(){let t=1,e=this.resource.rightanswer.trim(),s=e.split(" "),i=R(this.selected_words);i=i.map(t=>t.replace(" "," "));let o=i.join("").split(" ");e!==i.join("").trim()&&(t=0);let a=``;if(a+=`${this.question}
`,this.passage&&(a+=`${this.passage}
`),0===t){this.result_html="";for(let t=0,e=s.length;t${s[t]}
`,this.result_html+=""+s[t]):(a+=`${s[t]} `,this.result_html+=""+s[t]),this.result_html+=t":""}else a+=`${e}`,this.result_html=this.selected_words.join("");return a+="",{right:t,result_html:a}}}},sd=ed,id=(s("bbe8"),Object(p["a"])(sd,Qc,td,!1,null,null,null)),od=id.exports;y()(id,{VBtn:ot["a"],VChip:Me["a"],VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"]});const ad=.6,nd=1.4;var rd={name:"learning-study",components:{Bank1:zc,Bank5:Wc,BankSa:Xc,BankSc:od},directives:{Ripple:wi["a"]},data(){return{fake_btn_show:!1,font_level:1,is_mobile:!1,mdiChevronDoubleRight:Lt["r"]}},created(){},mounted(){},watch:{},computed:{setIconSize:function(){return this.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},setSize:function(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.$store.state.bank_font_level;if(t<0&&ad>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&nd<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.setToast(e)},nextClicked:function(t){this.fake_btn_show=t}},beforeDestroy(){}},ld=rd,cd=(s("d08c"),Object(p["a"])(ld,Sc,Tc,!1,null,null,null)),dd=cd.exports;y()(cd,{VBtn:ot["a"],VIcon:jt["a"],VWindow:ni["a"],VWindowItem:ri["a"]}),fi()(cd,{Ripple:wi["b"]});const hd=.6,ud=1.4,pd=1.8;var _d={name:"learning-study",props:["id"],mixins:[qi],components:{OXDisplayer:Lo,Loading:Bt,GrammarMc:tc,GrammarSa:rc,GrammarSaMobile:pc,GrammarCab:fc,GrammarSc:$c,GrammarReview:dd,Timer:ti},data(){return{HOST:g["w"],LISTENING:g["A"],WORDBINGO:g["ub"],DICTATION:g["o"],WORD_INFERENCE:g["vb"],POPQUIZ:g["N"],BOOK_BANK:g["e"],BOOK_NORMAL:g["h"],BOOK_LISTENING:g["g"],basicGrammarBooks:g["zb"],middleGrammarBooks:g["Ab"],is_skip:1,is_mobile:!1,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,skip_dialog:!1,skip_dialog_2:!1,next_module_idx:0,next_module_seq:0,next_module_name:"",booktype_1:0,mdi_chevron_double_left:Lt["q"],mdi_chevron_double_right:Lt["r"],mdi_chevron_right:Lt["v"],mdi_check:Lt["n"],mdi_chevron_right_circle_outline:Lt["x"],player:!1,cur_sub_unit:null,sub_unit:{GT_1:"t1",GT_2:"t2",GB_1:"b1",GB_2:"b2",GB_3:"b3",GB_4:"b4",GD_1:"d1",GD_2:"d2",GD_3:"d3"},sub_color:{GT:"warning",GB:"success",GD:"info2"},cardkey:0,font_head:pd,font_level:1,arrowColor:"grey",action_count:0}},watch:{cardkey(t){console.log("cardkey",t)}},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},getGrammarActionCount(){return this.action_count=this.$store.getters.getGrammarActionCount,this.$store.getters.getGrammarActionCount},getCurModule(){return"GT_0"==this.$store.getters.getCurModule?this.setArrowColor("white"):this.setArrowColor("grey"),this.$store.getters.getCurModule},getCurModuleSeq(){return this.cardkey++,this.$store.getters.getCurModuleSeq},getStepper(){return this.$store.getters.getCurStepper},getCurrentStep(){return this.$store.getters.getCurrentStep},getNextDisabled(){let t=!1;return t=!(!this.$store.getters.getNextDisabled&&!this.moving),t},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case g["A"]:t="in-listening";break;case g["ub"]:t="in-wordbingo";break;case g["vb"]:t="in-bankmodules";break;case g["o"]:t="in-dictation";break;default:}return t},getNextModuleSeq(){return this.$store.getters.getNextModuleSeq},checkBankModule(){return this.$store.getters.checkBankModule},showLoading(){return 100==this.$store.state.loading_percent&&"GT_0"==this.getCurModule&&this.vodLoad(),this.$store.state.loading_percent>0},getBlockClick(){return this.$store.getters.getBlockClick},checkExternalKeyboard(){return!(void 0==window.ExternalKeyboard||!window.ExternalKeyboard.isUsed)},getGrammarDisabled(){return this.$store.getters.getGrammarDisabled}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i,o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.voca_pk&&Number(this.$store.state.unit.voca_pk),n=!!this.$store.state.book.startdate;i=0==s||1==this.$store.state.book.schedule_type_v?this.$store.state.unit.id:this.$store.state.unit.seq,o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.booktype_1=this.$store.state.book.booktype_1,this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.$store.commit("setIsLearned",!0),new RegExp("^"+g["A"]).test(this.$store.state.unit.v_mod)&&!a&&this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0)},mounted(){window.addEventListener("message",this.listenMessage)},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},hasLastTextProp(t){if(!t)return!1;const e=t[t.length-1],s=e.charCodeAt(0);if(s<44032||s>55203)return!1;const i=(s-44032)%28;return 0!==i},particle(t){return this.hasLastTextProp(t)?"으로":"로"},go(t){if(console.log("go",t,this.getCurModule,this.$store.state.grammar_type,this.next_module_idx,this.getNextDisabled),this.getNextDisabled||["SA","CAB","SC"].includes(this.$store.state.grammar_type)&&this.getGrammarDisabled)return!1;let e=this.getCurModule,s=this.getCurrentStep,i=3e3;let o=0;if("GT_0"==e&&0===this.next_module_idx)return this.skip_dialog_2=!0,!1;const a=this.$store.state.unit,n=+a.book_id,r=+a.seq+1,l=a.name;if(g["zb"].includes(n)&&r%3===0&&"GD_1"==e||g["Ab"].includes(n)&&l.match("Review")&&["GB_1","GD_1"].includes(e))return o=1,!1;if(0===o){if(isNaN(s))return!1;if(this.moving)return!1;if(this.prev_step==s&&this.prev_module==e)return!1;this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),"next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev")}},getStudyData(t,e,s,i){try{this.$store.dispatch("ingLoad").then(t=>{let e=!!t&&JSON.parse(t);if(console.log(e,this.getCurModule),t&&e.sentences_ids&&e.sentences_ids.length>0){this.$store.state.modules[e.current_page].maxstep=e.sentences_ids.length;let s=e.sentences_ids.join(",");this.$axios.get(`${g["w"]}/v2/book/getgrammareach?ids=${s}`).then(e=>{this.$store.dispatch("setStudyInfoGRAMMAR",{sentences:e.data||[],words:[],loadeddata:t}).then(e=>{this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",t).then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})})}else this.getCurModule||console.log(this.$store.state),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})}catch(o){window.console.error(o)}},skipModule(t,e){if(this.$store.state.ox_show)return!1;if(null===this.getCurModule)return!1;if(this.next_module_idx=this.$store.getters.getNextModule,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a){if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1,this.skip_dialog_2=!1})}):"GT_1"==this.next_module_idx?(this.go("next"),this.skip_dialog=!1,this.skip_dialog_2=!1):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1,this.skip_dialog_2=!1})},setStepperName(t){return"문장찾기"==t?"팝퀴즈":t},vodLoad(){let t=document.getElementById("vod_iframe"),e=this.$store.state.book,s=this.$store.state.unit;t.contentWindow.postMessage({type:"load",bookname:e.bookname||e.book_name,unit_seq:s.seq||s.unit_seq,el_w:t.getBoundingClientRect().width,el_h:t.getBoundingClientRect().height,is_mobile:this.$store.state.is_mobile},"*")},listenMessage(t){if("ended"==t.data.event){let t=document.getElementById("vod_iframe");t.contentWindow.postMessage({type:"currentTime",time:0},"*");const e=this.$store.state.unit,s=+e.book_id,i=+e.seq+1,o=e.name;g["zb"].includes(s)&&i%3===0||g["Ab"].includes(s)&&o.match("Review")||g["Ab"].includes(s)&&e.v_mod&&"GT_0"==e.v_mod?this.skipModule({idx:-1},!0):this.skipModule({idx:"GT_1"},!0)}else if(["vod-pause","vod-canplay"].includes(t.data.event)){let t=document.getElementById("vod_wrapper");t.style.zIndex=0}else if("vod-playing"==t.data.event){let t=document.getElementById("vod_wrapper");t.style.zIndex=1}},setSize(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.font_level;if(t<0&&hd>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&ud<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.font_level=s,this.setToast(e)},setArrowColor(t){this.arrowColor=t}},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyModules"),window.removeEventListener("message",this.listenMessage)},destroyed(){console.log("--- GrammarTheory Destroyed ---"),this.$destroy()}},md=_d,gd=(s("60fe"),Object(p["a"])(md,Ol,jl,!1,null,null,null)),bd=gd.exports;y()(gd,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]}),fi()(gd,{Ripple:wi["b"]});var vd=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"study-index"}},[1==[t.DICTATION,t.POPQUIZ].includes(t.getCurModule)&&t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),-1==t.$store.getters.getNextModule&&1==t.is_skip?s("div",{attrs:{id:"last-skip-btn"}},[t.$store.state.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e(),s("v-stepper",{staticClass:"elevation-0 page-vm",class:{"visibility-hidden":t.$store.state.modules&&1===t.$store.state.modules.length},model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+e.seq,class:{"cursor-pointer":t.getNextModuleSeq==e.seq},attrs:{complete:t.getCurModuleSeq>e.seq,step:e.seq+1,color:"success","complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{staticClass:"success--text",domProps:{textContent:t._s(e.name)}}):s("span",{domProps:{textContent:t._s(e.name)}})]),e.seq0?s("timer"):t._e(),t.LISTENING==t.getCurModule&&t.$store.state.current_step>0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_left))])],1):t._e(),s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{"d-none":t.checkBankModule},attrs:{text:"",icon:"",absolute:"",color:"grey",id:"go-next-btn","x-large":"",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_right))])],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name)}}),[t.DICTATION].includes(t.next_module_idx)?s("span",[t._v("으")]):t._e(),t._v("로\n 넘어가시겠습니까?\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("아니오")])])],1)],1)],1)],1)],1)],1)},fd=[],wd={name:"learning-study",props:["id"],mixins:[qi],components:{Listening:eo,WordBingo:Ya,DictationWord:Ra,PopquizWord:nr,OXDisplayer:Lo,Keyboard:Go,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt,Timer:ti},data(){return{LISTENING:g["A"],WORDBINGO:g["ub"],DICTATION:g["o"],POPQUIZ:g["N"],is_skip:0,is_mobile:!1,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,skip_dialog:!1,next_module_idx:0,next_module_seq:0,next_module_name:"",mdi_chevron_double_left:Lt["q"],mdi_chevron_double_right:Lt["r"],mdi_chevron_right:Lt["v"],mdi_check:Lt["n"],mdi_chevron_right_circle_outline:Lt["x"]}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type),i=0==s?this.$store.state.unit.id:this.$store.state.unit.seq;let o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.voca_pk&&Number(this.$store.state.unit.voca_pk),n=!!this.$store.state.book.startdate;o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("setIsLearned",!0),new RegExp("^"+g["A"]).test(this.$store.state.unit.v_mod)&&!a&&this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0)},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},getCurModule(){return this.$store.getters.getCurModule},getCurModuleSeq(){return this.$store.getters.getCurModuleSeq},getStepper(){return this.$store.getters.getCurStepper},getCurrentStep(){return this.$store.getters.getCurrentStep},getNextDisabled(){return this.$store.getters.getNextDisabled},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case g["A"]:t="in-listening";break;case g["ub"]:t="in-wordbingo";break;case g["o"]:t="in-dictation";break;case g["N"]:t="in-popquiz";break;default:}return t},getNextModuleSeq(){return this.$store.getters.getNextModuleSeq},checkBankModule(){return this.$store.getters.checkBankModule},showLoading(){return this.$store.state.loading_percent>0},getBlockClick(){return this.$store.getters.getBlockClick}},methods:{go(t){let e=this.getCurModule,s=this.getCurrentStep,i=800;return!isNaN(e)&&(!isNaN(s)&&(g["A"]>this.prev_module&&(this.prev_module=e),!this.moving&&((this.prev_step!=s||this.prev_module!=e)&&(this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),void("next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev"))))))},getStudyData(t,e,s,i){console.log("VocaMajor getStudyData");try{this.$store.dispatch("ingLoad").then(t=>{let o=!!t&&JSON.parse(t);if(t&&o.words_ids&&o.words_ids.length>0){let e=o.words_ids.join(",");this.$axios.get(`${g["w"]}/v2/book/getwordeach?wordids=${e}`).then(e=>{this.$store.dispatch("setStudyInfoVMA",{sentences:[],words:e.data||[],loadeddata:t}).then(e=>{this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",t).then(()=>{this.$store.dispatch("clearAudioCtx").then(async()=>{const t=await this.$store.getters.checkRequireVocaAudio;t?this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})}):this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})})})})}else{let o=this.$store.state.book.sentence_cnt;this.$axios.get(`${g["w"]}/v2/book/getunitwordvoca?unitids=${i}&type=${s}&bookid=${e}&scnt=${o}&schedule_id=${this.$store.state.book.schedule_id}`).then(e=>{this.$store.dispatch("setStudyInfoVMA",{sentences:[],words:e.data||[],loadeddata:t}).then(t=>{this.$store.dispatch("clearAudioCtx").then(async()=>{const t=await this.$store.getters.checkRequireVocaAudio;t?this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})}):(this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)}))})})})}})}catch(o){window.console.error(o)}},skipModule(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getCurModule)return!1;if(this.next_module_idx=this.$store.getters.getNextModule,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyWordBingo"),this.$store.commit("destroyDictation"),this.$store.commit("destroyPopquiz"),this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},yd=wd,xd=Object(p["a"])(yd,vd,fd,!1,null,null,null),kd=xd.exports;y()(xd,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var Cd=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",attrs:{id:"study-index"}},[1==[t.DICTATION,t.WRITING_K].includes(t.getCurModule)&&t.$store.getters.getIsScoring?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),-1==t.$store.getters.getNextModule&&1==t.is_skip?s("div",{attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right_circle_outline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1):t._e(),s("v-stepper",{staticClass:"elevation-0 page-va",class:{"visibility-hidden":t.$store.state.modules&&1===t.$store.state.modules.length},model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+e.seq,class:{"cursor-pointer":t.getNextModuleSeq==e.seq},attrs:{complete:t.getCurModuleSeq>e.seq,step:e.seq+1,color:"info2","complete-icon":t.mdi_check},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{staticClass:"info2--text",domProps:{textContent:t._s(e.name)}}):s("span",{domProps:{textContent:t._s(e.name)}})]),e.seq0?s("timer"):t._e(),t.LISTENING==t.getCurModule&&t.$store.state.current_step>0?s("v-btn",{staticClass:"study-module-arrow pos-fix-i left",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1},on:{click:function(e){return t.go("prev")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_left))])],1):t._e(),s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",class:{"d-none":t.checkBankModule},attrs:{text:"",icon:"",absolute:"",color:"grey",id:"go-next-btn","x-large":"",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdi_chevron_double_right))])],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name)}}),[t.DICTATION,t.SPEAKING].includes(t.next_module_idx)?s("span",[t._v("으")]):t._e(),t._v("로 넘어가시겠습니까?\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("아니오")])])],1)],1)],1)],1)],1)],1)},$d=[],Sd=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-window",{staticClass:"speaking-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},[t._l(t.$store.state.words,(function(e,i){return s("v-window-item",{key:"speaking-win-"+i,staticClass:"height-100",attrs:{value:i}},[i==t.$store.state.current_step?s("v-sheet",{staticClass:"height-100"},[s("div",{staticClass:"d-flex flex-column justify-center height-100",staticStyle:{gap:"0.3rem"}},[s("div",[s("auto-text",{attrs:{src:e.word,maxHeight:.19*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"question-wrapper text-center"},[t.pivot_num>i?[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.speakingResult)}}):s("span",{staticClass:"font-weight-bold grey--text text--darken-2",domProps:{textContent:t._s(e.word)}})]:[t.$store.getters.getIsScoring&&t.showKor?s("span",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.speakingResult)}}):s("span",{staticClass:"font-weight-bold grey--text text--darken-2",domProps:{textContent:t._s(e.mean)}})]],2)])],1),s("div",[t.$store.getters.getIsScoring?s("auto-text",{attrs:{src:e.mean,maxHeight:.16*t.$store.state.screen_height,maxFontSize:2}},[t.pivot_num>i?[t.$store.state.ox_show?s("div",{staticClass:"answer-wrapper d-flex justify-center align-center height-100"},[s("span",{staticClass:"grey--text",style:t.$store.state.ox_show?"":"color: transparent !important"},[t._v(t._s(e.mean))])]):t._e()]:[t.showKor?s("div",{staticClass:"answer-wrapper d-flex justify-center align-center height-100"},[s("span",{staticClass:"grey--text"},[t._v(t._s(e.mean))])]):t._e()]],2):t._e()],1)])]):t._e()],1)})),t.is_mobile?s("speech-recognition",{attrs:{prompt:t.setNextPrompt2}}):s("webkit-speech-recognition",{attrs:{sentence:t.setNextPrompt}})],2)},Td=[],Ad={name:"speaking",components:{SpeechRecognition:ds,WebkitSpeechRecognition:xs,AutoText:Xt},data(){return{prev_step:0,prompt:"",settimeout1:null,prev_spk_cnt:0,setNextPrompt2:"제시된 단어를 따라 읽어보세요.",is_mobile:!1,pivot_num:9999,unwatch_once:null}},computed:{setNextPrompt(){const t=this.$store.state.words;return t&&t.length>0&&t[this.$store.state.current_step]?t[this.$store.state.current_step].word:null},speakingResult(){return this.$store.getters.getSpeakingResult},showKor(){return this.$store.state.ox_show&&this.$store.state.speaking_kor_show}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0);let t=this.$store.getters.getTotalStepCnt;t?this.pivot_num=Math.round(.6*Number(t)):this.unwatch_once=this.$store.watch((t,e)=>e.getTotalStepCnt,(t,e)=>{t>0&&(this.pivot_num=Math.round(.6*Number(t)),this.unwatch_once(),this.unwatch_once=null)})},beforeDestroy(){this.$store.commit("destroySpeaking"),this.settimeout1&&clearTimeout(this.settimeout1),this.settimeout1=null}},Id=Ad,Dd=(s("f70c"),Object(p["a"])(Id,Sd,Td,!1,null,null,null)),Rd=Dd.exports;y()(Dd,{VSheet:Se["a"],VWindow:ni["a"],VWindowItem:ri["a"]});var Pd={name:"learning-study",props:["id"],mixins:[qi],components:{Listening:eo,DictationWord:Ra,SpeakingWord:Rd,WritingK:ra,WritingKMobile:pa,OXDisplayer:Lo,Keyboard:Go,TTSPlayer:ke,TTSAudio:Ft,Loading:Bt,Timer:ti},data(){return{LISTENING:g["A"],DICTATION:g["o"],SPEAKING:g["V"],WRITING_K:g["xb"],is_skip:0,is_mobile:!1,moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,skip_dialog:!1,next_module_idx:0,next_module_seq:0,next_module_name:"",mdi_chevron_double_left:Lt["q"],mdi_chevron_double_right:Lt["r"],mdi_chevron_right:Lt["v"],mdi_check:Lt["n"],mdi_chevron_right_circle_outline:Lt["x"]}},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},getCurModule(){return this.$store.getters.getCurModule},getCurModuleSeq(){return this.$store.getters.getCurModuleSeq},getStepper(){return this.$store.getters.getCurStepper},getCurrentStep(){return this.$store.getters.getCurrentStep},getNextDisabled(){return this.$store.getters.getNextDisabled},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case g["A"]:t="in-listening";break;case g["o"]:t="in-dictation";break;case g["V"]:t="in-speaking";break;case g["xb"]:t="in-writing-k";break;default:}return t},getNextModuleSeq(){return this.$store.getters.getNextModuleSeq},checkBankModule(){return this.$store.getters.checkBankModule},showLoading(){return this.$store.state.loading_percent>0},getBlockClick(){return this.$store.getters.getBlockClick},checkExternalKeyboard(){return!(void 0==window.ExternalKeyboard||!window.ExternalKeyboard.isUsed)}},methods:{go(t){if(this.$store.state.prevent_click)return!1;let e=this.getCurModule,s=this.getCurrentStep,i=800;return!isNaN(e)&&(!isNaN(s)&&(g["A"]>this.prev_module&&(this.prev_module=e),!this.moving&&((this.prev_step!=s||this.prev_module!=e)&&(this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),void("next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev"))))))},getStudyData(t,e,s,i){try{this.$store.dispatch("ingLoad").then(t=>{let o=!!t&&JSON.parse(t);if(t&&o.words_ids&&o.words_ids.length>0){let e=o.words_ids.join(",");this.$axios.get(`${g["w"]}/v2/book/getwordeach?wordids=${e}`).then(e=>{this.$store.dispatch("setStudyInfoVMA",{sentences:[],words:e.data||[],loadeddata:t}).then(e=>{this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",t).then(()=>{this.$store.dispatch("clearAudioCtx").then(async()=>{const t=await this.$store.getters.checkRequireVocaAudio;t?this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})}):this.$store.dispatch("prepareAudioSource").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})})})})}else{let o=this.$store.state.book.sentence_cnt;this.$axios.get(`${g["w"]}/v2/book/getunitwordvoca?unitids=${i}&type=${s}&bookid=${e}&scnt=${o}&schedule_id=${this.$store.state.book.schedule_id}`).then(e=>{this.$store.dispatch("setStudyInfoVMA",{sentences:[],words:e.data||[],loadeddata:t}).then(t=>{this.$store.dispatch("clearAudioCtx").then(async()=>{const t=await this.$store.getters.checkRequireVocaAudio;t?this.$store.dispatch("prepareVocaAudioSource").then(()=>{this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})}):(this.$store.dispatch("prepareAudioSource"),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)}))})})})}})}catch(o){window.console.error(o)}},skipModule(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getCurModule)return!1;if(this.next_module_idx=this.$store.getters.getNextModule,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}},created(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type),i=0==s?this.$store.state.unit.id:this.$store.state.unit.seq;let o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.voca_pk&&Number(this.$store.state.unit.voca_pk),n=!!this.$store.state.book.startdate;o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("setIsLearned",!0),new RegExp("^"+g["A"]).test(this.$store.state.unit.v_mod)&&!a&&this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyDictation"),this.$store.commit("destroySpeaking"),this.$store.commit("destroyWritingK"),this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},Md=Pd,Ed=Object(p["a"])(Md,Cd,$d,!1,null,null,null),Bd=Ed.exports;y()(Ed,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var Nd=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"studying-contents",style:{minHeight:t.getCurModule==t.STORY_EBOOK?"78vh":"80vh"},attrs:{id:"study-index"}},[t.$store.getters.getIsScoring&&t.getCurModule!==t.SPEAKING?s("o-x-displayer",{attrs:{show:t.$store.state.ox_show,right:t.$store.state.ox_right}}):t._e(),-1!=t.$store.getters.getNextModule||1!=t.is_skip||[t.STORY_EBOOK,t.STORY_ADVANCED].includes(t.getCurModule)?t._e():s("div",{attrs:{id:"last-skip-btn"}},[t.is_mobile?s("v-btn",{staticClass:"mobile-skip-btn",attrs:{text:"",icon:"",fab:"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[s("v-icon",{style:"width: "+t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.4).toFixed(2)}},[t._v(t._s(t.mdiChevronRightCircleOutline))])],1):s("v-btn",{staticStyle:{"font-size":"1.2rem"},attrs:{text:"","x-large":"",color:"grey"},on:{click:function(e){return t.skipModule({idx:-1},!0)}}},[t._v("\n 단계 넘어가기\n "),s("v-icon",{attrs:{right:"",size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdiChevronDoubleRight))])],1)],1),s("v-stepper",{staticClass:"elevation-0",class:[t.STORY_EBOOK,t.STORY_ADVANCED].includes(t.getCurModule)?"d-none":"",model:{value:t.getStepper,callback:function(e){t.getStepper=e},expression:"getStepper"}},[s("v-stepper-header",{staticClass:"elevation-0"},[t._l(t.$store.state.modules,(function(e,i){return[s("v-stepper-step",{key:"study-step-"+e.seq,class:{"cursor-pointer":t.getNextModuleSeq==e.seq},attrs:{complete:t.getCurModuleSeq>e.seq,step:e.seq+1,color:t.$store.state.process_type==t.STORY_A?"info2":"success","complete-icon":t.mdiCheck},on:{click:function(s){return t.skipModule(e)}}},[t.getStepper==i+1?s("b",{class:t.setColor("text"),domProps:{textContent:t._s(e.name)}}):s("span",{domProps:{textContent:t._s(e.name)}})]),e.seq0?s("timer"):t._e(),t.getCurModule!==t.STORY_ADVANCED?s("v-btn",{staticClass:"study-module-arrow pos-fix-i right",staticStyle:{"z-index":"1"},attrs:{text:"",icon:"",absolute:"",color:"grey",id:"go-next-btn","x-large":"",disabled:t.getNextDisabled,ripple:!1},on:{click:function(e){return t.go("next")}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdiChevronDoubleRight))])],1):t._e(),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.skip_dialog=!1}},model:{value:t.skip_dialog,callback:function(e){t.skip_dialog=e},expression:"skip_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",{domProps:{textContent:t._s(t.next_module_name)}}),"Report"!=t.next_module_name?s("span",[t._v("으")]):t._e(),t._v("로\n 넘어가시겠습니까?\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goSkip}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.skip_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("아니오")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.confirmSubmit(!1)}},model:{value:t.confirm_dialog,callback:function(e){t.confirm_dialog=e},expression:"confirm_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("span",[t._v(" 동화보기 학습을 마치시겠습니까? ")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.confirmSubmit(!0)}}},[s("span",{staticClass:"title"},[t._v("종료")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.confirmSubmit(!1)}}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1)],1)},qd=[],Ld=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-center",attrs:{id:"ebook-wrap"}},[t.getImages?s("flipbook",{ref:"flipbook",staticClass:"flipbook",class:"page-"+t.getCurrentStep,attrs:{pages:t.getImages,zooms:[1],ambient:.6,gloss:.4,perspective:3400,nPolygons:t.is_mobile?5:7,flipDuration:1e3,centering:!1},on:{"flip-left-start":t.onFilpStart,"flip-right-start":t.onFilpStart,"flip-left-end":t.onFlipEnd,"flip-right-end":t.onFlipEnd}}):t._e()],1)},zd=[],Od=s("f73e"),jd=s.n(Od),Vd={name:"EBook",components:{Flipbook:jd.a},data(){return{prev_step:1,bookPages:[],audioTimeout:null,is_mobile:this.$store.state.is_mobile||!1}},mounted(){this.$store.commit("nextDisabled",!1)},watch:{},computed:{getImages(){return this.$store.state.unit.images},getCurrentStep(){const t=this.$store.getters.getCurrentStep;this.prev_step!=t&&(this.$store.commit("setEBookAudioIsPlaying",!1),this.changeFlipPage(t));const e=this.$store.state.eBookAudios[t-1];return this.$store.commit("setCurrentEBookAudio",e),t}},methods:{changeFlipPage(t){const e=this.$refs.flipbook;e&&(t>this.prev_step?(e.flipRight(),this.prev_step=t):t{this.$store.commit("setEBookAudioIsPlaying",!0)},1e3)}this.$store.commit("prevDisabled",!1),this.$store.commit("nextDisabled",!1)}}},Fd=Vd,Gd=(s("9299"),Object(p["a"])(Fd,Ld,zd,!1,null,null,null)),Wd=Gd.exports,Ud=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"story-advanced-wrap"}},[s("div",{staticClass:"pos-rel"},[s("div",{staticClass:"pos-abs d-flex cursor-pointer",attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("A")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("A")])]),t.$store.state.sentences.length>0?s("v-window",{staticClass:"bank-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"bank-wrapper",touchless:""},model:{value:t.$store.state.current_step,callback:function(e){t.$set(t.$store.state,"current_step",e)},expression:"$store.state.current_step"}},t._l(t.$store.state.sentences,(function(e,i){return s("v-window-item",{key:"bank-win-"+i,staticClass:"height-100",attrs:{value:i}},["MC"==e.type&&t.$store.state.current_step==i?[s("bank5",{attrs:{use:"StoryAdvanced",resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"SA"==e.type&&t.$store.state.current_step==i?[s("bank-sa",{attrs:{use:"StoryAdvanced",rkey:i,resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"SC"==e.type&&t.$store.state.current_step==i?[s("bank-sc",{attrs:{use:"StoryAdvanced",rkey:i,resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"WI"==e.type&&t.$store.state.current_step==i?[s("bank1",{attrs:{use:"StoryAdvanced",rkey:i,resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"FS"==e.type&&t.$store.state.current_step==i?[s("bank3",{attrs:{use:"StoryAdvanced",rkey:i,resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:"FL"==e.type&&t.$store.state.current_step==i?[s("bank6",{attrs:{use:"StoryAdvanced",rkey:i,resource:e,nextclicked:t.nextClicked,fontLevel:t.font_level}})]:t._e()],2)})),1):t._e(),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.fake_btn_show,expression:"fake_btn_show"}],staticClass:"study-module-arrow pos-fix-i right",attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",disabled:"",ripple:!1}},[s("v-icon",{style:"width:"+t.setIconSize+"px !important",attrs:{size:t.setIconSize}},[t._v(t._s(t.mdiChevronDoubleRight))])],1)],1)])},Hd=[];const Kd=.6,Zd=1.4;var Yd={name:"StoryAdvanced",components:{Bank1:zc,Bank5:Wc,BankSa:Xc,BankSc:od,Bank3:Cn,Bank6:Vn},data(){return{font_level:1,fake_btn_show:!1,mdiChevronDoubleRight:Lt["r"],is_mobile:!1}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0)},mounted(){},computed:{setIconSize(){return this.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},setSize(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.$store.state.bank_font_level;if(console.log(t,s),t<0&&Kd>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Zd<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.setToast(e)},nextClicked(t){this.fake_btn_show=t}},beforeDestroy(){this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},Jd=Yd,Xd=(s("7f94"),Object(p["a"])(Jd,Ud,Hd,!1,null,"f19f7c6c",null)),Qd=Xd.exports;y()(Xd,{VBtn:ot["a"],VIcon:jt["a"],VWindow:ni["a"],VWindowItem:ri["a"]}),fi()(Xd,{Ripple:wi["b"]});var th={name:"StoryBookLearning",mixins:[qi],components:{OXDisplayer:Lo,Loading:Bt,EBook:Wd,Popquiz:So,Matching:ro,Dictation:_o,Speaking:fa,TTSPlayer:ke,TTSAudio:Ft,Keyboard:Go,StoryAdvanced:Qd,Timer:ti},data(){return{mdiChevronDoubleLeft:Lt["q"],mdiChevronDoubleRight:Lt["r"],mdiChevronRight:Lt["v"],mdiCheck:Lt["n"],mdiChevronRightCircleOutline:Lt["x"],STORY_EBOOK:g["Y"],POPQUIZ:g["N"],MATCHING:g["D"],DICTATION:g["o"],SPEAKING:g["V"],STORY_ADVANCED:g["X"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"],moving:!1,timeout_moving:null,prev_module:-1,prev_step:0,is_skip:0,is_mobile:this.$store.state.is_mobile,skip_dialog:!1,next_module_idx:0,next_module_seq:0,next_module_name:"",confirm_dialog:!1,confirm_status:!1,clear_popquiz:!1,goWait:!1}},mounted(){const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type),i=this.$store.state.unit.id,o=this.$store.state.unit.story_learning_pk;this.$store.commit("addLoadingPercent",5),this.getStudyData(t,e,s,i),this.is_skip=this.$store.getters.getIsSkip,this.$store.commit("setIsLearned",!0),o||this.$store.dispatch("setUnitRecordEmpty")},watch:{},computed:{getScoringTimer(){return this.$store.getters.getScoringTimer},getStepper(){return this.$store.getters.getCurStepper},getNextModuleSeq(){return this.$store.getters.getNextModuleSeq},getCurModuleSeq(){return this.$store.getters.getCurModuleSeq},getCurModule(){return this.clear_popquiz||this.$store.getters.getCurModule!==g["N"]||this.clearPopquiz(),this.$store.getters.getCurModule},showLoading(){return this.$store.state.loading_percent>0},getPrevDisabled(){return this.$store.getters.getPrevDisabled},getNextDisabled(){return this.$store.getters.getNextDisabled},getCurrentStep(){return this.$store.getters.getCurrentStep},getBlockClick:function(){return this.$store.getters.getBlockClick},setUnderControlClass(){let t="";switch(this.getCurModule){case g["D"]:t="in-matching",this.isStoryMatchingImg&&(t+=" is-story-matching-img");break;case g["o"]:t="in-dictation";break;case g["V"]:t="in-speaking";break}return t},isStoryMatchingImg(){const t=this.$store.state;return console.log(t.sentences,t.current_step),t.process_type===g["Z"]&&t.sentences&&t.sentences[t.current_step]&&t.sentences[t.current_step].img_load}},methods:{go(t){if(console.log("go",t,this.$store.state,this.$store.state.prevent_click,this.confirm_status,this.getNextDisabled,this.goWait,this.moving),this.$store.state.process_type===g["W"])return!1;if(this.$store.state.prevent_click)return!1;let e=this.getCurModule,s=this.getCurrentStep,i=800;if(isNaN(e)&&!["E"].includes(e))return!1;if(isNaN(s))return!1;if(this.prev_module=e,this.moving)return!1;if("E"==e&&"next"==t&&!this.confirm_status){const t=this.$store.state.modules[0],e=Math.floor(t.maxstep/2);if(s>e)return void(this.confirm_dialog=!0)}if(console.log(this.prev_step==s&&this.prev_module==e),this.prev_step==s&&this.prev_module==e)return!1;this.getBlockClick?i=10:(this.prev_step=s,this.prev_module=e),this.moving=!0,this.timeout_moving&&clearTimeout(this.timeout_moving),this.timeout_moving=setTimeout(()=>{this.moving=!1,this.timeout_moving=null,this.prev_step=null,this.prev_module=null},i),console.log(t,"processNext"),"next"==t?this.$store.dispatch("processNext"):"prev"==t&&this.$store.dispatch("processPrev")},getStudyData(t,e,s,i){try{const t=this.$store.state.process_type;console.log("getStudyData",t),t===g["W"]&&this.$store.commit("destroyGrammarBank"),this.$store.dispatch("ingLoad").then(s=>{console.log("ingLoad",s),this.$axios.get(`${g["w"]}/v2/book/getstorydata/${e}/${i}?process_type=${t}`).then(async e=>{let i=!!s&&JSON.parse(s);const o=e.data.sentences,a=e.data.words,n=e.data.pages,r=()=>new Promise(t=>{this.$store.dispatch("setStudyInfoVMA",{sentences:o,words:a,pages:n,loadeddata:s}).then(e=>{t(e)})}),l=()=>new Promise(t=>{this.$store.dispatch("prepareVocaAudioSource").then(()=>{t()})}),c=()=>new Promise(t=>{this.$store.dispatch("prepareAudioSource").then(()=>{t()})});await r(),s&&i.sentences_ids&&i.sentences_ids.length>0?(this.$store.commit("setLoadStart",!0),this.$store.dispatch("applyLoadData",s).then(()=>{this.$store.dispatch("clearAudioCtx").then(async()=>{t===g["Z"]&&await l(),t===g["Z"]&&(this.getCurModule===g["N"]?c():await c()),this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})):this.$store.dispatch("clearAudioCtx").then(async()=>{t===g["Z"]&&await l(),c(),this.$store.dispatch("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})})})}catch(o){window.console.error(o)}},skipModule:function(t,e){if(this.$store.state.ox_show)return!1;if(0==this.is_skip)return!1;if(null===this.getCurModule)return!1;if(this.next_module_idx=this.$store.getters.getNextModule,null===this.next_module_idx)return!1;const s=this.$store.state.current_page,i=this.$store.state.modules[s+1],o=i&&i.seq,a=t.seq;if(console.log(a,s+1),a!==o)return a!==s&&(a{this.$store.commit("setClearPrevResult",!1),this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})}):this.$store.dispatch("goModuleSkip").then(()=>{this.skip_dialog=!1})},confirmSubmit(t){console.log("confirmSubmit",t),this.confirm_status=t,t&&this.go("next"),this.confirm_dialog=!1},setColor(t=null){let e="";const s=this.$store.state.process_type;return s===g["ab"]?e="warning":s===g["Z"]?e="success":s===g["W"]&&(e="info2"),e+(t?"--text":"")},clearPopquiz(){console.log("clearPopquiz"),this.clear_popquiz||(this.$store.commit("oxShow",!1),this.$store.dispatch("clearPopquiz").then(()=>{this.$store.commit("nextDisabled",!1),this.$store.commit("renderPopquiz"),this.clear_popquiz=!0}))}},beforeDestroy(){this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},eh=th,sh=Object(p["a"])(eh,Nd,qd,!1,null,null,null),ih=sh.exports;y()(sh,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"]});var oh={name:"learning-index",props:["bookmode","mode","tab","setBookInfo","setBookInfoVMA","setBookInfoGRAMMAR","setDialogText","setLearningDialog","setDialogVMA","updateSingleMockExamUnit"],components:{Study:Xo,Test:ka,Voca:dr,Major:xr,Advanced:Or,Exam:Fr,Result:el,FlashCard:pl,VocaMajor:kd,VocaAdvanced:Bd,ShadowReading:Tl,MockExam:zl,GrammarTheory:bd,StoryBook:ih},data(){return{STUDY:g["bb"],TEST:g["hb"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],EXAM:g["q"],FLASHCARD:g["r"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],SHADOW_READING:g["S"],MOCK_EXAM:g["G"],GRAMMAR_THEORY:g["u"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"],LEVEL_TEST:g["y"],learning_mode:"",check_pc:""}},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})}},created(){this.check_pc=this.$store.state.is_mobile?"":"in-pc",this.learning_mode=this.mode,window.console.log(this.learning_mode)},destroyed(){this.$destroy()}},ah=oh,nh=(s("c95c"),Object(p["a"])(ah,Mi,Ei,!1,null,null,null)),rh=nh.exports,lh=function(t,e){var s=e._c;return s("div",{staticClass:"ctooltip_wrap",class:[e.props.wrap_display?"d-"+e.props.wrap_display:"d-block",e.props.type?e.props.type+(["t2","t3","t4","t5","t7","t8","t9","t10","t11","t24","t25","t26"].includes(e.props.type)?" tab_tooltip":""):""],style:{position:e.props.wrap_position?e.props.wrap_position:"absolute",top:e.props.tool_top,left:e.props.tool_left,bottom:e.props.tool_bottom,right:e.props.tool_right,marginTop:e.props.tool_mtop,marginLeft:e.props.tool_mleft,transform:e.props.tool_translate},attrs:{id:"ctooltip_wrap"}},[s("div",{class:[e.props.arrow_direction,e.props.arrow_display?"d-"+e.props.arrow_display:"block"],style:{left:e.props.arrow_left,top:e.props.arrow_top,right:e.props.arrow_right,transform:e.props.arrow_translate},attrs:{id:"arrow_direction"}}),s("div",{staticClass:"py-1 px-2 mt-n1 gradient text-center usn",class:e.props.tool_display?"d-"+e.props.tool_display:"d-inline",attrs:{id:"ctooltip"}},[s("span",{staticStyle:{color:"white !important","font-weight":"300 !important","font-size":"0.95rem"},domProps:{innerHTML:e._s(e.props.text)}})])])},ch=[],dh={props:["type","wrap_class","wrap_position","wrap_display","arrow_display","arrow_direction","arrow_left","arrow_right","arrow_top","arrow_translate","tool_mleft","tool_mtop","tool_top","tool_left","tool_right","tool_bottom","tool_translate","tool_display","text"]},hh=dh,uh=(s("bf75"),Object(p["a"])(hh,lh,ch,!0,null,null,null)),ph=uh.exports;const _h=10;var mh={name:"bookMixin",components:{BookListLatest:Pi,IconRolling:Rt,LeftBarStatic:Is["a"],Learning:rh,ctooltip:ph},data(){return{menu:"",books:[],books_tmp:[],tab_grade:Object.freeze({1:"all",2:"all",3:"all",4:"all",5:"all",6:"all"}),setscroll_timeout:null,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:[{text:"가나다순",value:"alphabet"},{text:this.$store.state.is_mobile?"최신순":"최근 학습순",value:"recent"}],_isDestroyedMixin:!1}},created(){if(this.$route.name&&(this.menu=this.$route.name.replace("book",""),this.$store.state.book_menu=this.menu),"StoryBookTable"==this.$options.name)return;window.is_restudy=this.$store.state.settings.is_restudy,this.freepass=this.$store.getters.getIsFreePass,this.is_openbook=this.$store.state.settings.is_openbook;let t=this.getCommonBooks();t.then(t=>{this.getScheduleBooks(t)}).catch(t=>{console.log(t)}),this.$route.query&&("tab"in this.$route.query&&(this.setTab(this.$route.query.tab),this.query_tab=this.$route.query.tab),this.$route.query.startdate&&(this.query_startdate=this.$route.query.startdate),this.$route.query.sid&&(this.query_sid=this.$route.query.sid),this.$route.query.bid&&(this.query_bid=this.$route.query.bid),this.$route.query.stype&&(this.query_stype=this.$route.query.stype),this.$route.query.dist&&(this.query_dist=this.$route.query.dist),this.$route.query.uid&&(this.query_uid=this.$route.query.uid),this.$route.query.useq&&(this.query_useq=this.$route.query.useq)),this.query_bid&&this.query_sid&&this.query_dist&&(this.unwatch_once=this.$watch("search_book_order",(t,e)=>{!1===e&&t>0&&(t>12&&(this.items_per_page=t+_h),window.render_chk_interval=window.setInterval(()=>{const e=("reading"==this.menu&&4===+this.$route.query.tab?"story":"")+"book-list-dttbl";let s=document.getElementById(e);if(s){let i,o=s.getElementsByClassName("v-data-table__wrapper");if(i="storybook-list-dttbl"===e?s.getElementsByClassName("item-col")[t-1]:s.getElementsByTagName("tr")[t-1],o&&i){o=o[0],window.clearInterval(window.render_chk_interval),window.render_chk_interval=null;let t=o.getBoundingClientRect();i.click();let e=i.getBoundingClientRect().y;o.scrollTo({top:e-t.y,left:0})}}},100),this.unwatch_once(),this.unwatch_once=null)})),0===Object.keys(this.$route.query).length&&("coursebook"==this.$route.name&&4!=this.tab||"readingbook"==this.$route.name&&4!=this.tab?this.setTab(1):"schoolbook"!=this.$route.name||this.$route.query.tab?"listeningbook"==this.$route.name&&4!=this.tab&&this.setTab(1):this.setTab(1))},mounted(){this.setTableHeight(),window.addEventListener("resize",this.setTableHeight)},watch:{tab(t){this.select_grade="",this.sortBy=null,this.search_keyword="",this.final_keyword="",this.changeGrade(),this.membership_search_books=null,this.course_search_books=null,this.reading_search_books=null,this.listening_search_books=null,this.story_search_books=null},search_keyword(t){""!==t&&t||(this.final_keyword=this.search_keyword)},final_keyword(t){if(""===t||!t){const t=this.books.filter(t=>t.search_name);for(let e=0,s=t.length;es.table_key===t[e].table_key);if(-1!==s){const t=R(this.books[s]);t.search_name=null,this.books[s]=Object.freeze(t)}}this.openedItemClear()}}},computed:{getLearningStatus(){return this.$store.getters.getLearningStatus},getMockexamrecordId(){return this.$store.state.mockexamrecord_id},tableSearch(){let t=`${this.tab}-${this.tab_grade[this.tab]}`;return this.final_keyword&&""!=this.final_keyword.trim()&&(t+="-"+this.final_keyword),t},setBookName(){return this.expanded&&this.expanded.length>0?50===+this.expanded[0].booktype?"내공백서 스토리북 Lv. "+this.expanded[0].level:this.expanded[0].schedule_name?this.expanded[0].schedule_name:this.expanded[0].bookname:"reading"==this.menu&&this.sel_book&&50===+this.sel_book.booktype?this.sel_book.bookname:""},setUnitName(){return this.sel_unit&&"name"in this.sel_unit?this.expanded&&this.expanded.length>0&&50===+this.expanded[0].booktype?this.expanded[0].bookname:this.sel_unit.name:this.sel_book&&50===+this.sel_book.booktype?""+this.sel_book.subtitle:this.expanded&&this.expanded.length>0&&50===+this.expanded[0].booktype?this.expanded[0].bookname:""},isProcessResult(){return this.$store.state.process_type&&new RegExp("R","g").test(this.$store.state.process_type)}},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},exitSound(){this.$store.dispatch("soundEffectPlay","exit")},getScheduleBookId(t){return!!t&&(this.final_keyword&&this.$data[`b-${t.schedule_id}-${t.id}`]&&(this.$data[`b-${t.schedule_id}-${t.id}`]=this.$data[`b-${t.schedule_id}-${t.id}`].map(t=>{let e=void 0;if(t.name){const s=this.final_keyword;e=t.name.replace(new RegExp(s,"gi"),"$&")}return{...t,search_name:e}})),`b-${t.schedule_id}-${t.id}`)},setTab(t){if("reading"==this.menu&&4===t&&(5===this.tab&&1===this.$store.state.bookmark_use||4===this.$route.query.tab))return this.$store.commit("setBookmarkUse",0),this.tab_class=t,this.tab=4,!1;let e=0;this.tab_class=t,5===t?(e=5===this.tab?0:1,this.setBookmarkUse(e)):5===this.tab&&this.setBookmarkUse(e),setTimeout(()=>{this.tab=this.tab_class},5),setTimeout(()=>{this.setTableHeight()},100)},setBookmarkUse(t){let e={user_id:this.$store.state.uid,use:t};this.$axios.post(g["w"]+"/v1/user/bookmarkuse",e).then(e=>{200==e.status&&this.$store.commit("setBookmarkUse",t)})},changeGrade(){let t=R(this.tab_grade),e=[];for(let[s,i]of Object.entries(t))e.push(i);e[this.tab]=""==this.select_grade?"all":this.select_grade,this.tab_grade=Object.freeze(e)},searchKeyup(t){if(13===t.keyCode||"Enter"===t.key){this.final_keyword=this.search_keyword;const t=this.final_keyword,e=t.toUpperCase(),s=`${t}`;if("reading"===this.menu&&this.tab<=2){const s=this.$refs.story_book_table,i=[],o=s.story_books.filter(t=>-1!==t.bookname.toUpperCase().indexOf(e)||-1!==t.subtitle.toUpperCase().indexOf(e));for(let a=0,n=o.length;at.table_key==o[a].table_key);if(-1!==n){const o=R(s.story_books[n]);if(!o.unit)continue;o.search_name=null,o.search_title=null,o.bookname&&-1!==o.bookname.toUpperCase().indexOf(e)&&(o.search_name=o.bookname.replace(new RegExp(t,"gi"),"$&")),o.subtitle&&-1!==o.subtitle.toUpperCase().indexOf(e)&&(o.search_title=o.subtitle.replace(new RegExp(t,"gi"),"$&")),i.push(o),s.keynum++}}s.story_search_books=i}else{const i=this.books.filter(s=>([5,6].includes(this.tab)||![5,6].includes(this.tab)&&+s.category===this.tab)&&(s.schedule_name&&-1!==s.schedule_name.toUpperCase().indexOf(e)||s.unit_names&&-1!==s.unit_names.toUpperCase().indexOf(e)||50===+s.booktype&&(-1!==s.bookname.toUpperCase().indexOf(e)||-1!==s.subtitle.toUpperCase().indexOf(t)))||4===this.tab&&s.bookname&&-1!==s.bookname.toUpperCase().indexOf(e));for(let o=0,a=i.length;ot.table_key==i[o].table_key);if(-1!==a){const i=R(this.books[a]);i.search_name=null,i.schedule_name&&-1!==i.schedule_name.toUpperCase().indexOf(e)||i.bookname&&-1!==i.bookname.toUpperCase().indexOf(e)?i.search_name=i.schedule_name?i.schedule_name.replace(new RegExp(t,"gi"),"$&"):i.bookname.replace(new RegExp(t,"gi"),"$&"):50===+i.booktype?-1!==i.bookname.indexOf(t)&&(i.search_name=i.bookname.replace(t,s)):(i.search_name=null,i.unit_names&&-1!==i.unit_names.toUpperCase().indexOf(e)&&(i.search_name=i.bookname)),this.books[a]=Object.freeze(i);let o=this.getScheduleBookId(i);this.searchUnitBg(i,o)}}}}},searchUnitBg(t,e){const s=this.final_keyword,i=s.toUpperCase();if(this.$data[e]&&(t.unit_names&&-1!==t.unit_names.toUpperCase().indexOf(i)||50===+t.booktype&&-1!==t.subtitle.indexOf(this.final_keyword))){const t=this.$data[e].filter(t=>-1!==t.name.toUpperCase().indexOf(i));for(let s=0,i=t.length;se.id==t[s].id);if(-1!==i){const t=this.$data[e][i];t.search_name=t[t.color_name?"color_name":"name"].replace(this.final_keyword,`${this.final_keyword}`)}}}else if(this.$data[e]){const t=this.$data[e].filter(t=>t.search_name);for(let s=0,i=t.length;se.id==t[s].id);if(-1!==i){const t=this.$data[e][i];t.search_name=t.color_name||null}}}},searchBlur(){!0===this.is_mobile&&window.cordova&&"android"!=window.cordova.platformId&&(document.documentElement.style.marginTop="1px",setTimeout(()=>{document.documentElement.style.marginTop="0px"},500))},openedItemClear(){if(this.opened_item){const t=this.opened_item.filter(t=>t.search_name);for(let e=0,s=t.length;es.id==t[e].id);-1!==s&&(this.opened_item[s].search_name=null)}}},sortTabs(t){let e,s;if("reading"==this.menu&&4===this.tab?(e=this.data.sortBy,s=this.data.new_sorting):(e=this.sortBy,s=this.new_sorting),7===this.tab)return t;if(!s&&!e)return t;if(e)"alphabet"==e?t.sort((t,e)=>t.schedule_namee.schedule_name?1:0):"recent"==e?t.sort((t,e)=>{const s=t.latestdate?""+t.latestdate:"0000-00-00 00:00:00",i=e.latestdate?""+e.latestdate:"0000-00-00 00:00:00";return si?-1:0}):"level"==e&&t.sort((t,e)=>+t.level<+e.level?-1:+t.level>+e.level?1:0);else switch(this.tab){case 4:"course"===this.menu||"reading"===this.menu?t.sort((t,e)=>+t.level<+e.level?-1:+t.level>+e.level?1:0):t.sort((t,e)=>"postdate"in t?t.postdatee.postdate?-1:0:-1);break;case 5:case 6:const e=5===this.tab?"schedule_name":"latestdate";t.sort((t,s)=>t[e]s[e]?-1:0);break;default:t.sort((t,e)=>null==t.view_seq||+t.view_seq>+e.view_seq?1:+t.view_seq<+e.view_seq?-1:0);break}return t},setTableHeight(){const t=document.querySelector(".custom-tab-wrapper");if(t){const e=t.getBoundingClientRect().height,s=document.querySelector(".v-data-table__wrapper");s&&(s.style.height=40===e?"calc(78vh - 80px)":"64vh")}},checkAuthFree(t,e=!1){return this.$store.state.product_type===g["P"]&&this.$store.state.uclass==g["kb"]&&Number(t)>2?(this.is_grammar=e,this.prevent_free_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.prevent_free_dialog=!1},2e3),!1):!(this.$store.state.product_type===g["P"]&&this.$store.state.uclass==g["kb"]&&this.is_ng_book&&Number(t)>2)||(this.prevent_free_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.prevent_free_dialog=!1},2e3),!1)},studyConfirm(t,e=null){if(this.loading_unit)return!1;if(e)if(+t.seq>2){if(this.is_ng_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_ng_book=!1;else if(this.is_ng_book=!1,!this.checkAuthFree(t.seq))return!1;let s=null;switch(this.sel_unit=t,t.study_status){case 1:case 2:this.exitSound(),s=4;break;case 3:this.clickSound(),s=3;break;default:this.clickSound(),s=0;break}this.setDialogText(this.expanded[0],t,g["bb"],s,this.setLearningDialog)},chkCurVal(){return this.sel_book&&50===+this.sel_book.booktype?this.sel_book&&this.sel_book.id:Boolean(this.expanded[0])&&Boolean(this.expanded[0].id)&&Boolean(this.sel_unit)},goStudy(t){if(!this.chkCurVal())return!1;this.setBookInfo(this.expanded[0],this.sel_unit,g["bb"],t.clear,this.closeLearningDialog)},goStudyVMA(t){if(!this.chkCurVal()||!this.learning_dialog_vma)return!1;this.setBookInfoVMA(this.expanded[0],this.sel_unit,this.learning_dialog_vma,t.clear,this.closeLearningDialog)},goResult(t){if(!this.chkCurVal())return!1;let e=t.type+g["R"];this.setBookInfo(this.expanded[0],this.sel_unit,e,!1,this.closeLearningDialog)},goResultVMA(){if(!this.chkCurVal())return!1;let t=this.learning_dialog_vma+g["R"],e="",s="";["SM","SA"].includes(this.learning_dialog_vma)?(e=this.sel_book,s=this.sel_book.unit):(e=this.expanded[0],s=this.sel_unit),this.setBookInfo(e,s,t,!1,this.closeLearningDialog)},goStory(t,e){const s=this.$store.state.product_type;return"F"===s&&e.restudy&&this.$store.state.uclass==g["kb"]?(this.learning_dialog=!1,this.s_trial_html='무료체험은 1회 학습만 가능합니다.
\n
다른 레벨의 샘플 교재를
즉시 체험해보세요.
',void(this.s_trial_guide_dialog=!0)):!(!this.chkCurVal()||!this.learning_dialog_vma)&&void this.setBookInfoVMA(this.sel_book||this.expanded[0],this.sel_book&&this.sel_book.unit||this.sel_unit,this.learning_dialog_vma,e.clear,this.closeLearningDialog)},setBookInfo(t,e,s,i,o){if(!t||!t||!s)return!1;let a=R(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&(s==g["bb"]&&a.study_random_sentences_ids&&(a.study_random_sentences_ids=!1),s==g["hb"]&&a.test_random_sentences_ids&&(a.test_random_sentences_ids=!1)),this.$store.dispatch("setBookInfo",{book:t,unit:a,type:s,init:i}).then(t=>{this.$store.dispatch("setCurUnitId",a.id).then(()=>{i?(this.$store.commit("setClearPrevResult",!0),this.$store.dispatch("clearResultData").then(t=>{this.$store.commit("setLearningStatus",!0),this.$store.commit("setClearPrevResult",!1)})):this.$store.commit("setLearningStatus",!0),o()})})},setBookInfoVMA(t,e,s,i,o){if(!t||!e||!s)return!1;let a=R(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&(s==g["pb"]&&a.voca_random_sentences_ids&&(a.voca_random_sentences_ids=!1),[g["B"],g["sb"]].includes(s)&&a.major_random_sentences_ids&&(a.major_random_sentences_ids=!1),[g["a"],g["qb"]].includes(s)&&a.advanced_random_sentences_ids&&(a.advanced_random_sentences_ids=!1),s===g["Z"]&&(a.sentences_ids=!1)),this.$store.dispatch("setBookInfoVMA",{book:t,unit:a,type:s,init:i}).then(t=>{this.$store.dispatch("setCurUnitId",a.id).then(()=>{i?(this.$store.commit("setClearPrevResult",!0),this.$store.dispatch("clearResultData").then(t=>{this.$store.commit("setLearningStatus",!0),this.$store.commit("setClearPrevResult",!1)})):([3,5,9,14,31].includes(this.learning_dialog_type)&&(this.$store.commit("setClearPrevResult",!0),this.$store.commit("setCurrentRestudy",!0)),this.$store.commit("setLearningStatus",!0)),o()})})},setTableId(t){let e=t.id?t.id:0,s=t.schedule_id?t.schedule_id:0,i=t.dist_seq?t.dist_seq:0;return e||(e=t.books_id?t.books_id:0),`${e}-${s}-${i}`},getCommonBooks(){return new Promise(async(t,e)=>{let s={ng:[],story:[],etc:[],listening:[],uclass:this.$store.state.uclass};const i=this.$store.state[this.menu+"_books"],o=1===this.is_openbook?"books_tmp":"books";if(this.$axios.get(g["w"]+"/v1/book/getdisableunits").then(t=>{200==t.status&&this.$store.commit("setDisableUnits",t.data.rows)}).catch(t=>{console.log(t)}),i&&i.length>0){if("course"==this.menu)for(const t of Object.values(i))this[o].push(Object.freeze(t)),s.ng.includes(t.id)||s.ng.push(t.id);else if("reading"==this.menu)for(const t of Object.values(i))this[o].push(Object.freeze(t)),s.story.includes(t.id)||s.story.push(t.id);else if("school"==this.menu)for(const t of Object.values(i))1===this.is_openbook&&1===+t.category&&2!==t.origin_category||(this[o].push(Object.freeze(t)),(1!==+t.category||1===+t.category&&2===+t.origin_category)&&(s.etc.includes(t.id)||s.etc.push(t.id)));else if("listening"==this.menu)for(const t of Object.values(i))this[o].push(Object.freeze(t)),s.listening.includes(t.id)||s.listening.push(t.id);t(s)}else{const i=this.$store.state.product_type;this.$axios.get(`${g["w"]}/v4/book/getcommonbooks?product=${i}&new_story_book=Y`).then(e=>{if(200==e.status){let t=[];for(let[a,n]of Object.entries(e.data)){if("course"==this.menu){if(1!==+n.category)continue}else if("reading"==this.menu){if(1!==+n.category)continue}else if("school"==this.menu){if(![2,3,4].includes(+n.category))continue;if(1===this.is_openbook&&1===+n.category)continue}let e=Object.assign({table_key:this.setTableId(n),id:null,category:null,bookname:null,publisher:null,grade:null,level:null,publishdate:null,total_cnt:null,unit_cnt:null,subtitle:null,view_seq:null,su_id:null,schedule_id:null,books_id:null,tot_unit_cnt:null,complete_unit_cnt:null,startdate:null,latestdate:null,schedule_name:null,sentence_cnt:null,booktype:null,study_modules:null,test_modules:null,img_use:null,auto_exam:null,schedule_type:null,schedule_type_v:0,dist_seq:null,bookmark:null,progress:0,disable:!0,unit_names:null,search_name:null},n);if(e.booktype_1=Math.floor(+e.booktype/10),e.booktype_2=+e.booktype%10,"course"==this.menu)if(0===e.booktype_1&&0===e.booktype_2)e.category=2;else if(2===e.booktype_1&&2===e.booktype_2)e.category=3;else{if(5===e.booktype_1)continue;if(31===+e.booktype)continue}else if("reading"==this.menu){if(5!==e.booktype_1)continue;e.origin_level.includes("N")?e.category=1:e.category=2}else if("school"==this.menu){if(3===+e.category&&[1,31].includes(+e.booktype))continue;2===+e.category&&(e.category=2,e.origin_category=2)}else if("listening"==this.menu)if(1===+e.category&&31===+e.booktype)e.category=1;else{if(3!==+e.category||![1,31].includes(+e.booktype))continue;e.grade.includes("m")?e.category=2:e.category=3,e.origin_category=3}this[o].push(Object.freeze(e)),t.push(e);const i="course"==this.menu?"ng":"reading"==this.menu?"story":"listening"==this.menu?"listening":"etc";s[i].includes(n.id)||("course"==this.menu||"reading"==this.menu||"listening"==this.menu||"school"==this.menu&&1!==+n.category)&&s[i].push(n.id)}const i=this.menu.charAt(0).toUpperCase()+this.menu.slice(1);this.$store.commit(`set${i}Books`,t)}t(s)}).catch(t=>{e(t)})}})},setDialogVMA(t){["GT","GB","GD"].includes(t)&&this.$store.commit("grammarActionCount"),this.learning_dialog_vma=t},setBtnText(t){let e="쉐도우";return e},setListBtnText(t,e,s){let i=Number(t.category),o=t.booktype_1,a=Number(t.schedule_type),n='';if(50===+t.booktype&&(n=''),!e)return"";if("course"==this.menu||"reading"==this.menu||"listening"==this.menu||"school"==this.menu&&0===a&&4===i&&o!=g["e"]){const o={V:e.voca_status,S:e.study_status,T:e.test_status,GT:e.theory_status,GB:e.basics_status,GD:e.deep_status,VM:e.major_status,VA:e.advanced_status,X:e.mock_status,SV:e.story_v_status||0,SM:e.story_m_status||0,SA:e.story_a_status||0},a={V:"어휘",S:"문장",T:"심화",GT:"이론",GB:"기본",GD:"심화",VM:"학습",VA:"시험",X:"듣기",SV:"동화",SM:"기본",SA:"실전"};if(1==o[s])s===g["qb"]||s===g["hb"]&&4===i&&!+e.words_cnt?n+="시험중":n+="학습중";else if(2==o[s])s===g["qb"]||s===g["hb"]&&4===i&&!+e.words_cnt?n+="재시험중":n+="재학습중";else if(3==o[s])s===g["G"]?n+=this.is_mobile?"듣기":"평가완료":(4===i?s===g["bb"]?n+=+e.words_cnt?"본문":"학습":s===g["hb"]?n+=+e.words_cnt?"심화":"시험":s===g["ab"]?n+="동화":n+=a[s]:"listeningbook"==this.$route.name&&31===+t.booktype?s===g["pb"]?n+="어휘":s===g["bb"]?n+="지문":s===g["hb"]&&(n+="심화"):n+=a[s],n+=this.is_mobile?"":"완료");else{let o="";o=4===i?s===g["bb"]?+e.words_cnt?"본문":"학습":s===g["hb"]?+e.words_cnt?"심화":"시험":a[s]:"listeningbook"==this.$route.name&&31===+t.booktype?s===g["bb"]?"지문":s===g["G"]?"심화":a[s]:a[s],this.is_mobile?n+=""+o:n+="학습"==o?o+"하기":"시험"==o||"동화"==o?o+"보기":"실전"==o?o+"문제":o+"학습"}}else if("school"==this.menu)if(0===a){let o=[3,10].includes(+i)?"지문":"본문";const a={V:e.voca_status,S:e.study_status,T:e.test_status,X:e.mock_status,M:e.major_status,A:e.advanced_status},r={V:"어휘",S:o,T:"심화",X:"듣기",M:o,A:"심화"};1==a[s]?n+="학습중":2==a[s]?n+="재학습중":3==a[s]?(s===g["G"]?n+=this.is_mobile?"듣기":"평가":n+=r[s],n+=this.is_mobile?"":"완료"):(n+=r[s],s!==g["G"]||this.is_mobile?n+=this.is_mobile?"":"학습":n+=t.mockexam?"평가":"학습")}else if(1===a)if(t.schedule_type_v&&1===Number(t.schedule_type_v)){let t=[3,10].includes(+i)?"지문":"본문";const o={S:e.study_status,M:e.major_status,VM:e.major_status,V:e.voca_status,T:e.test_status,A:e.advanced_status,VA:e.advanced_status,X:e.mock_status},a={S:t,M:t,VM:t,V:"어휘",T:"심화",A:"심화",VA:"심화",X:"듣기"};1==o[s]?n+="학습중":1==o[s]?n+="재학습중":3==o[s]?s===g["G"]?n+=this.is_mobile?"듣기":"평가완료":(n+=a[s],n+=this.is_mobile?"":"완료"):(n+=a[s],n+=this.is_mobile?"":"학습")}else{const t={S:e.study_status,T:e.test_status,X:e.mock_status,VM:e.major_status,VA:e.advanced_status},i={S:"학습",T:"시험",X:"듣기",VM:"학습",VA:"시험"};1==t[s]?n+=i[s]+"중":2==t[s]?n+=`재${i[s]}중`:3==t[s]?s===g["G"]?n+=this.is_mobile?"듣기":"평가완료":(n+=i[s],n+=this.is_mobile?"":"완료"):(n+=i[s],this.is_mobile||("학습"==i[s]?n+="하기":"시험"==i[s]?n+="보기":n+="학습"))}return n+="",n},setLearningDialog(t,e,s,i){this.dialog_title=t,this.dialog_left_btn=e,this.dialog_right_btn=s,this.learning_dialog_type=i,this.learning_dialog=!0},closeLearningDialog(){this.learning_dialog=!1,this.learning_dialog_vma=null,this.restudy_dialog&&(document.getElementById("from-right-slide-dialog").classList.remove("open"),this.restudy_dialog=!1,this.restudy_type=g["r"],this.restudy_cnt_ment="")},setDialogText(t,e,s,i,o){let a=+t.category,n=t.booktype_1,r=+t.schedule_type,l={t0:"학습을 시작하시겠습니까?",t1:"이미 학습된 내용이 있습니다.",t2:"재학습을 시작하시겠습니까?",t4:"시험을 시작하시겠습니까?",t5:"이미 진행된 내용이 있습니다.",t6:"재시험을 시작하시겠습니까?",t7:"재학습 가능 횟수(3회)를 모두 진행하셨습니다.",t8:"재시험 가능 횟수(3회)를 모두 진행하셨습니다.",t9:"해당 유닛의 학습하기부터 시작하세요.",t10:"해당 유닛의 문장학습부터 시작하세요.",t11:"해당 유닛의 본문학습부터 시작하세요.",t12:"해당 유닛의 지문학습부터 시작하세요.",t13:"재학습하시겠습니까?"},c={l1:"학습하기",l2:"이어서 학습",l3:"재학습",r1:"처음부터 학습",l4:"시험보기",l5:"이어서 시험",l6:"재시험",r2:"처음부터 시험"},d=[1,11,16],h=[7,12,17];const u=[];if("course"==this.menu||"reading"==this.menu||"listening"==this.menu||"school"==this.menu&&0===r&&4===a&&n!=g["e"])switch(n){case g["f"]:{const t={GT:"theory",GB:"basics",GD:"deep"},a={GT:"이론",GB:"기본",GD:"심화"},n=e[t[s]+"_status"];n>0&&n<3?u.push(l["t1"],c["l2"],c["r1"]):3==n?u.push(l["t2"],c["l3"],""):u.push(`${a[s]}${l["t0"]}`,c["l1"],""),o(u[0],u[1],u[2],i);break}case g["h"]:case g["g"]:{const t={V:"voca_status",S:"study_status",T:"test_status"},n=e[t[s]];if([1,2].includes(n))s!==g["hb"]||4!==a||+e.words_cnt?u.push(l["t1"],c["l2"],c["r1"]):u.push(l["t5"],c["l5"],c["r2"]);else if(3==n)s!==g["hb"]||4!==a||+e.words_cnt?h.includes(i)?u.push(l["t7"],"",""):u.push(l["t2"],c["l3"],""):h.includes(i)?u.push(l["t8"],"",""):u.push(l["t6"],c["l6"],"");else if(s===g["pb"])u.push("어휘"+l["t0"],c["l1"],"");else if(s===g["bb"])if(4!==a||Number(e.words_cnt)){const t=4==a?"본문":"listeningbook"==this.$route.name?"지문":"문장";u.push(t+l["t0"],c["l1"],"")}else u.push(l["t0"],c["l1"],"");else s===g["hb"]&&(4!==a||Number(e.words_cnt)?d.includes(i)?u.push(l[4===a?"t11":"t10"],"",""):u.push("심화"+l["t0"],c["l1"],""):d.includes(i)?u.push(l["t9"],"",""):u.push(l["t4"],c["l4"],""));o(u[0],u[1],u[2],i);break}case g["j"]:{const t={VM:e.major_status,VA:e.advanced_status};[1,2].includes(t[s])?s===g["sb"]?u.push(l["t1"],c["l2"],c["r1"]):u.push(l["t5"],c["l5"],c["r2"]):3==t[s]?h.includes(i)?s===g["sb"]?u.push(l["t7"],"",""):u.push(l["t8"],"",""):s===g["sb"]?u.push(l["t2"],c["l3"],""):u.push(l["t6"],c["l6"],""):s===g["sb"]?u.push(l["t0"],c["l1"],""):d.includes(i)?u.push(l["t9"],"",""):u.push(l["t4"],c["l4"],""),o(u[0],u[1],u[2],i);break}case g["i"]:{const t={SV:e.story_v_status,SM:e.story_m_status,SA:e.story_a_status};if(t[s]>0&&t[s]<3)u.push(l["t1"],c["l2"],c["r1"]);else if(3==t[s]){let t=l["t2"];s===g["ab"]&&(t="동화보기를 "+l["t13"]),u.push(t,c["l3"],"")}else{let t;s===g["ab"]?t="동화보기를 시작하시겠습니까?":s===g["Z"]?t="기본"+l["t0"]:s===g["W"]&&(t="실전문제를 학습하시겠습니까?");const e=s===g["ab"]?"동화보기":c["l1"];u.push(t,e,"")}o(u[0],u[1],u[2],i);break}default:break}else if("school"==this.menu)if(0===r)switch(n){case g["h"]:case g["g"]:{const t={V:e.voca_status,S:e.study_status,T:e.test_status};[1,2].includes(t[s])?u.push(l["t1"],c["l2"],c["r1"]):3===t[s]?h.includes(i)?u.push(l["t7"],"",""):u.push(l["t2"],c["l3"],""):s===g["pb"]?u.push("어휘"+l["t0"],c["l1"],""):s===g["bb"]?u.push(([3,10].includes(a)?"지":"본")+"문"+l["t0"],c["l1"],""):s===g["hb"]&&(d.includes(i)?u.push(l["t1"+(3==a?"2":"1")],"",""):u.push("심화"+l["t0"],c["l1"],"")),o(u[0],u[1],u[2],i);break}case g["e"]:{const t={V:e.voca_status,M:e.major_status,A:e.advanced_status};[1,2].includes(t[s])?u.push(l["t1"],c["l2"],c["r1"]):3===t[s]?h.includes(i)?u.push(l["t7"],"",""):u.push(l["t2"],c["l3"],""):s===g["pb"]?u.push("어휘"+l["t0"],c["l1"],""):s===g["B"]?u.push(`${3==a?"지":"본"}문${l["t0"]}`,c["l1"],""):s===g["a"]&&(d.includes(i)?u.push(l["t1"+(3==a?"2":"1")],"",""):u.push("심화"+l["t0"],c["l1"],"")),o(u[0],u[1],u[2],i);break}}else if(1===r){let n;if(1===+t.schedule_type_v){let t="",r="";s===g["pb"]?(t="voca",r="어휘"):[g["bb"],g["B"],g["sb"]].includes(s)?(t=s==g["bb"]?"study":"major",r=[3,10].includes(a)?"지문":"본문"):[g["hb"],g["a"],g["qb"]].includes(s)&&(t=s==g["hb"]?"test":"advanced",r="심화"),n=e[t+"_status"],[1,2].includes(n)?u.push(l["t1"],c["l2"],c["r1"]):3===+n?h.includes(i)?u.push(l["t7"],"",""):u.push(l["t2"],c["l3"],""):[g["hb"],g["a"],g["qb"]].includes(s)&&d.includes(i)?u.push(l["t1"+(3==a?2:1)],"",""):u.push(r+l["t0"],c["l1"],""),o(u[0],u[1],u[2],i)}else{const t={S:e.study_status,T:e.test_status,VM:e.major_status,VA:e.advanced_status};[1,2].includes(t[s])?[g["bb"],g["sb"]].includes(s)?u.push(l["t1"],c["l2"],c["r1"]):[g["hb"],g["qb"]].includes(s)&&u.push(l["t5"],c["l5"],c["r2"]):3==t[s]?[g["bb"],g["sb"]].includes(s)?h.includes(i)?u.push(l["t7"],"",""):u.push(l["t2"],c["l3"],""):[g["hb"],g["qb"]].includes(s)&&(h.includes(i)?u.push(l["t8"],"",""):u.push(l["t6"],c["l6"],"")):[g["bb"],g["sb"]].includes(s)?u.push(l["t0"],c["l1"],""):[g["hb"],g["qb"]].includes(s)&&(d.includes(i)?u.push(l["t9"],"",""):u.push(l["t4"],c["l4"],"")),o(u[0],u[1],u[2],i)}}},setRestudyText(){let t="무제한";return window.is_restudy&&(t="최대 3회"),t},openCoverImg(){if(!this.coverimg_url||""==this.coverimg_url)return!1;this.clickSound(),this.coverimg_dialog=!0},onScroll(t){let e=window.scroll_container;if(e.scrollTop+e.clientHeight>=e.scrollHeight-2){if(this.item_length[this.tab]{this.scroll_loading=!1,window.load_timeout=null},1200)}},setScroll(){const t=this.data?this.data.last_pick_tab:null,e=("course"===this.menu||"reading"===this.menu)&&4===+t;e||(window.cnt=0,this.setscroll_timeout&&clearInterval(this.setscroll_timeout),this.setscroll_timeout=setInterval(()=>{let t=document.getElementById("book-list-dttbl");t&&(t.classList.contains("temp-table")||(window.scroll_container=t.getElementsByClassName("v-data-table__wrapper")[0]),t.classList.contains("temp-table")||(window.scroll_container=t.getElementsByClassName("v-data-table__wrapper")[0])),window.scroll_container&&(clearInterval(this.setscroll_timeout),this.setItemLength(),window.scroll_container.onscroll=this.onScroll),window.cnt+=1,window.cnt>200&&(clearInterval(this.setscroll_timeout),window.cnt=void 0)},100))},setItemLength(){let t={1:0,2:0,3:0,4:0,5:0,6:0,10:0};this.query_bid&&this.query_sid&&this.query_dist?window.timeout1=window.setInterval(()=>{for(let[e,s]of Object.entries(this.books))s&&(t[s.category]+=1,s.latestdate&&(t[6]+=1),s.bookmark&&(t[5]+=1),this.query_bid&&this.query_sid&&this.query_dist&&this.tab==+s.category&&+this.query_bid===+s.id&&+this.query_sid===+s.schedule_id&&null!==s.dist_seq&&+this.query_dist===+s.dist_seq&&(this.search_book_order=t[s.category]));this.item_length=Object.freeze(t),this.search_book_order&&window.clearInterval(window.timeout1)},10):window.timeout1=window.setTimeout(()=>{for(let[e,s]of Object.entries(this.books))"course"==this.menu&&4===this.tab||"reading"==this.menu&&4===this.tab||s&&(t[s.category]+=1,s.latestdate&&(t[6]+=1),s.bookmark&&(t[5]+=1));this.item_length=Object.freeze(t)},10)},filterTabs(t,e,s){if("course"==this.menu&&4===+s.category)return;if("reading"==this.menu&&4===+s.category)return;let i=e.split("-"),o=+i[0],a=i[1],n=!1,r=i.length>2?this.final_keyword:null,l=a.substr(0,1);if("course"==this.menu&&[4].includes(+s.category))return!1;if("reading"==this.menu&&[4].includes(+s.category))return!1;if("listening"==this.menu&&[4].includes(+s.category))return!1;if(![5,6,10].includes(+this.tab)&&+this.tab!==+s.category)return!1;if(([1,2,3,4,10].includes(o)&&+s.category==o||5===o&&1==+s.bookmark||6===o&&null!==s.latestdate)&&("all"!=a&&("all"==a||s.grade!=a&&s.grade!=l)||(n=!0)),r&&n){n=!1;const t=r.toUpperCase();(s.schedule_name&&-1!==s.schedule_name.toUpperCase().indexOf(t)||s.publisher&&-1!==s.publisher.toUpperCase().indexOf(t)||s.unit_names&&-1!==s.unit_names.toUpperCase().indexOf(t)||s.bookname&&-1!==s.bookname.toUpperCase().indexOf(t))&&(n=!0)}if("school"==this.menu&&1==o&&this.membership_book)if(s.books_id==this.membership_book.books_id){const t=this.membership_book.search_name,e=this.membership_book.search_type;n=!e||"unit"!==e||s.unit_names&&s.unit_names.includes(t)}else n=!1;if("course"==this.menu&&(o<=3||1==o)&&this.course_book)if(s.books_id==this.course_book.books_id){const t=this.course_book.search_name,e=this.course_book.search_type;n=!e||"unit"!==e||!(!s.unit_names||!s.unit_names.includes(t))}else n=!1;if("reading"==this.menu&&(o<=3||1==o)&&this.reading_book)if(s.books_id==this.reading_book.books_id){const t=this.reading_book.search_name,e=this.reading_book.search_type;n=!e||"unit"!==e||!(!s.unit_names||!s.unit_names.includes(t))}else n=!1;if("listening"==this.menu&&1===o&&this.listening_book)if(s.books_id==this.listening_book.books_id){const t=this.listening_book.search_name,e=this.listening_book.search_type;n=!e||"unit"!==e||!(!s.unit_names||!s.unit_names.includes(t))}else n=!1;return"school"===this.menu&&10===o&&3===+s.category&&(n=31===+s.booktype),"course"===this.menu&&10===o&&10===+s.category&&(n=31===+s.booktype&&s.id===this.course_book.id),"reading"===this.menu&&10===o&&10===+s.category&&(n=31===+s.booktype&&s.id===this.reading_book.id),n},getScheduleBooks(t){this.schedule_load=!1;let e=`${g["w"]}/v2/schedule/${this.$store.state.cid}/user/${this.$store.state.uid}/book?newtab=true`,s=[];this.$axios.post(e,t).then(t=>{let e=[];if(200==t.status&&t.data){if("F"==this.$store.state.product_type&&this.$store.state.tuto&&0==JSON.parse(this.$store.state.tuto)["t6"]){let e=t.data.findIndex(t=>1==t.bookmark);-1!=e?(this.$store.dispatch("updateTutorial","t6"),this["t6_display"]="none"):this["t6_display"]="block"}if(1===this.is_openbook){let e=t.data.map(t=>+t.books_id);const s=[];e.forEach(t=>{s.push(this.books_tmp.find(e=>e.id===t))}),this.books=s,this.books_tmp=[]}let i=this.books.slice(),o=t.data.slice(),a=[],n=[];for(let t=0,r=o.length;t0){d=!1;const e="school"===this.menu?"membership":this.menu,s=this[e+"_books"].findIndex(e=>e.books_id==+o[t].books_id);-1!=s&&(this[e+"_books"][s].disable=!1)}if(1==+o[t].category&&(d=!1),r){if("school"==this.menu&&4==r){let e={table_key:this.setTableId(o[t]),progress:c>0?Math.round(l/c*100):0,disable:d,id:o[t].books_id,booktype_1:Math.floor(+o[t].booktype/10),booktype_2:+o[t].booktype%10};n.push(Object.assign(o[t],e))}}else{const s=i.find(e=>o[t].books_id==+e.id);if(s){let i=Object.assign({},s);if(i.table_key=this.setTableId(o[t]),i.progress=c>0?Math.round(l/c*100):0,i.disable=d,"course"===this.menu);else if("reading"===this.menu);else if("listening"===this.menu)i.mockexam=!0,e.includes(i.id)||e.push(i.id);else if("school"===this.menu){const s=3===+i.category&&1!==+i.booktype,a=10===+i.category&&31===+i.booktype,n=10===+i.category&&1===+i.booktype&&"1"!=o[t].schedule_type;(s||a||n)&&(a&&(i.mockexam=!0),n&&"0"==i.unit_cnt&&(i.mockexam=!0,i.progress=+o[t].mock_try_status?100:0),e.includes(i.id)||e.push(i.id))}o[t]["booktype_1"]=Math.floor(+o[t].booktype/10),o[t]["booktype_2"]=+o[t].booktype%10,a.push(Object.assign(i,o[t]))}}o[t].booktype_1===g["g"]&&(s.includes(+o[t].books_id)||s.push(+o[t].books_id))}if([54,98,150].includes(+this.$store.state.cid))for(let t=0,e=a.length;tt.id).lastIndexOf(a[t].id),s=1;+this.books[e].dist_seq>0&&(s=0,e+=1),1==a[t].booktype_1&&0==a[t].schedule_type&&(+a[t].test_modules>0||+a[t].study_modules>0)&&(a[t].booktype_1=0,a[t].booktype_2=0,a[t].booktype=0),this.books.splice(e,s,Object.freeze(a[t]))}else if(1===this.is_openbook)this.books=a;else for(let t=0,e=a.length;t{const s=e.table_key.split("-");return+e.id===+a[t].id&&e.table_key===s[0]+"-0-0"});if(e>-1)this.books.splice(e,1,Object.freeze(a[t]));else{const e=this.books.map(t=>t.id).lastIndexOf(a[t].id);this.books.splice(e+1,0,Object.freeze(a[t]))}}for(let t=0,e=n.length;te.id==t.id);-1===e&&this.membership_books.push(t)}if((t.category<=3||10===t.category)&&"course"==this.menu){const e=this.course_books.findIndex(e=>e.id==t.id);-1===e&&this.course_books.push(t)}if((t.category<=3||10===t.category)&&"reading"==this.menu){const e=this.reading_books.findIndex(e=>e.id==t.id);-1===e&&this.reading_books.push(t)}if(t.category<=3&&"listening"==this.menu){const e=this.listening_books.findIndex(e=>e.id==t.id);-1===e&&this.listening_books.push(t)}}return{t3:e,t4:s}}).then(t=>{let e=t.t3.length>0?t.t3:"",i=t.t4.length>0?t.t4:"";if(""!==e||""!==i){let t={t3:e,t4:i};this.$axios.get(`${g["w"]}/v2/mockexam/user/${this.$store.state.uid}/list`,{params:t}).then(t=>{200==t.status&&t.data&&t.data.length>0&&this.$nextTick(()=>{this.$forceUpdate();let e=t.data;for(let t=0;ts.books_id==e[t].books_id);this.mockexams[e[t].books_id]=e[t],e[t].question_cnt&&20===+e[t].question_cnt&&!s.includes(+e[t].books_id)&&i&&!i.mockexam&&(this.mockexams_block[e[t].books_id]=!0);const o=[...this.books];let a=void 0;if(this.$store.state.uclass<20){const s=e[t].schedule_id?e[t].schedule_id.split(","):[];for(let i=0,n=s.length;it.books_id==r&&t.schedule_id==n),-1!=a&&"3"==o[a].category&&"1"==o[a].booktype&&e[t].record_id&&"0"==o[a].unit_cnt){let t=0;+o[a].mock_try_status>0&&(t=100),o[a]=Object.freeze({...o[a],progress:t})}this.books[a]=Object.freeze(o[a])}}else a=o.findIndex(s=>s.books_id==e[t].books_id),o[a]&&"3"==o[a].category&&"1"==o[a].booktype&&e[t].record_id&&"0"==o[a].unit_cnt&&(o[a]=Object.freeze({...o[a],progress:100})),this.books[a]=Object.freeze(o[a]);e.length-1==t&&(this.mock_load=!0)}})}).catch(t=>{window.console.error(t),this.mock_load=!0})}else this.mock_load=!0;return!0}).then(t=>{}).catch(t=>{}).finally(()=>{this.schedule_load=!0,this.setScroll()})},unitStatusChecker(t,e){let s=0;switch(e){case g["bb"]:case g["hb"]:case g["pb"]:case g["B"]:case g["sb"]:case g["a"]:case g["qb"]:case g["u"]:case g["s"]:case g["t"]:case g["ab"]:case g["Z"]:case g["W"]:{const i={S:"study",T:"test",V:"voca",M:"major",VM:"major",A:"advanced",VA:"advanced",GT:"grammar_theory",GB:"grammar_basics",GD:"grammar_deep",SV:"story_v",SM:"story_m",SA:"story_a"},o=t[i[e]+"_pk"],a=+t[i[e]+"_cnt"],n=+t[i[e]+"_done"],r=t[i[e]+"_done_modules"];o&&a>0&&n>0?s=3:o&&a>0&&0===n?s=2:(e===g["bb"]&&o&&0===n&&r>0||o&&0===n)&&(s=1);break}case g["G"]:t.mock_pk&&Number(t.mock_cnt)>0&&(s=3);break;default:break}return s},getUnits(t,e){return new Promise((s,o)=>{let a=this.getScheduleBookId(t);if(!t.schedule_id||!t.id)return s("error"),!1;if("course"!=this.menu||4!==this.tab){if(t==this.expanded[0]&&!e)return this.expanded=[],s("close"),!1;if(this.$data[a]&&!e)return this.expanded=[],this.expanded.push(t),s("open"),!1}if("reading"!=this.menu||4!==this.tab){if(t==this.expanded[0]&&!e)return this.expanded=[],s("close"),!1;if(this.$data[a]&&!e)return this.expanded=[],this.expanded.push(t),s("open"),!1}if("F"==this.$store.state.product_type&&this.$store.state.tuto){let e=Number(t.category),s=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(s){let t=s.classList[2];0==JSON.parse(this.$store.state.tuto)[t]&&(this.$store.dispatch("updateTutorial",t),this[t+"_display"]="none")}if(0==JSON.parse(this.$store.state.tuto)["t6"]&&(this.$store.dispatch("updateTutorial","t6"),this["t6_display"]="none"),0==JSON.parse(this.$store.state.tuto)["t"+(e+1)]){let t=document.getElementById("tab"+e);if(t){let s=t.getBoundingClientRect();this[`t${e+1}_top`]=s.top+"px",this[`t${e+1}_left`]=(s.left+s.left+s.width)/2+"px"}this[`t${e+1}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}this.loading_unit=!0;let n=parseInt(t.schedule_id),r=parseInt(t.id),l=null==t.schedule_type?0:parseInt(t.schedule_type),c="?";if(1==l){let e=null==t.sentence_cnt?0:parseInt(t.sentence_cnt),s=null==t.total_cnt?0:parseInt(t.total_cnt);c+="tot_cnt="+s+"&sen_cnt="+e}e&&(1==t.schedule_type&&1==t.schedule_type_v?c+="&s_u_id="+e:c+="&unit_id="+e),1==t.booktype_1&&(c+="?"==c?"vma=1":"&vma=1"),1==t.mockexam&&(c+="?"==c?"mock=1":"&mock=1"),c+="&bt="+t.booktype_1,31===+t.booktype&&"listeningbook"==this.$route.name&&(c+="&category=10"),this.$axios.get(`${g["w"]}/v2/book/${r}/schedule/${n}/type/${l}/user/${this.$store.state.uid}${c}`).then(async o=>{let r;if(200==o.status)r=o.data||[];else{if(204!=o.status)return!1;r=[]}if(e){let e=-1;const s=1==t.schedule_type&&1==t.schedule_type_v?"s_u_id":"id";let o;const l=this.$refs.story_book_table;if(50===+t.booktype&&l)o=l.$data[a],r[0][s]==o[s]&&(e=0);else if(o=this.$data[a],o&&Array.isArray(o))for(let t=0;t0?_.seq:_.id}`;if(50===+t.booktype&&l)p.push(u);else for(let[t,e]of Object.entries(u))p.push(e);const b=t.booktype_1;if(1==t.schedule_type&&1==t.schedule_type_v)switch(t.booktype_1){case g["e"]:case g["h"]:case g["g"]:case g["j"]:{const e={V:"voca",M:"major",A:"advanced",S:"study",T:"test",X:"mock",VM:"major",MA:"advanced"};if(_[e[_.mode]+"_status"]=this.unitStatusChecker(_,_.mode),[1,2].includes(_[e[_.mode]+"_status"])){const i=`${m}-${_.mode}-ing`,o=s[i],a=o&&o["ing"];let n=null;if(a)o&&a&&(n=JSON.parse(o["ing"]));else{let t="";if(t=["S","T"].includes(_.mode)?"_done_mod":"_done_modules",_[`${e[_.mode]}${t}`]){const s=_[`${e[_.mode]}${t}`].split("").length;n={},n.current_step=0,n.current_page=s}}if(n){const s=n.current_page,i=n.current_step;let o=0;if(t.booktype_1===g["e"]&&(h||(h={}),!h[_.id])){const e=await G.a.get(`${g["w"]}/v1/modules/getbankcounts/${t.books_id}/${_.id}`);200==e.status&&(h[_.id]=e.data)}switch(_.mode){case"V":const e=t.v_mod.indexOf("7"),a=t.v_mod.indexOf("I");let n=+_.words_cnt>25?25:+_.words_cnt;-1==e?o=-1==a?s*n+i:a15?15:n):s*n+i:e15?15:n)``:e=s?o=(s-1)*n+i+(n>15?15:n):e>=s&&a=s&&a>=s&&(o=s*n+i);break;case"S":o=s*+_.sentences_cnt+i;break;case"T":o=s*+_.sentences_cnt+i;break;case"M":o=s*+_.sentences_cnt+i;break;case"A":const r=await this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${_.id}`);let l=r.data.length;l=l>5?5:l;const c=t.a_mod.split("");for(let t=0;te?(s-1)*+_.sentences_cnt+r+(+_.sentences_cnt>15?15:+_.sentences_cnt):s*+_.sentences_cnt+r;break;case"VA":a=s*+_.sentences_cnt+r;break;case"S":a=s*+_.sentences_cnt+r;break;case"T":a=s*Math.round(.7*+_.sentences_cnt)+r;break}else switch(n){case"M":a=s*+_.sentences_cnt+r;break;case"A":const l=t.a_mod.split("");for(let t=0;t5?5:_.sentences_cnt,a+=r}break;case"V":let c=+_.words_cnt>25?25:+_.words_cnt;const u=t.v_mod.indexOf("7"),p=t.v_mod.indexOf("I");-1==u?a=-1==p?s*c+r:p15?15:c):s*c+r:u15?15:c)``:u=s?a=(s-1)*c+r+(c>15?15:c):u>=s&&p=s&&p>=s&&(a=s*c+r);break;case"S":a=s*+_.sentences_cnt+r;break;case"T":a=s*Math.round(.7*+_.sentences_cnt)+r;break;case"VM":const m=t.m_mod.indexOf("7");a=-1==m?s*+_.words_cnt+r:s>m?(s-1)*+_.words_cnt+r+(+_.words_cnt>15?15:+_.words_cnt):s*+_.words_cnt+r;break;case"VA":a=s*+_.words_cnt+r;break;case"GT":for(let t=0;te.schedule_id?+t.schedule_id===+e.schedule_id:+t.id===+e.id);if(s>-1){l.$data.story_books.splice(s,1,e);const t=this.books.findIndex(t=>t.schedule_id?+t.schedule_id===+l.$data.story_books[s].schedule_id:+t.id===+l.$data.story_books[s].id);-1!==t&&(this.books[t]=l.$data.story_books[s])}}else this.$data[a]=Object.freeze(p)}}else{let e={};const s=await i["db"].collection("users").doc(""+this.$store.state.uid).collection("schedules").doc(""+n).collection("Bookunits").get();if(!s.empty)for(let t=0;t0?a.seq:a.id}`;if(1==t.schedule_type)if(1==t.schedule_type_v&&t.booktype_1!==g["j"]){const i={V:"voca",M:"major",A:"advanced",S:"study",T:"test",X:"mock",VM:"major",MA:"advanced"};if(a.mode.length>1&&a.mode.indexOf(g["G"])>-1)a.mock_status=this.unitStatusChecker(a,g["G"]);else if(a[i[a.mode]+"_status"]=this.unitStatusChecker(a,a.mode),[1,2].includes(a[i[a.mode]+"_status"])){const o=`${s}-${a.mode}-ing`,n=e[o],r=n&&n["ing"];let c=null;if(r)n&&r&&(c=JSON.parse(n["ing"]));else{let t="";if(t=["S","T"].includes(a.mode)?"_done_mod":"_done_modules",a[`${i[a.mode]}${t}`]){const e=a[`${i[a.mode]}${t}`].split("").length;c={},c.current_step=0,c.current_page=e}}if(c){const e=c.current_page,s=c.current_step;let o=0;switch(a.mode){case"V":if(t.booktype_1===g["e"]&&(l||(l={}),!l[a.id])){const e=await G.a.get(`${g["w"]}/v1/modules/getbankcounts/${t.books_id}/${a.id}`);200==e.status&&(l[a.id]=e.data)}const i=t.v_mod.indexOf("7"),n=t.v_mod.indexOf("I");let r=+a.words_cnt>25?25:+a.words_cnt;-1==i?o=-1==n?e*r+s:n15?15:r):e*r+s:i15?15:r)``:i=e?o=(e-1)*r+s+(r>15?15:r):i>=e&&n=e&&n>=e&&(o=e*r+s);break;case"S":o=e*+a.sentences_cnt+s;break;case"T":o=e*+a.sentences_cnt+s;break;case"M":o=e*+a.sentences_cnt+s;break;case"A":const c=await this.$axios.get(`${g["w"]}/v1/book/getsentenceunitone/${a.id}`);let d=c.data.length;if(d=d>5?5:d,t.booktype_1===g["e"]&&(l||(l={}),!l[a.id])){const e=await G.a.get(`${g["w"]}/v1/modules/getbankcounts/${t.books_id}/${a.id}`);200==e.status&&(l[a.id]=e.data)}const h=t.a_mod.split("");for(let t=0;to?(e-1)*+a.sentences_cnt+s+(+a.sentences_cnt>15?15:+a.sentences_cnt):e*+a.sentences_cnt+s}a.major_done_question_cnt=i}if([1,2].includes(a.advanced_status)){let t=0;const i=s+"-VA-ing",o=e[i],n=o&&o["ing"];let r=null;if(n)o&&n&&(r=JSON.parse(o["ing"]));else if(a["advanced_done_modules"]){const t=a["advanced_done_modules"].split("").length;r={},r.current_step=0,r.current_page=t}if(r){const e=r.current_page,s=r.current_step;t=e*+a.sentences_cnt+s}a.advanced_done_question_cnt=t}}else{if(a.study_status=this.unitStatusChecker(a,g["bb"]),a.test_status=this.unitStatusChecker(a,g["hb"]),[1,2].includes(a.study_status)){let t=0;const i=s+"-S-ing",o=e[i],n=o&&o["ing"];let r=null;if(n)o&&n&&(r=JSON.parse(o["ing"]));else if(a["study_done_mod"]){const t=a["study_done_mod"].split("").length;r={},r.current_step=0,r.current_page=t}if(r){const e=r.current_page,s=r.current_step;t=e*+a.sentences_cnt+s}a.study_done_question_cnt=t}if([1,2].includes(a.test_status)){let t=0;const i=s+"-T-ing",o=e[i],n=o&&o["ing"];let r=null;if(n)o&&n&&(r=JSON.parse(o["ing"]));else if(a["test_done_mod"]){const t=a["test_done_mod"].split("").length;r={},r.current_step=0,r.current_page=t}if(r){const e=r.current_page,s=r.current_step;t=e*Math.round(.7*+a.sentences_cnt)+s}a.test_done_question_cnt=t}}else switch(t.booktype_1){case g["h"]:case g["g"]:{const i={V:"voca",S:"study",T:"test",X:"mock"};t.mockexam?t.mockexam&&"listeningbook"==this.$route.name&&31===+t.booktype&&(a[i[a.mode]+"_status"]=this.unitStatusChecker(a,a.mode),["V","S","T"].forEach(o=>{if(a[i[o]+"_status"]=this.unitStatusChecker(a,o),[1,2].includes(a[i[o]+"_status"])){const n=`${s}-${o}-ing`,r=e[n],l=r&&r["ing"];let c=null;if(l)r&&l&&(c=JSON.parse(r["ing"]));else{let t="";if(t=["S","T"].includes(o)?"_done_mod":"_done_modules",a[`${i[o]}${t}`]){const e=a[`${i[o]}${t}`].split("").length;c={},c.current_step=0,c.current_page=e}}if(c){const e=c.current_page,s=c.current_step;if("V"==o){let n=+a.words_cnt>25?25:+a.words_cnt;const r=t.v_mod.indexOf("7");let l=0;l=-1==r?e*n+s:e>r?(e-1)*n+s+(n>15?15:n):e*n+s,a[i[o]+"_done_question_cnt"]=l}else if("S"==o){const t=e*+a.sentences_cnt+s;a[i[o]+"_done_question_cnt"]=t}else if("T"==o){const t=e*Math.round(.7*+a.sentences_cnt)+s;a[i[o]+"_done_question_cnt"]=t}}else a[i[o]+"_done_question_cnt"]=0}})):(a[i[a.mode]+"_status"]=this.unitStatusChecker(a,a.mode),["V","S","T","X"].forEach(o=>{if(a[i[o]+"_status"]=this.unitStatusChecker(a,o),[1,2].includes(a[i[o]+"_status"])){const n=`${s}-${o}-ing`,r=e[n],l=r&&r["ing"];let c=null;if(l)r&&l&&(c=JSON.parse(r["ing"]));else{let t="";if(t=["S","T"].includes(o)?"_done_mod":"_done_modules",a[`${i[o]}${t}`]){const e=a[`${i[o]}${t}`].split("").length;c={},c.current_step=0,c.current_page=e}}if(c){const e=c.current_page,s=c.current_step;if("V"==o){let n=+a.words_cnt>25?25:+a.words_cnt;const r=t.v_mod.indexOf("7");let l=0;l=-1==r?e*n+s:e>r?(e-1)*n+s+(n>15?15:n):e*n+s,a[i[o]+"_done_question_cnt"]=l}else if("S"==o){const t=e*+a.sentences_cnt+s;a[i[o]+"_done_question_cnt"]=t}else if("T"==o){const t=e*Math.round(.7*+a.sentences_cnt)+s;a[i[o]+"_done_question_cnt"]=t}}else a[i[o]+"_done_question_cnt"]=0}}));break}case g["e"]:case g["j"]:case g["f"]:{const i={V:"voca",M:"major",A:"advanced",S:"study",T:"test",X:"mock",VM:"major",VA:"advanced",GT:"theory",GB:"basics",GD:"deep"},n=[];t.booktype_1===g["e"]?n.push("V","M","A"):t.booktype_1===g["j"]?n.push("VM","VA"):t.booktype_1===g["f"]&&n.push("GT","GB","GD");for(let r=0,c=n.length;r25?25:+a.words_cnt;const n=t.v_mod.indexOf("7"),r=t.v_mod.indexOf("I");let d=0;-1==n?d=-1==r?e*o+s:r15?15:o):e*o+s:n15?15:o)``:n=e?d=(e-1)*o+s+(o>15?15:o):n>=e&&r=e&&r>=e&&(d=e*o+s),a[i[c]+"_done_question_cnt"]=d}else if("M"==c){const t=e*+a.sentences_cnt+s;a[i[c]+"_done_question_cnt"]=t}else if("A"==c){let o=0;const n=t.a_mod.split("");for(let t=0;t5?5:a.sentences_cnt}o+=s,a[i[c]+"_done_question_cnt"]=o}}else if(t.booktype_1===g["j"]){let o=0;if("VM"==c){const i=t.m_mod.indexOf("7");o=-1==i?e*+a.words_cnt+s:e>i?(e-1)*+a.words_cnt+s+(+a.words_cnt>15?15:+a.words_cnt):e*+a.words_cnt+s}else"VA"==c&&(o=e*+a.words_cnt+s);a[i[c]+"_done_question_cnt"]=o}else if(t.booktype_1===g["f"]){o||(o={}),o[a.id]||(o[a.id]={}),o[a.id][c]||(o[a.id][c]={});const n=await G.a.get(`${g["w"]}/v2/book/getgrammarcount?unit_id=${a.id}&type=${c}&sid=${t.schedule_id}`);if(200==n.status){const t=n.data.cnt.split("-");for(let e=0;e{let t=document.getElementById(`u-${this.query_sid}-${this.query_bid}-${this.query_dist}-${this.query_useq}`);t&&t.classList.add("select-in-schedule")},100));let l=0;this.$store.state.ing_save&&(l=1500),setTimeout(()=>{s("open"),this.$store.state.ing_save=!1},l)}).catch(t=>{console.log(t),o()})})},getStoryBookUnits(t,e){return new Promise((s,o)=>{if(t&&t.length>0){this.loading_unit=!0;let a=t.every(t=>t.unit);if(a){for(let e=0,s=t.length;e{if(200==e.status&&e.data){const s=e.data;if(0===+this.$store.state.settings.is_openbook)if(0===s.length)for(let e=0,i=t.length;e+t.id===+i.id);-1!==o&&(this.data.books[o]=t[e])}else for(let e=0,o=t.length;e{if(t.schedule_id){if(+t.schedule_id===+o.schedule_id)return+t.schedule_id===+o.schedule_id}else if(+t.book_id===+o.id)return+t.book_id===+o.id})},r=R(o);if(n&&0!==Object.keys(n).length){if(n.schedule_id=o.schedule_id,n.origin_level=o.origin_level,n.story_v_status=this.unitStatusChecker(n,g["ab"]),n.story_m_status=this.unitStatusChecker(n,g["Z"]),n.story_a_status=this.unitStatusChecker(n,g["W"]),[1,2].includes(n.story_m_status)){const t=`${o.books_id}-${o.dist_seq}-${o.schedule_type}-${+o.schedule_type>0?n.seq:n.id}-SM-ing`,e=await i["db"].collection("users").doc(this.$store.state.uid).collection("schedules").doc(o.schedule_id).collection("Bookunits").doc(t).get();if(e.exists){const t=e.data(),s=t&&t["ing"];let i=null;if(s)t&&s&&(i=JSON.parse(t["ing"]));else if(n["story_m_done_modules"]){const t=n["story_m_done_modules"].split("").length;i={},i.current_step=0,i.current_page=t}if(i){const t=i.current_page,e=i.current_step;let s=0;for(let i=0;it.schedule_id?+t.schedule_id===+r.schedule_id:+t.id===+r.id);-1!==s&&(this.data.books[s]=t[e])}else{r.unit={name:o.cover_path.replace(".png","")},t[e]=Object.freeze(r);const s=this.data.books.findIndex(t=>+t.id===+r.id);-1!==s&&(this.data.books[s]=t[e])}}else for(let e=0,o=t.length;et.schedule_id?+t.schedule_id===+o.schedule_id:+t.book_id===+o.id)};if(!n||0===Object.keys(n).length)continue;if(n.schedule_id=o.schedule_id,n.origin_level=o.origin_level,n.story_v_status=this.unitStatusChecker(n,g["ab"]),n.story_m_status=this.unitStatusChecker(n,g["Z"]),n.story_a_status=this.unitStatusChecker(n,g["W"]),[1,2].includes(n.story_m_status)){const t=`${o.books_id}-${o.dist_seq}-${o.schedule_type}-${+o.schedule_type>0?n.seq:n.id}-SM-ing`,e=await i["db"].collection("users").doc(this.$store.state.uid).collection("schedules").doc(o.schedule_id).collection("Bookunits").doc(t).get();if(e.exists){const t=e.data(),s=t&&t["ing"];if(t&&s){const e=JSON.parse(t["ing"]),s=e.current_page,i=e.current_step;let o=0;for(let t=0;tt.schedule_id?+t.schedule_id===+r.schedule_id:+t.id===+r.id);-1!==l&&(this.data.books[l]=t[e])}}this.loading_unit=!1;let o=0;this.$store.state.ing_save&&(o=1500),setTimeout(()=>{s("open"),this.$store.state.ing_save=!1},o)}).catch(t=>{console.error(t),this.loading_unit=!1,o(t)})}else o(null)})},openRestudyDialog(){document.getElementById("dialog-old-text").offsetHeight,document.getElementById("dialog-old-actions").offsetHeight;if(this.restudy_dialog=!0,this.restudy_type=g["r"],window.is_restudy){let t=3-Number(this.sel_unit.study_cnt);this.restudy_cnt_ment="남은 재학습 ✕ "+(t<0?0:t)}else this.restudy_cnt_ment="무제한 재학습";window.timeout1=setTimeout(()=>{document.getElementById("from-right-slide-dialog").classList.add("open")},50)},freeGomain(){this.$store.commit("setDialogResolve","gomain"),this.$store.commit("setDialog",{d_name:"a_info_dialog",value:!1})},freeCancel(){this.$store.commit("setDialogResolve","cancel"),this.$store.commit("setDialog",{d_name:"a_info_dialog",value:!1})},setNewMockExam(t){let e=t;if(0==e.length)e.push({name:"1차 정규평가",mode:"X",mock_status:0,question_seq:null,is_regular:1,regular_id:null});else{for(let r of e)r.mode="X";let t=[],s=[],i=[];this.$store.state.uclass>=20?(s=e.filter(t=>null==t.wrong_nums),i=e.filter(t=>null!=t.wrong_nums)):(s=e.filter(t=>null==t.schedule_id),i=e.filter(t=>null!=t.schedule_id)),s.length>0&&i.unshift(s[s.length-1]);let o={};for(let e=0,r=i.length;e{if(r[0].right_group.split(",")[e]!=t)return e+1}).filter(t=>void 0!=t));let s=1;for(let t=0,e=r.length;t{this.prevent_advanced_dialog=!1,window.dialog_timeout=null},3e3)},goShadowReading(){this.setBookInfo(this.expanded[0],this.sel_unit,g["S"],!1,()=>{this.closeLearningDialog(),this.$store.commit("setLearningStatus",!0)})},goTest(t){if(this.freepass){if(!this.chkCurVal())return!1}else if(1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v){if(!this.chkCurVal())return!1}else if(!this.chkCurVal()||!+this.sel_unit.study_pk&&!+this.$store.state.unit.study_pk)return!1;[3,5,9,14,31].includes(this.learning_dialog_type)&&(this.$store.commit("setClearPrevResult",!0),this.$store.commit("setCurrentRestudy",!0)),this.setBookInfo(this.expanded[0],this.sel_unit,g["hb"],t.clear,this.closeLearningDialog)},goFlashCard(){if(this.loading)return;if(!this.expanded[0])return;if(!this.sel_unit)return;this.loading=!0;let t=this.expanded[0],e=this.sel_unit,s=`${g["w"]}/book/${t.id}/getsentence`;if(0==Number(t.schedule_type))s=`${g["w"]}/book/getunitsentence?unitids=${e.id}`;else{let i=Number(t.sentence_cnt),o=Number(e.seq)*i;s=`${g["w"]}/book/getsentencelimited/${t.id}?schedule_id=${this.$store.state.book.schedule_id}&start=${o}&leng=${i}`}this.$axios.get(s).then(e=>{if(200==e.status){let s=e.data;for(let e=0,i=s.length;e{this.restudy_dialog=!1,this.restudy_type=g["r"],this.restudy_cnt_ment=""})},closeMockExamConfirm(){this.sel_mockexam=null,this.mockexam_dialog=!1,this.loading=!1},goMockExam(t){!this.loading&&this.sel_mockexam&&(this.loading=!0,t?this.$store.commit("setMockExamResultId",this.sel_mockexam.record_id):this.$store.commit("setIsMockExam",!0),this.$store.commit("setMockExam",this.sel_mockexam),this.$store.commit("setProcessType",g["G"]),this.$store.commit("setLearningStatus",!0),this.closeMockExamConfirm())},grammarConfirm(t,e){if(this.loading_unit)return!1;this.expanded[0];let s="",i="",o=null;if(e==g["u"]?(s="theory_status",i="theory_cnt"):e==g["s"]?(s="basics_status",i="basics_cnt"):e==g["t"]&&(s="deep_status",i="deep_cnt"),+t.seq>2){if(this.is_ng_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_ng_book=!1;if(window.is_restudy>0&&Number(t[i])>2)return this.clickSound(),this.sel_unit=t,o=12,this.setDialogVMA(e),this.setDialogText(this.expanded[0],t,e,o,this.setLearningDialog),!1;switch(this.sel_unit=t,t[s]){case 1:case 2:this.exitSound(),o=30;break;case 3:this.clickSound(),o=31;break;default:this.clickSound(),o=28;break}this.setDialogVMA(e),this.setDialogText(this.expanded[0],t,e,o,this.setLearningDialog)},vmaConfirm(t,e,s=null){if(this.loading_unit)return!1;let i=this.expanded[0];this.$store.commit("setFlashShow",!0),i&&i.img_use&&0===Number(i.img_use)&&"V"==e&&this.$store.commit("setFlashShow",!1);let o="",a="",n=this.expanded[0].booktype_1==g["j"]?5:0,r=null;switch(e){case g["pb"]:o="voca_status",a="voca_cnt";break;case g["B"]:case g["sb"]:o="major_status",a="major_cnt";break;case g["a"]:case g["qb"]:if(1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v){let s=this.getScheduleBookId(this.expanded[0]);if(s){let i=!0,o=e==g["a"]?g["B"]:g["sb"];for(let e=+t.seq-1;e>=0;e--){let a=this.$data[s][e];if(a.id!=t.id||a.mode!=o)break;if(isNaN(a.major_cnt)||!(+a.major_cnt>0)){i=!1;break}}if(!this.freepass&&!i)return this.exitSound(),r=11+n,this.setDialogVMA(e),this.setDialogText(this.expanded[0],t,e,r,this.setLearningDialog),!1}}else if(!this.freepass&&(null==t.major_pk||Number(t.major_cnt)<1))return this.exitSound(),r=11+n,this.setDialogVMA(e),this.setDialogText(this.expanded[0],t,e,r,this.setLearningDialog),!1;o="advanced_status",a="advanced_cnt";break;default:}if("course"===this.menu){if(this.is_ng_book=!1,s){if(+t.seq>2&&(this.is_ng_book=!0,!this.checkAuthFree(t.seq)))return!1}else if(!this.checkAuthFree(t.seq))return!1}else if("reading"===this.menu){if(this.is_ng_book=!1,s){if(+t.seq>2&&(this.is_ng_book=!0,!this.checkAuthFree(t.seq)))return!1}else if(!this.checkAuthFree(t.seq))return!1}else if("school"===this.menu)if(s&&1===+s.category&&2===+s.origin_category)if(this.is_mock_book=!1,+t.seq>2){if(this.is_vip_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_vip_book=!1;else{if(this.is_vip_book=!1,s&&3===+s.category)if(+t.seq>2){if(this.is_mock_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_mock_book=!1;if(this.is_mock_book=!1,!this.checkAuthFree(t.seq))return!1}else if("listening"===this.menu&&(this.is_ng_book=!1,s&&+t.seq>2&&(this.is_ng_book=!0),!this.checkAuthFree(t.seq)))return!1;if(window.is_restudy>0&&+t[a]>2)return this.clickSound(),this.sel_unit=t,r=12+n,this.setDialogVMA(e),this.setDialogText(this.expanded[0],t,e,r,this.setLearningDialog),!1;switch(this.sel_unit=t,t[o]){case 1:case 2:this.exitSound(),r=10+n;break;case 3:this.clickSound(),r=9+n;break;default:this.clickSound(),r=8+n;break}this.setDialogVMA(e),this.setDialogText(this.expanded[0],t,e,r,this.setLearningDialog)},updateTmpSelUpdate(t,e){this.expanded.splice(0,1,Object.freeze(t)),this.sel_unit=e},closeRestudyDialog(){document.getElementById("from-right-slide-dialog").classList.remove("open"),window.timeout1=setTimeout(()=>{this.restudy_dialog=!1,this.restudy_type=g["r"],this.restudy_cnt_ment=""},500)},selectRestudyType(t){this.restudy_type=t},startRestudy(){if(this.restudy_type===g["r"])this.goFlashCard(),this.learning_dialog=!1;else if(this.restudy_type===g["bb"]){if(window.is_restudy>0&&Number(this.sel_unit.study_cnt)>2)return this.restudy_false_dialog=!0,!1;this.$store.commit("setClearPrevResult",!0),this.$store.commit("setCurrentRestudy",!0),this.goStudy({clear:!1}),this.learning_dialog=!1,this.restudy_dialog=!1,this.restudy_type=g["r"],this.restudy_cnt_ment=""}}},beforeDestroy(){window.dialog_timeout&&clearTimeout(window.dialog_timeout),window.load_timeout&&clearTimeout(window.load_timeout),window.scroll_container&&(window.scroll_container.onscroll=null),window.render_chk_interval&&clearInterval(window.render_chk_interval),window.timeout1&&(clearTimeout(window.timeout1)||clearInterval(window.timeout1)),this.setscroll_timeout&&clearInterval(this.setscroll_timeout),clearInterval(this.setscroll_timeout),delete window["is_restudy"],delete window["dialog_timeout"],delete window["render_chk_interval"],delete window["load_timeout"],delete window["timeout1"],delete window["scroll_container"],window.removeEventListener("resize",this.setTableHeight),this._isDestroyedMixin=!0},destroyed(){this.$destroy()}},gh=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pos-rel",style:{padding:"1.4rem"},attrs:{id:"story-book-wrap"}},[0===t.story_books.length||t.story_search_books&&0===t.story_search_books.length?[i("div",{staticClass:"v-data-table__empty-wrapper border-ede thin-b pos-abs width-100 d-flex justify-center align-center",staticStyle:{color:"rgba(0, 0, 0, 0.38)","font-size":"1.1rem",padding:"1rem",top:"0",left:"0",height:"7vh"}},[t._v("\n 등록된 교재가 없습니다.\n ")])]:[0===t.filteredStoryBooks.length?[i("div",{staticClass:"v-data-table__empty-wrapper border-ede thin-b pos-abs width-100 d-flex justify-center align-center",staticStyle:{color:"rgba(0, 0, 0, 0.38)","font-size":"1.1rem",padding:"1rem",top:"0",left:"0",height:"7vh"}},[t._v("\n 등록된 교재가 없습니다.\n ")])]:t._l(t.filteredStoryBooks,(function(e,o){return[i("v-lazy",{directives:[{name:"show",rawName:"v-show",value:t.endInitBook&&+e.level===+t.select_level&&e.unit,expression:"endInitBook && +item.level === +select_level && item.unit"}],key:"story_table_"+e.id,attrs:{transition:"fade-transition",options:{threshold:.5}}},[i("v-card",{staticClass:"cursor",class:t.cardHighlight(e),attrs:{id:"card-"+e.books_id,elevation:"0",ripple:!1},on:{click:function(s){return t.cardClick(e)}}},[i("div",{staticClass:"d-flex",class:[e.disable?"book-disabled pos-rel":"",o>2||Number(e.origin_level.replace("N1-",""))>3?"is-story-"+t.$store.state.product_type+"-"+t.$store.state.uclass:"","F"!==t.$store.state.product_type&&0===+t.$store.state.promotion_check&&o>0?"is-story-F-29":""]},[e.disable?i("div",{staticClass:"pos-abs lock-div"},[i("img",{attrs:{src:s("1195")}})]):t._e(),i("CachedImg",{staticClass:"book-cover-img",attrs:{src:t.EBOOK_CDN+"/ngcover/"+e.cover_path,alt:"book-cover"}}),i("div",{staticClass:"book-info"},[i("v-chip",{attrs:{color:t.levelChipColor(e.level),"text-color":"white",small:"",pill:""}},[i("span",{staticClass:"white--text",domProps:{textContent:t._s("No.")}}),i("span",{staticClass:"white--text"},[t._v("\n "+t._s(e.unit.name.split("-")[1])+"\n ")])]),i("div",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing bookname",domProps:{innerHTML:t._s(e.search_name||e.schedule_name||e.bookname)}}),i("div",{staticClass:"subtitle",attrs:{id:"storybook-subtitle-"+e.id},domProps:{innerHTML:t._s(e.search_title||e.subtitle)}}),i("div",{staticClass:"btn-wrap d-flex"},[i("v-btn",{staticClass:"white--text",class:2==e.unit.story_v_status?"bg-white":"",attrs:{depressed:"",rounded:"",outlined:2==e.unit.story_v_status,color:t.setBtnColor(e,"v")},domProps:{innerHTML:t._s(t.setListBtnText(e,e.unit,t.STORY_V))},on:{click:function(s){return t.storyConfirm(e.unit,e,t.STORY_V)}}}),e.unit&&[1,2].includes(e.unit.story_m_status)?[i("div",{staticClass:"guage-btn",style:{"--guage":(0!=+e.unit.story_m_tot_question_cnt?Math.round(+e.unit.story_m_done_question_cnt/+e.unit.story_m_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.storyConfirm(e.unit,e,t.STORY_M)}}},[i("div",{staticClass:"fill"}),i("span",{staticClass:"text base"},[t._v(t._s(1==e.unit.story_m_status?"학습중":"재학습중"))]),i("span",{staticClass:"text overlay"},[t._v(t._s(1==e.unit.story_m_status?"학습중":"재학습중"))])])]:[i("v-btn",{staticClass:"white--text",class:2==e.unit.story_m_status?"bg-white":"",attrs:{depressed:"",rounded:"",outlined:2==e.unit.story_m_status,color:t.setBtnColor(e,"m")},domProps:{innerHTML:t._s(t.setListBtnText(e,e.unit,t.STORY_M))},on:{click:function(s){return t.storyConfirm(e.unit,e,t.STORY_M)}}})],i("v-btn",{staticClass:"white--text",class:2==e.unit.story_a_status?"bg-white":"",attrs:{depressed:"",rounded:"",outlined:2==e.unit.story_a_status,color:t.setBtnColor(e,"a")},domProps:{innerHTML:t._s(t.setListBtnText(e,e.unit,t.STORY_A))},on:{click:function(s){return t.storyConfirm(e.unit,e,t.STORY_A)}}})],2)],1)],1)])],1)]}))],i("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeLearningDialog},model:{value:t.learning_dialog,callback:function(e){t.learning_dialog=e},expression:"learning_dialog"}},[i("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",{domProps:{textContent:t._s(t.dialog_title)}})])]),[1,11,12,16,17].includes(t.learning_dialog_type)?t._e():i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[i("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.setBookName)}}),i("br"),i("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.setUnitName)}})])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[i("v-row",{attrs:{dense:""}},[0==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.goStory(t.sel_book?t.$data[t.getScheduleBookId(t.sel_book)]:null,{clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[1,11,16].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)]:7!=t.learning_dialog_type||t.isProcessResult?[8,13].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.goStory(t.sel_book?t.$data[t.getScheduleBookId(t.sel_book)]:null,{clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[9,14].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.goStory(t.sel_book?t.$data[t.getScheduleBookId(t.sel_book)]:null,{clear:!1,restudy:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult||"동화보기를 재학습하시겠습니까?"==t.dialog_title?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[10,15].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.goStory(t.sel_book?t.$data[t.getScheduleBookId(t.sel_book)]:null,{clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.goStory(t.sel_book?t.$data[t.getScheduleBookId(t.sel_book)]:null,{clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[12,17].includes(t.learning_dialog_type)&&!t.isProcessResult?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:t._e():[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]],2)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"35em","max-width":"450px",transition:!1,persistent:""},model:{value:t.s_trial_guide_dialog,callback:function(e){t.s_trial_guide_dialog=e},expression:"s_trial_guide_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[i("v-row",[i("v-col",{staticClass:"title text-center px-0 pb-0 pt-2",attrs:{cols:"12"}},[i("h3",{staticClass:"success--text pb-3 mb-2",staticStyle:{"border-bottom":"1px dashed #d8d8d8","font-size":"1.2rem","font-weight":"800 !important"}},[t._v("\n "+t._s(t.s_trial_title)+"\n ")])]),i("v-col",{staticClass:"text-center grey--text",staticStyle:{"font-size":"1.2rem","line-height":"1.4","padding-top":"2rem","padding-bottom":"2rem"},attrs:{cols:"12"},domProps:{innerHTML:t._s(t.s_trial_html)}})],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t pa-0"},[i("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-btn",{staticStyle:{height:"calc(2.5 * (1rem + 2px) + 24px) !important","background-color":"#1bd05b","border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.s_trial_guide_dialog=!1}}},[i("span",{staticClass:"title white--text"},[t._v("확인")])])],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("alert_dialog")}},model:{value:t.alert_dialog,callback:function(e){t.alert_dialog=e},expression:"alert_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},["adm_null"==t.alert_type?[t._v("다른 학원의 수업자료를 무상 공유해드립니다."),i("br"),t._v("배정된 담당자를\n 통해 문의하세요!")]:[t._v("해당 교재는 비활성화 되어있습니다."),i("br"),t._v("담당 선생님께\n 문의하세요!")]],2)],1)],1)],2)},bh=[],vh=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("img",{class:t.imgClass,attrs:{src:t.currentSrc,crossorigin:t.crossorigin,loading:"lazy",decoding:"async",onerror:"this.style.opacity=0",onload:"this.style.opacity=1"}})},fh=[],wh={name:"CachedImg",props:{src:{type:String,required:!0},alt:{type:String,default:""},imgClass:{type:[String,Object,Array],default:""},cacheName:{type:String,default:"ebook-covers"},crossorigin:{type:String,default:"anonymous"}},data(){return{currentSrc:"",objectUrl:null}},watch:{src:{immediate:!0,handler(t){this.load(t)}}},beforeDestroy(){this.objectUrl&&URL.revokeObjectURL(this.objectUrl)},methods:{async load(t){if(t)try{if(!("caches"in window))return void(this.currentSrc=t);const e=await caches.open(this.cacheName);let s=await e.match(t);if(s&&s.ok){const t=await s.clone().blob();return this.objectUrl&&URL.revokeObjectURL(this.objectUrl),this.objectUrl=URL.createObjectURL(t),void(this.currentSrc=this.objectUrl)}if(s=await fetch(t,{credentials:"omit",mode:"cors"}),s&&s.ok){await e.put(t,s.clone());const i=await s.clone().blob();this.objectUrl&&URL.revokeObjectURL(this.objectUrl),this.objectUrl=URL.createObjectURL(i),this.currentSrc=this.objectUrl}else this.currentSrc=t}catch(e){this.currentSrc=t}else this.currentSrc=this.placeholder}}},yh=wh,xh=Object(p["a"])(yh,vh,fh,!1,null,null,null),kh=xh.exports;const Ch=999;var $h={name:"StoryBookTable",mixins:[mh],components:{CachedImg:kh},data(){return{EBOOK_CDN:g["p"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"],PRODUCT_FREE:g["P"],mdiChevronRight:Lt["v"],story_books:[],story_search_books:null,highlight_book:null,sel_book:null,item_length:Object.freeze({4:0}),items_per_page:Ch,keynum:0,tab:4,learning_dialog:!1,learning_dialog_type:0,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",is_mobile:this.$store.state.is_mobile,s_trial_guide_dialog:!1,s_trial_title:"심화 스토리북",s_trial_html:"",free_limit_is_show:!1,free_limit_checking:!1,isActive:!1,endInitBook:!1,select_level:null,alert_type:!1,alert_dialog:!1,searchedLevelMap:new Map}},props:["data","selectedTab"],created(){},mounted(){this.select_level=this.data.select_level,this.data.study_progress="",this.data.coverimg_url=null,this.$store.commit("setBookDetails",{book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.data.schedule_load&&this.initBook();const t=this.story_books.sort((t,e)=>{if(t.unit_names&&e.unit_names){let[s,i]=t.unit_names.split("-").map(Number),[o,a]=e.unit_names.split("-").map(Number);return s!==o?s-o:i-a}});this.story_books=t},watch:{"data.select_level"(t){this.select_level=t,this.data.search_keyword="",this.story_search_books=null,this.searchedLevelMap.has(t)||this.initBook()},"data.schedule_load"(t){t&&this.initBook()},"data.final_keyword"(t){t||(this.story_search_books=null)},selectedTab(t){this.searchedLevelMap=new Map,t&&this.initBook()}},computed:{filteredStoryBooks(){return this.story_search_books?this.story_search_books:this.story_books&&0!==this.story_books.length?this.story_books.filter(t=>+t.level===+this.select_level&&t.unit):[]},levelChipColor(){return t=>{const e={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"};return e[t]}},tableSearch(){const t=this.data.select_level||"all";let e=`${this.tab}-${t}`;return this.data.final_keyword&&""!=this.data.final_keyword.trim()&&(e+="-"+this.data.final_keyword),e},cardHighlight(){return t=>{let e="";return this.highlight_book&&(e="F"===this.$store.state.product_type&&this.$store.state.uclass==g["kb"]?t.books_id===this.highlight_book.books_id?"highlight":"":t.schedule_id===this.highlight_book.schedule_id?"highlight":""),e}},setBtnColor(){return(t,e)=>{const s=t.unit[`story_${e}_status`];return 3===s?"grey lighten-2":"v"===e?"warning":"m"===e?"success":"a"===e?"info2":void 0}},setHover(){return(t,e)=>{this.is_mobile||this.$nextTick(()=>{const s=document.getElementById("storybook-wrap-"+e.id),i=document.getElementById(`storybook-${t}-${e.id}-fake`);if(s&&i){const o=s.offsetWidth,a=i.offsetWidth;this.setHoverEl(t,e.id,a>o)}else;})}},getItemColIdx(){return t=>{const e=document.getElementsByClassName("item-col");if(0!==e.length){for(let s=0,i=e.length;s+t.level===+this.data.select_level),t.length},duplicateBookIds(){const t={},e=[];this.story_books.forEach(e=>{t[e.id]=(t[e.id]||0)+1});for(const s in t)t[s]>=2&&e.push(parseInt(s));return e}},methods:{async initBook(){const t=(new Date).getTime();this.data.loading_value=!0,this.data.books&&this.data.books.length>0&&(this.story_books=this.data.books.filter(t=>1==this.selectedTab?1===t.category:2===t.category),this.story_books&&this.story_books.length>0?(await this.setBooksUnit(),this.keynum=(new Date).getTime()):this.story_books.length,this.story_books=this.data.books.filter(t=>1==this.selectedTab?1===t.category:2===t.category),this.endInitBook=!0);const e=(new Date).getTime(),s=e-t;s<700&&await new Promise(t=>setTimeout(t,700)),this.data.loading_value=!1},setBooksUnit(){return new Promise((t,e)=>{this.searchedLevelMap.set(this.select_level,!0);const s=this.story_books.filter(t=>t.level==this.select_level);0===s.length&&t(),this.getStoryBookUnits(s,this.select_level).then(()=>{t()}).catch(t=>{console.error(t),e(t)})})},storyConfirm(t,e=null,s){if(this.checkIsFree(e))return!1;if(this.data.loading_unit)return!1;this.sel_book=e;const i={[g["ab"]]:t.story_v_status,[g["Z"]]:t.story_m_status,[g["W"]]:t.story_a_status};let o=null;switch(i[s]){case 1:case 2:this.exitSound(),o=10;break;case 3:this.clickSound(),o=9;break;default:this.clickSound(),o=8;break}this.setDialogVMA(s),this.setDialogText(e,t,s,o,this.setLearningDialog)},filterTabs(t,e,s){this.$store.state.product_type;let i=e.split("-"),o=(i[0],i[1]),a=!1,n=i.length>2?this.data.final_keyword:null;return("all"==o||"all"!=o&&s.level==o)&&(a=!0),n&&a&&this.story_search_books&&(a=!0),a},checkFreeLimit(){if(!this.free_limit_checking){this.free_limit_checking=!0;let t=0;const e=this.story_books;for(let s=0,i=e.length;s무료 체험이 종료되었습니다.
\n
\n 서비스 정식가입 후, 무료 이용 가능합니다.

\n 배정 담당자 (010-5768-4009)\n
',this.s_trial_guide_dialog=!0,this.free_limit_is_show=!0),setTimeout(()=>{this.free_limit_checking=!1},500)}},checkIsFree(t){let e=!1;const s=+t.unit.name.split("-")[1];return"F"!==this.$store.state.product_type||this.$store.state.uclass!=g["kb"]||[1,2,3].includes(s)?"F"!==this.$store.state.product_type&&0===+this.$store.state.promotion_check&&1!==s&&(this.data.is_grammar=!1,this.data.is_ng_book=!1,this.data.is_story=!0,this.data.prevent_free_dialog=!0,e=!0):(this.data.is_grammar=!1,this.data.is_ng_book=!1,this.data.is_story=!0,this.data.prevent_free_dialog=!0,e=!0),e},cardClick(t){if(t.disable)return this.alert_dialog=!0,void(window.dialog_timeout=setTimeout(()=>{this.alert_dialog=!1},3e3));this.highlight_book=t,this.data.study_progress=([.9999,1].includes(+t.complete_unit_cnt)?1:0)+" / 1단원",this.data.coverimg_url=`${g["p"]}/ngcover/${t.cover_path}`,this.$store.commit("setBookDetails",{book_id:t.books_id,publisher:t.publisher,publishdate:"2023년",unit_cnt:1})},setHoverEl(t,e,s){const i=document.getElementById(`storybook-${t}-${e}`),o=document.getElementById("storybook-wrap-"+e);s?(i.classList.add("hover-true"),i.style.setProperty("--wrap-top",o.offsetTop/2+"px")):i.classList.contains("hover-true")&&(i.classList.remove("hover-true"),i.style.setProperty("--wrap-top",""))},storyBookClick(t){t.disable?this.disableDialog():(this.course_mode=1,this.course_book=t,this.search_keyword="",this.final_keyword="",this.duplicateBookIds.includes(t.id)?this.isUniqueBook=!1:this.$nextTick(()=>{const t=document.querySelector("tr");this.isUniqueBook=!0,t&&t.click()}))},closeDialog(t){this[t]=!1,clearTimeout(window.dialog_timeout)}},beforeDestroy(){this.data.select_disabled=!1}},Sh=$h,Th=(s("4772"),s("c325"),Object(p["a"])(Sh,gh,bh,!1,null,null,null)),Ah=Th.exports;y()(Th,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VChip:Me["a"],VCol:rt["a"],VDialog:ct["a"],VLazy:yt["a"],VRow:ht["a"]});var Ih=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("td",{staticClass:"px-0",attrs:{colspan:t.headers.length+1}},t._l(t.data[t.getScheduleBookId(t.item)],(function(e,i){return s("tr",{key:"tr-key-"+i,staticClass:"width-100 flex-tr d-flex",class:[["course","listening"].includes(t.menu)||["school"].includes(t.menu)&&t.$store.state.uclass>t.UCLASS_ETC?"is-grammar-"+(43==t.item.booktype)+"-"+t.$store.state.product_type+"-"+t.$store.state.uclass+" is-ng-book-1-"+t.$store.state.product_type+"-"+t.$store.state.uclass:""],attrs:{id:"u-"+t.item.schedule_id+"-"+t.item.books_id+"-"+t.item.dist_seq+"-"+e.seq}},[s("td",{key:"td-1-"+i,staticClass:"px-0 justify-center text-center"}),s("td",{staticClass:"before-divider px-0 justify-center text-center min-h-40px"},[s("v-icon",[t._v(t._s(t.mdiMenuRight))])],1),s("td",{staticClass:"pa-0 min-h-40px"},[s("v-row",{key:"unitlist-"+ +t.item.schedule_id+"-"+t.item.id+"-"+i,staticClass:"unit-row min-h-40px",attrs:{dense:"","no-gutters":""}},[1==t.item.schedule_type_v&&1==t.item.schedule_type||t.item.mockexam&&(31!==+t.item.booktype||"listeningbook"!=t.$route.name)?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:"10"}},[s("span",{staticClass:"unit-name-text",domProps:{innerHTML:t._s(e.search_name||e.name)},on:{click:function(e){return t.setToast("해당 차시의 학습 버튼을 선택해주세요.")}}}),t._v("\n   \n "),s("div",{staticClass:"d-flex before-divider pl-2"},[[t.STUDY,t.MAJOR].includes(e.mode)?s("v-btn",{staticClass:"border-ede thin-l px-xl-3 px-lg-2 mock-exam-btn d-inline-flex",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",large:"",ripple:!1,color:"#FFCC00",rounded:""},on:{click:function(s){return t.shadowreadingConfirm(e,t.item)}}},[s("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:"",color:"white"}},[t._v(t._s(t.mdiPlay))]),s("b",{staticClass:"ml-n1 white--text",domProps:{textContent:t._s(t.setBtnText(t.item))}})],1):t._e()],1)]),s("v-col",{attrs:{cols:"2"}},[s("v-lazy",{staticStyle:{height:"7vh"},attrs:{"min-height":"40px",transition:""}},[s("div",{staticClass:"text-center pos-rel height-100 d-flex align-center pl-4",staticStyle:{"margin-left":"-24%","margin-right":"24%"}},[t.MOCK_EXAM===e.mode?[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.mock_status,color:3==e.mock_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.MOCK_EXAM))},on:{click:function(s){return t.openMockExamConfirm(t.item.books_id,t.item.bookname,e,t.item)}}})]:t._e(),t.STUDY===e.mode?[[1,2].includes(e.study_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.study_tot_question_cnt?Math.round(+e.study_done_question_cnt/+e.study_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.studyConfirm(e,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v("\n "+t._s(1==e.study_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.study_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.study_status,color:3==e.study_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.STUDY))},on:{click:function(s){return t.studyConfirm(e,t.item)}}})]]:t.VOCA===e.mode?[[1,2].includes(e.voca_status)?[s("div",{staticClass:"guage-btn voca",style:{"--guage":(0!=+e.voca_tot_question_cnt?Math.round(+e.voca_done_question_cnt/+e.voca_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.VOCA,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.voca_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.voca_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.voca_status,color:3==e.voca_status?"grey lighten-2":"warning"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.VOCA))},on:{click:function(s){return t.vmaConfirm(e,t.VOCA,t.item)}}})]]:t.TEST===e.mode?[[1,2].includes(e.test_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.test_tot_question_cnt?Math.round(+e.test_done_question_cnt/+e.test_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.testConfirm(e,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.test_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.test_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.test_status,color:e.test_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.TEST))},on:{click:function(s){return t.testConfirm(e,t.item)}}})]]:t.MAJOR===e.mode?[[1,2].includes(e.major_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.major_tot_question_cnt?Math.round(+e.major_done_question_cnt/+e.major_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.MAJOR,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.major_status,color:3==e.major_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.MAJOR))},on:{click:function(s){return t.vmaConfirm(e,t.MAJOR,t.item)}}})]]:t.ADVANCED===e.mode?[t.item.booktype_1===t.BOOK_BANK?[[1,2].includes(e.advanced_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.advanced_tot_question_cnt?Math.round(+e.advanced_done_question_cnt/+e.advanced_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.ADVANCED,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))])])]:[t.validateDisableUnits(t.item.books_id,e.origin_seq,t.item)?s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.advanced_status,color:e.advanced_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.ADVANCED))},on:{click:function(s){return t.vmaConfirm(e,t.ADVANCED,t.item)}}}):s("v-btn",{staticClass:"isAlertAdvacnedBtn",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,color:"info2"},on:{click:t.alertAdvanced}},[s("b",{staticClass:"subtitle-1 font-weight-bold",staticStyle:{color:"#fff"},domProps:{textContent:t._s(t.is_mobile?"심화":"심화학습")}})])]]:[[1,2].includes(e.advanced_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.advanced_tot_question_cnt?Math.round(+e.advanced_done_question_cnt/+e.advanced_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.ADVANCED,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.advanced_status,color:e.advanced_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.ADVANCED))},on:{click:function(s){return t.vmaConfirm(e,t.ADVANCED,t.item)}}})]]]:e.mode.length>1&&e.mode.indexOf(t.MOCK_EXAM)>-1?[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,color:e.mock_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.MOCK_EXAM))},on:{click:function(s){return t.openMockExamConfirm(t.item.books_id,t.item.bookname,e)}}})]:t._e()],2)])],1)]:[1==t.item.schedule_type?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:"8"}},[s("span",{staticClass:"unit-name-text",domProps:{innerHTML:t._s(e.search_name||e.name)},on:{click:function(e){return t.setToast("해당 차시의 학습 버튼을 선택해주세요.")}}}),t._v("\n   \n "),s("div",{staticClass:"d-flex before-divider pl-2"},[t.item.booktype_1===t.BOOK_NORMAL?s("v-btn",{staticClass:"border-ede thin-l px-xl-3 px-lg-2 mock-exam-btn d-inline-flex",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",large:"",ripple:!1,color:"#FFCC00",rounded:""},on:{click:function(s){return t.shadowreadingConfirm(e,t.item)}}},[s("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:"",color:"white"}},[t._v(t._s(t.mdiPlay))]),s("b",{staticClass:"ml-n1 white--text",domProps:{textContent:t._s(t.setBtnText(t.item))}})],1):t._e()],1)]),s("v-col",{attrs:{cols:"4"}},[s("v-lazy",{staticStyle:{height:"7vh"},attrs:{"min-height":"40px",transition:""}},[t.item.booktype_1===t.BOOK_VOCA?s("v-row",{staticClass:"px-2 height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"6"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.major_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.major_tot_question_cnt?Math.round(+e.major_done_question_cnt/+e.major_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_MAJOR,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.major_status,color:3==e.major_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.VOCA_MAJOR))},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_MAJOR,t.item)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",staticStyle:{border:"unset"},attrs:{cols:"6"}},[s("div",{staticClass:"el-vertical-center ml-1 mr-2 left-0 right-0"},[[1,2].includes(e.advanced_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.advanced_tot_question_cnt?Math.round(+e.advanced_done_question_cnt/+e.advanced_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_ADVANCED,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.advanced_status,color:e.advanced_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.VOCA_ADVANCED))},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_ADVANCED,t.item)}}})]],2)])],1):s("v-row",{staticClass:"px-2 height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"6"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.study_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.study_tot_question_cnt?Math.round(+e.study_done_question_cnt/+e.study_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.studyConfirm(e,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.study_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.study_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.study_status,color:3==e.study_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.STUDY))},on:{click:function(s){return t.studyConfirm(e,t.item)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",staticStyle:{border:"unset"},attrs:{cols:"6"}},[s("div",{staticClass:"el-vertical-center ml-1 mr-2 left-0 right-0"},[[1,2].includes(e.test_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.test_tot_question_cnt?Math.round(+e.test_done_question_cnt/+e.test_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.testConfirm(e,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.test_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.test_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.test_status,color:e.test_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.TEST))},on:{click:function(s){return t.testConfirm(e,t.item)}}})]],2)])],1)],1)],1)]:[t.BOOK_NORMAL,t.BOOK_LISTENING].includes(t.item.booktype_1)?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:e.words_cnt>0?6:8}},[s("span",{staticClass:"unit-name-text",domProps:{innerHTML:t._s(e.search_name||e.name)},on:{click:function(e){return t.setToast("해당 차시의 학습 버튼을 선택해주세요.")}}}),t._v("\n   \n "),s("div",{staticClass:"d-flex before-divider pl-2"},[s("v-btn",{staticClass:"border-ede thin-l px-xl-3 px-lg-2 mock-exam-btn d-inline-flex",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",large:"",ripple:!1,color:"#FFCC00",rounded:""},on:{click:function(s){return t.shadowreadingConfirm(e,t.item)}}},[s("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:"",color:"white"}},[t._v(t._s(t.mdiPlay))]),s("b",{staticClass:"ml-n1 white--text",domProps:{textContent:t._s(t.setBtnText(t.item))}})],1)],1)]),s("v-col",{attrs:{cols:e.words_cnt>0?6:4}},[s("v-lazy",{staticStyle:{height:"7vh"},attrs:{"min-height":"40px",transition:""}},[s("v-row",{staticClass:"px-2 height-100",attrs:{dense:"","no-gutters":""}},[e.words_cnt>0?s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.voca_status)?[s("div",{staticClass:"guage-btn voca",style:{"--guage":(0!=+e.voca_tot_question_cnt?Math.round(+e.voca_done_question_cnt/+e.voca_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.VOCA,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.voca_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.voca_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.voca_status,color:3==e.voca_status?"grey lighten-2":"warning"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.VOCA))},on:{click:function(s){return t.vmaConfirm(e,t.VOCA,t.item)}}})]],2)]):t._e(),s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:e.words_cnt>0?4:6}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.study_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.study_tot_question_cnt?Math.round(+e.study_done_question_cnt/+e.study_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.studyConfirm(e,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.study_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.study_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.study_status,color:3==e.study_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.STUDY))},on:{click:function(s){return t.studyConfirm(e,t.item)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",staticStyle:{border:"unset"},attrs:{cols:e.words_cnt>0?4:6}},[t.BOOK_NORMAL===t.item.booktype_1||31===+t.item.booktype&&"listeningbook"==t.$route.name?s("div",{staticClass:"el-vertical-center ml-1 mr-2 left-0 right-0"},[[1,2].includes(e.test_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.test_tot_question_cnt?Math.round(+e.test_done_question_cnt/+e.test_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.testConfirm(e,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.test_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.test_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.test_status,color:e.test_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.TEST))},on:{click:function(s){return t.testConfirm(e,t.item)}}})]],2):t.BOOK_LISTENING===t.item.booktype_1?s("div",{staticClass:"el-vertical-center ml-1 mr-2 left-0 right-0"},[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,color:e.mock_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.MOCK_EXAM))},on:{click:function(s){return t.openMockExamConfirm(t.item.books_id,t.item.bookname,e)}}})],1):t._e()])],1)],1)],1)]:t.item.booktype_1===t.BOOK_BANK?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:"6"}},[s("span",{staticClass:"unit-name-text",domProps:{innerHTML:t._s(e.search_name||e.name)},on:{click:function(e){return t.setToast("해당 차시의 학습 버튼을 선택해주세요.")}}}),t._v("\n   \n "),s("div",{staticClass:"d-flex before-divider pl-2"},[s("v-btn",{staticClass:"border-ede thin-l px-xl-3 px-lg-2 mock-exam-btn d-inline-flex",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",large:"",ripple:!1,color:"#FFCC00",rounded:""},on:{click:function(s){return t.shadowreadingConfirm(e,t.item)}}},[s("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:"",color:"white"}},[t._v(t._s(t.mdiPlay))]),s("b",{staticClass:"ml-n1 white--text",domProps:{textContent:t._s(t.setBtnText(t.item))}})],1)],1)]),s("v-col",{attrs:{cols:"6"}},[s("v-lazy",{staticStyle:{height:"7vh"},attrs:{"min-height":"40px",transition:""}},[s("v-row",{staticClass:"px-2 height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.voca_status)?[s("div",{staticClass:"guage-btn voca",style:{"--guage":(0!=+e.voca_tot_question_cnt?Math.round(+e.voca_done_question_cnt/+e.voca_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.VOCA,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.voca_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.voca_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.voca_status,color:3==e.voca_status?"grey lighten-2":"warning"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.VOCA))},on:{click:function(s){return t.vmaConfirm(e,t.VOCA,t.item)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.major_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.major_tot_question_cnt?Math.round(+e.major_done_question_cnt/+e.major_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.MAJOR,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.major_status,color:3==e.major_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.MAJOR))},on:{click:function(s){return t.vmaConfirm(e,t.MAJOR,t.item)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",staticStyle:{border:"unset"},attrs:{cols:"4"}},[s("div",{staticClass:"el-vertical-center ml-1 mr-2 left-0 right-0"},[[1,2].includes(e.advanced_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.advanced_tot_question_cnt?Math.round(+e.advanced_done_question_cnt/+e.advanced_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.ADVANCED,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))])])]:[t.validateDisableUnits(t.item.books_id,e.seq,t.item)?s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.advanced_status,color:e.advanced_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.ADVANCED))},on:{click:function(s){return t.vmaConfirm(e,t.ADVANCED,t.item)}}}):s("v-btn",{staticClass:"isAlertAdvacnedBtn",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,color:"info2"},on:{click:t.alertAdvanced}},[s("b",{staticClass:"subtitle-1 font-weight-bold",staticStyle:{color:"#fff"},domProps:{textContent:t._s(t.is_mobile?"심화":"심화학습")}})])]],2)])],1)],1)],1)]:t.item.booktype_1===t.BOOK_VOCA?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:"8"}},[s("span",{staticClass:"unit-name-text",domProps:{innerHTML:t._s(e.search_name||e.name)},on:{click:function(e){return t.setToast("해당 차시의 학습 버튼을 선택해주세요.")}}})]),s("v-col",{attrs:{cols:"4"}},[s("v-lazy",{staticStyle:{height:"7vh"},attrs:{"min-height":"40px",transition:""}},[s("v-row",{staticClass:"px-2 height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"6"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.major_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.major_tot_question_cnt?Math.round(+e.major_done_question_cnt/+e.major_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_MAJOR,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.major_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.major_status,color:3==e.major_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.VOCA_MAJOR))},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_MAJOR,t.item)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",staticStyle:{border:"unset"},attrs:{cols:"6"}},[s("div",{staticClass:"el-vertical-center ml-1 mr-2 left-0 right-0"},[[1,2].includes(e.advanced_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.advanced_tot_question_cnt?Math.round(+e.advanced_done_question_cnt/+e.advanced_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_ADVANCED,t.item)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.advanced_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.advanced_status,color:e.advanced_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.VOCA_ADVANCED))},on:{click:function(s){return t.vmaConfirm(e,t.VOCA_ADVANCED,t.item)}}})]],2)])],1)],1)],1)]:t.item.booktype_1===t.BOOK_GRAMMAR?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:"6"}},[s("span",{staticClass:"unit-name-text",domProps:{innerHTML:t._s(e.search_name||e.color_name||e.name)},on:{click:function(e){return t.setToast("해당 차시의 학습 버튼을 선택해주세요.")}}})]),s("v-col",{attrs:{cols:"6"}},[s("v-lazy",{staticStyle:{height:"7vh"},attrs:{"min-height":"40px",transition:""}},[s("v-row",{staticClass:"px-2 height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.theory_status)?[s("div",{staticClass:"guage-btn voca",style:{"--guage":(0!=+e.grammar_theory_tot_question_cnt?Math.round(+e.theory_done_question_cnt/+e.grammar_theory_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.grammarConfirm(e,t.GRAMMAR_THEORY)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.theory_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.theory_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.theory_status,color:3==e.theory_status?"grey lighten-2":"warning"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.GRAMMAR_THEORY))},on:{click:function(s){return t.grammarConfirm(e,t.GRAMMAR_THEORY)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",attrs:{cols:"4"}},[s("div",{staticClass:"el-vertical-center ml-2 mr-1 left-0 right-0"},[[1,2].includes(e.basics_status)?[s("div",{staticClass:"guage-btn major",style:{"--guage":(0!=+e.grammar_basics_tot_question_cnt?Math.round(+e.basics_done_question_cnt/+e.grammar_basics_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.grammarConfirm(e,t.GRAMMAR_BASICS)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.basics_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.basics_status?"학습중":"재학습중"))])])]:[s("v-btn",{staticClass:"white--text",class:{null_m_mod:!e.m_mod},attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.basics_status,color:3==e.basics_status?"grey lighten-2":"success"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.GRAMMAR_BASICS))},on:{click:function(s){return t.grammarConfirm(e,t.GRAMMAR_BASICS)}}})]],2)]),s("v-col",{staticClass:"text-center pos-rel",staticStyle:{border:"unset"},attrs:{cols:"4"}},[s("div",{staticClass:"el-vertical-center ml-1 mr-2 left-0 right-0"},[[1,2].includes(e.deep_status)?[s("div",{staticClass:"guage-btn test",style:{"--guage":(0!=+e.grammar_deep_tot_question_cnt?Math.round(+e.deep_done_question_cnt/+e.grammar_deep_tot_question_cnt*100):0)+"%"},on:{click:function(s){return t.grammarConfirm(e,t.GRAMMAR_DEEP)}}},[s("div",{staticClass:"fill"}),s("span",{staticClass:"text base"},[t._v(t._s(1==e.deep_status?"학습중":"재학습중"))]),s("span",{staticClass:"text overlay"},[t._v(t._s(1==e.deep_status?"학습중":"재학습중"))])])]:[t.item.books_id>87&&t.item.books_id<101&&"m3"==t.item.grade&&e.seq>7&&![90,91,93,94,95,100].includes(+t.item.books_id)||[100].includes(+t.item.books_id)&&"m3"==t.item.grade&&e.seq>8?s("v-btn",{attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,color:"grey lighten-2"},on:{click:t.alertAdvanced}},[s("b",{staticClass:"subtitle-1 font-weight-bold",staticStyle:{color:"#999da0"},domProps:{textContent:t._s(t.is_mobile?"심화":"심화학습")}})]):s("v-btn",{staticClass:"white--text",class:{null_a_mod:!e.a_mod},attrs:{rounded:"",block:"",elevation:"0",large:"",ripple:!1,outlined:2==e.deep_status,color:e.deep_status>2?"grey lighten-2":"info2"},domProps:{innerHTML:t._s(t.setListBtnText(t.item,e,t.GRAMMAR_DEEP))},on:{click:function(s){return t.grammarConfirm(e,t.GRAMMAR_DEEP)}}})]],2)])],1)],1)],1)]:t._e()]],2)],1)])})),0)},Dh=[],Rh={name:"UnitTemplate",props:{data:Object,menu:String,item:Object,headers:Array,is_mobile:Boolean,getScheduleBookId:Function,setListBtnText:Function,setBtnText:Function,grammarConfirm:Function,vmaConfirm:Function,shadowreadingConfirm:Function,openMockExamConfirm:Function,studyConfirm:Function,testConfirm:Function,alertAdvanced:Function},data(){return{mdiMenuRight:Lt["N"],mdiPlayCircleOutline:Lt["V"],mdiPlay:Lt["T"],ADVANCED:g["a"],basicGrammarBooks:g["zb"],BOOK_BANK:g["e"],BOOK_GRAMMAR:g["f"],BOOK_LISTENING:g["g"],BOOK_NORMAL:g["h"],BOOK_VOCA:g["j"],BOOK_STORY:g["i"],CDN:g["k"],FLASHCARD:g["r"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],GRAMMAR_THEORY:g["u"],HOST:g["w"],MAJOR:g["B"],middleGrammarBooks:g["Ab"],MOCK_EXAM:g["G"],PRODUCT_FREE:g["P"],RESULT_SUFFIX:g["R"],SHADOW_READING:g["S"],STUDY:g["bb"],TAG_HOT:g["eb"],TAG_NEW:g["fb"],TAG_VOCA:g["gb"],TEST:g["hb"],UCLASS_ETC:g["jb"],VOCA:g["pb"],VOCA_ADVANCED:g["qb"],VOCA_MAJOR:g["sb"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"]}},methods:{validateDisableUnits(t,e,s){if(4==s.category){if("undefined"!=typeof this.$store.state.disable_units[s.parent_books_id])return!this.$store.state.disable_units[s.parent_books_id].includes(e)}else if("undefined"!=typeof this.$store.state.disable_units[t])return!this.$store.state.disable_units[t].includes(e);return!0},setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},adjustSpans(){"school"===this.menu&&this.$nextTick(()=>{const t=document.getElementsByClassName("unit-name-text");for(let e=0;e1){const t=Math.max(...a);console.log("Max width : ",t),s.style.width=t+"px"}}})}}},Ph=Rh,Mh=(s("0c11"),Object(p["a"])(Ph,Ih,Dh,!1,null,null,null)),Eh=Mh.exports;y()(Mh,{VBtn:ot["a"],VCol:rt["a"],VIcon:jt["a"],VLazy:yt["a"],VRow:ht["a"]});var Bh=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"before-divider d-flex align-center pl-2",staticStyle:{display:"inline-flex"}},[s("button",{staticClass:"refresh-btn",on:{click:function(e){return t.$emit("click")}}},[s("svg",{staticClass:"refresh-icon",attrs:{viewBox:"0 0 24 24"}},[s("path",{attrs:{d:t.mdiRefresh,fill:"#888"}})])])])},Nh=[],qh={name:"RefreshBtn",data(){return{mdiRefresh:Lt["X"]}}},Lh=qh,zh=(s("c0c8"),Object(p["a"])(Lh,Bh,Nh,!1,null,"701750c6",null)),Oh=zh.exports;window.is_restudy=0,window.dialog_timeout=null,window.render_chk_interval=null,window.load_timeout=null,window.timeout1=null,window.scroll_container=null;const jh=10;var Vh={name:"book-course",mixins:[mh],components:{StoryBookTable:Ah,UnitTemplate:Eh,RefreshBtn:Oh},data(){return{STUDY:g["bb"],TEST:g["hb"],FLASHCARD:g["r"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],MOCK_EXAM:g["G"],GRAMMAR_THEORY:g["u"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"],CDN:g["k"],BOOK_NORMAL:g["h"],BOOK_BANK:g["e"],BOOK_VOCA:g["j"],BOOK_STORY:g["i"],BOOK_LISTENING:g["g"],BOOK_GRAMMAR:g["f"],TAG_NEW:g["fb"],TAG_VOCA:g["gb"],TAG_HOT:g["eb"],PRODUCT_FREE:g["P"],UCLASS_ETC:g["jb"],tab:1,tabs:{1:"핵심 영상강의",2:"필수 주요구문",3:"기본 영어단어"},tab_class:1,last_tab:null,last_pick_tab:1,search_key:0,search_keyword:"",final_keyword:"",select_grade:"",select_level:"1",sortBy:null,level_page:1,level_exclusive:1,level_items:[{text:"Lv. 1",value:"1"},{text:"Lv. 2",value:"2"},{text:"Lv. 3",value:"3"},{text:"Lv. 4",value:"4"}],loading:!1,loading_unit:!1,mock_load:!1,sel_unit:null,headers:Object.freeze([{text:"bookmark",value:"bookmark",align:"center before-divider",sortable:!1,width:"0"},{text:"info",value:"info",align:"left px-0 before-divider",sortable:!1,width:"100%"}]),item_key:"table_key",expanded:[],books:[],books_tmp:[],course_mode:0,course_book:null,course_categories:{1:["전체","초등","중등"],2:["전체","초등","중등","고등"],3:["전체","초등","중등","고등"],10:["전체","초등3","초등4","초등5","초등6"]},course_tags:{1:["영상강의","어휘","문법문제"],2:["어휘","본문","심화"],3:["어휘","테스트"],10:["MP3","어휘","스크립트"]},course_books:[],course_search_books:null,current_category_idx:0,mockexams:{},mockexams_block:{},sel_mockexam:null,search:"",item_length:Object.freeze({1:0,2:0,3:0,4:0,5:0,6:0}),page:1,items_per_page:jh,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:g["r"],restudy_cnt_ment:"무제한 재학습",restudy_false_dialog:!1,mockexam_dialog:!1,select_disabled:!1,scroll_loading:!1,query_tab:null,query_startdate:null,query_sid:null,query_bid:null,query_stype:null,query_uid:null,query_useq:null,search_book_order:!1,unwatch_once:null,new_sorting:!1,prevent_free_dialog:!1,prevent_advanced_dialog:!1,null_vma_dialog:!1,freepass:!1,is_mobile:this.$store.state.is_mobile,is_openbook:0,isUniqueBook:!1,isEmptyCourseBook:!1,init_scroll:!1,mdi_chevron_left:Lt["t"],mdi_chevron_right:Lt["v"],mdi_chevron_left_circle:Lt["u"],mdi_chevron_right_circle:Lt["w"],mdi_menu_down:Lt["M"],mdi_menu_right:Lt["N"],mdi_heart:Lt["H"],mdi_heart_outline:Lt["I"],mdi_arrow_left:Lt["f"],mdi_volume_high:Lt["bb"],mdi_sync:Lt["Z"],mdi_play_circle_outline:Lt["V"],mdi_information_outline:Lt["K"],mdi_magnify:Lt["L"],mdi_close_circle:Lt["C"],alert_type:!1,t2_top:"-1000px",t2_left:"-1000px",t2_display:"none",t3_top:"-1000px",t3_left:"-1000px",t3_display:"none",t4_top:"-1000px",t4_left:"-1000px",t4_display:"none",t5_top:"-1000px",t5_left:"-1000px",t5_display:"none",t6_top:"-1000px",t6_left:"-1000px",t6_display:"none",t11_display:"none",is_grammar:!1,is_ng_book:!1,is_story:!1,trial_guide_dialog:!1,trial_title:"",trial_html:"",opened_item:null,schedule_load:!1,category_books:[]}},watch:{schedule_load(t){t&&(1==this.tab?this.category_books=this.course_books.filter(t=>1==t.category&&43==t.booktype):2==this.tab?this.category_books=this.course_books.filter(t=>2==t.category&&0==t.booktype):3==this.tab&&(this.category_books=this.course_books.filter(t=>3==t.category&&22==t.booktype)))},course_mode(t,e){1===e&&0===t&&(this.search_keyword="",this.final_keyword="")},current_category_idx(t){const e=[];for(let s=0;s{const e=+t.unit.id;this.getUnits(t,e).then(t=>{}).catch(t=>{console.log(t)})},0),this.$store.commit("setIsLearned",!1)))}this.expanded&&(this.tab<7||10===this.tab)&&this.$store.state.is_learned&&(setTimeout(()=>{let t;this.sel_unit?t=+this.sel_unit.id:this.sel_book&&this.sel_book.unit&&(t=+this.sel_book.unit.id);let e=!(!this.expanded[0]||1!=this.expanded[0].schedule_type||1!=this.expanded[0].schedule_type_v);e&&(t=this.sel_unit.s_u_id),this.getUnits(this.expanded[0],t).then(t=>{if("open"==t){let t,s=this.getScheduleBookId(this.expanded[0]);if(e&&[g["h"],g["e"],g["g"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==g["e"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.major_done>0||+t.advanced_done>0);t=e.length||0}else if(this.expanded[0].booktype_1==g["g"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||(10===+this.expanded[0].category?+t.test_done:+t.mock_done)>0);t=e.length||0}else{let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||+t.test_done>0);t=e.length||0}else if(1==this.expanded[0].booktype_1){let e,i,o=0;for(e=0;e0&&(o+=.3333),+i.major_done>0&&(o+=.3333),+i.advanced_done>0&&(o+=.3333);t=o||0}else if(2==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.5),+i.advanced_done>0&&(t+=.5)}}else if(3==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.study_done>0&&(t+=.3333),10===this.tab?+i.test_done>0&&(t+=.3333):+i.mock_done>0&&(t+=.3333)}}else if(4==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.grammar_basics_done>0&&(t+=.3333),+i.grammar_deep_done>0&&(t+=.3333)}}else if(5==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.5),+i.story_m_done>0&&(t+=.5)}}else{t=0;for(let e=0;e0?(+i.voca_done>0&&(t+=.3333),+i.study_done>0&&(t+=.3333),+i.test_done>0&&(t+=.3333)):(+i.study_done>0&&(t+=.5),+i.test_done>0&&(t+=.5))}}let i=this.expanded[0].tot_unit_cnt?Number(this.expanded[0].tot_unit_cnt):0,o=i>0?Math.round(t/i*100):0,a=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),n=R(this.expanded[0]);if(n.complete_unit_cnt=String(t),n.progress=o,this.expanded.splice(0,1,Object.freeze(n)),this.books.splice(a,1,Object.freeze(n)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}}})},0),this.$store.commit("setIsLearned",!1)),this.select_disabled=!1}},getMockexamrecordId(t,e){null!==t&&0!==t&&this.mockexams[this.$store.state.mockexam.books_id]&&(this.mockexams[this.$store.state.mockexam.books_id].record_id=Number(t))},tab(t){0!==this.current_category_idx&&(this.current_category_idx=0),1==t?this.category_books=this.course_books.filter(t=>1==t.category&&43==t.booktype):2==t?this.category_books=this.course_books.filter(t=>2==t.category&&0==t.booktype):3==t&&(this.category_books=this.course_books.filter(t=>3==t.category&&22==t.booktype))}},computed:{duplicateBookIds(){const t={},e=[];this.books.forEach(e=>{(+e.category<=3||10===+e.category)&&(t[e.id]=(t[e.id]||0)+1)});for(const s in t)t[s]>=2&&e.push(parseInt(s));return e},isStorybook(){return"course"===this.menu&&4===this.tab},setCourseTabs(){let t=2.4;return t},showCourseBooks(){return t=>{let e="";t.grade.includes("e")?(e="초등",10===this.tab&&(e+=t.grade.replace("e",""))):t.grade.includes("m")?e="중등":t.grade.includes("h")&&(e="고등");const s=+t.category==this.tab,i=0===this.current_category_idx,o=this.course_categories[this.tab][this.current_category_idx].includes(e);return s&&(i||o)}}},mounted(){1==this.tab&&(this.$nextTick(()=>{let t=document.getElementById("tab1");if(t){let e=t.getBoundingClientRect();this.t2_display="block",this.t2_top=e.top+"px",this.t2_left=(e.left+e.left+e.width)/2+"px"}}),0===Object.keys(this.$route.query).length&&this.freeTrialGuide(1))},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},searchFormattedBookName(t,e){const s=this.final_keyword,i=s.toUpperCase();function o(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let a,n,r;return"brand"===e?(a=t.split(" ")[0],a.replace(new RegExp(o(i),"g"),"$&")):"bookname"===e?(n=1===this.tab?`${t.split(" ")[1]} ${t.split(" ")[2]}`:t.split(" ").slice(1).join(" "),n.replace(new RegExp(o(i),"g"),"$&")):"grade"===e?(r=1===this.tab?`(LEVEL ${t.split(" ")[t.split(" ").length-1]})`:t.split(" ")[t.split(" ").length-1],r.replace(new RegExp(o(i),"g"),"$&")):void 0},searchKeyupCourseBook(t){if(13===t.keyCode||"Enter"===t.key){let t,e;this.final_keyword=this.search_keyword;const s=this.final_keyword;console.log("keyword",s);const i=s.toUpperCase(),o=this.course_books.filter(s=>{let o="";if(s.grade.includes("e")?o="초등":s.grade.includes("m")?o="중등":s.grade.includes("h")&&(o="고등"),s.category==this.tab&&(0===this.current_category_idx||this.course_categories[this.tab][this.current_category_idx].includes(o))){const o=s.bookname.toUpperCase(),a=o&&o.split(" ")[0];return 1===this.tab?(t=`${o.split(" ")[1]} ${o.split(" ")[2]}`,e=`(LEVEL ${o.split(" ")[o.split(" ").length-1]})`):(t=o.split(" ").slice(1).join(" "),e=o.split(" ")[o.split(" ").length-1]),a.includes(i)||t.includes(i)||e.includes(i)||!!s.unit_names&&s.unit_names.toUpperCase().includes(i)}});let a=[],n=!1;for(let r=0,l=o.length;rt.table_key==o[r].table_key),c=R(this.course_books[l]),d=c.bookname;c.search_type="";const h=d.split(" ")[0];1===this.tab?(t=`${d.split(" ")[1]} ${d.split(" ")[2]}`,e=`(LEVEL ${d.split(" ")[d.split(" ").length-1]})`):(t=d.split(" ").slice(1).join(" "),e=d.split(" ")[d.split(" ").length-1]),h.includes(i)&&(c.search_name=h),t.includes(i)&&(c.search_name=t),e.includes(i)&&(c.search_name=e),c.unit_names&&c.unit_names.includes(i)&&(c.search_name=s,c.search_type="unit",n=!0),this.course_books[l]=Object.freeze(c),a.push(c)}this.course_search_books=a,n&&this.course_search_books.length>0&&this.course_search_books.forEach(t=>{const e=[],s=this.books.filter((s,o)=>{const a=+t.id===+s.id&&s.unit_names.includes(i);return a&&e.push(o),a});s.forEach((s,i)=>{const o=R(s);o.search_name=t.search_name,s=Object.freeze(o),this.books[e[i]]=s})}),console.log("search_books:",this.course_search_books,this.course_books,this.books)}},HasMockExam(t,e,s){return!!(this.mock_load&&3==t&&e&&this.mockexams[+e])},setMockName(t){let e="";return this.is_mobile?e="평가":45==+this.mockexams[t.books_id].question_cnt?e="모의평가":20==+this.mockexams[t.books_id].question_cnt&&(e="듣기평가"),e},changeTab(t,e){if(console.log("changeTab",t,e),this.last_tab&&this.last_tab<=3&&0!==this.course_mode&&[5,6,7].includes(e)&&this.$nextTick(()=>{setTimeout(()=>{const t=document.querySelector("tr");t&&this.isUniqueBook&&t.click()},50)}),"F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];0==JSON.parse(this.$store.state.tuto)[e]&&(this.$store.dispatch("updateTutorial",e),this[e+"_display"]="none")}if(0==JSON.parse(this.$store.state.tuto)["t"+(e+1)]){let t=document.getElementById("tab"+e);if(t){let s=t.getBoundingClientRect();this[`t${e+1}_top`]=s.top+"px",this[`t${e+1}_left`]=(s.left+s.left+s.width)/2+"px"}this[`t${e+1}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}if(this.loading)return!1;[5,6].includes(e)||[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,t?(this.last_tab=this.tab,this.setTab(e),this.expanded=[]):(null==this.last_tab&&(this.last_tab=1),this.setTab(this.last_tab),this.last_tab=null,this.expanded=[])},changePublisher(t){this.current_category_idx=t,this.search_keyword="",this.final_keyword=""},selectTab(t){if(this.course_mode=0,this.course_search_books=null,this.last_pick_tab=t,"F"==this.$store.state.product_type&&this.$store.state.tuto){let e=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(e){let t=e.classList[2];0==JSON.parse(this.$store.state.tuto)[t]&&(this.$store.dispatch("updateTutorial",t),this[t+"_display"]="none")}if(0==JSON.parse(this.$store.state.tuto)["t"+(t+1)]){let e=document.getElementById("tab"+t);if(e){let s=e.getBoundingClientRect();this[`t${t+1}_top`]=s.top+"px",this[`t${t+1}_left`]=(s.left+s.left+s.width)/2+"px"}this[`t${t+1}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}this.freeTrialGuide(t),this.items_per_page=jh,[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,setTimeout(()=>{window.scroll_container&&(window.scroll_container.scrollTo({top:0,left:0}),this.expanded=[])},0),(4!==t||this.schedule_load)&&(this.setTab(t),this.currentBookInfoReset(),4!==t&&this.setScroll())},currentBookInfoReset(){this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null,this.course_book=null},courseBookClick(t){t.disable?this.disableDialog():(this.course_mode=1,this.course_book=t,this.duplicateBookIds.includes(t.id)?this.isUniqueBook=!1:this.$nextTick(()=>{const t=document.querySelector("tr");this.isUniqueBook=!0,t&&(window.cordova&&window.cordova.platformId&&"ios"===window.cordova.platformId?this.selectRow(this.course_book,{isExpanded:!1,select:()=>{}}):t.click())}))},courseDetailBackBtnClick(){this.expanded=[],this.course_mode=0,this.course_search_books=null,this.course_book=null,this.isUniqueBook=!1,this.currentBookInfoReset()},selectRow(t,e){if(window.console.log("selectRow",t,e,this.select_disabled),this.course_book&&e.isExpanded&&this.isUniqueBook)return!1;if(this.select_disabled)return;if(this.mockexams_block[t.books_id])return;e.select(!0);const s={row:document.querySelector(".v-data-table__expanded")},i=document.querySelector(".v-data-table__expanded__content");if(i)var o=i.getBoundingClientRect().height;this.alert_type=!1,t.disable?(t.id&&-1!=String(t.id).indexOf("adm_null")&&(this.alert_type="adm_null"),this.disableDialog()):this.getUnits(t).then(e=>{switch(e){case"open":let e=(t.schedule_type,"단원"),i=t.complete_unit_seqs?t.complete_unit_seqs.split(",").length:0,a=t.tot_unit_cnt?+t.tot_unit_cnt:0;0==a&&t.unit_cnt&&+t.unit_cnt>0&&(a=+t.unit_cnt),this.study_progress=a>0?`${i} / ${a}${e}`:"",this.$store.commit("setBookDetails",{schedule_id:t.schedule_id,book_id:t.id,publisher:t.publisher,publishdate:t.publishdate,unit_cnt:t.unit_cnt}),t.cover_path&&(this.coverimg_url=`${g["k"]}/1/${window.encodeURIComponent(t.cover_path)}`);let n=this.getScheduleBookId(t);this.opened_item=this.$data[n],this.final_keyword&&this.searchUnitBg(t,n);const r={row:document.querySelector(".v-data-table__expanded")};if(s.row&&r.row){const t=s.row.getBoundingClientRect().top,e=r.row.getBoundingClientRect().top;if(e>t){const t=document.querySelector(".v-data-table__wrapper");t.scrollTo(0,t.scrollTop-o)}}break;case"close":case"error":this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null;break;default:}})},disableDialog(){this.alert_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.alert_dialog=!1},3e3)},updateSingleUnit(t,e){if(!t||!e)return;let s=this.getScheduleBookId(t);this.$data[s]&&this.getUnits(t,e),this.getProcessDate(t).then(e=>{let i=Number(e.complete_unit_cnt)||0,o=Number(e.tot_unit_cnt)||0,a=o>0?Math.round(i/o*100):0,n=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),r=this.books.filter(e=>+e.books_id==+t.books_id&&+e.schedule_id==+t.schedule_id);if(r=R(r[0]),r.complete_unit_cnt=String(i),r.tot_unit_cnt=String(o),r.progress=a,this.books.splice(n,1,Object.freeze(r)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}})},updateSingleMockExamUnit(t){let e=void 0!==t.unit_seq&&Number(t.unit_seq);if(!t||!1===e||isNaN(e)&&!t.new_mockexam)return;let s=void 0;if(s=this.expanded[0]?this.expanded[0]:this.books.find(e=>e.id==t.id),void 0==s)return;let i=void 0,o=void 0;if(this.$store.state.uclass>=20){for(let[c,d]of Object.entries(this.$data))if(0==c.indexOf("b-")&&c.split("-")[2]==t.id){i=c,o=R(d);break}}else{if(i=this.getScheduleBookId(t),i){let t=i.split("-");t&&t.length>1&&(-1!==t[1].indexOf(",")&&(t[1]=this.$store.state.schedule_id),i=t.join("-"))}o=R(this.$data[i])}if(void 0==i)return;let a,n=[],r=R(s),l=this.books.map(t=>this.getScheduleBookId(t)).indexOf(i);for(let[c,d]of Object.entries(o))n[+c]=d;if(isNaN(e)&&t.new_mockexam)this.$axios.get(`${g["w"]}/v2/book/${r.books_id}/schedule/${r.schedule_id}/type/0/user/${this.$store.state.uid}?mock=1&bt=0`).then(t=>{const e=this.setNewMockExam(t.data);this.$data[i]=Object.freeze(e.data),r.complete_unit_cnt=String(e.cmp_cnt),r.progress=e.progress,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))});else{let s=n[e];if(s.mock_pk=t.mock_pk,s.mock_cnt=t.done_cnt,s.mock_done=1,s.record_id=t.record_id,s.mock_status=this.unitStatusChecker(s,g["G"]),n.splice(e,1,s),this.$data[i]=Object.freeze(n),1==r.schedule_type){let t=n.filter(t=>Number(t.voca_done)>0||Number(t.study_done)>0||Number(t.mock_done)>0);a=t.length||0}else{a=0;for(let t=0;t0&&(a+=.3333),Number(n[t].study_done)>0&&(a+=.3333),Number(n[t].mock_done)>0&&(a+=.3333)):(Number(n[t].study_done)>0&&(a+=.5),Number(n[t].mock_done)>0&&(a+=.5))}let o=r.tot_unit_cnt?Number(r.tot_unit_cnt):0,c=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=c,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))}},getProcessDate(t){return new Promise((e,s)=>{this.$axios.get(`${g["w"]}/schedule/getprogress/${this.$store.state.uid}/${t.schedule_id}/${t.books_id}`).then(t=>{200==t.status?e(t.data):s()})})},toggleBookmark(t){if(this.bookmark_disabled)return!1;if("F"==this.$store.state.product_type&&this.$store.state.tuto&&0==JSON.parse(this.$store.state.tuto)["t6"]&&this.$store.dispatch("updateTutorial","t6"),this.alert_type=!1,t.disable||!t.schedule_id)return t.id&&-1!=String(t.id).indexOf("adm_null")&&(this.alert_type="adm_null"),this.disableDialog(),!1;this.bookmark_disabled=!0;let e={schedule_id:t.schedule_id,user_id:this.$store.state.uid,book_id:t.id};this.$axios.post(`${g["w"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=R(this.item_length);e?s[5]+=1:s[5]-=1,this.item_length=Object.freeze(s);for(let[i,o]of Object.entries(this.books))if(o.table_key==t.table_key){let t=R(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.$store.dispatch("showToast",{message:`북마크 교재${this.bookmarktext}되었습니다.`,duration:2e3})}this.bookmark_disabled=!1})},closeDialog(t){this[t]=!1,this.is_story=!1,clearTimeout(window.dialog_timeout)},shadowreadingConfirm(t,e=null){if(this.loading_unit)return!1;if(e)if(+t.seq>2){if(this.is_ng_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_ng_book=!1;else if(this.is_ng_book=!1,!this.checkAuthFree(t.seq))return!1;let s="쉐도우";this.sel_unit=t,this.setLearningDialog(s+"를 시작하시겠습니까?",null,null,99)},testConfirm(t,e=null){if(this.loading_unit)return!1;if(e)if(+t.seq>2){if(this.is_ng_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_ng_book=!1;else if(this.is_ng_book=!1,!this.checkAuthFree(t.seq))return!1;let s=null;if(!this.freepass)if(1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v){let e=this.getScheduleBookId(this.expanded[0]);if(e){let i=!0;for(let s=+t.seq-1;s>=0;s--){let o=this.$data[e][s];if(o.id!=t.id||o.mode!=g["bb"])break;if(isNaN(o.study_cnt)||!(+o.study_cnt>0)){i=!1;break}}if(!i)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1}}else if(null==t.study_pk||Number(t.study_cnt)<1)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;if(window.is_restudy>0&&Number(t.test_cnt)>2)return this.clickSound(),this.sel_unit=t,s=7,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;switch(this.sel_unit=t,t.test_status){case 1:case 2:this.exitSound(),s=6;break;case 3:this.clickSound(),s=5;break;default:this.clickSound(),s=2;break}this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog)},goResultGRAMMAR(){if(!this.chkCurVal())return!1;let t=this.learning_dialog_vma+g["R"];this.setBookInfo(this.expanded[0],this.sel_unit,t,!1,this.closeLearningDialog)},goStudyGRAMMAR(t){console.log("this.learning_dialog_vma",this.learning_dialog_vma),this.setBookInfoGRAMMAR(this.expanded[0],this.sel_unit,this.learning_dialog_vma,t.clear,this.closeLearningDialog)},setBookInfoGRAMMAR(t,e,s,i,o){if(console.log("setBookInfoGRAMMAR",t,e,s,i,o),!t||!e||!s)return!1;let a=R(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&this.$store.dispatch("initPage"),this.$axios.get(`${g["w"]}/v2/book/getgrammarcount?unit_id=${e.id}&type=${s}&sid=${t.schedule_id}`).then(e=>{if(200==e.status){let n=e.data.cnt;this.$store.dispatch("setBookInfoGRAMMAR",{book:t,unit:a,type:s,init:i,cnt:n}).then(t=>{this.$store.dispatch("setCurUnitId",a.id).then(()=>{i?(this.$store.commit("setClearPrevResult",!0),this.$store.dispatch("clearResultData").then(t=>{this.$store.commit("setLearningStatus",!0),this.$store.commit("setClearPrevResult",!1)})):([3,5,9,14,31].includes(this.learning_dialog_type)&&(this.$store.commit("setClearPrevResult",!0),this.$store.commit("setCurrentRestudy",!0)),this.$store.commit("setLearningStatus",!0)),o()})})}}).catch(t=>{console.error(t)})},alertVmaDialog(){this.null_vma_dialog=!0,window.dialog_timeout=window.setTimeout(()=>{this.null_vma_dialog=!1,window.dialog_timeout=null},3e3)},onResize(){if("F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];if(0==JSON.parse(this.$store.state.tuto)[e]){let t=e.split("")[1]-1,s=document.getElementById("tab"+t);if(s){let t=s.getBoundingClientRect();this[e+"_top"]=t.top+"px",this[e+"_left"]=(t.left+t.left+t.width)/2+"px"}}}if(0==JSON.parse(this.$store.state.tuto)["t6"]){let t=document.querySelector("#bookmark_switch");if(t){let e=0,s=document.body.offsetWidth;s<900?e=22.5:900<=s&&s<960?e=27.5:960<=s&&s<1264?e=30:1264<=s&&(e=35);let i=t.getBoundingClientRect();this.t6_top=i.top+i.height+"px",this.t6_left=i.left+e+"px"}}}},openMockExamConfirm(t,e,s,i=null,o=null){if(this.loading_unit)return!1;if(!t)return!1;if(null==i){this.sel_mockexam=this.mockexams[t],this.sel_mockexam.bookname=e;let i=this.books.find(e=>e.books_id==t);"3"==i.category&&(this.sel_mockexam.schedule_id=null),o&&(this.sel_mockexam.booktype=o),s&&this.expanded&&this.expanded[0]&&(this.sel_mockexam.unit_id=s.id?+s.id:null,this.sel_mockexam.s_u_id=s.s_u_id?+s.s_u_id:null,this.sel_mockexam.schedule_id=this.expanded[0].schedule_id,this.sel_mockexam.books_id=this.expanded[0].books_id,this.sel_mockexam.unit_name=s.name?s.name:"",this.sel_mockexam.ur_id=s.mock_pk?s.mock_pk:null,this.sel_mockexam.schedule_type=this.expanded[0].schedule_type,this.sel_mockexam.try_cnt=s.mock_cnt?+s.mock_cnt:1,s.schedule_name&&(this.sel_mockexam.bookname=s.schedule_name),s.record_id?this.sel_mockexam.record_id=s.record_id:this.sel_mockexam.record_id=null,1==this.sel_mockexam.schedule_type?(this.sel_mockexam.unit_seq=s.mode.length>1?+s.mode.replace(/[^0-9]/g,""):null,this.sel_mockexam.type_v_seq=s.seq?+s.seq:null):this.sel_mockexam.unit_seq=s.seq?+s.seq:null)}else{const e=this.mockexams[t];this.sel_mockexam={bookname:i.schedule_name,books_id:e.books_id,schedule_id:e.schedule_id,unit_name:null,record_id:s.mock_record_id?s.mock_record_id:null,id:e.id,question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,tot_question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,time:Number(e.time),question_seq:s.question_seq?s.question_seq:null,new_mockexam:!0,is_regular:s.is_regular,cnttext:s.name},s.regular_id&&Number(s.regular_id)>0&&(this.sel_mockexam.regular_id=s.regular_id)}this.mockexam_dialog=!0},storyConfirm(t,e=null,s){if(this.loading_unit)return!1;if(!e.unit&&t){const s=R(e);s.unit=t,e=Object.freeze(s)}this.sel_book=e;const i={[g["ab"]]:t.story_v_status,[g["Z"]]:t.story_m_status,[g["W"]]:t.story_a_status};let o=null;switch(i[s]){case 1:case 2:this.exitSound(),o=51;break;case 3:this.clickSound(),o=53;break;default:this.clickSound(),o=50;break}this.setDialogVMA(s),this.setDialogText(e,t,s,o,this.setLearningDialog)},freeTrialGuide(t){if(1===this.$store.getters.getTrialGuide("c"+t))return!1;const e={1:{title:"핵심 영상강의",html:'내공스터디만의 자체 콘텐츠
\n 내공백서 영문법 시리즈를 제공합니다.
\n
동영상 강의문제은행을 풀어보세요!
'},2:{title:"필수 주요구문",html:'내공스터디만의 자체 콘텐츠
\n 내공백서 주요구문 시리즈를 제공합니다.
\n
내신빈출 주요구문을 반복학습 하세요!
'},3:{title:"기본 영어단어",html:'내공스터디만의 자체 콘텐츠
\n 내공백서 영어단어 시리즈를 제공합니다.
\n
학년별 내신 기본어휘를 학습하세요!
'}};this.trial_title=e[t].title,this.trial_html=e[t].html,this.trial_guide_dialog=!0},closeTrialGuide(){"F"!=this.$store.state.product_type?this.$store.dispatch("setTrialGuide","c"+this.tab):this.$store.commit("setTrialGuide",{key:"c"+this.tab,val:1})},levelView(t){if("prev"===t){if(1===this.level_page)return;this.level_page--}else if("next"===t){if(4===this.level_page)return;this.level_page++}const e=4*(this.level_page-1)+1;this.level_items=[{text:"Lv. "+e,value:""+e},{text:"Lv. "+(e+1),value:""+(e+1)},{text:"Lv. "+(e+2),value:""+(e+2)},{text:"Lv. "+(e+3),value:""+(e+3)}],this.level_exclusive="next"===t?e:e+3,this.changeLevel()},changeLevel(){this.select_level=this.level_exclusive},async refresh(){this.books=[],this.books_tmp=[],this.course_books=[],this.course_search_books=null,this.expanded=[],this.category_books=[],this.$store.commit("setCourseBooks",[]);try{const t=await this.getCommonBooks();await this.getScheduleBooks(t),this.$refs.book_list_latest&&this.$refs.book_list_latest.getList(),this.search_keyword="",this.setToast("최신 교재 목록으로 업데이트하였습니다.")}catch(t){console.log(t)}}}},Fh=Vh,Gh=(s("9c0e"),s("8fea")),Wh=s("de8e"),Uh=s("dc22"),Hh=Object(p["a"])(Fh,ki,Ci,!1,null,null,null),Kh=Hh.exports;y()(Hh,{VBtn:ot["a"],VBtnToggle:_i["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDataTable:Gh["a"],VDialog:ct["a"],VIcon:jt["a"],VLazy:yt["a"],VOverflowBtn:Wh["a"],VRow:ht["a"],VSheet:Se["a"],VSwitch:ye["a"],VTextField:ut["a"]}),fi()(Hh,{Resize:Uh["a"]});var Zh=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"book-vue"}},[t.getLearningStatus?i("learning",{key:"learning-index",attrs:{bookmode:"course",mode:t.$store.getters.getLearningMode,tab:t.tab,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,setDialogText:t.setDialogText,setLearningDialog:t.setLearningDialog,setDialogVMA:t.setDialogVMA,updateSingleMockExamUnit:t.updateSingleMockExamUnit}}):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"v-book-index static-container"},[i("left-bar-static",{key:"book-left-bar",staticClass:"child-white"},[i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("v-switch",{key:"book-left-bar-switch-1",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"최근 학습내역",color:"success","hide-details":"","input-value":7==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,7)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1),i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}}),i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"},attrs:{id:"bookmark_switch"}})]),i("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("router-link",{staticClass:"left-label-title d-flex",staticStyle:{"text-decoration":"none"},attrs:{to:"/schedule/learningschedule"}},[i("div",{staticClass:"label-control",on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("label",[t._v("나의 학습 스케줄\n "),i("v-btn",{attrs:{icon:"",text:"",fab:""}},[i("v-icon",{attrs:{size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)])])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습 진행률")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[i("span",{domProps:{textContent:t._s(t.study_progress)}})])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("재학습")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[i("span",{domProps:{textContent:t._s(t.setRestudyText())}})])],1),i("div",{staticStyle:{flex:"1 1 auto"}})],1),i("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("a",{staticClass:"left-label-title d-flex"},[i("div",{staticClass:"label-control",class:{"success--label":null!=t.$store.state.current_book_id}},[i("label",[t._v("\n 선택된 교재 정보\n "),i("v-icon",{class:{"success--text":t.coverimg_url},attrs:{disabled:""==t.coverimg_url,size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)},on:{click:t.openCoverImg}},[t._v(t._s(t.mdi_chevron_right)+"\n ")])],1)])])]),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작자")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publisher)+"\n ")])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작년도")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publishdate)+"\n ")])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습일차")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_unit_cnt?t.$store.state.cur_book_unit_cnt+"일":"")+"\n ")])],1)],1)]),i("div",{staticClass:"right"},[i("v-sheet",{key:"book-right-sheet",staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[i("v-row",{staticClass:"width-100 ma-0 custom-tab-wrapper min-h-40px",class:""+this.menu},[i("v-col",{directives:[{name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}],staticClass:"pa-0 pos-rel",attrs:{cols:t.setCourseTabs},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":1==t.tab_class},attrs:{id:"tab1"},on:{click:function(e){return t.selectTab(1)}}},[t._v("\n 원서 오디오북\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t24"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t24_display,type:"t24",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -4px)",tool_top:t.t24_top,tool_left:t.t24_left,tool_translate:"translate(-50%, -100%)",text:"영어회화 실력 향상을 위한 원서를 읽어보세요."}}):t._e()],1),i("v-col",{staticClass:"pa-0",class:{"before-divider":![3,4].includes(t.tab)},attrs:{cols:t.setCourseTabs},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel d-flex align-center justify-center",class:{"success--text active":2==t.tab_class},attrs:{id:"tab2"},on:{click:function(e){return t.selectTab(2)}}},[t._v("\n 심화 스토리북\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t5"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t5_display,type:"t5",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -4px)",tool_top:t.t5_top,tool_left:t.t5_left,tool_translate:"translate(-50%, -100%)",text:"창의력 더하는 동화책으로 독해력을 키워보세요."}}):t._e()],1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.tab<7||10===t.tab,expression:"tab < 7 || tab === 10"}],staticClass:"content-child-2"},[i("v-row",{staticClass:"gradeselect-wrapper ma-0 width-100 min-h-40px",staticStyle:{border:"thin solid #edeeef"}},[i("v-col",{staticClass:"pa-0 height-100 d-flex align-center",staticStyle:{"padding-left":"1.25% !important"},attrs:{sm:5,cols:4}},[t.tab<3&&10!==t.tab?i("v-row",{staticClass:"ma-0 width-100"},[i("v-col",{staticClass:"pa-0 pr-1 height-100 d-flex align-center",attrs:{cols:t.isStorybook?12:3}},[t.isStorybook?i("div",{class:"d-flex "+(1==t.tab?"width-100p":"width-80p")+" ",attrs:{id:"story-filter"}},[2==t.tab?i("div",[i("v-btn",{attrs:{variant:"success","x-large":"",icon:"",ripple:!1,disabled:1===t.level_page},on:{click:function(e){return t.levelView("prev")}}},[i("v-icon",{style:1===t.level_page?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_left_circle)+"\n ")])],1)],1):t._e(),2==t.tab?i("div",{class:"level-page-"+t.level_page,staticStyle:{"overflow-x":"hidden",display:"flex"},attrs:{id:"level_list"}},[i("v-btn-toggle",{attrs:{dark:""},on:{change:t.changeLevel},model:{value:t.level_exclusive,callback:function(e){t.level_exclusive=e},expression:"level_exclusive"}},t._l(t.level_items,(function(e,s){return i("v-btn",{key:"level-btn-"+s,staticClass:"level-btn",attrs:{value:+e.value,disabled:t.level_exclusive===+e.value}},[t._v("\n "+t._s(e.text)+"\n ")])})),1)],1):i("div",{attrs:{id:"level_list_2"}},[t.is_mobile?i("div",{staticClass:"d-flex align-center",staticStyle:{width:"100%"}},[i("div",[i("v-btn",{attrs:{variant:"success","x-large":"",icon:"",ripple:!1,disabled:1===t.category_page},on:{click:function(e){return t.categoryView("prev")}}},[i("v-icon",{style:1===t.category_page?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_left_circle)+"\n ")])],1)],1),i("div",{staticClass:"category-button-wrapper",staticStyle:{"overflow-x":"hidden",flex:"1",display:"flex","align-items":"center","justify-content":"center",gap:"4px"}},t._l(t.visibleCategories,(function(e){return i("v-btn",{key:"reading-grade-"+e.originalIndex,staticClass:"category-btn",class:t.level_exclusive===+e.value?"white--text":"grey--text",attrs:{depressed:"",rounded:"",color:t.level_exclusive===+e.value?"success":"grey lighten-4"},on:{click:function(s){return t.changeCategory(e.value)}}},[t._v("\n "+t._s(e.text)+"\n ")])})),1),i("div",[i("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1,disabled:t.category_page===t.categoryTotalPages},on:{click:function(e){return t.categoryView("next")}}},[i("v-icon",{style:t.category_page===t.categoryTotalPages?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_right_circle)+"\n ")])],1)],1)]):i("div",{staticClass:"category-scroll-container"},t._l(t.reading_categories,(function(e,s){return i("v-btn",{key:"reading-grade-"+s,staticClass:"category-btn mr-2",class:t.level_exclusive===+e.value?"white--text":"grey--text",attrs:{depressed:"",rounded:"",color:t.level_exclusive===+e.value?"success":"grey lighten-4"},on:{click:function(s){return t.changeCategory(e.value)}}},[t._v("\n "+t._s(e.text)+"\n ")])})),1),i("RefreshBtn",{on:{click:t.refresh}})],1),2==t.tab?i("div",[i("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1,disabled:1==t.tab?2===t.level_page:4===t.level_page},on:{click:function(e){return t.levelView("next")}}},[i("v-icon",{style:4===t.level_page?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_right_circle)+"\n ")])],1)],1):t._e()]):t._e(),2==t.tab?i("div",[i("RefreshBtn",{on:{click:t.refresh}})],1):t._e(),t.tab>4?i("v-overflow-btn",{key:"ov-grade",staticClass:"custom-filter",attrs:{items:t.grade_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"success"},on:{change:t.changeGrade},scopedSlots:t._u([{key:"label",fn:function(){return[i("div",{staticClass:"mx-0"},[t._v("학년")])]},proxy:!0},{key:"append",fn:function(){return[i("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2335967587),model:{value:t.select_grade,callback:function(e){t.select_grade=e},expression:"select_grade"}}):t._e()],1),t.isStorybook?t._e():i("v-col",{staticClass:"pa-0 pr-1 height-100",attrs:{cols:"3"}},[i("v-overflow-btn",{staticClass:"custom-filter",attrs:{items:t.sort_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"#ffa025"},scopedSlots:t._u([{key:"label",fn:function(){return[i("span",{staticClass:"mx-0"},[t._v(" 정렬 ")])]},proxy:!0},{key:"append",fn:function(){return[i("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2022726672),model:{value:t.sortBy,callback:function(e){t.sortBy=e},expression:"sortBy"}})],1)],1):(t.tab<=3||10===t.tab)&&0===t.course_mode?i("v-row",{staticClass:"ma-0"},[i("v-col",{staticClass:"pa-0 pr-1 height-100",staticStyle:{width:"max-content"}},t._l(t.course_categories[t.tab],(function(e,s){return i("v-btn",{key:"course-publisher-"+s,staticClass:"category-btn mr-2",class:t.current_category_idx===s?"white--text":"grey--text",staticStyle:{"min-width":"50px"},attrs:{depressed:"",rounded:"",color:t.current_category_idx===s?"success":"grey lighten-4"},on:{click:function(e){return t.changePublisher(s)}}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1):(t.tab<=3||10===t.tab)&&1===t.course_mode?i("v-row",{staticClass:"ma-0 width-100"},[i("v-col",{staticClass:"pa-0 pr-1 height-100"},[i("div",{staticClass:"cursor grey--text",on:{click:t.courseDetailBackBtnClick}},[i("span",[t._v("<")]),i("span",{staticClass:"underline ml-1"},[t._v(t._s(t.tabs[t.tab]+" "+(1!==t.tab?"교재":""))+"\n 목록")])])])],1):t._e()],1),i("v-col",{staticClass:"pa-0",staticStyle:{"align-self":"center","padding-right":"3.5% !important"},attrs:{cols:4,offset:"4","offset-sm":3}},[i("v-row",[i("v-text-field",{directives:[{name:"show",rawName:"v-show",value:1!==t.course_mode,expression:"course_mode !== 1"}],staticClass:"search-input float-right",staticStyle:{width:"90%"},attrs:{"append-icon":t.search_keyword?"":t.mdi_magnify,id:"search",label:"교재명, 단원명, 제작자",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":t.mdi_close_circle,color:"success"},on:{keyup:function(e){t.tab,t.searchKeyup(e)},blur:t.searchBlur},model:{value:t.search_keyword,callback:function(e){t.search_keyword=e},expression:"search_keyword"}})],1)],1)],1),t.tab<=3&&10!==t.tab||1===t.course_mode?i("v-row",{staticClass:"mx-0 story-book-row"},[i("v-col",{staticClass:"py-0 pos-rel px-0",attrs:{cols:"12"}},[[1,2].includes(t.tab)?i("story-book-table",{ref:"story_book_table",attrs:{data:t.$data,selectedTab:t.tab}}):i("v-data-table",{key:"book-list-"+t.tab,staticClass:"custom-dt over-y-scroll",attrs:{id:"book-list-dttbl",headers:t.headers,items:t.books,"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":t.item_key,"items-per-page":t.items_per_page,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.","hide-default-footer":"","hide-default-header":"","fixed-header":"","single-select":"",search:t.tableSearch,"custom-filter":t.filterTabs,"custom-sort":t.sortTabs,height:"64vh"},on:{"click:row":t.selectRow},scopedSlots:t._u([{key:"item.data-table-expand",fn:function(e){var s=e.isExpanded,o=e.isSelected,a=e.item;return[i("div",[i("v-lazy",{attrs:{transition:""}},[i("v-icon",{directives:[{name:"show",rawName:"v-show",value:s,expression:"isExpanded"}],staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_down))])],1),o&&t.loading_unit?[i("icon-rolling",{attrs:{color:"#2196f3",size:"16",strokewidth:"12",absolute:""}})]:t._e(),i("v-icon",{directives:[{name:"show",rawName:"v-show",value:!s&&!(o&&t.loading_unit),expression:"!isExpanded && !(isSelected && loading_unit)"}],staticClass:"act-ico",class:{"grey--text text--lighten-2":t.mockexams_block[a.books_id]},attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_right))])],2)]}},{key:"item.bookmark",fn:function(e){var s=e.item;return[i("v-lazy",{attrs:{"min-height":"40px",transition:""}},[i("v-btn",{staticClass:"mx-0",class:[1==+s.bookmark?"pink--text":"grey--text",s.disable?"text--lighten-3":"text--lighten-2"],attrs:{large:"",text:"",icon:"",ripple:!1},on:{click:function(e){return e.stopPropagation(),t.toggleBookmark(s)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[1==+s.bookmark?i("v-icon",{attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart))]):i("v-icon",{staticClass:"act-ico",attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart_outline))])],1)],1)]}},{key:"item.info",fn:function(e){var s=e.item;return[i("v-row",{staticClass:"width-100 d-flex align-center min-h-40px",attrs:{dense:"","no-gutters":""}},[i("v-col",{key:s.table_key+"-"+t.search_key,staticClass:"row-name d-flex align-center",attrs:{cols:"8"}},[i("div",{staticClass:"book-title",class:{"grey--text-d7":s.disable},domProps:{innerHTML:t._s(s.schedule_name||s.bookname)}}),s.subtitle&&50!==+s.booktype?i("div",{staticClass:"book-subtitle before-divider ml-3 grey--text",domProps:{textContent:t._s(s.subtitle)}}):t._e(),10===+s.category&&31===+s.booktype?i("div",[i("span",{staticClass:"book-subtitle ml-1 fw-300 booktag hot",class:{"opacity-half":s.disable}},[t._v("\n HOT\n ")])]):11===+s.booktype||s.booktype_2===t.TAG_HOT?i("div",[i("span",{staticClass:"book-subtitle ml-1 fw-300 booktag",class:{"opacity-half":s.disable,beta:!s.m_mod||!s.a_mod,hot:!(!s.m_mod||!s.a_mod)}},[t._v("\n "+t._s(s.m_mod&&s.a_mod?"HOT":"BETA")+"\n ")])]):s.booktype_2===t.TAG_NEW||1==s.category&&0===+s.booktype||2==s.category&&11!==+s.booktype||3==s.category&&0===+s.booktype?i("div",{staticClass:"book-subtitle ml-1 fw-300 booktag new",class:{"opacity-half":s.disable}},[t._v("\n NEW\n ")]):s.booktype_2===t.TAG_VOCA?i("div",{staticClass:"book-subtitle ml-1 fw-300 booktag voca",class:{"opacity-half":s.disable}},[t._v("\n VOCA\n ")]):t._e(),t.HasMockExam(s.category,s.books_id,s)&&!s.mockexam||s.mockexam&&10===+s.category&&31===+s.booktype?i("div",{staticClass:"mockexam-div height-100 before-divider ml-3"},[i("v-btn",{staticClass:"px-xl-3 px-lg-2",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",text:"",large:"",ripple:!1,color:"black",tile:""},on:{click:function(e){return e.stopPropagation(),t.openMockExamConfirm(s.books_id,s.bookname,null,null,+s.booktype)}}},[i("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:""}},[t._v(t._s(t.mdi_play_circle_outline))]),i("b",{staticClass:"ml-n1",domProps:{textContent:t._s(t.setMockName(s))}})],1)],1):t._e()]),i("v-col",{staticClass:"row-progress d-flex align-center justify-center",attrs:{cols:"4"}},[i("v-lazy",{staticClass:"lazy-progress"},[i("div",{staticClass:"progress-wrap pos-rel width-100 height-100"},[i("b",{staticClass:"under-text fw-700",class:{"grey--text text--lighten-1":!s.progress}},[t._v("  "+t._s(s.progress)+"%  ")]),i("div",{staticClass:"progress-gauge pos-abs height-100 left-0 top-0 overflow-hidden text-right",style:"width:"+s.progress+"%"},[i("b",{staticClass:"white--text tw-800"},[t._v("  "+t._s(s.progress)+"%  ")])])])])],1)],1)]}},{key:"expanded-item",fn:function(e){var s=e.item;return[t.$data[t.getScheduleBookId(s)]?[i("unit-template",{attrs:{data:t.$data,menu:t.menu,headers:t.headers,item:s,is_mobile:t.is_mobile,getScheduleBookId:t.getScheduleBookId,setListBtnText:t.setListBtnText,setBtnText:t.setBtnText,grammarConfirm:t.grammarConfirm,vmaConfirm:t.vmaConfirm,shadowreadingConfirm:t.shadowreadingConfirm,openMockExamConfirm:t.openMockExamConfirm,studyConfirm:t.studyConfirm,testConfirm:t.testConfirm}})]:t._e()]}}],null,!0)}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.scroll_loading,expression:"scroll_loading"}],staticClass:"linear-activity overflow-hidden width-100 pos-abs bottom-0"},[i("div",{staticClass:"indeterminate pos-rel width-100 height-100"})])],1)],1):t._e(),(t.tab<=3||10===t.tab)&&0===t.course_mode?i("v-row",{staticClass:"mx-0 course-row"},[i("v-col",{staticClass:"py-0 pos-rel px-0 d-none",attrs:{cols:"12"}},[i("v-data-table",{staticClass:"temp-table",attrs:{id:"book-list-dttbl"}})],1),i("v-col",{staticClass:"py-0 pos-rel px-0 course-item-wrapper",attrs:{cols:"12"}},[t.final_keyword&&t.course_search_books&&0==t.course_search_books.length||t.isEmptyCourseBook||1===+t.is_openbook&&!t.isEmptyCourseBook&&0==t.reading_books.length?[i("div",{staticClass:"v-data-table__empty-wrapper border-ede thin-b d-flex align-center justify-center",staticStyle:{color:"rgba(0, 0, 0, 0.38)","font-size":"1.1rem",padding:"1rem",height:"7vh"}},[t._v("\n 등록된 교재가 없습니다.\n ")])]:[i("v-col",{staticClass:"course-item-wrap"},t._l(t.course_search_books?t.course_search_books:t.reading_books,(function(e,o){return i("v-lazy",{directives:[{name:"show",rawName:"v-show",value:t.showCourseBooks(e),expression:"showCourseBooks(item)"}],key:"course_table_"+o,attrs:{options:{threshold:.5},transition:"fade-transition"}},[i("v-card",{staticClass:"cursor",on:{click:function(s){return t.courseBookClick(e)}}},[i("div",{staticClass:"d-flex",class:[e.disable?"book-disabled pos-rel":""]},[e.disable?i("div",{staticClass:"pos-abs lock-div"},[i("img",{attrs:{src:s("1195")}})]):t._e(),i("img",{staticClass:"book-cover-img",attrs:{src:t.CDN+"/1/"+e.cover_path,alt:"book-cover",rel:"preload"}}),i("div",{staticClass:"course-book-info"},[i("span",{staticClass:"font-weight-bold badge"},[t._v("자체 콘텐츠")]),e.search_name&&t.course_search_books?i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"brand"))}}):i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[t._v("\n "+t._s(e.bookname&&e.bookname.split(" ")[0])+"\n ")]),i("div",{staticClass:"mb-1 d-flex"},[e.search_name&&t.course_search_books?i("div",[i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"bookname"))}})]):i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[t._v("\n "+t._s(1===t.tab?e.bookname.split(" ")[1]+" "+e.bookname.split(" ")[2]:e.bookname.split(" ").slice(1).join(" "))+"\n ")]),e.search_name&&t.course_search_books||1!==t.tab?e.search_name&&1===t.tab&&t.course_search_books?i("span",{staticClass:"grey--text text--darken-1 fs-1p1rem ml-1",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"grade"))}}):t._e():i("span",{staticClass:"grey--text text--darken-1 fs-1p1rem ml-1"},[t._v("\n "+t._s("(LEVEL "+e.bookname.split(" ")[e.bookname.split(" ").length-1]+")")+"\n ")])]),i("div",{staticClass:"course-tag-wrap"},t._l(t.course_tags[t.tab],(function(e,s){return i("span",{key:"course_tag_"+s,staticClass:"course-tag"},[t._v(t._s(e))])})),0)])])])],1)})),1)]],2)],1):t._e()],1),i("div",{directives:[{name:"show",rawName:"v-show",value:7==t.tab,expression:"tab == 7"}]},[i("book-list-latest",{key:"book-list-3",ref:"book_list_latest",attrs:{type:"reading",query:t.query_startdate,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,getLearningStatus:t.getLearningStatus,tab:t.tab,updateSingleUnit:t.updateSingleUnit,unitStatusChecker:t.unitStatusChecker,updateTmpSelUpdate:t.updateTmpSelUpdate}})],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("alert_dialog")}},model:{value:t.alert_dialog,callback:function(e){t.alert_dialog=e},expression:"alert_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},["adm_null"==t.alert_type?[t._v("다른 학원의 수업자료를 무상 공유해드립니다."),i("br"),t._v("배정된 담당자를\n 통해 문의하세요!")]:[t._v("해당 교재는 비활성화 되어있습니다."),i("br"),t._v("담당 선생님께\n 문의하세요!")]],2)],1)],1),i("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeLearningDialog},model:{value:t.learning_dialog,callback:function(e){t.learning_dialog=e},expression:"learning_dialog"}},[i("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",{domProps:{textContent:t._s(t.dialog_title)}})])]),[1,11,12,16,17].includes(t.learning_dialog_type)?t._e():i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[i("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.setBookName)}}),i("br"),i("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.setUnitName)}})])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[i("v-row",{attrs:{dense:""}},[0==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[1,11,16].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)]:2==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:3==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.openRestudyDialog}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.STUDY})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[4,7].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:5==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:6==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:7!=t.learning_dialog_type||t.isProcessResult?[8,13].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[9,14].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[10,15].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[28].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[29,30].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[31].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultGRAMMAR}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[32].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[12,17].includes(t.learning_dialog_type)&&!t.isProcessResult?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:50==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:53==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!0,restudy:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult||"동화보기를 재학습하시겠습니까?"==t.dialog_title?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:51==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStory(null,{clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:99==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goShadowReading}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:t._e():[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]],2)],1),i("div",{staticClass:"pos-abs border-ede thin-l width-100 height-100 white",class:[t.restudy_dialog?"opacity-1":"opacity-0"],attrs:{id:"from-right-slide-dialog"}},[i("v-card-text",{staticClass:"text-center pa-0 pos-rel top-0",attrs:{id:"dialog-new-text"}},[i("div",{staticClass:"pos-abs rd-arrow"},[i("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1},on:{click:t.closeRestudyDialog}},[i("v-icon",[t._v(t._s(t.mdi_arrow_left))])],1)],1),i("v-row",{attrs:{align:"center",justify:"center","no-gutters":""}},[i("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.FLASHCARD},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.FLASHCARD)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",[i("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_volume_high))]),i("br"),i("b",{staticClass:"fs-title"},[t._v("리스닝 학습")]),i("br"),i("br"),i("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"}},[t._v("\n 무제한 듣기 학습\n ")])],1)]),i("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.STUDY},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.STUDY)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"border-ede thin-l"},[i("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_sync))]),i("br"),i("b",{staticClass:"fs-title"},[t._v("전체 재학습")]),i("br"),i("br"),i("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"},domProps:{textContent:t._s(t.restudy_cnt_ment)}})],1)])],1)],1),i("v-card-actions",{staticClass:"text-center pos-abs bottom-0 width-100 align-start",staticStyle:{height:"28%"},attrs:{id:"dialog-new-actions"}},[i("v-row",{attrs:{dense:"","no-gutters":"",justify:"center"}},[i("v-col",{attrs:{cols:"4"}},[i("v-btn",{staticClass:"subtitle-1",attrs:{color:"success",rounded:"",block:"",depressed:"",large:"",height:"2.7rem !important",ripple:!1},on:{click:t.startRestudy}},[i("b",{staticClass:"fw-800"},[t._v("재학습 시작")])])],1)],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.restudy_false_dialog=!1}},model:{value:t.restudy_false_dialog,callback:function(e){t.restudy_false_dialog=e},expression:"restudy_false_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("span",{staticClass:"title"},[t._v("재학습 가능 횟수(3회)를 모두 학습하셨습니다.")])])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[i("v-col",{staticClass:"py-3",attrs:{cols:"12"}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.restudy_false_dialog=!1}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeMockExamConfirm},model:{value:t.mockexam_dialog,callback:function(e){t.mockexam_dialog=e},expression:"mockexam_dialog"}},[i("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[t.sel_mockexam?[t.sel_mockexam.schedule_id&&!t.sel_mockexam.new_mockexam?[i("b",[t._v("\n 듣기"+t._s(t.sel_mockexam.booktype&&31===+t.sel_mockexam.booktype?"평가를":"학습을")+"\n 시작하시겠습니까?\n ")])]:[t.sel_mockexam.new_mockexam?i("b",[t._v("\n "+t._s(t.sel_mockexam.cnttext)+"를 시작하시겠습니까?\n ")]):20==t.sel_mockexam.question_cnt?i("b",[t._v("듣기평가를 시작하시겠습니까?")]):i("b",[t._v("모의평가를 시작하시겠습니까?")])]]:t._e()],2)]),i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[t.sel_mockexam&&t.sel_mockexam.bookname?i("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.sel_mockexam.bookname)}}):t._e(),i("br"),t.sel_mockexam&&t.sel_mockexam.unit_name?i("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.sel_mockexam.unit_name)}}):t._e()])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[t.sel_mockexam?i("v-row",{attrs:{dense:""}},[t.sel_mockexam.schedule_id?[null===t.sel_mockexam.record_id?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("재평가")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]]:[null===t.sel_mockexam.record_id?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("재시험")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]]],2):t._e()],1)],1)],1),i("v-dialog",{attrs:{"content-class":"cover-dialog",transition:!1,persistent:""},on:{"click:outside":function(e){t.coverimg_dialog=!1}},model:{value:t.coverimg_dialog,callback:function(e){t.coverimg_dialog=e},expression:"coverimg_dialog"}},[i("v-card",{staticClass:"ma-auto"},[i("img",{staticStyle:{"max-height":"40vh",height:"40vh"},attrs:{src:t.coverimg_url}})])],1),t.$store.state.product_type==t.PRODUCT_FREE||t.is_story&&0===+t.$store.state.promotion_check?i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_free_dialog")}},model:{value:t.prevent_free_dialog,callback:function(e){t.prevent_free_dialog=e},expression:"prevent_free_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--mode title",class:[t.is_mobile?"py-3":"py-8"]},[t.is_grammar||t.is_ng_book?i("span",[t._v("\n 해당 유닛은 유료 결제 이후 학습 가능합니다.\n ")]):t.is_story?i("span",[t.$store.state.product_type==t.PRODUCT_FREE?[t._v("\n 각 레벨의 세 번째 교재까지만 체험 가능하며,\n "),i("br"),t._v("\n 유료결제 이후 모든 컨텐츠 사용 가능합니다.\n ")]:[t._v("\n 각 레벨의 첫 번째 교재까지만 사용 가능하며,\n "),i("br"),t._v("\n 프로모션 전환 시, 모든 컨텐츠 사용 가능합니다.\n ")]],2):i("span",[t._v(" 체험판에서는 유닛 1만 학습 가능합니다. ")])])],1)],1):t._e(),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_advanced_dialog")}},model:{value:t.prevent_advanced_dialog,callback:function(e){t.prevent_advanced_dialog=e},expression:"prevent_advanced_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[t._v("올해 개정된 교육과정으로"),i("br"),t._v("조만간 업데이트 될\n 예정입니다.")])],1)],1),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("null_vma_dialog")}},model:{value:t.null_vma_dialog,callback:function(e){t.null_vma_dialog=e},expression:"null_vma_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[t._v("곧 서비스 업데이트 될 예정입니다.")])],1)],1),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:t.$store.state.a_info_dialog,callback:function(e){t.$set(t.$store.state,"a_info_dialog",e)},expression:"$store.state.a_info_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[i("v-icon",{staticStyle:{width:"1.1rem !important",height:"1.1rem !important","margin-top":"-0.2rem"},attrs:{color:"success"}},[t._v(t._s(t.mdi_information_outline))]),t._v(" "),i("span",{staticClass:"success--text"},[t._v("잠깐! 체험해보셨나요?")]),i("br"),i("div",{staticStyle:{width:"100%",height:"12px"}}),i("span",[t._v("영어원서, 심화 스토리북에서는")]),i("br"),i("span",{staticClass:"black--text"},[t._v("리딩과 실전 문제은행")]),i("span",[t._v("이 포함되어 있습니다.")])],1)],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeGomain}},[i("span",{staticClass:"title"},[t._v("종료")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeCancel}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"35em","max-width":"450px",transition:!1,persistent:""},model:{value:t.trial_guide_dialog,callback:function(e){t.trial_guide_dialog=e},expression:"trial_guide_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[i("v-row",[i("v-col",{staticClass:"title text-center px-0 pb-0 pt-2",attrs:{cols:"12"}},[i("h3",{staticClass:"success--text pb-3 mb-2",staticStyle:{"border-bottom":"1px dashed #d8d8d8","font-size":"1.2rem","font-weight":"800 !important"}},[t._v("\n "+t._s(t.trial_title)+"\n ")])]),i("v-col",{staticClass:"text-center grey--text",staticStyle:{"font-size":"1.2rem","line-height":"1.4","padding-top":"2rem","padding-bottom":"2rem"},attrs:{cols:"12"},domProps:{innerHTML:t._s(t.trial_html)}})],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t pa-0"},[i("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-btn",{staticStyle:{height:"calc(2.5 * (1rem + 2px) + 24px) !important","background-color":"#1bd05b","border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.trial_guide_dialog=!1,t.closeTrialGuide()}}},[i("span",{staticClass:"title white--text"},[t._v("확인")])])],1)],1)],1)],1)],1),i("LoadingDialog",{attrs:{value:t.loading_value,message:t.loading_message}})],1)},Yh=[],Jh=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-layout",{attrs:{row:"","justify-center":""}},[s("v-dialog",{staticStyle:{border:"1px solid red !important"},attrs:{eager:"",persistent:"",content:"","content-class":t.setContentClass,transition:"dialog-transition"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[s("v-container",{attrs:{"fill-height":""}},[s("v-layout",{attrs:{column:"","justify-center":"","align-center":""}},[s("div",{staticClass:"pos-rel"},[s("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"}},[s("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)"}},[s("animateTransform",{attrs:{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}})],1)]),s("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?s("h2",{staticClass:"my-6"},[t._v("\n "+t._s(t.message)+"\n ")]):t._e(),t.progressPercent?s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar",style:"width:"+t.progressPercent+"%; background-color:"+t.setColor})]):t._e()])],1)],1)],1)},Xh=[],Qh=(s("d3f5"),{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.color_array[Math.ceil(this.progressPercent/5)]},setContentClass(){let t="centered-dialog";return this.progressPercent&&(t+=" repos_dialog"),this.isStory&&(t+=" story_dialog"),t}}}),tu=Qh,eu=(s("8d9a"),s("a722")),su=Object(p["a"])(tu,Jh,Xh,!1,null,null,null),iu=su.exports;y()(su,{VContainer:lt["a"],VDialog:ct["a"],VLayout:eu["a"]}),window.is_restudy=0,window.dialog_timeout=null,window.render_chk_interval=null,window.load_timeout=null,window.timeout1=null,window.scroll_container=null;const ou=10;var au={name:"book-course",mixins:[mh],components:{StoryBookTable:Ah,UnitTemplate:Eh,RefreshBtn:Oh,LoadingDialog:iu},data(){return{STUDY:g["bb"],TEST:g["hb"],FLASHCARD:g["r"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],MOCK_EXAM:g["G"],GRAMMAR_THEORY:g["u"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],STORY_V:g["ab"],STORY_M:g["Z"],STORY_A:g["W"],CDN:g["k"],BOOK_NORMAL:g["h"],BOOK_BANK:g["e"],BOOK_VOCA:g["j"],BOOK_STORY:g["i"],BOOK_LISTENING:g["g"],BOOK_GRAMMAR:g["f"],TAG_NEW:g["fb"],TAG_VOCA:g["gb"],TAG_HOT:g["eb"],PRODUCT_FREE:g["P"],UCLASS_ETC:g["jb"],AUDIO_BOOK_GRADE:g["d"],tab:1,tabs:{1:"원서 오디오북",2:"심화 스토리북"},tab_class:1,last_tab:null,last_pick_tab:1,search_key:0,search_keyword:"",final_keyword:"",select_grade:"",select_level:1,sortBy:null,level_page:1,level_exclusive:1,category_page:1,level_items:[{text:"Lv. 1",value:"1"},{text:"Lv. 2",value:"2"},{text:"Lv. 3",value:"3"},{text:"Lv. 4",value:"4"}],reading_categories:[{text:"초등1",value:"1"},{text:"초등2",value:"2"},{text:"초등3",value:"3"},{text:"초등4",value:"4"},{text:"초등5",value:"5"},{text:"초등6",value:"6"}],loading:!1,loading_unit:!1,mock_load:!1,sel_unit:null,headers:Object.freeze([{text:"bookmark",value:"bookmark",align:"center before-divider",sortable:!1,width:"0"},{text:"info",value:"info",align:"left px-0 before-divider",sortable:!1,width:"100%"}]),item_key:"table_key",expanded:[],books:[],books_tmp:[],course_mode:0,course_book:null,course_categories:{1:["전체","초등","중등"],2:["전체","초등","중등","고등"],3:["전체","초등","중등","고등"],10:["전체","초등3","초등4","초등5","초등6"]},course_tags:{1:["영상강의","어휘","문법문제"],2:["어휘","본문","심화"],3:["어휘","테스트"],10:["MP3","어휘","스크립트"]},reading_books:[],course_search_books:null,current_category_idx:0,mockexams:{},mockexams_block:{},sel_mockexam:null,search:"",item_length:Object.freeze({1:0,2:0,3:0,4:0,5:0,6:0}),page:1,items_per_page:ou,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:g["r"],restudy_cnt_ment:"무제한 재학습",restudy_false_dialog:!1,mockexam_dialog:!1,select_disabled:!1,scroll_loading:!1,query_tab:null,query_startdate:null,query_sid:null,query_bid:null,query_stype:null,query_uid:null,query_useq:null,search_book_order:!1,unwatch_once:null,new_sorting:!1,prevent_free_dialog:!1,prevent_advanced_dialog:!1,null_vma_dialog:!1,freepass:!1,is_mobile:this.$store.state.is_mobile,is_openbook:0,isUniqueBook:!1,isEmptyCourseBook:!1,init_scroll:!1,mdi_chevron_left:Lt["t"],mdi_chevron_right:Lt["v"],mdi_chevron_left_circle:Lt["u"],mdi_chevron_right_circle:Lt["w"],mdi_menu_down:Lt["M"],mdi_menu_right:Lt["N"],mdi_heart:Lt["H"],mdi_heart_outline:Lt["I"],mdi_arrow_left:Lt["f"],mdi_volume_high:Lt["bb"],mdi_sync:Lt["Z"],mdi_play_circle_outline:Lt["V"],mdi_information_outline:Lt["K"],mdi_magnify:Lt["L"],mdi_close_circle:Lt["C"],alert_type:!1,t24_top:"-1000px",t24_left:"-1000px",t24_display:"none",t3_top:"-1000px",t3_left:"-1000px",t3_display:"none",t4_top:"-1000px",t4_left:"-1000px",t4_display:"none",t5_top:"-1000px",t5_left:"-1000px",t5_display:"none",t6_top:"-1000px",t6_left:"-1000px",t6_display:"none",t11_display:"none",is_grammar:!1,is_ng_book:!1,is_story:!1,trial_guide_dialog:!1,trial_title:"",trial_html:"",opened_item:null,schedule_load:!1,loading_value:!0,loading_message:"잠시만 기다려주세요."}},watch:{course_mode(t,e){1===e&&0===t&&(this.search_keyword="",this.final_keyword="")},current_category_idx(t){const e=[];for(let s=0;s{const e=+t.unit.id;this.getUnits(t,e).then(t=>{}).catch(t=>{console.log(t)})},0),this.$store.commit("setIsLearned",!1)))}this.expanded&&(this.tab<7||10===this.tab)&&this.$store.state.is_learned&&(setTimeout(()=>{let t;this.sel_unit?t=+this.sel_unit.id:this.sel_book&&this.sel_book.unit&&(t=+this.sel_book.unit.id);let e=!(!this.expanded[0]||1!=this.expanded[0].schedule_type||1!=this.expanded[0].schedule_type_v);e&&(t=this.sel_unit.s_u_id),this.getUnits(this.expanded[0],t).then(t=>{if("open"==t){let t,s=this.getScheduleBookId(this.expanded[0]);if(e&&[g["h"],g["e"],g["g"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==g["e"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.major_done>0||+t.advanced_done>0);t=e.length||0}else if(this.expanded[0].booktype_1==g["g"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||(10===+this.expanded[0].category?+t.test_done:+t.mock_done)>0);t=e.length||0}else{let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||+t.test_done>0);t=e.length||0}else if(1==this.expanded[0].booktype_1){let e,i,o=0;for(e=0;e0&&(o+=.3333),+i.major_done>0&&(o+=.3333),+i.advanced_done>0&&(o+=.3333);t=o||0}else if(2==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.5),+i.advanced_done>0&&(t+=.5)}}else if(3==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.study_done>0&&(t+=.3333),10===this.tab?+i.test_done>0&&(t+=.3333):+i.mock_done>0&&(t+=.3333)}}else if(4==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.grammar_basics_done>0&&(t+=.3333),+i.grammar_deep_done>0&&(t+=.3333)}}else if(5==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.5),+i.story_m_done>0&&(t+=.5)}}else{t=0;for(let e=0;e0?(+i.voca_done>0&&(t+=.3333),+i.study_done>0&&(t+=.3333),+i.test_done>0&&(t+=.3333)):(+i.study_done>0&&(t+=.5),+i.test_done>0&&(t+=.5))}}let i=this.expanded[0].tot_unit_cnt?Number(this.expanded[0].tot_unit_cnt):0,o=i>0?Math.round(t/i*100):0,a=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),n=R(this.expanded[0]);if(n.complete_unit_cnt=String(t),n.progress=o,this.expanded.splice(0,1,Object.freeze(n)),this.books.splice(a,1,Object.freeze(n)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}}})},0),this.$store.commit("setIsLearned",!1)),this.select_disabled=!1}},getMockexamrecordId(t,e){null!==t&&0!==t&&this.mockexams[this.$store.state.mockexam.books_id]&&(this.mockexams[this.$store.state.mockexam.books_id].record_id=Number(t))},tab(t){this.reading_categories=[{text:"초등1",value:"1"},{text:"초등2",value:"2"},{text:"초등3",value:"3"},{text:"초등4",value:"4"},{text:"초등5",value:"5"},{text:"초등6",value:"6"}],this.level_items=[{text:"Lv. 1",value:"1"},{text:"Lv. 2",value:"2"},{text:"Lv. 3",value:"3"},{text:"Lv. 4",value:"4"}],this.select_level=1,this.level_exclusive=1,this.level_page=1,this.category_page=1}},computed:{categoryButtonsPerPage(){return 4},categoryTotalPages(){return Math.ceil(this.reading_categories.length/this.categoryButtonsPerPage)},visibleCategories(){const t=(this.category_page-1)*this.categoryButtonsPerPage,e=t+this.categoryButtonsPerPage;return this.reading_categories.slice(t,e).map((e,s)=>({...e,originalIndex:t+s}))},duplicateBookIds(){const t={},e=[];this.books.forEach(e=>{(+e.category<=3||10===+e.category)&&(t[e.id]=(t[e.id]||0)+1)});for(const s in t)t[s]>=2&&e.push(parseInt(s));return e},isStorybook(){return"reading"===this.menu},setCourseTabs(){let t=2.4;return t},showCourseBooks(){return t=>{let e="";t.grade.includes("e")?(e="초등",10===this.tab&&(e+=t.grade.replace("e",""))):t.grade.includes("m")?e="중등":t.grade.includes("h")&&(e="고등");const s=+t.category==this.tab,i=0===this.current_category_idx,o=this.course_categories[this.tab][this.current_category_idx].includes(e);return s&&(i||o)}}},mounted(){1==this.tab&&(this.$nextTick(()=>{let t=document.getElementById("tab1");if(t){let e=t.getBoundingClientRect();this.t24_display="block",this.t24_top=e.top+"px",this.t24_left=(e.left+e.left+e.width)/2+"px"}}),0===Object.keys(this.$route.query).length&&this.freeTrialGuide(1))},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},changeCategory(t){this.level_exclusive=+t,this.select_level=this.level_exclusive},categoryView(t){if("prev"===t&&this.category_page>1){if(this.category_page--,this.visibleCategories.length>0){const t=this.visibleCategories[this.visibleCategories.length-1];this.level_exclusive=+t.value,this.select_level=this.level_exclusive}}else if("next"===t&&this.category_page0)){const t=this.visibleCategories[0];this.level_exclusive=+t.value,this.select_level=this.level_exclusive}},searchFormattedBookName(t,e){const s=this.final_keyword,i=s.toUpperCase();function o(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let a,n,r;return"brand"===e?(a=t.split(" ")[0],a.replace(new RegExp(o(i),"g"),"$&")):"bookname"===e?(n=1===this.tab?`${t.split(" ")[1]} ${t.split(" ")[2]}`:t.split(" ").slice(1).join(" "),n.replace(new RegExp(o(i),"g"),"$&")):"grade"===e?(r=1===this.tab?`(LEVEL ${t.split(" ")[t.split(" ").length-1]})`:t.split(" ")[t.split(" ").length-1],r.replace(new RegExp(o(i),"g"),"$&")):void 0},searchKeyupCourseBook(t){if(13===t.keyCode||"Enter"===t.key){let t,e;this.final_keyword=this.search_keyword;const s=this.final_keyword,i=s.toUpperCase(),o=this.reading_books.filter(s=>{let o="";if(s.grade.includes("e")?o="초등":s.grade.includes("m")?o="중등":s.grade.includes("h")&&(o="고등"),s.category==this.tab&&(0===this.current_category_idx||this.course_categories[this.tab][this.current_category_idx].includes(o))){const o=s.bookname.toUpperCase(),a=o&&o.split(" ")[0];return 1===this.tab?(t=`${o.split(" ")[1]} ${o.split(" ")[2]}`,e=`(LEVEL ${o.split(" ")[o.split(" ").length-1]})`):(t=o.split(" ").slice(1).join(" "),e=o.split(" ")[o.split(" ").length-1]),a.includes(i)||t.includes(i)||e.includes(i)||!!s.unit_names&&s.unit_names.toUpperCase().includes(i)}});let a=[],n=!1;for(let r=0,l=o.length;rt.table_key==o[r].table_key),c=R(this.reading_books[l]),d=c.bookname;c.search_type="";const h=d.split(" ")[0];1===this.tab?(t=`${d.split(" ")[1]} ${d.split(" ")[2]}`,e=`(LEVEL ${d.split(" ")[d.split(" ").length-1]})`):(t=d.split(" ").slice(1).join(" "),e=d.split(" ")[d.split(" ").length-1]),h.includes(i)&&(c.search_name=h),t.includes(i)&&(c.search_name=t),e.includes(i)&&(c.search_name=e),c.unit_names&&c.unit_names.includes(i)&&(c.search_name=s,c.search_type="unit",n=!0),this.reading_books[l]=Object.freeze(c),a.push(c)}this.course_search_books=a,n&&this.course_search_books.length>0&&this.course_search_books.forEach(t=>{const e=[],s=this.books.filter((s,o)=>{const a=+t.id===+s.id&&s.unit_names.includes(i);return a&&e.push(o),a});s.forEach((s,i)=>{const o=R(s);o.search_name=t.search_name,s=Object.freeze(o),this.books[e[i]]=s})})}},HasMockExam(t,e,s){return!!(this.mock_load&&3==t&&e&&this.mockexams[+e])},setMockName(t){let e="";return this.is_mobile?e="평가":45==+this.mockexams[t.books_id].question_cnt?e="모의평가":20==+this.mockexams[t.books_id].question_cnt&&(e="듣기평가"),e},changeTab(t,e){if(this.last_tab&&this.last_tab<=3&&0!==this.course_mode&&[5,6,7].includes(e)&&this.$nextTick(()=>{setTimeout(()=>{const t=document.querySelector("tr");t&&this.isUniqueBook&&t.click()},50)}),"F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];0==JSON.parse(this.$store.state.tuto)[e]&&(this.$store.dispatch("updateTutorial",e),this[e+"_display"]="none")}if(0==JSON.parse(this.$store.state.tuto)["t"+(e+1)]){let t=document.getElementById("tab"+e);if(t){let s=t.getBoundingClientRect();this[`t${e+1}_top`]=s.top+"px",this[`t${e+1}_left`]=(s.left+s.left+s.width)/2+"px"}this[`t${e+1}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}if(this.loading)return!1;[5,6].includes(e)||[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,t?(this.last_tab=this.tab,this.setTab(e),this.expanded=[]):(null==this.last_tab&&(this.last_tab=1),this.setTab(this.last_tab),this.last_tab=null,this.expanded=[])},changePublisher(t){this.current_category_idx=t,this.search_keyword="",this.final_keyword=""},selectTab(t){if(this.course_mode=0,this.course_search_books=null,this.last_pick_tab=t,"F"==this.$store.state.product_type&&this.$store.state.tuto){let e=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(e){let t=e.classList[2];0==JSON.parse(this.$store.state.tuto)[t]&&(this.$store.dispatch("updateTutorial",t),this[t+"_display"]="none")}const s=2==t?5:24;if(0==JSON.parse(this.$store.state.tuto)["t"+s]){let e=document.getElementById("tab"+t);if(console.log("el",e),e){let t=e.getBoundingClientRect();this[`t${s}_top`]=t.top+"px",this[`t${s}_left`]=(t.left+t.left+t.width)/2+"px"}this[`t${s}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}this.freeTrialGuide(t),this.items_per_page=ou,[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,setTimeout(()=>{window.scroll_container&&(window.scroll_container.scrollTo({top:0,left:0}),this.expanded=[])},0),(4!==t||this.schedule_load)&&(this.setTab(t),this.currentBookInfoReset(),4!==t&&this.setScroll())},currentBookInfoReset(){this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null,this.course_book=null},courseBookClick(t){t.disable?this.disableDialog():(this.course_mode=1,this.course_book=t,this.duplicateBookIds.includes(t.id)?this.isUniqueBook=!1:this.$nextTick(()=>{const t=document.querySelector("tr");this.isUniqueBook=!0,t&&t.click()}))},courseDetailBackBtnClick(){this.expanded=[],this.course_mode=0,this.course_search_books=null,this.course_book=null,this.isUniqueBook=!1,this.currentBookInfoReset()},selectRow(t,e){if(this.course_book&&e.isExpanded&&this.isUniqueBook)return!1;if(this.select_disabled)return;if(this.mockexams_block[t.books_id])return;e.select(!0);const s={row:document.querySelector(".v-data-table__expanded")},i=document.querySelector(".v-data-table__expanded__content");if(i)var o=i.getBoundingClientRect().height;this.alert_type=!1,t.disable?(t.id&&-1!=String(t.id).indexOf("adm_null")&&(this.alert_type="adm_null"),this.disableDialog()):this.getUnits(t).then(e=>{switch(e){case"open":let e=(t.schedule_type,"단원"),i=t.complete_unit_seqs?t.complete_unit_seqs.split(",").length:0,a=t.tot_unit_cnt?+t.tot_unit_cnt:0;0==a&&t.unit_cnt&&+t.unit_cnt>0&&(a=+t.unit_cnt),this.study_progress=a>0?`${i} / ${a}${e}`:"",this.$store.commit("setBookDetails",{schedule_id:t.schedule_id,book_id:t.id,publisher:t.publisher,publishdate:t.publishdate,unit_cnt:t.unit_cnt}),t.cover_path&&(this.coverimg_url=`${g["k"]}/1/${window.encodeURIComponent(t.cover_path)}`);let n=this.getScheduleBookId(t);this.opened_item=this.$data[n],this.final_keyword&&this.searchUnitBg(t,n);const r={row:document.querySelector(".v-data-table__expanded")};if(s.row&&r.row){const t=s.row.getBoundingClientRect().top,e=r.row.getBoundingClientRect().top;if(e>t){const t=document.querySelector(".v-data-table__wrapper");t.scrollTo(0,t.scrollTop-o)}}break;case"close":case"error":this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null;break;default:}})},disableDialog(){this.alert_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.alert_dialog=!1},3e3)},updateSingleUnit(t,e){if(!t||!e)return;let s=this.getScheduleBookId(t);this.$data[s]&&this.getUnits(t,e),this.getProcessDate(t).then(e=>{let i=Number(e.complete_unit_cnt)||0,o=Number(e.tot_unit_cnt)||0,a=o>0?Math.round(i/o*100):0,n=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),r=this.books.filter(e=>+e.books_id==+t.books_id&&+e.schedule_id==+t.schedule_id);if(r=R(r[0]),r.complete_unit_cnt=String(i),r.tot_unit_cnt=String(o),r.progress=a,this.books.splice(n,1,Object.freeze(r)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}})},updateSingleMockExamUnit(t){let e=void 0!==t.unit_seq&&Number(t.unit_seq);if(!t||!1===e||isNaN(e)&&!t.new_mockexam)return;let s=void 0;if(s=this.expanded[0]?this.expanded[0]:this.books.find(e=>e.id==t.id),void 0==s)return;let i=void 0,o=void 0;if(this.$store.state.uclass>=20){for(let[c,d]of Object.entries(this.$data))if(0==c.indexOf("b-")&&c.split("-")[2]==t.id){i=c,o=R(d);break}}else{if(i=this.getScheduleBookId(t),i){let t=i.split("-");t&&t.length>1&&(-1!==t[1].indexOf(",")&&(t[1]=this.$store.state.schedule_id),i=t.join("-"))}o=R(this.$data[i])}if(void 0==i)return;let a,n=[],r=R(s),l=this.books.map(t=>this.getScheduleBookId(t)).indexOf(i);for(let[c,d]of Object.entries(o))n[+c]=d;if(isNaN(e)&&t.new_mockexam)this.$axios.get(`${g["w"]}/v2/book/${r.books_id}/schedule/${r.schedule_id}/type/0/user/${this.$store.state.uid}?mock=1&bt=0`).then(t=>{const e=this.setNewMockExam(t.data);this.$data[i]=Object.freeze(e.data),r.complete_unit_cnt=String(e.cmp_cnt),r.progress=e.progress,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))});else{let s=n[e];if(s.mock_pk=t.mock_pk,s.mock_cnt=t.done_cnt,s.mock_done=1,s.record_id=t.record_id,s.mock_status=this.unitStatusChecker(s,g["G"]),n.splice(e,1,s),this.$data[i]=Object.freeze(n),1==r.schedule_type){let t=n.filter(t=>Number(t.voca_done)>0||Number(t.study_done)>0||Number(t.mock_done)>0);a=t.length||0}else{a=0;for(let t=0;t0&&(a+=.3333),Number(n[t].study_done)>0&&(a+=.3333),Number(n[t].mock_done)>0&&(a+=.3333)):(Number(n[t].study_done)>0&&(a+=.5),Number(n[t].mock_done)>0&&(a+=.5))}let o=r.tot_unit_cnt?Number(r.tot_unit_cnt):0,c=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=c,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))}},getProcessDate(t){return new Promise((e,s)=>{this.$axios.get(`${g["w"]}/schedule/getprogress/${this.$store.state.uid}/${t.schedule_id}/${t.books_id}`).then(t=>{200==t.status?e(t.data):s()})})},toggleBookmark(t){if(this.bookmark_disabled)return!1;if("F"==this.$store.state.product_type&&this.$store.state.tuto&&0==JSON.parse(this.$store.state.tuto)["t6"]&&this.$store.dispatch("updateTutorial","t6"),this.alert_type=!1,t.disable||!t.schedule_id)return t.id&&-1!=String(t.id).indexOf("adm_null")&&(this.alert_type="adm_null"),this.disableDialog(),!1;this.bookmark_disabled=!0;let e={schedule_id:t.schedule_id,user_id:this.$store.state.uid,book_id:t.id};this.$axios.post(`${g["w"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=R(this.item_length);e?s[5]+=1:s[5]-=1,this.item_length=Object.freeze(s);for(let[i,o]of Object.entries(this.books))if(o.table_key==t.table_key){let t=R(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.$store.dispatch("showToast",{message:`북마크 교재${this.bookmarktext}되었습니다.`,duration:2e3})}this.bookmark_disabled=!1})},closeDialog(t){this[t]=!1,this.is_story=!1,clearTimeout(window.dialog_timeout)},shadowreadingConfirm(t,e=null){if(this.loading_unit)return!1;if(e)if(+t.seq>2){if(this.is_ng_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_ng_book=!1;else if(this.is_ng_book=!1,!this.checkAuthFree(t.seq))return!1;let s="쉐도우";this.sel_unit=t,this.setLearningDialog(s+"를 시작하시겠습니까?",null,null,99)},testConfirm(t,e=null){if(this.loading_unit)return!1;if(e)if(+t.seq>2){if(this.is_ng_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_ng_book=!1;else if(this.is_ng_book=!1,!this.checkAuthFree(t.seq))return!1;let s=null;if(!this.freepass)if(1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v){let e=this.getScheduleBookId(this.expanded[0]);if(e){let i=!0;for(let s=+t.seq-1;s>=0;s--){let o=this.$data[e][s];if(o.id!=t.id||o.mode!=g["bb"])break;if(isNaN(o.study_cnt)||!(+o.study_cnt>0)){i=!1;break}}if(!i)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1}}else if(null==t.study_pk||Number(t.study_cnt)<1)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;if(window.is_restudy>0&&Number(t.test_cnt)>2)return this.clickSound(),this.sel_unit=t,s=7,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;switch(this.sel_unit=t,t.test_status){case 1:case 2:this.exitSound(),s=6;break;case 3:this.clickSound(),s=5;break;default:this.clickSound(),s=2;break}this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog)},goResultGRAMMAR(){if(!this.chkCurVal())return!1;let t=this.learning_dialog_vma+g["R"];this.setBookInfo(this.expanded[0],this.sel_unit,t,!1,this.closeLearningDialog)},goStudyGRAMMAR(t){this.setBookInfoGRAMMAR(this.expanded[0],this.sel_unit,this.learning_dialog_vma,t.clear,this.closeLearningDialog)},setBookInfoGRAMMAR(t,e,s,i,o){if(console.log("setBookInfoGRAMMAR",t,e,s,i,o),!t||!e||!s)return!1;let a=R(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&this.$store.dispatch("initPage"),this.$axios.get(`${g["w"]}/v2/book/getgrammarcount?unit_id=${e.id}&type=${s}&sid=${t.schedule_id}`).then(e=>{if(200==e.status){let n=e.data.cnt;this.$store.dispatch("setBookInfoGRAMMAR",{book:t,unit:a,type:s,init:i,cnt:n}).then(t=>{this.$store.dispatch("setCurUnitId",a.id).then(()=>{i?(this.$store.commit("setClearPrevResult",!0),this.$store.dispatch("clearResultData").then(t=>{this.$store.commit("setLearningStatus",!0),this.$store.commit("setClearPrevResult",!1)})):([3,5,9,14,31].includes(this.learning_dialog_type)&&(this.$store.commit("setClearPrevResult",!0),this.$store.commit("setCurrentRestudy",!0)),this.$store.commit("setLearningStatus",!0)),o()})})}}).catch(t=>{console.error(t)})},alertVmaDialog(){this.null_vma_dialog=!0,window.dialog_timeout=window.setTimeout(()=>{this.null_vma_dialog=!1,window.dialog_timeout=null},3e3)},onResize(){if("F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];if(0==JSON.parse(this.$store.state.tuto)[e]){let t=e.split("")[1]-1,s=document.getElementById("tab"+t);if(s){let t=s.getBoundingClientRect();this[e+"_top"]=t.top+"px",this[e+"_left"]=(t.left+t.left+t.width)/2+"px"}}}if(0==JSON.parse(this.$store.state.tuto)["t6"]){let t=document.querySelector("#bookmark_switch");if(t){let e=0,s=document.body.offsetWidth;s<900?e=22.5:900<=s&&s<960?e=27.5:960<=s&&s<1264?e=30:1264<=s&&(e=35);let i=t.getBoundingClientRect();this.t6_top=i.top+i.height+"px",this.t6_left=i.left+e+"px"}}}},openMockExamConfirm(t,e,s,i=null,o=null){if(this.loading_unit)return!1;if(!t)return!1;if(null==i){this.sel_mockexam=this.mockexams[t],this.sel_mockexam.bookname=e;let i=this.books.find(e=>e.books_id==t);"3"==i.category&&(this.sel_mockexam.schedule_id=null),o&&(this.sel_mockexam.booktype=o),s&&this.expanded&&this.expanded[0]&&(this.sel_mockexam.unit_id=s.id?+s.id:null,this.sel_mockexam.s_u_id=s.s_u_id?+s.s_u_id:null,this.sel_mockexam.schedule_id=this.expanded[0].schedule_id,this.sel_mockexam.books_id=this.expanded[0].books_id,this.sel_mockexam.unit_name=s.name?s.name:"",this.sel_mockexam.ur_id=s.mock_pk?s.mock_pk:null,this.sel_mockexam.schedule_type=this.expanded[0].schedule_type,this.sel_mockexam.try_cnt=s.mock_cnt?+s.mock_cnt:1,s.schedule_name&&(this.sel_mockexam.bookname=s.schedule_name),s.record_id?this.sel_mockexam.record_id=s.record_id:this.sel_mockexam.record_id=null,1==this.sel_mockexam.schedule_type?(this.sel_mockexam.unit_seq=s.mode.length>1?+s.mode.replace(/[^0-9]/g,""):null,this.sel_mockexam.type_v_seq=s.seq?+s.seq:null):this.sel_mockexam.unit_seq=s.seq?+s.seq:null)}else{const e=this.mockexams[t];this.sel_mockexam={bookname:i.schedule_name,books_id:e.books_id,schedule_id:e.schedule_id,unit_name:null,record_id:s.mock_record_id?s.mock_record_id:null,id:e.id,question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,tot_question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,time:Number(e.time),question_seq:s.question_seq?s.question_seq:null,new_mockexam:!0,is_regular:s.is_regular,cnttext:s.name},s.regular_id&&Number(s.regular_id)>0&&(this.sel_mockexam.regular_id=s.regular_id)}this.mockexam_dialog=!0},storyConfirm(t,e=null,s){if(this.loading_unit)return!1;if(!e.unit&&t){const s=R(e);s.unit=t,e=Object.freeze(s)}this.sel_book=e;const i={[g["ab"]]:t.story_v_status,[g["Z"]]:t.story_m_status,[g["W"]]:t.story_a_status};let o=null;switch(i[s]){case 1:case 2:this.exitSound(),o=51;break;case 3:this.clickSound(),o=53;break;default:this.clickSound(),o=50;break}this.setDialogVMA(s),this.setDialogText(e,t,s,o,this.setLearningDialog)},freeTrialGuide(t){if(1===this.$store.getters.getTrialGuide("r"+t))return!1;const e={1:{title:"원서 오디오북",html:'내공스터디만의 영어원서 콘텐츠
\n 학년별 오디오북 시리즈를 제공합니다.
\n
파닉스 단계부터 기초를 다져보세요!
'},2:{title:"심화 스토리북",html:'내공스터디만의 심화 콘텐츠
\n 레벨별 스토리북 시리즈를 제공합니다.
\n
내신과 직결되는 리딩학습을 시작하세요!
'}};this.trial_title=e[t].title,this.trial_html=e[t].html,this.trial_guide_dialog=!0},closeTrialGuide(){console.log("good"),"F"!=this.$store.state.product_type?this.$store.dispatch("setTrialGuide","r"+this.tab):this.$store.commit("setTrialGuide",{key:"r"+this.tab,val:1})},levelView(t){if("prev"===t){if(1===this.level_page)return;this.level_page--}else if("next"===t){if(1==this.tab&&2===this.level_page)return;if(4===this.level_page)return;this.level_page++}const e=4*(this.level_page-1)+1,s=e+3;1==this.tab?(this.reading_categories=g["d"].filter(t=>+t.value>=e&&+t.value<=s),this.changeCategory("next"===t?e:e+3)):(this.level_items=[{text:"Lv. "+e,value:""+e},{text:"Lv. "+(e+1),value:""+(e+1)},{text:"Lv. "+(e+2),value:""+(e+2)},{text:"Lv. "+(e+3),value:""+(e+3)}],this.level_exclusive="next"===t?e:e+3,this.changeLevel())},changeLevel(){this.select_level=this.level_exclusive},async refresh(){this.books=[],this.books_tmp=[],this.search_keyword="",this.expanded=[],this.reading_books=[],this.$store.commit("setReadingBooks",[]);try{const t=await this.getCommonBooks();await this.getScheduleBooks(t),this.$refs.book_list_latest&&this.$refs.book_list_latest.getList(),this.setToast("최신 교재 목록으로 업데이트하였습니다.")}catch(t){console.error(t)}}},async beforeDestroy(){await caches.delete("ebook-covers")}},nu=au,ru=(s("fcbb"),Object(p["a"])(nu,Zh,Yh,!1,null,null,null)),lu=ru.exports;y()(ru,{VBtn:ot["a"],VBtnToggle:_i["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDataTable:Gh["a"],VDialog:ct["a"],VIcon:jt["a"],VLazy:yt["a"],VOverflowBtn:Wh["a"],VRow:ht["a"],VSheet:Se["a"],VSwitch:ye["a"],VTextField:ut["a"]}),fi()(ru,{Resize:Uh["a"]});var cu=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"book-vue"}},[t.getLearningStatus?i("learning",{key:"learning-index",attrs:{bookmode:"school",mode:t.$store.getters.getLearningMode,tab:t.tab,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,setDialogText:t.setDialogText,setLearningDialog:t.setLearningDialog,setDialogVMA:t.setDialogVMA,updateSingleMockExamUnit:t.updateSingleMockExamUnit}}):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"v-book-index static-container"},[i("left-bar-static",{key:"book-left-bar",staticClass:"child-white"},[i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("v-switch",{key:"book-left-bar-switch-1",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"최근 학습내역",color:"success","hide-details":"","input-value":7==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,7)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1),i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("v-switch",{key:"book-left-bar-switch-2",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"학습중인 교재",color:"success","hide-details":"","input-value":6==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,6)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1),i("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"},attrs:{id:"bookmark_switch"}},[i("v-switch",{key:"book-left-bar-switch-3",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"북마크 교재",color:"success","hide-details":"","input-value":5==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,5)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1)]),i("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("router-link",{staticClass:"left-label-title d-flex",staticStyle:{"text-decoration":"none"},attrs:{to:"/schedule/learningschedule"}},[i("div",{staticClass:"label-control",on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("label",[t._v("나의 학습 스케줄\n "),i("v-btn",{attrs:{icon:"",text:"",fab:""}},[i("v-icon",{attrs:{size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)])])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습 진행률")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[i("span",{domProps:{textContent:t._s(t.study_progress)}})])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("재학습")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[i("span",{domProps:{textContent:t._s(t.setRestudyText())}})])],1),i("div",{staticStyle:{flex:"1 1 auto"}})],1),i("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),i("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[i("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[i("a",{staticClass:"left-label-title d-flex"},[i("div",{staticClass:"label-control",class:{"success--label":null!=t.$store.state.current_book_id}},[i("label",[t._v("선택된 교재 정보\n "),i("v-icon",{class:{"success--text":t.coverimg_url},attrs:{disabled:""==t.coverimg_url,size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)},on:{click:t.openCoverImg}},[t._v(t._s(t.mdi_chevron_right)+"\n ")])],1)])])]),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작자")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publisher)+"\n ")])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작년도")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publishdate)+"\n ")])],1),i("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[i("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습일차")]),i("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_unit_cnt?t.$store.state.cur_book_unit_cnt+"일":"")+"\n ")])],1)],1)]),i("div",{staticClass:"right"},[i("v-sheet",{key:"book-right-sheet",staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[i("v-row",{staticClass:"width-100 ma-0 custom-tab-wrapper min-h-40px",class:""+this.menu},[i("v-col",{staticClass:"pa-0",class:{"before-divider":![2,3].includes(t.tab)},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":1==t.tab_class},attrs:{id:"tab1"},on:{click:function(e){return t.selectTab(1)}}},[t._v("\n 초등 듣기평가\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t11"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t11_display,type:"t11",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:t.t11_top,tool_left:t.t11_left,tool_translate:"translate(-50%, -100%)",text:"실전 음원을 통해 듣기평가 학습이 가능합니다."}}):t._e()],1),i("v-col",{staticClass:"pa-0",class:{"before-divider":![4,10].includes(t.tab)},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":2==t.tab_class},attrs:{id:"tab2"},on:{click:function(e){return t.selectTab(2)}}},[t._v("\n 중등 듣기평가\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t25"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t25_display,type:"t25",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:t.t25_top,tool_left:t.t25_left,tool_translate:"translate(-50%, -100%)",text:"중등 필수 듣기평가 학습이 가능합니다."}}):t._e()],1),i("v-col",{staticClass:"pa-0",class:{"before-divider":![3,10].includes(t.tab)},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":3==t.tab_class},attrs:{id:"tab3"},on:{click:function(e){return t.selectTab(3)}}},[t._v("\n 고등 듣기평가\n "),i("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t26"]?i("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t26_display,type:"t26",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:t.t26_top,tool_left:t.t26_left,tool_translate:"translate(-50%, -100%)",text:"고등 필수 듣기평가 학습이 가능합니다."}}):t._e()],1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.tab<7||10===+t.tab,expression:"tab < 7 || +tab === 10"}],staticClass:"content-child-2"},[i("v-row",{staticClass:"gradeselect-wrapper ma-0 width-100 min-h-40px",staticStyle:{border:"thin solid #edeeef"}},[i("v-col",{staticClass:"pa-0 height-100 d-flex align-center",staticStyle:{"padding-left":"1.25% !important"},attrs:{cols:5}},[t.tab>3?i("v-row",{staticClass:"ma-0 width-100"},[i("v-col",{staticClass:"pa-0 pr-1 height-100",attrs:{cols:1==t.tab?12:3}},[i("v-overflow-btn",{key:"ov-grade",staticClass:"custom-filter",attrs:{items:t.grade_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"success"},on:{change:t.changeGrade},scopedSlots:t._u([{key:"label",fn:function(){return[i("div",{staticClass:"mx-0"},[t._v("학년")])]},proxy:!0},{key:"append",fn:function(){return[i("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2335967587),model:{value:t.select_grade,callback:function(e){t.select_grade=e},expression:"select_grade"}})],1),i("v-col",{staticClass:"pa-0 pr-1 height-100 mr-2",attrs:{cols:"3"}},[i("v-overflow-btn",{key:"ov-sort",staticClass:"custom-filter",attrs:{items:t.sort_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"#ffa025"},scopedSlots:t._u([{key:"label",fn:function(){return[i("span",{staticClass:"mx-0"},[t._v(" 정렬 ")])]},proxy:!0},{key:"append",fn:function(){return[i("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2022726672),model:{value:t.sortBy,callback:function(e){t.sortBy=e},expression:"sortBy"}})],1),i("RefreshBtn",{on:{click:t.refresh}})],1):t._e(),t.tab<=3&&0===t.listening_mode?i("v-row",{staticClass:"ma-0"},[i("v-col",{class:["pa-0 pr-1 height-100",1===t.tab?"listening-category-container":""],staticStyle:{width:"max-content",display:"flex"}},[i("div",{staticClass:"category-scroll-container"},t._l(t.listening_categories[t.tab],(function(e,s){return i("v-btn",{key:"listening-publisher-"+s,staticClass:"category-btn mr-2",class:t.current_publisher_idx===s?"white--text":"grey--text",attrs:{depressed:"",rounded:"",color:t.current_publisher_idx===s?"success":"grey lighten-4"},on:{click:function(e){return t.changePublisher(s)}}},[t._v("\n "+t._s(e)+"\n ")])})),1),i("RefreshBtn",{on:{click:t.refresh}})],1)],1):1===t.tab&&1===t.listening_mode?i("v-row",{staticClass:"ma-0 width-100"},[i("v-col",{staticClass:"pa-0 pr-1 height-100"},[i("div",{staticClass:"cursor grey--text",on:{click:t.membershipDetailBackBtnClick}},[i("span",[t._v("<")]),i("span",{staticClass:"underline ml-1"},[t._v("초등 듣기평가 교재목록")])])])],1):t._e()],1),i("v-col",{staticClass:"pa-0",staticStyle:{"align-self":"center","padding-right":"3.5% !important"},attrs:{cols:4,offset:"3","offset-sm":3}},[i("v-row",[i("v-text-field",{directives:[{name:"show",rawName:"v-show",value:1!==t.listening_mode,expression:"listening_mode !== 1"}],staticClass:"search-input float-right",staticStyle:{width:"90%"},attrs:{"append-icon":t.search_keyword?"":t.mdi_magnify,id:"search",label:"교재명, 단원명, 제작자",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":t.mdi_close_circle,color:"success"},on:{blur:t.searchBlur,keyup:function(e){1==t.tab?t.searchKeyupListeningBook(e):t.searchKeyup(e)}},model:{value:t.search_keyword,callback:function(e){t.search_keyword=e},expression:"search_keyword"}})],1)],1)],1),1!==t.tab||0!==t.listening_mode?i("v-row",{staticClass:"mx-0"},[i("v-col",{staticClass:"py-0 pos-rel px-0",attrs:{cols:"12"}},[i("v-data-table",{key:"book-list",staticClass:"custom-dt over-y-scroll",attrs:{id:"book-list-dttbl",headers:t.headers,items:t.books,"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":t.item_key,"items-per-page":t.items_per_page,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.","hide-default-footer":"","hide-default-header":"","fixed-header":"","single-select":"",sortBy:t.sortBy,search:t.tableSearch,"custom-filter":t.filterTabs,"custom-sort":t.sortTabs,height:"64vh"},on:{"click:row":t.selectRow},scopedSlots:t._u([{key:"item.data-table-expand",fn:function(e){var s=e.isExpanded,o=e.isSelected,a=e.item;return[i("div",[i("v-lazy",{attrs:{transition:""}},[i("v-icon",{directives:[{name:"show",rawName:"v-show",value:s,expression:"isExpanded"}],staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_down))])],1),o&&t.loading_unit?[i("icon-rolling",{attrs:{color:"#2196f3",size:"16",strokewidth:"12",absolute:""}})]:t._e(),i("v-icon",{directives:[{name:"show",rawName:"v-show",value:!s&&!(o&&t.loading_unit),expression:"!isExpanded && !(isSelected && loading_unit)"}],staticClass:"act-ico",class:{"grey--text text--lighten-2":t.mockexams_block[a.books_id]},attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_right))])],2)]}},{key:"item.bookmark",fn:function(e){var s=e.item;return[i("v-lazy",{attrs:{"min-height":"40px",transition:""}},[i("v-btn",{staticClass:"mx-0",class:[1==Number(s.bookmark)?"pink--text":"grey--text",s.disable?"text--lighten-3":"text--lighten-2"],attrs:{large:"",text:"",icon:"",ripple:!1},on:{click:function(e){return e.stopPropagation(),t.toggleBookmark(s)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[1==Number(s.bookmark)?i("v-icon",{attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart))]):i("v-icon",{staticClass:"act-ico",attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart_outline))])],1)],1)]}},{key:"item.info",fn:function(e){var s=e.item;return[i("v-row",{staticClass:"width-100 d-flex align-center min-h-40px",attrs:{dense:"","no-gutters":""}},[i("v-col",{staticClass:"row-name d-flex align-center",attrs:{cols:"8"}},[i("div",{staticClass:"book-title",class:{"grey--text-d7":s.disable},domProps:{innerHTML:t._s(1!==t.tab?s.search_name||s.schedule_name||s.bookname:s.schedule_name||s.bookname)}}),s.subtitle?i("div",{staticClass:"book-subtitle before-divider ml-3 grey--text",domProps:{textContent:t._s(s.subtitle)}}):t._e(),11===+s.booktype||s.booktype_2===t.TAG_HOT||31===+s.booktype?i("div",{staticClass:"book-subtitle ml-1 fw-300 booktag hot",class:{"opacity-half":s.disable}},[t._v("\n HOT\n ")]):s.booktype_2===t.TAG_NEW||1==s.category&&0===Number(s.booktype)||2==s.category&&11!=s.booktype||3==s.category&&0===Number(s.booktype)?i("div",{staticClass:"book-subtitle ml-1 fw-300 booktag new",class:{"opacity-half":s.disable}},[t._v("\n NEW\n ")]):s.booktype_2===t.TAG_VOCA?i("div",{staticClass:"book-subtitle ml-1 fw-300 booktag voca",class:{"opacity-half":s.disable}},[t._v("\n VOCA\n ")]):t._e(),t.HasMockExam(s.category,s.books_id,s)&&!s.mockexam||s.mockexam&&+s.category<=3&&31===+s.booktype?i("div",{staticClass:"mockexam-div height-100 before-divider ml-3"},[i("v-btn",{staticClass:"px-xl-3 px-lg-2 mock-exam-btn ml-2",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",large:"",ripple:!1,color:"#FF5459",rounded:""},on:{click:function(e){return e.stopPropagation(),t.openMockExamConfirm(s.books_id,s.bookname,null,null,+s.booktype)}}},[i("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:"",color:"white"}},[t._v(t._s(t.mdi_play))]),i("b",{staticClass:"ml-n1 white--text",domProps:{textContent:t._s(t.setMockName(s))}})],1)],1):t._e()]),i("v-col",{staticClass:"row-progress d-flex align-center justify-center",attrs:{cols:"4"}},[i("v-lazy",{staticClass:"lazy-progress"},[i("div",{staticClass:"progress-wrap pos-rel width-100 height-100"},[i("b",{staticClass:"under-text fw-700",class:{"grey--text text--lighten-1":!s.progress}},[t._v("  "+t._s(s.progress)+"%  ")]),i("div",{staticClass:"progress-gauge pos-abs height-100 left-0 top-0 overflow-hidden text-right",style:"width:"+s.progress+"%"},[i("b",{staticClass:"white--text tw-800"},[t._v("  "+t._s(s.progress)+"%  ")])])])])],1)],1)]}},{key:"expanded-item",fn:function(e){var s=e.item;return[t.$data[t.getScheduleBookId(s)]?[i("unit-template",{attrs:{data:t.$data,menu:t.menu,headers:t.headers,item:s,is_mobile:t.is_mobile,getScheduleBookId:t.getScheduleBookId,setListBtnText:t.setListBtnText,setBtnText:t.setBtnText,grammarConfirm:t.grammarConfirm,vmaConfirm:t.vmaConfirm,shadowreadingConfirm:t.shadowreadingConfirm,openMockExamConfirm:t.openMockExamConfirm,studyConfirm:t.studyConfirm,testConfirm:t.testConfirm}})]:t._e()]}}],null,!0)}),i("div",{directives:[{name:"show",rawName:"v-show",value:t.scroll_loading,expression:"scroll_loading"}],staticClass:"linear-activity overflow-hidden width-100 pos-abs bottom-0"},[i("div",{staticClass:"indeterminate pos-rel width-100 height-100"})])],1)],1):t._e(),1===t.tab&&0===t.listening_mode?i("v-row",{staticClass:"mx-0 membership-row"},[i("v-col",{staticClass:"py-0 pos-rel px-0 d-none",attrs:{cols:"12"}},[i("v-data-table",{staticClass:"temp-table",attrs:{id:"book-list-dttbl"}})],1),i("v-col",{staticClass:"py-0 pos-rel px-0 membership-item-wrapper",attrs:{cols:"12"}},[t.final_keyword&&t.listening_search_books&&0==t.listening_search_books.length||t.isEmptyListeningBook||1===+t.is_openbook&&!t.isEmptyListeningBook&&0==t.listening_books.length?[i("div",{staticClass:"v-data-table__empty-wrapper border-ede thin-b d-flex align-center justify-center",staticStyle:{color:"rgba(0, 0, 0, 0.38)","font-size":"1.1rem",padding:"1rem",height:"7vh"}},[t._v("\n 등록된 교재가 없습니다.\n ")])]:[i("v-col",{staticClass:"membership-item-wrap"},t._l(t.listening_search_books?t.listening_search_books:t.listening_books,(function(e,o){return i("v-lazy",{directives:[{name:"show",rawName:"v-show",value:t.showListeningBooks(e),expression:"showListeningBooks(item)"}],key:"membership_table_"+o,attrs:{options:{threshold:.5},transition:"fade-transition"}},[i("v-card",{staticClass:"cursor",on:{click:function(s){return t.membershipBookClick(e)}}},[i("div",{staticClass:"d-flex",class:[e.disable?"book-disabled pos-rel":""]},[e.disable?i("div",{staticClass:"pos-abs lock-div"},[i("img",{attrs:{src:s("1195")}})]):t._e(),i("img",{staticClass:"book-cover-img",staticStyle:{filter:"brightness(98%)"},attrs:{src:t.CDN+"/1/"+e.cover_path,alt:"book-cover",rel:"preload"}}),i("div",{staticClass:"membership-book-info"},[i("span",{staticClass:"font-weight-bold badge"},[t._v("자체 콘텐츠")]),e.search_name&&t.listening_search_books?i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"brand"))}}):i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[t._v("\n "+t._s(e.bookname&&e.bookname.split(" ")[0])+"\n ")]),i("div",{staticClass:"mb-1 d-flex"},[e.search_name&&t.listening_search_books?i("div",[i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:t._s(t.searchFormattedBookName(e.bookname,"bookname"))}})]):i("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[t._v("\n "+t._s(e.bookname.split(" ").slice(1).join(" "))+"\n ")])]),i("div",{staticClass:"membership-tag-wrap"},t._l(["MP3","어휘","스크립트"],(function(e,s){return i("span",{key:"membership_tag_"+s,staticClass:"membership-tag"},[t._v(t._s(e))])})),0)])])])],1)})),1)]],2)],1):t._e()],1),i("div",{directives:[{name:"show",rawName:"v-show",value:7==t.tab,expression:"tab == 7"}]},[i("book-list-latest",{key:"book-list-3",ref:"book_list_latest",attrs:{type:"listening",query:t.query_startdate,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,getLearningStatus:t.getLearningStatus,tab:t.tab,updateSingleUnit:t.updateSingleUnit,unitStatusChecker:t.unitStatusChecker,updateTmpSelUpdate:t.updateTmpSelUpdate}})],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("alert_dialog")}},model:{value:t.alert_dialog,callback:function(e){t.alert_dialog=e},expression:"alert_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},["adm_null"==t.alert_type?[t._v("다른 학원의 수업자료를 무상 공유해드립니다."),i("br"),t._v("배정된 담당자를\n 통해 문의하세요!")]:[t._v("해당 교재는 비활성화 되어있습니다."),i("br"),t._v("담당 선생님께\n 문의하세요!")]],2)],1)],1),i("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeLearningDialog},model:{value:t.learning_dialog,callback:function(e){t.learning_dialog=e},expression:"learning_dialog"}},[i("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[i("b",{domProps:{textContent:t._s(t.dialog_title)}})])]),[1,11,12,16,17].includes(t.learning_dialog_type)?t._e():i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[i("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.setBookName)}}),i("br"),i("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.setUnitName)}})])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[i("v-row",{attrs:{dense:""}},[0==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[1,11,16].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)]:2==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:3==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.openRestudyDialog}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.STUDY})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[4].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:5==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:6==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:7!=t.learning_dialog_type||t.isProcessResult?[8,13].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[9,14].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])]):i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[10,15].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[28].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[29,30].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!1})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[32].includes(t.learning_dialog_type)?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[i("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[12,17].includes(t.learning_dialog_type)&&!t.isProcessResult?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:99==t.learning_dialog_type?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goShadowReading}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:t._e():[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1),i("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]],2)],1),i("div",{staticClass:"pos-abs border-ede thin-l width-100 height-100 white",class:[t.restudy_dialog?"opacity-1":"opacity-0"],attrs:{id:"from-right-slide-dialog"}},[i("v-card-text",{staticClass:"text-center pa-0 pos-rel top-0",attrs:{id:"dialog-new-text"}},[i("div",{staticClass:"pos-abs rd-arrow"},[i("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1},on:{click:t.closeRestudyDialog}},[i("v-icon",[t._v(t._s(t.mdi_arrow_left))])],1)],1),i("v-row",{attrs:{align:"center",justify:"center","no-gutters":""}},[i("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.FLASHCARD},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.FLASHCARD)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",[i("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_volume_high))]),i("br"),i("b",{staticClass:"fs-title"},[t._v("리스닝 학습")]),i("br"),i("br"),i("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"}},[t._v("\n 무제한 듣기 학습\n ")])],1)]),i("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.STUDY},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.STUDY)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("div",{staticClass:"border-ede thin-l"},[i("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_sync))]),i("br"),i("b",{staticClass:"fs-title"},[t._v("전체 재학습")]),i("br"),i("br"),i("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"},domProps:{textContent:t._s(t.restudy_cnt_ment)}})],1)])],1)],1),i("v-card-actions",{staticClass:"text-center pos-abs bottom-0 width-100 align-start",staticStyle:{height:"28%"},attrs:{id:"dialog-new-actions"}},[i("v-row",{attrs:{dense:"","no-gutters":"",justify:"center"}},[i("v-col",{attrs:{cols:"4"}},[i("v-btn",{staticClass:"subtitle-1",attrs:{color:"success",rounded:"",block:"",depressed:"",large:"",height:"2.7rem !important",ripple:!1},on:{click:t.startRestudy}},[i("b",{staticClass:"fw-800"},[t._v("재학습 시작")])])],1)],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.restudy_false_dialog=!1}},model:{value:t.restudy_false_dialog,callback:function(e){t.restudy_false_dialog=e},expression:"restudy_false_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[i("span",{staticClass:"title"},[t._v("재학습 가능 횟수(3회)를 모두 학습하셨습니다.")])])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[i("v-col",{staticClass:"py-3",attrs:{cols:"12"}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.restudy_false_dialog=!1}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeMockExamConfirm},model:{value:t.mockexam_dialog,callback:function(e){t.mockexam_dialog=e},expression:"mockexam_dialog"}},[i("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[i("v-row",[i("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[i("h3",{staticClass:"title"},[t.sel_mockexam?[t.sel_mockexam.schedule_id&&!t.sel_mockexam.new_mockexam?[i("b",[t._v("\n 듣기"+t._s(t.sel_mockexam.booktype&&31===+t.sel_mockexam.booktype?"평가를":"학습을")+"\n 시작하시겠습니까?\n ")])]:[t.sel_mockexam.new_mockexam?i("b",[t._v("\n "+t._s(t.sel_mockexam.cnttext)+"를 시작하시겠습니까?\n ")]):20==t.sel_mockexam.question_cnt?i("b",[t._v("듣기평가를 시작하시겠습니까?")]):i("b",[t._v("모의평가를 시작하시겠습니까?")])]]:t._e()],2)]),i("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[t.sel_mockexam&&t.sel_mockexam.bookname?i("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.sel_mockexam.bookname)}}):t._e(),i("br"),t.sel_mockexam&&t.sel_mockexam.unit_name?i("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.sel_mockexam.unit_name)}}):t._e()])],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[t.sel_mockexam?i("v-row",{attrs:{dense:""}},[t.sel_mockexam.schedule_id?[null===t.sel_mockexam.record_id?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("재평가")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]]:[null===t.sel_mockexam.record_id?[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)]:[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[i("span",{staticClass:"title"},[t._v("재시험")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[i("span",{staticClass:"title"},[t._v("성적표")])])],1)]]],2):t._e()],1)],1)],1),i("v-dialog",{attrs:{"content-class":"cover-dialog",transition:!1,persistent:""},on:{"click:outside":function(e){t.coverimg_dialog=!1}},model:{value:t.coverimg_dialog,callback:function(e){t.coverimg_dialog=e},expression:"coverimg_dialog"}},[i("v-card",{staticClass:"ma-auto"},[i("img",{staticStyle:{"max-height":"40vh",height:"40vh"},attrs:{src:t.coverimg_url}})])],1),t.$store.state.product_type==t.PRODUCT_FREE?i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_free_dialog")}},model:{value:t.prevent_free_dialog,callback:function(e){t.prevent_free_dialog=e},expression:"prevent_free_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--mode title",class:[t.is_mobile?"py-3":"py-8"]},[t.is_grammar||t.is_ng_book?i("span",[t._v("\n 해당 유닛은 유료 결제 이후 학습 가능합니다.\n ")]):t.is_vip_book?i("span",[t._v("\n 멤버십 교과서는 정식가입 후 이용 가능합니다.\n ")]):i("span",[t._v(" 해당 유닛은 유료 결제 이후 학습 가능합니다. ")])])],1)],1):t._e(),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_advanced_dialog")}},model:{value:t.prevent_advanced_dialog,callback:function(e){t.prevent_advanced_dialog=e},expression:"prevent_advanced_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[t._v("올해 개정된 교육과정으로"),i("br"),t._v("조만간 업데이트 될\n 예정입니다.")])],1)],1),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:t.$store.state.a_info_dialog,callback:function(e){t.$set(t.$store.state,"a_info_dialog",e)},expression:"$store.state.a_info_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[i("v-row",[i("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[i("v-icon",{staticStyle:{width:"1.1rem !important",height:"1.1rem !important","margin-top":"-0.2rem"},attrs:{color:"success"}},[t._v(t._s(t.mdi_information_outline))]),t._v(" "),i("span",{staticClass:"success--text"},[t._v("잠깐! 체험해보셨나요?")]),i("br"),i("div",{staticStyle:{width:"100%",height:"12px"}}),i("span",[t._v("초등, 중등, 고등 영어 듣기평가는 ")]),i("br"),i("span",[i("span",{staticClass:"black--text"},[t._v("테스트와 딕테이션 ")]),t._v("학습이\n 가능합니다.")])],1)],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeGomain}},[i("span",{staticClass:"title"},[t._v("종료")])])],1),i("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeCancel}},[i("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),i("v-dialog",{attrs:{scrollable:"",width:"35em","max-width":"450px",transition:!1,persistent:""},model:{value:t.trial_guide_dialog,callback:function(e){t.trial_guide_dialog=e},expression:"trial_guide_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[i("v-row",[i("v-col",{staticClass:"title text-center px-0 pb-0 pt-2",attrs:{cols:"12"}},[i("h3",{staticClass:"success--text pb-3 mb-2",staticStyle:{"border-bottom":"1px dashed #d8d8d8","font-size":"1.2rem","font-weight":"800 !important"}},[t._v("\n "+t._s(t.trial_title)+"\n ")])]),i("v-col",{staticClass:"text-center grey--text",staticStyle:{"font-size":"1.2rem","line-height":"1.4","padding-top":"2rem","padding-bottom":"2rem"},attrs:{cols:"12"},domProps:{innerHTML:t._s(t.trial_html)}})],1)],1),i("v-card-actions",{staticClass:"text-center border-ede thin-t pa-0"},[i("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-btn",{staticStyle:{height:"calc(2.5 * (1rem + 2px) + 24px) !important","background-color":"#1bd05b","border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.trial_guide_dialog=!1,t.closeTrialGuide()}}},[i("span",{staticClass:"title white--text"},[t._v("확인")])])],1)],1)],1)],1)],1)],1)},du=[];window.is_restudy=0,window.dialog_timeout=null,window.render_chk_interval=null,window.load_timeout=null,window.timeout1=null,window.scroll_container=null;const hu=10;var uu={name:"book-school",mixins:[mh],components:{UnitTemplate:Eh,RefreshBtn:Oh},data(){return{STUDY:g["bb"],TEST:g["hb"],FLASHCARD:g["r"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],MOCK_EXAM:g["G"],GRAMMAR_THEORY:g["u"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],CDN:g["k"],BOOK_NORMAL:g["h"],BOOK_BANK:g["e"],BOOK_VOCA:g["j"],BOOK_LISTENING:g["g"],BOOK_GRAMMAR:g["f"],TAG_NEW:g["fb"],TAG_VOCA:g["gb"],TAG_HOT:g["eb"],PRODUCT_FREE:g["P"],UCLASS_ETC:g["jb"],tab:1,tab_class:1,last_tab:null,search_keyword:"",final_keyword:"",select_grade:null,sortBy:null,loading:!1,loading_unit:!1,mock_load:!1,sel_unit:null,headers:Object.freeze([{text:"bookmark",value:"bookmark",align:"center before-divider",sortable:!1,width:"0"},{text:"info",value:"info",align:"left px-0 before-divider",sortable:!1,width:"100%"}]),item_key:"table_key",expanded:[],books:[],books_tmp:[],is_openbook:0,listening_books:[],listening_search_books:null,isEmptyListeningBook:!1,listening_categories:{1:["전체","초등3","초등4","초등5","초등6"],2:["전체","중등1","중등2","중등3"],3:["전체","고등1","고등2","고등3"]},listening_book:null,listening_mode:0,membership_publisher:["NE능률","지학사"],membership_books:[],membership_search_books:null,current_publisher_idx:0,mockexams:{},mockexams_block:{},sel_mockexam:null,search:"",item_length:Object.freeze({1:0,2:0,3:0,4:0,5:0,6:0}),page:1,items_per_page:hu,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:g["r"],restudy_cnt_ment:"무제한 재학습",restudy_false_dialog:!1,mockexam_dialog:!1,select_disabled:!1,scroll_loading:!1,query_tab:null,query_startdate:null,query_sid:null,query_bid:null,query_stype:null,query_uid:null,query_useq:null,search_book_order:!1,unwatch_once:null,new_sorting:!1,prevent_free_dialog:!1,prevent_advanced_dialog:!1,freepass:!1,is_mobile:this.$store.state.is_mobile,isUniqueBook:!1,init_scroll:!1,mdi_chevron_right:Lt["v"],mdi_menu_down:Lt["M"],mdi_menu_right:Lt["N"],mdi_heart:Lt["H"],mdi_heart_outline:Lt["I"],mdi_arrow_left:Lt["f"],mdi_volume_high:Lt["bb"],mdi_sync:Lt["Z"],mdi_play_circle_outline:Lt["V"],mdi_information_outline:Lt["K"],mdi_close_circle:Lt["C"],mdi_magnify:Lt["L"],mdi_play:Lt["T"],alert_type:!1,t7_top:"-1000px",t7_left:"-1000px",t7_display:"none",t8_top:"-1000px",t8_left:"-1000px",t8_display:"none",t9_top:"-1000px",t9_left:"-1000px",t9_display:"none",t10_top:"-1000px",t10_left:"-1000px",t10_display:"none",t11_top:"-1000px",t11_left:"-1000px",t11_display:"none",t25_top:"-1000px",t25_left:"-1000px",t25_display:"none",t26_top:"-1000px",t26_left:"-1000px",t26_display:"none",t6_top:"-1000px",t6_left:"-1000px",t6_display:"none",is_grammar:!1,is_ng_book:!1,is_vip_book:!1,trial_guide_dialog:!1,trial_title:"",trial_html:"",opened_item:null,schedule_load:!1,category_books:[]}},watch:{schedule_load(t){if(t){const t=(this.listening_books||[]).filter(t=>+t.category===+this.tab);if(1==this.tab)if(0===this.current_publisher_idx)this.applyEmptyFlag(t,"refresh : tab - 1 v- 1");else{const e=this.listening_categories[this.tab][this.current_publisher_idx],s=t.filter(t=>{const s=t.grade||"";let i="";return s.startsWith("e")?i="초등"+s.slice(1):s.startsWith("m")?i="중등"+s.slice(1):s.startsWith("h")&&(i="고등"+s.slice(1)),i===e});this.applyEmptyFlag(s,"refresh : tab - 1 v - 23")}else[2,3].includes(this.tab)&&this.applyEmptyFlag(this.listening_books);this.category_books=t}},listening_mode(t,e){1===e&&0===t&&(this.search_keyword="",this.final_keyword="")},final_keyword(t){t&&""!==t||(this.listening_search_books=null)},getLearningStatus(t,e){!0===t&&!1===e&&(this.select_disabled=!0),!1===t&&!0===e&&(this.expanded&&(this.tab<7||10===this.tab)&&this.$store.state.is_learned&&(setTimeout(()=>{let t=this.sel_unit&&this.sel_unit.id,e=1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v;e&&(t=this.sel_unit.s_u_id),this.getUnits(this.expanded[0],t).then(t=>{if("open"==t){let t,s=this.getScheduleBookId(this.expanded[0]);if(this.expanded[0])if(e&&this.expanded[0]&&[g["h"],g["e"],g["g"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==g["e"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.major_done>0||+t.advanced_done>0);t=e.length||0}else if(this.expanded[0].booktype_1==g["g"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||(10===+this.expanded[0].category?+t.test_done:+t.mock_done)>0);t=e.length||0}else{let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||+t.test_done>0);t=e.length||0}else if(1==this.expanded[0].booktype_1){let e,i,o=0;for(e=0;e0&&(o+=.3333),+i.major_done>0&&(o+=.3333),+i.advanced_done>0&&(o+=.3333);t=o||0}else if(2==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.5),+i.advanced_done>0&&(t+=.5)}}else if(3==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.study_done>0&&(t+=.3333),10===this.tab?+i.test_done>0&&(t+=.3333):+i.mock_done>0&&(t+=.3333)}}else if(4==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.grammar_basics_done>0&&(t+=.3333),+i.grammar_deep_done>0&&(t+=.3333)}}else{t=0;for(let e=0;e0?(+i.voca_done>0&&(t+=.3333),+i.study_done>0&&(t+=.3333),+i.test_done>0&&(t+=.3333)):(+i.study_done>0&&(t+=.5),+i.test_done>0&&(t+=.5))}}if(this.expanded[0]){let e=this.expanded[0].tot_unit_cnt?+this.expanded[0].tot_unit_cnt:0,i=e>0?Math.round(t/e*100):0,o=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),a=R(this.expanded[0]);if(a.complete_unit_cnt=String(t),a.progress=i,this.expanded.splice(0,1,Object.freeze(a)),this.books.splice(o,1,Object.freeze(a)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}}}})},0),this.$store.commit("setIsLearned",!1)),this.select_disabled=!1)},getMockexamrecordId(t,e){null!==t&&0!==t&&this.mockexams[this.$store.state.mockexam.books_id]&&(this.mockexams[this.$store.state.mockexam.books_id].record_id=+t)},tab(t){if(0!==this.current_publisher_idx&&(this.current_publisher_idx=0),[1,2,3].includes(t)){const t=(this.listening_books||[]).filter(t=>+t.category===+this.tab);this.category_books=t,this.applyEmptyFlag(t,"tab - v : 0")}},current_publisher_idx(t){if(0===t){const t=this.listening_books.filter(t=>+t.category===+this.tab);return void this.applyEmptyFlag(t,"current_publisher_idx - v : 0")}const e=[];for(let s=0;s+t.category===+this.tab);if(0===this.current_publisher_idx)return void this.applyEmptyFlag(e,"listening_books - v : 0");const s=this.listening_categories[this.tab][this.current_publisher_idx],i=e.filter(t=>{const e=t.grade||"";let i="";return e.startsWith("e")?i="초등"+e.slice(1):e.startsWith("m")?i="중등"+e.slice(1):e.startsWith("h")&&(i="고등"+e.slice(1)),i===s});this.applyEmptyFlag(i,"listening_books - v : 1")},deep:!0}},computed:{duplicateBookIds(){const t={},e=[];this.books.forEach(e=>{+e.category<=3&&(t[e.id]=(t[e.id]||0)+1)});for(const s in t)t[s]>=2&&e.push(parseInt(s));return e},showListeningBooks(){return t=>{let e="";t.grade.includes("e")?(e="초등",e+=t.grade.replace("e","")):t.grade.includes("m")?(e="중등",e+=t.grade.replace("m","")):t.grade.includes("h")&&(e="고등",e+=t.grade.replace("h",""));const s=+t.category==this.tab,i=0===this.current_publisher_idx,o=this.listening_categories[this.tab][this.current_publisher_idx].includes(e);return s&&(i||o)}},duplicateMembershipBookIds(){const t={},e=[];this.books.forEach(e=>{1===e.category&&(t[e.id]=(t[e.id]||0)+1)});for(const s in t)t[s]>=2&&e.push(parseInt(s));return e},isMembershipBook(){return this.final_keyword&&(!this.membership_search_book||0===this.membership_search_book.length)}},mounted(){1==this.tab&&(this.$nextTick(()=>{let t=document.getElementById("tab1");if(t){let e=t.getBoundingClientRect();this.t11_display="block",this.t11_top=e.top+"px",this.t11_left=(e.left+e.left+e.width)/2+"px"}}),0===Object.keys(this.$route.query).length&&this.freeTrialGuide(1))},created(){this.$store.state.is_mobile&&(this.is_mobile=!0)},methods:{setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},searchFormattedBookName(t,e){const s=this.final_keyword,i=s.toUpperCase();function o(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let a,n,r;return"brand"===e?(a=t.split(" ")[0],a.replace(new RegExp(o(i),"g"),"$&")):"bookname"===e?(n=t.split(" ").slice(1).join(" "),n.replace(new RegExp(o(i),"g"),"$&")):"grade"===e?(r=1===this.tab?`(LEVEL ${t.split(" ")[t.split(" ").length-1]})`:t.split(" ")[t.split(" ").length-1],r.replace(new RegExp(o(i),"g"),"$&")):void 0},convertKorGradeToEngGrade(t){let e="";return t.includes("초등")?e+="e"+t.replace("초등",""):t.includes("중등")?e+="m"+t.replace("중등",""):t.includes("고등")&&(e+="h"+t.replace("고등","")),e},searchKeyupListeningBook(t){if(13===t.keyCode||"Enter"===t.key){let t,e;this.final_keyword=this.search_keyword;const s=this.final_keyword,i=s.toUpperCase(),o=this.listening_books.filter(s=>{if(1==s.category){const o=s.bookname.toUpperCase(),a=o&&o.split(" ")[0];return t=o.split(" ").slice(1).join(" "),e=o.split(" ")[o.split(" ").length-1],a.includes(i)||t.includes(i)||e.includes(i)||!!s.unit_names&&s.unit_names.toUpperCase().includes(i)}});let a=[],n=!1;for(let r=0,l=o.length;rt.table_key==o[r].table_key),c=R(this.listening_books[l]),d=c.bookname;c.search_type="";const h=d.split(" ")[0];t=d.split(" ").slice(1).join(" "),e=d.split(" ")[d.split(" ").length-1],h.includes(i)&&(c.search_name=h),t.includes(i)&&(c.search_name=t),e.includes(i)&&(c.search_name=e),c.unit_names&&c.unit_names.includes(i)&&(c.search_name=s,c.search_type="unit",n=!0),this.listening_books[l]=Object.freeze(c),a.push(c)}console.log("searchBooks",a),this.listening_search_books=a,n&&this.listening_search_books.length>0&&this.listening_search_books.forEach(t=>{const e=[],s=this.books.filter((s,o)=>{const a=+t.id===+s.id&&s.unit_names.includes(i);return a&&e.push(o),a});s.forEach((s,i)=>{const o=R(s);o.search_name=t.search_name,s=Object.freeze(o),this.books[e[i]]=s})})}},HasMockExam(t,e,s){return!!(this.mock_load&&3==t&&e&&this.mockexams[+e])},setMockName(t){let e="";return this.is_mobile?e="평가":45==+this.mockexams[t.books_id].question_cnt?e="모의평가":20==+this.mockexams[t.books_id].question_cnt&&(e="듣기평가"),e},changeTab(t,e){if(1===this.last_tab&&0!==this.listening_mode&&[5,6,7].includes(e)&&this.$nextTick(()=>{setTimeout(()=>{const t=document.querySelectorAll(".v-data-table__selected")[0];t&&t.click()},100)}),"F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];0==JSON.parse(this.$store.state.tuto)[e]&&(this.$store.dispatch("updateTutorial",e),this[e+"_display"]="none")}if(0==JSON.parse(this.$store.state.tuto)["t"+(e+1)]){let t=document.getElementById("tab"+e);if(t){let s=t.getBoundingClientRect();this[`t${e+1}_top`]=s.top+"px",this[`t${e+1}_left`]=(s.left+s.left+s.width)/2+"px"}this[`t${e+1}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}if(this.loading)return!1;[5,6].includes(e)||[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,t?(this.last_tab=this.tab,this.setTab(e),this.expanded=[]):(null==this.last_tab&&(this.last_tab=1),this.setTab(this.last_tab),this.last_tab=null,this.expanded=[])},changePublisher(t){1==this.tab?(this.current_publisher_idx=t,this.search_keyword="",this.final_keyword=""):(this.current_publisher_idx=t,this.select_grade=this.convertKorGradeToEngGrade(this.listening_categories[this.tab][t]),this.changeGrade())},selectTab(t){if(this.listening_mode=0,this.membership_search_books=null,"F"==this.$store.state.product_type&&this.$store.state.tuto){let e=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(e){let t=e.classList[2];0==JSON.parse(this.$store.state.tuto)[t]&&(this.$store.dispatch("updateTutorial",t),this[t+"_display"]="none")}const s=1===t?11:2===t?25:26;if(0==JSON.parse(this.$store.state.tuto)["t"+s]){let e=document.getElementById("tab"+t);if(e){let t=e.getBoundingClientRect();this[`t${s}_top`]=t.top+"px",this[`t${s}_left`]=(t.left+t.left+t.width)/2+"px"}this[`t${s}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}this.freeTrialGuide(t),this.items_per_page=hu,[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,setTimeout(()=>{window.scroll_container&&(window.scroll_container.scrollTo({top:0,left:0}),this.expanded=[])},0),this.setTab(t),this.currentBookInfoReset(),this.expanded=[],this.setScroll()},currentBookInfoReset(){this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null,this.listening_book=null},membershipBookClick(t){console.log("item",t),t.disable?this.disableDialog():(this.listening_mode=1,this.listening_book=t,console.log(this.duplicateBookIds),this.duplicateBookIds.includes(t.id)?this.isUniqueBook=!1:this.$nextTick(()=>{const t=document.querySelector("tr");this.isUniqueBook=!0,t&&(window.cordova&&window.cordova.platformId&&"ios"===window.cordova.platformId?this.selectRow(this.listening_book,{isExpanded:!1,select:()=>{}}):t.click())}))},membershipDetailBackBtnClick(){this.expanded=[],this.listening_mode=0,this.membership_search_books=null,this.listening_book=null,this.isUniqueBook=!1,this.currentBookInfoReset()},selectRow(t,e){if(this.listening_book&&e.isExpanded&&this.isUniqueBook)return;if(this.select_disabled)return;if(this.mockexams_block[t.books_id])return;const s=this.$el.querySelector("#book-list-dttbl")||this.$el,i=s.querySelector(".v-data-table__wrapper")||s.closest(".over-y-scroll")||null;i&&(i.style.overflowAnchor="none");const o=i?i.getBoundingClientRect().top:0,a=i?Array.from(i.querySelectorAll("tbody > tr:not(.v-data-table__expanded)")):[],n=a.find(t=>t.getBoundingClientRect().bottom>o+1)||a[0]||null,r=n?n.getBoundingClientRect().top:0;let l=0,c=0;const d=10,h=()=>{if(!i||!n)return;const t=n.getBoundingClientRect().top,e=t-r;0!==e&&(i.scrollTop+=e),++c{switch(e){case"open":{let e=(t.schedule_type,"단원"),s=t.complete_unit_seqs?t.complete_unit_seqs.split(",").length:0,i=t.tot_unit_cnt?+t.tot_unit_cnt:0;0==i&&t.unit_cnt&&+t.unit_cnt>0&&(i=+t.unit_cnt);let o=10===+t.category?3:+t.category;i>0?this.study_progress=`${s} / ${i}${e}`:(this.study_progress="",3===o&&1===+t.booktype&&t.mockexam&&(this.study_progress=`${+t.mock_try_status>0?1:0} / 1${e}`)),this.$store.commit("setBookDetails",{schedule_id:t.schedule_id,book_id:t.id,publisher:t.publisher,publishdate:t.publishdate,unit_cnt:3===o&&1===+t.booktype&&t.mockexam?1:t.unit_cnt}),t.cover_path&&(1===o&&2===t.origin_category&&(o=2),this.coverimg_url=`${g["k"]}/${o}/${window.encodeURIComponent(t.cover_path)}`);const a=this.getScheduleBookId(t);this.opened_item=this.$data[a],this.final_keyword&&this.searchUnitBg(t,a);break}case"close":case"error":this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null;break;default:break}this.$nextTick(()=>{requestAnimationFrame(()=>{if(l&&cancelAnimationFrame(l),i&&n){const t=n.getBoundingClientRect().top,e=t-r;0!==e&&(i.scrollTop+=e)}"open"===e&&setTimeout(()=>{const t=i?i.querySelector(".v-data-table__expanded"):null;if(t){const t=i.querySelector(".unit-row");if(t){const e=i.getBoundingClientRect(),s=t.getBoundingClientRect(),o=s.bottom>e.bottom;if(o){const t=Math.min(200,10*s.height);i.scrollTop+=t}}}},0),this.setTableHeight()})})})},disableDialog(){this.alert_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.alert_dialog=!1},3e3)},updateSingleUnit(t,e){if(!t||!e)return;let s=this.getScheduleBookId(t);this.$data[s]&&this.getUnits(t,e),this.getProcessDate(t).then(e=>{let i=Number(e.complete_unit_cnt)||0,o=Number(e.tot_unit_cnt)||0,a=o>0?Math.round(i/o*100):0,n=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),r=this.books.filter(e=>+e.books_id==+t.books_id&&+e.schedule_id==+t.schedule_id);if(r=R(r[0]),r.complete_unit_cnt=String(i),r.tot_unit_cnt=String(o),r.progress=a,this.books.splice(n,1,Object.freeze(r)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}})},updateSingleMockExamUnit(t){let e=void 0!==t.unit_seq&&Number(t.unit_seq);if(!t||!1===e||isNaN(e)&&!t.new_mockexam)return;let s=void 0;if(s=this.expanded[0]?this.expanded[0]:this.books.find(e=>e.id==t.id),void 0==s)return;let i=void 0,o=void 0;if(this.$store.state.uclass>=20){for(let[c,d]of Object.entries(this.$data))if(0==c.indexOf("b-")&&c.split("-")[2]==t.id){i=c,o=R(d);break}}else{if(i=this.getScheduleBookId(t),i){let t=i.split("-");t&&t.length>1&&(-1!==t[1].indexOf(",")&&(t[1]=this.$store.state.schedule_id),i=t.join("-"))}o=R(this.$data[i])}if(void 0==i)return;let a,n=[],r=R(s),l=this.books.map(t=>this.getScheduleBookId(t)).indexOf(i);for(let[c,d]of Object.entries(o))n[+c]=d;if(isNaN(e)&&t.new_mockexam)this.$axios.get(`${g["w"]}/v2/book/${r.books_id}/schedule/${r.schedule_id}/type/0/user/${this.$store.state.uid}?mock=1&bt=0`).then(t=>{const e=this.setNewMockExam(t.data);this.$data[i]=Object.freeze(e.data),r.complete_unit_cnt=String(e.cmp_cnt),r.progress=e.progress,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))});else{let s=n[e];if(s.mock_pk=t.mock_pk,s.mock_cnt=t.done_cnt,s.mock_done=1,s.record_id=t.record_id,s.mock_status=this.unitStatusChecker(s,g["G"]),n.splice(e,1,s),this.$data[i]=Object.freeze(n),1==r.schedule_type){let t=n.filter(t=>Number(t.voca_done)>0||Number(t.study_done)>0||Number(t.mock_done)>0);a=t.length||0}else{a=0;for(let t=0;t0&&(a+=.3333),Number(n[t].study_done)>0&&(a+=.3333),Number(n[t].mock_done)>0&&(a+=.3333)):(Number(n[t].study_done)>0&&(a+=.5),Number(n[t].mock_done)>0&&(a+=.5))}let o=r.tot_unit_cnt?Number(r.tot_unit_cnt):0,c=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=c,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))}},getProcessDate(t){return new Promise((e,s)=>{this.$axios.get(`${g["w"]}/schedule/getprogress/${this.$store.state.uid}/${t.schedule_id}/${t.books_id}`).then(t=>{200==t.status?e(t.data):s()})})},toggleBookmark(t){if(this.bookmark_disabled)return!1;if("F"==this.$store.state.product_type&&this.$store.state.tuto&&0==JSON.parse(this.$store.state.tuto)["t6"]&&this.$store.dispatch("updateTutorial","t6"),this.alert_type=!1,t.disable||!t.schedule_id)return t.id&&-1!=String(t.id).indexOf("adm_null")&&(this.alert_type="adm_null"),this.disableDialog(),!1;this.bookmark_disabled=!0;let e={schedule_id:t.schedule_id,user_id:this.$store.state.uid,book_id:t.id};this.$axios.post(`${g["w"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=R(this.item_length);e?s[5]+=1:s[5]-=1,this.item_length=Object.freeze(s);for(let[i,o]of Object.entries(this.books))if(o.table_key==t.table_key){let t=R(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.$store.dispatch("showToast",{message:`북마크 교재${this.bookmarktext}되었습니다.`,duration:2e3})}this.bookmark_disabled=!1})},closeDialog(t){this[t]=!1,clearTimeout(window.dialog_timeout)},shadowreadingConfirm(t,e=null){if(this.loading_unit)return!1;if(this.is_ng_book=!1,+t.seq>2&&(this.is_ng_book=!0,!this.checkAuthFree(t.seq)))return!1;let s="쉐도우";this.sel_unit=t,this.setLearningDialog(s+"를 시작하시겠습니까?",null,null,99)},testConfirm(t,e=null){if(this.loading_unit)return!1;if(e&&1===+e.category&&2===+e.origin_category)if(+t.seq>0){if(this.is_vip_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_vip_book=!1;else if(this.is_vip_book=!1,!this.checkAuthFree(t.seq))return!1;let s=null;if(!this.freepass)if(1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v){let e=this.getScheduleBookId(this.expanded[0]);if(e){let i=!0;for(let s=+t.seq-1;s>=0;s--){let o=this.$data[e][s];if(o.id!=t.id||o.mode!=g["bb"])break;if(isNaN(o.study_cnt)||!(+o.study_cnt>0)){i=!1;break}}if(!i)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1}}else if(null==t.study_pk||Number(t.study_cnt)<1)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;if(window.is_restudy>0&&Number(t.test_cnt)>2)return this.clickSound(),this.sel_unit=t,s=7,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;switch(this.sel_unit=t,t.test_status){case 1:case 2:this.exitSound(),s=6;break;case 3:this.clickSound(),s=5;break;default:this.clickSound(),s=2;break}this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog)},goStudyGRAMMAR(t){this.setBookInfoGRAMMAR(this.expanded[0],this.sel_unit,this.learning_dialog_vma,t.clear,this.closeLearningDialog)},setBookInfoGRAMMAR(t,e,s,i,o){if(!t||!e||!s)return!1;let a=R(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&this.$store.dispatch("initPage"),this.$axios.get(`${g["w"]}/v2/book/getgrammarcount?unit_id=${e.id}&type=${s}`).then(e=>{if(200==e.status){let n=e.data.cnt;this.$store.dispatch("setBookInfoGRAMMAR",{book:t,unit:a,type:s,init:i,cnt:n}).then(t=>{this.$store.dispatch("setCurUnitId",a.id).then(()=>{i?(this.$store.commit("setClearPrevResult",!0),this.$store.dispatch("clearResultData").then(t=>{this.$store.commit("setLearningStatus",!0),this.$store.commit("setClearPrevResult",!1)})):([3,5,9,14,31].includes(this.learning_dialog_type)&&(this.$store.commit("setClearPrevResult",!0),this.$store.commit("setCurrentRestudy",!0)),this.$store.commit("setLearningStatus",!0)),o()})})}}).catch(t=>{console.error(t)})},onResize(){if("F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];if(0==JSON.parse(this.$store.state.tuto)[e]){let t=e.split("")[1]-1,s=document.getElementById("tab"+t);if(s){let t=s.getBoundingClientRect();this[e+"_top"]=t.top+"px",this[e+"_left"]=(t.left+t.left+t.width)/2+"px"}}}if(0==JSON.parse(this.$store.state.tuto)["t6"]){let t=document.querySelector("#bookmark_switch");if(t){let e=0,s=document.body.offsetWidth;s<900?e=22.5:900<=s&&s<960?e=27.5:960<=s&&s<1264?e=30:1264<=s&&(e=35);let i=t.getBoundingClientRect();this.t6_top=i.top+i.height+"px",this.t6_left=i.left+e+"px"}}}},openMockExamConfirm(t,e,s=null,i=null,o=null){if(console.log("openMockExamConfirm",t,e,s,i,o),this.loading_unit)return!1;if(!t)return!1;if(null==i){this.sel_mockexam=this.mockexams[t],this.sel_mockexam.bookname=e;let i=this.books.find(e=>e.books_id==t);3===+i.category?(this.sel_mockexam.category=3,this.sel_mockexam.schedule_id=null,this.$store.state.schedule_id=null):10===+i.category&&(this.sel_mockexam.schedule_id=null,this.$store.state.schedule_id=null),o&&(this.sel_mockexam.booktype=o),s&&this.expanded&&this.expanded[0]&&(this.sel_mockexam.unit_id=s.id?+s.id:null,this.sel_mockexam.s_u_id=s.s_u_id?+s.s_u_id:null,this.sel_mockexam.schedule_id=this.expanded[0].schedule_id,this.sel_mockexam.books_id=this.expanded[0].books_id,this.sel_mockexam.unit_name=s.name?s.name:"",this.sel_mockexam.ur_id=s.mock_pk?s.mock_pk:null,this.sel_mockexam.schedule_type=this.expanded[0].schedule_type,this.sel_mockexam.try_cnt=s.mock_cnt?+s.mock_cnt:1,s.schedule_name&&(this.sel_mockexam.bookname=s.schedule_name),this.sel_mockexam.record_id=s.record_id||null,1==this.sel_mockexam.schedule_type?(this.sel_mockexam.unit_seq=s.mode.length>1?+s.mode.replace(/[^0-9]/g,""):null,this.sel_mockexam.type_v_seq=s.seq?+s.seq:null):this.sel_mockexam.unit_seq=s.seq?+s.seq:null)}else{const e=this.mockexams[t];this.sel_mockexam={bookname:i.schedule_name,books_id:e.books_id,schedule_id:e.schedule_id||i.schedule_id,unit_name:null,record_id:s.mock_record_id?s.mock_record_id:null,id:e.id,question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,tot_question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,time:Number(e.time),question_seq:s.question_seq?s.question_seq:null,new_mockexam:!0,is_regular:s.is_regular,cnttext:s.name},s.regular_id&&Number(s.regular_id)>0&&(this.sel_mockexam.regular_id=s.regular_id)}this.mockexam_dialog=!0},freeTrialGuide(t){if(1===this.$store.getters.getTrialGuide("l"+t))return!1;const e={1:{title:"초등 듣기평가",html:'내공스터디만의 듣기 콘텐츠
각 학년 수준별, 듣기평가와 학습을 제공합니다.\n
영어듣기평가를 선택하여 학습해보세요!
'},2:{title:"중등 듣기평가",html:'중학교 영어듣기평가
실제 교육청 주관, 동일한 음원을 제공합니다.\n
영어듣기평가를 선택하여 학습해보세요!
'},3:{title:"고등 듣기평가",html:'고등학교 영어듣기평가
실제 교육청 주관, 동일한 음원을 제공합니다.\n
영어듣기평가를 선택하여 학습해보세요!
'}};this.trial_title=e[t].title,this.trial_html=e[t].html,this.trial_guide_dialog=!0},closeTrialGuide(){"F"!=this.$store.state.product_type?this.$store.dispatch("setTrialGuide","l"+this.tab):this.$store.commit("setTrialGuide",{key:"l"+this.tab,val:1})},async refresh(){this.books=[],this.books_tmp=[],this.listening_books=[],this.listening_search_books=null,this.expanded=[],this.selected=[],this.category_books=[],this.$store.commit("setListeningBooks",[]);try{const t=await this.getCommonBooks();await this.getScheduleBooks(t),this.$refs.book_list_latest&&this.$refs.book_list_latest.getList(),this.search_keyword="",this.setToast("최신 교재 목록으로 업데이트하였습니다.")}catch(t){console.log(t)}finally{if(1===this.tab&&0===this.listening_mode){const t=(this.listening_books||[]).filter(t=>+t.category===+this.tab);if(0===this.current_publisher_idx)this.applyEmptyFlag(t,"refresh : tab - 1 v- 1");else{const e=this.listening_categories[this.tab][this.current_publisher_idx],s=t.filter(t=>{const s=t.grade||"";let i="";return s.startsWith("e")?i="초등"+s.slice(1):s.startsWith("m")?i="중등"+s.slice(1):s.startsWith("h")&&(i="고등"+s.slice(1)),i===e});this.applyEmptyFlag(s,"refresh : tab - 1 v - 23")}}else this.applyEmptyFlag(this.listening_books||[],"refresh : tab - 2,3")}},applyEmptyFlag(t,e){this.isEmptyListeningBook=0===t.length}}},pu=uu,_u=(s("60e4"),Object(p["a"])(pu,cu,du,!1,null,null,null)),mu=_u.exports;y()(_u,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDataTable:Gh["a"],VDialog:ct["a"],VIcon:jt["a"],VLazy:yt["a"],VOverflowBtn:Wh["a"],VRow:ht["a"],VSheet:Se["a"],VSwitch:ye["a"],VTextField:ut["a"]});var gu=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"book-vue"}},[t.getLearningStatus?s("learning",{key:"learning-index",attrs:{bookmode:"school",mode:t.$store.getters.getLearningMode,tab:t.tab,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,setDialogText:t.setDialogText,setLearningDialog:t.setLearningDialog,setDialogVMA:t.setDialogVMA,updateSingleMockExamUnit:t.updateSingleMockExamUnit}}):t._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"v-book-index static-container"},[s("left-bar-static",{key:"book-left-bar",staticClass:"child-white"},[s("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[s("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[s("v-switch",{key:"book-left-bar-switch-1",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"최근 학습내역",color:"success","hide-details":"","input-value":7==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,7)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1),s("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[s("v-switch",{key:"book-left-bar-switch-2",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"학습중인 교재",color:"success","hide-details":"","input-value":6==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,6)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1),s("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"},attrs:{id:"bookmark_switch"}},[s("v-switch",{key:"book-left-bar-switch-3",staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"북마크 교재",color:"success","hide-details":"","input-value":5==t.tab_class,ripple:!1,dense:t.is_mobile},on:{change:function(e){return t.changeTab(e,5)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}})],1)]),s("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),s("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[s("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[s("router-link",{staticClass:"left-label-title d-flex",staticStyle:{"text-decoration":"none"},attrs:{to:"/schedule/learningschedule"}},[s("div",{staticClass:"label-control",on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("label",[t._v("나의 학습 스케줄\n "),s("v-btn",{attrs:{icon:"",text:"",fab:""}},[s("v-icon",{attrs:{size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)])])],1),s("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습 진행률")]),s("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[s("span",{domProps:{textContent:t._s(t.study_progress)}})])],1),s("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("재학습")]),s("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[s("span",{domProps:{textContent:t._s(t.setRestudyText())}})])],1),s("div",{staticStyle:{flex:"1 1 auto"}})],1),s("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),s("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[s("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[s("a",{staticClass:"left-label-title d-flex"},[s("div",{staticClass:"label-control",class:{"success--label":null!=t.$store.state.current_book_id}},[s("label",[t._v("선택된 교재 정보\n "),s("v-icon",{class:{"success--text":t.coverimg_url},attrs:{disabled:""==t.coverimg_url,size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)},on:{click:t.openCoverImg}},[t._v(t._s(t.mdi_chevron_right)+"\n ")])],1)])])]),s("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작자")]),s("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publisher)+"\n ")])],1),s("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("제작년도")]),s("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_publishdate)+"\n ")])],1),s("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[s("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[t._v("학습일차")]),s("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[t._v("\n "+t._s(t.$store.state.cur_book_unit_cnt?t.$store.state.cur_book_unit_cnt+"일":"")+"\n ")])],1)],1)]),s("div",{staticClass:"right"},[s("v-sheet",{key:"book-right-sheet",staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[s("v-row",{staticClass:"width-100 ma-0 custom-tab-wrapper min-h-40px",class:""+this.menu},[s("v-col",{staticClass:"pa-0",class:{"before-divider":![1,2].includes(t.tab)},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":2==t.tab_class},attrs:{id:"tab2"},on:{click:function(e){return t.selectTab(2)}}},[t._v("\n 영어 교과서\n "),s("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t8"]?s("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t8_display,type:"t8",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:t.t8_top,tool_left:t.t8_left,tool_translate:"translate(-50%, -100%)",text:"초,중,고의 모든 영어 교과서가 제공됩니다."}}):t._e()],1),s("v-col",{staticClass:"pa-0",class:{"before-divider":![2,3].includes(t.tab)},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":3==t.tab_class},attrs:{id:"tab3"},on:{click:function(e){return t.selectTab(3)}}},[t._v("\n 수능/모의고사\n "),s("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t9"]?s("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t9_display,type:"t9",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:t.t9_top,tool_left:t.t9_left,tool_translate:"translate(-50%, -100%)",text:"수능, 모의고사 변형문제도 학습 가능합니다."}}):t._e()],1),s("v-col",{staticClass:"pa-0",class:{"before-divider":![4,10].includes(t.tab)},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":4==t.tab_class},attrs:{id:"tab4"},on:{click:function(e){return t.selectTab(4)}}},[t._v("\n 사용자 교재\n "),s("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==t.$store.state.product_type&&t.$store.state.tuto&&0==JSON.parse(t.$store.state.tuto)["t10"]?s("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:t.t10_display,type:"t10",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:t.t10_top,tool_left:t.t10_left,tool_translate:"translate(-50%, -100%)",text:"선생님께 부여받은 교재를 확인하세요."}}):t._e()],1)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:t.tab<7||10===+t.tab,expression:"tab < 7 || +tab === 10"}],staticClass:"content-child-2"},[s("div",{staticClass:"gradeselect-wrapper ma-0 width-100 min-h-40px d-flex align-center",staticStyle:{border:"thin solid #edeeef"}},[s("div",{staticClass:"filter-section d-flex align-center",style:2===t.tab?"padding-left: 0.5rem":"flex: 1; padding-left: 0.5rem"},[2!==t.tab?s("div",{staticClass:"d-flex align-center",staticStyle:{width:"100%"}},[s("div",{staticClass:"d-flex align-center pr-1",staticStyle:{width:"10.1rem"}},[s("v-overflow-btn",{key:"ov-grade",staticClass:"custom-filter",attrs:{items:t.grade_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"success"},on:{change:t.changeGrade},scopedSlots:t._u([{key:"label",fn:function(){return[s("div",{staticClass:"mx-0"},[t._v("학년")])]},proxy:!0},{key:"append",fn:function(){return[s("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2335967587),model:{value:t.select_grade,callback:function(e){t.select_grade=e},expression:"select_grade"}})],1),s("div",{staticClass:"d-flex align-center pr-1",staticStyle:{width:"10.1rem"}},[s("v-overflow-btn",{key:"ov-sort",staticClass:"custom-filter",attrs:{items:t.sort_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"#ffa025"},scopedSlots:t._u([{key:"label",fn:function(){return[s("span",{staticClass:"mx-0"},[t._v(" 정렬 ")])]},proxy:!0},{key:"append",fn:function(){return[s("v-icon",{attrs:{color:"white"}},[t._v(t._s(t.mdi_menu_down))])]},proxy:!0}],null,!1,2022726672),model:{value:t.sortBy,callback:function(e){t.sortBy=e},expression:"sortBy"}})],1),s("div",{staticClass:"d-flex align-center pa-0 ml-1"},[s("RefreshBtn",{on:{click:t.refresh}})],1)]):2===t.tab&&0===t.membership_mode?s("div",{staticClass:"d-flex align-center",staticStyle:{width:"100%"}},[s("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1"},attrs:{id:"publisher-filter"}},[s("div",[s("v-btn",{attrs:{variant:"success","x-large":"",icon:"",ripple:!1,disabled:1===t.publisher_page},on:{click:function(e){return t.publisherView("prev")}}},[s("v-icon",{style:1===t.publisher_page?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_left_circle)+"\n ")])],1)],1),s("div",{staticClass:"category-button-wrapper",staticStyle:{"overflow-x":"hidden",flex:"1",display:"flex","align-items":"center","justify-content":"center",gap:"4px"},attrs:{id:"publisher_list"},on:{wheel:t.handleCategoryWheel}},t._l(t.visiblePublishers,(function(e){return s("v-btn",{key:"membership-publisher-"+e.originalIndex,ref:"publisher-btn-"+e.originalIndex,refInFor:!0,staticClass:"category-btn",class:t.current_publisher_idx===e.originalIndex?"white--text":"grey--text",attrs:{depressed:"",rounded:"",color:t.current_publisher_idx===e.originalIndex?"success":"grey lighten-4"},on:{click:function(s){return t.changePublisher(e.originalIndex)}}},[t._v("\n "+t._s(t.setTitleName(e.name))+"\n ")])})),1),s("div",[s("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1,disabled:t.publisher_page===t.publisherTotalPages},on:{click:function(e){return t.publisherView("next")}}},[s("v-icon",{style:t.publisher_page===t.publisherTotalPages?"color: #e7e7e7 !important;":"",attrs:{color:"success",size:"1.84rem"}},[t._v("\n "+t._s(t.mdi_chevron_right_circle)+"\n ")])],1)],1)]),s("RefreshBtn",{staticClass:"ml-2",on:{click:t.refresh}})],1):1===t.tab&&1===t.membership_mode?s("div",{staticClass:"d-flex align-center",staticStyle:{width:"100%"}},[s("div",{staticClass:"cursor grey--text",on:{click:t.membershipDetailBackBtnClick}},[s("span",[t._v("<")]),s("span",{staticClass:"underline ml-1"},[t._v("저작권 계약 교과서 목록")])])]):t._e()]),s("div",{staticClass:"search-section d-flex align-center justify-end",style:2===t.tab?"width: 34.2%; padding-right: 2.8%; margin-left: auto; min-width: 18rem":"width: 34.2%; padding-right: 2.8%"},[s("v-text-field",{directives:[{name:"show",rawName:"v-show",value:1!==t.membership_mode,expression:"membership_mode !== 1"}],staticClass:"search-input float-right",staticStyle:{width:"90%"},attrs:{"append-icon":t.search_keyword?"":t.mdi_magnify,id:"search",label:"교재명, 단원명, 제작자",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":t.mdi_close_circle,color:"success"},on:{blur:t.searchBlur,keyup:function(e){1===t.tab?t.searchKeyupMembership(e):t.searchKeyup(e)}},model:{value:t.search_keyword,callback:function(e){t.search_keyword=e},expression:"search_keyword"}})],1)]),1!==t.tab||0!==t.membership_mode?s("v-row",{staticClass:"mx-0"},[s("v-col",{staticClass:"py-0 pos-rel px-0",attrs:{cols:"12"}},[s("v-data-table",{key:"book-list",staticClass:"custom-dt over-y-scroll",attrs:{id:"book-list-dttbl",headers:t.headers,items:2===t.tab?t.books.filter((function(e){return e.publisher===t.membership_publisher[t.current_publisher_idx]})):t.books,"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"item-key":t.item_key,"items-per-page":t.items_per_page,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.","hide-default-footer":"","hide-default-header":"","fixed-header":"","single-select":"",sortBy:t.sortBy,search:t.tableSearch,"custom-filter":t.filterTabs,"custom-sort":t.sortTabs,height:"64vh"},on:{"click:row":t.selectRow},scopedSlots:t._u([{key:"item.data-table-expand",fn:function(e){var i=e.isExpanded,o=e.isSelected,a=e.item;return[s("div",[s("v-lazy",{attrs:{transition:""}},[s("v-icon",{directives:[{name:"show",rawName:"v-show",value:i,expression:"isExpanded"}],staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_down))])],1),o&&t.loading_unit?[s("icon-rolling",{attrs:{color:"#2196f3",size:"16",strokewidth:"12",absolute:""}})]:t._e(),s("v-icon",{directives:[{name:"show",rawName:"v-show",value:!i&&!(o&&t.loading_unit),expression:"!isExpanded && !(isSelected && loading_unit)"}],staticClass:"act-ico",class:{"grey--text text--lighten-2":t.mockexams_block[a.books_id]},attrs:{ripple:!1,absolute:""}},[t._v(t._s(t.mdi_menu_right))])],2)]}},{key:"item.bookmark",fn:function(e){var i=e.item;return[s("v-lazy",{attrs:{"min-height":"40px",transition:""}},[s("v-btn",{staticClass:"mx-0",class:[1==Number(i.bookmark)?"pink--text":"grey--text",i.disable?"text--lighten-3":"text--lighten-2"],attrs:{large:"",text:"",icon:"",ripple:!1},on:{click:function(e){return e.stopPropagation(),t.toggleBookmark(i)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[1==Number(i.bookmark)?s("v-icon",{attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart))]):s("v-icon",{staticClass:"act-ico",attrs:{size:"80%"}},[t._v(t._s(t.mdi_heart_outline))])],1)],1)]}},{key:"item.info",fn:function(e){var i=e.item;return[s("v-row",{staticClass:"width-100 d-flex align-center min-h-40px",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"row-name d-flex align-center",attrs:{cols:"8"}},[s("div",{staticClass:"book-title",class:{"grey--text-d7":i.disable},domProps:{innerHTML:t._s(1!==t.tab?i.search_name||i.schedule_name||i.bookname:i.schedule_name||i.bookname)}}),i.subtitle?s("div",{staticClass:"book-subtitle before-divider ml-3 grey--text",domProps:{textContent:t._s(i.subtitle)}}):t._e(),11===+i.booktype||i.booktype_2===t.TAG_HOT||3===+i.origin_category&&31===+i.booktype?s("div",{staticClass:"book-subtitle ml-1 fw-300 booktag hot",class:{"opacity-half":i.disable}},[t._v("\n HOT\n ")]):i.booktype_2===t.TAG_NEW||1==i.category&&0===Number(i.booktype)||2==i.category&&11!=i.booktype||3==i.category&&0===Number(i.booktype)?s("div",{staticClass:"book-subtitle ml-1 fw-300 booktag new",class:{"opacity-half":i.disable}},[t._v("\n NEW\n ")]):i.booktype_2===t.TAG_VOCA?s("div",{staticClass:"book-subtitle ml-1 fw-300 booktag voca",class:{"opacity-half":i.disable}},[t._v("\n VOCA\n ")]):t._e(),t.HasMockExam(i.category,i.books_id,i)&&!i.mockexam||i.mockexam&&10===+i.category&&31===+i.booktype?s("div",{staticClass:"mockexam-div height-100 before-divider ml-3"},[s("v-btn",{staticClass:"px-xl-3 px-lg-2 ml-2 white--text mock-exam-btn",class:{"max-w-46px ml-1":t.is_mobile},attrs:{elevation:"0",large:"",ripple:!1,color:"#FF5459",rounded:""},on:{click:function(e){return e.stopPropagation(),t.openMockExamConfirm(i.books_id,i.bookname,null,null,+i.booktype)}}},[s("v-icon",{attrs:{size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:"",color:"white"}},[t._v(t._s(t.mdi_play))]),s("b",{staticClass:"ml-n1 white--text",domProps:{textContent:t._s(t.setMockName(i))}})],1)],1):t._e()]),s("v-col",{staticClass:"row-progress d-flex align-center justify-center",attrs:{cols:"4"}},[s("v-lazy",{staticClass:"lazy-progress"},[s("div",{staticClass:"progress-wrap pos-rel width-100 height-100"},[s("b",{staticClass:"under-text fw-700",class:{"grey--text text--lighten-1":!i.progress}},[t._v("  "+t._s(i.progress)+"%  ")]),s("div",{staticClass:"progress-gauge pos-abs height-100 left-0 top-0 overflow-hidden text-right",style:"width:"+i.progress+"%"},[s("b",{staticClass:"white--text tw-800"},[t._v("  "+t._s(i.progress)+"%  ")])])])])],1)],1)]}},{key:"expanded-item",fn:function(e){var i=e.item;return[t.$data[t.getScheduleBookId(i)]?[s("unit-template",{attrs:{data:t.$data,menu:t.menu,headers:t.headers,item:i,is_mobile:t.is_mobile,getScheduleBookId:t.getScheduleBookId,setListBtnText:t.setListBtnText,setBtnText:t.setBtnText,grammarConfirm:t.grammarConfirm,vmaConfirm:t.vmaConfirm,shadowreadingConfirm:t.shadowreadingConfirm,openMockExamConfirm:t.openMockExamConfirm,studyConfirm:t.studyConfirm,testConfirm:t.testConfirm,alertAdvanced:t.alertAdvanced}})]:t._e()]}}],null,!0)}),s("div",{directives:[{name:"show",rawName:"v-show",value:t.scroll_loading,expression:"scroll_loading"}],staticClass:"linear-activity overflow-hidden width-100 pos-abs bottom-0"},[s("div",{staticClass:"indeterminate pos-rel width-100 height-100"})])],1)],1):t._e()],1),s("div",{directives:[{name:"show",rawName:"v-show",value:7==t.tab,expression:"tab == 7"}]},[s("book-list-latest",{key:"book-list-3",ref:"book_list_latest",attrs:{type:"school",query:t.query_startdate,setBookInfo:t.setBookInfo,setBookInfoVMA:t.setBookInfoVMA,setBookInfoGRAMMAR:t.setBookInfoGRAMMAR,getLearningStatus:t.getLearningStatus,tab:t.tab,updateSingleUnit:t.updateSingleUnit,unitStatusChecker:t.unitStatusChecker,updateTmpSelUpdate:t.updateTmpSelUpdate}})],1)],1)],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("alert_dialog")}},model:{value:t.alert_dialog,callback:function(e){t.alert_dialog=e},expression:"alert_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},["adm_null"==t.alert_type?[t._v("다른 학원의 수업자료를 무상 공유해드립니다."),s("br"),t._v("배정된 담당자를\n 통해 문의하세요!")]:[t._v("해당 교재는 비활성화 되어있습니다."),s("br"),t._v("담당 선생님께\n 문의하세요!")]],2)],1)],1),s("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeLearningDialog},model:{value:t.learning_dialog,callback:function(e){t.learning_dialog=e},expression:"learning_dialog"}},[s("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[s("v-row",[s("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",{domProps:{textContent:t._s(t.dialog_title)}})])]),[1,11,12,16,17].includes(t.learning_dialog_type)?t._e():s("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[s("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.setBookName)}}),s("br"),s("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.setUnitName)}})])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[s("v-row",{attrs:{dense:""}},[0==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:[1,11,16].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)]:2==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:3==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.openRestudyDialog}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])]):s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.STUDY})}}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[4].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudy({clear:!0})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:5==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])]):s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1)]:6==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goTest({clear:!0})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:7!=t.learning_dialog_type||t.isProcessResult?[8,13].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:[9,14].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[t.isProcessResult?s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])]):s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1)]:[10,15].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyVMA({clear:!0})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[28].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:[29,30].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!1})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_right_btn)}})])],1)]:[32].includes(t.learning_dialog_type)?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goStudyGRAMMAR({clear:!0})}}},[s("span",{staticClass:"title",domProps:{textContent:t._s(t.dialog_left_btn)}})])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:[12,17].includes(t.learning_dialog_type)&&!t.isProcessResult?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResultVMA}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1),s("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:99==t.learning_dialog_type?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goShadowReading}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:t._e():[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goResult({type:t.TEST})}}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1),s("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeLearningDialog}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]],2)],1),s("div",{staticClass:"pos-abs border-ede thin-l width-100 height-100 white",class:[t.restudy_dialog?"opacity-1":"opacity-0"],attrs:{id:"from-right-slide-dialog"}},[s("v-card-text",{staticClass:"text-center pa-0 pos-rel top-0",attrs:{id:"dialog-new-text"}},[s("div",{staticClass:"pos-abs rd-arrow"},[s("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1},on:{click:t.closeRestudyDialog}},[s("v-icon",[t._v(t._s(t.mdi_arrow_left))])],1)],1),s("v-row",{attrs:{align:"center",justify:"center","no-gutters":""}},[s("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.FLASHCARD},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.FLASHCARD)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",[s("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_volume_high))]),s("br"),s("b",{staticClass:"fs-title"},[t._v("리스닝 학습")]),s("br"),s("br"),s("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"}},[t._v("\n 무제한 듣기 학습\n ")])],1)]),s("v-col",{staticClass:"text-center cursor-pointer",class:{active:t.restudy_type==t.STUDY},attrs:{cols:"5"},on:{click:function(e){return t.selectRestudyType(t.STUDY)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"border-ede thin-l"},[s("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[t._v(t._s(t.mdi_sync))]),s("br"),s("b",{staticClass:"fs-title"},[t._v("전체 재학습")]),s("br"),s("br"),s("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"},domProps:{textContent:t._s(t.restudy_cnt_ment)}})],1)])],1)],1),s("v-card-actions",{staticClass:"text-center pos-abs bottom-0 width-100 align-start",staticStyle:{height:"28%"},attrs:{id:"dialog-new-actions"}},[s("v-row",{attrs:{dense:"","no-gutters":"",justify:"center"}},[s("v-col",{attrs:{cols:"4"}},[s("v-btn",{staticClass:"subtitle-1",attrs:{color:"success",rounded:"",block:"",depressed:"",large:"",height:"2.7rem !important",ripple:!1},on:{click:t.startRestudy}},[s("b",{staticClass:"fw-800"},[t._v("재학습 시작")])])],1)],1)],1)],1)],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.restudy_false_dialog=!1}},model:{value:t.restudy_false_dialog,callback:function(e){t.restudy_false_dialog=e},expression:"restudy_false_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("span",{staticClass:"title"},[t._v("재학습 가능 횟수(3회)를 모두 학습하셨습니다.")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[s("v-col",{staticClass:"py-3",attrs:{cols:"12"}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.restudy_false_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeMockExamConfirm},model:{value:t.mockexam_dialog,callback:function(e){t.mockexam_dialog=e},expression:"mockexam_dialog"}},[s("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[s("v-row",[s("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[t.sel_mockexam?[t.sel_mockexam.schedule_id&&!t.sel_mockexam.new_mockexam?[s("b",[t._v("\n 듣기"+t._s(t.sel_mockexam.booktype&&31===+t.sel_mockexam.booktype?"평가를":"학습을")+"\n 시작하시겠습니까?\n ")])]:[t.sel_mockexam.new_mockexam?s("b",[t._v("\n "+t._s(t.sel_mockexam.cnttext)+"를 시작하시겠습니까?\n ")]):20==t.sel_mockexam.question_cnt?s("b",[t._v("듣기평가를 시작하시겠습니까?")]):s("b",[t._v("모의평가를 시작하시겠습니까?")])]]:t._e()],2)]),s("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[t.sel_mockexam&&t.sel_mockexam.bookname?s("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.sel_mockexam.bookname)}}):t._e(),s("br"),t.sel_mockexam&&t.sel_mockexam.unit_name?s("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.sel_mockexam.unit_name)}}):t._e()])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[t.sel_mockexam?s("v-row",{attrs:{dense:""}},[t.sel_mockexam.schedule_id?[null===t.sel_mockexam.record_id?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[s("span",{staticClass:"title"},[t._v("재평가")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1)]]:[null===t.sel_mockexam.record_id?[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)]:[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!1)}}},[s("span",{staticClass:"title"},[t._v("재시험")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){return t.goMockExam(!0)}}},[s("span",{staticClass:"title"},[t._v("성적표")])])],1)]]],2):t._e()],1)],1)],1),s("v-dialog",{attrs:{"content-class":"cover-dialog",transition:!1,persistent:""},on:{"click:outside":function(e){t.coverimg_dialog=!1}},model:{value:t.coverimg_dialog,callback:function(e){t.coverimg_dialog=e},expression:"coverimg_dialog"}},[s("v-card",{staticClass:"ma-auto"},[s("img",{staticStyle:{"max-height":"40vh",height:"40vh"},attrs:{src:t.coverimg_url}})])],1),t.$store.state.product_type==t.PRODUCT_FREE?s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_free_dialog")}},model:{value:t.prevent_free_dialog,callback:function(e){t.prevent_free_dialog=e},expression:"prevent_free_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--mode title",class:[t.is_mobile?"py-3":"py-8"]},[t.is_grammar||t.is_ng_book?s("span",[t._v("\n 해당 유닛은 유료 결제 이후 학습 가능합니다.\n ")]):t.is_vip_book?s("span",[t._v("\n 멤버십 교과서는 정식가입 후 이용 가능합니다.\n ")]):s("span",[t._v(" 해당 유닛은 유료 결제 이후 학습 가능합니다. ")])])],1)],1):t._e(),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("prevent_advanced_dialog")}},model:{value:t.prevent_advanced_dialog,callback:function(e){t.prevent_advanced_dialog=e},expression:"prevent_advanced_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[t._v("올해 개정된 교육과정으로"),s("br"),t._v("조만간 업데이트 될\n 예정입니다.")])],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:t.$store.state.a_info_dialog,callback:function(e){t.$set(t.$store.state,"a_info_dialog",e)},expression:"$store.state.a_info_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[s("v-icon",{staticStyle:{width:"1.1rem !important",height:"1.1rem !important","margin-top":"-0.2rem"},attrs:{color:"success"}},[t._v(t._s(t.mdi_information_outline))]),t._v(" "),s("span",{staticClass:"success--text"},[t._v("잠깐! 체험해보셨나요?")]),s("br"),s("div",{staticStyle:{width:"100%",height:"12px"}}),s("span",[t._v("교과서 및 모의고사의 "),s("span",{staticClass:"black--text"},[t._v("심화학습")]),t._v("에는")]),s("br"),s("span",[s("span",{staticClass:"black--text"},[t._v("변형문제, 내신문제")]),t._v("가 포함되어\n 있습니다.")])],1)],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeGomain}},[s("span",{staticClass:"title"},[t._v("종료")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.freeCancel}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{scrollable:"",width:"35em","max-width":"450px",transition:!1,persistent:""},model:{value:t.trial_guide_dialog,callback:function(e){t.trial_guide_dialog=e},expression:"trial_guide_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center",class:[t.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[s("v-row",[s("v-col",{staticClass:"title text-center px-0 pb-0 pt-2",attrs:{cols:"12"}},[s("h3",{staticClass:"success--text pb-3 mb-2",staticStyle:{"border-bottom":"1px dashed #d8d8d8","font-size":"1.2rem","font-weight":"800 !important"}},[t._v("\n "+t._s(t.trial_title)+"\n ")])]),s("v-col",{staticClass:"text-center grey--text",staticStyle:{"font-size":"1.2rem","line-height":"1.4","padding-top":"2rem","padding-bottom":"2rem"},attrs:{cols:"12"},domProps:{innerHTML:t._s(t.trial_html)}})],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t pa-0"},[s("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[s("v-btn",{staticStyle:{height:"calc(2.5 * (1rem + 2px) + 24px) !important","background-color":"#1bd05b","border-top-left-radius":"0","border-top-right-radius":"0"},attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.trial_guide_dialog=!1,t.closeTrialGuide()}}},[s("span",{staticClass:"title white--text"},[t._v("확인")])])],1)],1)],1)],1)],1)],1)},bu=[];window.is_restudy=0,window.dialog_timeout=null,window.render_chk_interval=null,window.load_timeout=null,window.timeout1=null,window.scroll_container=null;const vu=10;var fu={name:"book-school",mixins:[mh],components:{UnitTemplate:Eh,RefreshBtn:Oh},data(){return{STUDY:g["bb"],TEST:g["hb"],FLASHCARD:g["r"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],MOCK_EXAM:g["G"],GRAMMAR_THEORY:g["u"],GRAMMAR_BASICS:g["s"],GRAMMAR_DEEP:g["t"],CDN:g["k"],BOOK_NORMAL:g["h"],BOOK_BANK:g["e"],BOOK_VOCA:g["j"],BOOK_LISTENING:g["g"],BOOK_GRAMMAR:g["f"],TAG_NEW:g["fb"],TAG_VOCA:g["gb"],TAG_HOT:g["eb"],PRODUCT_FREE:g["P"],UCLASS_ETC:g["jb"],tab:2,tab_class:2,last_tab:null,search_keyword:"",final_keyword:"",select_grade:null,sortBy:null,loading:!1,loading_unit:!1,mock_load:!1,sel_unit:null,headers:Object.freeze([{text:"bookmark",value:"bookmark",align:"center before-divider",sortable:!1,width:"0"},{text:"info",value:"info",align:"left px-0 before-divider",sortable:!1,width:"100%"}]),item_key:"table_key",expanded:[],books:[],books_tmp:[],membership_mode:0,membership_book:null,membership_publisher:["NE능률","YBM","교학사","금성출판사","다락원","대교","동아출판","미래엔","비상교육","아이스크림","지학사","천재교육"],membership_books:[],membership_search_books:null,membership_customer_books_id:g["n"]?[77,78,90,91,198084,198085]:[75,76,77,78,85,88,89,90,91,98,198084,198085],current_publisher_idx:0,publisher_page:1,mockexams:{},mockexams_block:{},sel_mockexam:null,search:"",item_length:Object.freeze({1:0,2:0,3:0,4:0,5:0,6:0}),page:1,items_per_page:vu,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:g["r"],restudy_cnt_ment:"무제한 재학습",restudy_false_dialog:!1,mockexam_dialog:!1,select_disabled:!1,scroll_loading:!1,query_tab:null,query_startdate:null,query_sid:null,query_bid:null,query_stype:null,query_uid:null,query_useq:null,search_book_order:!1,unwatch_once:null,new_sorting:!1,prevent_free_dialog:!1,prevent_advanced_dialog:!1,freepass:!1,is_mobile:this.$store.state.is_mobile,is_openbook:0,isUniqueBook:!1,init_scroll:!1,mdi_chevron_right:Lt["v"],mdi_chevron_left_circle:Lt["u"],mdi_chevron_right_circle:Lt["w"],mdi_menu_down:Lt["M"],mdi_menu_right:Lt["N"],mdi_heart:Lt["H"],mdi_heart_outline:Lt["I"],mdi_arrow_left:Lt["f"],mdi_volume_high:Lt["bb"],mdi_sync:Lt["Z"],mdi_play:Lt["T"],mdi_information_outline:Lt["K"],mdi_close_circle:Lt["C"],mdi_magnify:Lt["L"],alert_type:!1,t7_top:"-1000px",t7_left:"-1000px",t7_display:"none",t8_top:"-1000px",t8_left:"-1000px",t8_display:"none",t9_top:"-1000px",t9_left:"-1000px",t9_display:"none",t10_top:"-1000px",t10_left:"-1000px",t10_display:"none",t11_top:"-1000px",t11_left:"-1000px",t11_display:"none",t6_top:"-1000px",t6_left:"-1000px",t6_display:"none",is_grammar:!1,is_ng_book:!1,is_vip_book:!1,is_mock_book:!1,trial_guide_dialog:!1,trial_title:"",trial_html:"",opened_item:null}},watch:{membership_mode(t,e){1===e&&0===t&&(this.search_keyword="",this.final_keyword="")},final_keyword(t){t||(this.membership_search_books=null)},getLearningStatus(t,e){console.log("getLearningStatus",t,e),!0===t&&!1===e&&(this.select_disabled=!0),!1===t&&!0===e&&(console.log(this.tab,this.$store.state.is_learned),this.expanded&&(this.tab<7||10===this.tab)&&this.$store.state.is_learned&&(setTimeout(()=>{let t=this.sel_unit&&this.sel_unit.id,e=1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v;e&&(t=this.sel_unit.s_u_id),this.getUnits(this.expanded[0],t).then(t=>{if("open"==t){let t,s=this.getScheduleBookId(this.expanded[0]);if(this.expanded[0])if(e&&this.expanded[0]&&[g["h"],g["e"],g["g"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==g["e"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.major_done>0||+t.advanced_done>0);t=e.length||0}else if(this.expanded[0].booktype_1==g["g"]){let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||(10===+this.expanded[0].category?+t.test_done:+t.mock_done)>0);t=e.length||0}else{let e=this.$data[s].filter(t=>+t.voca_done>0||+t.study_done>0||+t.test_done>0);t=e.length||0}else if(1==this.expanded[0].booktype_1){let e,i,o=0;for(e=0;e0&&(o+=.3333),+i.major_done>0&&(o+=.3333),+i.advanced_done>0&&(o+=.3333);t=o||0}else if(2==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.5),+i.advanced_done>0&&(t+=.5)}}else if(3==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.study_done>0&&(t+=.3333),10===this.tab?+i.test_done>0&&(t+=.3333):+i.mock_done>0&&(t+=.3333)}}else if(4==this.expanded[0].booktype_1){t=0;for(let e=0;e0&&(t+=.3333),+i.grammar_basics_done>0&&(t+=.3333),+i.grammar_deep_done>0&&(t+=.3333)}}else{t=0;for(let e=0;e0?(+i.voca_done>0&&(t+=.3333),+i.study_done>0&&(t+=.3333),+i.test_done>0&&(t+=.3333)):(+i.study_done>0&&(t+=.5),+i.test_done>0&&(t+=.5))}}if(this.expanded[0]){let e=this.expanded[0].tot_unit_cnt?+this.expanded[0].tot_unit_cnt:0,i=e>0?Math.round(t/e*100):0,o=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),a=R(this.expanded[0]);if(a.complete_unit_cnt=String(t),a.progress=i,this.expanded.splice(0,1,Object.freeze(a)),this.books.splice(o,1,Object.freeze(a)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}}}})},0),this.$store.commit("setIsLearned",!1)),this.select_disabled=!1)},getMockexamrecordId(t,e){null!==t&&0!==t&&this.mockexams[this.$store.state.mockexam.books_id]&&(this.mockexams[this.$store.state.mockexam.books_id].record_id=+t)},tab(t){0!==this.current_publisher_idx&&(this.current_publisher_idx=0)}},computed:{duplicateMembershipBookIds(){const t={},e=[];this.books.forEach(e=>{1===e.category&&(t[e.id]=(t[e.id]||0)+1)});for(const s in t)t[s]>=2&&e.push(parseInt(s));return e},isMembershipBook(){return this.final_keyword&&(!this.membership_search_book||0===this.membership_search_book.length)},publisherButtonsPerPage(){return this.$vuetify.breakpoint.smAndDown?3:this.$vuetify.breakpoint.mdAndDown?4:6},publisherTotalPages(){return Math.ceil(this.membership_publisher.length/this.publisherButtonsPerPage)},visiblePublishers(){const t=(this.publisher_page-1)*this.publisherButtonsPerPage,e=t+this.publisherButtonsPerPage;return this.membership_publisher.slice(t,e).map((e,s)=>({name:e,originalIndex:t+s}))}},mounted(){0===Object.keys(this.$route.query).length&&this.setTab(2),2==this.tab&&(this.$nextTick(()=>{let t=document.getElementById("tab2");if(t){let e=t.getBoundingClientRect();this.t7_display="block",this.t7_top=e.top+"px",this.t7_left=(e.left+e.left+e.width)/2+"px"}}),0===Object.keys(this.$route.query).length&&this.freeTrialGuide(2))},created(){this.$store.state.is_mobile&&(this.is_mobile=!0)},methods:{setTitleName:function(t){return"교학사"===t?"교학사":"금성출판사"===t?"금성":"대교"===t?"대교":"동아출판"===t?"동아":"미래엔"===t?"미래엔":"비상교육"===t?"비상":"아이스크림"===t?"아이스크림":"천재교육"===t?"천재":"YBM"===t?"YBM":t},setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},searchKeyupMembership(t){if(2===this.tab&&(13===t.keyCode||"Enter"===t.key)){this.final_keyword=this.search_keyword;const t=this.final_keyword.toUpperCase(),e=this.membership_books.filter(e=>{const s=e.bookname&&e.bookname.split("_")[0],i=e.bookname&&e.bookname.split(" ")[e.bookname.split(" ").length-1],o=e.publisher?e.publisher:"";return s.includes(t)||i.toUpperCase().includes(t)||o.toUpperCase().includes(t)||e.unit_names&&e.unit_names.toUpperCase().includes(t)});let s=[],i=!1;for(let o=0,a=e.length;ot.table_key==e[o].table_key),n=R(this.books[a]);n.search_type="";const r=n.bookname&&n.bookname.split("_")[0],l=n.bookname&&n.bookname.split(" ")[n.bookname.split(" ").length-1],c=n.publisher?n.publisher:"";r.includes(t)&&(n.search_name=r),l.includes(t)&&(n.search_name=l),c.includes(t)&&(n.search_name=c),n.unit_names&&n.unit_names.includes(t)&&(n.search_name=t,n.search_type="unit",i=!0),this.books[a]=Object.freeze(n),s.push(n)}this.membership_search_books=s,i&&this.membership_search_books.length>0&&this.membership_search_books.forEach(e=>{const s=[],i=this.books.filter((i,o)=>{const a=+e.id===+i.id&&i.unit_names.includes(t);return a&&s.push(o),a});console.log(i),i.forEach((t,i)=>{const o=R(t);o.search_name=e.search_name,t=Object.freeze(o),this.books[s[i]]=t})})}},HasMockExam(t,e,s){return!!(this.mock_load&&3==t&&e&&this.mockexams[+e])},setMockName(t){let e="";return this.is_mobile?e="평가":45==+this.mockexams[t.books_id].question_cnt?e="모의평가":20==+this.mockexams[t.books_id].question_cnt&&(e="듣기평가"),e},changeTab(t,e){if(2===this.last_tab&&0!==this.membership_mode&&[5,6,7].includes(e)&&this.$nextTick(()=>{setTimeout(()=>{const t=document.querySelectorAll(".v-data-table__selected")[0];t&&t.click()},100)}),"F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];0==JSON.parse(this.$store.state.tuto)[e]&&(this.$store.dispatch("updateTutorial",e),this[e+"_display"]="none")}if(0==JSON.parse(this.$store.state.tuto)["t"+(e+1)]){let t=document.getElementById("tab"+e);if(t){let s=t.getBoundingClientRect();this[`t${e+1}_top`]=s.top+"px",this[`t${e+1}_left`]=(s.left+s.left+s.width)/2+"px"}this[`t${e+1}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}if(this.loading)return!1;[5,6].includes(e)||[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,t?(this.last_tab=this.tab,this.setTab(e),this.expanded=[]):(null==this.last_tab&&(this.last_tab=2),this.setTab(this.last_tab),this.last_tab=null,this.expanded=[])},changePublisher(t){this.current_publisher_idx=t,this.search_keyword="",this.final_keyword="";const e=Math.floor(t/this.publisherButtonsPerPage)+1;this.publisher_page!==e&&(this.publisher_page=e)},selectTab(t){if(console.log("selectTab",t),this.membership_mode=0,this.membership_search_books=null,"F"==this.$store.state.product_type&&this.$store.state.tuto){let e=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(e){let t=e.classList[2];0==JSON.parse(this.$store.state.tuto)[t]&&(this.$store.dispatch("updateTutorial",t),this[t+"_display"]="none")}const s=10===t?t+1:t+6;if(0==JSON.parse(this.$store.state.tuto)["t"+s]){let e=document.getElementById("tab"+t);if(e){let t=e.getBoundingClientRect();this[`t${s}_top`]=t.top+"px",this[`t${s}_left`]=(t.left+t.left+t.width)/2+"px"}this[`t${s}_display`]="block"}this.$nextTick(()=>{setTimeout(()=>{this.$forceUpdate()},100)})}this.freeTrialGuide(t),this.items_per_page=vu,[5,6].includes(this.tab)?this.new_sorting=!0:this.new_sorting=!1,setTimeout(()=>{window.scroll_container&&(window.scroll_container.scrollTo({top:0,left:0}),this.expanded=[])},0),this.setTab(t),this.currentBookInfoReset(),this.expanded=[],this.setScroll()},currentBookInfoReset(){this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null,this.membership_book=null},membershipBookClick(t){t.disable?this.disableDialog():(this.membership_mode=1,this.membership_book=t,this.duplicateMembershipBookIds.includes(t.id)?this.isUniqueBook=!1:this.$nextTick(()=>{const t=document.querySelector("tr");this.isUniqueBook=!0,t&&(window.cordova&&window.cordova.platformId&&"ios"===window.cordova.platformId?this.selectRow(this.membership_book,{isExpanded:!1,select:()=>{}}):t.click())}))},membershipDetailBackBtnClick(){this.expanded=[],this.membership_mode=0,this.membership_search_books=null,this.membership_book=null,this.isUniqueBook=!1,this.currentBookInfoReset()},selectRow(t,e){if(this.membership_book&&e.isExpanded&&this.isUniqueBook)return;if(this.select_disabled)return;if(this.mockexams_block[t.books_id])return;const s=this.$el.querySelector("#book-list-dttbl")||this.$el,i=s.querySelector(".v-data-table__wrapper")||s.closest(".over-y-scroll")||null;i&&(i.style.overflowAnchor="none");const o=i?i.getBoundingClientRect().top:0,a=i?Array.from(i.querySelectorAll("tbody > tr:not(.v-data-table__expanded)")):[],n=a.find(t=>t.getBoundingClientRect().bottom>o+1)||a[0]||null,r=n?n.getBoundingClientRect().top:0;let l=0,c=0;const d=10,h=()=>{if(!i||!n)return;const t=n.getBoundingClientRect().top,e=t-r;0!==e&&(i.scrollTop+=e),++c{switch(e){case"open":{let s=(t.schedule_type,"단원"),o=t.complete_unit_seqs?t.complete_unit_seqs.split(",").length:0,a=t.tot_unit_cnt?+t.tot_unit_cnt:0;0==a&&t.unit_cnt&&+t.unit_cnt>0&&(a=+t.unit_cnt);let n=10===+t.category?3:+t.category;a>0?this.study_progress=`${o} / ${a}${s}`:(this.study_progress="",3===n&&1===+t.booktype&&t.mockexam&&(this.study_progress=`${+t.mock_try_status>0?1:0} / 1${s}`)),this.$store.commit("setBookDetails",{schedule_id:t.schedule_id,book_id:t.id,publisher:t.publisher,publishdate:t.publishdate,unit_cnt:3===n&&1===+t.booktype&&t.mockexam?1:t.unit_cnt}),t.cover_path&&(1===n&&2===t.origin_category&&(n=2),this.coverimg_url=`${g["k"]}/${n}/${window.encodeURIComponent(t.cover_path)}`);const r=this.getScheduleBookId(t);this.opened_item=this.$data[r],this.final_keyword&&this.searchUnitBg(t,r),"open"===e&&setTimeout(()=>{const t=i?i.querySelector(".v-data-table__expanded"):null;if(t){const t=i.querySelector(".unit-row");if(t){const e=i.getBoundingClientRect(),s=t.getBoundingClientRect(),o=s.bottom>e.bottom;if(o){const t=Math.min(200,10*s.height);i.scrollTop+=t}}}},0);break}case"close":case"error":this.study_progress="",this.$store.commit("setBookDetails",{schedule_id:null,book_id:null,publisher:null,publishdate:null,unit_cnt:null}),this.coverimg_url="",this.openedItemClear(),this.opened_item=null;break;default:break}this.$nextTick(()=>{requestAnimationFrame(()=>{if(l&&cancelAnimationFrame(l),i&&n){const t=n.getBoundingClientRect().top,e=t-r;0!==e&&(i.scrollTop+=e)}this.setTableHeight()})})})},disableDialog(){this.alert_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.alert_dialog=!1},3e3)},updateSingleUnit(t,e){if(!t||!e)return;let s=this.getScheduleBookId(t);this.$data[s]&&this.getUnits(t,e),this.getProcessDate(t).then(e=>{let i=Number(e.complete_unit_cnt)||0,o=Number(e.tot_unit_cnt)||0,a=o>0?Math.round(i/o*100):0,n=this.books.map(t=>this.getScheduleBookId(t)).indexOf(s),r=this.books.filter(e=>+e.books_id==+t.books_id&&+e.schedule_id==+t.schedule_id);if(r=R(r[0]),r.complete_unit_cnt=String(i),r.tot_unit_cnt=String(o),r.progress=a,this.books.splice(n,1,Object.freeze(r)),!this.$data[s]){let t=R(this.item_length);t[6]+=1,this.item_length=Object.freeze(t)}})},updateSingleMockExamUnit(t){let e=void 0!==t.unit_seq&&Number(t.unit_seq);if(!t||!1===e||isNaN(e)&&!t.new_mockexam)return;let s=void 0;if(s=this.expanded[0]?this.expanded[0]:this.books.find(e=>e.id==t.id),void 0==s)return;let i=void 0,o=void 0;if(this.$store.state.uclass>=20){for(let[c,d]of Object.entries(this.$data))if(0==c.indexOf("b-")&&c.split("-")[2]==t.id){i=c,o=R(d);break}}else{if(i=this.getScheduleBookId(t),i){let t=i.split("-");t&&t.length>1&&(-1!==t[1].indexOf(",")&&(t[1]=this.$store.state.schedule_id),i=t.join("-"))}o=R(this.$data[i])}if(void 0==i)return;let a,n=[],r=R(s),l=this.books.map(t=>this.getScheduleBookId(t)).indexOf(i);for(let[c,d]of Object.entries(o))n[+c]=d;if(isNaN(e)&&t.new_mockexam)this.$axios.get(`${g["w"]}/v2/book/${r.books_id}/schedule/${r.schedule_id}/type/0/user/${this.$store.state.uid}?mock=1&bt=0`).then(t=>{const e=this.setNewMockExam(t.data);this.$data[i]=Object.freeze(e.data),r.complete_unit_cnt=String(e.cmp_cnt),r.progress=e.progress,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))});else{let s=n[e];if(s.mock_pk=t.mock_pk,s.mock_cnt=t.done_cnt,s.mock_done=1,s.record_id=t.record_id,s.mock_status=this.unitStatusChecker(s,g["G"]),n.splice(e,1,s),this.$data[i]=Object.freeze(n),1==r.schedule_type){let t=n.filter(t=>Number(t.voca_done)>0||Number(t.study_done)>0||Number(t.mock_done)>0);a=t.length||0}else{a=0;for(let t=0;t0&&(a+=.3333),Number(n[t].study_done)>0&&(a+=.3333),Number(n[t].mock_done)>0&&(a+=.3333)):(Number(n[t].study_done)>0&&(a+=.5),Number(n[t].mock_done)>0&&(a+=.5))}let o=r.tot_unit_cnt?Number(r.tot_unit_cnt):0,c=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=c,this.expanded.splice(0,1,Object.freeze(r)),this.books.splice(l,1,Object.freeze(r)),this.expanded.splice(0,1,Object.freeze(r))}},getProcessDate(t){return new Promise((e,s)=>{this.$axios.get(`${g["w"]}/schedule/getprogress/${this.$store.state.uid}/${t.schedule_id}/${t.books_id}`).then(t=>{200==t.status?e(t.data):s()})})},toggleBookmark(t){if(this.bookmark_disabled)return!1;if("F"==this.$store.state.product_type&&this.$store.state.tuto&&0==JSON.parse(this.$store.state.tuto)["t6"]&&this.$store.dispatch("updateTutorial","t6"),this.alert_type=!1,t.disable||!t.schedule_id)return t.id&&-1!=String(t.id).indexOf("adm_null")&&(this.alert_type="adm_null"),this.disableDialog(),!1;this.bookmark_disabled=!0;let e={schedule_id:t.schedule_id,user_id:this.$store.state.uid,book_id:t.id};this.$axios.post(`${g["w"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=R(this.item_length);e?s[5]+=1:s[5]-=1,this.item_length=Object.freeze(s);for(let[i,o]of Object.entries(this.books))if(o.table_key==t.table_key){let t=R(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.$store.dispatch("showToast",{message:`북마크 교재${this.bookmarktext}되었습니다.`,duration:2e3})}this.bookmark_disabled=!1})},closeDialog(t){this[t]=!1,clearTimeout(window.dialog_timeout)},shadowreadingConfirm(t,e=null){if(this.loading_unit)return!1;if(console.log(e,t),e&&1===+e.category&&2===+e.origin_category)if(+t.seq>0){if(this.is_vip_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_vip_book=!1;else if(this.is_vip_book=!1,!this.checkAuthFree(t.seq))return!1;let s="쉐도우";this.sel_unit=t,this.setLearningDialog(s+"를 시작하시겠습니까?",null,null,99)},testConfirm(t,e=null){if(this.loading_unit)return!1;if(e&&1===+e.category&&2===+e.origin_category)if(+t.seq>0){if(this.is_vip_book=!0,!this.checkAuthFree(t.seq))return!1}else this.is_vip_book=!1;else if(this.is_vip_book=!1,!this.checkAuthFree(t.seq))return!1;let s=null;if(!this.freepass)if(1==this.expanded[0].schedule_type&&1==this.expanded[0].schedule_type_v){let e=this.getScheduleBookId(this.expanded[0]);if(e){let i=!0;for(let s=+t.seq-1;s>=0;s--){let o=this.$data[e][s];if(o.id!=t.id||o.mode!=g["bb"])break;if(isNaN(o.study_cnt)||!(+o.study_cnt>0)){i=!1;break}}if(!i)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1}}else if(null==t.study_pk||Number(t.study_cnt)<1)return this.exitSound(),s=1,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;if(window.is_restudy>0&&Number(t.test_cnt)>2)return this.clickSound(),this.sel_unit=t,s=7,this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog),!1;switch(this.sel_unit=t,t.test_status){case 1:case 2:this.exitSound(),s=6;break;case 3:this.clickSound(),s=5;break;default:this.clickSound(),s=2;break}this.setDialogText(this.expanded[0],t,g["hb"],s,this.setLearningDialog)},goStudyGRAMMAR(t){this.setBookInfoGRAMMAR(this.expanded[0],this.sel_unit,this.learning_dialog_vma,t.clear,this.closeLearningDialog)},setBookInfoGRAMMAR(t,e,s,i,o){if(!t||!e||!s)return!1;let a=R(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&this.$store.dispatch("initPage"),this.$axios.get(`${g["w"]}/v2/book/getgrammarcount?unit_id=${e.id}&type=${s}`).then(e=>{if(200==e.status){let n=e.data.cnt;this.$store.dispatch("setBookInfoGRAMMAR",{book:t,unit:a,type:s,init:i,cnt:n}).then(t=>{this.$store.dispatch("setCurUnitId",a.id).then(()=>{i?(this.$store.commit("setClearPrevResult",!0),this.$store.dispatch("clearResultData").then(t=>{this.$store.commit("setLearningStatus",!0),this.$store.commit("setClearPrevResult",!1)})):([3,5,9,14,31].includes(this.learning_dialog_type)&&(this.$store.commit("setClearPrevResult",!0),this.$store.commit("setCurrentRestudy",!0)),this.$store.commit("setLearningStatus",!0)),o()})})}}).catch(t=>{console.error(t)})},onResize(){if("F"==this.$store.state.product_type&&this.$store.state.tuto){let t=document.querySelector(".ctooltip_wrap.d-block.tab_tooltip");if(t){let e=t.classList[2];if(0==JSON.parse(this.$store.state.tuto)[e]){let t=e.split("")[1]-1,s=document.getElementById("tab"+t);if(s){let t=s.getBoundingClientRect();this[e+"_top"]=t.top+"px",this[e+"_left"]=(t.left+t.left+t.width)/2+"px"}}}if(0==JSON.parse(this.$store.state.tuto)["t6"]){let t=document.querySelector("#bookmark_switch");if(t){let e=0,s=document.body.offsetWidth;s<900?e=22.5:900<=s&&s<960?e=27.5:960<=s&&s<1264?e=30:1264<=s&&(e=35);let i=t.getBoundingClientRect();this.t6_top=i.top+i.height+"px",this.t6_left=i.left+e+"px"}}}},openMockExamConfirm(t,e,s=null,i=null,o=null){if(console.log("openMockExamConfirm",t,e,s,i,o),this.loading_unit)return!1;if(!t)return!1;if(null==i){this.sel_mockexam=this.mockexams[t],this.sel_mockexam.bookname=e;let i=this.books.find(e=>e.books_id==t);3===+i.category?(this.sel_mockexam.category=3,this.sel_mockexam.schedule_id=null,this.$store.state.schedule_id=null):10===+i.category&&(this.sel_mockexam.schedule_id=null,this.$store.state.schedule_id=null),o&&(this.sel_mockexam.booktype=o),s&&this.expanded&&this.expanded[0]&&(this.sel_mockexam.unit_id=s.id?+s.id:null,this.sel_mockexam.s_u_id=s.s_u_id?+s.s_u_id:null,this.sel_mockexam.schedule_id=this.expanded[0].schedule_id,this.sel_mockexam.books_id=this.expanded[0].books_id,this.sel_mockexam.unit_name=s.name?s.name:"",this.sel_mockexam.ur_id=s.mock_pk?s.mock_pk:null,this.sel_mockexam.schedule_type=this.expanded[0].schedule_type,this.sel_mockexam.try_cnt=s.mock_cnt?+s.mock_cnt:1,s.schedule_name&&(this.sel_mockexam.bookname=s.schedule_name),this.sel_mockexam.record_id=s.record_id||null,1==this.sel_mockexam.schedule_type?(this.sel_mockexam.unit_seq=s.mode.length>1?+s.mode.replace(/[^0-9]/g,""):null,this.sel_mockexam.type_v_seq=s.seq?+s.seq:null):this.sel_mockexam.unit_seq=s.seq?+s.seq:null)}else{const e=this.mockexams[t];this.sel_mockexam={bookname:i.schedule_name,books_id:e.books_id,schedule_id:e.schedule_id||i.schedule_id,unit_name:null,record_id:s.mock_record_id?s.mock_record_id:null,id:e.id,question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,tot_question_cnt:s.question_cnt?s.question_cnt:e.question_cnt,time:Number(e.time),question_seq:s.question_seq?s.question_seq:null,new_mockexam:!0,is_regular:s.is_regular,cnttext:s.name},s.regular_id&&Number(s.regular_id)>0&&(this.sel_mockexam.regular_id=s.regular_id)}this.mockexam_dialog=!0},freeTrialGuide(t){if(1===this.$store.getters.getTrialGuide("s"+t))return!1;const e={1:{title:"멤버십 교과서",html:'저작권 협의된 출판사 교과서!
\n 내공스터디만의 공식 콘텐츠를 이용하세요.
\n
유료회원 가입 후 이용 가능합니다!
'},2:{title:"영어 교과서",html:'초등부터 고등까지 전 학년대
\n 영어 교과서 기출단어를 제공합니다.
\n
교과서를 선택하여 학습해보세요!
'},3:{title:"수능/모의고사",html:'연도별 기출 수능, 모의고사
\n 실전 변형문제까지 모두 제공합니다.
\n
모의평가를 선택하여 학습해보세요!
'},4:{title:"사용자 교재",html:'영어 선생님들이 직접 만든 교재
\n 무료로 공유 받을 수 있습니다.
\n
고객센터 및 담당자에게 신청하세요.
'}};this.trial_title=e[t].title,this.trial_html=e[t].html,this.trial_guide_dialog=!0},closeTrialGuide(){"F"!=this.$store.state.product_type?this.$store.dispatch("setTrialGuide","s"+this.tab):this.$store.commit("setTrialGuide",{key:"s"+this.tab,val:1})},handleCategoryWheel(t){if(2===this.tab){const e=t.currentTarget,s=t.deltaY;t.preventDefault(),e.scrollLeft+=s}},publisherView(t){"prev"===t&&this.publisher_page>1?(this.publisher_page--,this.visiblePublishers.length>0&&(this.current_publisher_idx=this.visiblePublishers[this.visiblePublishers.length-1].originalIndex)):"next"===t&&this.publisher_page0&&(this.current_publisher_idx=this.visiblePublishers[0].originalIndex))},async refresh(){this.books=[],this.books_tmp=[],this.school_books=[],this.school_search_books=null,this.membership_books=[],this.membership_search_books=null,this.expanded=[],this.selected=[],this.$store.commit("setSchoolBooks",[]);try{const t=await this.getCommonBooks();await this.getScheduleBooks(t),this.$refs.book_list_latest&&this.$refs.book_list_latest.getList(),this.search_keyword="",this.setToast("최신 교재 목록으로 업데이트하였습니다.")}catch(t){console.log(t),this.setToast("업데이트 중 오류가 발생했습니다.")}}}},wu=fu,yu=(s("824a"),Object(p["a"])(wu,gu,bu,!1,null,null,null)),xu=yu.exports;y()(yu,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDataTable:Gh["a"],VDialog:ct["a"],VIcon:jt["a"],VLazy:yt["a"],VOverflowBtn:Wh["a"],VRow:ht["a"],VSheet:Se["a"],VSwitch:ye["a"],VTextField:ut["a"]});var ku=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"schedule-index"}},[t.getLearningStatus?s("learning",{key:"learning-index",attrs:{mode:t.$store.getters.getLearningMode,tab:7}}):t._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"static-container"},[s("left-bar-static",[s("router-link",{staticClass:"vertical-tab",attrs:{to:"/schedule/assessmentSchedule"}},[s("div",{class:[1==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("평가 스케줄")])])]),s("router-link",{staticClass:"vertical-tab",attrs:{to:"/schedule/learningschedule"}},[s("div",{class:[2==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("학습 스케줄")])])])],1),s("div",{staticClass:"right"},[s("router-view")],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog1=!1}},model:{value:t.dialog1,callback:function(e){t.dialog1=e},expression:"dialog1"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-6"]},[t._v("설정된 학습 스케줄이 없습니다."),s("br"),t._v("\n 선생님에게 요청하세요.")])],1)],1)],1)],1)},Cu=[],$u={name:"schedule-index",components:{Learning:rh,LeftBarStatic:Is["a"]},data(){return{dialog1:!1,is_mobile:!1}},computed:{routeCheck:function(){let t;switch(this.$route.name){case"assessment-learningschedule":t=1;break;case"schedule-learningschedule":t=2;break;default:}return t},getLearningStatus:function(){return this.$store.getters.getLearningStatus}},mounted(){},created(){this.$store.state.is_mobile&&(this.is_mobile=!0)}},Su=$u,Tu=(s("d3ac"),Object(p["a"])(Su,ku,Cu,!1,null,null,null)),Au=Tu.exports;y()(Tu,{VCard:at["a"],VCardText:nt["b"],VDialog:ct["a"]});var Iu=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-index"}},[t.getLearningStatus&&t.$store.state.process_type!==t.ASSESSMENT_RESULT?s("learning",{key:"learning-index",attrs:{mode:t.$store.getters.getLearningMode,tab:7}}):t.$store.state.process_type===t.ASSESSMENT_RESULT&&t.$store.state.assessmentRecordId?s("report"):t._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"static-container"},[s("left-bar-static",[s("router-link",{staticClass:"vertical-tab",attrs:{to:"/report/lookup"}},[s("div",{class:[1==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("레포트 조회")])])]),s("router-link",{staticClass:"vertical-tab",attrs:{to:"/report/analysis"}},[s("div",{class:[2==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("레포트 분석")])])])],1),s("div",{staticClass:"right"},[s("router-view")],1)],1)],1)},Du=[],Ru=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"result-contents v-book-index static-container",attrs:{id:"level-result-index"}},[s("left-bar-static",{staticClass:"child-white"},[s("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[s("div",{staticClass:"d-flex align-center",staticStyle:{height:"4rem"}},[s("v-switch",{staticClass:"switch-left-label width-100",class:"is-mobile-"+t.is_mobile,attrs:{label:"틀린 문제만 보기",color:"success","hide-details":"",ripple:!1,dense:t.is_mobile,disabled:t.disableSwitch},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}},model:{value:t.wrong_show,callback:function(e){t.wrong_show=e},expression:"wrong_show"}})],1),s("div",{staticStyle:{width:"100%",height:"24px",flex:"1 1 auto"}},[s("div",{staticStyle:{"border-top":"thin solid #edeeef",width:"auto","margin-left":"12%","margin-right":"12%","margin-top":"4%"}})])])]),s("div",{staticClass:"right"},["report"===t.mode&&t.$store.state.assessmentRecordId?s("v-sheet",{staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[s("report-result",{attrs:{isStudy:t.isStudy,wrongShow:t.wrong_show},on:{"change-child-tab":t.changeChildTab}})],1):t._e()],1),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]})],1)},Pu=[],Mu=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"height-100 printnone real-leveltest-report"},[i("div",{staticClass:"component printnone assessment-result-custom",attrs:{id:"level-result-wrapper"}},[i("v-tabs",{attrs:{id:"level-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"}},[i("v-tab",{key:"result-tab-0",staticClass:"first-tab",class:{"bg-success":0==t.tab},attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[i("b",{staticClass:"tab-title fs-105rem"},[t._v("Report")])]),t._l(t.tabs,(function(e,s){return i("v-tab",{key:"result-tab-"+(s+1),attrs:{ripple:!1},on:{click:function(e){return t.$store.dispatch("soundEffectPlay","click_button")}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tab,expression:"tab == 0"}],staticClass:"under-line pos-abs-i width-100 bottom-0 left-0",class:"bg-success"}),i("b",{staticClass:"tab-title fs-105rem",class:t.tab==s+1?"fw-700":""},[t._v("\n "+t._s(e)+"\n ")])])})),t.assessmentInfo?i("v-tabs-items",{class:{"bg-grey":0==t.tab},staticStyle:{"overflow-y":"auto","overflow-x":"hidden"},attrs:{touchless:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[i("v-tab-item",{key:"result-tab-item-0",attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},[i("v-container",{staticClass:"pa-0",attrs:{fluid:""}},[i("v-row",[i("v-col",{staticClass:"vertical-helf py-0 pl-0 pr-1 height-100",attrs:{cols:"8"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"before-divider divider-bottom row-20per"},[i("v-col",{staticClass:"pl-6",attrs:{cols:"12"}},[t._v("레포트 정보\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))]),t._v("\n   "),i("span",{staticClass:"grey--text text--darken-1"},[t._v(t._s(t.assessmentInfo.postdate))]),t._v("\n   "),i("span",{staticClass:"grey--text text--darken-1"},[t._v("("+t._s(t.formattedRoundNo)+")")])],1)],1),i("v-row",{staticClass:"before-divider divider-bottom row-40per"},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"7.5vh",width:"7.5vh",contain:"",src:s("c60a"),"lazy-src":s("c60a"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[i("h3",{staticClass:"title ellipsis width-100"},[t._v("\n "+t._s(t.$store.state.uname)+"\n ")]),i("span",{staticClass:"grey--text text--darken-1 ellipsis width-100"},[t._v("\n "+t._s(t.$store.state.class[0]["name"])+"\n ")])])],1),i("v-row",{staticClass:"row-40per"},[i("v-col",{staticClass:"pa-0 col-center",attrs:{cols:"4"}},[i("v-img",{attrs:{height:"8vh",width:"8vh",contain:"",src:s("24dd"),"lazy-src":s("24dd"),transition:!1}}),i("div",{staticClass:"divider"})],1),i("v-col",{staticClass:"col-start",attrs:{cols:"8"}},[i("h3",{staticClass:"title ellipsis width-100",domProps:{textContent:t._s(t.assessmentInfo.assessment_name)}}),i("span",{staticClass:"grey--text text--darken-1 ellipsis width-100",domProps:{textContent:t._s(t.formattedRoundNo)}})])],1)],1)],1),i("v-col",{staticClass:"vertical-helf pl-0 pt-0 pr-0 pb-0 height-100",attrs:{cols:"4"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6",attrs:{cols:"12"}},[t._v("\n 종합 스코어\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"row-80per",attrs:{id:"circle-row"}},[i("v-col",{staticClass:"text-center",attrs:{id:"circle-col",cols:"12"}},[t.circle_size>0&&t.circle_width>0?i("v-progress-circular",{staticClass:"gradient-circle-green",style:"font-size:"+t.circle_font+"px; font-weight:500;",attrs:{indeterminate:!1,rotate:.3,size:t.circle_size,value:t.assessmentInfo.score,width:t.circle_width,color:"success"}},[i("span",{staticClass:"black--text"},[t._v("\n "+t._s(t.formattedNumber(t.assessmentInfo.score,"score"))),i("small",[t._v("점")])])]):t._e()],1)],1)],1)],1)],1),i("v-row",[i("v-col",{staticClass:"vertical-helf px-0 pb-0 pt-1 height-100",attrs:{cols:"12"}},[i("v-card",{staticClass:"elevation-0",attrs:{height:"100%"}},[i("v-row",{staticClass:"row-20per"},[i("v-col",{staticClass:"before-divider divider-bottom pl-6",attrs:{cols:"12"}},[t._v("\n 레포트 분석\n "),i("v-icon",{attrs:{color:"black",size:t.$store.state.screen_width.fontRemToPx(1.5).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),i("v-row",{staticClass:"row-80per padding-x-10per",staticStyle:{position:"relative"}},[i("v-col",{staticClass:"col-center py-0",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("a383"),"lazy-src":s("a383"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 학습 문항\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.assessmentInfo.question_cnt)+"문항\n ")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("3868"),"lazy-src":s("3868"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 오답 문항\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.assessmentInfo.wrong_cnt)+"개\n ")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("6502"),"lazy-src":s("6502"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 오답률\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.formattedNumber(t.assessmentInfo.wrong_percent,"percent"))+"%\n ")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",{staticClass:"detail-caption"},[i("v-img",{attrs:{height:"8.5vh",width:"8.5vh",contain:"",src:s("185c"),"lazy-src":s("185c"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-3"},[t._v("\n 학습 시간\n ")]),i("h3",{staticClass:"black--text title"},[t._v("\n "+t._s(t.formattedNumber(t.assessmentInfo.study_time,"time"))+"분\n ")])],1)])],1)],1)],1)],1)],1)],1),t._l(t.tabs,(function(e,s){return i("v-tab-item",{key:"result-tab-item-"+(s+1),attrs:{transition:!1,"reverse-transition":!1,mode:"out-in"}},["상세 조회"===e?i("v-list",{staticClass:"py-0",attrs:{flat:""}},[t.wrongShow&&!t.html_data.some((function(t){return!JSON.parse(t.right)}))?[i("v-row",{staticClass:"pa-0",staticStyle:{width:"100%"},attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("div",{staticClass:"text-center grey--text",staticStyle:{width:"100%","padding-top":"2rem"}},[t._v("\n 틀린 문제가 없습니다.\n ")])])],1)]:[t.html_data?i("v-list-item-group",{staticStyle:{height:"100%"},attrs:{mandatory:""}},[t._l(t.html_data,(function(e,o){return[i("v-list-item",{directives:[{name:"show",rawName:"v-show",value:t.showList(e.right),expression:"showList(val2.right)"}],key:"result-tab-item-"+(s+1)+"-"+o,staticClass:"border-ede thin-b",attrs:{ripple:!1}},[i("v-row",{staticClass:"pa-0 width-100 mgauto",attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[i("v-list-item-content",{staticClass:"py-3 d-block"},[i("div",{staticClass:"number-wrap",domProps:{textContent:t._s(+o+1)}})])],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[i("v-list-item-content",{staticClass:"py-3 d-block",staticStyle:{"max-height":"54px","padding-left":"10%"}},["speaking"===e.type?[e.right&&1===+e.right?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-"+(s+1)+"-"+o}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-"+(s+1)+"-"+o}})]:[e.right&&"true"===e.right?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-"+(s+1)+"-"+o}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-"+(s+1)+"-"+o}})]],2)],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"9"}},[i("v-list-item-content",{staticStyle:{padding:"10px 0","min-height":"54px"}},[i("div",{staticStyle:{"white-space":"normal"},domProps:{innerHTML:t._s(e.docTag)}})])],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},["speaking"===e.type?i("v-row",{staticClass:"speaking-ops-row",staticStyle:{height:"100%","margin-left":"-34%","margin-right":"-10%"},attrs:{dense:"","no-gutters":""}},[i("v-col",{staticClass:"end-col",attrs:{cols:"6"}}),i("v-col",{staticClass:"end-col",staticStyle:{display:"flex","justify-content":"center","align-items":"center"},attrs:{cols:"6"}},[i("div",{staticClass:"cap-wrapper"},[i("circular-audio-player",{attrs:{id:e.id}})],1)])],1):t._e()],1)],1)],1)]}))],2):t._e()]],2):t._e(),"코멘트"===e?i("div",{staticClass:"comment-wrapper"},[i("div",{staticClass:"comment-box",domProps:{textContent:t._s(t.formattedComment)}})]):t._e()],1)}))],2):t._e()],2)],1),t.assessmentInfo?i("v-dialog",{attrs:{persistent:"",id:"cutoff-modal","max-width":"380"},model:{value:t.showCutoffModal,callback:function(e){t.showCutoffModal=e},expression:"showCutoffModal"}},[i("v-card",{staticClass:"pa-4 text-center",staticStyle:{"border-radius":"14px"}},[i("div",{staticClass:"font-weight-bold",class:"cutoff-"+t.assessmentInfo.cutoffResult,staticStyle:{"font-size":"1.2rem","padding-bottom":"12px"}},[t._v("\n TEST\n "+t._s("pass"===t.assessmentInfo.cutoffResult?"PASSED":"FAILED")+"!\n ")]),i("div",{staticStyle:{background:"#f4f7f9","border-radius":"14px","align-content":"center"}},[i("div",{staticClass:"d-flex justify-center align-center",staticStyle:{height:"80px"}},["fail"===t.assessmentInfo.cutoffResult?i("img",{attrs:{src:t.CutoffFail,alt:"FAIL",width:"50"}}):"pass"===t.assessmentInfo.cutoffResult?i("img",{attrs:{src:t.CutoffPass,alt:"PASS",width:"50"}}):t._e()]),i("div",{class:"cutoff-"+t.assessmentInfo.cutoffResult,staticStyle:{"font-size":"28px","font-weight":"900"}},[t._v("\n "+t._s(t.formattedNumber(t.assessmentInfo.score,"score"))+"점\n ")]),i("div",{staticClass:"grey--text text--darken-1 mb-4",class:"cutoff-"+t.assessmentInfo.cutoffResult,staticStyle:{"font-size":"14px"}},[t._v("\n (목표 "+t._s(t.assessmentInfo.cutoff)+"점)\n ")])]),i("v-btn",{staticClass:"mt-4 width-100",class:"cutoff-"+t.assessmentInfo.cutoffResult,attrs:{color:"lighten-1",ripple:!1},on:{click:t.handleConfirmCutoffModal}},[t._v("\n 확인\n ")])],1)],1):t._e()],1)},Eu=[],Bu=s("d93e"),Nu=s.n(Bu),qu=s("273e"),Lu=s.n(qu),zu={name:"ReportResult",components:{IconReportO:Ps["a"],IconReportX:Ms["a"],CircularAudioPlayer:Es["a"]},props:{isStudy:{type:Boolean,default:!1},wrongShow:{type:Boolean,default:!1}},data(){return{tab:0,tabs:["상세 조회","코멘트"],assessmentInfo:null,html_data:null,circle_size:0,circle_width:0,circle_font:0,mdi_chevron_right:Lt["v"],item:{name:"123",select_grade_kor:"123",postdate:"123",min_studytime:"123",grade_avg:"123"},showCutoffModal:!1,CutoffFail:Nu.a,CutoffPass:Lu.a}},async mounted(){this.$store.state.assessmentRecordId&&(await this.getReportDetailInfo(),this.initSummary(),this.loadHtmlData())},computed:{formattedComment(){return this.assessmentInfo.comment.replace(/\n/g,"\n")},formattedRoundNo(){const t=this.assessmentInfo.round_no;return t?t>1?+t-1+"차 재평가":"정규평가":""}},watch:{tab(t){this.$emit("change-child-tab",t)}},methods:{showList(t){return!this.wrongShow||this.wrongShow&&!JSON.parse(t)},handleConfirmCutoffModal(){this.showCutoffModal=!1,"pass"!==this.assessmentInfo.cutoffResult&&this.$store.dispatch("showToast",{message:"테스트가 재출제 되었습니다.",duration:2e3})},async fillLoadingPercent(){await this.$store.dispatch("fillLoadingPercent").then(()=>{window.addEventListener("resize",this.onResize)})},formattedNumber(t,e){return"time"===e?Math.floor(+t/60)+(+t%60>30?1:0):"score"===e||"percent"===e?Math.round(+t):void 0},setCircleSize(t,e){if(this.tab>0)return!1;let s=document.getElementById("circle-row"),i=document.getElementById("circle-col");if(!s||!i)return!1;let o=window.getComputedStyle(i),a=s.offsetHeight,n=s.offsetWidth;a-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight);let r=a>n?n:a;isNaN(r)||(this.circle_size=.82*r,this.circle_width=.9*Math.round(r/12),this.circle_font=.9*Math.round(r/6)),e&&"function"===typeof e&&e()},getReportDetailInfo(){this.$axios.get(`${g["w"]}/assessmentresult/${this.$store.state.cid}/user/${this.$store.state.uid}/report/${this.$store.state.assessmentRecordId}`).then(t=>{this.assessmentInfo=t.data.result,this.$nextTick(async()=>{this.setCircleSize(null,(function(){setTimeout(()=>{let t=document.getElementById("circle-col").getElementsByTagName("svg");t=t[0];let e=t.childNodes[0];e.classList.remove("v-progress-circular__underlay"),e.setAttribute("stroke","#f5f5f5")},50)})),await this.fillLoadingPercent().then(()=>{window.addEventListener("resize",this.setCircleSize),setTimeout(()=>{this.isStudy&&(this.showCutoffModal=!0)},0)})})})},initSummary(){const t=this.$store.state.assessmentInfo||{};this.item.name=t.name||t.assessment_name||this.item.name,this.item.select_grade_kor=t.roundNo||this.item.select_grade_kor,this.item.postdate=this.$dayjs?this.$dayjs().format("YYYY.MM.DD"):this.item.postdate,this.item.min_studytime=Math.max(1,Math.round((this.$store.state.seconds||0)/60))+""},async loadHtmlData(){try{const e=this.$store.state.uid,s=this.$store.state.cid,o=this.$store.state.assessmentInfo||{},a=o.assessment_id;if(!e||!s||!a)return;const n=`${s}-${a}-0-${e}-assessment`,r=i["db"].collection("users").doc(e).collection("assessments").doc(a).collection("assessmentunits").doc(n),l=await r.get(),c=l.data();if(!c||!Array.isArray(c.result_html))return void(this.html_data=[]);const d=new DOMParser,h=[];for(const i of c.result_html){if(!i)continue;let e=i;try{/%u[0-9A-Fa-f]{4}|%[0-9A-Fa-f]{2}/.test(i)&&(e=unescape(i))}catch(t){}e=e.replace(/\+_\+/g,"'");const s=d.parseFromString(e,"text/html"),o=s&&s.body&&s.body.children[0];if(!o||!o.dataset)continue;let a=o.dataset;0===Object.keys(a).length&&s.body.children.length>1&&[...s.body.children].forEach(t=>{t.dataset&&(a=t.dataset)}),h.push({id:a.i||null,right:void 0!==a.r?String(a.r):"false",type:a.t||null,selected:void 0!==a.s?a.s:null,docTag:e})}this.html_data=h}catch(t){console.error("[Assessment] loadHtmlData error",t),this.html_data=[]}},showWords(t){return t}},beforeDestroy(){window.removeEventListener("resize",this.setCircleSize)}},Ou=zu,ju=(s("0fb2"),Object(p["a"])(Ou,Mu,Eu,!1,null,"6906ad18",null)),Vu=ju.exports;y()(ju,{VBtn:ot["a"],VCard:at["a"],VCol:rt["a"],VContainer:lt["a"],VDialog:ct["a"],VIcon:jt["a"],VImg:qs["a"],VList:Ls["a"],VListItem:zs["a"],VListItemContent:Os["a"],VListItemGroup:js["a"],VProgressCircular:Vs["a"],VRow:ht["a"],VTab:as["a"],VTabItem:ns["a"],VTabs:rs["a"],VTabsItems:ls["a"]});var Fu={name:"AssessmentReport",components:{LeftBarStatic:Is["a"],Loading:Bt,ReportResult:Vu},props:["result","isStudy"],data(){return{wrong_show:!1,mode:"",recommendBooks:null,is_mobile:!1,mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"],child_tab:0}},computed:{showLoading:function(){return this.$store.state.loading_percent>0},disableSwitch:function(){return 1!==this.child_tab}},methods:{changeChildTab(t){this.child_tab=t}},watch:{showLoading:{handler(t,e){t&&(this.mode="report")},immediate:!0},disableSwitch:{deep:!0,handler:function(t){t&&(this.wrong_show=!1)}}},mounted(){this.$store.commit("addLoadingPercent",3)},beforeDestroy(){this.$store.commit("setProcessType",null)}},Gu=Fu,Wu=Object(p["a"])(Gu,Ru,Pu,!1,null,"28c067ca",null),Uu=Wu.exports;y()(Wu,{VSheet:Se["a"],VSwitch:ye["a"]});var Hu={name:"report-index",components:{Learning:rh,LeftBarStatic:Is["a"],Report:Uu},data(){return{ASSESSMENT:g["c"],ASSESSMENT_RESULT:g["c"]+g["R"]}},computed:{routeCheck:function(){let t=0,e=this.$route.name.split("-")[1];switch(e){case"lookup":t=1;break;case"analysis":t=2;break;default:}return this.$route.name.includes("leveltest")&&(t=3),t},getLearningStatus:function(){return this.$store.getters.getLearningStatus}},created:function(){}},Ku=Hu,Zu=(s("b9c9"),Object(p["a"])(Ku,Iu,Du,!1,null,null,null)),Yu=Zu.exports,Ju=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"static-container",attrs:{id:"learderboard-index"}},[s("left-bar-static",[s("router-link",{staticClass:"vertical-tab",attrs:{to:"/leaderboard/board"}},[s("div",{class:[1==t.routeCheck?"active":""],on:{touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("리더 보드")])])]),s("router-link",{staticClass:"vertical-tab",attrs:{to:"/leaderboard/record"}},[s("div",{class:[2==t.routeCheck?"active":""],on:{touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("수상 이력")])])])],1),s("div",{staticClass:"right"},[s("router-view")],1)],1)},Xu=[],Qu={name:"leaderboard-index",components:{LeftBarStatic:Is["a"]},computed:{routeCheck:function(){let t=1;switch(this.$route.name){case"leaderboard-board":t=1;break;case"leaderboard-record":t=2;break;default:}return t}}},tp=Qu,ep=(s("de2b"),Object(p["a"])(tp,Ju,Xu,!1,null,null,null)),sp=ep.exports,ip=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"static-container",attrs:{id:"settings-index"}},[s("left-bar-static",[s("router-link",{staticClass:"vertical-tab",attrs:{to:"/settings/learningoptions"}},[s("div",{class:[1==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("학습설정")])])]),s("router-link",{staticClass:"vertical-tab",attrs:{to:"/settings/faq"}},[s("div",{class:[2==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("사용 설명서")])])])],1),s("div",{staticClass:"right"},[s("v-container",{staticClass:"white",attrs:{fluid:""}},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{attrs:{cols:"12"}},[s("router-view")],1)],1)],1)],1)],1)},op=[],ap={name:"settings-index",components:{LeftBarStatic:Is["a"]},computed:{routeCheck:function(){let t=0,e=this.$route.name.split("-");if(e[1])switch(this.$route.name.split("-")[1]){case"learningoptions":t=1;break;case"faq":t=2;break;default:t=1;break}else t=1;return t}}},np=ap,rp=(s("ceac"),Object(p["a"])(np,ip,op,!1,null,null,null)),lp=rp.exports;y()(rp,{VCol:rt["a"],VContainer:lt["a"],VRow:ht["a"]});var cp=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.getLearningStatus?s("learning",{key:"learning-index",attrs:{mode:t.$store.getters.getLearningMode}}):t._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"static-container",attrs:{id:"pocketnote-index"}},[s("div",{staticClass:"p-per overflow-hidden bg-white"},[s("v-row",{staticClass:"bd-b-tick",attrs:{dense:"","no-gutters":""}},[s("v-col",{attrs:{cols:"6"}},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{attrs:{cols:"6",md:"5",sm:"5"}},[s("v-btn",{staticClass:"note-tabs",attrs:{depressed:"",block:"",text:"",ripple:!1,to:"/pocketnote/pocketnote"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"inner-tab width-100 fw-700 d-flex align-center justify-center",class:[1==t.routeCheck?"success":"unactive"]},[s("div",{staticClass:"tab-title"},[t._v("\n 포켓 노트\n "),s("span",{staticClass:"font-size-bigger pocketcnt",domProps:{textContent:t._s(t.pocketcnt)}})])])])],1),s("v-col",{attrs:{cols:"6",md:"5",sm:"5"}},[s("v-btn",{staticClass:"note-tabs",attrs:{depressed:"",block:"",text:"",ripple:!1,to:"/pocketnote/checkupnote"},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"inner-tab width-100 fw-700 d-flex align-center justify-center",class:[2==t.routeCheck?"success":"unactive"]},[s("div",{staticClass:"tab-title"},[t._v("체크업 노트")])])])],1)],1)],1),s("v-col",{attrs:{cols:"6"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.routeCheck,expression:"routeCheck == 1"}],staticClass:"switch-bookmark-div flex-row-reverse"},[s("v-switch",{key:"pocketnote-switch-1",staticClass:"switch-bookmark width-auto align-center",class:"is-mobile-"+t.is_mobile,attrs:{label:"책갈피",color:"success","hide-details":"",dense:t.is_mobile,ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}},model:{value:t.sentence_cover,callback:function(e){t.sentence_cover=e},expression:"sentence_cover"}})],1)])],1),s("router-view",{attrs:{"sentence-cover":t.sentence_cover,"close-cover":t.closeCover}})],1)])],1)},dp=[],hp={name:"pocketnote-index",components:{Learning:rh},data(){return{is_mobile:!1,pocketcnt:0,sentence_cover:!1}},computed:{routeCheck:function(){let t=0,e=this.$route.name.split("-")[1];switch(e){case"pocketnote":t=1;break;case"checkupnote":t=2;break;default:}return t},getLearningStatus:function(){return this.$store.getters.getLearningStatus}},methods:{closeCover:function(){this.sentence_cover=!this.sentence_cover}},created:function(){this.$store.state.is_mobile&&(this.is_mobile=!0),this.$axios.get(`${g["w"]}/pocketnote/${this.$store.state.cid}/user/${this.$store.state.uid}/cnt`).then(t=>{200==t.status?this.pocketcnt=t.data:this.pocketcnt=0}).catch(t=>{window.console.error(t)})}},up=hp,pp=(s("290e"),Object(p["a"])(up,cp,dp,!1,null,null,null)),_p=pp.exports;y()(pp,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"],VSwitch:ye["a"]});var mp=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"static-container",attrs:{id:"guide-index"}},[s("left-bar-static",[s("router-link",{staticClass:"vertical-tab",attrs:{to:"/guide/faq"}},[s("div",{class:[1==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("자주묻는 질문")])])]),s("router-link",{staticClass:"vertical-tab d-none",attrs:{to:"/guide/manual"}},[s("div",{class:[2==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("사용자 매뉴얼")])])]),s("router-link",{staticClass:"vertical-tab d-none",attrs:{to:"/guide/video"}},[s("div",{class:[3==t.routeCheck?"active":""],on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"tab-dot"}),s("b",[t._v("동영상 가이드")])])])],1),s("div",{staticClass:"right"},[s("v-container",{staticClass:"white",attrs:{fluid:""}},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{attrs:{cols:"12"}},[s("router-view")],1)],1)],1)],1)],1)},gp=[],bp={data(){return{is_mobile:!1}},components:{LeftBarStatic:Is["a"]},computed:{routeCheck:function(){let t=0,e=this.$route.name.split("-");if(e[1])switch(this.$route.name.split("-")[1]){case"faq":t=1;break;case"manual":t=2;break;case"video":t=3;break;default:t=1;break}else t=1;return t}},methods:{clickSound:function(){this.$store.dispatch("soundEffectPlay","click")}}},vp=bp,fp=(s("e135"),Object(p["a"])(vp,mp,gp,!1,null,null,null)),wp=fp.exports;y()(fp,{VCol:rt["a"],VContainer:lt["a"],VRow:ht["a"]});var yp=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"width-100 height-100 pos-rel bg-center bg-road",attrs:{id:"checkup"}},[s("v-app-bar",{attrs:{id:"header-study-bar",fixed:"",color:"transparent",flat:""}},[s("div",{staticClass:"checkup",attrs:{id:"learning-title"}}),t._v("\n   \n "),s("span",{staticClass:"title white--text"},[t._v("Check-Up")]),s("span",{staticClass:"pl-3 title grey--text text--lighten-4"},[t._v("저장한 문항을 완벽하게 익혀보세요!")]),t.showLoading?t._e():[s("div",{staticClass:"pos-abs study-header-counter subtitle-1 white--text"},[s("span",{staticClass:"title",staticStyle:{color:"#dceb56"}},[t._v(t._s(t.step+1))]),t._v("\n / "+t._s(t.max)+"\n ")]),s("v-btn",{staticClass:"top-right-navi-btn white",attrs:{text:"",icon:"","x-large":"",absolute:"",right:"",to:{path:"/pocketnote",query:{t:"btn"}},ripple:!1}},[s("v-icon",{staticStyle:{"font-size":"24px",color:"#52c4cf"},attrs:{size:"24px"}},[t._v(t._s(t.mdi_close))])],1)],s("div",{staticClass:"default-divider in-checkup"})],2),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.showLoading,expression:"!showLoading"}],staticClass:"main width-100 height-100 pa-2 pos-rel"},[s("div",{staticClass:"pos-abs",staticStyle:{height:"4vh",width:"12vh","margin-top":"11vh","margin-left":"calc(1% + 8px)"}},[s("v-btn",{staticStyle:{"z-index":"10","margin-left":"2vh"},attrs:{large:"",outlined:"",block:"",color:"white","max-height":"4vh"},on:{click:function(e){return e.preventDefault(),t.toggleBgm(e)}}},[s("span",{staticStyle:{"font-size":"0.9rem"}},[t._v("BGM")]),t._v(" \n "),t.bgm_on?s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(1.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(1.4).toFixed(2)}},[t._v(t._s(t.mdi_music))]):s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(1.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(1.4).toFixed(2)}},[t._v(t._s(t.mdi_music_off))])],1)],1),s("div",{staticClass:"pos-abs width-100 mx-n2 px-5 text-center",style:"top:"+t.progress_top+"px;",attrs:{id:"checkup-question"}},[s("span",{staticClass:"target shadow",class:{active:t.cur_end},style:"font-size:"+.03*t.std_height+"px;",domProps:{textContent:t._s(t.cur_question)}})]),s("div",{staticClass:"pos-abs bottom-0 width-100 mx-n2",style:"height: "+t.bg_height+"px;",attrs:{id:"txt-field"}},[s("div",{staticClass:"txt-wrap ma-auto white",style:"border-radius: "+t.bg_br+"px;"},[s("v-row",{staticClass:"height-100",attrs:{"no-gutters":""}},[s("v-col",{attrs:{cols:"1"}}),s("v-col",{staticClass:"d-flex align-center justify-center",attrs:{cols:"10"}},[s("div",{staticClass:"d-flex flex"},[s("textarea-autosize",{staticClass:"ma-auto width-100",attrs:{id:"answer-area",value:"",maxHeight:.24*t.std_height,fontSize:.034*t.std_height,getChildProp:t.getChildProp,step:t.step,goNext:t.goNext}})],1)]),s("v-col",{staticClass:"pos-rel",attrs:{cols:"1"}},[s("div",{staticClass:"pos-abs bottom-0",staticStyle:{width:"90%","padding-right":"5%"},style:"padding-bottom: "+t.bg_br/4+"px;"},[s("v-btn",{staticClass:"pa-0",style:"height:"+1.5*t.bg_br+"px !important;",attrs:{"x-large":"",depressed:"",rounded:"",block:"",color:t.cur_pass?"success":"grey lighten-2 white--text"},on:{click:t.goNext}},[s("v-icon",{style:"width:"+t.bg_br+"px; height:"+t.bg_br+"px;"},[t._v(t._s(t.mdi_arrow_right))])],1)],1)])],1)],1)])]),s("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog},model:{value:t.$store.state.dialog_leaning_stop,callback:function(e){t.$set(t.$store.state,"dialog_leaning_stop",e)},expression:"$store.state.dialog_leaning_stop"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("Check-Up을 종료하시겠습니까?")])])]),s("v-col",{staticClass:"grey--text px-0",attrs:{cols:"12"}},[t._v("\n 아직 학습이 완료되지 않았습니다. "),s("br"),t._v("\n 학습하기를 눌러 끝까지 도전해보세요!\n ")])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeDialog}},[s("span",{staticClass:"title"},[t._v("학습하기")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.studyEndDialog}},[s("span",{staticClass:"title"},[t._v(" 종료 ")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{"max-width":t.is_mobile?410:460,persistent:""},model:{value:t.init_guide_dialog,callback:function(e){t.init_guide_dialog=e},expression:"init_guide_dialog"}},[t.init?s("v-card",[s("v-card-text",{staticClass:"pt-2 pb-5 text-center black--text title"},[s("v-row",[s("v-col",{attrs:{cols:"1"}}),s("v-col",{staticClass:"text-center pt-2 pb-3",staticStyle:{"border-bottom":"thin dashed #ddd"},attrs:{cols:"10"}},[s("h3",{staticClass:"title success--text"},[s("b",[t._v("Information")])])]),s("v-col",{attrs:{cols:"1"}}),s("v-col",{staticClass:"text-center pt-8 pb-5",staticStyle:{"margin-bottom":"2px","margin-top":"2px"},attrs:{cols:"12"}},[s("h3",{staticClass:"title fw-400"},[t._v("\n 하늘에서 내려오는 문장을 보고"),s("br"),t._v("제한시간 안에 영어로\n 적어보세요!\n ")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-2 success"},[s("v-btn",{attrs:{color:"success","x-large":"",block:"",elevation:"0",ripple:!1},on:{click:t.actProccess}},[s("span",{staticClass:"title"},[s("b",[t._v("시 작")])])])],1)],1):s("v-card",[s("v-card-text",{staticClass:"pt-2 pb-5 text-center black--text title"},[s("v-row",[s("v-col",{attrs:{cols:"1"}}),s("v-col",{staticClass:"text-center pt-2 pb-3",staticStyle:{"border-bottom":"thin dashed #ddd"},attrs:{cols:"10"}},[s("h3",{staticClass:"title success--text"},[s("b",[t._v("Report Card")])])]),s("v-col",{attrs:{cols:"1"}}),s("v-col",{staticClass:"text-center pt-6 pb-4",attrs:{cols:"12"}},[s("h2",{class:["Try Harder!"===t.result_ment?"danger--text":"primary--text"]},[t._v("\n "+t._s(t.result_ment)+"\n ")]),s("div",{staticClass:"width-100",staticStyle:{height:"1.4vh"}}),s("h1",[s("b",{staticClass:"primary--text"},[t._v(t._s(t.right_cnt))]),s("small",{staticClass:"grey--text text--darken-1 fw-400",staticStyle:{"font-size":"0.6em"}},[t._v(" / "+t._s(t.sentences.length))])])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-2 success"},[s("v-btn",{attrs:{color:"success","x-large":"",block:"",elevation:"0",ripple:!1},on:{click:t.actProccess}},[s("span",{staticClass:"title"},[s("b",[t._v("확인")])])])],1)],1)],1),s("audio",{staticStyle:{display:"none"},attrs:{id:"bgm",loop:"",preload:"true"}},[s("source",{attrs:{src:t.SOUND_CDN+"/checkup_bgm.mp3",type:"audio/mpeg"}})])],1)},xp=[],kp=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticStyle:{"text-align":"center"},style:t.computedStyles,attrs:{rows:"1"},domProps:{value:t.val},on:{focus:t.resize,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.goNext(e))},input:function(e){e.target.composing||(t.val=e.target.value)}}})},Cp=[],$p={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},fontSize:{type:[Number],default:1.4},important:{type:[Boolean,Array],default:!1},getChildProp:{type:[Function],default:()=>{}},step:{type:[Number]},goNext:{type:[Function],default:()=>{window.console.log("empty")}}},data(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden",fontSize:this.fontSize+"px"}:{}},isResizeImportant(){const t=this.important;return!0===t||Array.isArray(t)&&t.includes("resize")},isOverflowImportant(){const t=this.important;return!0===t||Array.isArray(t)&&t.includes("overflow")},isHeightImportant(){const t=this.important;return!0===t||Array.isArray(t)&&t.includes("height")}},watch:{value(t){this.val=t},val(t){this.$nextTick(this.resize),this.$emit("input",t)},minHeight(){this.$nextTick(this.resize)},maxHeight(){this.$nextTick(this.resize)},autosize(t){t&&this.resize()},step(t,e){t>e&&(this.val="")}},methods:{resize(){const t=this.isHeightImportant?"important":"";return this.height="auto"+(t?" !important":""),this.$nextTick(()=>{let e=this.$el.scrollHeight+1;this.minHeight&&(e=ethis.maxHeight?(e=this.maxHeight,this.maxHeightScroll=!0):this.maxHeightScroll=!1);const s=e+"px";this.height=`${s}${t?" !important":""}`,this.getChildProp(e,this.val)}),this}},created(){this.val=this.value},mounted(){this.resize()}},Sp=$p,Tp=Object(p["a"])(Sp,kp,Cp,!1,null,null,null),Ap=Tp.exports;window.timeout1=null,window.timeout2=null,window.timeout3=null,window.interval1=[];var Ip={name:"checkup",components:{Loading:Bt,TextareaAutosize:Ap},data(){return{SOUND_CDN:g["U"],unwatch:null,unwatch2:null,bgm_el:null,bgm_on:!0,init_guide_dialog:!1,init:!0,sentences:[],step:0,max:0,question_el:null,limit_bottom:.65*this.$store.state.screen_height,question_el_bottom:0,question_max_time:0,cur_question:"",cur_right:"",cur_time:0,cur_end:!1,cur_pass:!1,progress_top:.1*this.$store.state.screen_height,answer:"",std_height:this.$store.state.screen_height,bg_height:.08*this.$store.state.screen_height,bg_br:.04*this.$store.state.screen_height,result_right:[],result_html:[],right_cnt:0,result_ment:"",cr_id:!1,prevent_enter:!1,is_mobile:!1,mdi_close:Lt["B"],mdi_arrow_right:Lt["g"],mdi_music:Lt["P"],mdi_music_off:Lt["Q"]}},computed:{showLoading:function(){return this.$store.state.loading_percent>0}},methods:{studyEndDialog:function(){this.$store.commit("setDialogResolve","studyend"),this.$store.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1})},closeDialog:function(){this.$store.commit("setDialogResolve","cancel"),this.$store.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1})},startLoading:function(){let t=window.setInterval(()=>{if(this.$store.commit("addLoadingPercent",3),this.$store.state.loading_percent>=100){if(this.$store.state.delay_actor2.length>0){for(let t=0;t{this.$store.commit("setZeroLoadingPercent")},200))}},30);this.$store.commit("setDelayActor2",t)},actProccess:function(){if(this.init_guide_dialog=!1,this.init){let t=document.getElementById("answer-area");t&&setTimeout(()=>{t.focus()},0),this.setQuestion(),this.init=!1}else this.cr_id&&this.$router.push({path:"/checkupresult",query:{cr_id:this.cr_id}})},getChildProp:function(t,e){let s=1.1*t;s>.08*this.std_height?this.bg_height=s:this.bg_height=.08*this.std_height,this.answer=e,e&&e==this.cur_right?this.cur_pass=!0:this.cur_pass=!1},setQuestion:function(){let t=this.sentences[this.step];t&&t.mean&&(this.cur_question=t.mean,null!==t.sentences_id&&null===t.words_id?(this.cur_right=t.sentence?t.sentence.trim():"",this.question_max_time=t.sentence?1700*t.sentence.length:1):(this.cur_right=t.word?t.word.trim():"",this.question_max_time=t.word?1700*t.word.length:1),window.timeout1=window.setTimeout(()=>{this.moveDown(),window.clearTimeout(window.timeout1),window.timeout1=null},500))},moveDown:function(){window.interval1.push(window.setInterval(()=>{let t=this.question_el.getBoundingClientRect();(this.cur_time>this.question_max_time||t.bottom>this.limit_bottom)&&(this.goNext(),this.removeInterval());let e=100*(this.limit_bottom-t.bottom)/(this.question_max_time-this.cur_time);this.progress_top+=e,this.cur_time+=100},100))},removeInterval:function(){if(window.interval1.length>0)for(let t=0;t{window.clearTimeout(window.timeout2),window.timeout2=null,this.cur_end=!1,this.cur_time=0,this.step+=1,this.cur_question="",this.progress_top=.1*this.$store.state.screen_height,this.prevent_enter=!1,this.setQuestion()},200))},goNext:function(){if(this.prevent_enter)return;this.prevent_enter=!0,this.removeInterval(),this.cur_pass=!1,this.cur_end=!0;let t=this.saveResult();window.timeout3=t?window.setTimeout(()=>{window.clearTimeout(window.timeout3),window.timeout3=null,this.initState()},1):window.setTimeout(()=>{window.clearTimeout(window.timeout3),window.timeout3=null,this.sendResult(),this.initState(!1)},1)},saveResult:function(){let t=this.sentences[this.step],e=!0;if(!t)return!1;let s=!(!this.cur_right||!this.answer||this.cur_right!=this.answer),i=``;if(s)this.$store.dispatch("soundEffectPlay","correct"),i+=this.answer;else{let e;this.$store.dispatch("soundEffectPlay","wrong");let s=Array.from(this.answer.trim());e=null!==t.sentences_id&&null===t.words_id?Array.from(t.sentence.trim()):Array.from(t.word.trim());for(let t=0;t"+e[t]+"":""+e[t]+""}else o+=""+e[t]+"";i+=o}else i+=" "}}return i+="",this.result_html[this.step]=i,this.result_right[this.step]=s,this.sentences[this.step+1]||(e=!1),e},sendResult:function(){let t=this.sentences.length,e=this.result_right.filter(t=>t);this.right_cnt=e.length;let s=e?Math.round(this.right_cnt/t*100):0,o=this.$store.state.uid;if(t!==this.result_right.length)return!1;s<0&&(this.result_ment="Skip"),s>=90&&(this.result_ment="Perfect!"),s>=80&&s<90&&(this.result_ment="Great!"),s>=70&&s<80&&(this.result_ment="Good!"),s>=60&&s<70&&(this.result_ment="Pass!"),s<60&&(this.result_ment="Try Harder!"),this.$axios.post(`${g["w"]}/v2/result/${this.$store.state.cid}/user/${o}/sendcheckupresult`,{sentence_cnt:t,score:s}).then(t=>{200===t.status&&(this.cr_id=t.data.checkup_record_id,this.cr_id&&i["db"].collection("users").doc(o).collection("checkup").doc(this.cr_id).set({result:JSON.stringify(this.result_html)}))}).catch(t=>{window.console.log(t)}),this.toggleBgm(!1),this.$store.dispatch("soundEffectPlay","checkup_end"),this.init_guide_dialog=!0},toggleBgm:function(t){this.bgm_el||(this.bgm_el=document.getElementById("bgm")),!0===t?(this.bgm_el.play(),this.bgm_on=!0):!1===t||this.bgm_on?(this.bgm_el.pause(),this.bgm_on=!1):(this.bgm_el.play(),this.bgm_on=!0)}},mounted(){this.$nextTick(()=>{this.question_el=document.getElementById("checkup-question"),this.bgm_el=document.getElementById("bgm")})},created(){this.$store.state.is_mobile&&(this.is_mobile=!0),this.sentences=R(this.$store.state.sentences),this.max=this.sentences.length,this.unwatch=this.$store.watch(t=>t.loading_percent,(t,e)=>{0==t&&e>0&&(this.$store.dispatch("soundEffectPlay","speaking"),this.init_guide_dialog=!0,this.toggleBgm(!0))}),this.unwatch2=this.$store.watch(t=>t.screen_height,(t,e)=>{this.std_height=t,this.bg_br=.04*this.std_height,this.limit_bottom=.65*this.std_height}),this.max||this.$router.push({path:"/pocketnote"}),this.startLoading()},beforeDestroy(){this.unwatch&&this.unwatch(),this.unwatch2&&this.unwatch2(),window.timeout1&&window.clearTimeout(window.timeout1),window.timeout2&&window.clearTimeout(window.timeout2),window.timeout3&&window.clearTimeout(window.timeout3),this.removeInterval()}},Dp=Ip,Rp=(s("c9c8"),s("40dc")),Pp=Object(p["a"])(Dp,yp,xp,!1,null,null,null),Mp=Pp.exports;y()(Pp,{VAppBar:Rp["a"],VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"]});var Ep=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{class:{"schedule-ios":t.is_ios},staticStyle:{width:"100%"},attrs:{id:"learning-schedule"}},[s("v-col",{attrs:{cols:"5",sm:"5",md:"5"}},[s("v-sheet",{staticClass:"contents-sheet px-0 pos-rel learning-schedule-datepicker-container",staticStyle:{background:"#eef0f1"},attrs:{id:"left",elevation:"0"}},[s("datepicker",{attrs:{minimumView:"day",maximumView:"day",inline:!0,"full-month-name":!0,language:t.en,"bootstrap-styling":!0,"day-cell-content":t.classStyle},on:{changedMonth:t.changeMonth,selected:t.selectDate}}),s("div",{staticClass:"schedule_info pos-abs width-100 bottom-0"},[s("div",{staticClass:"white pa-2 flex-row"},[s("div",{staticClass:"grey--text text--darken-1 text-left align-center align-content-center"},[s("div",[s("v-icon",{attrs:{small:""}},[t._v(t._s(t.mdi_account_group))]),s("b",{staticClass:"ml-2"},[t._v("소속 클래스")])],1)]),s("div",{staticClass:"success--text text-left align-center align-content-center"},[s("div",{staticClass:"more-bolder"},[t._v(t._s(this.class_names.join(", ")))])])]),s("div",{staticClass:"white pa-2 flex-row"},[s("div",{staticClass:"grey--text text--darken-1 text-left align-center align-content-center"},[s("div",[s("v-icon",{attrs:{small:""}},[t._v(t._s(t.mdi_calendar_month))]),s("b",{staticClass:"ml-2"},[t._v("수업 요일")])],1)]),s("div",{staticClass:"success--text text-left align-center align-content-center"},[s("div",{staticClass:"more-bolder"},[t._v(t._s(t.setClassDays()))])])]),s("div",{staticClass:"white pa-2 flex-row"},[s("div",{staticClass:"grey--text text--darken-1 text-left align-center align-content-center"},[s("div",[s("v-icon",{attrs:{small:""}},[t._v(t._s(t.mdi_chart_arc))]),s("b",{staticClass:"ml-2"},[t._v("월 학습현황")])],1)]),s("div",{staticClass:"text-left align-center align-content-center"},[s("div",{staticClass:"more-bolder"},[s("b",{staticClass:"success--text"},[t._v(t._s(t.month_study_days))]),t._v(" /\n "+t._s(t.month_tot_days)+"\n ")])])])])],1)],1),s("v-col",{staticClass:"offset-md-5 offset-sm-5 pos-rel",staticStyle:{width:"100%","min-height":"78vh"},attrs:{cols:"7",sm:"7",md:"7"}},[t.loading?s("div",{staticClass:"pos-abs top-0 bottom-0 right-0 left-0 d-flex align-center justify-center",staticStyle:{"z-index":"5","background-color":"rgba(200, 200, 200, 0.2)"}},[s("icon-rolling",{attrs:{size:"50",color:"#0ed15c",strokewidth:"4"}})],1):t._e(),s("v-sheet",{staticClass:"contents-sheet px-0",attrs:{id:"right",elevation:"0"}},t._l(t.daily_data,(function(e,i){return s("v-card",{key:"schedule-right-list-"+i,staticClass:"d-block right-card width-100",class:t.daily_cover[i],attrs:{id:"schedule-right-list-"+i,elevation:"0",ripple:!1}},[s("v-card-title",{staticClass:"pa-1",staticStyle:{height:"14.8vh"},on:{click:function(e){return t.toggleCard(i)},touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"schedule-right-list-ctitle1 text-center align-self-center"},[s("h1",{domProps:{textContent:t._s(i)}})]),s("div",{staticClass:"schedule-right-list-ctitle2 align-self-center"},[s("span",{staticClass:"s_month fw-700",domProps:{textContent:t._s(t.setCardMonth())}}),s("span",{staticClass:"s_year fw-700",domProps:{textContent:t._s(t.setCardYear())}}),s("br"),s("span",{staticClass:"s_dow",domProps:{textContent:t._s(t.setCardDow(i))}})]),e&&e.length>0?s("div",{staticClass:"schedule-right-list-ctitle3 align-self-center text-center"},[t.sel_days.includes(i)?s("v-icon",{staticStyle:{color:"inherit"},attrs:{size:"65%"}},[t._v(t._s(t.mdi_chevron_up))]):s("v-icon",{staticStyle:{color:"inherit"},attrs:{size:"65%"}},[t._v(t._s(t.mdi_chevron_down))])],1):s("div",{staticClass:"schedule-right-list-ctitle3 align-self-center text-center"},[s("v-icon",{staticClass:"grey--text text--lighten-3",attrs:{size:"65%"}},[t._v(t._s(t.mdi_chevron_down))])],1)]),s("v-card-text",{directives:[{name:"show",rawName:"v-show",value:t.sel_days.includes(i),expression:"sel_days.includes(day)"}],staticClass:"py-0 white"},t._l(e,(function(e,o){return s("v-row",{key:"schedule-card-text-row-"+o,staticClass:"card-record-row cursor-pointer align-center",class:{"border-ede thin-t":o>0},attrs:{dense:""},on:{click:function(s){return t.selectRow(i,e)}}},[s("v-col",{staticClass:"pa-1 text-center",attrs:{cols:"3"}},[s("v-btn",{staticClass:"font-weight-bold",attrs:{rounded:"",elevation:"0",outlined:t.setBtnPass(e),color:t.setCardInfos(e,"class"),dark:"",ripple:!1},domProps:{textContent:t._s(t.setCardInfos(e,"text"))}})],1),s("v-col",{staticClass:"py-1 px-0",attrs:{cols:"7"}},[s("b",{staticClass:"grey--text text--darken-3",domProps:{textContent:t._s(e.schedule_name)}}),t.is_mobile?s("br"):t._e(),s("small",{staticClass:"grey--text text--darken-2",class:{"pl-1":!t.is_mobile},domProps:{textContent:t._s(50===+e.booktype?e.subtitle:e.name)}})]),s("v-col",{staticClass:"pa-1 text-center",attrs:{cols:"2"}},[s("b",{staticClass:"grey--text text--darken-3",domProps:{textContent:t._s(t.setCardInfos(e,"score",i))}})])],1)})),1)],1)})),1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.cancelPreventDialog},model:{value:t.prevent_dialog,callback:function(e){t.prevent_dialog=e},expression:"prevent_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[s("span",{staticClass:"black--text"},[t._v("현재 학습일이 아닙니다.")])])],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog},model:{value:t.move_dialog,callback:function(e){t.move_dialog=e},expression:"move_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[t.prevent_test?s("b",{domProps:{textContent:t._s(t.prevent_text)}}):t.click_past?s("b",[t._v("해당 레포트를 조회하시겠습니까?")]):s("b",{domProps:{textContent:t._s(t.setMoveTitle)}})])]),t.prevent_test?t._e():s("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[s("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.setBookName)}}),s("br"),s("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.setUnitName)}})])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[t.prevent_test?s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.move_dialog=!1,t.sel_record=null,t.prevent_test=!1}}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1):t.click_past?s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goResult}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeDialog}},[s("span",{staticClass:"title"},[t._v("아니요")])])],1)],1):s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goLearningList}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeDialog}},[s("span",{staticClass:"title"},[t._v("아니요")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeMockExamConfirm},model:{value:t.mockexam_dialog,callback:function(e){t.mockexam_dialog=e},expression:"mockexam_dialog"}},[s("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[s("v-row",[s("v-col",{staticClass:"text-center px-0",class:{"pb-1":t.is_mobile},attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("해당 레포트를 조회하시겠습니까?")])])]),s("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[t.sel_mockexam&&t.sel_mockexam.bookname?s("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:t._s(t.sel_mockexam.bookname)}}):t._e(),s("br"),t.sel_mockexam&&t.sel_mockexam.unit_name?s("span",{staticClass:"grey--text",domProps:{textContent:t._s(t.sel_mockexam.unit_name)}}):t._e()])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goMockExam}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeMockExamConfirm}},[s("span",{staticClass:"title"},[t._v("아니요")])])],1)],1)],1)],1)],1)],1)},Bp=[],Np=s("fa33"),qp=s("2430");const Lp=new Date,zp=Lp.getTime()+6e4*Lp.getTimezoneOffset(),Op=new Date(zp+324e5),jp=Op.getFullYear(),Vp=Op.getMonth()+1,Fp=Op.getDate();var Gp={name:"schedule-learning-schedule",data(){return{STUDY:g["bb"],TEST:g["hb"],VOCA:g["pb"],MAJOR:g["B"],ADVANCED:g["a"],VOCA_MAJOR:g["sb"],VOCA_ADVANCED:g["qb"],en:qp["en"],month_name:Object.freeze(["January","February","March","April","May","June","July","August","September","October","November","December"]),week:Object.freeze(["일","월","화","수","목","금","토"]),week_eng:Object.freeze(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]),sel_year:jp,sel_month:Vp,sel_days:[],class_names:[],class_days:{},class_days_sum:[],month_tot_days:0,month_study_days:0,current_ym:"",this_ym:"",base_data:[],daily_data:{},daily_cover:{},latest_sch_dates:[],prevent_dialog:!1,prevent_dialog_timeout:null,move_dialog:!1,sel_record:null,click_past:!1,prevent_test:!1,prevent_text:"",loading:!1,is_mobile:!1,is_ios:!1,mockexam_dialog:!1,sel_mockexam:null,mdi_account_group:Lt["a"],mdi_calendar_month:Lt["j"],mdi_chart_arc:Lt["m"],mdi_chevron_down:Lt["s"],mdi_chevron_up:Lt["y"]}},components:{Datepicker:Np["a"],IconRolling:Rt},computed:{setBookName(){return this.sel_record?this.sel_record.schedule_name:""},setUnitName(){return this.sel_record?50===+this.sel_record.booktype?this.sel_record.subtitle:this.sel_record.name:""},setMoveTitle(){if(!this.sel_record)return"";let t,e=0,s=this.sel_record.category?Number(this.sel_record.category):1;if(this.sel_record.booktype&&(e=Math.floor(Number(this.sel_record.booktype)/10)),1==Number(this.sel_record.schedule_type))if(1==this.sel_record.schedule_type_v&&e!==g["j"])switch(e){case g["h"]:case g["g"]:this.sel_record.type==g["pb"]||this.sel_record.type==g["bb"]?t="학습":this.sel_record.type==g["hb"]?t=4!=s||Number(this.sel_record.words_cnt)?"학습":"시험":0===this.sel_record.type.indexOf(g["G"])&&(t="학습");break;case g["e"]:t="학습";break;default:break}else switch(e){case g["j"]:this.sel_record.type==g["sb"]?t="학습":this.sel_record.type==g["qb"]&&(t="시험");break;default:this.sel_record.type==g["bb"]?t="학습":this.sel_record.type==g["hb"]&&(t="시험");break}else switch(e){case g["h"]:case g["g"]:this.sel_record.type==g["pb"]||this.sel_record.type==g["bb"]?t="학습":this.sel_record.type==g["hb"]?t=4!=s||Number(this.sel_record.words_cnt)?"학습":"시험":0===this.sel_record.type.indexOf(g["G"])&&(t="학습");break;case g["e"]:t="학습";break;case g["j"]:this.sel_record.type==g["sb"]?t="학습":this.sel_record.type==g["qb"]&&(t="시험");break;case g["f"]:case g["i"]:[g["u"],g["ab"]].includes(this.sel_record.type)?t=this.sel_record.type==g["u"]?"이론":"동화":[g["s"],g["Z"]].includes(this.sel_record.type)?t="기본":[g["t"],g["W"]].includes(this.sel_record.type)&&(t=this.sel_record.type===g["t"]?"심화":"실전");break;default:break}return t+" 페이지로 이동하시겠습니까?"}},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},setCardMonth(){return this.month_name[this.sel_month-1]},setCardYear(){return new Date(this.sel_year,this.sel_month-1).getFullYear()},setCardDow(t){return this.week_eng[new Date(this.sel_year,this.sel_month-1,t).getDay()]},setBtnPass(t){let e=!1;if("type"in t)switch(t.type){case g["bb"]:case g["sb"]:(t.pass||null!==t.avg)&&(e=!0);break;default:(t.pass||null!==t.avg)&&(e=!0);break}return e},setCardInfos(t,e,s){let i="",o=Number(t.category),a=t.booktype?Math.floor(Number(t.booktype)/10):0,n=Number(t.schedule_type),r=1==t.schedule_type_v&&a!==g["j"];switch(e){case"class":[g["bb"],g["B"],g["sb"],g["s"],g["Z"]].includes(t.type)?i="success":[g["hb"],g["a"],g["qb"],g["t"],g["W"]].includes(t.type)?i="info2":t.type==g["q"]?i="primary":[g["pb"],g["u"],g["ab"]].includes(t.type)?i="warning":0===t.type.indexOf(g["G"])&&(i="info2");break;case"text":if(0===n)switch(o){case 1:case 4:switch(a){case g["h"]:case g["g"]:t.type===g["pb"]?i="어휘":t.type===g["bb"]?i=4!==o||Number(t.words_cnt)?4===o?"본문":1===o&&31===+t.booktype?"지문":"문장":"학습":t.type===g["hb"]?i=4!==o||Number(t.words_cnt)?"심화":"시험":t.type===g["G"]&&(i=1===o&&31===+t.booktype?"심화":"듣기");break;case g["j"]:t.type===g["sb"]?i="학습":t.type===g["qb"]&&(i="시험");break;case g["e"]:t.type===g["pb"]?i="어휘":t.type===g["B"]?i="본문":t.type===g["a"]&&(i="심화");break;case g["f"]:case g["i"]:[g["u"],g["ab"]].includes(t.type)?i=t.type==g["u"]?"이론":"동화":[g["s"],g["Z"]].includes(t.type)?i="기본":[g["t"],g["W"]].includes(t.type)&&(i=t.type===g["t"]?"심화":"실전");break;default:break}break;case 2:case 3:switch(a){case g["h"]:case g["g"]:t.type===g["pb"]?i="어휘":t.type===g["bb"]?i=3==o&&31===!+t.booktype?"지문":"본문":t.type===g["hb"]?i="심화":t.type===g["G"]&&(i="듣기");break;case g["e"]:t.type===g["pb"]?i="어휘":t.type===g["B"]?i=3==o?"지문":"본문":t.type===g["a"]&&(i="심화");break;default:break}break;default:break}else if(1===n)if(r)switch(o){case 1:case 4:switch(a){case g["h"]:case g["g"]:t.type===g["pb"]?i="어휘":t.type===g["bb"]?i=4!==o||Number(t.words_cnt)?4===o?"본문":1===o&&31===+t.booktype?"지문":"문장":"학습":t.type===g["hb"]?i=4!==o||Number(t.words_cnt)?"심화":"시험":0===t.type.indexOf(g["G"])&&(i=1===o&&31===+t.booktype?"심화":"듣기");break;case g["e"]:t.type===g["pb"]?i="어휘":t.type===g["B"]?i="본문":t.type===g["a"]&&(i="심화");break;default:break}break;case 2:case 3:switch(a){case g["h"]:case g["g"]:t.type===g["pb"]?i="어휘":t.type===g["bb"]?i=3==o&&31===!+t.booktype?"지문":"본문":t.type===g["hb"]?i="심화":0===t.type.indexOf(g["G"])&&(i="듣기");break;case g["e"]:t.type===g["pb"]?i="어휘":t.type===g["B"]?i=3==o?"지문":"본문":t.type===g["a"]&&(i="심화");break;default:break}break;default:break}else switch(a){case g["h"]:case g["g"]:t.type===g["bb"]?i="학습":t.type===g["hb"]?i="시험":0===t.type.indexOf(g["G"])&&(i="듣기");break;case g["j"]:t.type===g["sb"]?i="학습":t.type===g["qb"]?i="시험":t.type===g["bb"]?i="학습":t.type===g["hb"]&&(i="시험");break;case g["e"]:t.type===g["bb"]?i="학습":t.type===g["hb"]&&(i="시험");break;default:break}break;case"score":if(!s)return!1;s=Number(s);let e,l=0;if(l=new Date(this.this_ym).getTime()==new Date(this.current_ym).getTime()?Fp:new Date(this.this_ym).getTime()>new Date(this.current_ym).getTime()?32:0,0===n)switch(o){case 1:case 4:switch(a){case g["h"]:case g["g"]:e="학습",t.type===g["hb"]&&(4!==o||Number(t.words_cnt)||(e="시험"));break;case g["j"]:t.type===g["sb"]?e="학습":t.type===g["qb"]&&(e="시험");break;case g["e"]:e="학습";break;case g["f"]:t.type===g["u"]?e="이론":t.type===g["s"]?e="기본":t.type===g["t"]&&(e="심화");break;case g["i"]:t.type===g["ab"]?e="이론":t.type===g["Z"]?e="기본":t.type===g["W"]&&(e="심화");break;default:break}break;case 2:case 3:switch(a){case g["h"]:case g["g"]:e="학습";break;case g["e"]:e="학습";break;default:break}break;default:break}else if(1===n)if(r)switch(o){case 1:case 4:switch(a){case g["h"]:case g["g"]:e="학습",t.type===g["hb"]&&(4!==o||Number(t.words_cnt)||(e="시험"));break;case g["e"]:e="학습";break;default:break}break;case 2:case 3:switch(a){case g["h"]:case g["g"]:e="학습";break;case g["e"]:e="학습";break;default:break}break;default:break}else switch(a){case g["h"]:case g["g"]:[g["bb"]].includes(t.type)?e="학습":t.type===g["hb"]?e="시험":0===t.type.indexOf(g["G"])&&(e="학습");break;case g["j"]:t.type===g["sb"]||t.type===g["bb"]?e="학습":t.type!==g["qb"]&&t.type!==g["hb"]||(e="시험");break;case g["e"]:t.type===g["bb"]?e="학습":t.type===g["hb"]&&(e="시험");break;default:break}if(l>s)if(t.pass||null!==t.avg)i=t.avg+"점";else if(t.postdate||null==t.avg){let o=new Date(t.postdate).getDate();os&&(i=e+" 누락")}else i=e+" 누락";else i=l==s&&(t.pass||t.postdate&&null!==t.avg)?t.avg+"점":e+" 전";break;default:break}return i},setClassDays(){const t=[1,2,3,4,5,6,0],e=[];for(let s=0;s
${t.date}
`,e},setMonthStatus(t,e){let s=1,i=new Date(t,e-1,s),o=0;this.daily_data={},this.daily_cover={};while(e==i.getMonth()+1){if(this.class_days_sum.includes(i.getDay())){o+=1;this.dateYmd(t,e,s)}this.$set(this.daily_data,s,new Array),this.$set(this.daily_cover,s,""),s+=1,i=new Date(t,e-1,s)}this.month_tot_days=o},getMonthSchedule(){let t=this.$store.state.cid,e=this.$store.state.uid,s=this.current_ym;this.loading||(this.loading=!0,this.$axios.get(`${g["w"]}/v3/schedule/${t}/user/${e}/date/${s}`).then(t=>{if(200==t.status){this.base_data=t.data;let e=new Date(this.sel_year,this.sel_month-1,1),s=(new Date(this.sel_year,this.sel_month,0),new Date(jp,Vp,Fp),null),i=0,o={};new Date(this.this_ym).getTime()==new Date(this.current_ym).getTime()?(s="THIS",i=Fp):new Date(this.this_ym).getTime()>new Date(this.current_ym).getTime()?(s="PREV",i=32):(s="NEXT",i=0),this.loading=!1;for(let[a,n]of Object.entries(t.data)){let t=Number(n.type),a=n.schedule_type_v?n.schedule_type_v:0,r=Number(n.tot_unit_cnt),l=n.complete_unit_seqs?n.complete_unit_seqs.split(",").map(t=>+t).sort():null,c=!!n.class_id&&this.class_days[n.class_id],d=new Date(n.startdate),h=0,u=!1,p=[],_=d.yyyymm(),m=new Date(this.current_ym).yyyymm();if(_==m&&(u=d.getDate()),!n.history)continue;let b=0,v=r,f=d,w=0,y=`${n.schedule_id}-${n.books_id}-${n.type}-${a}`,x=Math.floor(Number(n.booktype)/10)||0,k=1==t&&1==a&&x!==g["j"];if("PREV"==s||"THIS"==s)for(let s=0;st&&(v=t);let i=new Date(n.history[s]["postdate"]);this.latest_sch_dates[y]?this.latest_sch_dates[y].getTime()t&&(v=t);let i=new Date(n.history[s]["postdate"]);this.latest_sch_dates[y]?this.latest_sch_dates[y].getTime()0)for(let e=0;e0){let t=!1;for(let e=0;en.schedule_name==t.schedule_name&&a.name==t.name&&a.seq==t.seq&&a.type==t.type);if(0==t.length&&50!=n.booktype){let t={...a,schedule_name:n.schedule_name,schedule_id:n.schedule_id,books_id:n.books_id,test_modules:n.test_modules,study_modules:n.study_modules,schedule_type:n.type,schedule_type_v:n.schedule_type_v,dist_seq:n.dist_seq,done_cnt:a.done_cnt,category:n.category,pass:r,booktype:n.booktype,words_cnt:a.words_cnt};e==i&&(t.category=n.category),this.daily_data[e].push(t),k?o[e].push(!1):x==g["e"]?a.type==g["B"]&&o[e].push(!1):x==g["j"]?a.type==g["sb"]&&o[e].push(!1):a.type==g["bb"]&&o[e].push(!1)}}}}}for(let[t,a]of Object.entries(o))if(t=+t,i>t){let e=new Date(this.sel_year,this.sel_month-1,t).getDay();this.class_days_sum.includes(e)?a&&a.length>0&&(a.filter(t=>t).length==a.length?(this.daily_cover[t]+="light-blue accent-2 white--text sch-true",this.month_study_days+=1):this.daily_cover[t]+="grey lighten-4 grey--text text--darken-3 sch-false"):this.daily_cover[t]+="default-cover"}else this.daily_cover[t]+=i==t?"false-pink white--text":"default-cover"}}))},changeMonth(t){this.clickSound();let e=document.getElementById("right"),s=new Date(t).getFullYear(),i=new Date(t).getMonth()+1,o=document.getElementsByClassName("day__month_btn")[0];if(this.sel_year=s,this.sel_month=i,jp==s&&Vp==i){o.classList.add("success--text");let t=document.getElementById("schedule-right-list-"+Fp);if(Fp>3){let s=window,i=document,o=i.documentElement,a=i.getElementsByTagName("body")[0],n=s.innerHeight||o.clientHeight||a.clientHeight,r=13*n/100;if(t){let s=t.getBoundingClientRect().height;e.scrollTo(0,t.offsetTop-(r+2*s))}}}else o.classList.remove("success--text"),e.scrollTo(0,0);this.sel_days=[],this.setMonthStatus(s,i),this.current_ym=this.dateYmd(s,i),this.getMonthSchedule()},toggleCard(t){this.sel_days.includes(t)?this.sel_days.splice(this.sel_days.indexOf(t),1):this.sel_days.push(t)},selectDate(t){this.clickSound();let e=t.getDate(),s=window,i=document,o=i.documentElement,a=i.getElementsByTagName("body")[0],n=s.innerHeight||o.clientHeight||a.clientHeight,r=13*n/100,l=document.getElementById("right"),c=document.getElementById("schedule-right-list-"+e),d=c.getElementsByClassName("v-card__title")[0].getBoundingClientRect().height;l.scrollTo({top:c.offsetTop-(r+2*d),left:0,behavior:"smooth"})},selectRow(t,e){if(t==Fp){let s=e.schedule_type?Number(e.schedule_type):0,i=e.schedule_type_v?Number(e.schedule_type_v):0,o=e.booktype?Math.floor(Number(e.booktype)/10):0,a=1==s&&1==i&&o!=g["j"];if(!a){if(e.type==g["hb"])for(let[s,i]of Object.entries(this.daily_data[t]))if(+e.books_id==+i.books_id&&+e.schedule_id==+i.schedule_id&&+e.dist_seq==+i.dist_seq&&i.type==g["bb"]&&!i.pass)return this.prevent_text="해당 유닛의 학습부터 시작하세요.",this.prevent_test=!0,this.move_dialog=!0,void this.$store.dispatch("soundEffectPlay","exit");if(e.type==g["a"])for(let[s,i]of Object.entries(this.daily_data[t]))if(+e.books_id==+i.books_id&&+e.schedule_id==+i.schedule_id&&+e.dist_seq==+i.dist_seq&&i.type==g["B"]&&!i.pass)return this.prevent_text="해당 유닛의 학습부터 시작하세요.",this.prevent_test=!0,this.move_dialog=!0,void this.$store.dispatch("soundEffectPlay","exit")}this.clickSound(),this.move_dialog=!0,this.sel_record=e}else{if(this.clickSound(),0===e.type.indexOf(g["G"]))return this.getMockExamUnitSingle(e.books_id).then(t=>{if(t){let s={bookname:e.schedule_name,books_id:e.books_id,id:t.id,question_cnt:t.question_cnt,postdate:e.postdate,time:t.time,try_cnt:e.done_cnt,unit_id:e.unit_id?+e.unit_id:null,s_u_id:e.s_u_id?+e.s_u_id:null,schedule_id:e.schedule_id,unit_name:e.name,ur_id:e.unit_record_id,schedule_type:e.schedule_type,record_id:e.mock_record_id};1==s.schedule_type?(s.unit_seq=e.type&&e.type.length>1?+e.type.replace(/[^0-9]/g,""):null,s.type_v_seq=e.unit_seq?+e.unit_seq:null):s.unit_seq=e.unit_seq?+e.unit_seq:null,this.sel_mockexam=s,this.mockexam_dialog=!0}}),!1;console.log({record:e,pass:e.pass,avg:e.avg,done_cnt:e.done_cnt,"2res":null!==e.avg&&e.done_cnt}),e.pass||null!==e.avg&&e.done_cnt?(this.click_past=!0,this.move_dialog=!0,this.sel_record=e):(this.prevent_dialog=!0,this.prevent_dialog_timeout=setTimeout(()=>{this.prevent_dialog=!1},2e3))}},cancelPreventDialog(){this.prevent_dialog=!1,this.prevent_dialog_timeout&&clearTimeout(this.prevent_dialog_timeout)},goLearningList(){window.console.log(this.sel_record);let t="/schoolbook",e=this.sel_record.category;console.log("aa:"+ +this.sel_record.category),console.log("bb:"+this.sel_record.schedule_name),1===+this.sel_record.category?(t="/coursebook",0===+this.sel_record.booktype?e=2:22===+this.sel_record.booktype?e=3:50===+this.sel_record.booktype?(t="/readingbook",e=this.sel_record.name.includes("N")?1:2):31===+this.sel_record.booktype&&(t="/listeningbook",e=1)):2===+this.sel_record.category&&this.sel_record.schedule_name.includes("NE능률")||this.sel_record.schedule_name.includes("지학사")?e=1:3!==+this.sel_record.category||31!==+this.sel_record.booktype&&1!==+this.sel_record.booktype||(t="/listeningbook",this.sel_record.schedule_name.includes("중등")?e=2:this.sel_record.schedule_name.includes("고등")&&(e=3)),this.$router.push({path:t,query:{tab:e,sid:this.sel_record.schedule_id,bid:this.sel_record.books_id,stype:this.sel_record.schedule_type,dist:this.sel_record.dist_seq,uid:this.sel_record.unit_id,useq:null!==this.sel_record.unit_seq?this.sel_record.unit_seq:this.sel_record.seq}}),this.move_dialog=!1,this.sel_record=null},goResult(t){this.clickSound();let e=this.sel_record.type+g["R"],s={},i={},o=0,a=0;t.booktype&&(o=Math.floor(Number(t.booktype)/10),a=Number(t.booktype)%10),s.id=this.sel_record.books_id,s.academy_id=null,s.category=null,s.bookname=this.sel_record.schedule_name,s.publisher=null,s.grade=null,s.level=null,s.postdate=null,s.publishdate=null,s.total_cnt=null,s.unit_cnt=null,s.subtitle=null,s.folder_id=null,s.schedule_id=this.sel_record.schedule_id,s.books_id=this.sel_record.books_id,s.tot_unit_cnt=null,s.complete_unit_cnt=null,s.startdate=null,s.schedule_name=this.sel_record.schedule_name,s.study_modules=t.study_modules,s.test_modules=t.test_modules,s.v_mod=t.v_mod,s.m_mod=t.m_mod,s.a_mod=t.a_mod,s.img_use=null,s.auto_exam=null,s.schedule_type=this.sel_record.schedule_type,s.schedule_type_v=this.sel_record.schedule_type_v?this.sel_record.schedule_type_v:0,s.sentence_cnt=null,s.dist_seq=this.sel_record.dist_seq,s.bookmark=null,s.progress=null,s.disable=null,s.booktype=this.sel_record.booktype,s.booktype_1=o,s.booktype_2=a,i.id=this.sel_record.unit_id,i.s_u_id=this.sel_record.s_u_id?this.sel_record.s_u_id:0,i.book_id=this.sel_record.books_id,i.seq=s.schedule_type_v?this.sel_record.seq:this.sel_record.unit_seq,i.name=this.sel_record.name,i.sentences_cnt=null,i.words_cnt=null,i.schedule_id=this.sel_record.schedule_id,i.test_cnt=this.sel_record.done_cnt,i.study_cnt=this.sel_record.done_cnt,i.voca_cnt=this.sel_record.voca_cnt,i.major_cnt=this.sel_record.major_cnt,i.advanced_cnt=this.sel_record.advanced_cnt,i.test_pk=this.sel_record.unit_record_id,i.study_pk=this.sel_record.unit_record_id,i.voca_pk=this.sel_record.unit_record_id,i.major_pk=this.sel_record.unit_record_id,i.advanced_pk=this.sel_record.unit_record_id,i.grammar_theory_pk=this.sel_record.unit_record_id,i.grammar_basics_pk=this.sel_record.unit_record_id,i.grammar_deep_pk=this.sel_record.unit_record_id,i.test_done_modules=this.sel_record.type==g["hb"]?t.test_modules:null,i.study_done_modules=this.sel_record.type==g["bb"]?t.study_modules:null,i.voca_done_modules=this.sel_record.type==g["pb"]?t.v_mod:null,i.major_done_modules=[g["B"],g["sb"]].includes(this.sel_record.type)?t.m_mod:null,i.advanced_done_modules=[g["a"],g["qb"]].includes(this.sel_record.type)?t.a_mod:null,i.test_done=1,i.study_done=1,i.voca_done=1,i.major_done=1,i.advanced_done=1,i.grammar_theory_done=1,i.grammar_basics_done=1,i.grammar_deep_done=1,this.setBookInfo(s,i,e)},setBookInfo(t,e,s){this.$store.dispatch("setBookInfo",{book:t,unit:e,type:s,init:!1}).then(t=>{this.$store.dispatch("setCurUnitId",e.id).then(()=>{this.$store.commit("setLearningStatus",!0),this.closeDialog()})})},closeDialog(){this.move_dialog=!1,this.sel_record=null,this.prevent_test=!1,this.click_past=!1},getMockExamUnitSingle(t){return new Promise((e,s)=>{this.$axios.get(`${g["w"]}/mockexam/book/${t}`).then(t=>{200==t.status?e(t.data):s(!1)}).catch(t=>{window.console.err(t),s(!1)})})},goMockExam(){!this.loading&&this.sel_mockexam&&(this.loading=!0,this.$store.commit("setMockExamResultId",this.sel_mockexam.record_id),this.$store.commit("setMockExam",this.sel_mockexam),this.$store.commit("setProcessType",g["G"]),this.$store.commit("setLearningStatus",!0),this.closeMockExamConfirm())},closeMockExamConfirm(){this.sel_mockexam=null,this.mockexam_dialog=!1,this.loading=!1}},created(){let t=this.$store.state.class,e=0,s=function(t){return t=t.toString(2).padStart(7,"0"),Array.from(t).map((t,e)=>parseInt(t)?e:void 0).filter((t,e)=>void 0!==t)};this.$store.state.is_mobile&&(this.is_mobile=!0),"ios"===this.$store.state.platform&&(this.is_ios=!0);for(let i=0;i{let t=document.getElementById("right");this.sel_year=jp,this.sel_month=Vp;let e=document.getElementsByClassName("day__month_btn")[0];e.classList.add("success--text");let s=document.getElementById("schedule-right-list-"+Fp);if(Fp>3&&s){let e=window,i=document,o=i.documentElement,a=i.getElementsByTagName("body")[0],n=e.innerHeight||o.clientHeight||a.clientHeight,r=13*n/100;if(s){let e=s.getBoundingClientRect().height;t.scrollTo(0,s.offsetTop-(r+2*e))}}})},beforeDestroy(){this.prevent_dialog_timeout&&clearTimeout(this.prevent_dialog_timeout)}},Wp=Gp,Up=(s("97b3"),Object(p["a"])(Wp,Ep,Bp,!1,null,null,null)),Hp=Up.exports;y()(Up,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCardTitle:nt["c"],VCol:rt["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"],VSheet:Se["a"]});var Kp=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{class:{"schedule-ios":t.is_ios},staticStyle:{width:"100%"},attrs:{id:"learning-schedule"}},[s("v-col",{attrs:{cols:"5",sm:"5",md:"5"}},[s("v-sheet",{staticClass:"contents-sheet px-0 pos-rel",staticStyle:{background:"#eef0f1"},attrs:{id:"left",elevation:"0"}},[s("datepicker",{attrs:{minimumView:"day",maximumView:"day",inline:!0,"full-month-name":!0,language:t.en,"bootstrap-styling":!0,"day-cell-content":t.classStyle},on:{changedMonth:t.changeMonth,selected:t.selectDate}}),s("div",{staticClass:"schedule_info pos-abs width-100 bottom-0"},[s("div",{staticClass:"white pa-2 flex-row"},[s("div",{staticClass:"grey--text text--darken-1 text-left align-center align-content-center"},[s("div",[s("v-icon",{attrs:{small:""}},[t._v(t._s(t.mdi_account_group))]),s("b",{staticClass:"ml-2"},[t._v("소속 클래스")])],1)]),s("div",{staticClass:"success--text text-left align-center align-content-center"},[s("div",{staticClass:"more-bolder"},[t._v(t._s(this.class_names.join(", ")))])])]),s("div",{staticClass:"white pa-2 flex-row"},[s("div",{staticClass:"grey--text text--darken-1 text-left align-center align-content-center"},[s("div",[s("v-icon",{attrs:{small:""}},[t._v(t._s(t.mdi_chart_arc))]),s("b",{staticClass:"ml-2"},[t._v("월 평가현황")])],1)]),s("div",{staticClass:"text-left align-center align-content-center"},[s("div",{staticClass:"more-bolder"},[s("b",{staticClass:"success--text"},[t._v(t._s(t.month_study_days))]),t._v(" /\n "+t._s(t.month_tot_days)+"\n ")])])])])],1)],1),s("v-col",{staticClass:"offset-md-5 offset-sm-5 pos-rel",staticStyle:{width:"100%","min-height":"78vh"},attrs:{cols:"7",sm:"7",md:"7"}},[t.loading?s("div",{staticClass:"pos-abs top-0 bottom-0 right-0 left-0 d-flex align-center justify-center",staticStyle:{"z-index":"5","background-color":"rgba(200, 200, 200, 0.2)"}},[s("icon-rolling",{attrs:{size:"50",color:"#0ed15c",strokewidth:"4"}})],1):t._e(),s("v-sheet",{staticClass:"contents-sheet px-0",attrs:{id:"right",elevation:"0"}},[t._l(t.daily_data,(function(e,i){return s("v-card",{key:"schedule-right-list-"+i,staticClass:"d-block right-card width-100",attrs:{id:"schedule-right-list-"+i,elevation:"0",ripple:!1}},[s("v-card-title",{staticClass:"pa-1",class:{"schedule-has-data":e&&e.length>0},staticStyle:{height:"14.8vh"},on:{click:function(e){return t.toggleCard(i)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("div",{staticClass:"schedule-right-list-ctitle1 text-center align-self-center"},[s("h1",{domProps:{textContent:t._s(i)}})]),s("div",{staticClass:"schedule-right-list-ctitle2 align-self-center"},[s("span",{staticClass:"s_month fw-700",domProps:{textContent:t._s(t.setCardMonth())}}),s("span",{staticClass:"s_year fw-700",domProps:{textContent:t._s(t.setCardYear())}}),s("br"),s("span",{staticClass:"s_dow",domProps:{textContent:t._s(t.setCardDow(i))}})]),e&&e.length>0?s("div",{staticClass:"schedule-right-list-ctitle3 align-self-center text-center"},[t.sel_days.includes(i)?s("v-icon",{staticStyle:{color:"inherit"},attrs:{size:"65%"}},[t._v(t._s(t.mdi_chevron_up))]):s("v-icon",{staticStyle:{color:"inherit"},attrs:{size:"65%"}},[t._v(t._s(t.mdi_chevron_down))])],1):s("div",{staticClass:"schedule-right-list-ctitle3 align-self-center text-center"},[s("v-icon",{staticClass:"grey--text text--lighten-3",attrs:{size:"65%"}},[t._v(t._s(t.mdi_chevron_down))])],1)]),s("v-card-text",{directives:[{name:"show",rawName:"v-show",value:t.sel_days.includes(i),expression:"sel_days.includes(day)"}],staticClass:"pt-6 pb-2 px-6 white"},t._l(e,(function(e,i){return s("Card",{key:"schedule-card-"+i,attrs:{item:e,title:t.formatCardData(e).title,"unit-name":t.formatCardData(e).unitName,tags:t.formatCardData(e).tags,"is-schedule":!0},on:{"arrow-click":t.handleArrowClick}})})),1)],1)}))],2)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog},model:{value:t.move_dialog,callback:function(e){t.move_dialog=e},expression:"move_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",[s("v-col",{staticClass:"px-0 text-center",attrs:{cols:"12"}},[s("span",{staticClass:"black--text",staticStyle:{"white-space":"pre-line"},domProps:{textContent:t._s(t.getScheduleDialogMessage)}})])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goTaskOrAssessment}},[s("span",{staticClass:"title"},[t._v("예")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeDialog}},[s("span",{staticClass:"title"},[t._v("아니요")])])],1)],1)],1)],1)],1)],1)},Zp=[],Yp=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-card",class:{"schedule-card":t.isSchedule}},[s("div",{staticClass:"task-card-left",class:{"task-done":t.isCompleted}},[s("div",{staticClass:"task-card-left-img"},[s("v-img",{attrs:{src:t.getImageByType,"lazy-src":t.getImageByType,"max-height":"100%","max-width":"100%",contain:""}})],1),s("div",{staticClass:"task-card-left-text"},[t._v(t._s(t.getTypeLabel))])]),s("div",{staticClass:"task-card-right"},[s("div",{staticClass:"task-card-right-text"},[s("div",{staticClass:"task-card-right-text-title"},[t._v("\n "+t._s(t.title)+"\n ")]),s("div",{staticClass:"task-card-right-text-subtitle"},[t._v("\n "+t._s(t.unitName)+"\n ")]),s("div",{staticClass:"task-card-right-text-tags"},t._l(t.tags,(function(e){return s("div",{key:e.tagText,staticClass:"task-card-tag",class:e.tagClass,attrs:{"data-type":e.tagText}},[t._v("\n "+t._s(e.tagText)+"\n ")])})),0)]),s("div",{staticClass:"task-card-arrow",class:{"schedule-arrow":t.isSchedule},on:{click:function(e){return e.stopPropagation(),t.handleArrowClick(e)}}},[s("v-icon",{attrs:{size:t.getIconSize,color:"#000000"}},[t._v(t._s(t.mdi_chevron_right))])],1)])])},Jp=[],Xp={name:"Card",props:{item:{type:Object,default:()=>({})},title:String,unitName:String,tags:Array,isSchedule:Boolean},data(){return{mdi_chevron_right:Lt["v"]}},computed:{getImageByType(){return s("4450")},isCompleted(){return null!=this.item.score&&+this.item.score>=+this.item.cutoff},getTypeLabel(){const t="평가";return this.isCompleted?t+" 완료":t},getIconSize(){const t=window.innerWidth,e=t<=960,s=t>960&&t<=1263;return this.isSchedule?e?35:50:e?20:s?25:32}},methods:{handleArrowClick(){this.$emit("arrow-click",this.item)}}},Qp=Xp,t_=(s("76fb"),Object(p["a"])(Qp,Yp,Jp,!1,null,"2f879df8",null)),e_=t_.exports;y()(t_,{VIcon:jt["a"],VImg:qs["a"]});var s_=s("5a0c"),i_=s.n(s_);const o_=new Date,a_=o_.getTime()+6e4*o_.getTimezoneOffset(),n_=new Date(a_+324e5),r_=n_.getFullYear(),l_=n_.getMonth()+1,c_=n_.getDate();var d_={data(){return{sel_year:r_,sel_month:l_,sel_day:c_,current_ym:"",this_ym:"",daily_data:{},dot_data:{},this_year:r_,this_month:l_,this_day:c_,month_tot_days:0,month_study_days:0}},methods:{dateYmd(t,e,s){return s?`${t}-${e<10?"0"+e:e}-${s<10?"0"+s:s}`:`${t}-${e<10?"0"+e:e}`},classStyle(t){let e="",s="",i="",o=new Date(t.timestamp),a=+o.getFullYear(),n=+o.getMonth()+1,r=+o.getDate();this.sel_day&&r===this.sel_day&&a===this.sel_year&&n===this.sel_month&&(s+=" selected-date",this.$options.name.includes("schedule")?a===this.this_year&&n===this.this_month&&r===this.this_day&&(i+=" learningtoday"):i+=" learningtoday");let l=this.daily_data[r]||[],c=l.length>0,d=new Date(this.this_year,this.this_month-1,this.this_day),h=new Date(a,n-1,r);h"assessment"===t.type);let e=[];t&&e.push(''),e.length>0&&(u=`\n
\n ${e.join("")}\n
\n `)}return e=`
\n
\n
\n
${t.date}
\n ${u}\n
\n
\n
`,e},isLessonDay(t){try{const e=sessionStorage.getItem("class");if(!e)return!1;const s=JSON.parse(e),i=s&&s[0]&&s[0].lesson_day_bit;return!!i&&"1"===i[t.getDay()]}catch(e){return console.error(e),!1}},setMonthStatus(t,e){let s=1,i=new Date(t,e-1,s);this.daily_data={};while(e==i.getMonth()+1)this.$set(this.daily_data,s,new Array),s+=1,i=new Date(t,e-1,s)},setCardInfos(t,e){let s="",i=Number(t.category),o=t.booktype?Math.floor(Number(t.booktype)/10):0;switch(e){case"class":if(1===+t.booktype&&3===+t.category){s="success";break}[g["bb"],g["B"],g["sb"],g["s"],g["Z"]].includes(t.type)?s="success":[g["hb"],g["a"],g["qb"],g["t"],g["W"]].includes(t.type)?s="info2":t.type==g["q"]?s="primary":[g["pb"],g["u"],g["ab"]].includes(t.type)?s="warning":t.type&&0===t.type.indexOf(g["G"])&&(s="info2");break;case"text":switch(i){case 1:case 4:switch(o){case g["h"]:case g["g"]:t.type===g["pb"]?s="어휘":t.type===g["bb"]?s=4!==i||Number(t.words_cnt)?4===i?"본문":1===i&&31===+t.booktype?"지문":"문장":"학습":t.type===g["hb"]?s=4!==i||Number(t.words_cnt)?"심화":"시험":t.type===g["G"]&&(s=1===i&&31===+t.booktype?"심화":"듣기");break;case g["j"]:t.type===g["sb"]?s="학습":t.type===g["qb"]&&(s="시험");break;case g["e"]:t.type===g["pb"]?s="어휘":t.type===g["B"]?s="본문":t.type===g["a"]&&(s="심화");break;case g["f"]:case g["i"]:[g["u"],g["ab"],g["Y"]].includes(t.type)?s=t.type==g["u"]?"이론":"동화":[g["s"],g["Z"]].includes(t.type)?s="기본":[g["t"],g["W"]].includes(t.type)&&(s=t.type===g["t"]?"심화":"실전");break;default:break}break;case 2:case 3:if(1===+t.booktype&&3===i){s="듣기";break}switch(o){case g["h"]:case g["g"]:t.type===g["pb"]?s="어휘":t.type===g["bb"]?s=3==i&&31===!+t.booktype?"지문":"본문":t.type===g["hb"]?s="심화":t.type===g["G"]&&(s="듣기");break;case g["e"]:t.type===g["pb"]?s="어휘":t.type===g["B"]?s=3==i?"지문":"본문":t.type===g["a"]&&(s="심화");break;default:break}break;default:break}break;default:break}return s},formatCardData(t){const e="assessment"===t.type;if(e){const e=t=>t>1?t-1+"차 재평가":"정규평가",s=[{tagText:"평가",tagClass:"navy"}];return{title:t.name,unitName:e(t.tryCnt),tags:s}}},getMonthSchedule(){let t=this.$store.state.cid,e=this.$store.state.uid,s=this.current_ym;if(this.loading)return;this.loading=!0,this.month_tot_days=0,this.month_study_days=0;let i=[];this.getAssessmentSchedule(t,e,s,i)},getAssessmentSchedule(t,e,s,i){this.$axios.get(`${g["w"]}/assessment/${t}/user/${e}/schedule/${s}`).then(t=>{200==t.status?t.data.rows&&Array.isArray(t.data.rows)&&(this.month_tot_days=t.data.rows.length,this.month_study_days=t.data.rows.filter(t=>null!==t.score).length,t.data.rows.forEach(t=>{this.processAssessment(t,i)})):console.log(t.status)}).catch(t=>{console.error(t)}).finally(()=>{this.loading=!1,"TaskLayout"===this.$options.name&&this.$nextTick(()=>{this.$refs&&this.$refs.scheduleList&&(this.$refs.scheduleList.scrollTop=0),this.fillBlankCells()})})},processAssessment(t,e){const s=new Date(t.postdate),i=s.getDate(),o=s.getFullYear(),a=s.getMonth()+1;if(o===this.sel_year&&a===this.sel_month){this.daily_data[i]||(this.daily_data[i]=[]),e.includes(i)||e.push(i);const s={type:"assessment",assessmentId:t.assessment_id,name:t.assessment_name,postdate:t.postdate,endDate:t.end_date,score:t.score,cutoff:t.cutoff,studyTime:t.study_time,tryCnt:t.try_cnt};this.daily_data[i].push(s)}if("TaskLayout"===this.$options.name){const e={type:"assessment",name:t.assessment_name,postdate:t.postdate,endDate:t.end_date,score:t.score,cutoff:t.cutoff,studyTime:t.study_time,tryCnt:t.try_cnt},s=this.dateYmd(o,a,i);this.$data.dot_data[s]||this.$set(this.$data.dot_data,s,[]),this.$data.dot_data[s].push(e)}},changeMonth(t){this.clickSound();let e=new Date(t).getFullYear(),s=new Date(t).getMonth()+1;this.sel_year=e,this.sel_month=s,this.setMonthStatus(e,s),this.current_ym=this.dateYmd(e,s),this.getMonthSchedule()},selectDate(t){this.clickSound(),this.sel_day=t.getDate()}},created(){this.setMonthStatus(this.this_year,this.this_month),this.current_ym=this.dateYmd(this.this_year,this.this_month),this.this_ym=this.dateYmd(this.this_year,this.this_month),this.getMonthSchedule()}},h_={name:"schedule-learning-schedule",mixins:[d_],data(){return{en:qp["en"],class_names:[],class_days:{},class_days_sum:[],month_name:Object.freeze(["January","February","March","April","May","June","July","August","September","October","November","December"]),week_eng:Object.freeze(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]),sel_days:[],sel_record:null,move_dialog:!1,loading:!1,user_class:"",user_name:"",lesson_days:"",is_mobile:!1,is_ios:!1,mdi_account_group:Lt["a"],mdi_calendar_month:Lt["j"],mdi_chart_arc:Lt["m"],mdi_chevron_down:Lt["s"],mdi_chevron_up:Lt["y"]}},components:{Datepicker:Np["a"],IconRolling:Rt,Card:e_},computed:{getScheduleDialogMessage(){if(!this.sel_record)return"";const t="평가";return t+" 스케줄을 선택하셨습니다.\n선택하신 스케줄로 이동하시겠습니까?"}},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},setCardMonth(){return this.month_name[this.sel_month-1]},setCardYear(){return new Date(this.sel_year,this.sel_month-1).getFullYear()},setCardDow(t){return this.week_eng[new Date(this.sel_year,this.sel_month-1,t).getDay()]},changeMonth(t){this.clickSound();let e=document.getElementById("right"),s=new Date(t).getFullYear(),i=new Date(t).getMonth()+1,o=document.getElementsByClassName("day__month_btn")[0];if(this.sel_year=s,this.sel_month=i,this.this_year==s&&this.this_month==i){o.classList.add("success--text");let t=document.getElementById("schedule-right-list-"+this.this_day);if(this.this_day>3){let s=window,i=document,o=i.documentElement,a=i.getElementsByTagName("body")[0],n=s.innerHeight||o.clientHeight||a.clientHeight,r=13*n/100;if(t){let s=t.getBoundingClientRect().height;e.scrollTo(0,t.offsetTop-(r+2*s))}}}else o.classList.remove("success--text"),e.scrollTo(0,0);this.sel_days=[],this.setMonthStatus(s,i),this.current_ym=this.dateYmd(s,i),this.getMonthSchedule()},toggleCard(t){this.daily_data[t]&&this.daily_data[t].length>0&&(this.sel_days.includes(t)?this.sel_days.splice(this.sel_days.indexOf(t),1):this.sel_days.push(t))},selectDate(t){this.clickSound();let e=t.getDate(),s=window,i=document,o=i.documentElement,a=i.getElementsByTagName("body")[0],n=s.innerHeight||o.clientHeight||a.clientHeight,r=13*n/100,l=document.getElementById("right"),c=document.getElementById("schedule-right-list-"+e),d=c.getElementsByClassName("v-card__title")[0].getBoundingClientRect().height;l.scrollTo({top:c.offsetTop-(r+2*d),left:0,behavior:"smooth"})},goTaskOrAssessment(){this.clickSound();const t=this.sel_record.postdate,e=new Date(t),s=e.getFullYear(),i=e.getMonth()+1,o=e.getDate();"assessment"===this.sel_record.type&&this.$router.push({path:"/assessment",query:{year:s,month:i,day:o}}),this.move_dialog=!1},closeDialog(){this.move_dialog=!1,this.sel_record=null},handleArrowClick(t){this.sel_record=t,this.move_dialog=!0,this.clickSound()},setClassName(){try{const t=sessionStorage.getItem("class");if(t){const e=JSON.parse(t);return e&&e[0].name?e[0].name:""}}catch(t){console.warn(t)}return""},setLessonDays(){try{const t=sessionStorage.getItem("class");if(t){const e=JSON.parse(t);if(e&&e[0]&&e[0].lesson_day_bit){const t=e[0].lesson_day_bit,s=["일","월","화","수","목","금","토"],i=[1,2,3,4,5,6,0];let o=[];return i.forEach(e=>{"1"===t[e]&&o.push(s[e])}),o.join(", ")}}}catch(t){console.warn(t)}return""},initializeSessionData(){this.user_class=this.setClassName(),this.user_name=this.$store.state.uname,this.lesson_days=this.setLessonDays()}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0),"ios"===this.$store.state.platform&&(this.is_ios=!0);let t=this.$store.state.class,e=0;console.log(t);let s=function(t){return t=t.toString(2).padStart(7,"0"),Array.from(t).map((t,e)=>parseInt(t)?e:void 0).filter((t,e)=>void 0!==t)};for(let i=0;i{let t=document.getElementById("right");this.sel_year=this.this_year,this.sel_month=this.this_month;let e=document.getElementsByClassName("day__month_btn")[0];e.classList.add("success--text");let s=document.getElementById("schedule-right-list-"+this.this_day);if(this.this_day>3&&s){let e=window,i=document,o=i.documentElement,a=i.getElementsByTagName("body")[0],n=e.innerHeight||o.clientHeight||a.clientHeight,r=13*n/100;if(s){let e=s.getBoundingClientRect().height;t.scrollTo(0,s.offsetTop-(r+2*e))}}})}},u_=h_,p_=(s("3f5b"),Object(p["a"])(u_,Kp,Zp,!1,null,null,null)),__=p_.exports;y()(p_,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCardTitle:nt["c"],VCol:rt["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"],VSheet:Se["a"]});var m_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{staticClass:"pa-0",attrs:{id:"report-lookup",fluid:""}},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"pt-0 pb-0 white",attrs:{id:"report-lookup-main",cols:"12"}},[s("v-row",{staticClass:"min-h-40px d-none",attrs:{id:"report-header",dense:"","no-gutters":""}},[s("v-col",{attrs:{cols:"2"}},[s("v-btn",{class:t.routeCheckClass(1),attrs:{block:"","x-large":"",elevation:"0",id:"r-l-left-tab",to:"/report/lookup/learning",ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("학습 과정")])])],1),s("v-col",{attrs:{cols:"2"}},[s("v-btn",{class:t.routeCheckClass(2),attrs:{block:"","x-large":"",elevation:"0",id:"r-l-right-tab",to:"/report/lookup/exam",ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("진단 평가")])])],1)],1),s("div",{staticClass:"width-100",staticStyle:{height:"1.3vh"}}),s("div",[s("router-view")],1)],1)],1)],1)},g_=[],b_={name:"report-lookup",computed:{routeCheckClass:function(){return t=>{let e="";return 2===t?e="report-lookup-learning"==this.$route.name||"report-lookup"==this.$route.name?"success--text white success-border ":"success white--text":1===t&&(e="report-lookup-exam"==this.$route.name?"success--text white success-border ":"success white--text"),e}}}},v_=b_,f_=(s("569a"),Object(p["a"])(v_,m_,g_,!1,null,null,null)),w_=f_.exports;y()(f_,{VBtn:ot["a"],VCol:rt["a"],VContainer:lt["a"],VRow:ht["a"]});var y_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{staticClass:"pa-0",attrs:{id:"report-analysis",fluid:""}},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"pt-0 pb-0 white",attrs:{id:"report-analysis-main",cols:"12"}},[s("v-row",{staticClass:"min-h-40px d-none",attrs:{id:"report-header",dense:"","no-gutters":""}},[s("v-col",{attrs:{cols:"2"}},[s("v-btn",{class:t.routeCheckClass(1),attrs:{block:"","x-large":"",elevation:"0",id:"r-l-left-tab",to:"/report/analysis/learning",ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("학습 과정")])])],1),s("v-col",{attrs:{cols:"2"}},[s("v-btn",{class:t.routeCheckClass(2),attrs:{block:"","x-large":"",elevation:"0",id:"r-l-right-tab",to:"/report/analysis/exam",ripple:!1},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("진단 평가")])])],1)],1),s("div",[s("router-view")],1)],1)],1)],1)},x_=[],k_={name:"report-analysis",computed:{routeCheckClass:function(){return t=>{let e="";return 2===t?e="report-analysis-learning"==this.$route.name||"report-lookup"==this.$route.name?"success--text white success-border ":"success white--text":1===t&&(e="report-analysis-exam"==this.$route.name?"success--text white success-border ":"success white--text"),e}}}},C_=k_,$_=(s("c5ef"),Object(p["a"])(C_,y_,x_,!1,null,null,null)),S_=$_.exports;y()($_,{VBtn:ot["a"],VCol:rt["a"],VContainer:lt["a"],VRow:ht["a"]});var T_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-lookup-learning"}},[s("div",{staticStyle:{padding:"0 2%"}},[s("v-col",{staticClass:"pa-0 pb-2",staticStyle:{display:"flex","align-items":"center"},attrs:{cols:"1"}},t._l(t.s_type_categories,(function(e,i){return s("v-btn",{key:"category-"+i,staticClass:"category-btn mr-2",class:t.current_category===i?"white--text":"grey--text",attrs:{depressed:"",rounded:"",color:t.current_category===i?"success":"grey lighten-4"},on:{click:function(e){return t.changeSTypeCategory(i)}}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1),3!=t.current_category?[s("div",{staticClass:"shown-header-div width-100"},[s("table",{staticClass:"shown-header width-100"},[s("thead",[s("tr",{attrs:{id:"lookup-list-head-tr"}},[t._m(0),t._m(1),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("a.type"),staticStyle:{width:"8%"},on:{click:function(e){return t.sortingCol("a.type",t.sort_direction)}}},[s("span",[t._v("구분 ")]),t._m(2)]),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("b.schedule_name"),staticStyle:{width:"27%"},on:{click:function(e){return t.sortingCol("b.schedule_name",t.sort_direction)}}},[s("span",[t._v("교재명 ")]),t._m(3)]),t._m(4),t._m(5),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("a.postdate"),staticStyle:{width:"15%"},on:{click:function(e){return t.sortingCol("a.postdate",t.sort_direction)}}},[s("span",[t._v("학습 날짜 ")]),t._m(6)])])])])]),s("infinite-scroller",{key:"schedule-list-infiscroll-10",staticClass:"infi-cls default-lookup",attrs:{loadmore:t.loadMore,cat:11,nomore:t.nomore,loading:t.loading,skipInitialLoad:t.categoryChanged}},[s("v-data-table",{attrs:{id:"lookup-list",headers:t.headers,items:t.items,"mobile-breakpoint":10,"show-expand":!1,"item-key":t.item_key,"no-data-text":"조회 가능한 레포트가 없습니다.","no-results-text":"검색된 레포트가 없습니다.","hide-default-footer":!0,"hide-default-header":!0,"disable-pagination":!0,"fixed-header":!0,"server-items-length":t.item_length,page:t.page,"items-per-page":t.items_per_page,"sort-by":void 0,"sort-desc":void 0,dense:""},on:{"click:row":function(e){return t.goResult(e)},"current-items":t.currentItems},scopedSlots:t._u([{key:"item.type",fn:function(e){var i=e.item;return[s("b",{domProps:{innerHTML:t._s(t.setType(i))}})]}},{key:"item.schedule_name",fn:function(e){var i=e.item;return[s("div",[t._v("\n "+t._s(50===+i.booktype?i.bookname:i.schedule_name)+"\n ")])]}},{key:"item.unit_name",fn:function(e){var i=e.item;return[s("div",[t._v("\n "+t._s(50===+i.booktype?i.subtitle:i.unit_name)+"\n ")])]}},{key:"item.avg",fn:function(e){var i=e.item;return[s("span",{domProps:{textContent:t._s(t.setAvg(i.avg))}})]}},{key:"item.postdate",fn:function(e){var i=e.item;return[s("span",{domProps:{textContent:t._s(i.postdate.substr(0,16))}})]}},{key:"item.s_type",fn:function(e){var i=e.item;return[s("v-chip",{style:{color:"#fff",backgroundColor:t.sTypeChipColor(i.s_type),height:"1.75rem",marginLeft:"-0.5rem",fontSize:"1rem",padding:"0 .75rem"},attrs:{medium:""}},[t._v("\n "+t._s(t.getSTypeText(i.s_type))+"\n ")])]}}],null,!0)})],1)]:3==t.current_category?[s("div",{staticClass:"shown-header-div width-100"},[s("table",{staticClass:"shown-header width-100"},[s("thead",[s("tr",{attrs:{id:"lookup-list-head-tr"}},[t._m(7),s("th",{staticClass:"text-left sort-col",class:t.levelArrowClass("name"),staticStyle:{width:"12%"},on:{click:function(e){return t.levelSortingCol("name",t.level_sort_direction)}}},[s("span",[t._v("이름 ")]),t._m(8)]),s("th",{staticClass:"text-left sort-col",class:t.levelArrowClass("select_grade"),staticStyle:{width:"15%"},on:{click:function(e){return t.levelSortingCol("select_grade",t.level_sort_direction)}}},[s("span",[t._v("학년 ")]),t._m(9)]),s("th",{staticClass:"text-left sort-col",class:t.levelArrowClass("studytime"),staticStyle:{width:"15%"},on:{click:function(e){return t.levelSortingCol("studytime",t.level_sort_direction)}}},[s("span",[t._v("응시 시간 ")]),t._m(10)]),s("th",{staticClass:"text-left sort-col",class:t.levelArrowClass("postdate"),staticStyle:{width:"20%"},on:{click:function(e){return t.levelSortingCol("postdate",t.level_sort_direction)}}},[s("span",[t._v("응시 일자 ")]),t._m(11)]),s("th",{staticClass:"text-left sort-col",class:t.levelArrowClass("measure_grade"),staticStyle:{width:"15%"},on:{click:function(e){return t.levelSortingCol("measure_grade",t.level_sort_direction)}}},[s("span",[t._v("레벨 결과 ")]),t._m(12)]),t._m(13)])])])]),s("infinite-scroller",{key:"schedule-list-infiscroll-14",staticClass:"infi-cls level-test-lookup",attrs:{loadmore:t.levelLoadMore,cat:14,nomore:t.level_nomore,loading:t.level_loading,isAdmin:t.$store.state.uclass>20}},[s("v-data-table",{attrs:{id:"level-lookup-list",headers:t.level_headers,items:t.level_items,"mobile-breakpoint":10,"show-expand":!1,"item-key":t.level_item_key,"no-data-text":"조회 가능한 레포트가 없습니다.","hide-default-footer":!0,"hide-default-header":!0,"disable-pagination":!0,"fixed-header":!0,"server-items-length":t.level_item_length,page:t.level_page,"items-per-page":t.level_items_per_page,"sort-by":void 0,"sort-desc":void 0,dense:""},on:{"current-items":t.currentItems},scopedSlots:t._u([{key:"item.studytime",fn:function(e){var s=e.item;return[t._v("\n "+t._s(s.min_studytime)+"분\n ")]}},{key:"item.lookup",fn:function(e){var i=e.item;return[s("v-btn",{key:"btn_"+i.id,staticClass:"lookup-btn",attrs:{depressed:"",large:""},on:{click:function(e){return e.stopPropagation(),t.goLevelTestResult(i)}}},[t._v("\n 조회\n ")])]}}],null,!0)})],1),t.$store.state.process_type===t.LEVEL_TEST_RESULT?s("div",[s("level-test-result",{attrs:{result:t.level_result}})],1):t._e()]:t._e()],2)},A_=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-left",staticStyle:{width:"6%"}},[s("span",[t._v("No.")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-left",staticStyle:{width:"8%"}},[s("span",[t._v("유형")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-left",staticStyle:{width:"22%"}},[s("span",[t._v("단원")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-left",staticStyle:{width:"12%"}},[s("span",[t._v("점수")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-left",staticStyle:{width:"8%"}},[s("span",[t._v("No.")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-center",staticStyle:{width:"15%"}},[s("span",{staticStyle:{"padding-right":"1rem"}},[t._v("조회")])])}],I_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[1==t.cat?s("div",{staticClass:"booklist-scroll-wrapper",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-1",value:t.onScroll,expression:"onScroll",arg:"#scroll-1"}]},[t._t("default")],2)]):2==t.cat?s("div",{staticClass:"booklist-scroll-wrapper",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-2",value:t.onScroll,expression:"onScroll",arg:"#scroll-2"}]},[t._t("default")],2)]):3==t.cat?s("div",{staticClass:"booklist-scroll-wrapper",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-3",value:t.onScroll,expression:"onScroll",arg:"#scroll-3"}]},[t._t("default")],2)]):4==t.cat?s("div",{staticClass:"booklist-scroll-wrapper",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-4",value:t.onScroll,expression:"onScroll",arg:"#scroll-4"}]},[t._t("default")],2)]):5==t.cat?s("div",{staticClass:"booklist-scroll-wrapper",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-5",value:t.onScroll,expression:"onScroll",arg:"#scroll-5"}]},[t._t("default")],2)]):6==t.cat?s("div",{staticClass:"booklist-scroll-wrapper",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-6",value:t.onScroll,expression:"onScroll",arg:"#scroll-6"}]},[t._t("default")],2)]):10==t.cat?s("div",{staticClass:"booklist-scroll-wrapper scroll-10",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-10",value:t.onScroll,expression:"onScroll",arg:"#scroll-10"}]},[t._t("default")],2)]):11==t.cat?s("div",{staticClass:"booklist-scroll-wrapper scroll-11",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-11",value:t.onScroll,expression:"onScroll",arg:"#scroll-11"}]},[t._t("default")],2)]):12==t.cat?s("div",{staticClass:"booklist-scroll-wrapper scroll-12",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-12",value:t.onScroll,expression:"onScroll",arg:"#scroll-12"}]},[t._t("default")],2)]):13==t.cat?s("div",{staticClass:"booklist-scroll-wrapper scroll-13 border-ede thin-l thin-r",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-13",value:t.onScroll,expression:"onScroll",arg:"#scroll-13"}]},[t._t("default")],2)]):14==t.cat?s("div",{staticClass:"booklist-scroll-wrapper scroll-14",class:t.isAdmin?"admin":"",attrs:{id:"scroll-"+t.cat}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#scroll-14",value:t.onScroll,expression:"onScroll",arg:"#scroll-14"}]},[t._t("default")],2)]):t._e()])},D_=[],R_={name:"intinitescroller",props:["loadmore","cat","nomore","loading","isAdmin","skipInitialLoad"],data(){return{scroll_top:null,con_height:0,el_rect:null,distance:300,init:!1,prevent_interval:!1,prevent_timeout:null,scroll_raf:null}},methods:{onScroll:function(t){this.nomore||this.loading||(this.scroll_raf&&cancelAnimationFrame(this.scroll_raf),this.scroll_raf=requestAnimationFrame(()=>{const e=t.target,s=e.scrollHeight-(e.scrollTop+e.clientHeight),i=s<=this.distance;i&&!this.prevent_interval&&(this.prevent_interval=!0,this.loadmore(),this.prevent_timeout=setTimeout(()=>{this.prevent_interval=!1;const t=e.scrollHeight-(e.scrollTop+e.clientHeight)<=this.distance;!t||this.loading||this.nomore||this.loadmore()},200))}))},onResize:function(t){this.el_rect=this.$el.getBoundingClientRect()}},mounted(){this.$nextTick(()=>{this.el_rect=this.$el.getBoundingClientRect(),this.init||this.skipInitialLoad||(this.loadmore(),this.init=!0)})},created(){window.addEventListener("resize",this.onResize)},beforeDestroy(){window.removeEventListener("resize",this.onResize),this.prevent_timeout&&clearTimeout(this.prevent_timeout),this.scroll_raf&&cancelAnimationFrame(this.scroll_raf)},destroyed(){this.$destroy()}},P_=R_,M_=(s("7897"),Object(p["a"])(P_,I_,D_,!1,null,null,null)),E_=M_.exports;fi()(M_,{Scroll:dn["b"]});var B_={name:"report-lookup-learning",data(){return{nomore:!1,loading:!1,headers:Object.freeze([{text:"No.",value:"no",align:"left",sortable:!1,width:"4%"},{text:"유형",value:"s_type",align:"left",sortable:!1,width:"6%"},{text:"구분",value:"type",align:"left",sortable:!1,width:"8%"},{text:"교재명",value:"schedule_name",align:"left",sortable:!1,width:"31%"},{text:"단원",value:"unit_name",align:"left",sortable:!1,width:"22%"},{text:"점수",value:"avg",align:"left",sortable:!1,width:"12%"},{text:"학습 날짜",value:"postdate",align:"left",sortable:!1,width:"15%"}]),item_key:"unique_id",items:[],item_length:0,page:1,items_per_page:99999,sort_order:"a.postdate",sort_direction:"desc",per_list:10,is_openbook:0,s_type_categories:["전체","수업","평가","레벨 테스트"],current_category:0,categoryChanged:!1,LEVEL_TEST_RESULT:g["y"]+g["R"],ASSESSMENT_RESULT:g["c"]+g["R"],level_item_key:"id",level_nomore:!1,level_page:1,level_sort_order:"postdate",level_sort_direction:"desc",level_item_length:0,level_items:[],level_per_list:10,level_items_per_page:99999,level_loading:!1,level_result:{},level_headers:Object.freeze([{text:"No.",value:"no",align:"left",sortable:!1},{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:"lookup",align:"center",sortable:!0}])}},components:{InfiniteScroller:E_,LevelTestResult:Ks},watch:{current_category(t){3!=t&&(this.$nextTick(()=>{const t=document.querySelector(".infi-cls.default-lookup");t&&(t.scrollTop=0)}),this.getList(!0),this.$nextTick(()=>{this.categoryChanged=!1}))}},computed:{arrowClass(){return t=>{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}},levelArrowClass(){return t=>{let e="";return t==this.level_sort_order&&(e=" active "+this.level_sort_direction),e}}},methods:{getSTypeText:q,sTypeChipColor:L,changeSTypeCategory(t){this.current_category!==t&&(this.categoryChanged=!0,this.items=[],this.item_length=0,this.nomore=!1,this.loading=!1,this.current_category=t)},clickSound(){this.$store.dispatch("soundEffectPlay","click")},currentItems(t){this.$nextTick(()=>{})},loadMore(){if(this.loading)return!1;this.getList()},levelLoadMore(){if(this.level_loading)return!1;this.getLevelTestReportList()},getLevelTestReportList(){if(this.level_nomore)return;let t=this.$store.state.cid,e=`${g["w"]}/leveltest/1/getrecordlist/${t}`;e+="?page="+this.level_page,e+="&order="+this.level_sort_direction,e+="&sort="+this.level_sort_order,19===+this.$store.state.uclass&&(e+="&user_id="+this.$store.state.uid),this.$axios.get(e).then(t=>{if(200==t.status){let e=t.data.rows,s=e.length;this.level_item_length=this.level_item_length+s;for(let t=0;t{if(200==t.status){let e=t.data;if(e&&e.length>0)for(let t=0;t{const t=document.querySelector(".infi-cls.default-lookup");t&&(t.scrollTop=0,this.$nextTick(()=>{this.getList()}))})},levelSortingCol(t){if(this.level_loading)return!1;this.level_sort_order!==t?(this.level_sort_order=t,this.level_sort_direction="desc"):"desc"==this.level_sort_direction?this.level_sort_direction="asc":this.level_sort_direction="desc",this.level_nomore=!1,this.level_loading=!0,this.level_items=[],this.level_item_length=0,this.level_page=1,this.getLevelTestReportList()},setType(t){if("assessment"===t.record_type)return t.type;let e,s,i=0,o=t.category?+t.category:1;if(t.booktype&&(i=Math.floor(+t.booktype/10)),1==+t.schedule_type)if(1==t.schedule_type_v&&i!=g["j"])switch(i){case g["h"]:case g["g"]:t.type==g["pb"]?(e="어휘",s="warning--text"):t.type==g["bb"]?(s="success--text",e=4!=o||+t.words_cnt?[2,4].includes(o)?"본문":3==o||1==o?"지문":"문장":"학습"):t.type==g["hb"]?(s="info2--text",e=4!=o||+t.words_cnt?"심화":"시험"):t.type==g["G"]&&(s="info2--text",e="듣기");break;case g["e"]:t.type==g["pb"]?(e="어휘",s="warning--text"):t.type==g["B"]?(e=3==o?"지문":"본문",s="success--text"):t.type==g["a"]&&(e="심화",s="info2--text");break;default:break}else switch(i){case g["j"]:t.type==g["sb"]?(e="학습",s="success--text"):t.type==g["qb"]&&(e="시험",s="info2--text");break;default:t.type==g["bb"]?(e="학습",s="success--text"):t.type==g["hb"]&&(e="시험",s="info2--text");break}else switch(i){case g["h"]:case g["g"]:t.type==g["pb"]?(e="어휘",s="warning--text"):t.type==g["bb"]?(s="success--text",e=4!=o||+t.words_cnt?[2,4].includes(o)?"본문":3==o||1==o?"지문":"문장":"학습"):t.type==g["hb"]?(s="info2--text",e=4!=o||+t.words_cnt?"심화":"시험"):t.type==g["G"]&&(s="info2--text",e="듣기");break;case g["e"]:t.type==g["pb"]?(e="어휘",s="warning--text"):t.type==g["B"]?(e=3==o?"지문":"본문",s="success--text"):t.type==g["a"]&&(e="심화",s="info2--text");break;case g["j"]:t.type==g["sb"]?(e="학습",s="success--text"):t.type==g["qb"]&&(e="시험",s="info2--text");break;case g["f"]:case g["i"]:[g["u"],g["ab"]].includes(t.type)?(s="warning--text",e=t.type==g["u"]?"이론":"동화"):[g["s"],g["Z"]].includes(t.type)?(s="success--text",e="기본"):[g["t"],g["W"]].includes(t.type)&&(s="info2--text",e=t.type===g["t"]?"심화":"실전");break;default:break}let a=`${e}`;return a},setAvg(t){let e="";return e=100==+t?t+"점":0==+t?"0점":Number(t).toFixed(2)+"점",e},getMockExamUnitSingle(t){return new Promise((e,s)=>{this.$axios.get(`${g["w"]}/mockexam/book/${t}`).then(t=>{200==t.status?e(t.data):s(!1)}).catch(t=>{window.console.err(t),s(!1)})})},goResult(t){if(this.clickSound(),"T"===t.s_type)return void this.goAssessmentResult(t);let e=t.type+g["R"],s={},i={},o=0,a=0;if(t.booktype&&(o=Math.floor(Number(t.booktype)/10),a=Number(t.booktype)%10),o==g["g"]&&t.type==g["G"])this.getMockExamUnitSingle(t.books_id).then(e=>{if(e){let s={bookname:t.schedule_name?t.schedule_name:t.bookname,books_id:e.books_id,id:e.id,question_cnt:e.question_cnt,postdate:t.postdate,time:e.time,try_cnt:t.done_cnt,unit_id:t.unit_id?+t.unit_id:null,s_u_id:t.s_u_id?+t.s_u_id:null,schedule_id:t.schedule_id,unit_name:t.unit_name,ur_id:t.id,schedule_type:t.schedule_type,record_id:t.mock_record_id};1==s.schedule_type?(s.unit_seq=t.s_u_mode&&t.s_u_mode.length>1?+t.s_u_mode.replace(/[^0-9]/g,""):null,s.type_v_seq=t.unit_seq?+t.unit_seq:null):s.unit_seq=t.unit_seq?+t.unit_seq:null,this.$store.commit("setMockExamResultId",s.record_id),this.$store.commit("setMockExam",s),this.$store.commit("setProcessType",g["G"]),this.$store.commit("setLearningStatus",!0)}});else{if(s.id=t.books_id,s.academy_id=null,s.category=null,s.bookname=t.schedule_name,s.publisher=null,s.grade=null,s.level=null,s.postdate=null,s.publishdate=null,s.total_cnt=null,s.unit_cnt=null,s.subtitle=null,s.folder_id=null,s.schedule_id=t.schedule_id,s.books_id=t.books_id,s.tot_unit_cnt=null,s.complete_unit_cnt=null,s.startdate=null,s.schedule_name=t.schedule_name,s.study_modules=t.study_modules,s.test_modules=t.test_modules,s.v_mod=t.v_mod,s.m_mod=t.m_mod,s.a_mod=t.a_mod,s.img_use=null,s.auto_exam=null,s.schedule_type=t.schedule_type,s.schedule_type_v=t.schedule_type_v?t.schedule_type_v:0,s.sentence_cnt=null,s.dist_seq=t.dist_seq,s.bookmark=null,s.progress=null,s.disable=null,s.booktype=t.booktype,s.booktype_1=o,s.booktype_2=a,i.id=t.unit_id,i.book_id=t.books_id,i.seq=t.unit_seq,i.s_u_id=t.s_u_id?t.s_u_id:0,i.name=t.unit_name,i.sentences_cnt=null,i.words_cnt=null,i.schedule_id=t.schedule_id,i.test_cnt=t.type==g["hb"]?t.done_cnt:null,i.study_cnt=t.type==g["bb"]?t.done_cnt:null,i.voca_cnt=t.type==g["pb"]?t.done_cnt:null,i.major_cnt=[g["B"],g["sb"]].includes(t.type)?t.done_cnt:null,i.advanced_cnt=[g["a"],g["qb"]].includes(t.type)?t.done_cnt:null,i.test_pk=t.type==g["hb"]?t.id:null,i.study_pk=t.type==g["bb"]?t.id:null,i.voca_pk=t.id,i.major_pk=t.id,i.advanced_pk=t.id,i.test_done_modules=t.type==g["hb"]?t.done_modules:null,i.study_done_modules=t.type==g["bb"]?t.done_modules:null,i.voca_done_modules=t.type==g["pb"]?t.done_mod:null,i.major_done_modules=[g["B"],g["sb"]].includes(t.type)?t.done_mod:null,i.advanced_done_modules=[g["a"],g["qb"]].includes(t.type)?t.done_mod:null,i.test_done=t.type==g["hb"]?t.done:null,i.study_done=t.type==g["bb"]?t.done:null,i.voca_done=t.type==g["pb"]?t.done:null,i.major_done=[g["B"],g["sb"]].includes(t.type)?t.done:null,i.advanced_done=[g["a"],g["qb"]].includes(t.type)?t.done:null,[g["u"],g["s"],g["t"],g["ab"],g["Z"],g["W"]].includes(t.type)){const e={[g["u"]]:"grammar_theory",[g["s"]]:"grammar_basics",[g["t"]]:"grammar_deep",[g["ab"]]:"story_v",[g["Z"]]:"story_m",[g["W"]]:"story_a"};i[e[t.type]+"_pk"]=t.id,i[e[t.type]+"_done_modules"]=t.done_mod,i[e[t.type]+"_done"]=t.done,i[e[t.type]+"_cnt"]=t.done_cnt,[g["ab"],g["Z"],g["W"]].includes(t.type)&&(s.level=+t.level,s.bookname=t.bookname)}this.setBookInfo(s,i,e)}},async goAssessmentResult(t){console.log("goAssessmentResult",t),this.$store.commit("setAssessmentRecordId",t.id),this.$store.commit("setAssessmentInfo",t),this.$store.commit("setProcessType",this.ASSESSMENT_RESULT),this.$store.commit("setLearningStatus",!0)},async goLevelTestResult(t){await this.getReport(t.id),this.$store.commit("setProcessType",this.LEVEL_TEST_RESULT)},async getReport(t){let e=`${g["w"]}/leveltest/1/getrecord/${t}`;await this.$axios.get(e).then(t=>{200==t.status?this.level_result=t.data:this.level_result={}})},setBookInfo(t,e,s){this.$store.dispatch("setBookInfo",{book:t,unit:e,type:s,init:!1}).then(t=>{this.$store.dispatch("setCurUnitId",e.id).then(()=>{this.$store.commit("setLearningStatus",!0)})})}},mounted(){},created(){this.is_openbook=this.$store.state.settings.is_openbook}},N_=B_,q_=(s("2e2c"),Object(p["a"])(N_,T_,A_,!1,null,null,null)),L_=q_.exports;y()(q_,{VBtn:ot["a"],VChip:Me["a"],VCol:rt["a"],VDataTable:Gh["a"]});var z_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-lookup-leveltest"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.$store.state.uclass>20,expression:"$store.state.uclass > 20"}],staticClass:"report-option-wrap"},[s("div",{staticClass:"float-right level-right-wrap"},[s("v-btn",{staticClass:"mr-1 white--text btn-in-menu",class:0==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:""},on:{click:function(e){0!=t.month_toggle&&t.levelMonthToggle(0)}}},[t._v("\n 두달 전\n ")]),s("v-btn",{staticClass:"mr-1 white--text btn-in-menu",class:1==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:""},on:{click:function(e){1!=t.month_toggle&&t.levelMonthToggle(1)}}},[t._v("\n 지난달\n ")]),s("v-btn",{staticClass:"white--text btn-in-menu",class:2==t.month_toggle?"success":"grey lighten-1",attrs:{depressed:"",tile:""},on:{click:function(e){2!=t.month_toggle&&t.levelMonthToggle(2)}}},[t._v("\n 이번달\n ")])],1),s("v-text-field",{staticClass:"float-right mr-1 date-field c-date-picker",staticStyle:{"max-width":"9rem"},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"}})],1),s("div",{staticClass:"shown-header-div width-100"},[s("table",{staticClass:"shown-header width-100"},[s("thead",[s("tr",{attrs:{id:"lookup-list-head-tr"}},[t._m(0),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("name"),on:{click:function(e){return t.sortingCol("name",t.sort_direction)}}},[s("span",[t._v("이름 ")]),t._m(1)]),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("select_grade"),on:{click:function(e){return t.sortingCol("select_grade",t.sort_direction)}}},[s("span",[t._v("학년 ")]),t._m(2)]),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("studytime"),on:{click:function(e){return t.sortingCol("studytime",t.sort_direction)}}},[s("span",[t._v("응시 시간 ")]),t._m(3)]),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("postdate"),on:{click:function(e){return t.sortingCol("postdate",t.sort_direction)}}},[s("span",[t._v("응시 일자 ")]),t._m(4)]),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("measure_grade"),on:{click:function(e){return t.sortingCol("measure_grade",t.sort_direction)}}},[s("span",[t._v("레벨 결과 ")]),t._m(5)]),t._m(6)])])])]),s("infinite-scroller",{key:"schedule-list-infiscroll-14",staticClass:"infi-cls",attrs:{loadmore:t.loadMore,cat:14,nomore:t.nomore,loading:t.loading,isAdmin:t.$store.state.uclass>20}},[s("v-data-table",{attrs:{id:"level-lookup-list",headers:t.headers,items:t.items,"mobile-breakpoint":10,"show-expand":!1,"item-key":t.item_key,"no-data-text":"조회 가능한 레포트가 없습니다.","hide-default-footer":!0,"hide-default-header":!0,"disable-pagination":!0,"fixed-header":!0,"server-items-length":t.item_length,page:t.page,"items-per-page":t.items_per_page,"sort-by":void 0,"sort-desc":void 0,dense:""},on:{"current-items":t.currentItems},scopedSlots:t._u([{key:"item.studytime",fn:function(e){var s=e.item;return[t._v("\n "+t._s(s.min_studytime)+"분\n ")]}},{key:"item.lookup",fn:function(e){var i=e.item;return[s("v-btn",{key:"btn_"+i.id,staticClass:"lookup-btn",attrs:{depressed:"",large:""},on:{click:function(e){return e.stopPropagation(),t.goResult(i)}}},[t._v("\n 조회\n ")])]}}],null,!0)})],1),t.$store.state.process_type===t.LEVEL_TEST_RESULT?s("div",[s("level-test-result",{attrs:{result:t.result}})],1):t._e()],1)},O_=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-left"},[s("span",[t._v("No.")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"text-center"},[s("span",{staticStyle:{"padding-right":"1rem"}},[t._v("조회")])])}],j_={name:"report-lookup-leveltest",data(){return{LEVEL_TEST_RESULT:g["y"]+g["R"],nomore:!1,loading:!1,headers:Object.freeze([{text:"No.",value:"no",align:"left",sortable:!1},{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:"lookup",align:"center",sortable:!0}]),item_key:"id",items:[],item_length:0,page:1,items_per_page:99999,sort_order:"postdate",sort_direction:"desc",result:{},per_list:10,is_openbook:0,date:"",type:"today",month_options:{},month_toggle:2,month_btn_key:0}},components:{InfiniteScroller:E_,LevelTestResult:Ks},computed:{levelComputedDateFormatted(){const[t,e]=this.date.split("-");return`${t}-${e}`},arrowClass(){return t=>{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}}},methods:{currentItems(t){this.$nextTick(()=>{let t=document.getElementById("level-lookup-list").getElementsByTagName("tr")[0].getElementsByTagName("td");if(this.headers.length==t.length){let e=document.getElementById("lookup-list-head-tr").getElementsByTagName("th");for(let[s,i]of Object.entries(t))e[s].style=`width:${i.clientWidth}px;`}})},clickSound(){this.$store.dispatch("soundEffectPlay","click")},levelMonthToggle(t){this.$store.dispatch("soundEffectPlay","click_button"),this.month_toggle=t;const e=this.$dayjs();0==t?(this.type="2month",this.date=e.add(-2,"month").set("date",1).format("YYYY-MM")):1==t?(this.type="lmonth",this.date=e.add(-1,"month").set("date",1).format("YYYY-MM")):2==t&&(this.type="tmonth",this.date=e.format("YYYY-MM")),this.page=1,this.getReportList()},loadMore(){if(this.loading)return!1;this.getReportList()},getReportList(){if(this.nomore)return;const t={0:"two_months_ago",1:"last_month",2:"this_month"};let e=this.$store.state.cid,s=`${g["w"]}/leveltest/1/getrecordlist/${e}`;s+="?period="+t[this.month_toggle],s+="&page="+this.page,s+="&order="+this.sort_direction,s+="&sort="+this.sort_order,19===+this.$store.state.uclass&&(s+="&user_id="+this.$store.state.uid),this.$axios.get(s).then(t=>{if(200==t.status){let e=t.data.rows,s=e.length;this.item_length=this.item_length+s;for(let t=0;t{console.log(t),200==t.status?this.result=t.data:this.result={}})},sortingCol(t,e){if(this.loading)return!1;this.sort_order!==t?(this.sort_order=t,this.sort_direction="desc"):"desc"==this.sort_direction?this.sort_direction="asc":this.sort_direction="desc",this.nomore=!1,this.loading=!0,this.items=[],this.item_length=0,this.page=1,this.getReportList()},async goResult(t){await this.getReport(t.id),this.$store.commit("setProcessType",this.LEVEL_TEST_RESULT)}},created(){this.is_openbook=this.$store.state.settings.is_openbook;const t=this.$dayjs();this.date=t.format("YYYY-MM")}},V_=j_,F_=(s("a653"),Object(p["a"])(V_,z_,O_,!1,null,null,null));F_.exports;y()(F_,{VBtn:ot["a"],VDataTable:Gh["a"],VTextField:ut["a"]});var G_=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},W_=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-lookup-exam"}},[s("div",{staticClass:"shown-header-div"},[s("div",{staticClass:"width-100 grey--text"},[t._v("오픈 준비중입니다.")])])])}],U_={name:"report-lookup-exam",props:["clickSound"],data(){return{}}},H_=U_,K_=(s("d545"),Object(p["a"])(H_,G_,W_,!1,null,null,null)),Z_=K_.exports,Y_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-analysis-learning"}},[s("div",{attrs:{id:"period_report"}},[s("div",{staticClass:"width-100 ma-auto height-100",attrs:{id:"period_report_top_row"}},[s("div",{staticClass:"pos-rel width-100 height-100",staticStyle:{margin:"auto"},style:t.is_mobile?"margin: auto; margin-top:1.3vh;":"margin: auto;",attrs:{id:"a4_parent"}},[s("div",{staticClass:"pos-rel ma-auto",class:{"in-mobile":t.is_mobile},style:t.is_mobile?"height: 32.4vh;":"max-height: 1683.78px; min-width: 793.688px; height: 1683.78px; transform-origin: center top; ",attrs:{id:"period_a4"}},[s("div",{staticClass:"pos-abs top-0 left-0 right-0 bottom-0"},[s("div",{staticClass:"width-100 height-100 mgauto",staticStyle:{"background-size":"100%"},attrs:{id:"period_report_top_sub"}},[t.is_mobile?t._e():s("div",{staticClass:"width-100",staticStyle:{height:"2%"}}),s("section",{staticClass:"width-100 ma-auto",style:t.is_mobile?"":"height: 18.08%;",attrs:{id:"period_report_info_section"}},[s("v-row",{staticClass:"width-100 ma-auto height-100"},[s("v-col",{staticClass:"py-0 pcol height-100",class:t.is_mobile?"pl-2p pr-1":"pl-8 pr-2",attrs:{cols:"6",sm:"6"}},[s("v-simple-table",{staticClass:"infotable height-100 bord radi",scopedSlots:t._u([{key:"default",fn:function(){return[s("tbody",{staticClass:"height-100",style:"font-size: "+t.font_rem+"rem;"},[s("tr",[s("td",[s("b",[t._v("이름")])]),s("td",{domProps:{textContent:t._s(t.$store.state.uname)}})]),s("tr",[s("td",[s("b",[t._v("학습 기간")])]),s("td",[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"pr-1",attrs:{cols:"4"}},[s("v-dialog",{ref:"dialogstartdate",attrs:{"return-value":t.startdate,transition:!1,width:"290px"},on:{"update:returnValue":function(e){t.startdate=e},"update:return-value":function(e){t.startdate=e}},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on;return[s("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.startdate,expression:"startdate"}],staticClass:"width-100 height-100 bord input-date text-center",staticStyle:{direction:"rtl"},attrs:{type:"text",readonly:"",name:"startdate"},domProps:{value:t.startdate},on:{input:function(e){e.target.composing||(t.startdate=e.target.value)}}},i))]}}]),model:{value:t.startdate_modal,callback:function(e){t.startdate_modal=e},expression:"startdate_modal"}},[s("v-date-picker",{attrs:{scrollable:"","event-color":"success","header-color":"success","next-icon":t.mdi_chevron_right,"prev-icon":t.mdi_chevron_left,"title-date-format":t.titleDateForm},on:{"click:date":t.startdateClick},model:{value:t.startdate,callback:function(e){t.startdate=e},expression:"startdate"}},[s("v-spacer"),s("v-btn",{attrs:{large:"",block:"",text:"",color:"black",ripple:!1},on:{click:function(e){t.startdate_modal=!1}}},[s("b",[t._v("취소")])])],1)],1)],1),s("v-col",{staticClass:"pr-1",attrs:{cols:"4"}},[s("v-dialog",{ref:"dialogenddate",attrs:{"return-value":t.enddate,transition:!1,width:"290px"},on:{"update:returnValue":function(e){t.enddate=e},"update:return-value":function(e){t.enddate=e}},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on;return[s("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.enddate,expression:"enddate"}],staticClass:"width-100 height-100 bord input-date text-center",staticStyle:{direction:"rtl"},attrs:{type:"text",readonly:"",name:"enddate"},domProps:{value:t.enddate},on:{input:function(e){e.target.composing||(t.enddate=e.target.value)}}},i))]}}]),model:{value:t.enddate_modal,callback:function(e){t.enddate_modal=e},expression:"enddate_modal"}},[s("v-date-picker",{attrs:{scrollable:"","event-color":"success","header-color":"success","next-icon":t.mdi_chevron_right,"prev-icon":t.mdi_chevron_left,"title-date-format":t.titleDateForm},on:{"click:date":t.enddateClick},model:{value:t.enddate,callback:function(e){t.enddate=e},expression:"enddate"}},[s("v-spacer"),s("v-btn",{staticClass:"height-100",attrs:{large:"",block:"",text:"",color:"black",ripple:!1},on:{click:function(e){t.enddate_modal=!1}}},[s("b",[t._v("취소")])])],1)],1)],1),t.is_mobile?s("v-col",{attrs:{cols:"4"}},[s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.disableSearchBtn,expression:"disableSearchBtn"}],staticClass:"input-date",attrs:{depressed:"",color:"grey lighten-3",ripple:!1,block:"",height:"100% !important"}},[s("b",{staticClass:"grey--text darken-5"},[t._v("조회")])]),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:!t.disableSearchBtn,expression:"!disableSearchBtn"}],staticClass:"input-date",attrs:{depressed:"",color:"success",ripple:!1,block:"",height:"100% !important"},on:{click:t.getData,touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("조회")])])],1):s("v-col",{attrs:{cols:"4"}},[s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.disableSearchBtn,expression:"disableSearchBtn"}],staticClass:"input-date",attrs:{depressed:"",color:"grey lighten-3",ripple:!1}},[s("b",{staticClass:"grey--text darken-5"},[t._v("조회")])]),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:!t.disableSearchBtn,expression:"!disableSearchBtn"}],staticClass:"input-date",attrs:{depressed:"",color:"success",ripple:!1},on:{click:t.getData,touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("조회")])])],1)],1)],1)]),s("tr",[s("td",[s("b",[t._v("종합 점수")])]),s("td",{key:t.report_key,domProps:{textContent:t._s((t.result.avg?t.result.avg:0)+"점")}})]),s("tr",[s("td",[s("b",[t._v("학습 횟수")])]),s("td",{key:t.report_key,domProps:{textContent:t._s((t.result.cnt?t.result.cnt:0)+"회")}})])])]},proxy:!0}])})],1),t.is_mobile?s("v-col",{staticClass:"pl-1 py-0 pcol height-100 pr-2p",staticStyle:{height:"32.4vh !important"},attrs:{cols:"6",sm:"6"}},[s("div",{staticClass:"radar-wrapper bord radi height-100 pa-1",attrs:{id:"diagram_chart"}},[s("v-chart",{attrs:{options:t.radar,initOptions:t.radar,autoresize:!0}})],1)]):s("v-col",{staticClass:"pl-2 pr-8 py-0 pcol height-100",staticStyle:{height:"100%"},attrs:{cols:"6",sm:"6"}},[s("div",{staticClass:"radar-wrapper bord radi height-100",attrs:{id:"diagram_chart"}},[s("v-chart",{attrs:{options:t.radar,initOptions:t.radar,autoresize:!0}})],1)])],1)],1),s("section",{staticClass:"width-100",style:t.is_mobile?"margin-top: 1vh; margin-bottom: 1vh; height: 22vh;":"margin: 1% 0; height: 12.43%;",attrs:{id:"period_report_circle_section"}},[s("div",{staticClass:"pt-0 pb-0 tmp height-100",class:t.is_mobile?"px-2per":"px-8"},[s("v-row",{key:t.circle_row,staticClass:"width-100 height-100 ma-auto bord radi",class:t.is_mobile?"py-2":"py-3",staticStyle:{"padding-left":"1%","padding-right":"1%:"},attrs:{id:"period-circle-row"}},[s("div",{staticClass:"float-left d-flex flex-column justify-center align-center",staticStyle:{width:"20%",height:"100%",gap:"5%"},attrs:{id:"period-circle-col"}},[t.circle_size>0&&t.circle_width>0?s("v-progress-circular",{style:"font-size:"+t.circle_font+"px; font-weight:500; gap: 5%;",attrs:{rotate:"0",size:t.circle_size,value:t.result.avg,width:t.circle_width,color:"success"}},[s("span",{staticClass:"black--text text-center"},[t._v("\n "+t._s(t.result.avg)+"\n ")]),s("span",{staticClass:"grey--text"},[t._v("점")])]):t._e(),s("div",{staticClass:"text-center",class:{"pt-1":t.is_mobile},style:"font-size: "+t.font_rem+"rem;"},[t._v("\n 종합 점수\n ")])],1),s("div",{staticClass:"float-left d-flex flex-column justify-center align-center",staticStyle:{width:"20%",height:"100%",gap:"5%"}},[t.circle_size>0&&t.circle_width>0?s("v-progress-circular",{style:"font-size:"+t.circle_font+"px; font-weight:500;",attrs:{rotate:"0",size:t.circle_size,value:t.result.sentence_cnt,width:t.circle_width,color:"#97f1b8"}},[s("span",{staticClass:"black--text text-center"},[t._v("\n "+t._s(t.result.sentence_cnt)+"\n ")]),s("span",{staticClass:"grey--text"},[t._v("개")])]):t._e(),s("div",{staticClass:"text-center",class:{"pt-1":t.is_mobile},style:"font-size: "+t.font_rem+"rem;"},[t._v("\n 학습 문항\n ")])],1),s("div",{staticClass:"float-left d-flex flex-column justify-center align-center",staticStyle:{width:"20%",height:"100%",gap:"5%"}},[t.circle_size>0&&t.circle_width>0?s("v-progress-circular",{style:"font-size:"+t.circle_font+"px; font-weight:500;",attrs:{rotate:"0",size:t.circle_size,value:t.result.wrong_sen_cnt,width:t.circle_width,color:"#7cece2"}},[s("span",{staticClass:"black--text text-center"},[t._v("\n "+t._s(t.result.wrong_sen_cnt)+"\n ")]),s("span",{staticClass:"grey--text"},[t._v("개")])]):t._e(),s("div",{staticClass:"text-center",class:{"pt-1":t.is_mobile},style:"font-size: "+t.font_rem+"rem;"},[t._v("\n 오답 문항\n ")])],1),s("div",{staticClass:"float-left d-flex flex-column justify-center align-center",staticStyle:{width:"20%",height:"100%",gap:"5%"}},[t.circle_size>0&&t.circle_width>0?s("v-progress-circular",{style:"font-size:"+t.circle_font+"px; font-weight:500;",attrs:{rotate:"0",size:t.circle_size,value:t.result.wrong_rate,width:t.circle_width,color:"#80cbec"}},[s("span",{staticClass:"black--text text-center"},[t._v("\n "+t._s(t.result.wrong_rate)+"\n ")]),s("span",{staticClass:"grey--text"},[t._v("%")])]):t._e(),s("div",{staticClass:"text-center",class:{"pt-1":t.is_mobile},style:"font-size: "+t.font_rem+"rem;"},[t._v("\n 오답률\n ")])],1),s("div",{staticClass:"float-left d-flex flex-column justify-center align-center",staticStyle:{width:"20%",height:"100%",gap:"5%"}},[t.circle_size>0&&t.circle_width>0?s("v-progress-circular",{style:"font-size:"+t.circle_font+"px; font-weight:500;",attrs:{rotate:"0",size:t.circle_size,value:t.result.tot_studytime,width:t.circle_width,color:"#95bbef"}},[s("span",{staticClass:"black--text text-center"},[t._v("\n "+t._s(t.result.tot_studytime)+"\n ")]),s("span",{staticClass:"grey--text"},[t._v("분")])]):t._e(),s("div",{staticClass:"text-center",class:{"pt-1":t.is_mobile},style:"font-size: "+t.font_rem+"rem;"},[t._v("\n 학습 시간\n ")])],1),s("div",{staticStyle:{clear:"both"}})])],1)]),s("section",{staticClass:"width-100",style:t.is_mobile?"margin-bottom: 1vh; height: 38vh;":"height: 20.34%; margin-bottom: 1%;",attrs:{id:"period_report_spark_section"}},[s("v-row",{staticClass:"width-100 height-100 ma-auto",class:t.is_mobile?"px-2per":"px-8"},[s("div",{staticClass:"width-100 height-100 bord radi",class:[t.is_mobile?"px-3":"",t.spark_fail?"pos-rel":""]},[t.spark_fail?s("div",{staticClass:"width-100 text-center grey--text pos-rel",staticStyle:{top:"50%",transform:"translate(0, -50%)"}},[t._v("\n 학습된 내역이 없습니다.\n ")]):s("v-chart",{key:t.sparkkey,staticStyle:{width:"100%",height:"100%"},attrs:{options:t.spark,initOptions:t.spark,autoresize:!0}}),t.spark_fail?t._e():s("div",{staticClass:"pos-rel",class:t.is_mobile?"":"spark_padding",staticStyle:{color:"grey",top:"-14.1%","padding-left":"calc(5% - 23px)","padding-right":"calc(3% - 18px)","font-size":"0.875rem"},attrs:{id:"spark_sub_text"}},[s("span",[t._v("(점)")]),s("span",{staticStyle:{float:"right"}},[t._v("(회)")])])],1)])],1),s("section",{staticClass:"width-100",class:t.is_mobile?"px-2per":"px-8",style:t.is_mobile?"margin-bottom: 1.5vh; padding-bottom: 1vh;":"height: 44.07%; margin-bottom: 1.5% !important;",attrs:{id:"period_report_error_section"}},[s("v-row",{staticClass:"width-100 height-100 ma-auto mainerrorrow mx-0 pb-0 border-ede thin-a br-4"},[s("v-col",{staticClass:"pa-0 px-0",staticStyle:{background:"#f7f8f9"},style:t.is_mobile?"height: 9vh;":"height: 9.09%;",attrs:{cols:"12"}},[s("div",{staticClass:"px-2 pos-rel t-bg-grey height-100 d-flex align-center justify-start"},[s("b",{staticClass:"pr-2",style:"font-size: "+t.font_rem+"rem;"},[t._v("주요 오답 문항")]),s("v-btn",{staticClass:"q-i-btn",attrs:{icon:"",small:"",fab:"",text:"",color:"success"},on:{click:t.toggleTip,touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)}},[t._v(t._s(t.mdi_commet_question_outline))])],1),s("span",{directives:[{name:"show",rawName:"v-show",value:t.show_tip,expression:"show_tip"}],staticClass:"grey--text ml-2",style:"font-size: "+t.font_rem+"rem;"},[t._v("\n 최근 오답 문항 10개가 표시됩니다.\n ")])],1)]),t.result.wrong_sentences&&t.result.wrong_sentences.length>0?s("v-col",{staticClass:"py-0 px-0",staticStyle:{height:"90.91%"},attrs:{cols:"12"}},t._l(t.result.wrong_sentences,(function(e,i){return s("div",{key:"analysis-div-"+i,staticClass:"px-2 py-2 border-ede thin-b d-flex align-center justify-start",staticStyle:{height:"10%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden","overflow-y":"hidden","font-size":"0.9rem"},style:[i!=t.result.wrong_sentences.length?"border-bottom: thin solid #edeeef;":"","font-size: "+t.font_rem+"rem;"]},[s("div",{ref:"w_sent_"+i,refInFor:!0,staticClass:"float-left pos-rel",staticStyle:{width:"50%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden","overflow-y":"hidden"},on:{mouseover:function(e){return t.setPointer("w_sent_"+i)},click:function(e){return t.showDetail(i)}}},[s("b",{staticClass:"text-usn",style:"font-size: "+t.font_rem+"rem;"},[t._v(t._s(e.sen))])]),s("div",{ref:"w_mean_"+i,refInFor:!0,staticClass:"float-left pos-rel",staticStyle:{width:"50%","text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden"},on:{mouseover:function(e){return t.setPointer("w_mean_"+i)},click:function(e){return t.showDetail(i)}}},[s("span",{staticClass:"grey--text text-usn",style:"font-size: "+t.font_rem+"rem;"},[t._v(t._s(e.mean))])]),s("div",{staticStyle:{clear:"both"}})])})),0):s("v-col",{staticClass:"py-0 px-0",style:t.is_mobile?"height: 9vh;":"height: 9.09%;",attrs:{cols:"12"}},[s("div",{staticClass:"px-2 py-2 text-center grey--text",staticStyle:{"text-overflow":"ellipsis","white-space":"nowrap","overflow-x":"hidden","font-size":"0.9rem"}},[t._v("\n 오답 문항이 없습니다.\n ")])])],1)],1)])])])])])]),s("v-dialog",{attrs:{"max-width":t.dialogWidth,transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog=!1}},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[s("v-card",[s("v-card-text",{staticClass:"py-4 text-center black--text title"},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("h3",{style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_sentences)}}),s("div",{staticClass:"border-ede thin-t my-2"}),s("h3",{staticClass:"grey--text",style:"font-size:"+t.dialogFontSize,domProps:{textContent:t._s(t.detail_mean)}})])],1)],1)],1)],1)],1)},J_=[],X_=s("9ca8"),Q_=(s("8deb"),s("ef97"),{name:"report-analysis-learning",components:{"v-chart":X_["a"]},data(){return{startdate_modal:!1,enddate_modal:!1,startdate:"",enddate:"",prev_startdate:"",prev_enddate:"",result:{},radar:{radar:{name:{textStyle:{color:"#000",borderRadius:3,padding:[1,1],fontFamily:"",fontSize:12}},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)"]}},axisLabel:{margin:200}},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}]},circle_row:0,circle_size:0,circle_width:0,type_class:"",circle_font:0,sparkkey:0,sparkdata:[],spark:{xAxis:{data:"",axisLabel:{show:!0,fontFamily:"Apple SD Gothic Neo, sans-serif",color:"grey",fontSize:10},axisLine:{show:!1},axisTick:{lineStyle:{width:0}}},yAxis:{axisLabel:{show:!0,fontFamily:"Apple SD Gothic Neo, sans-serif",color:"grey",fontSize:10},axisLine:{show:!1},axisTick:{lineStyle:{width:0}},splitNumber:5,splitLine:{show:!0},max:100,min:0},grid:Object.freeze({left:"5%",top:40,right:"4%",bottom:40}),series:{type:"line",showSymbol:!1,data:"",animation:!1,smooth:!0,lineStyle:{width:3,color:"#ff6c92"}}},spark_fail:!1,show_tip:!1,dialog:!1,detail_sentences:"",detail_mean:"",period_last_scale:!1,period_last_bp:"",period_full_screen:!1,period_smaller:!1,font_rem:1,is_mobile:!1,mdi_commet_question_outline:Lt["E"],mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"],mdi_arrow_expand_all:Lt["e"],mdi_arrow_collapse_all:Lt["c"],report_key:0}},computed:{disableSearchBtn:function(){return this.prev_startdate==this.startdate&&this.prev_enddate==this.enddate},dialogWidth:function(){let t="";switch(this.$vuetify.breakpoint.name){case"xs":t="220px";break;case"sm":t="400px";break;case"md":t="650px";break;case"lg":t="950px";break;case"xl":t="1300px";break}return t},dialogFontSize:function(){let t="";switch(this.$vuetify.breakpoint.name){case"xs":t="1rem";break;case"sm":t="1rem";break;case"md":t="1.1rem";break;case"lg":t="1.2rem";break;case"xl":t="1.3rem";break}return t}},methods:{titleDateForm:function(t){let e=t.split("-");return`${e[0]}년 ${e[1]}월 ${e[2]}일`},startdateClick:function(t){this.$refs["dialogstartdate"].save(t)},enddateClick:function(t){this.$refs["dialogenddate"].save(t)},getData:function(){let t=this.$store.getters.getCIdForRecord,e=`${g["w"]}/result/${t}/getindividual?uid=${this.$store.state.uid}&sd=${this.startdate}&ed=${this.enddate}`;this.radar.series[0].data[0].value.splice(0),this.sparkdata=[];let s=new Promise((t,s)=>{this.$axios.get(e).then(e=>{if(200==e.status)if(this.report_key++,this.prev_startdate=this.startdate,this.prev_enddate=this.enddate,e.data.score.cnt>0){let s=e.data;if(s.module){let t=["V","EC","speaking","RC"];for(let e=0;e<4;e++)this.radar.series[0].data[0].value.push(s.module[t[e]])}if(s.history.length>0){this.spark_fail=!1,this.result["history"]=s.histroy;for(let[t,e]of Object.entries(s.history))this.sparkdata[t]=new Array(Number(t)+1,Number(e))}s.score&&(this.result["avg"]=s.score.totavg?Math.round(10*s.score.totavg)/10:0,this.result["cnt"]=s.score.cnt?s.score.cnt:0,this.result["sentence_cnt"]=s.score.sum_question_cnt?Number(s.score.sum_question_cnt):0,this.result["wrong_rate"]=s.score.error_rate?Math.round(s.score.error_rate):0,this.result["wrong_sen_cnt"]=s.score.sum_wrong_cnt?Number(s.score.sum_wrong_cnt):0,this.result["tot_studytime"]=s.score.sum_studytime?Math.floor(s.score.sum_studytime):0,this.result["tot_question_cnt"]=s.score.sum_question_cnt?Number(s.score.sum_question_cnt):0,this.result["tot_wrong_cnt"]=s.score.sum_wrong_cnt?Number(s.score.sum_wrong_cnt):0,this.result["tot_avg"]=s.score.sumavg?Math.round(10*s.score.sumavg)/10:0),s.wrong_sen_arr&&(this.result["wrong_sentences"]=s.wrong_sen_arr),t(!0)}else this.result["avg"]=0,this.result["cnt"]=0,this.result["sentence_cnt"]=0,this.result["wrong_rate"]=0,this.result["wrong_sen_cnt"]=0,this.result["tot_studytime"]=0,this.result["tot_question_cnt"]=0,this.result["tot_wrong_cnt"]=0,this.result["tot_avg"]=0,this.result["wrong_sentences"]=[],this.result["history"]={},this.radar.series[0].data[0].value=new Array(0,0,0,0),t(!1);else s()}).catch(t=>{window.console.error(t),s(t)})});s.then(t=>{t?(this.spark.xAxis.data=this.sparkdata.map((function(t){return t[0]})),this.spark.series.data=this.sparkdata.map((function(t){return t[1]})),this.sparkkey+=1,this.circle_row+=1):this.spark_fail=!0}).catch(t=>{window.console.error(t)})},toggleTip:function(){this.show_tip=!this.show_tip},showDetail:function(t){let e="w_sent_"+t,s="w_mean_"+t,i=this.$refs[e][0],o=this.$refs[s][0],a=i.childNodes[0],n=o.childNodes[0];(a.offsetWidth>i.offsetWidth||n.offsetWidth>o.offsetWidth)&&(this.detail_sentences=a.textContent,this.detail_mean=n.textContent,this.dialog=!0)},setPointer:function(t){let e=this.$refs[t][0],s=e.childNodes[0];s.offsetWidth>e.offsetWidth?e.classList.contains("cursor-pointer")||e.classList.add("cursor-pointer"):e.classList.contains("cursor-pointer")&&e.classList.remove("cursor-pointer")},setPeriodCircleSize:function(){let t=.7*document.getElementById("period_report_circle_section").offsetHeight,e=.9*document.getElementById("period-circle-col").offsetWidth,s=e>t?t:e;isNaN(s)||(this.circle_size=s,this.circle_width=Math.round(s/9),this.circle_font=Math.round(s/6));let i=document.getElementById("period_a4"),o=document.getElementById("a4_parent"),a=o.getBoundingClientRect(),n=i.getBoundingClientRect(),r=793.688;if(1.5*r>a.width&&r{let t=document.getElementById("period_report_spark_section").getElementsByTagName("canvas"),e=t[0].getContext("2d");var s=e.createLinearGradient(500,0,100,0);s.addColorStop(0,"#80b6f4"),s.addColorStop(1,"#f49080"),this.setPeriodCircleSize(),window.addEventListener("resize",this.setPeriodCircleSize),this.loading_dialog_value=!1})},created(){let t=new Date,e=t.getFullYear(),s=t.getMonth();this.startdate=new Date(e,0,1).yyyymmdd("-"),this.enddate=new Date(e,s+1,0).yyyymmdd("-"),this.prev_startdate=new Date(e,0,1).yyyymmdd("-"),this.prev_enddate=new Date(e,s+1,0).yyyymmdd("-"),this.getData(),this.$store.state.is_mobile?(this.is_mobile=!0,this.radar.radar.name.textStyle.padding=-4,this.radar.radar.name.textStyle.fontSize=Number(this.$store.state.screen_width.fontRemToPx(.8).toFixed(2)),this.spark.xAxis.axisLabel.fontSize=Number(this.$store.state.screen_width.fontRemToPx(.8).toFixed(2)),this.spark.yAxis.axisLabel.fontSize=Number(this.$store.state.screen_width.fontRemToPx(.8).toFixed(2))):(this.radar.radar.name.textStyle.fontSize=Number(this.$store.state.screen_width.fontRemToPx(1.1).toFixed(2)),this.spark.xAxis.axisLabel.fontSize=Number(this.$store.state.screen_width.fontRemToPx(1).toFixed(2)),this.spark.yAxis.axisLabel.fontSize=Number(this.$store.state.screen_width.fontRemToPx(1).toFixed(2)))},beforeDestroy(){window.removeEventListener("resize",this.setPeriodCircleSize)}}),tm=Q_,em=(s("b92f"),Object(p["a"])(tm,Y_,J_,!1,null,null,null)),sm=em.exports;y()(em,{VBtn:ot["a"],VCard:at["a"],VCardText:nt["b"],VCol:rt["a"],VDatePicker:Ii["a"],VDialog:ct["a"],VIcon:jt["a"],VProgressCircular:Vs["a"],VRow:ht["a"],VSimpleTable:gi["a"],VSpacer:Di["a"]});var im=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},om=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-analysis-exam"}},[s("div",{staticClass:"shown-header-div"},[s("div",{staticClass:"width-100 grey--text"},[t._v("오픈 준비중입니다.")])])])}],am={name:"report-analysis-exam",data(){return{}}},nm=am,rm=(s("2aa4"),Object(p["a"])(nm,im,om,!1,null,null,null)),lm=rm.exports,cm=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-sheet",{staticClass:"contents-sheet",attrs:{id:"leaderboard-board",elevation:"0"}},[i("div",{staticClass:"head-field pa-0 d-flex align-center min-h-40px"},[i("v-row",{attrs:{dense:"","no-gutters":""}},[i("v-col",{attrs:{lg:"2",md:"2",sm:"3",cols:"3"}},[t.one_class?i("div",{staticClass:"pr-3 one-class"},[i("v-chip",{staticClass:"ma-1 ml-0 min-w-100 width-100 justify-center fw-600",domProps:{textContent:t._s(t.sel_classname)}})],1):i("div",{staticClass:"select-div"},[i("v-select",{attrs:{items:t.class_items,value:t.sel_class,chips:"",flat:"",dense:"",solo:"","hide-details":""},on:{change:t.selectedGet}})],1)]),i("v-col",{attrs:{lg:"6",md:"6",sm:"7",cols:"7","offset-lg":"4","offset-md":"4","offset-sm":"2",offset:"2"}},[i("v-row",{staticStyle:{"justify-content":"flex-end"},attrs:{dense:"","no-gutters":""}},[i("v-col",{staticClass:"pr-1 pos-rel",attrs:{cols:"3"}},[i("v-dialog",{ref:"dialogsearchdate",attrs:{"return-value":t.searchdate,transition:!1,width:"290px"},on:{"update:returnValue":function(e){t.searchdate=e},"update:return-value":function(e){t.searchdate=e}},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on;return[i("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.searchdate,expression:"searchdate"}],staticClass:"width-100 bord input-date my-1 height-32 text-center",attrs:{id:"searchdate",type:"text",readonly:"",name:"searchdate"},domProps:{value:t.searchdate},on:{input:function(e){e.target.composing||(t.searchdate=e.target.value)}}},s))]}}]),model:{value:t.searchdate_modal,callback:function(e){t.searchdate_modal=e},expression:"searchdate_modal"}},[i("v-date-picker",{attrs:{scrollable:"",type:"month","event-color":"success","header-color":"success","next-icon":t.mdi_chevron_right,"prev-icon":t.mdi_chevron_left,"title-date-format":t.titleDateForm,locale:"ko-kr","allowed-dates":t.allowedDates},on:{"click:month":t.searchdateClick},model:{value:t.searchdate,callback:function(e){t.searchdate=e},expression:"searchdate"}},[i("v-spacer"),i("v-btn",{attrs:{large:"",block:"",text:"",color:"black",ripple:!1},on:{click:function(e){t.searchdate_modal=!1}}},[i("b",[t._v("취소")])])],1)],1),i("label",{staticClass:"input-triangle-ico mr-1 mb-1",attrs:{for:"searchdate"}})],1),i("v-col",{staticClass:"pl-1 col-md-3 col-auto"},[i("v-btn",{staticClass:"height-32 date-btn",attrs:{depressed:"",block:"",color:t.setColor(-2),ripple:!1},on:{click:function(e){return t.setDate(-2)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("b",{staticClass:"white--text"},[t._v("두달 전")])])],1),i("v-col",{staticClass:"pl-1 col-md-3 col-auto"},[i("v-btn",{staticClass:"height-32 date-btn",attrs:{depressed:"",block:"",color:t.setColor(-1),ripple:!1},on:{click:function(e){return t.setDate(-1)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("b",{staticClass:"white--text"},[t._v("지난달")])])],1),i("v-col",{staticClass:"pl-1 col-md-3 col-auto"},[i("v-btn",{staticClass:"height-32 date-btn",attrs:{depressed:"",block:"",color:t.setColor(0),ripple:!1},on:{click:function(e){return t.setDate(0)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("b",{staticClass:"white--text"},[t._v("이번달")])])],1)],1)],1)],1)],1),i("div",{staticClass:"shown-header-div width-100"},[i("table",{staticClass:"shown-header width-100"},[i("colgroup",[i("col",{attrs:{width:t.headers[0].width}}),i("col",{attrs:{width:t.headers[1].width}}),i("col",{attrs:{width:t.headers[2].width}}),i("col",{attrs:{width:t.headers[3].width}}),i("col",{attrs:{width:t.headers[4].width}})]),i("thead",[i("tr",{attrs:{id:"board-list-head-tr"}},[i("th",{staticClass:"text-left sort-col",class:t.arrowClass("rank"),on:{click:function(e){return t.sortingCol("rank",t.sort_direction)}}},[i("div",[t._v("순위 ")]),i("div",{staticClass:"margin-top-3rem"},[i("div",{staticClass:"arrow-up"}),i("div",{staticClass:"arrow-down"})])]),i("th",{staticClass:"text-left"},[i("span",[t._v("클래스")])]),i("th",{staticClass:"text-left"},[i("span",[t._v("이름")])]),i("th",{staticClass:"text-left sort-col",class:t.arrowClass("daycnt"),on:{click:function(e){return t.sortingCol("daycnt",t.sort_direction)}}},[i("span",[t._v("학습일 ")]),i("div",{staticClass:"margin-top-3rem"},[i("div",{staticClass:"arrow-up"}),i("div",{staticClass:"arrow-down"})])]),i("th",{staticClass:"text-left"},[i("span",[t._v("종합점수")])])])])])]),i("infinite-scroller",{key:"schedule-list-infiscroll-10",staticClass:"infi-cls",attrs:{loadmore:t.loadMore,cat:12,nomore:t.nomore,loading:t.loading}},[i("v-data-table",{attrs:{id:"board-list",headers:t.headers,items:t.items,"mobile-breakpoint":10,"show-expand":!1,"item-key":t.item_key,"no-data-text":"랭킹정보가 없습니다.","hide-default-footer":!0,"hide-default-header":!0,"disable-pagination":!0,"fixed-header":!0,"server-items-length":t.item_length,page:t.page,"items-per-page":t.items_per_page,"sort-by":void 0,"sort-desc":void 0,dense:""},on:{"current-items":t.currentItems},scopedSlots:t._u([{key:"item.rank",fn:function(e){var o=e.item;return[1==o.rank?i("v-img",{attrs:{"lazy-src":s("40fd"),src:s("40fd"),width:"6vh"}}):2==o.rank?i("v-img",{attrs:{"lazy-src":s("4f07"),src:s("4f07"),width:"6vh"}}):3==o.rank?i("v-img",{attrs:{"lazy-src":s("388f"),src:s("388f"),width:"6vh"}}):i("div",[i("b",{staticStyle:{"padding-left":"10%"},domProps:{textContent:t._s(o.rank)}})])]}},{key:"item.classname",fn:function(e){var s=e.item;return[i("span",{staticClass:"ellipsis",domProps:{textContent:t._s(s.classname)}})]}},{key:"item.name",fn:function(e){var s=e.item;return[i("span",{staticClass:"ellipsis",domProps:{textContent:t._s(s.name)}})]}},{key:"item.daycnt",fn:function(e){var s=e.item;return[i("span",{domProps:{textContent:t._s(s.daycnt)}})]}},{key:"item.tot_score",fn:function(e){var s=e.item;return[i("span",{domProps:{textContent:t._s(t.scoreFormat(s.tot_score))}})]}}],null,!0)},[i("colgroup",[i("col",{attrs:{width:t.headers[0].width}}),i("col",{attrs:{width:t.headers[1].width}}),i("col",{attrs:{width:t.headers[2].width}}),i("col",{attrs:{width:t.headers[3].width}}),i("col",{attrs:{width:t.headers[4].width}})])])],1)],1)},dm=[],hm={name:"learderboard-board",components:{InfiniteScroller:E_},data(){return{one_class:!0,sel_class:"",sel_classname:"",class_items:[],type:"tmonth",searchdate_modal:!1,searchdate:(new Date).yyyymm("-"),nomore:!1,loading:!1,loading_settimeout:null,headers:Object.freeze([{text:"rank",value:"rank",align:"left",sortable:!1,width:"19%"},{text:"classname",value:"classname",align:"left",sortable:!1,width:"19%"},{text:"name",value:"name",align:"left",sortable:!1,width:"20%"},{text:"daycnt",value:"daycnt",align:"left",sortable:!1,width:"19%"},{text:"tot_score",value:"tot_score",align:"left",sortable:!1,width:"22%"}]),item_key:"rank",items:[],item_length:0,page:1,items_per_page:99999,sort_order:"rank",sort_direction:"desc",per_list:10,mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"]}},computed:{setColor:function(){let t=this;return e=>{let s=new Date,i="grey lighten-2";return e<0&&(s.getMonth()+e<0?s.setFullYear(s.getFullYear()-1,s.getMonth()+e,1):s.setMonth(s.getMonth()+e,1)),new Date(t.searchdate).getMonth()==s.getMonth()&&(i="success"),i}},arrowClass:function(){return t=>{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}}},methods:{currentItems:function(t){this.$nextTick(()=>{let t=document.getElementById("board-list").getElementsByTagName("colgroup")[0].children;for(let e=0,s=this.headers.length;e+i.yyyymm()&&(o=!0),o},loadMore:function(){this.loading=!0,this.getBoard()},sortingCol:function(t,e){this.sort_order!==t?(this.sort_order=t,this.sort_direction="desc"):"desc"==this.sort_direction?this.sort_direction="asc":this.sort_direction="desc",this.initList(),this.getBoard()},selectedGet:function(){this.initList(),this.getBoard()},getBoard:function(){let t=this.item_length,e=this.items_per_page,s=(this.sort_order,this.sort_direction,`${g["w"]}/result/${this.$store.state.cid}/getboard/month/${t}/${e}?type=${this.type}`);"select_ym"==this.type&&(s=s+"&sym="+this.searchdate),""!==this.sel_class&&(s=s+"&class="+this.sel_class),this.loading_settimeout=setTimeout(()=>{this.loading=!1,this.loading_settimeout=null},100),this.$axios.get(s).then(t=>{if(200==t.status){let i=t.data.rows.length;this.item_length=this.item_length+i;let o=0;for(var[e,s]of Object.entries(t.data.rows)){let t={rank:s.rank,classname:s.classname?s.classname:"",name:s.name,daycnt:s.daycnt,tot_score:s.tot_score};this.items.push(t),o+=1}i{this.loading=!1,window.console.error(t)})},scoreFormat:function(t){return isNaN(t)?0:Number(t).toFixed(2)}},created(){if(this.$store.state.class){let t=this.$store.state.class;t.length>1&&(this.one_class=!1);for(let e=0;e{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}}},methods:{currentItems:function(t){this.$nextTick(()=>{let t=document.getElementById("record-list").getElementsByTagName("tr")[0].getElementsByTagName("td");if(this.headers.length==t.length){let e=document.getElementById("record-list-head-tr").getElementsByTagName("th");for(let[s,i]of Object.entries(t))e[s].style=`width:${i.clientWidth}px;`}})},loadMore:function(){this.loading=!0,this.getBoard()},sortingCol:function(t,e){this.sort_order!==t?(this.sort_order=t,this.sort_direction="desc"):"desc"==this.sort_direction?this.sort_direction="asc":this.sort_direction="desc",this.nomore=!1,this.loading=!0,this.items=[],this.item_length=0,this.getBoard()},getBoard:function(){let t=`${g["w"]}/result/${this.$store.state.cid}/user/${this.$store.state.uid}/getboarduser?dir=${this.sort_direction}&leng=${this.item_length}&per=${this.per_list}`,e=this.$store.state.uname,s=this.$store.state.class.map(t=>t.name).join(",");this.$axios.get(t).then(t=>{if(200==t.status){let i=t.data.length;this.item_length=this.item_length+i,this.award_cnt=i;for(let o=0;o{this.loading=!1,window.console.error(t)})}},created(){},beforeDestroy(){this.loading_settimeout&&clearTimeout(this.loading_settimeout)}},fm=vm,wm=Object(p["a"])(fm,gm,bm,!1,null,null,null),ym=wm.exports;y()(wm,{VChip:Me["a"],VCol:rt["a"],VDataTable:Gh["a"],VImg:qs["a"],VRow:ht["a"],VSheet:Se["a"]});var xm=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{staticClass:"w-100 ml-0 mr-1",attrs:{id:"settings-learningoptions"}},[s("v-col",{staticClass:"pa-0",staticStyle:{width:"100%","min-height":"78vh"},attrs:{cols:"12",sm:"12",md:"12"}},[s("v-sheet",{staticClass:"contents-sheet px-0 white pos-rel",attrs:{id:"right",elevation:"0"}},[s("v-container",[s("v-row",[s("div",{staticClass:"title-text"},[t._v("교재 순서")]),s("v-col",{staticClass:"text-left label-flex align-center fw-700 text-color-grey",attrs:{cols:"6"}},[s("div",[t._v("교재 콘텐츠 학습 순서를 선택하세요.")])])],1),s("v-row",{staticClass:"mb-7"},[s("v-col",{staticClass:"pr-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:0==t.getValue("is_random"),color:0==t.getValue("is_random")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_random",0)},[t._v("순서대로 학습")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:1==t.getValue("is_random"),color:1==t.getValue("is_random")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_random",1)},[t._v("랜덤 순서대로 학습")])])],1)],1),s("v-row",[s("div",{staticClass:"title-text"},[t._v("학습 단계")]),s("v-col",{staticClass:"text-left label-flex align-center fw-700 text-color-grey",attrs:{cols:"6"}},[s("div",[t._v("단계별 과정의 학습 여부를 선택하세요.")])])],1),s("v-row",{staticClass:"mb-7"},[s("v-col",{staticClass:"pr-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:0==t.getValue("is_skip"),color:0==t.getValue("is_skip")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_skip",0)},[t._v("학습단계 스킵 불가")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:1==t.getValue("is_skip"),color:1==t.getValue("is_skip")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_skip",1)},[t._v("학습단계 스킵 가능")])])],1)],1),s("v-row",[s("div",{staticClass:"title-text"},[t._v("채점 여부")]),s("v-col",{staticClass:"text-left label-flex align-center fw-700 text-color-grey",attrs:{cols:"6"}},[s("div",[t._v("단계별 학습 결과 채점 여부를 선택하세요.")])])],1),s("v-row",{staticClass:"mb-7"},[s("v-col",{staticClass:"pr-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:0==t.getValue("is_scoringnext"),color:0==t.getValue("is_scoringnext")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_scoringnext",0)},[t._v("실시간 채점")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:1==t.getValue("is_scoringnext"),color:1==t.getValue("is_scoringnext")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_scoringnext",1)},[t._v("학습 후 일괄 채점")])])],1)],1),s("v-row",[s("div",{staticClass:"title-text"},[t._v("힌트 여부")]),s("v-col",{staticClass:"text-left label-flex align-center fw-700 text-color-grey",attrs:{cols:"6"}},[s("div",[t._v("영작 단계 힌트 사용 여부를 선택하세요.")])])],1),s("v-row",{staticClass:"mb-7"},[s("v-col",{staticClass:"pr-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:1==t.getValue("is_usinghint"),color:1==t.getValue("is_usinghint")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_usinghint",1)},[t._v("힌트 사용")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:0==t.getValue("is_usinghint"),color:0==t.getValue("is_usinghint")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_usinghint",0)},[t._v("힌트 미사용")])])],1)],1),s("v-row",[s("div",{staticClass:"title-text"},[t._v("재학습")]),s("v-col",{staticClass:"text-left label-flex align-center fw-700 text-color-grey",attrs:{cols:"6"}},[s("div",[t._v("차시별 학습량을 제어할 수 있습니다.")])])],1),s("v-row",{staticClass:"mb-7"},[s("v-col",{staticClass:"pr-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:1==t.getValue("is_restudy"),color:1==t.getValue("is_restudy")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_restudy",1)},[t._v("차시당 최대 3회")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:0==t.getValue("is_restudy"),color:0==t.getValue("is_restudy")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_restudy",0)},[t._v("무제한")])])],1)],1),s("v-row",[s("div",{staticClass:"title-text"},[t._v("효과음")]),s("v-col",{staticClass:"text-left label-flex align-center fw-700 text-color-grey",attrs:{cols:"6"}},[s("div",[t._v("학습 효과음 사용 여부를 선택할 수 있습니다.")])])],1),s("v-row",{staticClass:"mb-7"},[s("v-col",{staticClass:"pr-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:1==t.sound_effect,color:1==t.sound_effect?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:function(e){return t.handleSoundEffect(1)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",{class:1==t.sound_effect?"success--text":"grey--text text--lighten-1"},[t._v("효과음 사용")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:0==t.sound_effect,color:0==t.sound_effect?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:function(e){return t.handleSoundEffect(0)},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",{class:0==t.sound_effect?"success--text":"grey--text text--lighten-1"},[t._v("효과음 사용안함")])])],1)],1),s("v-row",[s("div",{staticClass:"title-text"},[t._v("리스닝")]),s("v-col",{staticClass:"text-left label-flex align-center fw-700 text-color-grey",attrs:{cols:"6"}},[s("div",[t._v("리스닝 과정의 학습량을 제어할 수 있습니다.")])])],1),s("v-row",{staticClass:"mb-7"},[s("v-col",{staticClass:"pl-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:1==t.getValue("is_studentcontrol"),color:1==t.getValue("is_studentcontrol")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_studentcontrol",1)},[t._v("관리자 직접 설정")])])],1),s("v-col",{staticClass:"pr-1",attrs:{cols:"6"}},[s("v-btn",{attrs:{"x-large":"",rounded:"",block:"",outlined:0==t.getValue("is_studentcontrol"),color:0==t.getValue("is_studentcontrol")?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:t.setToast}},[s("b",{class:t.setClass("is_studentcontrol",0)},[t._v("학습자 제어 가능")])])],1)],1),s("v-row",[s("v-col",{attrs:{cols:"1"}}),s("v-col",{staticClass:"py-0",staticStyle:{"padding-left":"25px","padding-right":"30px"},attrs:{cols:"11"}},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"py-0",attrs:{cols:"6"}},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"text-right label-flex pt-1 flex-row-reverse align-center",attrs:{cols:"3"}},[s("label",{staticClass:"pr-2 grey--text",class:[this.is_studentcontrol?"text--lighten-1":"text--darken-1"],style:t.is_mobile?"margin-left: -20%; margin-top: -3px;":""},[t._v("\n 전체 반복\n ")])]),s("v-col",{staticClass:"pt-1",attrs:{cols:"3"}},[s("v-text-field",{staticClass:"text-center setting-input",attrs:{"hide-details":"",filled:"",type:"text",readonly:"",dense:"",flat:"",solo:"","prepend-icon":t.mdi_chevron_left,"append-outer-icon":t.mdi_chevron_right,disabled:!!this.is_studentcontrol},on:{"click:append-outer":function(e){return t.plusData("all_repeat")},"click:prepend":function(e){return t.minusData("all_repeat")}},model:{value:t.all_repeat,callback:function(e){t.all_repeat=e},expression:"all_repeat"}})],1),s("v-col",{staticClass:"pt-1",attrs:{cols:"3"}}),s("v-col",{staticClass:"text-right label-flex pt-1 flex-row-reverse align-center",attrs:{cols:"3"}},[s("label",{staticClass:"pr-2 grey--text",class:[this.is_studentcontrol?"text--lighten-1":"text--darken-1"],style:t.is_mobile?"margin-left: -20%; margin-top: -3px;":""},[t._v("\n 문항 반복\n ")])])],1)],1),s("v-col",{staticClass:"py-0",attrs:{cols:"6"}},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"pt-1",attrs:{cols:"3"}},[s("v-text-field",{staticClass:"text-center setting-input",attrs:{"hide-details":"",filled:"",type:"text",readonly:"",dense:"",flat:"",solo:"","prepend-icon":t.mdi_chevron_left,"append-outer-icon":t.mdi_chevron_right,disabled:!!this.is_studentcontrol},on:{"click:append-outer":function(e){return t.plusData("sen_repeat")},"click:prepend":function(e){return t.minusData("sen_repeat")}},model:{value:t.sen_repeat,callback:function(e){t.sen_repeat=e},expression:"sen_repeat"}})],1),s("v-col",{staticClass:"pt-1",attrs:{cols:"3"}}),s("v-col",{staticClass:"text-right label-flex pt-1 flex-row-reverse align-center",attrs:{cols:"3"}},[s("label",{staticClass:"pr-2 grey--text",class:[this.is_studentcontrol?"text--lighten-1":"text--darken-1"],style:t.is_mobile?"margin-left: -20%; margin-top: -3px;":""},[t._v("\n 듣기 속도\n ")])]),s("v-col",{staticClass:"pt-1",attrs:{cols:"3"}},[s("v-text-field",{staticClass:"text-center setting-input",attrs:{"hide-details":"",filled:"",type:"text",readonly:"",dense:"",flat:"",solo:"","prepend-icon":t.mdi_chevron_left,"append-outer-icon":t.mdi_chevron_right,disabled:!!this.is_studentcontrol},on:{"click:append-outer":function(e){return t.plusData("listening_speed")},"click:prepend":function(e){return t.minusData("listening_speed")}},model:{value:t.listening_speed,callback:function(e){t.listening_speed=e},expression:"listening_speed"}})],1)],1)],1)],1)],1)],1)],1),s("v-container",{staticClass:"pt-0"},[s("v-row",[s("v-col",{attrs:{cols:"5"}}),s("v-col",{attrs:{cols:"2"}},[s("v-btn",{attrs:{"x-large":"",block:"",color:t.update_color,elevation:"0",ripple:!1},on:{click:t.updateSettings,touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("수정")])])],1),s("v-col",{attrs:{cols:"5"}})],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog1=!1}},model:{value:t.dialog1,callback:function(e){t.dialog1=e},expression:"dialog1"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("b",[t._v("학습 설정이 완료된 상태입니다.")]),s("br"),s("b",[t._v("설정 가능한 항목이 없습니다.")])])],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.closeDialog2},model:{value:t.dialog2,callback:function(e){t.dialog2=e},expression:"dialog2"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("b",[t._v("학습 설정이 수정되었습니다.")])])],1)],1)],1)],1)],1)},km=[],Cm={name:"settings-learningoptions",data(){return{sound_effect:0,is_studentcontrol:!1,all_repeat:0,sen_repeat:0,listening_speed:0,changed:!1,update_color:"grey lighten-3 grey--text",dialog1:!1,dialog2:!1,is_mobile:!1,mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"]}},computed:{changeCheck:function(){let t=!1,e=this.$store.getters.getListeningSettings;return Number(e.all_repeat)!=this.all_repeat&&(t=!0),Number(e.sen_repeat)!=this.sen_repeat&&(t=!0),Number(e.listening_speed)!=this.listening_speed&&(t=!0),Number(this.$store.state.sound_effect)!=this.sound_effect&&(t=!0),t}},watch:{changeCheck:{deep:!0,handler:function(t){this.changed=t,window.settings_change_check=t,this.update_color=t?"success":"grey lighten-3 grey--text"}}},methods:{setToast:function(){this.$store.dispatch("showToast",{message:"해당 항목은 선생님만 설정 가능합니다.",duration:2e3})},getValue:function(t){return this.$store.state.settings[t]},setClass:function(t,e){let s="grey--text text--lighten-1";return this.$store.state.settings[t]===e&&(s="success--text"),s},setBtnClass:function(t,e){let s="";return"is_studentcontrol"==t&&1==e&&(s+=" success--text white v-btn--depressed v-btn--flat v-btn--outlined"),s},handleSoundEffect:function(t){this.sound_effect=t},chkCtl:function(){return this.is_studentcontrol},plusData:function(t){this.$store.dispatch("soundEffectPlay","click");let e=this[t]+1;"listening_speed"==t&&e>5&&(e=5),this[t]=e},minusData:function(t){this.$store.dispatch("soundEffectPlay","click");let e=this[t]-1;e<1&&(e=1),this[t]=e},updateSettings:function(){if(!this.changed)return this.dialog1=!0,this.settimeout=window.setTimeout(()=>{this.dialog1=!1},2e3),!1;let t=`${g["w"]}/user/${this.$store.state.cid}/${this.$store.state.uid}/setlisteningsettings`,e={all_repeat:this.all_repeat,sen_repeat:this.sen_repeat,listening_speed:this.listening_speed,sound_effect:this.sound_effect};this.$axios.post(t,e).then(t=>{200==t.status&&(this.$store.commit("setListeningSettings",e),this.$store.commit("setSoundEffect",this.sound_effect),this.dialog2=!0,this.settimeout=window.setTimeout(()=>{this.closeDialog2()},2e3))}).catch(t=>{window.console.error(t)})},closeDialog2:function(){this.dialog2=!1,this.$store.dispatch("soundEffectPlay","after_setting"),this.settimeout&&window.clearTimeout(this.settimeout)}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0),this.sound_effect=Number(this.$store.state.sound_effect),this.is_studentcontrol=Number(this.$store.state.settings.is_studentcontrol),this.all_repeat=Number(this.$store.state.listening_settings.all_repeat),this.sen_repeat=Number(this.$store.state.listening_settings.sen_repeat),this.listening_speed=Number(this.$store.state.listening_settings.listening_speed)},beforeDestroy(){this.settimeout&&window.clearTimeout(this.settimeout)}},$m=Cm,Sm=(s("1fb7"),Object(p["a"])($m,xm,km,!1,null,null,null)),Tm=Sm.exports;y()(Sm,{VBtn:ot["a"],VCard:at["a"],VCardText:nt["b"],VCol:rt["a"],VContainer:lt["a"],VDialog:ct["a"],VRow:ht["a"],VSheet:Se["a"],VTextField:ut["a"]});var Am=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"pocketnote-child"}},[s("div",{staticClass:"shown-header-div width-100"},[s("table",{staticClass:"shown-header border-ede thin-b width-100"},[s("thead",[s("tr",{attrs:{id:"pocketnote-list-head-tr"}},[s("th",{staticClass:"border-ede thin-l",staticStyle:{width:"38px","min-width":"39px","max-width":"39px"}},[s("v-simple-checkbox",{attrs:{value:t.select_all,"on-icon":t.mdi_checkbox_marked,"off-icon":t.mdi_checkbox_blank_outline,ripple:!1,color:"info"},on:{input:t.selectAll}})],1),s("th",{staticClass:"sort-col border-ede thin-l thin-r",class:t.arrowClass("sentence"),staticStyle:{width:"50%"},on:{click:function(e){return t.sortingCol("sentence",t.sort_direction)}}},[t._m(0)]),t._m(1)])])])]),s("infinite-scroller",{key:"schedule-list-infiscroll-10",staticClass:"infi-cls",attrs:{id:"pocketnote-list-wrapper",loadmore:t.loadMore,cat:13,nomore:t.nomore,loading:t.loading}},[s("v-data-table",{staticClass:"radius-unset",attrs:{id:"pocketnote-list",headers:t.headers,items:t.items,"show-select":"","mobile-breakpoint":10,"show-expand":!1,"item-key":t.item_key,"hide-default-footer":!0,"hide-default-header":!0,page:t.page,"items-per-page":t.items_per_page,"sort-by":void 0,"sort-desc":void 0,dense:"","no-data-text":"포켓노트에 저장된 문장이 없습니다.","no-results-text":"포켓노트에 저장된 문장이 없습니다."},scopedSlots:t._u([{key:"item.data-table-select",fn:function(e){var i=e.isSelected,o=e.select;return[s("div",{on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("v-simple-checkbox",{attrs:{value:i,"on-icon":t.mdi_checkbox_marked,"off-icon":t.mdi_checkbox_blank_outline,ripple:!1,color:"info"},on:{input:function(t){return o(t)}}})],1)]}},{key:"item.contents",fn:function(e){var i=e.item;return[s("div",{staticClass:"width-100"},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"border-ede thin-l content",attrs:{cols:"6"},domProps:{textContent:t._s(i.eng)}}),s("v-col",{staticClass:"border-ede thin-l content",attrs:{cols:"6"},domProps:{textContent:t._s(i.mean)}})],1)],1)]}}]),model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1),s("div",{staticClass:"pocket-control-div-wrap"},[s("div",{staticClass:"pocket-control-div border-ede thin-l thin-r bd-t-tick bg-white"},[s("table",{},[s("tbody",[s("tr",[s("td",{staticClass:"text-center",staticStyle:{width:"40px","min-width":"40px"}},[s("v-btn",{attrs:{text:"",icon:"","x-large":"",color:"deep-orange ma-auto",ripple:!1},on:{click:function(e){return t.showDialog("delete")},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("v-icon",{attrs:{size:t.$store.state.screen_width.fontRemToPx(2).toFixed(2)}},[t._v(t._s(t.mdi_trash_can_outline))])],1)],1),s("td",{staticClass:"middle-control px-4",staticStyle:{width:"100%"}},[s("div",{staticClass:"width-100"},[s("v-row",{staticClass:"height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"height-100",attrs:{cols:"9"}},[s("v-row",{staticClass:"height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"height-100",attrs:{cols:"3",sm:"3",md:"3",lg:"2"}},[s("v-btn",{attrs:{rounded:"",block:"",large:"",depressed:"",color:"success",ripple:!1},on:{click:function(e){return t.showDialog("flashcard")},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("Flash Card")]),s("v-icon",{attrs:{small:"",right:""}},[t._v(t._s(t.mdi_chevron_right))])],1)],1),s("v-col",{staticClass:"ml-2 height-100",attrs:{cols:"3",sm:"3",md:"3",lg:"2"}},[s("v-btn",{attrs:{rounded:"",block:"",large:"",depressed:"",color:"success",ripple:!1},on:{click:function(e){return t.showDialog("checkup")},touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("Check-Up")]),s("v-icon",{attrs:{small:"",right:""}},[t._v(t._s(t.mdi_chevron_right))])],1)],1)],1)],1),s("v-col",{staticClass:"height-100",attrs:{cols:"3"}},[s("div",{staticClass:"select-count-div d-flex justify-end"},[s("b",{staticClass:"select-count success--text"},[t._v("\n 선택 문항 수   \n "),s("span",{staticClass:"orange--text font-size-bigger",domProps:{textContent:t._s(t.selected&&t.selected.length>0?t.selected.length:0)}}),t._v("\n 개\n ")])])])],1)],1)])])])])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.sentenceCover,expression:"sentenceCover"}],staticClass:"cover-wrapper pos-rel width-100"},[t.is_mobile?s("v-window",{style:"top:"+t.cover_top+"px; left:"+t.cover_left+"px; width:"+t.cover_width+"px; height:"+t.cover_height+"px; display:"+t.cover_display+";",attrs:{id:"sentence-cover",touch:{left:function(){return t.coverSwipe("left")},right:function(){return t.coverSwipe("right")}}}},[s("v-row",{staticClass:"cover-row",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"cover-col-1 elevation-2",attrs:{cols:"11"}},[s("div",{staticClass:"finger bg-center bg-norepeat bg-contain width-100"}),s("div",{staticClass:"finger-caption width-100 text-center"},[s("h3",{staticStyle:{"font-weight":"800"}},[t._v("좌우 스크롤 하여 암기하세요.")])])]),s("v-col",{staticClass:"cover-col-2",attrs:{cols:"1"}},[s("v-btn",{staticClass:"close-btn",attrs:{text:"",block:"",color:"#d8ab74",ripple:!1},on:{click:t.closeCover}},[s("v-icon",{attrs:{small:"",top:""}},[t._v(t._s(t.mdi_close))]),s("div",{staticClass:"visibility-hidden",staticStyle:{height:"8vh"}})],1)],1)],1)],1):s("v-window",{style:"top:"+t.cover_top+"px; left:"+t.cover_left+"px; width:"+t.cover_width+"px; height:"+t.cover_height+"px; display:"+t.cover_display+";cursor: grab;",attrs:{id:"sentence-cover"}},[s("v-row",{staticClass:"cover-row",attrs:{dense:"","no-gutters":""},on:{mousedown:function(e){return t.setCoverMDown(e)},mouseup:function(e){return t.setCoverMUp(e)}}},[s("v-col",{staticClass:"cover-col-1 elevation-2 pos-rel",attrs:{cols:"11"}},[s("v-btn",{staticStyle:{top:"50%",transform:"translateY(-50%)"},attrs:{icon:"",fab:"",text:"",left:"",absolute:"","x-large":"",color:"#0de553"},on:{click:function(e){return t.coverSwipe("left")}}},[s("v-icon",[t._v(t._s(t.mdi_chevron_left))])],1),s("v-btn",{staticStyle:{top:"50%",transform:"translateY(-50%)"},attrs:{icon:"",fab:"",text:"",right:"",absolute:"","x-large":"",color:"#0de553"},on:{click:function(e){return t.coverSwipe("right")}}},[s("v-icon",[t._v(t._s(t.mdi_chevron_right))])],1),s("div",{staticClass:"finger bg-center bg-norepeat bg-contain width-100"}),s("div",{staticClass:"finger-caption width-100 text-center"},[s("h3",{staticStyle:{"font-weight":"800"}},[t._v("좌우 스크롤 하여 암기하세요.")])])],1),s("v-col",{staticClass:"cover-col-2",attrs:{cols:"1"}},[s("v-btn",{staticClass:"close-btn",attrs:{text:"",block:"",color:"#d8ab74",ripple:!1},on:{click:t.closeCover}},[s("v-icon",{attrs:{small:"",top:""}},[t._v(t._s(t.mdi_close))]),s("div",{staticClass:"visibility-hidden",staticStyle:{height:"8vh"}})],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog1=!1}},model:{value:t.dialog1,callback:function(e){t.dialog1=e},expression:"dialog1"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("선택된 문장이 없습니다.")])])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog1=!1}}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog2=!1}},model:{value:t.dialog2,callback:function(e){t.dialog2=e},expression:"dialog2"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("선택 항목을 완전히 삭제하시겠습니까?")])])]),s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("small",{staticClass:"grey--text"},[t._v("(삭제된 항목은 복구되지 않습니다.)")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog2=!1}}},[s("span",{staticClass:"title"},[t._v("취소")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.deleteMutiple}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog3=!1}},model:{value:t.dialog3,callback:function(e){t.dialog3=e},expression:"dialog3"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("Flash Card를 시작하시겠습니까?")])])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goFlashCard}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog3=!1}}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){t.dialog4=!1}},model:{value:t.dialog4,callback:function(e){t.dialog4=e},expression:"dialog4"}},[t.is_mobile?s("v-card",[s("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-8"]},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("Check-Up 학습은 PC에서만 이용 가능합니다.")])])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog4=!1}}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1):s("v-card",[s("v-card-text",{staticClass:"py-8 text-center black--text title"},[s("v-row",[s("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[s("h3",{staticClass:"title"},[s("b",[t._v("Check-Up을 시작하시겠습니까?")])])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goCheckup}},[s("span",{staticClass:"title"},[t._v("확인")])])],1),s("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[s("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(e){t.dialog4=!1}}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1)],1)},Im=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-center justify-center width-100"},[s("span",[t._v("영 어 ")]),s("div",{staticClass:"sort-col-div"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"border-ede thin-r",staticStyle:{width:"50%"}},[s("span",[t._v("해 석")])])}],Dm={name:"pocketnote-pocketnote",props:{sentenceCover:Boolean,closeCover:Function},components:{InfiniteScroller:E_},data(){return{nomore:!1,loading:!1,loading_settimeout:null,headers:Object.freeze([{text:"contents",value:"contents",align:"left",sortable:!1,width:"100%"}]),item_key:"id",all_items:[],items:[],page:1,items_per_page:15,sort_order:"sentence",sort_direction:"asc",per_list:10,select_all:!1,selected:[],cover_top:0,cover_left:0,cover_opposite_left:0,cover_width:0,cover_height:0,cover_display:"none",cover_direction:"right",dialog1:!1,dialog2:!1,dialog3:!1,dialog4:!1,book_ids:[],is_mobile:!1,mdi_trash_can_outline:Lt["ab"],mdi_chevron_right:Lt["v"],mdi_chevron_left:Lt["t"],mdi_close:Lt["B"],mdi_checkbox_blank_outline:Lt["o"],mdi_checkbox_marked:Lt["p"],down_x:0,down_y:0}},watch:{selected:function(t){window.pocketnote_selected=t},coverSwipe:function(t){window.pocketnote_coverSwipe=t}},computed:{arrowClass:function(){return t=>{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}}},methods:{loadMore:function(){if(this.nomore)return!1;0===this.items.length?this.getList():(this.items_per_page>this.items.length?this.nomore=!0:this.addMore(),this.items_per_page+=15)},addMore:function(){let t=this.items_per_page+15;for(let e=this.items_per_page;e{if(200==t.status){let e=t.data.length;for(let s=0;s<15;s++)void 0!==t.data[s]&&this.items.push(t.data[s]);this.all_items=t.data,e{window.console.error(t)})},sortingCol:function(t,e){if(this.sort_order!==t)this.sort_order=t,this.sort_direction="desc";else{"desc"==this.sort_direction?this.sort_direction="asc":this.sort_direction="desc",this.all_items.reverse();for(let t=0;t{200==t.status&&(this.items=this.items.filter((t,e)=>!this.selected.includes(t)),this.selected=[]),this.dialog2=!1}).catch(t=>{this.dialog2=!1,window.console.error(t)})},goFlashCard:function(){if(this.loading)return;this.loading=!0;let t=`${g["w"]}/v2/pocketnote/${this.$store.state.cid}/user/${this.$store.state.uid}/getbookids`,e=[],s=[];for(let i=0;i0&&(e=e.filter((t,e)=>{let s=!0;for(let i=0;i{let s=!0;for(let i=0;i0||s.length>0)this.$axios.post(t,{sentences_ids:e.length>0?e:"",words_ids:s.length>0?s:""}).then(t=>{if(200==t.status){this.book_ids=t.data;let e=this.setBookIds();this.setStore(e)}}).catch(t=>{window.console.error(t),this.loading=!1});else{let t=this.setBookIds();this.setStore(t)}},setBookIds:function(){let t=Object.assign({},this.selected);for(let[e,s]of Object.entries(this.book_ids))for(let[i,o]of Object.entries(t))o.sentences_id&&s.sentences_id==o.sentences_id&&(t[i]=Object.assign(o,{book_id:s.book_id})),o.words_id&&s.words_id==o.words_id&&(t[i]=Object.assign(o,{book_id:s.book_id}));return Object.values(t)},setStore:function(t){this.$store.commit("setFlashCardSentences",{type:"ALL",flashcard_engs:t}),this.$store.commit("setProcessType",g["r"]),this.$store.commit("setLearningStatus",!0),this.dialog3=!1,this.loading=!1},setCoverMDown:function(t){this.down_x=t.screenX,this.down_y=t.screenY},setCoverMUp:function(t){let e=t.screenX,s=t.screenY;if("right"===this.cover_direction){let t=this.down_x-e,i=Math.abs(this.down_y-s);t>5&&t>i&&this.coverSwipe("left")}else if("left"===this.cover_direction){let t=e-this.down_x,i=Math.abs(this.down_y-s);t>5&&t>i&&this.coverSwipe("right")}this.down_x=0,this.down_y=0},goCheckup:function(){this.$store.dispatch("setCheckupInfo",{is_random:!0,sentences:this.selected}).then(()=>{this.dialog4=!1,this.loading=!1,this.$router.push({path:"/checkup"})})}},mounted:function(){this.$nextTick(()=>{this.setCoverSize(),window.addEventListener("resize",this.setCoverSize)})},created:function(){this.loadMore(),this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){window.removeEventListener("resize",this.setCoverSize)}},Rm=Dm,Pm=s("9e88"),Mm=Object(p["a"])(Rm,Am,Im,!1,null,null,null),Em=Mm.exports;y()(Mm,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDataTable:Gh["a"],VDialog:ct["a"],VIcon:jt["a"],VRow:ht["a"],VSimpleCheckbox:Pm["a"],VWindow:ni["a"]});var Bm=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"pocketnote-child"}},[s("div",{staticClass:"shown-header-div width-100"},[s("table",{staticClass:"shown-header border-ede thin-b width-100"},[s("thead",[s("tr",{attrs:{id:"pocketnote-list-head-tr"}},[t._m(0),s("th",{staticClass:"sort-col border-ede thin-l",class:t.arrowClass("postdate"),staticStyle:{width:"33.33%"},on:{click:function(e){return t.sortingCol("postdate",t.sort_direction)}}},[t._m(1)]),s("th",{staticClass:"sort-col border-ede thin-l",class:t.arrowClass("sentence_cnt"),staticStyle:{width:"33.33%"},on:{click:function(e){return t.sortingCol("sentence_cnt",t.sort_direction)}}},[t._m(2)]),s("th",{staticClass:"sort-col border-ede thin-l",class:t.arrowClass("score"),staticStyle:{width:"33.33%"},on:{click:function(e){return t.sortingCol("score",t.sort_direction)}}},[t._m(3)]),t._m(4)])])])]),s("infinite-scroller",{key:"schedule-list-infiscroll-10",staticClass:"infi-cls",attrs:{id:"pocketnote-list-wrapper",loadmore:t.loadMore,cat:13,nomore:t.nomore,loading:t.loading}},[s("v-data-table",{staticClass:"radius-unset",attrs:{id:"pocketnote-list",headers:t.headers,items:t.items,"show-select":!1,"mobile-breakpoint":10,"show-expand":!1,"item-key":t.item_key,"hide-default-footer":!0,"hide-default-header":!0,"disable-pagination":!0,"server-items-length":t.item_length,page:t.page,"items-per-page":t.items_per_page,"sort-by":void 0,"sort-desc":void 0,dense:"","no-data-text":"학습한 내역이 없습니다.","no-results-text":"학습한 내역이 없습니다."},scopedSlots:t._u([{key:"item.idx",fn:function(e){var i=e.item;return[s("div",{staticClass:"width-100"},[t._v("\n "+t._s(i.idx)+"\n ")])]}},{key:"item.contents",fn:function(e){var i=e.item;return[s("div",{staticClass:"width-100"},[s("v-row",{attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"border-ede thin-l content d-flex justify-center",attrs:{cols:"4"}},[t._v(t._s(i.postdate))]),s("v-col",{staticClass:"border-ede thin-l content d-flex justify-center",attrs:{cols:"4"}},[t._v(t._s(i.sentence_cnt)+"개")]),s("v-col",{staticClass:"border-ede thin-l content d-flex justify-center",attrs:{cols:"4"}},[t._v(t._s(i.score)+"점")])],1)],1)]}},{key:"item.id",fn:function(e){var i=e.item;return[s("div",{staticClass:"width-100 height-100 d-flex align-center justify-center"},[s("v-btn",{attrs:{fab:"",icon:"",color:"primary",to:{path:"/checkupresult",query:{cr_id:i.id}}}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(2.1).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(2.1).toFixed(2)}},[t._v(t._s(t.mdi_clipboard_text_outline))])],1)],1)]}}])})],1),s("div",{staticClass:"pocket-control-div-wrap"},[s("div",{staticClass:"pocket-control-div border-ede thin-l thin-r bd-t-tick bg-white"},[s("table",{},[s("tbody",[s("tr",[s("td",{staticClass:"text-center",staticStyle:{width:"40px","min-width":"40px"}}),s("td",{staticClass:"px-4",staticStyle:{width:"100%"}},[s("div",{staticClass:"width-100"},[s("v-row",{staticClass:"height-100",attrs:{dense:"","no-gutters":""}},[s("v-col",{staticClass:"height-100",attrs:{cols:"9"}},[s("div",{staticClass:"width-100",staticStyle:{"min-height":"5.7vh !important"}})]),s("v-col",{staticClass:"height-100",attrs:{cols:"3"}},[s("div",{staticClass:"select-count-div d-flex justify-end"},[s("b",{staticClass:"select-count success--text"},[t._v("\n 종합 점수  \n "),s("span",{staticClass:"orange--text font-size-bigger",domProps:{textContent:t._s(t.total_avg)}}),t._v("\n 점\n ")])])])],1)],1)])])])])])])],1)},Nm=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"border-ede thin-l",staticStyle:{width:"38px","min-width":"39px","max-width":"39px"}},[s("span",[t._v("No.")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-center justify-center width-100"},[s("span",[t._v("학습 일자 ")]),s("div",{staticClass:"sort-col-div"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-center justify-center width-100"},[s("span",[t._v("학습 문항 ")]),s("div",{staticClass:"sort-col-div"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-center justify-center width-100"},[s("span",[t._v("학습 점수 ")]),s("div",{staticClass:"sort-col-div"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("th",{staticClass:"border-ede thin-l thin-r",staticStyle:{width:"76px","min-width":"77px","max-width":"77px"}},[s("span",[t._v("성적표")])])}],qm={name:"checkup-note",components:{InfiniteScroller:E_},data(){return{nomore:!1,loading:!1,loading_settimeout:null,headers:Object.freeze([{text:"idx",value:"idx",align:"center",sortable:!1,width:"48px"},{text:"contents",value:"contents",align:"left",sortable:!1,width:"100%"},{text:"id",value:"id",align:"center",sortable:!1,width:"48px"}]),item_key:"id",items:[],item_length:0,page:1,items_per_page:99999,sort_order:"postdate",sort_direction:"desc",per_list:10,selected:[],total_avg:"-",mdi_clipboard_text_outline:Lt["A"]}},computed:{arrowClass:function(){return t=>{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}}},methods:{loadMore:function(){this.getList("more")},sortingCol:function(t,e){this.sort_order!==t?(this.sort_order=t,this.sort_direction="desc"):"desc"==this.sort_direction?this.sort_direction="asc":this.sort_direction="desc",this.items=[],this.item_length=0,this.nomore=!1,this.getList()},getList:function(t){if(this.nomore)return!1;if(this.loading)return!1;let e=`${g["w"]}/v2/result/${this.$store.state.cid}/user/${this.$store.state.uid}/getcheckupresultlist`,s=`?leng=${this.item_length}&per=${this.per_list}&dir=${this.sort_direction}&ord=${this.sort_order}`;this.loading=!0,this.$axios.get(e+s).then(e=>{if(200==e.status){let s=e.data.length;this.item_length="more"==t?this.item_length+s:s;for(let t=0;t{window.console.error(t)})},getAvgScore:function(){this.$axios.get(`${g["w"]}/v2/result/${this.$store.state.cid}/user/${this.$store.state.uid}/getavgscore`).then(t=>{200===t.status&&!1!==t.data&&(this.total_avg=Math.round(t.data.total_score/t.data.total_cnt))})}},created:function(){this.getAvgScore()}},Lm=qm,zm=Object(p["a"])(Lm,Bm,Nm,!1,null,null,null),Om=zm.exports;y()(zm,{VBtn:ot["a"],VCol:rt["a"],VDataTable:Gh["a"],VIcon:jt["a"],VRow:ht["a"]});var jm=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{staticClass:"px-3 ma-0",attrs:{id:"faq"}},[t.is_mobile?t._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[s("div",{staticClass:"search-field width-100 d-inline-block"},[s("div",{staticClass:"search-div"},[s("v-text-field",{attrs:{dense:"",solo:"",rounded:"","single-line":"","hide-details":"",color:"success",flat:"",label:"검색","append-icon":t.mdi_magnify,"background-color":"grey lighten-3"},on:{keydown:t.searchQna,"click:append":t.searchQna},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)])]),s("v-col",{key:t.key.accordion,class:[t.is_mobile?"pt-0 pl-1":""]},[s("v-row",{staticClass:"width-100 mgauto",class:[t.is_mobile?"pl-0":"px-3"],attrs:{justify:"center"}},[s("v-expansion-panels",{attrs:{"active-class":"active-faq",accordion:"",multiple:!1,flat:""},model:{value:t.sel_accordion,callback:function(e){t.sel_accordion=e},expression:"sel_accordion"}},t._l(t.accordion,(function(e,i){return s("v-expansion-panel",{key:"accordion"+i,class:["T"==e.class?"pt-2":"border-ede thin-b"],attrs:{readonly:"T"==e.class}},[s("v-expansion-panel-header",{class:["T"==e.class?"pl-2":"pl-6",t.is_mobile?"":"py-6"],attrs:{"expand-icon":""},scopedSlots:t._u([{key:"default",fn:function(){return[s("h3",{domProps:{innerHTML:t._s(e.title)}})]},proxy:!0}],null,!0)}),s("v-expansion-panel-content",{scopedSlots:t._u([{key:"default",fn:function(){return[s("p",{staticClass:"mgauto",domProps:{innerHTML:t._s(e.contents)}})]},proxy:!0}],null,!0)})],1)})),1)],1)],1)],1)},Vm=[],Fm={data(){return{mdi_magnify:Lt["L"],is_mobile:!1,search:"",origin_accordion:[],sel_accordion:[],key:{accordion:"accordion0"},accordion:[{class:"T",title:'[학습 관련]',contents:""},{class:"1",title:"하루 학습량 제한이 있나요?",contents:"내공스터디에서는 일일 학습량 제한 없이 초중고 대상 모든 내신 콘텐츠 학습이 가능합니다.

단, 관리자(선생님)의 설정에 따라
교재 내 차시당 학습은 최대 2회 재학습 (총 3회)으로 제한될 수 있습니다.

※ 학습 완료 후, 리스닝은 무제한 학습이 가능합니다."},{class:"1",title:"학습 도중 종료되어도 이어서 학습 가능한가요?",contents:"학습 도중 나기기를 통해 학습이 종료되면 학습중/시험중으로 표기되며,
이를 다시 한 번 클릭 시, 이어서 학습 가능합니다."},{class:"1",title:"왜 시험보기는 학습하기가 끝나야만 가능한가요?",contents:"모든 학습자의 학습 능률 증대를 위해 제한되어 있습니다.

학습하기 5단계 (듣기-문장조합-딕테이션-퀴즈-영작) 를 통해 문장의 단어와 구조를 익히게 하고,
시험보기 4단계 (문장조합-딕테이션-영작-스피킹) 으로 문장 말하기를 통해 능통한 영어 학습능력을 키웁니다.

때문에, 학습하기 → 시험보기 순으로 학습하시기 바랍니다. "},{class:"1",title:"시험지로 출력하여 학습할 수 있나요?",contents:"네, 가능합니다.
담당 선생님께 요청하시면 교재별 / 기간별 학습 내역에 맞게 시험지로 뽑아 지면 테스트가 가능합니다.

학습 효과를 극대화하기 위해서 온라인 학습 이후 꼭 시험지로 출력하여 반복 학습을 권장합니다."},{class:"T",title:'[콘텐츠 관련]',contents:""},{class:"2",title:"내공백서는 어떤 교재인가요?",contents:'"내공백서"는 개념이해부터 심화 학습까지 내신유형의 내공을 담은 교재입니다.

내공스터디의 수만명 영어 선생님께서 직접 만드신 컨텐츠의 주요 문장을 토대로
영어 문장의 구조를 완벽하게 익힐 수 있는 내신 대비의 필독서입니다.
학년은 초등 3학년 ~ 고등 3학년까지의 시리즈로 준비되어 있습니다.

수업 콘텐츠의 "내공 코스북" 탭에서 학습해보세요!'},{class:"2",title:"일부 교재가 열리지 않습니다.",contents:"학습 시작하기의 교재 목록 중, 내공스터디 내공백서 시리즈는 우선 열람 가능합니다.
하지만, 학생 개인별 수준 학습을 지원하기 위해서 일부 교재는 관리자의 승인이 필요합니다.

교과서 및 듣기/모의고사는 관리자(선생님) 에게 요청하여 교재 설정 받으시기 바랍니다."},{class:"2",title:"사용자 교재는 무엇인가요?",contents:"사용자 교재는 관리자(선생님)를 통해서만 교재가 생성되는 구조입니다.

내공스터디에는 수 만명의 영어 선생님께서
학원 내 수업자료 및 부교재 자료를 직접 만들어 활용할 수 있는 국내 최대의 영어 학습 플랫폼입니다.
이를 통해, 학습자의 커리큘럼에 맞게 학습 연계가 가능합니다.

때문에, 사용자 교재(학원 수업자료 및 부교재)는 관리자(선생님)에게 요청하여 설정 받으시기 바랍니다."},{class:"2",title:"포켓노트 활용법이 궁금합니다.",contents:"포켓노트는 오답 문항에 한해 재학습이 가능한 학습 기능입니다.

온라인 학습 결과 조회 시, 오답 문항은 포켓노트로 분류 가능하며,
초기화면 우측 하단의 학습 관리 > 포켓노트에서 목록 조회할 수 있습니다.

 1. 책갈피 : 철자 / 해석 탭을 가려 암기식 활용 가능
 2. 플래시 카드 : 원하는 문항 선별하여 듣기 학습 가능
 3. 체크업 : 원하는 문항 선별하여 재미있는 타자 연습
"},{class:"T",title:'[기기 이용]',contents:""},{class:"3",title:"권장하는 기기 사양이 어떻게 되나요?",contents:"내공스터디는 모바일 기기에서도 활용할 수 있는 어플리케이션을 제공하고 있습니다.

안드로이드 (구글 플레이스토어)
 1. 해상도 : 1900 x 1200 이상
 2. 안드로이드 버젼 : 10.0 이상

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

만약, 컴퓨터로 활용하기 위해서는 크롬 브라우져 설치 후
내공스터디 홈페이지에서 프로그램 실행 가능합니다."},{class:"3",title:"음성인식 및 녹음이 잘 되지 않습니다.",contents:"우선순위로 다음 사항을 확인해주시기 바랍니다.
 1. 데스크톱 PC의 경우, 마이크 연결 설정이 올바른지
 2. 모바일 기기의 경우, 보이스 입력 활성화 설정이 되어 있는지
 3. 외부 마이크 입력 단자가 잘 연결되어 있는지

위 사항을 체크하셨다면 문제 없이 영어 말하기 테스트가 가능합니다. "},{class:"3",title:"학습 이용 간 멈춤 현상이 있습니다.",contents:"우선순위로 다음 사항을 확인해주시기 바랍니다.
 1. 데이터 (와이파이 접속) 환경이 원활한지
 2. 이용 중인 디바이스가 권장 사양에 부합하는지
 3. 키보드 등 외부 입력기기가 잘 연결되어 있는지


위 사항을 체크하셨다면 문제 없이 학습이 가능합니다."},{class:"3",title:"기기 동시접속 환경이 가능한가요?",contents:"내공스터디는 다양한 환경에서도 접속하실 수 있도록
“기기별 제한 사항 없이, 동시 접속하여 학습 가능”합니다.

때문에, 학원/등하원 길/학교 등 장소에 가리지 않고 수시로 접속하여
영어에 대한 노출이 극대화될 수 있게 학습해보시기 바랍니다."},{class:"T",title:'[서비스 전반]',contents:""},{class:"4",title:"학습 스케줄은 어떻게 확인하나요?",contents:"학습 관리 > 학습 스케줄 에서 확인 가능합니다.

학습 스케줄은 일자별 학습 진도를 체크하기 위함이며
관리자(선생님)를 통해 평가 스케줄이 설정됩니다.
설정된 스케줄에 따라, 학습을 진행해주세요."},{class:"4",title:"성적 결과는 어디에서 확인할 수 있나요?",contents:"학습 관리 > 학습 레포트에서 조회 가능합니다.
학습 레포트는 일자별로 조회하는 레포트 조회 / 기간별로 조회하는 레포트 분석이 있습니다.

레포트 분석에서는 원하는 기간 만큼 성적 조회하여
오답률, 학습 시간 등 학습 분석과 최근 주요 오답문항 10개까지 조회 가능합니다.

분석결과를 통해 학부모님과의 상담, 진도 체크 등 학습관리 전반으로 활용할 수 있습니다."},{class:"4",title:"리더보드의 기능은 무엇인가요?",contents:"내공학습 관리 > 리더보드에서 조회 가능하며,
학원 내 같은 반 학생들의 성적 결과에 따른 차등 순위를 확인할 수 있습니다.
이를 통해 학습 동기부여를 증대 시키고, 학생 간 학습을 유발하여 효과를 증대시킵니다.

매월 1일~말일까지 결과를 통해 1~3등까지 수상이 가능하며, 이는 수상 이력에 저장됩니다."},{class:"4",title:"학습설정은 어떻게 할 수 있나요?",contents:"학습 관리 우측 상단 아이콘에서 설정 가능하며,
학생분이 직접 설정 할 수 있는 내역은 효과음 사용 여부와 리스닝 횟수 입니다.

나머지 학습설정 내역은
무분별한 학습 진행을 방지하고자 관리자(선생님)가 직접 관리합니다."}]}},methods:{searchQna:function(t){if(("13"==t.keyCode||"click"==t.type)&&(this.accordion=JSON.parse(JSON.stringify(this.origin_accordion)),this.sel_accordion=[],""!=this.search)){let t=this.search,e=/[\{\}\[\]\/?.,;:|\)*~`!^\-+<>@\#$%&\=\(\'\"]/gi;if(e.test(this.search)){let s=t.match(e).length;for(let i=0;i{let i=this.accordion[s].title.match(new RegExp(t,"gi"));i&&(this.accordion[s].title=this.accordion[s].title.replace(new RegExp(t,"gi"),`${""==i[0]?t:i[0]}`));let o=this.accordion[s].contents.match(new RegExp(t,"gi"));o&&(this.accordion[s].contents=this.accordion[s].contents.replace(new RegExp(t,"gi"),`${""==o[0]?t:o[0]}`),this.sel_accordion.push(s))})}}},created:function(){this.$store.state.is_mobile&&(this.is_mobile=!0),this.origin_accordion=JSON.parse(JSON.stringify(this.accordion))}},Gm=Fm,Wm=(s("d94d"),s("cd55")),Um=s("49e2"),Hm=s("c865"),Km=s("0393"),Zm=Object(p["a"])(Gm,jm,Vm,!1,null,null,null),Ym=Zm.exports;y()(Zm,{VCol:rt["a"],VExpansionPanel:Wm["a"],VExpansionPanelContent:Um["a"],VExpansionPanelHeader:Hm["a"],VExpansionPanels:Km["a"],VRow:ht["a"],VTextField:ut["a"]});var Jm=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-row",{staticClass:"py-4 mgauto",staticStyle:{height:"78vh",margin:"-12px"}},[i("div",{staticClass:"width-100 height-100 d-flex align-center justify-center"},[i("span",{staticClass:"grey--text"},[t._v("오픈 준비중입니다.")])]),i("v-col",{staticClass:"mb-3 d-none",staticStyle:{border:"1px solid #e0e0e5","margin-top":"18vh","min-height":"24vh","background-color":"#f9f9fb"},attrs:{offset:"1",cols:"10"}},[i("v-row",{staticStyle:{height:"100%"}},[i("v-col",{staticClass:"pa-0",staticStyle:{position:"relative"},attrs:{cols:"3"}},[i("div",{staticStyle:{position:"absolute",width:"80px",height:"80px",top:"50%","margin-top":"-40px",right:"7%"}},[i("div",{staticStyle:{width:"inherit",height:"inherit"}},[i("v-img",{attrs:{"lazy-src":s("d61d"),src:s("d61d"),width:"80",height:"80"}})],1)])]),i("v-col",{staticClass:"text-left",attrs:{cols:"6","align-self":"center"}},[i("h2",{staticStyle:{"font-weight":"700"}},[t._v("학생용 프로그램 매뉴얼")]),i("h3",{staticClass:"grey--text darken-1"},[t._v("PDF 사용 설명서")])]),i("v-col",{staticClass:"text-center",attrs:{cols:"3","align-self":"center"}},[i("v-btn",{staticClass:"pl-4 pr-2",attrs:{outlined:"",rounded:"",depressed:"","x-large":""},on:{touchstart:function(e){return t.$store.dispatch("clickSound",e)},mousedown:function(e){return t.$store.dispatch("clickSound",e)}}},[i("b",{staticStyle:{"font-size":"1.2rem"}},[t._v("바로가기")]),i("v-icon",[t._v(t._s(t.mdi_chevron_right))])],1)],1)],1)],1)],1)},Xm=[],Qm={data(){return{mdi_chevron_right:Lt["v"]}}},tg=Qm,eg=Object(p["a"])(tg,Jm,Xm,!1,null,null,null),sg=eg.exports;y()(eg,{VBtn:ot["a"],VCol:rt["a"],VIcon:jt["a"],VImg:qs["a"],VRow:ht["a"]});var ig=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{staticClass:"width-100 pa-0",staticStyle:{height:"78vh","margin-top":"-12px"},attrs:{id:"guide-video",fluid:""}},[s("div",{staticClass:"width-100 height-100 d-flex align-center justify-center"},[s("span",{staticClass:"grey--text"},[t._v("오픈 준비중입니다.")])]),s("h2",{staticClass:"border-front-line pl-2 font-weight-bold grey--text text--darken-2 pos-rel d-none"},[t._v("\n 학생 앱 가이드\n ")]),s("v-row",{staticClass:"pt-2 d-none",attrs:{dense:""}},[s("v-col",{attrs:{cols:"4"}},[s("v-responsive",{staticStyle:{border:"1px solid skyblue"},attrs:{"aspect-ratio":16/9}},[t._v("\n video..\n ")]),s("h2",{staticClass:"title-caption mt-2"},[t._v("1 학생용 앱 설치")]),s("p",{staticClass:"grey-caption"},[t._v("앱 설치방법과 권장사양 안내")])],1),s("v-col",{attrs:{cols:"4"}},[s("v-responsive",{staticStyle:{border:"1px solid skyblue"},attrs:{"aspect-ratio":16/9}},[t._v("\n video..\n ")]),s("h2",{staticClass:"title-caption mt-2"},[t._v("2 초기화면 설정")]),s("p",{staticClass:"grey-caption"},[t._v("앱 초기화면 준비과정 및 설정법 안내")])],1),s("v-col",{attrs:{cols:"4"}},[s("v-responsive",{staticStyle:{border:"1px solid skyblue"},attrs:{"aspect-ratio":16/9}},[t._v("\n video..\n ")]),s("h2",{staticClass:"title-caption mt-2"},[t._v("3 학습교재 확인")]),s("p",{staticClass:"grey-caption"},[t._v("학습교재 확인 및 스케줄 확인법")])],1)],1),s("v-row",{staticClass:"pt-2 d-none",attrs:{dense:""}},[s("v-col",{attrs:{cols:"4"}},[s("v-responsive",{staticStyle:{border:"1px solid skyblue"},attrs:{"aspect-ratio":16/9}},[t._v("\n video..\n ")]),s("h2",{staticClass:"title-caption mt-2"},[t._v("1 학생용 앱 설치")]),s("p",{staticClass:"grey-caption"},[t._v("앱 설치방법과 권장사양 안내")])],1),s("v-col",{attrs:{cols:"4"}},[s("v-responsive",{staticStyle:{border:"1px solid skyblue"},attrs:{"aspect-ratio":16/9}},[t._v("\n video..\n ")]),s("h2",{staticClass:"title-caption mt-2"},[t._v("2 초기화면 설정")]),s("p",{staticClass:"grey-caption"},[t._v("앱 초기화면 준비과정 및 설정법 안내")])],1),s("v-col",{attrs:{cols:"4"}},[s("v-responsive",{staticStyle:{border:"1px solid skyblue"},attrs:{"aspect-ratio":16/9}},[t._v("\n video..\n ")]),s("h2",{staticClass:"title-caption mt-2"},[t._v("3 학습교재 확인")]),s("p",{staticClass:"grey-caption"},[t._v("학습교재 확인 및 스케줄 확인법")])],1)],1)],1)},og=[],ag={},ng=ag,rg=(s("d52d"),Object(p["a"])(ng,ig,og,!1,null,null,null)),lg=rg.exports;y()(rg,{VCol:rt["a"],VContainer:lt["a"],VResponsive:Oa["a"],VRow:ht["a"]});var cg=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"width-100 height-100 pos-rel bg-center bg-road",attrs:{id:"checkupresult"}},[i("v-app-bar",{attrs:{id:"header-study-bar",fixed:"",color:"transparent",flat:""}},[i("div",{staticClass:"checkup",attrs:{id:"learning-title"}}),t._v("\n   \n "),i("span",{staticClass:"title white--text"},[t._v("Check-Up")]),i("span",{staticClass:"pl-3 title grey--text text--lighten-4"},[t._v("저장한 문항을 완벽하게 익혀보세요!")]),t.showLoading?t._e():[i("v-btn",{staticClass:"top-right-navi-btn white",attrs:{text:"",icon:"","x-large":"",absolute:"",right:"",to:{path:"/pocketnote/checkupnote",query:{t:"btn"}},ripple:!1}},[i("v-icon",{staticStyle:{"font-size":"24px",color:"#52c4cf"},attrs:{size:"24px"}},[t._v(t._s(t.mdi_close))])],1)],i("div",{staticClass:"default-divider in-checkup"})],2),i("div",{staticClass:"checkupresult-main pos-rel",class:{"visibility-hidden":t.showLoading}},[i("v-card",{attrs:{elevation:"1"}},[i("v-card-title",{staticClass:"justify-center grey lighten-3 border-ede thin-b",attrs:{id:"checkupresult-header"}},[i("h3",{staticClass:"title grey--text text--darken-1"},[t._v("Report")])]),i("v-card-text",{staticClass:"py-0 px-1 over-y-scroll",style:"height: "+t.content_height+"px;",attrs:{id:"checkupresult-text"}},[i("v-list",{staticClass:"py-0",attrs:{flat:""}},[i("v-list-item-group",{attrs:{mandatory:""}},[t._l(t.result,(function(e,o){return[i("v-list-item",{key:"checkup-result-item-"+o,staticClass:"border-ede thin-b",attrs:{ripple:!1}},[i("v-row",{staticClass:"pa-0",attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[i("v-list-item-content",{staticClass:"py-3 d-block"},[i("div",{staticClass:"number-wrap text-center d-block ma-auto overflow-hidden",domProps:{textContent:t._s(o+1)}})])],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"1"}},[t.is_ios?i("v-list-item-content",{staticClass:"py-3 d-block",staticStyle:{"max-height":"56px","padding-left":"10%"}},[JSON.parse(e.right)?i("img",{attrs:{src:s("963b"),width:"30",height:"30"}}):i("img",{attrs:{src:s("7927"),width:"30",height:"30"}})]):i("v-list-item-content",{staticClass:"py-3 d-block",staticStyle:{"max-height":"56px","padding-left":"10%"}},[JSON.parse(e.right)?i("icon-report-o",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"o-"+o}}):i("icon-report-x",{staticStyle:{width:"30px",height:"30px"},attrs:{seq_id:"x-"+o}})],1)],1),i("v-col",{staticClass:"pa-0",attrs:{cols:"10"}},[i("v-list-item-content",{staticClass:"py-0 d-flex align-center height-100"},[i("v-list-item-title",{domProps:{innerHTML:t._s(t.distContents(e))}})],1)],1)],1)],1)]}))],2)],1)],1),t.$store.state.sentences&&t.$store.state.sentences.length>0?i("v-card-actions",{staticClass:"text-center border-ede thin-t py-0 px-0",attrs:{id:"checkupresult-footer"}},[i("v-row",{staticClass:"mx-0",staticStyle:{"border-radius":"inherit"},attrs:{dense:""}},[i("v-col",{staticClass:"py-3 border-ede thin-r success",staticStyle:{"border-bottom-left-radius":"inherit"},attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"success","x-large":"",block:"",elevation:"0",ripple:!1},on:{click:t.goCheckupNote}},[i("span",{staticClass:"title"},[t._v("확인")])])],1),i("v-col",{staticClass:"py-3",staticStyle:{"background-color":"#f7f8f9","border-bottom-right-radius":"inherit"},attrs:{cols:"6",dense:""}},[i("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:t.goCheckup}},[i("span",{staticClass:"title"},[t._v("재도전")])])],1)],1)],1):i("v-card-actions",{staticClass:"text-center success border-ede thin-t py-0",attrs:{id:"checkupresult-footer"}},[i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[i("v-btn",{attrs:{color:"success","x-large":"",block:"",elevation:"0",ripple:!1},on:{click:t.goCheckupNote}},[i("span",{staticClass:"title"},[t._v("목록 돌아가기")])])],1)],1)],1)],1)],1),i("loading",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}]})],1)},dg=[],hg={name:"checkup-result",components:{IconReportO:Ps["a"],IconReportX:Ms["a"],Loading:Bt},data(){return{unwatch:null,unwatch2:null,interval1:null,result:[],content_height:0,is_ios:!1,mdi_close:Lt["B"]}},computed:{showLoading:function(){return this.$store.state.loading_percent>0}},methods:{startLoading:function(){let t=window.setInterval(()=>{if(this.$store.commit("addLoadingPercent",3),this.$store.state.loading_percent>=100){if(this.$store.state.delay_actor2.length>0){for(let t=0;t{this.$store.commit("setZeroLoadingPercent")},200))}},30);this.$store.commit("setDelayActor2",t)},getResultHtml:function(t){let e=this.$store.state.uid;e&&t&&i["db"].collection("users").doc(e).collection("checkup").doc(t).get().then(t=>{const e=t.data();if(!e||!e.result)return;window.clearInterval(this.interval1),this.interval1=null;let s=e.result,i=new DOMParser,o=!1,a=JSON.parse(s),n=[];if(a){for(let t=0;tdata not exist."});this.result=n}})},distContents:function(t){let e="";return e+=`
${t.mean}
`,e+=`
${t.html}
`,e},goCheckup:function(){if(!(this.$store.state.sentences&&this.$store.state.sentences.length>0))return!1;this.$router.push({path:"/checkup"})},goCheckupNote:function(){this.$router.push({path:"/pocketnote/checkupnote"})},setCardTextHeight:function(t){let e=document.getElementById("checkupresult-header"),s=document.getElementById("checkupresult-footer"),i=e?e.getBoundingClientRect().height:0,o=s?s.getBoundingClientRect().height:0,a=.78*t;this.content_height=a-i-o-2}},mounted(){this.$nextTick(()=>{this.setCardTextHeight(this.$store.state.screen_height),this.unwatch2=this.$store.watch(t=>t.screen_height,(t,e)=>{t!=e&&this.setCardTextHeight(t)})})},beforeCreate(){this.$store.commit("addLoadingPercent",1)},created(){if("ios"===this.$store.state.platform&&(this.is_ios=!0),this.$route.query.cr_id){let t=this.$route.query.cr_id,e=0;this.interval1=window.setInterval(()=>{this.getResultHtml(t),e++,e>100&&(window.clearInterval(this.interval1),this.interval1=null)},300)}else this.$router.push({path:"/"});this.unwatch=this.$store.watch(t=>t.loading_percent,(t,e)=>{0==t&&e>0&&this.$store.dispatch("soundEffectPlay","report")}),this.startLoading()},beforeDestroy(){this.interval1&&window.clearInterval(this.interval1),this.unwatch&&this.unwatch(),this.unwatch2&&this.unwatch2()}},ug=hg,pg=(s("0e07"),Object(p["a"])(ug,cg,dg,!1,null,null,null)),_g=pg.exports;y()(pg,{VAppBar:Rp["a"],VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCardTitle:nt["c"],VCol:rt["a"],VIcon:jt["a"],VList:Ls["a"],VListItem:zs["a"],VListItemContent:Os["a"],VListItemGroup:js["a"],VListItemTitle:Os["b"],VRow:ht["a"]});var mg=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.$store.state.process_type===t.ASSESSMENT_RESULT&&t.$store.state.assessmentRecordId?s("Report",{attrs:{isStudy:t.isStudy}}):t.$store.state.process_type===t.ASSESSMENT?s("Assessment",{attrs:{assessmentInfo:t.selectedAssessment},on:{"change-is-study":t.changeIsStudy}}):s("TaskLayout",{attrs:{"tab-title":"평가목록"},on:{cardSelect:t.highlightAssessment,selectFilter:t.selectFilter,search:t.onSearch,refresh:t.refresh}},[t.assessmentList.length>0?s("div",{class:["assessment-table",t.$store.state.is_mobile?"mt-3":"mt-6"]},[s("div",{staticClass:"table-header"},[s("div",{staticClass:"header-row",class:{"mobile-header-row":t.$store.state.is_mobile}},[s("div",{staticClass:"header-cell",style:"width: 15.5%; padding-left: "+(t.$store.state.is_mobile?"2rem":"2.5rem")+";"},[t._v("\n 구분\n ")]),s("div",{staticClass:"header-cell sort-col",class:t.arrowClass("name"),style:"width: 39.5%; padding-left: "+(t.$store.state.is_mobile?"1rem":"0.5rem")+";",on:{click:function(e){return t.sortingCol("name",t.sort_direction)}}},[s("span",[t._v("평가명 ")]),s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])]),s("div",{staticClass:"header-cell sort-col",class:t.arrowClass("postdate"),style:"width: 15%; padding-left: 1rem;",on:{click:function(e){return t.sortingCol("postdate",t.sort_direction)}}},[s("span",[t._v("출제일 ")]),s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])]),s("div",{staticClass:"header-cell sort-col",class:t.arrowClass("endDate"),style:"width: 15%; padding-left: "+(t.$store.state.is_mobile?"0rem":"1rem")+";",on:{click:function(e){return t.sortingCol("endDate",t.sort_direction)}}},[s("span",[t._v("마감일 ")]),s("div",{staticClass:"margin-top-3rem"},[s("div",{staticClass:"arrow-up"}),s("div",{staticClass:"arrow-down"})])]),s("div",{staticClass:"header-cell",style:"width: 15%; padding-left: "+(t.$store.state.is_mobile?"3.5%":"5.3%")+";"},[t._v("\n 제출 여부\n ")])])]),s("div",{ref:"tableBody",staticClass:"table-body",on:{scroll:t.handleScroll}},[t._l(t.paginatedAssessmentList,(function(e,i){return s("div",{key:"assessment-"+i,class:["body-row",{"last-row":i===t.paginatedAssessmentList.length-1}],staticStyle:{cursor:"pointer"},attrs:{"data-assessment-name":e.name},on:{click:function(s){return t.handleRowClick(e)}}},[s("div",{staticClass:"body-cell",style:"width: 15.5%; display: flex; align-items: center; padding-left: "+(t.$store.state.is_mobile?"1.5rem":"2.5rem")+"; padding-right: "+(t.$store.state.is_mobile?"0.5rem":"1rem")+";"},[s("svg",{staticStyle:{"margin-right":"0.5rem","margin-bottom":"0.2rem"},attrs:{width:t.$store.state.is_mobile?"10":"15",height:"19",viewBox:"0 0 16 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{d:"M2 1 H10 L14 5 V18 C14 18.5523 13.5523 19 13 19 H2 C1.4477 19 1 18.5523 1 18 V2 C1 1.4477 1.4477 1 2 1 Z",stroke:"#3ED561","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"}}),s("path",{attrs:{d:"M10 1 V5 H14",stroke:"#3ED561","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"}})]),s("div",{staticStyle:{position:"relative",width:"fit-content"}},[s("span",{class:{"expired-text":"expired"===e.status}},[t._v("\n "+t._s(t.formatTryCnt(e.round_no,e.score,e.cutoff))+"\n ")]),t.isToday(e.postdate)?s("div",{staticClass:"today-dot",staticStyle:{position:"absolute",top:"-2px",right:"-8px",width:"6.5px",height:"6.5px","background-color":"#f44336","border-radius":"50%"}}):t._e()])]),s("div",{staticClass:"body-cell",class:{"expired-text":"expired"===e.status},style:"width: 40%; padding: 0 "+(t.$store.state.is_mobile?"0.5rem":"1rem")+";"},[s("span",{class:{"blink-highlight":t.highlight_assessment_id===e.name},staticStyle:{padding:"0 5px",display:"inline-block",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},domProps:{innerHTML:t._s(t.searchKeyword&&t.searchKeyword.trim()?t.highlightSearchText(e.name,t.searchKeyword):e.name)}})]),s("div",{staticClass:"body-cell",class:{"expired-text":"expired"===e.status},style:t.$store.state.is_mobile?"width: 13%; padding: 0 8px;":"width: 15%; padding: 0 16px;"},[t._v("\n "+t._s(t.formatDate(e.postdate.split(" ")[0]))+"\n ")]),s("div",{staticClass:"body-cell",class:{"expired-text":"expired"===e.status},style:t.$store.state.is_mobile?"width: 13%; padding: 0 8px;":"width: 15%; padding: 0 16px;"},[t._v("\n "+t._s(t.formatDate(e.endDate))+"\n ")]),s("div",{staticClass:"body-cell",style:"width: 17%; padding-left: 3.5rem; padding-right: "+(t.$store.state.is_mobile?"0.5rem":"1rem")+";"},[s("v-btn",{class:t.getStatusClass(e.status),staticStyle:{width:"80%","max-width":"120px",height:"70% !important","font-size":"0.9rem",padding:"0 16px",cursor:"default","pointer-events":"none"},attrs:{small:"",depressed:"",color:t.getStatusColor(e.status)},on:{click:function(s){return t.handleRowClick(e)}}},[t._v(t._s(t.getStatusText(e.status,e.score,e.cutoff)))])],1)])})),s("div",{directives:[{name:"show",rawName:"v-show",value:t.scroll_loading&&t.has_more_data,expression:"scroll_loading && has_more_data"}],staticClass:"scroll-loading-indicator"},[s("div",{staticClass:"loading-spinner"})]),t.searchKeyword&&t.searchKeyword.trim()&&0===t.computedAssessmentList.length?s("div",{staticClass:"text-center pa-8",staticStyle:{color:"#d2d2d2"}},[s("span",[t._v("검색 결과가 없습니다.")])]):t._e()],2)]):s("div",{staticClass:"text-center pa-4",staticStyle:{"border-bottom":"thin solid #ededed","font-size":"1.1rem",color:"rgba(0, 0, 0, 0.38)"}},[t._v("\n 등록된 평가가 없습니다.\n ")])])],1)},gg=[],bg=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"taskLayout",staticClass:"task-layout"},[s("div",{staticClass:"static-container"},[s("div",{staticClass:"left"},[s("div",{staticClass:"static-container-left"},[s("datepicker",{ref:"datepicker",attrs:{minimumView:"day",maximumView:"day",inline:!0,"full-month-name":!1,language:t.en,"bootstrap-styling":!0,"day-cell-content":t.classStyle,value:t.selectedDate},on:{changedMonth:t.changeMonth,selected:t.selectDate}}),s("div",{staticClass:"info-wrapper"},[s("div",{staticClass:"info-wrapper-date"},[t._v(t._s(t.selectedDateText))]),t.currentDaySchedule.length>0?s("div",{ref:"scheduleList",staticClass:"info-wrapper-info"},t._l(t.currentDaySchedule,(function(e){return s("Card",{key:t.sel_day+"-"+e.assessmentId+"-"+(e.forceCompleted?"completed":"pending"),attrs:{item:e,title:t.formatCardData(e).title,"unit-name":t.formatCardData(e).unitName,tags:t.formatCardData(e).tags,"is-schedule":!1},on:{"arrow-click":function(s){return t.selectCardItem(e)}}})})),1):s("div",{staticClass:"info-wrapper-info-empty"},[s("p",[t._v("배정된 스케줄이 없습니다.")])])])],1)]),s("div",{staticClass:"right"},[s("v-sheet",{key:"book-right-sheet",staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[s("v-row",{staticClass:"width-100 ma-0 custom-tab-wrapper min-h-40px"},[s("v-col",{staticClass:"pa-0 pos-rel",attrs:{cols:12},on:{touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel success--text active",attrs:{id:"tab3"}},[t._v("\n "+t._s(t.tabTitle)+"\n "),s("div",{staticClass:"slider pos-abs width-100 bottom-0"})])])],1),s("v-row",{staticClass:"gradeselect-wrapper ma-0 width-100 min-h-40px",staticStyle:{"border-bottom":"1vh solid #edeeef"}},[s("v-col",{staticClass:"pa-0 height-100 d-flex align-center",staticStyle:{"padding-left":"1.25% !important"},attrs:{sm:5,cols:4}},[t._l(t.filterButtonList,(function(e,i){return s("v-btn",{key:"filter-"+i,staticClass:"category-btn mr-2",class:{"active-filter":t.currentFilter===e.value},staticStyle:{"min-width":"50px"},attrs:{depressed:"",rounded:""},on:{click:function(s){return t.selectFilter(e.value)}}},[t._v("\n "+t._s(e.label)+"\n ")])})),s("RefreshBtn",{on:{click:t.refresh}})],2),s("v-col",{staticClass:"pa-0",staticStyle:{"align-self":"center","padding-right":"3.5% !important"},attrs:{cols:4,offset:"4","offset-sm":3}},[s("v-row",[s("v-text-field",{staticClass:"search-input float-right",staticStyle:{width:"90%"},attrs:{"append-icon":t.mdi_magnify,id:"search",label:"평가명",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":t.mdi_close_circle,color:"success"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearchEnter(e)},"click:clear":t.onSearchClear,input:t.onSearchInput},model:{value:t.searchKeyword,callback:function(e){t.searchKeyword=e},expression:"searchKeyword"}})],1)],1)],1),s("div",{staticClass:"content-area"},[t._t("default")],2)],1)],1)])])},vg=[],fg={name:"TaskLayout",mixins:[d_],components:{Datepicker:Np["a"],RefreshBtn:Oh,Card:e_},props:{tabTitle:{type:String,default:"평가목록"},menu:{type:String,default:""}},data(){return{ko:qp["ko"],en:qp["en"],mdi_magnify:Lt["L"],mdi_close_circle:Lt["C"],mdi_chevron_left:Lt["t"],mdi_chevron_right:Lt["v"],filterButtonList:[{label:"최근 출제순",value:"recent"},{label:"최근 학습순",value:"recent_learning"},{label:"가나다순",value:"alphabetical"}],scheduleYear:null,scheduleMonth:null,scheduleDay:null,searchKeyword:"",currentFilter:"recent"}},computed:{selectedDateText(){const t=String(this.sel_month).padStart(2,"0"),e=String(this.sel_day).padStart(2,"0");return`${t}월 ${e}일 스케줄`},currentDaySchedule(){const t=this.daily_data[this.sel_day]||[],e=[...t].sort((t,e)=>new Date(e.createdDate)-new Date(t.createdDate));return e},selectedDate(){return new Date(this.sel_year,this.sel_month-1,this.sel_day)}},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},refresh(){this.currentFilter="recent",this.$emit("refresh")},selectFilter(t){this.currentFilter=t,this.$emit("selectFilter",t)},onSearchEnter(){this.$emit("search",this.searchKeyword)},onSearchInput(){this.searchKeyword&&this.searchKeyword.trim()||this.$emit("search","")},onSearchClear(){this.searchKeyword="",this.$emit("search","")},selectCardItem(t){this.$emit("cardSelect",t),this.clickSound()},customizeCalendarHeader(){this.$nextTick(()=>{const t=document.querySelector(".day__month_btn");if(t){const e=this.sel_year,s=this.sel_month.toString().padStart(2,"0");t.textContent=`${e}년 ${s}월`}this.customizeNavigationButtons()})},customizeNavigationButtons(){const t=document.querySelector(".vdp-datepicker__calendar header span.prev"),e=document.querySelector(".vdp-datepicker__calendar header span.next");t&&(t.innerHTML=``,t.classList.add("custom-nav-btn")),e&&(e.innerHTML=``,e.classList.add("custom-nav-btn"))},changeMonth(t){this.clickSound(),this.$refs.scheduleList&&(this.$refs.scheduleList.scrollTop=0);let e=new Date(t).getFullYear(),s=new Date(t).getMonth()+1;this.sel_year=e,this.sel_month=s;const i=new Date,o=i.getFullYear(),a=i.getMonth()+1,n=i.getDate();this.sel_day=e===o&&s===a?n:1,this.setMonthStatus(e,s),this.current_ym=this.dateYmd(e,s),this.$nextTick(()=>{this.fillBlankCells(),this.customizeCalendarHeader()}),this.getMonthSchedule()},selectDate(t){this.clickSound(),this.sel_year=t.getFullYear(),this.sel_month=t.getMonth()+1,this.sel_day=t.getDate(),this.$emit("select",this.daily_data[this.sel_day]),this.$nextTick(()=>{this.$refs.scheduleList&&(this.$refs.scheduleList.scrollTop=0)})},fillBlankCells(){this.dot_data&&0!==Object.keys(this.dot_data).length&&this.$nextTick(()=>{const t=this.sel_year,e=this.sel_month,s=document.querySelector(".vdp-datepicker__calendar > div");if(!s)return;const i=s.querySelectorAll(".next-month-added");i.forEach(t=>t.remove());const o=s.querySelectorAll(".cell.day.filled-date");o.forEach(t=>{t.innerHTML="",t.classList.remove("filled-date"),t.classList.add("blank")});const a=new Date(t,e-1,1).getDay(),n=new Date(t,e,0).getDate(),r=new Date(t,e-1,n).getDay(),l=new Date(t,e-1,0).getDate(),c=1===e?12:e-1,d=1===e?t-1:t,h=document.querySelectorAll(".vdp-datepicker__calendar .cell.day.blank");h.forEach((t,e)=>{if(e0){const t=o.some(t=>"assessment"===t.type);let e=[];t&&e.push(''),e.length>0&&(n=`
${e.join("")}
`)}t.innerHTML=`\n
\n
\n
\n
${s}
\n ${n}\n
\n
\n
\n `,t.classList.remove("blank"),t.classList.add("filled-date","past-date")}});const u=12===e?1:e+1,p=12===e?t+1:t;if(r<6){const t=6-r;for(let e=1;e<=t;e++){const t=this.dateYmd(p,u,e),i=this.dot_data&&this.dot_data[t]||[];let o="";if(i.length>0){const t=i.some(t=>"assessment"===t.type);let e=[];t&&e.push(''),e.length>0&&(o=`
${e.join("")}
`)}const a=document.createElement("span");a.className="cell day filled-date next-month-added past-date",a.innerHTML=`\n
\n
\n
\n
${e}
\n ${o}\n
\n
\n
\n `,s.appendChild(a)}}})},handleScheduleDate(){const{year:t,month:e,day:s}=this.$route.query;t&&e&&s?(this.sel_year=parseInt(t),this.sel_month=parseInt(e),this.sel_day=parseInt(s)):(this.sel_year=this.this_year,this.sel_month=this.this_month,this.sel_day=this.this_day),this.setMonthStatus(this.sel_year,this.sel_month),this.current_ym=this.dateYmd(this.sel_year,this.sel_month),this.getMonthSchedule(),this.$nextTick(()=>{this.customizeCalendarHeader()})},async completedStatusAfterStudy(t){if(!t)return;const e=JSON.parse(JSON.stringify(this.daily_data)),s=Object.keys(e).filter(s=>{const i=e[s];return i.some(e=>+e.assessmentId===+t)});if(0===s.length)return;const i=(t,e,s)=>{const i={...t[e]};t[e]=i,this.$set(this.daily_data,s,t)};for(let o=0;o+e.assessmentId===+t);-1!==r&&i(n,r,a)}}},created(){this.handleScheduleDate()},watch:{"$route.query":{handler(){this.handleScheduleDate()},immediate:!0}},async mounted(){await this.customizeCalendarHeader(),await new Promise(t=>{this.getMonthSchedule();const e=()=>{this.loading?setTimeout(e,100):this.$nextTick(()=>{this.fillBlankCells(),t()})};e()}),this.$emit("select",this.daily_data[this.sel_day])}},wg=fg,yg=(s("9fe6"),Object(p["a"])(wg,bg,vg,!1,null,null,null)),xg=yg.exports;y()(yg,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"],VTextField:ut["a"]});var kg=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.contents&&t.count>=0?s("div",{attrs:{id:"level-test-index"}},[t.$store.state.process_type===t.ASSESSMENT?[s("div",{staticClass:"assessment-contents"},[s("progress-bar",{staticStyle:{"margin-bottom":"3.2vh",height:"auto",background:"white","z-index":"2",position:"relative"},attrs:{currentValue:t.count+1,totalValue:t.questionCount,goPrev:t.goPrev,goNext:t.goNext,isPrevClicked:t.isPrevClicked,next_disabled:t.next_disabled,isAssessment:!0}}),s("div",{staticClass:"d-flex flex-column pos-rel",staticStyle:{height:"calc(100% - 10vh)"}},[t.showFontControl?s("div",{staticClass:"pos-abs d-flex cursor-pointer",staticStyle:{transform:"translate(50%, 0)"},attrs:{id:"font-level-ctl"}},[s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(-.2)}}},[t._v("\n A\n ")]),s("div",{directives:[{name:"ripple",rawName:"v-ripple",value:{class:"info--text"},expression:"{ class: 'info--text' }"}],on:{click:function(e){return t.setSize(.2)}}},[t._v("\n A\n ")])]):t._e(),t.count>=0?s("v-window",{staticClass:"content-container",attrs:{touchless:""},model:{value:t.windowModel,callback:function(e){t.windowModel=e},expression:"windowModel"}},t._l(t.contents,(function(e,i){return s("v-window-item",{key:"level-quiz-"+e.id,staticClass:"width-100 height-100"},["m1"===e.type&&i===t.count?s("M1",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"m2"===e.type&&i===t.count?s("M2",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"w1"===e.type&&i===t.count?s("W1",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"v1"===e.type&&i===t.count?s("V1",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,"get-tts":t.getWordAudioBlob}}):"word_arrange"===e.type&&i===t.count?s("WordArrange",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"word_arrange_new"===e.type&&i===t.count?s("WordArrangeNew",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"blank_inference_new"===e.type&&i===t.count?s("BlankInferenceNew",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"blank_inference"===e.type&&i===t.count?s("BlankInference",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"mtv1"===e.type&&i===t.count?s("Mtv1",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e}}):"mtv2"===e.type&&i===t.count?s("Mtv2",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,"get-tts":t.getWordAudioBlob}}):"P"===e.referenceType&&"SA"===e.type&&i===t.count?s("StoryBankSa",{ref:"currentModule-"+i,refInFor:!0,attrs:{use:"StoryAdvanced",data:t.$data,content:e,fontLevel:t.font_level}}):"P"===e.referenceType&&"SC"===e.type&&i===t.count?s("StoryBankSc",{ref:"currentModule-"+i,refInFor:!0,attrs:{use:"StoryAdvanced",data:t.$data,content:e,fontLevel:t.font_level}}):"P"===e.referenceType&&"WI"===e.type&&i===t.count?s("StoryBank1",{ref:"currentModule-"+i,refInFor:!0,attrs:{use:"StoryAdvanced",data:t.$data,content:e,fontLevel:t.font_level}}):"P"===e.referenceType&&"MC"===e.type&&i===t.count?s("StoryBank5",{ref:"currentModule-"+i,refInFor:!0,attrs:{use:"StoryAdvanced",data:t.$data,content:e,fontLevel:t.font_level}}):"B"===e.referenceType&&1===+e.bank_type&&i===t.count?s("Bank1",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,fontLevel:t.font_level}}):"B"===e.referenceType&&2===+e.bank_type&&i===t.count?s("Bank2",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,fontLevel:t.font_level}}):("B"===e.referenceType&&3===+e.bank_type||"P"===e.referenceType&&"FS"===e.type)&&i===t.count?s("Bank3",{ref:"currentModule-"+i,refInFor:!0,attrs:{use:"P"===e.referenceType?"StoryAdvanced":null,data:t.$data,content:e,fontLevel:t.font_level}}):"B"===e.referenceType&&4===+e.bank_type&&i===t.count?s("Bank4",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,fontLevel:t.font_level}}):"B"===e.referenceType&&5===+e.bank_type&&i===t.count?s("Bank5",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,fontLevel:t.font_level}}):("B"===e.referenceType&&6===+e.bank_type||"P"===e.referenceType&&"FL"===e.type)&&i===t.count?s("Bank6",{ref:"currentModule-"+i,refInFor:!0,attrs:{use:"P"===e.referenceType?"StoryAdvanced":null,data:t.$data,content:e,fontLevel:t.font_level}}):"B"===e.referenceType&&7===+e.bank_type&&i===t.count?s("Bank7",{ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,fontLevel:t.font_level}}):"G"===e.referenceType&&["MC","SA","CAB","SC"].includes(e.type)&&i===t.count?s("Grammar",{key:"grammar-"+e.id+"-"+i,ref:"currentModule-"+i,refInFor:!0,attrs:{data:t.$data,content:e,fontLevel:t.font_level,keyDownHandler:t.pcKeydown}}):t._e()],1)})),1):t._e(),t.count>=0&&t.contents[t.count]&&["dictation","speaking"].includes(t.contents[t.count].type)?s("div",{staticClass:"pos-abs width-100",class:"height-"+("speaking"===t.curType?50:0),staticStyle:{top:"50%"}},[s("t-t-s-audio",{attrs:{leveltest_data:t.$data}})],1):t._e()],1)],1),s("InformationModal",{attrs:{isOpen:t.dialog_start,questionCount:t.questionCount,dateString:t.assessmentInfo.formattedEndDate,pointCount:+t.assessmentInfo.cutoff},on:{start:t.handleTestStartClick}}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:t.dialog_move,callback:function(e){t.dialog_move=e},expression:"dialog_move"}},[s("v-card",[s("v-card-text",{staticClass:"text-center title",class:[t.is_mobile?"py-3":"py-4"],staticStyle:{"background-color":"#404040"}},[s("v-row",[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("span",{staticClass:"white--text"},[t._v("\n 레벨 테스트가 종료되었습니다."),s("br"),t._v("\n 레포트 분석결과로 넘어갑니다.\n ")])])],1)],1)],1)],1),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:0!==t.count&&!t.isPrevClicked,expression:"count !== 0 && !isPrevClicked"}],staticClass:"study-module-arrow pos-fix-i left",staticStyle:{"z-index":"31"},attrs:{text:"",icon:"",absolute:"",color:"grey","x-large":"",ripple:!1,disabled:t.next_disabled},on:{click:t.goPrev}},[s("v-icon",{style:"width:"+t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)+"px !important;",attrs:{size:t.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},[t._v(t._s(t.mdiChevronDoubleLeft))])],1),t.count+1===t.questionCount?s("button",{staticClass:"me-next-btn pos-fix-i white--text submit-btn",style:t.is_mobile?"right:3%;":"right:2%;",on:{click:t.handleSubmitButton}},[s("div",{staticClass:"d-flex align-center justify-center"},[s("b",{staticStyle:{"margin-left":"0.7rem"}},[t._v("제출")]),s("v-icon",{staticStyle:{"margin-left":"-0.7rem"},attrs:{color:"white",size:"36"}},[t._v(t._s(t.mdiChevronRight))])],1)]):t._e(),t.getScoringTimer>0?s("timer"):t._e(),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.count+1"+this.dateString.slice(e+1))}}},Ag=Tg,Ig=(s("c93f"),Object(p["a"])(Ag,$g,Sg,!1,null,null,null)),Dg=Ig.exports;y()(Ig,{VCard:at["a"],VDialog:ct["a"]});var Rg=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"sentence",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw;"},[s("div",[s("b",{staticClass:"font-weight-bold"},[t._v(t._s("다음 해석에 맞는 올바른 영문장을 고르세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-12vh sentence-body",staticStyle:{"margin-bottom":"2rem"},style:"font-size:"+(t.data.font_head-.3)+"vw;"},[s("span",{staticClass:"sentence-body-text",staticStyle:{"word-break":"break-word"}},[t._v("\n "+t._s(t.content.mean)+"\n ")])]),s("div",{staticClass:"selection-wrapper",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder align-center",staticStyle:{"align-content":"center"}},[t.data.is_ios?t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"1vh 0"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)})):t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0","margin-bottom":"2vh"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)}))],2)],1)])},Pg=[],Mg={name:"level-popquiz",components:{AutoText:Xt},props:["data","content","types"],data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null}},created(){},mounted(){null!==this.choiceAnswer&&this.selectPopquiz(null,this.choiceAnswer),this.$nextTick(()=>{this.data.dialog_start||"word_popquiz"!==this.content.type||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.isLevelTestStart"(t){t&&"word_popquiz"===this.content.type&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1}},computed:{rightIndex(){return this.content&&this.content.choices?this.content.choices.findIndex(t=>t===this.content.sentence):-1},count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"wrong grey--text",4:"correct grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null}},methods:{isNotUndfinedOrNull:O,togglePlayWord(){const t=this.$refs["popquiz-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.rightIndex;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t={seq:this.count+1,id:this.content.id,type:this.content.type,answer:this.popquiz_select,right:this.rightIndex,oxResult:O(this.popquiz_select)&&+this.rightIndex===+this.popquiz_select,sentence:this.content.sentence,mean:this.content.mean,choices:this.content.choices,result_html:this.calcResult().result_html};console.log("[M1] saving result:",t),this.data.result_data[this.count]=t,this.data.check_answer=!1},calcResult(){const t=this.content.id,e=this.content.type||"m1",s=this.content.mean||"",i=(this.content.sentence,this.content.choices||[]),o=this.rightIndex,a=O(this.popquiz_select)&&+this.popquiz_select,n=a===+o,r=t=>void 0===t||null===t?"":window.escape(String(t));let l="
";l+=`
${r(s)}
`;for(let p=0;p${r(e+t)}`:a!==p||n?`${r(e+t)}`:`${r(e+t)}`,p")}l+="
";const c="
다음 해석에 맞는 올바른 영문장을 고르세요.
",d=["class='r-s'",`data-i='${t}'`,`data-r='${n?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${r(s)}'`,`data-t='${e}'`];null!==a&&void 0!==a&&d.push(`data-s='${a}'`);const h=d.join(" "),u=`${c}${l}`;return{result_html:u}},pcKeydown(t){const e=Number(t.key);if(!(e>=1&&e<=4))return!1;this.selectPopquiz(null,e-1)},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select))}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){}},Eg=Mg,Bg=(s("e0d1"),Object(p["a"])(Eg,Rg,Pg,!1,null,null,null)),Ng=Bg.exports;y()(Bg,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"]});var qg=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"sentence",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw;"},[s("div",[s("b",{staticClass:"font-weight-bold"},[t._v(t._s("주어진 해석을 영문장으로 적으세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-12vh sentence-body",style:"font-size:"+(t.data.font_head-.3)+"vw;"},[s("span",{staticClass:"sentence-body-text",staticStyle:{"word-break":"break-word"}},[t._v("\n "+t._s(t.content.mean)+"\n ")])]),s("div",{staticClass:"selection-wrapper",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder align-center",staticStyle:{"align-content":"center",display:"flex","align-items":"center","justify-content":"center"}},[s("div",{staticClass:"LinedInput-wrapper"},[s("LinedInput",{ref:"linedInput",attrs:{placeholder:"",minCh:8,maxWidthPx:null,minWidthCh:12,name:"answer"},on:{enter:t.checkPopquiz},model:{value:t.inputText,callback:function(e){t.inputText=e},expression:"inputText"}})],1)])],1)])},Lg=[],zg=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"wrap",staticClass:"lined-input",on:{click:t.focusEditable}},[s("div",{ref:"lines",staticClass:"line-overlay",attrs:{"aria-hidden":"true"}}),s("div",{ref:"editable",staticClass:"fake-editable",attrs:{contenteditable:!t.disabled,inputmode:"latin","data-placeholder":t.placeholder,tabindex:"0",role:"textbox","aria-multiline":"true",spellcheck:"false"},on:{beforeinput:t.onBeforeInput,input:t.onEditableInput,paste:t.handlePaste,keydown:t.onKeydown,focus:t.onFocus,blur:t.onBlur,compositionstart:t.onCompStart,compositionupdate:t.onCompUpdate,compositionend:t.onCompEnd}}),t.name?s("input",{staticClass:"real-input",attrs:{type:"text",name:t.name,readonly:"",tabindex:"-1","aria-hidden":"true"},domProps:{value:t.currentValue}}):t._e()])},Og=[];const jg="​";var Vg={name:"LinedInput",props:{value:{type:String,default:""},placeholder:{type:String,default:"여기에 입력…"},name:{type:String,default:""},disabled:{type:Boolean,default:!1},expand:{type:String,default:"vertical",validator:t=>["vertical","both"].includes(t)},minWidthPx:{type:Number,default:null},minWidthCh:{type:Number,default:null},maxWidthPx:{type:Number,default:null},lineColor:{type:String,default:"rgba(0,0,0,0.22)"},lineThickness:{type:Number,default:1}},data(){return{currentValue:this.value||"",roObserver:null,mutationObserver:null,ioObserver:null,onResizeHandler:null,isComposing:!1,lastSafeValue:""}},watch:{value(t){t!==this.currentValue&&(this.currentValue=t||"",this.syncEditableFromModel(),this.redraw())}},mounted(){this.applyExpandModeBaseStyles(),this.syncEditableFromModel(),this.autoSize(),this.drawUnderlines(),this.installObservers();try{const t=this.$refs.editable;t&&t.addEventListener&&t.addEventListener("textInput",this.onTextInput,!1)}catch(t){}try{requestAnimationFrame(()=>{requestAnimationFrame(()=>this.redraw())})}catch(t){setTimeout(()=>this.redraw(),0)}document&&document.fonts&&document.fonts.ready&&document.fonts.ready.then(()=>this.redraw())},beforeDestroy(){this.roObserver&&this.roObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),this.ioObserver&&this.ioObserver.disconnect(),this.onResizeHandler&&window.removeEventListener("resize",this.onResizeHandler);try{const t=this.$refs.editable;t&&t.removeEventListener&&t.removeEventListener("textInput",this.onTextInput,!1)}catch(t){}},methods:{focusEditable(){if(this.disabled)return;const t=this.$refs.editable;if(t){t.textContent&&""!==t.textContent||(t.textContent=jg);try{t.focus()}catch(e){t.focus()}this.placeCaretAtEnd(t)}},placeCaretAtEnd(t){const e=window.getSelection(),s=document.createRange();s.selectNodeContents(t),s.collapse(!1),e.removeAllRanges(),e.addRange(s)},onCompStart(){this.isComposing=!0;const t=this.$refs.editable;t&&t.textContent===jg&&(t.textContent=""),t&&t.classList.remove("is-empty")},onCompUpdate(t){const e=this.$refs.editable;if(!e)return;const s=e.textContent||"";if(this.containsKorean(s)){const t=this.removeKorean(s);e.textContent=t.length?t:jg,this.currentValue=t,this.$emit("input",t),this.toggleEmptyClass(),this.placeCaretAtEnd(e)}},onCompEnd(){this.isComposing=!1,this.onEditableInput()},applyExpandModeBaseStyles(){const t=this.$refs.wrap;if(!t)return;const e=this.computeMinWidthPx();null!=e&&(t.style.minWidth=e+"px"),"vertical"===this.expand?(t.style.display="block",t.style.width="100%",t.style.maxWidth="100%"):(t.style.display="inline-block",t.style.width="auto",this.maxWidthPx&&(t.style.maxWidth=this.maxWidthPx+"px"))},onFocus(){this.autoSize(),this.drawUnderlines()},onBlur(){const t=this.$refs.editable;if(!t)return;t.textContent===jg&&(t.textContent="");const e=this.removeKorean(this.stripZWSP(t.textContent||""));t.textContent=e.length?e:"",this.currentValue=e,this.$emit("input",e),this.toggleEmptyClass(),this.redraw()},onKeydown(t){if(this.disabled)return void t.preventDefault();if("Enter"===t.key)return t.preventDefault(),void this.$emit("enter",t);if(t.isComposing||229===t.keyCode)return void t.preventDefault();const e=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Escape","Tab"];e.includes(t.key)||!t.key||1!==t.key.length||!this.containsKorean(t.key)&&this.isAscii(t.key)||t.preventDefault()},onBeforeInput(t){const e=t.inputType||"",s=null!=t.data?String(t.data):"";"insertCompositionText"!==e&&("insertText"!==e||!this.containsKorean(s)&&this.isAscii(s))||t.preventDefault()},onTextInput(t){const e=t&&null!=t.data?String(t.data):"";!this.containsKorean(e)&&this.isAscii(e)||t.preventDefault()},handlePaste(t){t.preventDefault();const e=(t.clipboardData||window.clipboardData).getData("text"),s=this.removeKorean(e);document.execCommand("insertText",!1,s)},onEditableInput(){if(this.disabled)return;const t=this.$refs.editable;if(!t)return;let e=t.textContent||"";e=this.stripZWSP(e),e=this.removeKorean(e),this.currentValue=e,t.textContent=e.length?e:jg,this.$emit("input",e),this.toggleEmptyClass(),this.placeCaretAtEnd(t),this.lastSafeValue=e,this.autoSize(),this.drawUnderlines()},stripZWSP(t){return t?t.replace(/\u200B/g,""):t},trimTrailingSpacesPerLine(t){return t?t.replace(/[ \t]+$/gm,""):t},isAscii(t){return/^[\x20-\x7E]*$/.test(t)},containsKorean(t){return/[\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF\uAC00-\uD7A3]/.test(t)},removeKorean(t){return t?t.replace(/[\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF\uAC00-\uD7A3]/g,""):t},autoSize(){const t=this.$refs.wrap,e=this.$refs.editable;if(t&&e)if(t.style.height="auto","vertical"===this.expand){const s=Math.ceil(e.scrollHeight);t.style.height=Math.max(s,this.lineHeightPx(e))+"px"}else{t.style.width="auto";const s=Math.ceil(e.scrollWidth),i=Math.ceil(e.scrollHeight),o=this.computeMinWidthPx();let a=Math.max(s,null!=o?o:0);this.maxWidthPx&&(a=Math.min(a,this.maxWidthPx)),t.style.width=a+"px",t.style.height=Math.max(i,this.lineHeightPx(e))+"px"}},drawUnderlines(){const t=this.$refs.editable,e=this.$refs.lines;if(!t||!e)return;const s=t=>t?t.replace(/\u200B/g,""):t,i=t=>Math.round(t);e.innerHTML="";const o=this.computeMinWidthPx()||0,a=t.getBoundingClientRect(),n=e.getBoundingClientRect();a.left,n.left;if(!a.width||!a.height)return void setTimeout(()=>this.redraw(),50);const r=document.createRange();r.selectNodeContents(t);const l=Array.from(r.getClientRects()).filter(t=>t.height>0&&t.width>0),c=this.lineHeightPx(t),d=a.top+c,h=i(d-n.top-this.lineThickness),u=s(t.textContent||"");if(!u.length){const t=document.createElement("div");return t.style.position="absolute",t.style.height="0",t.style.left="50%",t.style.transform="translateX(-50%)",t.style.top=h+"px",t.style.width=o+"px",t.style.borderBottom=`${this.lineThickness}px solid ${this.lineColor}`,t.style.pointerEvents="none",void e.appendChild(t)}const p=new Map;l.forEach(t=>{const e=Math.round(t.bottom),s=p.get(e);s?p.set(e,{bottom:Math.max(s.bottom,t.bottom),width:Math.max(s.width,t.width)}):p.set(e,{bottom:t.bottom,width:t.width})});const _=Array.from(p.values()).sort((t,e)=>t.bottom-e.bottom);_.forEach((t,s)=>{const a=0===s,r=a?h:i(t.bottom-n.top-this.lineThickness),l=a?Math.max(t.width,o):t.width,c=document.createElement("div");c.style.position="absolute",c.style.height="0",c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=r+"px",c.style.width=l+"px",c.style.borderBottom=`${this.lineThickness}px solid ${this.lineColor}`,c.style.pointerEvents="none",e.appendChild(c)})},redraw(){this.autoSize(),this.drawUnderlines()},syncEditableFromModel(){const t=this.$refs.editable,e=this.currentValue||"";t.textContent=e.length?e:jg,this.toggleEmptyClass()},toggleEmptyClass(){const t=this.$refs.editable,e=this.stripZWSP(t.textContent||"");0===e.length?t.classList.add("is-empty"):t.classList.remove("is-empty")},measureCharWidth(t){const e=document.createElement("span");e.textContent="0",e.style.visibility="hidden",e.style.font=getComputedStyle(t).font,t.appendChild(e);const s=e.getBoundingClientRect().width||8;return t.removeChild(e),s},lineHeightPx(t){const e=parseFloat(getComputedStyle(t).lineHeight);return isNaN(e)?24:e},computeMinWidthPx(){const t=null!=this.minWidthPx&&!isNaN(this.minWidthPx),e=null!=this.minWidthCh&&!isNaN(this.minWidthCh);if(!t&&!e)return null;let s=null;if(e){const t=this.$refs.editable,e=this.measureCharWidth(t);s=Math.ceil(this.minWidthCh*e)}return t&&null!=s?Math.max(this.minWidthPx,s):t?this.minWidthPx:s},installObservers(){const t=this.$refs.editable,e=this.$refs.wrap;t&&(this.roObserver=new ResizeObserver(()=>this.redraw()),this.roObserver.observe(t),this.roObserver.observe(e),this.mutationObserver=new MutationObserver(()=>this.redraw()),this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["style","class"]}),this.onResizeHandler=()=>this.redraw(),window.addEventListener("resize",this.onResizeHandler))}}},Fg=Vg,Gg=(s("594f"),Object(p["a"])(Fg,zg,Og,!1,null,"192bb9e4",null)),Wg=Gg.exports,Ug={name:"level-popquiz",components:{LinedInput:Wg},props:["data","content","types"],data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],inputText:"",isPlay:!1,playWordDelay:null,isInputFocused:!1,viewportResizeHandler:null,initialViewportHeight:null,viewportResizeDetected:!1,focusTimeout:null,get_vh:null}},created(){},mounted(){this.get_vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&this.setupKeyboardDetection(),null!==this.savedTextAnswer&&(this.inputText=this.savedTextAnswer),this.$nextTick(()=>{this.data.dialog_start||"word_popquiz"!==this.content.type||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown),document.addEventListener("focusin",this.onFocusIn,!0),document.addEventListener("focusout",this.onFocusOut,!0);try{requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.$refs.linedInput&&this.$refs.linedInput.redraw&&this.$refs.linedInput.redraw(),setTimeout(()=>{this.$refs.linedInput&&this.$refs.linedInput.focusEditable&&this.$refs.linedInput.focusEditable()},300)})})}catch(t){setTimeout(()=>{this.$refs.linedInput&&this.$refs.linedInput.redraw&&this.$refs.linedInput.redraw(),setTimeout(()=>{this.$refs.linedInput&&this.$refs.linedInput.focusEditable&&this.$refs.linedInput.focusEditable()},300)},0)}})},watch:{"$store.state.isLevelTestStart"(t){t&&"word_popquiz"===this.content.type&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1,this.inputText=this.savedTextAnswer||"",this.$nextTick(()=>{setTimeout(()=>{this.$refs.linedInput&&this.$refs.linedInput.redraw&&this.$refs.linedInput.redraw()},0)})}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null},savedTextAnswer(){return this.data.result_data[this.count]&&void 0!==this.data.result_data[this.count].text_answer?this.data.result_data[this.count].text_answer:null}},methods:{onFocusIn(t){if(!this.$store.state.is_mobile||"android"!==this.$store.state.platform)return;const e=this.$refs.linedInput&&this.$refs.linedInput.$el;e&&e.contains(t.target)&&(this.isInputFocused=!0,this.viewportResizeDetected=!1,this.focusTimeout&&clearTimeout(this.focusTimeout),this.focusTimeout=setTimeout(()=>{this.viewportResizeDetected||this.setupFallbackScroll()},500))},onFocusOut(t){if(!this.$store.state.is_mobile||"android"!==this.$store.state.platform)return;const e=this.$refs.linedInput&&this.$refs.linedInput.$el;if(!e)return;if(!e.contains(t.target))return;const s=t.relatedTarget;if(!s||!e.contains(s)){this.isInputFocused=!1;const t=document.getElementById("level-popquiz-wrapper");t&&(t.style.marginTop=""),this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null)}},setupKeyboardDetection(){this.initialViewportHeight=window.visualViewport?window.visualViewport.height:window.innerHeight,this.viewportResizeHandler=()=>{this.viewportResizeDetected=!0,this.handleKeyboardResize()},window.visualViewport&&"function"===typeof window.visualViewport.addEventListener&&window.visualViewport.addEventListener("resize",this.viewportResizeHandler)},handleKeyboardResize(){const t=this.$refs.linedInput&&this.$refs.linedInput.$el;if(!t)return;const e=t.getBoundingClientRect(),s=window.visualViewport?window.visualViewport.height:window.innerHeight;e.bottom>s&&t.scrollIntoView({behavior:"smooth",block:"center"})},setupFallbackScroll(){const t=this.$refs.linedInput&&this.$refs.linedInput.$el;if(!t)return;const e=document.getElementById("level-popquiz-wrapper");if(!e)return;const s=t.getBoundingClientRect(),i=this.get_vh?s.top/this.get_vh*100:s.top/(window.innerHeight||1)*100;if(i>=6){const t=-(i-5);e.style.marginTop=t+"vh"}},togglePlayWord(){const t=this.$refs["popquiz-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.content.answer;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t=function(t){return(t||"").toString().trim().replace(/\s+/g," ").toLowerCase()},e=t(this.inputText),s=t(this.content.sentence),i={seq:this.count+1,id:this.content.id,type:this.content.type,answer:e,right:s,oxResult:e===s,sentence:this.content.sentence,mean:this.content.mean,result_html:this.calcResult().result_html};this.data.result_data[this.count]=i,this.data.check_answer=!1},calcResult(){const t=this.content.id,e=this.content.type||"m2",s=this.content.mean||"",i=t=>(t||"").toString().trim().replace(/\s+/g," ").toLowerCase(),o=this.inputText||"",a=this.content.sentence||"",n=i(o)===i(a),r=t=>void 0===t||null===t?"":window.escape(String(t)),l="
주어진 해석을 영문장으로 적으세요.
";let c="";for(let p=0;p${r(t)}`:`${r(t)}`}let d=`
${r(s)}
${c}
`;const h=["class='r-s'",`data-i='${t}'`,`data-r='${n?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${r(s)}'`,`data-t='${e}'`].join(" "),u=`${l}${d}`;return{result_html:u}},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select))}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown),document.removeEventListener("focusin",this.onFocusIn,!0),document.removeEventListener("focusout",this.onFocusOut,!0),this.focusTimeout&&clearTimeout(this.focusTimeout),this.viewportResizeHandler&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeHandler)},destroyed(){}},Hg=Ug,Kg=(s("fb53"),Object(p["a"])(Hg,qg,Lg,!1,null,null,null)),Zg=Kg.exports;y()(Kg,{VRow:ht["a"]});var Yg=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"sentence",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw;"},[s("div",[s("b",{staticClass:"font-weight-bold"},[t._v(t._s("다음 영문장에 맞는 올바른 해석을 고르세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-12vh sentence-body",staticStyle:{"margin-bottom":"2rem"},style:"font-size:"+(t.data.font_head-.3)+"vw;"},[s("span",{staticClass:"sentence-body-text",staticStyle:{"word-break":"break-word"}},[t._v("\n "+t._s(t.content.sentence)+"\n ")])]),s("div",{staticClass:"selection-wrapper",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder align-center",staticStyle:{"align-content":"center"}},[t.data.is_ios?t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"1vh 0"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)})):t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0","margin-bottom":"2vh"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)}))],2)],1)])},Jg=[],Xg={name:"level-popquiz",components:{AutoText:Xt},props:["data","content","types"],data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null}},created(){},mounted(){null!==this.choiceAnswer&&this.selectPopquiz(null,this.choiceAnswer),this.$nextTick(()=>{this.data.dialog_start||"word_popquiz"!==this.content.type||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.isLevelTestStart"(t){t&&"word_popquiz"===this.content.type&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null},rightIndex(){const t=this.content&&this.content.choices?this.content.choices:[],e=this.content&&this.content.mean?this.content.mean:null;return null!==e?t.findIndex(t=>t===e):-1}},methods:{togglePlayWord(){const t=this.$refs["popquiz-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.rightIndex;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t={seq:this.count+1,id:this.content.id,type:this.content.type,answer:this.popquiz_select,right:this.rightIndex,oxResult:O(this.popquiz_select)&&+this.rightIndex===+this.popquiz_select,sentence:this.content.sentence,mean:this.content.mean,choices:this.content.choices,result_html:this.calcResult().result_html};"word_popquiz"===this.data.curType?t.sentence=this.content.word:t.sentence=this.content.sentence,this.data.result_data[this.count]=t,this.data.check_answer=!1},calcResult(){const t=this.content.id,e=this.content.type||"w1",s=(this.content.mean,this.content.sentence||""),i=this.content.choices||[],o=O(this.popquiz_select)&&+this.popquiz_select,a=this.rightIndex,n=o===+a,r=t=>void 0===t||null===t?"":window.escape(String(t));let l="
";l+=`
${r(s)}
`;for(let p=0;p${r(e+t)}`:o!==p||n?`${r(e+t)}`:`${r(e+t)}`,p")}l+="
";const c="
다음 영문장에 맞는 올바른 해석을 고르세요.
",d=["class='r-s'",`data-i='${t}'`,`data-r='${n?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${r(s)}'`,`data-t='${e}'`];null!==o&&void 0!==o&&d.push(`data-s='${o}'`);const h=d.join(" "),u=`${c}${l}`;return{result_html:u}},pcKeydown(t){const e=Number(t.key);if(!(e>=1&&e<=4))return!1;this.selectPopquiz(null,e-1)},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select))}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){}},Qg=Xg,tb=(s("9fc0"),Object(p["a"])(Qg,Yg,Jg,!1,null,null,null)),eb=tb.exports;y()(tb,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"]});var sb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"word assessment-v1",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"question-wrapper d-flex flex-column align-center justify-center height-100"},[s("div",{staticClass:"bank-question grammar-question min-h-7vh",style:"font-size:"+t.data.font_head+"vw; margin-bottom:1rem; height:max-content; overflow:hidden;"},[t._m(0)]),s("div",{staticClass:"bank-question grammar-question min-h-7vh d-flex align-center justify-center width-100 height-100",style:"font-size:"+(t.data.font_head+.7)+"vw;"},[t.content.img?s("div",{staticStyle:{"margin-right":"5%"},style:{width:t.successLoadImg?"18vw":"0",height:t.successLoadImg?"15vw":"0"}},[s("img",{staticClass:"width-100 height-100",staticStyle:{"object-fit":"contain"},attrs:{src:t.content.img,alt:t.content.word},on:{load:function(e){t.successLoadImg=!0},error:function(e){t.successLoadImg=!1,e.target.style.display="none"}}})]):t._e(),s("div",{staticClass:"font-weight-bold d-flex align-center height-100 width-100",class:{"border-ede thin-l":t.successLoadImg},staticStyle:{"max-width":"27%"},style:{paddingLeft:t.successLoadImg?"5%":"",justifyContent:t.successLoadImg?"flex-start":"center"}},[s("span",[t._v(t._s(t.content.word))]),t.blob?s("v-icon",{staticClass:"ml-3 play-icon",class:{"success--text":!t.isPlay&&t.blob,"cursor-pointer":t.blob},style:{color:t.isPlay||!t.blob?"#f1f1f1":""},attrs:{"x-large":""},on:{keydown:function(t){t.preventDefault()},click:t.togglePlayWord}},[t._v(t._s(t.mdi_play_circle))]):t._e()],1),t.blob?s("audio",{ref:"popquiz-audio-player",attrs:{src:t.blob},on:{ended:function(e){t.isPlay=!1}}}):t._e()])]),s("div",{staticClass:"selection-wrapper height-100",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder height-100",staticStyle:{"align-content":"center"}},[t.data.is_ios?t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0.5rem"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn word",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"d-inline-block"},[s("auto-text",{attrs:{maxFontSize:2,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)})):t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0.5rem 2rem"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn word",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.4,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)}))],2)],1)])},ib=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"font-weight-bold",staticStyle:{"font-size":"2rem"}},[s("span",[t._v("다음 단어에 맞는 올바른 뜻을 고르세요.")])])}],ob={name:"level-popquiz",components:{AutoText:Xt},props:{data:Object,content:{type:Object,default:()=>({type:"word_popquiz"})},types:Array,getTts:{type:Function,required:!0}},data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null,blob:null,successLoadImg:!1}},async mounted(){this.blob=await this.getTts(this.content),null!==this.choiceAnswer&&this.selectPopquiz(null,this.choiceAnswer),this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown),this.isPlay||this.data.dialog_start||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))})},watch:{"$store.state.isLevelTestStart"(t){t&&"v1"===this.content.type&&this.blob&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null}},methods:{isNotUndfinedOrNull:O,togglePlayWord(){const t=this.$refs["popquiz-audio-player"];t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.content.answer;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t=this.content.choices.findIndex(t=>t===this.content.mean),e={seq:this.count+1,id:this.content.id,type:this.content.type,answer:this.popquiz_select,sentence:this.content.word,right:t,oxResult:O(this.popquiz_select)&&t===+this.popquiz_select,choices:this.content.choices,result_html:this.calcResult().result_html};this.data.result_data[this.count]=e,this.data.check_answer=!1},calcResult(){const t=this.content.id,e=this.content.type||"word_popquiz",s=this.content.choices||[],i=this.content.mean||"",o=this.content.word||"",a=O(this.popquiz_select)&&+this.popquiz_select,n=s.findIndex(t=>t===i),r=n===a,l=t=>void 0===t||null===t?"":window.escape(String(t));let c="";c+="
",c+=`
${l(o)}
`;for(let _=0;_${l(e+t)}`:a!==_||r?`${l(e+t)}`:`${l(e+t)}`,_")}c+="
";const d="
다음 단어에 맞는 올바른 뜻을 고르세요.
",h=["class='r-s'",`data-i='${t}'`,`data-r='${r?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${l(o)}'`,`data-t='${e}'`];null!==a&&void 0!==a&&h.push(`data-s='${a}'`);const u=h.join(" "),p=`${d}${c}`;return{result_html:p}},pcKeydown(t){const e=Number(t.key);if(!(e>=1&&e<=4))return!1;this.selectPopquiz(null,e-1)},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e))}},beforeDestroy(){this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){}},ab=ob,nb=(s("eb2a"),Object(p["a"])(ab,sb,ib,!1,null,null,null)),rb=nb.exports;y()(nb,{VBtn:ot["a"],VCol:rt["a"],VIcon:jt["a"],VRow:ht["a"]});var lb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"matching-window in-study pos-abs-i left-0 right-0 top-0 bottom-0",attrs:{id:"level-matching-wrapper"}},[s("section",{staticClass:"question-wrapper",staticStyle:{height:"auto"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw; "},[s("div",[s("b",{staticClass:"font-weight-bold"},[t._v(t._s("다음 해석을 보고 순서에 맞게 문장을 완성하세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-12vh border-set-word-arrange",staticStyle:{width:"calc(100% - 23%)"},style:"font-size:"+(t.data.font_head-.3)+"vw;"},[s("div",[t._v("\n "+t._s(t.content.mean)+"\n ")])])]),s("v-sheet",{staticClass:"matching-main"},[s("v-row",{staticStyle:{height:"50%"}},[s("v-col",{staticClass:"pa-0 d-flex height-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{key:"at-"+t.content.id+"-1",attrs:{src:t.content.sentence,maxHeight:.29*t.$store.state.screen_height,maxFontSize:2.3}},[s("div",{staticClass:"height-100"},[s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center",class:[t.content.is_longchips?"d-block wb-all":"d-flex flex-row flex-wrap justify-center align-content-center wb-nm"],staticStyle:{"font-size":"inherit"}},[t._l(t.selected_words,(function(e,i){return[t.data.is_ios?[i==t.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",on:{touchstart:function(s){return t.subSelection(s,e,i)}}},[t._v(t._s(t.padSelection(e))+"\n ")]):s("span",{key:"matching-select-"+(i+1e3)},[t._v(t._s(t.padSelection(e)))])]:[i==t.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",on:{click:function(s){return t.subSelection(s,e,i)}}},[t._v(t._s(t.padSelection(e))+"\n ")]):s("span",{key:"matching-select-"+(i+1e3)},[t._v(t._s(t.padSelection(e)))])]]}))],2)])])],1)],1),s("v-row",{staticClass:"height-100"},[s("v-col",{staticClass:"pa-0 d-flex height-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"chips-wrapper py-0 text-center pos-rel ma-auto width-auto height-100 max-w-100 d-flex align-center justify-center align-content-center flex-wrap"},[[s("auto-text",{key:"at-"+t.count+"-3",attrs:{step:t.count,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:t.content.sentence,type:"chips",pa:.8,ma:.5,minWidth:4}},t._l(t.content.chips,(function(e,i){return s("v-chip",{key:"matching-choice-"+i,staticClass:"matching-select-btn text-center",class:[t.selected_keys.includes(i)?"visibility-hidden chip-"+t.count:"chip-"+t.count],staticStyle:{height:"auto !important"},attrs:{color:"grey",outlined:""},on:{click:function(s){return t.selectWord(s,e,i)}}},[t._v("\n "+t._s(e)+"\n ")])})),1)]],2)])],1)],1)],1)},cb=[],db={name:"word-arrange",components:{AutoText:Xt},props:["data","content"],data(){return{selected_keys:[],selected_words:[],ex_cmp_cnt:0,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null}},mounted(){this.$nextTick(()=>{if(null!==this.choiceAnswer)for(let t=0;t{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))})},computed:{count(){return this.data.count},checkAnswer(){return this.data.check_answer},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].selected_chips?{keys:this.data.result_data[this.count].selected_keys,words:this.data.result_data[this.count].selected_chips}:null}},methods:{togglePlayWord(){const t=this.$refs["matching-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},checkExChar(t,e,s){let i,o=t,a=s,n="";for(i=0;i0&&this.ex_cmp_cnt-1>=i||a.length>=this.content.ex_idx[i]&&(n+=this.content.ex_chr[i],a+=this.content.ex_chr[i],this.ex_cmp_cnt=this.ex_cmp_cnt+1);for(a+=o,o=n+o,i=0;i0&&this.ex_cmp_cnt-1>=i||a.length>=this.content.ex_idx[i]&&(o+=this.content.ex_chr[i],a+=this.content.ex_chr[i],this.ex_cmp_cnt=this.ex_cmp_cnt+1);this.selected_keys.push(e),this.selected_words.push(o)},selectWord:function(t,e,s){if(this.selected_keys.includes(s))return!1;let i=this.selected_words.join("");!this.content.is_longchips&&t?this.checkExChar(e,s,i):(this.selected_keys.push(s),this.selected_words.push(e))},subSelection:function(t,e,s){if(this.ex_cmp_cnt>0){let t=e.match(/[\.,\?!~\#\"\“\”:_\=\- \s]/gi);t&&(this.ex_cmp_cnt=this.ex_cmp_cnt-t.length)}this.selected_keys.pop(),this.selected_words.pop()},padSelection:function(t){let e=t.replace(/\s+/gi," ");return/[a-zA-Z0-9]/i.test(e.substr(-1))&&(e+=" "),e},checkMatching(){const t=t=>String(t||"").trim().replace(/\s+/g," ").toLowerCase().replace(/[^a-z0-9]/gi,""),e=this.content.sentence,s=this.selected_words.join(" "),i=t(e),o=t(s),a={seq:this.count+1,id:this.content.id,type:this.content.type,oxResult:i===o,sentence:this.content.sentence,mean:this.content.mean,selected_chips:this.selected_words,selected_keys:this.selected_keys,result_html:this.calcResult().result_html};this.data.result_data[this.count]=a,this.data.check_answer=!1},calcResult(){const t=this.content.id,e=this.content.type||"word_arrange",s=this.content.mean||"",i=(this.selected_words||[]).join(" ").trim(),o=String(this.content.sentence||""),a=t=>String(t||"").toLowerCase().replace(/[^a-z0-9]/gi,""),n=a(i)===a(o),r=t=>void 0===t||null===t?"":window.escape(String(t)),l=`
${r(s)}
`,c=o.split(/\s+/).filter(t=>t.length>0),d=(i||"").split(/\s+/).filter(t=>t.length>0);let h="";const u=Math.max(c.length,d.length)-1;for(let g=0;g<=u;g++){const t=d[g]||"",e=c[g]||"",s=t&&e&&a(t)===a(e),i=g${r(t)}${i}`:`${r(e)}${i}`}let p=`\n \n \n
\n \n ${h}
`;const _=["class='r-s tag-answer grey--text text--darken-1'",`data-i='${t}'`,`data-r='${n?"true":"false"}'`,"data-a='0'",`data-e='${r(s)}'`,`data-t='${e}'`].join(" "),m=`\n
다음 해석을 보고 순서에 맞게 문장을 완성하세요.
\n ${l}${p}`;return{result_html:m}}},created(){},beforeDestroy(){const t=this.$refs["matching-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay)},destroyed(){},watch:{checkAnswer(t){console.log(t,"checkAnswer"),t&&this.checkMatching()},count(t){this.selected_keys=[],this.selected_words=[],this.ex_cmp_cnt=0,this.isPlay=!1},"$store.state.isLevelTestStart"(t){t&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))}}},hb=db,ub=(s("75f1"),Object(p["a"])(hb,lb,cb,!1,null,null,null)),pb=ub.exports;y()(ub,{VChip:Me["a"],VCol:rt["a"],VRow:ht["a"],VSheet:Se["a"]});var _b=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"sentence",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw;"},[s("div",[s("b",{staticClass:"font-weight-bold"},[t._v(t._s("다음 해석을 보고 순서에 맞게 나열한 문장을 찾으세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-12vh sentence-body",staticStyle:{"margin-bottom":"2rem"},style:"font-size:"+(t.data.font_head-.3)+"vw;"},[s("span",{staticClass:"sentence-body-text",staticStyle:{"word-break":"break-word"}},[t._v("\n "+t._s(t.displayQuestion)+"\n ")])]),s("div",{staticClass:"selection-wrapper",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder align-center",staticStyle:{"align-content":"center"}},[t.data.is_ios?t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"1vh 0"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)})):t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0","margin-bottom":"2vh"},attrs:{cols:"12"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn text-left",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("span",{staticClass:"idx-content d-inline-block"},[s("auto-text",{attrs:{maxFontSize:1.3,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)}))],2)],1)])},mb=[],gb={name:"level-popquiz",components:{AutoText:Xt},props:["data","content","types"],data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null}},created(){},mounted(){null!==this.choiceAnswer&&this.selectPopquiz(null,this.choiceAnswer),this.$nextTick(()=>{this.data.dialog_start||"word_popquiz"!==this.content.type||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.isLevelTestStart"(t){t&&"word_popquiz"===this.content.type&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},displayQuestion(){return this.content.mean||this.content.sentence},answerIndex(){const t=this.content&&this.content.answer,e=t=>{const e=Number(t);return Number.isInteger(e)?e:null},s=e(t);if(null!==s&&s>=0)return s;const i=t=>(t||"").trim().replace(/\s+/g," "),o=i(this.content&&this.content.sentence),a=this.content&&this.content.choices||[],n=a.findIndex(t=>i(t)===o);return n>=0?n:-1},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null}},methods:{togglePlayWord(){const t=this.$refs["popquiz-audio-player"];t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.answerIndex;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){let t=+this.answerIndex;const e={seq:this.count+1,id:this.content.id,type:this.content.type,answer:this.popquiz_select,sentence:this.content.sentence,mean:this.content.mean,right:t,oxResult:O(this.popquiz_select)&&t===+this.popquiz_select,choices:this.content.choices,result_html:this.calcResult().result_html};this.data.result_data[this.count]=e,this.data.check_answer=!1},calcResult(){const t=this.content.id,e=this.content.type||"word_arrange_new",s=this.content.mean||"",i=(this.content.sentence,this.content.choices||[]),o=this.answerIndex,a=O(this.popquiz_select)&&+this.popquiz_select,n=a===+o,r=t=>void 0===t||null===t?"":window.escape(String(t));let l="
";l+=`
${r(s)}
`;for(let p=0;p${r(e+t)}`:a!==p||n?`${r(e+t)}`:`${r(e+t)}`,p")}l+="
";const c="
다음 해석을 보고 순서에 맞게 나열한 문장을 찾으세요.
",d=["class='r-s'",`data-i='${t}'`,`data-r='${n?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${r(s)}'`,`data-t='${e}'`];null!==a&&void 0!==a&&d.push(`data-s='${a}'`);const h=d.join(" "),u=`${c}${l}`;return{result_html:u}},pcKeydown(t){const e=Number(t.key);if(!(e>=1&&e<=5))return!1;this.selectPopquiz(null,e-1)},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select))}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){}},bb=gb,vb=(s("40ce"),Object(p["a"])(bb,_b,mb,!1,null,null,null)),fb=vb.exports;y()(vb,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"]});var wb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"word",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw;"},[s("div",[s("b",{staticClass:"font-weight-bold"},[t._v(t._s("주어진 해석을 참고하여 영문장의 빈칸을 완성하세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-12vh sentence-body",staticStyle:{"margin-bottom":"2rem"},style:"font-size:"+(t.data.font_head-.3)+"vw;",attrs:{id:"blank-sentence-body"}},[s("span",{staticClass:"sentence-body-text"},[t._v("\n "+t._s(t.content.mean)+"\n ")])]),s("div",{staticClass:"selection-wrapper height-100",style:"font-size:"+t.data.font_main+"vw"},[s("div",{staticClass:"answer-wrapper width-100 height-100 d-flex justify-center align-start flex-wrap pos-rel",staticStyle:{"padding-top":"3rem"}},[t.init_hint?s("div",{staticClass:"hint shadow-hint pos-abs top-0 left-0 width-100 height-100 text-center grey--text",staticStyle:{"padding-top":"3rem"}},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp1-"+i,staticClass:"pos-rel"},[t._v(t._s(e)),new RegExp("[a-zA-Z]").test(e)?s("span",{staticClass:"pos-abs bottom-0 left-0 u-s"}):t._e()])})),0):t._e(),t.show_hint?s("div",{staticClass:"hint real-hint pos-abs top-0 left-0 width-100 height-100 text-center",on:{click:function(e){t.show_hint=!1}}},[1==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp2-"+i,class:[t.hint_pos.includes(i)?"primary--text":"opacity-0"],domProps:{textContent:t._s(e)}})})):2==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp3-"+i,class:[t.hint_pos.includes(i)?e!=t.input_val[i]?"danger--text":"black--text":"opacity-0"],domProps:{textContent:t._s(e!=t.input_val[i]?t.input_val[i]:e)}})})):t._e()],2):t._e(),t.ox_show?s("div",{staticClass:"hint result pos-abs top-0 left-0 width-100 height-100 text-center white"},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp4-"+i,class:[t.wrong_pos.includes(i)?"danger--text":"black--text"],domProps:{textContent:t._s(e)}})})),0):t._e(),s("textarea",{ref:"wki-"+t.count,staticClass:"width-100 height-100",staticStyle:{resize:"none"},style:{visibility:t.init_hint?"hidden":"visible"},attrs:{id:"wki-"+t.count,autocomplete:"off",inputmode:"text",autocapitalize:"off",autocorrect:"off",disabled:t.ox_show,spellcheck:!1},on:{keydown:t.keydownKeyboard,keypress:t.keypressKeyboard,paste:t.forbiddenPaste,keyup:t.keyupKeyboardPC,blur:function(e){return t.blurInput(t.count)},focus:t.handleFocus,click:t.handleClick,touchend:t.handleClick,beforeinput:t.onBeforeInput,compositionstart:t.onCompStart,compositionupdate:t.onCompUpdate,compositionend:t.onCompEnd,input:t.onAndroidInput}})])])])},yb=[],xb={name:"blank-inference",components:{},props:{data:Object,content:{type:Object,default:()=>({type:"word_popquiz"})},types:Array},data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null,cur_question_txt:null,cur_answer_txt:null,cur_empty_pos:[],input_val:"",init_hint:!1,show_hint:!1,hint_type:null,hint_pos:[],charpos:0,cur_input:null,wrong_pos:[],isComposing:!1,blockNextDeleteAfterSpaceNav:!1,lastSpaceNavTs:0,timeoutFirstDelay:null,viewportResizeHandler:null,isInputFocused:!1,lastClickPosition:0,initialViewportHeight:null,viewportResizeDetected:!1,focusTimeout:null,get_vh:null}},created(){this.initWritingKData()},mounted(){this.get_vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&this.setupKeyboardDetection(),this.$nextTick(()=>{this.data.dialog_start||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.setFirst(),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.isLevelTestStart"(t){t&&"word_popquiz"===this.content.type&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1,this.input_val="",this.wrong_pos=[],this.init_hint=!1,this.show_hint=!1,this.hint_type=null,this.hint_pos=[],this.charpos=0,this.isComposing=!1,this.blockNextDeleteAfterSpaceNav=!1,this.lastSpaceNavTs=0,this.cur_input=null,this.timeoutFirstDelay=null,this.initWritingKData(),this.isAndroid&&this.$nextTick(()=>{this.cur_input=document.getElementById("wki-"+this.count),this.cur_input&&(this.cur_input.value=this.input_val)})}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},isIOS(){const t=this.$store&&this.$store.state;return t&&"ios"===t.platform},isAndroid(){const t=this.$store&&this.$store.state;return t&&"android"===t.platform},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null}},methods:{handleCaretToEnd(){this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count));const t=this.cur_input;if(t&&!this.isInputFocused){const e=Array.from(t.value||""),s=this.cur_question_txt?this.cur_question_txt.length:0;let i=-1;for(let t=0;t=s)for(let t=s-1;t>=0;t--)if(this.cur_empty_pos.includes(t)){o=t+1;break}this.charpos=Math.min(o,s),this.setCursorPos(t,this.charpos,this.charpos)}},initWritingKData(){const t=this.content.sentence||"Olivia, open your eyes!";this.cur_question_txt=t;const e=40;let s=t.trim().split(" "),i=/^[A-Za-z]{1}:/.test(t);if(1===s.length)s[0]=s[0].replace(/[A-Za-z]/g,"_");else{const t=s.length;let o=[],a=Math.ceil(t*(e/100)),n=0;while(a>0&&n<=1e3){const e=Math.floor(Math.random()*t),r=/[A-Za-z]/.test(s[e]);n++,i&&0===e||!r||(o.includes(e)||(o.push(e),s[e]=s[e].replace(/[A-Za-z]/g,"_"),a--))}}const o=s.join(" "),a=Array.from(o);this.cur_empty_pos=a.map((t,e)=>"_"===t?e:-1).filter(t=>-1!==t),this.cur_answer_txt=o,this.input_val=o,console.log("WritingK 데이터 변환:",{sentence:t,length:t.length,empty_pos:this.cur_empty_pos,masked:o})},togglePlayWord(){const t=this.$refs["popquiz-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.content.answer;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t=this.input_val===this.cur_question_txt,e=[];for(let i=0;ivoid 0===t||null===t?"":window.escape(String(t)),r="
주어진 해석을 참고하여 영문장의 빈칸을 완성하세요.
",l=this.cur_answer_txt||"";let c="";for(let p=0;p${n(t)}`:`${n(t)}`:c+=`${n(t)}`}let d=`
${n(s)}
${c}
`;const h=["class='r-s'",`data-i='${t}'`,`data-r='${i?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${n(s)}'`,`data-t='${e}'`].join(" "),u=`${r}${d}`;return{result_html:u}},pcKeydown(t){return!1},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select))},setFirst(){this.init_hint=!0,this.timeoutFirstDelay=setTimeout(()=>{this.timeoutFirst()},3e3)},timeoutFirst(){this.init_hint=!1,this.$nextTick(()=>{this.cur_input=document.getElementById("wki-"+this.count),this.cur_input&&requestAnimationFrame(()=>{if(this.cur_input.value=this.input_val,this.cur_input.focus(),this.isAndroid){const t=this.cur_empty_pos&&this.cur_empty_pos.length>0?this.cur_empty_pos[0]:0;return this.charpos=t,void this.remaskFromRaw(this.cur_input.value||"",!0)}this.setCursorPos(this.cur_input,this.cur_empty_pos[0],this.cur_empty_pos[0])})})},keydownKeyboard(t){if(this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count)),this.isAndroid){const e=this.cur_input,s=e?this.getCursorPos(e).start:0,i=this.cur_empty_pos&&this.cur_empty_pos.length>0?this.cur_empty_pos[0]:0;if(" "===t.key||"Space"===t.code||32===t.keyCode){t.preventDefault();const i=e&&e.value||"";let o=null;for(let t of this.cur_empty_pos)if(t>s&&"_"===i[t]){o=t;break}if(null===o||void 0===o){const t=this.cur_empty_pos.find(t=>"_"===i[t]);void 0!==t&&(o=t)}const a=this.cur_question_txt.length;return null!==o&&void 0!==o||(o=Math.min(s+1,a)),this.charpos=Math.min(o,a),e&&this.setCursorPos(e,this.charpos,this.charpos),this.blockNextDeleteAfterSpaceNav=!0,void(this.lastSpaceNavTs=Date.now())}if("Delete"===t.key||"Delete"===t.code||46===t.keyCode||"Backspace"===t.key&&t.shiftKey)return t.preventDefault(),void t.stopPropagation();if(/^[0-9]$/.test(String(t.key||""))||"number"===typeof t.keyCode&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105))return t.preventDefault(),void t.stopPropagation();if("Backspace"===t.key){t.preventDefault();let e=this.charpos-1;if(!this.cur_empty_pos.includes(e)){let t=null;for(let e=this.cur_empty_pos.length-1;e>=0;e--){const s=this.cur_empty_pos[e];if(s=0;s--){const e=this.cur_empty_pos[s];if(e=0;t--){const s=this.cur_empty_pos[t];if(s0?this.cur_empty_pos[0]:0;return this.charpos=t,this.setCursorPos(this.cur_input,t,t),!1}const s=this.cur_input.value||"",i=this.cur_answer_txt||"";return this.cur_input.value=s.substr(0,e)+i[e]+s.substr(e+1),this.input_val=this.cur_input.value,this.charpos=e,this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1}if(this.charpos>=s)return void t.preventDefault();if(37==e)return this.charpos>0&&(this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)),!1;if((32==e||39==e)&&this.charpos<=s){let t=null;for(let e of this.cur_empty_pos)if(e>this.charpos&&"_"===this.cur_input.value[e]){t=e;break}return null!==t&&(this.charpos=t),this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1}if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(!this.cur_empty_pos.includes(this.charpos))return t.preventDefault(),!1;const i=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];if(i.includes(t.key)){let e=this.cur_input.value;const i=this.charpos;this.cur_input.value=e.substr(0,i)+t.key+e.substr(i+1),this.input_val=this.cur_input.value;let o=null;for(let t of this.cur_empty_pos)if(t>i){o=t;break}return null===o&&(o=Math.min(i+1,s)),this.charpos=o,this.setCursorPos(this.cur_input,this.charpos,this.charpos),!0}return t.preventDefault(),t.stopPropagation(),!1},keypressKeyboard(t){if(!this.isAndroid)return t.preventDefault(),t.stopPropagation(),!1},forbiddenPaste(t){return t.preventDefault(),t.stopPropagation(),!1},keyupKeyboardPC(t){if(this.isAndroid)return;this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count));let e=t.which||t.keyCode,s=this.cur_question_txt.length;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(229===e||"229"===e||t.isComposing)return t.preventDefault(),t.stopPropagation(),this.cur_input&&(this.cur_input.value=this.input_val),!1;if(13==e)return;if(8==e)return t.preventDefault(),t.stopPropagation(),this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1;let i=Array.from(this.cur_input.value||"");const o=i.some((t,e)=>s<=e||!!this.cur_empty_pos.includes(e)&&!new RegExp("[A-Za-z_]","g").test(t));if(o){const t=this.cur_answer_txt||"";return this.input_val=t,this.cur_input&&(this.cur_input.value=t),!1}},onCompStart(){(this.isAndroid||this.isIOS)&&(this.isComposing=!0)},onCompUpdate(){},onCompEnd(){if(this.isAndroid||this.isIOS){this.isComposing=!1;const t=this.cur_input?this.cur_input.value:"";setTimeout(()=>this.remaskFromRaw(t,!0),0)}},onAndroidInput(t){if(!this.isAndroid&&!this.isIOS)return;this.cur_input=t.target;const e=String(this.cur_input.value||""),s=this.input_val||this.cur_answer_txt||"",i=Array.from(e),o=Array.from(s);for(const n of this.cur_empty_pos){const t=i[n];t&&/[A-Za-z]/.test(t)&&(o[n]=t)}const a=o.join("");this.remaskFromRaw(a,!1)},onBeforeInput(t){if(!this.isAndroid&&!this.isIOS)return;this.cur_input||(this.cur_input=t.target);const e=t.inputType,s=t.data||"";if(("insertText"===e||"insertCompositionText"===e)&&s&&!/^[A-Za-z]$/.test(s))return void t.preventDefault();if("insertText"===e&&/[A-Za-z]/.test(s)){const e=this.cur_input,i=e?this.getCursorPos(e).start:0;if(!this.cur_empty_pos.includes(i))return void t.preventDefault();const o=e&&e.value||"",a=o.substr(0,i)+s+o.substr(i+1);e.value=a,this.input_val=a;const n=this.findNextEditablePos(i,a,{requireEmpty:!0}),r=null!==n&&void 0!==n?n:Math.min(i+1,this.cur_question_txt.length);return this.charpos=Math.min(r,this.cur_question_txt.length),this.setCursorPos(e,this.charpos,this.charpos),setTimeout(()=>this.setCursorPos(e,this.charpos,this.charpos),0),void t.preventDefault()}if("insertCompositionText"===e&&/^[A-Za-z]+$/.test(s)){const e=this.cur_input;let i=e?this.getCursorPos(e).start:0;const o=this.cur_question_txt.length;let a=e&&e.value||"";for(const t of Array.from(s)){let e=this.cur_empty_pos.includes(i)?i:this.findNextEditablePos(i,a,{inclusive:!0,requireEmpty:!0,wrap:!1});if(null===e||void 0===e)break;a=a.substr(0,e)+t+a.substr(e+1),i=Math.min(e+1,o)}e&&(e.value=a),this.input_val=a;const n=this.findNextEditablePos(i-1,a,{inclusive:!1,requireEmpty:!0,wrap:!1}),r=null!==n&&void 0!==n?n:Math.min(i,o);return this.charpos=Math.min(r,o),e&&this.setCursorPos(e,this.charpos,this.charpos),e&&setTimeout(()=>this.setCursorPos(e,this.charpos,this.charpos),0),void t.preventDefault()}if("deleteContentForward"===e)return void t.preventDefault();if("insertFromPaste"===e||"insertFromDrop"===e||"insertReplacementText"===e)return void t.preventDefault();if(("insertText"===e||"insertCompositionText"===e)&&/\s/.test(s)){t.preventDefault();const e=this.cur_input,s=e&&e.value||"",i=e?this.getCursorPos(e).start:0,o=this.cur_question_txt.length,a=this.findNextEditablePos(i,s,{requireEmpty:!0}),n=null===a||void 0===a?Math.min((this.charpos||0)+1,o):a;return this.charpos=Math.min(n,o),void(e&&this.setCursorPos(e,this.charpos,this.charpos))}const i=this.blockNextDeleteAfterSpaceNav&&Date.now()-this.lastSpaceNavTs<300;return"deleteContentBackward"===e&&i||"insertText"===e&&i&&s&&!/[A-Za-z0-9]/.test(s)?(t.preventDefault(),void(this.blockNextDeleteAfterSpaceNav=!1)):void 0},remaskFromRaw(t,e){const s=t.match(/[A-Za-z]/g)||[],i=(this.input_val||"").match(/[A-Za-z]/g)||[],o=s.length-i.length;if(o>0){const t=Array.from(this.input_val||this.cur_answer_txt);let e=this.charpos;if(this.cur_empty_pos.includes(e)||(e=this.cur_empty_pos.find(t=>t>=this.charpos),void 0===e&&(e=this.cur_empty_pos[this.cur_empty_pos.length-1])),void 0!==e){t[e]=s[s.length-1];const i=t.join("");this.input_val=i,this.cur_input&&(this.cur_input.value=i);let o=null;for(let t of this.cur_empty_pos)if(t>e){o=t;break}null===o&&(o=Math.min(e+1,this.cur_question_txt.length)),this.charpos=o}}else if(o<0){const t=Array.from(this.input_val||this.cur_answer_txt);let e=this.charpos-1;if(this.cur_empty_pos.includes(e)||(e=this.cur_empty_pos.find(t=>tthis.setCursorPos(this.cur_input,this.charpos,this.charpos),0):this.setCursorPos(this.cur_input,this.charpos,this.charpos)},handleFocus(){this.isInputFocused=!0,this.handleCaretToEnd(),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&(this.viewportResizeDetected=!1,this.focusTimeout&&clearTimeout(this.focusTimeout),this.focusTimeout=setTimeout(()=>{this.viewportResizeDetected||this.setupFallbackScroll()},500))},handleClick(t){this.isInputFocused=!0;const e=t.target;if(this.isAndroid){const t=this.getCursorPos(e).start,s=Math.max(0,Math.min(t,this.cur_question_txt.length)),i=this.tapToCaretTarget(e,s);this.lastClickPosition=i,this.charpos=i,this.cur_input=e,this.setCursorPos(e,i,i),setTimeout(()=>this.setCursorPos(e,i,i),0)}else setTimeout(()=>{const t=this.getCursorPos(e).start,s=Math.max(0,Math.min(t,this.cur_question_txt.length)),i=this.tapToCaretTarget(e,s);this.lastClickPosition=i,this.charpos=i,this.cur_input=e,this.setCursorPos(e,i,i)},0)},blurInput(t){this.isInputFocused=!1,this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null);const e=document.getElementById("level-popquiz-wrapper");e&&(e.style.marginTop="")},setCursorPos(t,e,s){if(arguments.length<3&&(s=e),t.selectionStart)this.isAndroid?(t.selectionStart=e,t.selectionEnd=s,t.focus(),setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},0)):setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},1);else if(t.createTextRange){let i=t.createTextRange();i.moveStart("character",e),i.collapse(),i.moveEnd("character",s-e),i.select()}},tapToCaretTarget(t,e){const s=t&&t.value||"",i=this.cur_question_txt?this.cur_question_txt.length:0,o=Math.max(0,Math.min(e,i));if(Array.isArray(this.cur_empty_pos)&&this.cur_empty_pos.includes(o)&&"_"===s[o])return o;let a=-1;if(Array.isArray(this.cur_empty_pos))for(let n=Math.min(o,i-1);n>=0;n--)if(this.cur_empty_pos.includes(n)&&"_"!==s[n]){a=n;break}if(a>=0){const t=Math.min(a+1,i);if(Array.isArray(this.cur_empty_pos)&&this.cur_empty_pos.length>0){const e=this.cur_empty_pos.find(e=>e>=t&&"_"===s[e]);if(void 0!==e)return e;for(let i=this.cur_empty_pos.length-1;i>=0;i--){const e=this.cur_empty_pos[i];if(e0){const t=this.cur_empty_pos.find(t=>"_"===s[t]);return void 0!==t?t:this.cur_empty_pos[0]}return 0},getCursorPos(t){let e,s,i,o,a,n=0,r=0;return"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd?(n=t.selectionStart,r=t.selectionEnd):(s=document.selection.createRange(),s&&s.parentElement()==t&&(o=t.value.length,e=t.value.replace(/\r\n/g,"\n"),i=t.createTextRange(),i.moveToBookmark(s.getBookmark()),a=t.createTextRange(),a.collapse(!1),i.compareEndPoints("StartToEnd",a)>-1?n=r=o:(n=-i.moveStart("character",-o),n+=e.slice(0,n).split("\n").length-1,i.compareEndPoints("EndToEnd",a)>-1?r=o:(r=-i.moveEnd("character",-o),r+=e.slice(0,r).split("\n").length-1)))),{start:n,end:r}},koreanReplace(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t;return e.test(s)&&(s=s.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi,(t,e)=>"")),s},findNextEditablePos(t,e,s={}){const{inclusive:i=!1,requireEmpty:o=!0,wrap:a=!0}=s,n=this.cur_question_txt?this.cur_question_txt.length:0,r="string"===typeof e?e:"",l=i?t:t+1;for(let c=l;c{this.viewportResizeDetected=!0,this.handleKeyboardResize()},window.visualViewport&&"function"===typeof window.visualViewport.addEventListener&&window.visualViewport.addEventListener("resize",this.viewportResizeHandler)},handleKeyboardResize(){const t=document.getElementById("wki-"+this.count);if(!t)return;const e=document.getElementById("blank-sentence-body");if(e)e.scrollIntoView({behavior:"smooth",block:"start"});else{const e=t.getBoundingClientRect(),s=window.visualViewport?window.visualViewport.height:window.innerHeight;e.bottom>s&&t.scrollIntoView({behavior:"smooth",block:"center"})}},setupFallbackScroll(){const t=document.getElementById("wki-"+this.count);if(!t)return;const e=document.getElementById("level-popquiz-wrapper");if(!e)return;const s=t.getBoundingClientRect(),i=s.top/this.get_vh*100;if(i>=11){const t=-(i-10);e.style.marginTop=t+"vh"}}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.focusTimeout&&clearTimeout(this.focusTimeout),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown),this.timeoutFirstDelay&&clearTimeout(this.timeoutFirstDelay),this.viewportResizeHandler&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeHandler)},destroyed(){}},kb=xb,Cb=(s("7672"),Object(p["a"])(kb,wb,yb,!1,null,null,null)),$b=Cb.exports,Sb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"word assessment-blank-inference-new",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw;"},[s("div",[s("b",{staticClass:"font-weight-bold"},[t._v(t._s("제시된 철자에 맞게 어휘를 넣어 문장을 완성하세요."))])])]),s("div",{staticClass:"bank-question grammar-question d-flex align-center justify-center min-h-12vh sentence-body",staticStyle:{"margin-bottom":"2rem"},style:"font-size:"+(t.data.font_head-.3)+"vw;",attrs:{id:"blank-new-sentence-body"}},[s("span",{staticClass:"sentence-body-text"},[t._v("\n "+t._s(t.content.mean)+"\n ")])]),s("div",{staticClass:"selection-wrapper height-100",style:"font-size:"+t.data.font_main+"vw"},[s("div",{staticClass:"answer-wrapper width-100 height-100 d-flex justify-center align-start flex-wrap pos-rel",staticStyle:{"padding-top":"3rem"}},[t.init_hint?s("div",{staticClass:"hint shadow-hint pos-abs top-0 left-0 width-100 height-100 text-center grey--text",staticStyle:{"padding-top":"3rem"}},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp1-"+i,staticClass:"pos-rel"},[t._v(t._s(e)),new RegExp("[a-zA-Z]").test(e)&&i!==t.first_alpha_pos?s("span",{staticClass:"pos-abs bottom-0 left-0 u-s"}):t._e()])})),0):t._e(),t.show_hint?s("div",{staticClass:"hint real-hint pos-abs top-0 left-0 width-100 height-100 text-center",on:{click:function(e){t.show_hint=!1}}},[1==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp2-"+i,class:[t.hint_pos.includes(i)?"primary--text":"opacity-0"],domProps:{textContent:t._s(e)}})})):2==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp3-"+i,class:[t.hint_pos.includes(i)?e!=t.input_val[i]?"danger--text":"black--text":"opacity-0"],domProps:{textContent:t._s(e!=t.input_val[i]?t.input_val[i]:e)}})})):t._e()],2):t._e(),t.ox_show?s("div",{staticClass:"hint result pos-abs top-0 left-0 width-100 height-100 text-center white"},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp4-"+i,class:[t.wrong_pos.includes(i)?"danger--text":"black--text"],domProps:{textContent:t._s(e)}})})),0):t._e(),s("textarea",{ref:"wki-"+t.count,staticClass:"width-100 height-100",staticStyle:{resize:"none"},style:{visibility:t.init_hint?"hidden":"visible"},attrs:{id:"wki-"+t.count,autocomplete:"off",inputmode:"text",autocapitalize:"off",autocorrect:"off",disabled:t.ox_show,spellcheck:!1},on:{keydown:t.keydownKeyboard,keypress:t.keypressKeyboard,paste:t.forbiddenPaste,keyup:t.keyupKeyboardPC,blur:function(e){return t.blurInput(t.count)},focus:t.handleFocus,click:t.handleClick,touchend:t.handleClick,beforeinput:t.onBeforeInput,compositionstart:t.onCompStart,compositionupdate:t.onCompUpdate,compositionend:t.onCompEnd,input:t.onAndroidInput}})])])])},Tb=[],Ab={name:"level-popquiz",components:{},props:{data:Object,content:{type:Object,default:()=>({type:"word_popquiz"})},types:Array},data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null,cur_question_txt:null,cur_answer_txt:null,cur_empty_pos:[],input_val:"",init_hint:!1,show_hint:!1,hint_type:null,hint_pos:[],charpos:0,cur_input:null,wrong_pos:[],first_alpha_pos:null,isComposing:!1,blockNextDeleteAfterSpaceNav:!1,lastSpaceNavTs:0,allowCompLatin:!1,blockImeUntil:0,timeoutFirstDelay:null,viewportResizeHandler:null,isInputFocused:!1,lastClickPosition:0,initialViewportHeight:null,viewportResizeDetected:!1,focusTimeout:null,get_vh:null,justReceivedEnter:!1,suppressCommitAfterEnterUntil:0}},created(){this.initWritingKData()},mounted(){this.get_vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&(this.setupKeyboardDetection(),this.$nextTick(()=>{const t=document.getElementById("wki-"+this.count);t&&t.addEventListener&&t.addEventListener("textInput",this.onTextInput,!1)})),this.$nextTick(()=>{this.data.dialog_start||this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750)),this.setFirst(),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.isLevelTestStart"(t){t&&"word_popquiz"===this.content.type&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1,this.input_val="",this.wrong_pos=[],this.init_hint=!1,this.show_hint=!1,this.hint_type=null,this.hint_pos=[],this.charpos=0,this.isComposing=!1,this.blockNextDeleteAfterSpaceNav=!1,this.lastSpaceNavTs=0,this.cur_input=null,this.timeoutFirstDelay=null,this.initWritingKData(),this.isAndroid&&this.$nextTick(()=>{this.cur_input=document.getElementById("wki-"+this.count),this.cur_input&&(this.cur_input.value=this.input_val)})}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},isIOS(){const t=this.$store&&this.$store.state;return t&&t.platform?"ios"===String(t.platform).toLowerCase():"undefined"!==typeof navigator&&/iphone|ipad|ipod/i.test(navigator.userAgent||"")},isAndroid(){const t=this.$store&&this.$store.state;if(t&&t.platform){const e=String(t.platform).toLowerCase();return"android"===e||"aos"===e}return"undefined"!==typeof navigator&&/android/i.test(navigator.userAgent||"")},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null}},methods:{sanitizeAfterEnter(){const t=this.cur_input||document.getElementById("wki-"+this.count);if(!t)return;const e=String(t.value||""),s=e.replace(/[\r\n]+/g,"");if(s!==e){const e=this.input_val||this.cur_answer_txt||"";t.value=e}this.setCursorPos(t,this.charpos,this.charpos)},handleCaretToEnd(){this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count));const t=this.cur_input;if(t&&!this.isInputFocused){const e=Array.from(t.value||""),s=this.cur_question_txt?this.cur_question_txt.length:0;let i=-1;for(let t=0;t=s)for(let t=s-1;t>=0;t--)if(this.cur_empty_pos.includes(t)){o=t+1;break}this.charpos=Math.min(o,s),this.setCursorPos(t,this.charpos,this.charpos)}},initWritingKData(){const t=this.content.sentence||"Olivia, open your eyes!";this.cur_question_txt=t;const e=40;let s=t.trim().split(" ");const i=/^[A-Za-z]{1}:/.test(t),o=t=>{const e=Array.from(t);let s=!1;for(let i=0;i0&&r<=1e3){const e=Math.floor(Math.random()*t),l=/[A-Za-z]/.test(s[e]);r++,i&&0===e||!l||(a.includes(e)||(a.push(e),s[e]=o(s[e]),n--))}}const a=s.join(" "),n=Array.from(a);this.cur_empty_pos=n.map((t,e)=>"_"===t?e:-1).filter(t=>-1!==t),this.cur_answer_txt=a,this.input_val=a,this.first_alpha_pos=null,console.log("WritingK 데이터 변환:",{sentence:t,length:t.length,empty_pos:this.cur_empty_pos,masked:a})},togglePlayWord(){const t=this.$refs["popquiz-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.content.answer;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t=this.input_val===this.cur_question_txt,e=[];for(let i=0;ivoid 0===t||null===t?"":window.escape(String(t)),r="
제시된 철자에 맞게 어휘를 넣어 문장을 완성하세요.
",l=this.cur_answer_txt||"";let c="";for(let p=0;p${n(t)}`:`${n(t)}`:c+=`${n(t)}`}let d=`
${n(s)}
${c}
`;const h=["class='r-s'",`data-i='${t}'`,`data-r='${a?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${n(s)}'`,`data-t='${e}'`].join(" "),u=`${r}${d}`;return{result_html:u}},pcKeydown(t){return!1},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select))},setFirst(){this.init_hint=!0,this.timeoutFirstDelay=setTimeout(()=>{this.timeoutFirst()},3e3)},timeoutFirst(){this.init_hint=!1,this.$nextTick(()=>{this.cur_input=document.getElementById("wki-"+this.count),this.cur_input&&requestAnimationFrame(()=>{if(this.cur_input.value=this.input_val,this.cur_input.focus(),this.isAndroid){const t=this.cur_empty_pos&&this.cur_empty_pos.length>0?this.cur_empty_pos[0]:0;return this.charpos=t,void this.remaskFromRaw(this.cur_input.value||"",!0)}this.setCursorPos(this.cur_input,this.cur_empty_pos[0],this.cur_empty_pos[0])})})},keydownKeyboard(t){if(this.init_hint)return;this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count));const e=this.cur_input;e&&(this.isAndroid||this.isIOS?this.handleTouchKeydown(t,e):this.handleDesktopKeydown(t,e))},handleTouchKeydown(t,e){const s=e&&e.value||"",i=e?this.getCursorPos(e).start:0,o=this.cur_question_txt.length;if("Enter"!==t.key&&"Enter"!==t.code&&13!==t.keyCode||(this.justReceivedEnter=!0,this.suppressCommitAfterEnterUntil=Date.now()+350,setTimeout(()=>this.sanitizeAfterEnter(),0)),"Delete"===t.key||"Delete"===t.code||46===t.keyCode||"Backspace"===t.key&&t.shiftKey)return t.preventDefault(),void t.stopPropagation();if(/^[0-9]$/.test(String(t.key||""))||"number"===typeof t.keyCode&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105))return t.preventDefault(),void t.stopPropagation();if(" "===t.key||"Space"===t.code||32===t.keyCode){t.preventDefault();let a=null;for(let t of this.cur_empty_pos)if(t>i&&"_"===s[t]){a=t;break}if(null===a||void 0===a){const t=this.cur_empty_pos.find(t=>"_"===s[t]);void 0!==t&&(a=t)}return null!==a&&void 0!==a||(a=Math.min(i+1,o)),this.charpos=Math.min(a,o),this.setCursorPos(e,this.charpos,this.charpos),this.blockNextDeleteAfterSpaceNav=!0,void(this.lastSpaceNavTs=Date.now())}if("Backspace"!==t.key)this.blockNextDeleteAfterSpaceNav=!1;else{if(t.preventDefault(),t.stopPropagation(),!e||!s)return void(this.blockNextDeleteAfterSpaceNav=!1);let i=this.charpos-1;if(!this.cur_empty_pos.includes(i)){let t=null;for(let e=this.cur_empty_pos.length-1;e>=0;e--){const s=this.cur_empty_pos[e];if(s0?this.cur_empty_pos[0]:0;return this.charpos=t,this.setCursorPos(e,t,t),void(this.blockNextDeleteAfterSpaceNav=!1)}}if(void 0!==i&&"_"!==this.input_val[i]){const t=Array.from(this.input_val);t[i]="_";const s=t.join("");this.input_val=s,e.value=s,this.charpos=i,this.setCursorPos(e,i,i)}else{let t=null;for(let e=this.cur_empty_pos.length-1;e>=0;e--){const s=this.cur_empty_pos[e];if(s0?this.cur_empty_pos[0]:0;this.charpos=s,this.setCursorPos(e,s,s)}this.blockNextDeleteAfterSpaceNav=!1}},handleDesktopKeydown(t,e){if(t.defaultPrevented)return;if(t.repeat)return void t.preventDefault();this.show_hint&&(this.show_hint=!1);let s=t.which||t.keyCode;if(229===s||t.isComposing)return t.preventDefault(),t.stopPropagation(),!1;let i=this.cur_question_txt.length;if(91===s)return void t.preventDefault();if(this.charpos=this.getCursorPos(e).start,8==s||"Backspace"==t.code||"Backspace"==t.key){if(t.preventDefault(),t.stopPropagation(),this.charpos<=0)return!1;let s=null;for(let t=this.cur_empty_pos.length-1;t>=0;t--){const e=this.cur_empty_pos[t];if(e=i)return void t.preventDefault();if(37==s)return this.charpos>0&&(this.charpos-=1,this.setCursorPos(e,this.charpos,this.charpos)),!1;if((32==s||39==s)&&this.charpos<=i){let t=null;for(let s of this.cur_empty_pos)if(s>this.charpos&&"_"===e.value[s]){t=s;break}return null!==t&&void 0!==t&&(this.charpos=t),this.setCursorPos(e,this.charpos,this.charpos),!1}if(46==s)return t.preventDefault(),t.stopPropagation(),!1;if(!this.cur_empty_pos.includes(this.charpos))return t.preventDefault(),!1;const o=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];if(o.includes(t.key)){let s=e.value;const o=this.charpos;e.value=s.substr(0,o)+t.key+s.substr(o+1),this.input_val=e.value;let a=null;for(let t of this.cur_empty_pos)if(t>o){a=t;break}return null===a&&(a=Math.min(o+1,i)),this.charpos=a,this.setCursorPos(e,this.charpos,this.charpos),!0}return t.preventDefault(),t.stopPropagation(),!1},keypressKeyboard(t){if(!this.isAndroid&&!this.isIOS)return t.preventDefault(),t.stopPropagation(),!1},forbiddenPaste(t){return t.preventDefault(),t.stopPropagation(),!1},keyupKeyboardPC(t){if(this.isAndroid||this.isIOS)return;this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count));let e=t.which||t.keyCode,s=this.cur_question_txt.length;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(229===e||"229"===e||t.isComposing)return t.preventDefault(),t.stopPropagation(),this.cur_input.value=this.input_val,!1;if(13==e)return;if(8==e)return t.preventDefault(),t.stopPropagation(),this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1;let i=Array.from(this.cur_input.value||""),o=i.filter((t,e)=>s<=e||(!(!this.cur_empty_pos.includes(e)||new RegExp("[A-Za-z_]","g").test(t))||void 0));if(o.length>0){const t=this.cur_answer_txt||"";return this.input_val=t,this.cur_input.value=t,!1}},onCompStart(){(this.isAndroid||this.isIOS)&&(this.isComposing=!0)},onCompUpdate(){},onCompEnd(){if(this.isAndroid||this.isIOS){this.isComposing=!1,this.allowCompLatin=!1,this.blockImeUntil=0;const t=this.cur_input?this.cur_input.value:"";setTimeout(()=>this.remaskFromRaw(t,!0),0)}},onAndroidInput(t){if(!this.isAndroid&&!this.isIOS)return;this.cur_input=t.target;const e=String(this.cur_input.value||"");if(Date.now()this.setCursorPos(n,this.charpos,this.charpos),20),this.justReceivedEnter&&(this.justReceivedEnter=!1,this.sanitizeAfterEnter())},onTextInput(t){if(Date.now()this.sanitizeAfterEnter(),0)),("insertText"===e||"insertCompositionText"===e)&&s&&!/^[A-Za-z]$/.test(s))return void t.preventDefault();if(("insertText"===e||"insertCompositionText"===e)&&Date.now()0){const t=Array.from(this.input_val||this.cur_answer_txt);let e=this.charpos;if(this.cur_empty_pos.includes(e)||(e=this.cur_empty_pos.find(t=>t>=this.charpos),void 0===e&&(e=this.cur_empty_pos[this.cur_empty_pos.length-1])),void 0!==e){t[e]=s[s.length-1];const i=t.join("");this.input_val=i,this.cur_input&&(this.cur_input.value=i);let o=null;for(let t of this.cur_empty_pos)if(t>e){o=t;break}null===o&&(o=Math.min(e+1,this.cur_question_txt.length)),this.charpos=o}}else if(o<0){const t=Array.from(this.input_val||this.cur_answer_txt);let e=this.charpos-1;if(!this.cur_empty_pos.includes(e)){let t=null;for(let e=this.cur_empty_pos.length-1;e>=0;e--){const s=this.cur_empty_pos[e];if(s{this.cur_input&&this.setCursorPos(this.cur_input,this.charpos,this.charpos)};e?setTimeout(a,0):a()},handleFocus(){this.isInputFocused=!0,this.handleCaretToEnd(),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&(this.viewportResizeDetected=!1,this.focusTimeout&&clearTimeout(this.focusTimeout),this.focusTimeout=setTimeout(()=>{this.viewportResizeDetected||this.setupFallbackScroll()},500))},handleClick(t){this.isInputFocused=!0;const e=t.target;if(this.isAndroid){const t=this.getCursorPos(e).start,s=Math.max(0,Math.min(t,this.cur_question_txt.length)),i=this.tapToCaretTarget(e,s);this.lastClickPosition=i,this.charpos=i,this.cur_input=e,this.setCursorPos(e,i,i),setTimeout(()=>this.setCursorPos(e,i,i),0)}else setTimeout(()=>{const t=this.getCursorPos(e).start,s=Math.max(0,Math.min(t,this.cur_question_txt.length)),i=this.tapToCaretTarget(e,s);this.lastClickPosition=i,this.charpos=i,this.cur_input=e,this.setCursorPos(e,i,i)},0)},blurInput(t){this.isInputFocused=!1,this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null);const e=document.getElementById("level-popquiz-wrapper");e&&(e.style.marginTop="")},setCursorPos(t,e,s){if(arguments.length<3&&(s=e),t.selectionStart)this.isAndroid?(t.selectionStart=e,t.selectionEnd=s,t.focus(),setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},0)):setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},1);else if(t.createTextRange){let i=t.createTextRange();i.moveStart("character",e),i.collapse(),i.moveEnd("character",s-e),i.select()}},tapToCaretTarget(t,e){const s=t&&t.value||"",i=this.cur_question_txt?this.cur_question_txt.length:0,o=Math.max(0,Math.min(e,i));if(Array.isArray(this.cur_empty_pos)&&this.cur_empty_pos.includes(o)&&"_"===s[o])return o;let a=-1;if(Array.isArray(this.cur_empty_pos))for(let n=Math.min(o,i-1);n>=0;n--)if(this.cur_empty_pos.includes(n)&&"_"!==s[n]){a=n;break}if(a>=0){const t=Math.min(a+1,i);if(Array.isArray(this.cur_empty_pos)&&this.cur_empty_pos.length>0){const e=this.cur_empty_pos.find(e=>e>=t&&"_"===s[e]);if(void 0!==e)return e;for(let i=this.cur_empty_pos.length-1;i>=0;i--){const e=this.cur_empty_pos[i];if(e0){const t=this.cur_empty_pos.find(t=>"_"===s[t]);return void 0!==t?t:this.cur_empty_pos[0]}return 0},getCursorPos(t){let e,s,i,o,a,n=0,r=0;return"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd?(n=t.selectionStart,r=t.selectionEnd):(s=document.selection.createRange(),s&&s.parentElement()==t&&(o=t.value.length,e=t.value.replace(/\r\n/g,"\n"),i=t.createTextRange(),i.moveToBookmark(s.getBookmark()),a=t.createTextRange(),a.collapse(!1),i.compareEndPoints("StartToEnd",a)>-1?n=r=o:(n=-i.moveStart("character",-o),n+=e.slice(0,n).split("\n").length-1,i.compareEndPoints("EndToEnd",a)>-1?r=o:(r=-i.moveEnd("character",-o),r+=e.slice(0,r).split("\n").length-1)))),{start:n,end:r}},koreanReplace(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t;return e.test(s)&&(s=s.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi,(t,e)=>"")),s},findNextEditablePos(t,e,s={}){const{inclusive:i=!1,requireEmpty:o=!0,wrap:a=!0}=s,n=this.cur_question_txt?this.cur_question_txt.length:0,r="string"===typeof e?e:"",l=i?t:t+1;for(let c=l;c{this.viewportResizeDetected=!0,this.handleKeyboardResize()},window.visualViewport&&"function"===typeof window.visualViewport.addEventListener&&window.visualViewport.addEventListener("resize",this.viewportResizeHandler)},handleKeyboardResize(){const t=document.getElementById("wki-"+this.count);if(!t)return;const e=document.getElementById("blank-new-sentence-body");if(e)e.scrollIntoView({behavior:"smooth",block:"start"});else{const e=t.getBoundingClientRect(),s=window.visualViewport?window.visualViewport.height:window.innerHeight;e.bottom>s&&t.scrollIntoView({behavior:"smooth",block:"center"})}},setupFallbackScroll(){const t=document.getElementById("wki-"+this.count);if(!t)return;const e=document.getElementById("level-popquiz-wrapper");if(!e)return;const s=t.getBoundingClientRect(),i=s.top/this.get_vh*100;if(i>=11){const t=-(i-10);e.style.marginTop=t+"vh"}}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.focusTimeout&&clearTimeout(this.focusTimeout),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown),this.timeoutFirstDelay&&clearTimeout(this.timeoutFirstDelay),this.viewportResizeHandler&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeHandler);const e=document.getElementById("wki-"+this.count);e&&e.removeEventListener&&e.removeEventListener("textInput",this.onTextInput,!1)},destroyed(){}},Ib=Ab,Db=(s("4542"),Object(p["a"])(Ib,Sb,Tb,!1,null,null,null)),Rb=Db.exports,Pb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"word assessment-mtv1",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"question-wrapper d-flex flex-column align-center justify-center height-100"},[s("div",{staticClass:"bank-question grammar-question min-h-7vh",style:"font-size:"+t.data.font_head+"vw; margin-bottom:1rem; height:max-content; overflow:hidden;"},[t._m(0)]),s("div",{staticClass:"bank-question grammar-question min-h-7vh d-flex align-center justify-center width-100 height-100",style:"font-size:"+(t.data.font_head+.7)+"vw;"},[t.content.img?s("div",{staticStyle:{"margin-right":"5%"},style:{width:t.successLoadImg?"18vw":"0",height:t.successLoadImg?"15vw":"0"}},[s("img",{staticClass:"width-100 height-100",staticStyle:{"object-fit":"contain"},attrs:{src:t.content.img,alt:t.content.word},on:{load:function(e){t.successLoadImg=!0},error:function(e){t.successLoadImg=!1,e.target.style.display="none"}}})]):t._e(),s("div",{staticClass:"font-weight-bold d-flex align-center height-100 width-100",class:{"border-ede thin-l":t.successLoadImg},staticStyle:{"max-width":"27%"},style:{paddingLeft:t.successLoadImg?"5%":"",justifyContent:t.successLoadImg?"flex-start":"center"}},[s("span",[t._v(t._s(t.content.mean))])])])]),s("div",{staticClass:"selection-wrapper height-100",style:"font-size:"+t.data.font_main+"vw"},[s("v-row",{staticClass:"padder height-100",staticStyle:{"align-content":"center"}},[t.data.is_ios?t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0.5rem"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn word",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{touchstart:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"d-inline-block idx-content"},[s("auto-text",{attrs:{maxFontSize:2,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)})):t._l(t.content.choices,(function(e,i){return s("v-col",{key:"example-"+i,staticStyle:{padding:"0.5rem 2rem"},attrs:{cols:"6"}},[s("v-btn",{key:"popquiz-select-"+i,staticClass:"selection-btn word",class:t.setClass(i),attrs:{outlined:"",elevation:"0",block:"","x-large":"",ripple:!1},on:{click:function(e){return t.selectPopquiz(e,i)}}},[s("span",{staticClass:"d-inline-block idx-content"},[s("auto-text",{attrs:{maxFontSize:1.4,maxHeight:.09*t.$store.state.screen_height,src:e}},[s("b",[t._v(t._s(e))])])],1)])],1)}))],2)],1)])},Mb=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"font-weight-bold",staticStyle:{"font-size":"2rem"}},[s("span",[t._v("다음 뜻에 맞는 올바른 단어를 고르세요.")])])}],Eb={name:"mtv1",components:{AutoText:Xt},props:{data:Object,content:{type:Object,default:()=>({type:"word_popquiz"})},types:Array},data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,successLoadImg:!1}},created(){},mounted(){null!==this.choiceAnswer&&this.selectPopquiz(null,this.choiceAnswer),this.$nextTick(()=>{this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null}},methods:{isNotUndfinedOrNull:O,getPopquizClass(t){let e=0,s=this.content.answer;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t=this.content.choices.findIndex(t=>t===this.content.word),e={seq:this.count+1,id:this.content.id,type:this.content.type,answer:this.popquiz_select,sentence:this.content.word,right:t,oxResult:O(this.popquiz_select)&&t===+this.popquiz_select,choices:this.content.choices,result_html:this.calcResult().result_html};e.sentence=this.content.word,this.data.result_data[this.count]=e,this.data.check_answer=!1},calcResult(){const t=this.content.id,e=this.content.type||"mtv1",s=this.content.mean||"",i=this.content.choices||[],o=this.content.choices?this.content.choices.findIndex(t=>t===this.content.word):-1,a=O(this.popquiz_select)&&+this.popquiz_select,n=a===+o,r=t=>void 0===t||null===t?"":window.escape(String(t));let l="
";l+=`
${r(s)}
`;for(let p=0;p${r(e+t)}`:a!==p||n?`${r(e+t)}`:`${r(e+t)}`,p")}l+="
";const c="
다음 뜻에 맞는 올바른 단어를 고르세요.
",d=["class='r-s'",`data-i='${t}'`,`data-r='${n?"true":"false"}'`,`data-a='${+this.content.seq+1}'`,`data-e='${r(s)}'`,`data-t='${e}'`];null!==a&&void 0!==a&&d.push(`data-s='${a}'`);const h=d.join(" "),u=`${c}${l}`;return{result_html:u}},pcKeydown(t){const e=Number(t.key);if(!(e>=1&&e<=4))return!1;this.selectPopquiz(null,e-1)},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e))}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){}},Bb=Eb,Nb=(s("7689"),Object(p["a"])(Bb,Pb,Mb,!1,null,null,null)),qb=Nb.exports;y()(Nb,{VBtn:ot["a"],VCol:rt["a"],VRow:ht["a"]});var Lb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"word",attrs:{id:"level-popquiz-wrapper"}},[s("div",{staticClass:"question-wrapper d-flex flex-column align-center justify-center height-100"},[s("div",{staticClass:"bank-question grammar-question min-h-7vh",style:"font-size:"+t.data.font_head+"vw; margin-bottom:1rem; height:max-content; overflow:hidden;"},[t._m(0)]),s("div",{staticClass:"bank-question grammar-question min-h-7vh d-flex align-center justify-center width-100 height-100",style:"font-size:"+(t.data.font_head+.7)+"vw;"},[t.content.img?s("div",{staticStyle:{"margin-right":"5%"},style:{width:t.successLoadImg?"18vw":"0",height:t.successLoadImg?"15vw":"0"}},[s("img",{staticClass:"width-100 height-100",staticStyle:{"object-fit":"contain"},attrs:{src:t.content.img,alt:t.content.word},on:{load:function(e){t.successLoadImg=!0},error:function(e){t.successLoadImg=!1,e.target.style.display="none"}}})]):t._e(),s("div",{staticClass:"font-weight-bold d-flex align-center height-100 width-100",class:{"border-ede thin-l":t.successLoadImg},staticStyle:{"max-width":"27%"},style:{paddingLeft:t.successLoadImg?"5%":"",justifyContent:t.successLoadImg?"flex-start":"center"}},[s("span",[t._v(t._s(t.content.mean))]),t.blob?s("v-icon",{staticClass:"ml-3 play-icon",class:{"success--text":!t.isPlay&&t.blob,"cursor-pointer":t.blob},style:{color:t.isPlay||!t.blob?"#f1f1f1":""},attrs:{"x-large":""},on:{keydown:function(t){t.preventDefault()},click:t.togglePlayWord}},[t._v(t._s(t.mdi_play_circle))]):t._e()],1),t.blob?s("audio",{ref:"popquiz-audio-player",attrs:{src:t.blob},on:{ended:function(e){t.isPlay=!1}}}):t._e()])]),s("div",{staticClass:"selection-wrapper height-100",style:"font-size:"+t.data.font_main+"vw"},[s("div",{staticClass:"answer-wrapper width-100 height-100 d-flex justify-center align-start flex-wrap pos-rel"},[t.init_hint?s("div",{staticClass:"hint shadow-hint pos-abs top-0 left-0 width-100 height-100 text-center grey--text"},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp1-"+i,staticClass:"pos-rel"},[t._v(t._s(e)),new RegExp("[a-zA-Z]").test(e)?s("span",{staticClass:"pos-abs bottom-0 left-0 u-s"}):t._e()])})),0):t._e(),t.show_hint?s("div",{staticClass:"hint real-hint pos-abs top-0 left-0 width-100 height-100 text-center",on:{click:function(e){t.show_hint=!1}}},[1==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp2-"+i,class:[t.hint_pos.includes(i)?"primary--text":"opacity-0"],domProps:{textContent:t._s(e)}})})):2==t.hint_type?t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp3-"+i,class:[t.hint_pos.includes(i)?e!=t.input_val[i]?"danger--text":"black--text":"opacity-0"],domProps:{textContent:t._s(e!=t.input_val[i]?t.input_val[i]:e)}})})):t._e()],2):t._e(),t.ox_show?s("div",{staticClass:"hint result pos-abs top-0 left-0 width-100 height-100 text-center white"},t._l(Array.from(t.cur_question_txt||""),(function(e,i){return s("span",{key:"tmp4-"+i,class:[t.wrong_pos.includes(i)?"danger--text":"black--text"],domProps:{textContent:t._s(e)}})})),0):t._e(),s("textarea",{ref:"wki-"+t.count,staticClass:"width-100 height-100",staticStyle:{resize:"none"},attrs:{id:"wki-"+t.count,autocomplete:"off",inputmode:"latin",autocapitalize:"off",autocorrect:"off",disabled:t.ox_show,spellcheck:!1},on:{keydown:t.keydownKeyboard,keypress:t.keypressKeyboard,paste:t.forbiddenPaste,keyup:t.keyupKeyboardPC,blur:function(e){return t.blurInput(t.count)},focus:t.handleFocus,click:t.handleClick,touchend:t.handleClick,beforeinput:t.onBeforeInput,compositionstart:t.onCompStart,compositionupdate:t.onCompUpdate,compositionend:t.onCompEnd,input:t.onAndroidInput}})])])])},zb=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"font-weight-bold",staticStyle:{"font-size":"2rem"}},[s("span",[t._v("주어진 한글 뜻에 맞게 단어를 적으세요.")])])}],Ob={name:"level-popquiz",components:{},props:{data:Object,content:{type:Object,default:()=>({type:"mtv2"})},types:Array,getTts:{type:Function,required:!0}},data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:Lt["U"],isPlay:!1,playWordDelay:null,timeoutFirstDelay:null,cur_question_txt:null,cur_answer_txt:null,cur_empty_pos:[],input_val:"",init_hint:!1,show_hint:!1,hint_type:null,hint_pos:[],charpos:0,cur_input:null,wrong_pos:[],isComposing:!1,blockNextDeleteAfterSpaceNav:!1,lastSpaceNavTs:0,viewportResizeHandler:null,isInputFocused:!1,lastClickPosition:0,initialViewportHeight:null,viewportResizeDetected:!1,focusTimeout:null,get_vh:null,blob:null,successLoadImg:!1}},created(){this.initWritingKData()},async mounted(){this.blob=await this.getTts(this.content),this.get_vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&(this.setupKeyboardDetection(),this.$nextTick(()=>{const t=document.getElementById("wki-"+this.count);t&&t.addEventListener&&t.addEventListener("textInput",this.onTextInput,!1)})),this.$nextTick(()=>{!this.data.dialog_start&&this.blob&&(this.isPlay||(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))),this.setFirst(),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{"$store.state.isLevelTestStart"(t){t&&"mtv2"===this.content.type&&this.blob&&!this.isPlay&&(this.playWordDelay=setTimeout(()=>{this.playWordDelay&&clearTimeout(this.playWordDelay),this.togglePlayWord()},750))},checkAnswer(t){console.log(t,"checkAnswer"),t&&(this.doc_bind&&(document.removeEventListener("keydown",this.pcKeydown),this.doc_bind=!1),this.checkPopquiz())},popquiz_select(t){console.log("watch popquiz_select",t)},count(t){console.log("watch count"),this.popquiz_select=null,this.ox_show=!1,this.ox_right=!1,this.isPlay=!1,this.input_val="",this.wrong_pos=[],this.init_hint=!1,this.show_hint=!1,this.hint_type=null,this.hint_pos=[],this.charpos=0,this.initWritingKData()}},computed:{count(){return this.data.count},grade(){return this.data.changed_grade?this.data.changed_grade:this.data.testGrade},checkAnswer(){return this.data.check_answer},setClass(){return t=>{let e="";const s=this.getPopquizClass(t),i={1:"select",2:"correct grey--text",3:"select",4:"wrong grey--text"};return e=i[s]||"grey--text",e}},choiceAnswer(){return this.data.result_data[this.count]&&null!==this.data.result_data[this.count].choice_answer?this.data.result_data[this.count].choice_answer:null},isIOS(){const t=this.$store&&this.$store.state;return t&&"ios"===t.platform},isAndroid(){const t=this.$store&&this.$store.state;return t&&"android"===t.platform}},methods:{prevEditablePos(t){if(!Array.isArray(this.cur_empty_pos)||0===this.cur_empty_pos.length)return;let e=t-1;while(e>=0){if(this.cur_empty_pos.includes(e))return e;e-=1}},handleCaretToEnd(){this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count));const t=this.cur_input;if(t&&!this.isInputFocused){const e=Array.from(t.value||""),s=this.cur_question_txt?this.cur_question_txt.length:0;let i=-1;for(let t=0;t=s)for(let t=s-1;t>=0;t--)if(this.cur_empty_pos.includes(t)){o=t+1;break}this.charpos=Math.min(o,s),this.setCursorPos(t,this.charpos,this.charpos)}},initWritingKData(){this.cur_question_txt=String(this.content.word||"");const t=Array.from(this.cur_question_txt||"");this.cur_empty_pos=t.map((t,e)=>/^[A-Za-z]$/.test(t)?e:-1).filter(t=>-1!==t);const e=t.map(t=>/[A-Za-z]/.test(t)?"_":" "===t?" ":t).join("");this.cur_answer_txt=e,this.input_val=e,console.log("WritingK 데이터 변환:",{word:this.content.word,length:this.content.word.length,empty_pos:this.cur_empty_pos,masked:e})},togglePlayWord(){if(!this.blob)return;const t=this.$refs["popquiz-audio-player"];console.log(t,"audio"),t&&(this.isPlay?(t.pause(),t.currentTime=0):t.play(),this.isPlay=!this.isPlay)},getPopquizClass(t){let e=0,s=this.content.answer;return null!==this.popquiz_select&&Number(t)==Number(this.popquiz_select)?e=this.ox_show?this.ox_right?2:3:1:Number(t)==Number(s)&&this.ox_show&&(e=4),e},checkPopquiz(){const t=this.input_val===this.cur_question_txt,e=[];for(let i=0;ivoid 0===t||null===t?"":window.escape(String(t)),r="
주어진 한글 뜻에 맞게 단어를 적으세요.
";let l="";for(let u=0;u${n(t)}`:`${n(t)}`}let c=`
${n(s)}
${l}
`;const d=["class='r-s'",`data-i='${t}'`,`data-r='${a?"true":"false"}'`,"data-a='0'",`data-e='${n(s)}'`,`data-t='${e}'`].join(" "),h=`${r}${c}`;return{result_html:h}},pcKeydown(t){return!1},selectPopquiz(t,e){this.doc_bind&&(this.popquiz_select=Number(e),console.log("selectPopquiz",this,this.popquiz_select))},setFirst(){this.init_hint=!0,this.timeoutFirstDelay=setTimeout(()=>{this.timeoutFirst()},3e3)},timeoutFirst(){this.cur_input=document.getElementById("wki-"+this.count),this.cur_input&&(this.cur_input.value=this.input_val,this.cur_input.focus(),this.setCursorPos(this.cur_input,this.cur_empty_pos[0],this.cur_empty_pos[0])),this.init_hint=!1},keydownKeyboard(t){if(this.isAndroid){this.cur_input||(this.cur_input=document.getElementById("wki-"+this.count));this.cur_input&&this.getCursorPos(this.cur_input).start;const e=this.cur_empty_pos&&this.cur_empty_pos.length>0?this.cur_empty_pos[0]:0;if(" "===t.key||"Space"===t.code||32===t.keyCode)return t.preventDefault(),void t.stopPropagation();if("Backspace"===t.key){t.preventDefault();let s=this.prevEditablePos(this.charpos);if(void 0===s)return this.charpos=e,void this.setCursorPos(this.cur_input,e,e);while(void 0!==s&&"_"===this.input_val[s])s=this.prevEditablePos(s);if(void 0!==s){const t=Array.from(this.input_val);t[s]="_";const e=t.join("");this.input_val=e,this.cur_input.value=e,this.charpos=s,this.setCursorPos(this.cur_input,s,s)}else this.charpos=e,this.setCursorPos(this.cur_input,e,e);return}return}if(this.init_hint)return;if(t.defaultPrevented)return;if(t.repeat)return void t.preventDefault();this.show_hint&&(this.show_hint=!1);let e=t.which||t.keyCode;if(229===e||t.isComposing)return t.preventDefault(),t.stopPropagation(),!1;let s=this.cur_question_txt.length;if(91===e)return void t.preventDefault();if(this.charpos=this.getCursorPos(this.cur_input).start,8==e||"Backspace"==t.code||"Backspace"==t.key){if(t.preventDefault(),t.stopPropagation(),this.charpos>0){let t=this.cur_input.value;s<=t.length&&(t=this.koreanReplace(t),t=t.substr(0,s),this.cur_input.value=t);do{this.charpos-=1,this.cur_empty_pos.includes(this.charpos)&&(this.cur_input.value=t.substr(0,this.charpos)+this.cur_answer_txt[this.charpos]+t.substr(this.charpos+1),this.input_val=this.cur_input.value),this.setCursorPos(this.cur_input,this.charpos,this.charpos)}while(!this.cur_empty_pos.includes(this.charpos)&&this.charpos>0)}return!1}if(this.charpos>=s)return void t.preventDefault();if(37==e)return this.charpos>0&&(this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos)),!1;if(39==e&&this.charpos<=s){let t=null;for(let e of this.cur_empty_pos)if(e>this.charpos&&"_"===this.cur_input.value[e]){t=e;break}return null!==t&&(this.charpos=t),this.setCursorPos(this.cur_input,this.charpos,this.charpos),!1}if(32==e)return t.preventDefault(),t.stopPropagation(),!1;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(!this.cur_empty_pos.includes(this.charpos))return t.preventDefault(),!1;const i=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];if(i.includes(t.key)){let e=this.cur_input.value;const i=this.charpos;this.cur_input.value=e.substr(0,i)+t.key+e.substr(i+1),this.input_val=this.cur_input.value;let o=null;for(let t of this.cur_empty_pos)if(t>i){o=t;break}return null===o&&(o=Math.min(i+1,s)),this.charpos=o,this.setCursorPos(this.cur_input,this.charpos,this.charpos),!0}return t.preventDefault(),t.stopPropagation(),!1},keypressKeyboard(t){if(!this.isAndroid)return t.preventDefault(),t.stopPropagation(),!1},forbiddenPaste(t){return t.preventDefault(),t.stopPropagation(),!1},keyupKeyboardPC(t){if(this.isAndroid)return;let e=t.which||t.keyCode,s=this.cur_question_txt.length;if(46==e)return t.preventDefault(),t.stopPropagation(),!1;if(229===e||"229"===e||t.isComposing)return t.preventDefault(),t.stopPropagation(),this.cur_input.value=this.input_val,!1;if(13==e)return;if(8==e){t.preventDefault(),t.stopPropagation(),this.setCursorPos(this.cur_input,this.charpos,this.charpos);let e=this.cur_input.value;if(s<=e.length){let t=this.koreanReplace(this.cur_input.value);this.cur_input.value=t.substr(0,s)}while(!this.cur_empty_pos.includes(this.charpos)&&this.charpos>0)this.charpos-=1,this.setCursorPos(this.cur_input,this.charpos,this.charpos);return!1}let i=Array.from(this.cur_input.value||""),o=i.filter((t,e)=>s<=e||(!(!this.cur_empty_pos.includes(e)||new RegExp("[A-Za-z_]","g").test(t))||void 0));if(o.length>0){const t=Array.from(this.cur_question_txt||"").map(t=>/[A-Za-z]/.test(t)?"_":" "===t?" ":t).join("");return this.input_val=t,this.cur_input.value=t,!1}},onCompStart(){this.isAndroid&&(this.isComposing=!0)},onCompUpdate(){},onCompEnd(){if(this.isAndroid){this.isComposing=!1;const t=this.cur_input?this.cur_input.value:"";setTimeout(()=>this.remaskFromRaw(t,!0),0)}},onAndroidInput(t){if(!this.isAndroid)return;this.cur_input=t.target;const e=String(this.cur_input.value||""),s=this.input_val||this.cur_answer_txt||"",i=Array.from(e),o=Array.from(s);for(const n of this.cur_empty_pos){const t=i[n];t&&/[A-Za-z]/.test(t)&&(o[n]=t)}const a=o.join("");this.isComposing?this.remaskFromRaw(a,!0):this.remaskFromRaw(a,!1)},onBeforeInput(t){if(!this.isAndroid&&!this.isIOS)return;const e=t.inputType,s=t.data||"";if(this.cur_input||(this.cur_input=t.target),("insertText"===e||"insertCompositionText"===e)&&/\s/.test(s))return t.preventDefault(),void t.stopPropagation();if(("insertText"===e||"insertCompositionText"===e)&&s&&(!/^[A-Za-z]$/.test(s)||/[\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF\uAC00-\uD7A3]/.test(s)))return void t.preventDefault();const i=this.blockNextDeleteAfterSpaceNav&&Date.now()-this.lastSpaceNavTs<300;return"deleteContentBackward"===e&&i||"insertText"===e&&i&&s&&!/[A-Za-z]/.test(s)?(t.preventDefault(),void(this.blockNextDeleteAfterSpaceNav=!1)):void("deleteContentForward"!==e||t.preventDefault())},onTextInput(t){const e=t&&null!=t.data?String(t.data):"";!e||/^[A-Za-z]$/.test(e)&&!/[\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF\uAC00-\uD7A3]/.test(e)||t.preventDefault()},remaskFromRaw(t,e){const s=t.match(/[A-Za-z]/g)||[],i=(this.input_val||"").match(/[A-Za-z]/g)||[],o=s.length-i.length;if(o>0){const t=Array.from(this.input_val||this.cur_answer_txt);let e=this.charpos;if(this.cur_empty_pos.includes(e)||(e=this.cur_empty_pos.find(t=>t>=this.charpos),void 0===e&&(e=this.cur_empty_pos[this.cur_empty_pos.length-1])),void 0!==e){t[e]=s[s.length-1];const i=t.join("");this.input_val=i,this.cur_input&&(this.cur_input.value=i);let o=null;for(let t of this.cur_empty_pos)if(t>e){o=t;break}null===o&&(o=Math.min(e+1,this.cur_question_txt.length)),this.charpos=o}}else if(o<0){const t=Array.from(this.input_val||this.cur_answer_txt);let e=this.prevEditablePos(this.charpos);while(void 0!==e&&"_"===t[e])e=this.prevEditablePos(e);if(void 0!==e){t[e]="_";const s=t.join("");this.input_val=s,this.cur_input&&(this.cur_input.value=s),this.charpos=e}}else this.cur_input&&String(this.cur_input.value||"")!==String(this.input_val||"")&&(this.cur_input.value=this.input_val||this.cur_answer_txt||"");e?setTimeout(()=>this.setCursorPos(this.cur_input,this.charpos,this.charpos),0):this.setCursorPos(this.cur_input,this.charpos,this.charpos)},handleFocus(){this.isInputFocused=!0,this.handleCaretToEnd(),this.$store.state.is_mobile&&"android"===this.$store.state.platform&&(this.viewportResizeDetected=!1,this.focusTimeout&&clearTimeout(this.focusTimeout),this.focusTimeout=setTimeout(()=>{this.viewportResizeDetected||this.setupFallbackScroll()},500))},handleClick(t){this.isInputFocused=!0;const e=t.target;if(this.isAndroid){const t=this.getCursorPos(e).start,s=Math.max(0,Math.min(t,this.cur_question_txt.length)),i=this.tapToCaretTarget(e,s);this.lastClickPosition=i,this.charpos=i,this.cur_input=e,this.setCursorPos(e,i,i),setTimeout(()=>this.setCursorPos(e,i,i),0)}else setTimeout(()=>{const t=this.getCursorPos(e).start,s=Math.max(0,Math.min(t,this.cur_question_txt.length)),i=this.tapToCaretTarget(e,s);this.lastClickPosition=i,this.charpos=i,this.cur_input=e,this.setCursorPos(e,i,i)},0)},tapToCaretTarget(t,e){const s=t&&t.value||"",i=this.cur_question_txt?this.cur_question_txt.length:0,o=Math.max(0,Math.min(e,i));if(this.cur_empty_pos&&this.cur_empty_pos.includes(o)&&"_"===s[o])return o;let a=-1;if(Array.isArray(this.cur_empty_pos))for(let n=Math.min(o,i-1);n>=0;n--)if(this.cur_empty_pos.includes(n)&&"_"!==s[n]){a=n;break}if(a>=0){const t=Math.min(a+1,i);if(Array.isArray(this.cur_empty_pos)&&this.cur_empty_pos.length>0){const e=this.cur_empty_pos.find(e=>e>=t&&"_"===s[e]);if(void 0!==e)return e;for(let i=this.cur_empty_pos.length-1;i>=0;i--){const e=this.cur_empty_pos[i];if(e0){const t=this.cur_empty_pos.find(t=>"_"===s[t]);return void 0!==t?t:this.cur_empty_pos[0]}return 0},blurInput(t){this.isInputFocused=!1,this.focusTimeout&&(clearTimeout(this.focusTimeout),this.focusTimeout=null);const e=document.getElementById("level-popquiz-wrapper");e&&(e.style.marginTop="")},setCursorPos(t,e,s){if(arguments.length<3&&(s=e),t.selectionStart)this.isAndroid?(t.selectionStart=e,t.selectionEnd=s,t.focus(),setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},0)):setTimeout(()=>{t.selectionStart=e,t.selectionEnd=s},1);else if(t.createTextRange){let i=t.createTextRange();i.moveStart("character",e),i.collapse(),i.moveEnd("character",s-e),i.select()}},getCursorPos(t){let e,s,i,o,a,n=0,r=0;return"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd?(n=t.selectionStart,r=t.selectionEnd):(s=document.selection.createRange(),s&&s.parentElement()==t&&(o=t.value.length,e=t.value.replace(/\r\n/g,"\n"),i=t.createTextRange(),i.moveToBookmark(s.getBookmark()),a=t.createTextRange(),a.collapse(!1),i.compareEndPoints("StartToEnd",a)>-1?n=r=o:(n=-i.moveStart("character",-o),n+=e.slice(0,n).split("\n").length-1,i.compareEndPoints("EndToEnd",a)>-1?r=o:(r=-i.moveEnd("character",-o),r+=e.slice(0,r).split("\n").length-1)))),{start:n,end:r}},koreanReplace(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t;return e.test(s)&&(s=s.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi,(t,e)=>"")),s},setupKeyboardDetection(){this.initialViewportHeight=window.visualViewport?window.visualViewport.height:window.innerHeight,this.viewportResizeHandler=()=>{this.viewportResizeDetected=!0,this.handleKeyboardResize()},window.visualViewport&&"function"===typeof window.visualViewport.addEventListener&&window.visualViewport.addEventListener("resize",this.viewportResizeHandler)},handleKeyboardResize(){const t=document.getElementById("wki-"+this.count);if(!t)return;const e=t.getBoundingClientRect(),s=window.visualViewport?window.visualViewport.height:window.innerHeight;e.bottom>s&&t.scrollIntoView({behavior:"smooth",block:"center"})},setupFallbackScroll(){const t=document.getElementById("wki-"+this.count);if(!t)return;const e=document.getElementById("level-popquiz-wrapper");if(!e)return;const s=t.getBoundingClientRect(),i=s.top/this.get_vh*100;if(i>=3){const t=-(i-2);e.style.marginTop=t+"vh"}}},beforeDestroy(){const t=this.$refs["popquiz-audio-player"];t&&this.isPlay&&(t.pause(),t.currentTime=0),this.playWordDelay&&clearTimeout(this.playWordDelay),this.focusTimeout&&clearTimeout(this.focusTimeout),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown),this.timeoutFirstDelay&&clearTimeout(this.timeoutFirstDelay),this.viewportResizeHandler&&window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeHandler);const e=document.getElementById("wki-"+this.count);e&&e.removeEventListener&&e.removeEventListener("textInput",this.onTextInput,!1)},destroyed(){}},jb=Ob,Vb=(s("f03e"),Object(p["a"])(jb,Lb,zb,!1,null,null,null)),Fb=Vb.exports;y()(Vb,{VIcon:jt["a"]});var Gb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank1 height-100 pl-11p pr-11p mx-n6vw"},[s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n4vw over-y-scroll",attrs:{id:"bank1-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank1-text",value:t.onScroll,expression:"onScroll",arg:"#bank1-text"}],staticClass:"text-container lh-1d8 width-100 pt-4vh pb-4vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank1-text-con"}},[s("div",{staticClass:"b-dash dash-pad"},[t._l(t.texts,(function(e,i){return[s("span",{key:"b1-texts-span-"+i,domProps:{innerHTML:t._s(e)}}),t.selections[i]&&t.selections[i].length>0?[s("strong",{key:"b1-texts-strong-"+i,staticClass:"cursor-pointer",class:t.setClass(i,0),domProps:{textContent:t._s(t.selections[i][0])},on:{click:function(e){return t.selectWord(i,t.selections[i][0])}}}),s("b",{key:"b1-texts-b-"+i,class:t.setClass(i,-1)},[t._v(" / ")]),s("strong",{key:"b1-texts-strong-2-"+i,staticClass:"cursor-pointer",class:t.setClass(i,1),domProps:{textContent:t._s(t.selections[i][1])},on:{click:function(e){return t.selectWord(i,t.selections[i][1])}}})]:t._e()]}))],2)])]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t.$store.state.ox_show?[t._l(t.rights,(function(e,i){return[s("strong",{key:"b1-rights-strong-"+i,class:[t.answers[i]==e?"c_b":"c_r"]},[t._v("\n "+t._s(e)+"\n ")]),t.rights.length-1>i?s("b",{key:"b1-rights-b-"+i,staticClass:"grey--text"},[t._v("\n -\n ")]):t._e()]}))]:[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-strong-"+i,staticClass:"success--text"},[t._v("\n "+t._s(e)+"\n ")]),t.showBar(i)?s("b",{key:"b1-answers-b-"+i,staticClass:"success--text"},[t._v("\n -\n ")]):t._e()]}))]],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-s-2-"+i},[t._v(t._s(e))]),t.answers[i]&&t.answers[i+1]?s("b",{key:"b1-answers-b-2-"+i},[t._v("\n -\n ")]):t._e()]}))],2)])},Wb=[],Ub={name:"bank1",mixins:[rn],props:{data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{disablePressEnter:!0}},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},setClass:function(){return function(t,e){return this.is_scoring&&this.$store.state.ox_show?this.answers[t]==this.rights[t]?this.selections[t][e]==this.rights[t]?"c_b":"grey--text text--lighten-3":this.selections[t][e]==this.rights[t]?"c_b":this.answers[t]?"c_r":"grey--text text--lighten-3":this.answers[t]?-1===e?"grey--text text--lighten-3":this.answers[t]==this.selections[t][e]?"success--text":"grey--text text--lighten-3":"info2--text"}},showBar:function(){return function(t){let e=!1,s=this.answers;if(t==s.length-1)return!1;for(let i=s.length;i>0;i--)s[i]&&(e=!0),t>0&&t`;e+=`${this.question}
`;for(let s=0;s${this.texts[s]} `,this.selections[s]&&this.selections[s].length>0){let t="";t=this.selections[s][0]==this.rights[s]?"c_b":this.selections[s][0]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][0]} `,e+=" / ";let i="";i=this.selections[s][1]==this.rights[s]?"c_b":this.selections[s][1]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][1]} `}return e+="",{right:t,result_html:e}}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank1-text"),this.text_child_el=document.getElementById("bank1-text-con"),this.checkScroll()})},created(){this.question=this.content.question;let t=this.content.text,e=/\[\[.*?\]\]/gi,s=[],i=t.replace(e,(t,e)=>(s.push(t),"$_$"));if(i=i.replace(/\/\/\//gi,"
"),this.texts=i.split("$_$"),s){for(let t=0;t-1?i.split("///"):i.split("//"),this.rights.push(e[0]),Math.random()>.5?this.selections.push([e[1],e[0]]):this.selections.push([e[0],e[1]])}this.answers=new Array(s.length).fill(void 0)}this.setCreated()}},Hb=Ub,Kb=(s("9921"),Object(p["a"])(Hb,Gb,Wb,!1,null,null,null)),Zb=Kb.exports;fi()(Kb,{Scroll:dn["b"]});var Yb=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank2 bank-text pl-11p pr-11p mx-n4vw over-y-scroll"},[s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n4vw over-y-scroll",attrs:{id:"bank2-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank2-text",value:t.onScroll,expression:"onScroll",arg:"#bank2-text"}],staticClass:"text-container lh-1d8 width-100 pt-4vh pb-4vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank2-text-con"}},[s("div",{staticClass:"content-box d-dash dash-pad"},[t._l(t.texts,(function(e,i){return[s("span",{key:"texts-span-"+i,domProps:{innerHTML:t._s(e)}}),t.selections[i]?[s("strong",{key:"texts-strong-"+i,staticClass:"cursor-pointer",class:t.setClass(i),domProps:{textContent:t._s(t.selections[i].txt)},on:{click:function(e){return t.selectWord(i,t.selections[i])}}})]:t._e()]}))],2)])]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b2-answers-s-"+i,class:[t.$store.state.ox_show?e.idx==t.rights[0].idx?"c_b":"c_r":"success--text"]},[t._v(t._s(t.$store.state.ox_show?t.rights[0].txt:e.txt))])]}))],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b2-answers-s-2-"+i},[t._v(t._s(e.txt))])]}))],2)])},Jb=[],Xb={name:"grammar-quiz",mixins:[rn],props:{data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{disablePressEnter:!0}},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},setClass:function(){return function(t){let e=this.rights[0],s=this.answers[0],i=this.selections[t];return this.is_scoring&&this.$store.state.ox_show?i.idx==e.idx?"c_b":s&&i.idx==s.idx?"c_r":"grey--text text--lighten-3":0==this.answers.length?"info2--text":s&&i.idx==s.idx?"success--text":"grey--text text--lighten-3"}}},watch:{checkAnswer(t){t&&this.checkBank2()}},methods:{checkBank2(){const t=this.answers&&this.answers[0],e=this.rights&&this.rights[0],s=O(t)&&e&&t.idx==e.idx,i={seq:this.data.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,bankType:2,oxResult:s,answer:this.answers,right:e,choices:Array.isArray(this.selections)?this.selections.map(t=>t&&null!=t.txt?t.txt:t):[],result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,i),this.data&&(this.data.check_answer=!1)},selectWord:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e);this.answers[0],this.rights[0]},calcResult:function(){let t=0,e=this.answers[0],s=this.rights[0];e&&e.idx==s.idx&&(t=1);let i=``;i+=`${this.question}
`;for(let o=0;o${this.texts[o]}
 `,t){let o="";o=t.idx==s.idx?"c_b":e&&t.idx==e.idx?"c_r":"grey--text text--lighten-3",i+=`${t.txt} `}}return i+="",{right:t,result_html:i}}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank2-text"),this.text_child_el=document.getElementById("bank2-text-con"),this.checkScroll()})},created(){this.question=this.content.question;let t=this.content.right.trim(),e=this.content.text,s=/\[\[.*?\]\]/gi,i=[],o=e.replace(s,(t,e)=>(i.push(t),"$_$"));o=o.replace(/\/\/\//gi,"
"),this.texts=o.split("$_$");let a=0;if(i)for(let n=0;n"),t=t.replace(/\[\[.*?\]\]/gi,t=>{let e="";if(this.content.right){let t=Math.round(1.4*this.content.right.length);t<15&&(t=15),e='';for(let s=0;s"}else e=t;return e}),this.stdtext=""+t+""):this.stdtext=t;let e=/^st_[0-9]$/;if(this.isStoryAdvanced)this.rights=this.content.rightanswer.split("//");else for(let[s,i]of Object.entries(this.content))e.test(s)&&i&&this.rights.push(i);this.selections=R(this.rights),this.selections=I(this.selections),this.setCreated()},mounted(){this.$nextTick(()=>{if(this.text_el=document.getElementById("bank3-text"),this.text_child_el=document.getElementById("bank3-text-con"),this.text_child_el2=document.getElementById("bank3-text-con-std"),this.stdtext){let t=document.getElementById("bank-std-ques");t&&(this.question_top=t.getBoundingClientRect().top)}})},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},setClass(){return function(t){if(this.is_scoring&&this.$store.state.ox_show){let e=this.selections[t];return this.rights.indexOf(e)==this.answers.indexOf(t)?this.right?"c_b correct":"black--text":"c_r wrong"}return this.answers.includes(t)?"success--text select":"grey--text"}},isStoryAdvanced(){return this.use&&"StoryAdvanced"===this.use}},watch:{checkAnswer(t){t&&this.checkBank3()}},methods:{checkBank3(){const t=this.rights.map(t=>this.selections.findIndex(e=>t===e)),e=z(this.answers,t),s={seq:this.data.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,bankType:3,oxResult:e,answer:this.answers,right:t,choices:Array.isArray(this.selections)?this.selections.map(t=>t&&null!=t.txt?t.txt:t):[],result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,s),this.data&&(this.data.check_answer=!1)},selectSentence(t,e){if(this.$store.state.ox_show)return!1;if(this.$store.dispatch("soundEffectPlay","click"),this.answers.includes(e)){if(this.answers[this.answers.length-1]!=e)return!1;this.answers.splice(this.answers.indexOf(e),1)}else this.answers.push(e)},calcResult(){for(let e=0;e`;t+=`${this.question}
`,t+=`${this.stdtext} `;for(let e=0;e${this.selections[e]}
 `}return t+="",{right:this.right,result_html:t}}}},av=ov,nv=(s("c4b4"),Object(p["a"])(av,sv,iv,!1,null,null,null)),rv=nv.exports,lv=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank4 height-100 width-100",attrs:{id:"assessment-bank4"}},[t.$store.state.settings.is_usinghint?s("div",{attrs:{id:"hint-btn"}},[s("button",{attrs:{type:"button",disabled:t.hint_cnt>0},on:{click:t.getHint}},[s("div",{staticClass:"btn-responsive",class:[t.hint_cnt>0?"no":"yes"]})])]):t._e(),s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-15p pr-15p mx-n4vw over-y-scroll",attrs:{id:"bank4-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank4-text",value:t.onScroll,expression:"onScroll",arg:"#bank4-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank4-text-con"}},[t._l(t.selections,(function(e,i){return[s("div",{key:"bank4-select-"+i,staticClass:"selection-btn text-left width-100",class:t.setClass(i),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(i+1)},on:{click:function(e){return t.selectSentence(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit","min-height":"inherit"}},[s("span",{domProps:{textContent:t._s(e)}})])])]}))],2)]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t.$store.state.ox_show?[t._l(t.rights,(function(e,i){return[s("strong",{key:"rights-s-"+i,class:[t.selections[t.answers[i]]!=e?"c_r":t.right?"c_b":"black--text"]},[t._v(t._s(t.selections.indexOf(e)+1))]),void 0!==t.rights[i+1]?s("b",{key:"rights-b-"+i,class:[t.$store.state.ox_show?"grey--text":"success--text"]},[t._v("-")]):t._e()]}))]:[t._l(t.answers,(function(e,i){return[s("strong",{key:"else-answers-s-"+i,staticClass:"success--text"},[t._v("\n "+t._s(e+1)+"\n ")]),void 0!==t.answers[i+1]?s("b",{key:"else-answers-b-"+i,staticClass:"success--text"},[t._v("-")]):t._e()]}))]],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"answer-s-"+i},[t._v(t._s(e+1))]),void 0!==t.answers[i+1]?s("b",{key:"answer-b-"+i},[t._v("-")]):t._e()]}))],2)])},cv=[],dv={name:"paragraph-order",mixins:[rn],props:{data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{right:1,hint_cnt:0,hint_wrongs:[],disablePressEnter:!0}},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},grade(){return this.data&&(this.data.changed_grade||this.data.testGrade)},setClass:function(){return function(t){if(this.is_scoring&&this.$store.state.ox_show){let e=this.selections[t];return this.rights.indexOf(e)==this.answers.indexOf(t)?this.right?"c_b correct":"black--text":"c_r wrong"}return this.answers.includes(t)?this.hint_wrongs.includes(t)?"c_r wrong":"success--text select":"grey--text"}}},watch:{checkAnswer(t){t&&this.checkBank4()}},methods:{selectSentence:function(t,e){if(console.log("selectSentence",e),this.$store.state.ox_show)return!1;if(this.$store.dispatch("soundEffectPlay","click"),this.answers.includes(e)){if(this.answers[this.answers.length-1]!=e)return!1;this.answers.splice(this.answers.indexOf(e),1),this.hint_wrongs.length>0&&this.hint_wrongs.includes(e)&&this.hint_wrongs.splice(this.hint_wrongs.indexOf(e),1)}else this.answers.push(e)},calcResult:function(){for(let e=0;e`;t+=`${this.question}
`;for(let e=0;e${this.selections[e]} `}return t+="",{right:this.right,result_html:t}},getHint:function(){if(this.hint_cnt>0)return!1;if(this.$store.dispatch("soundEffectPlay","click"),this.answers.length>0){let t=!1;for(let e=0;ethis.selections.findIndex(e=>t===e)),e=z(this.answers,t),s={seq:this.data.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,bankType:4,oxResult:e,answer:this.answers,right:t,choices:this.selections.slice(),result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,s),this.data&&(this.data.check_answer=!1)}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank4-text"),this.text_child_el=document.getElementById("bank4-text-con"),this.checkScroll()})},created(){this.question=this.content.question;let t=this.content.st_std;t?(t=t.replace(/\/\/\//gi,"
"),t=t.replace(/\[\[.*?\]\]/gi,t=>{let e="";if(this.content.right){let t=Math.round(1.4*this.content.right.length);t<15&&(t=15),e='';for(let s=0;s"}else e=t;return e}),this.stdtext=""+t+""):this.stdtext=t;let e=/^st_[0-9]$/;for(let[s,i]of Object.entries(this.content))e.test(s)&&i&&this.rights.push(i);this.selections=R(this.rights),this.selections=I(this.selections),this.setCreated()}},hv=dv,uv=(s("00af"),Object(p["a"])(hv,lv,cv,!1,null,null,null)),pv=uv.exports;fi()(uv,{Scroll:dn["b"]});var _v=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bank5 height-100 assessment-bank5",attrs:{id:"bank5-wrap"}},[i("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[i("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),i("div",{staticClass:"pos-rel width-100"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),i("div",{staticClass:"bank-text pl-11p pr-11p mx-n4vw over-y-scroll",attrs:{id:"bank5-text"}},[t.stdtext?i("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center min-h-7vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),i("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank5-text",value:t.onScroll,expression:"onScroll",arg:"#bank5-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con"}},[t.isStoryAdvanced?[i("v-row",{staticClass:"width-100 height-100",staticStyle:{margin:"0 auto"}},t._l(t.parsed_selections,(function(e,o){return i("v-col",{key:"sa-bank5-select-"+o},[i("div",{staticClass:"selection-btn text-left width-100",class:t.setClass(o),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(o+1)},on:{click:function(e){return t.selectSentence(e,o)}}},["O"==e?[i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]!==o,expression:"answers[0] !== i"}],staticClass:"OX_img",attrs:{src:s("3f44")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]===o,expression:"answers[0] === i"}],staticClass:"OX_img",attrs:{src:s("2b3f")}})]:"X"==e?[i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]!==o,expression:"answers[0] !== i"}],staticClass:"OX_img",attrs:{src:s("18e5")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]===o,expression:"answers[0] === i"}],staticClass:"OX_img",attrs:{src:s("6342")}})]:[i("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[i("b",[t._v(t._s(o+1))])]),i("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[i("span",{domProps:{innerHTML:t._s(e)}})])]],2)])})),1)]:t._l(t.parsed_selections,(function(e,s){return i("div",{key:"bank5-select-"+s,staticClass:"selection-btn text-left width-100",class:t.setClass(s),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(s+1)},on:{click:function(e){return t.selectSentence(e,s)}}},[i("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[i("b",[t._v(t._s(s+1))])]),i("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[i("span",{domProps:{innerHTML:t._s(e)}})])])}))],2)]),i("div",{staticClass:"pos-rel width-100"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})])])},mv=[];const gv=1.7,bv=1.6,vv=8;var fv={name:"bank5",props:["data","content","fontLevel"],data(){return{parsed_selections:[],mc_type:null,isStoryAdvanced:!1,doc_bind:!1,question:"",stdtext:"",selections:[],rights:[],answers:[],scroll_pad:0,over_shadow_top:!1,over_shadow_bottom:!1,text_el:null,text_child_el:null,text_child_el2:null,text_child_el3:null,font_head:1.7,font_main:1.6,sel_height:8,disablePressEnter:!0}},created(){this.question=this.content.question;let t=this.content.text,e=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"];t?(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.isStoryAdvanced&&(t=this.replaceLineBreakAll(t)),this.stdtext=`${t}`):this.stdtext=t;let s=/^st_[0-9]$/,i=[];for(let[a,n]of Object.entries(this.content))s.test(a)&&n&&i.push(n);i.push(this.content.right),this.rights.push(this.content.right);let o=this.content.right;o&&e.includes(o)?this.selections=i.sort((t,s)=>(t=t.trim(),s=s.trim(),e.indexOf(t)-e.indexOf(s))):this.selections=I(i),this.parsed_selections=this.selections.map(t=>{let e=this.replaceUnderline(t);return e=e.replace("@@","
"),e})},mounted(){this.$nextTick(()=>{if(this.font_main=bv*this.fontLevel,this.isStoryAdvanced){const t=document.getElementById("bank5-wrap"),e=2===this.selections.length?2:4;t.classList.add("examples-"+e)}this.text_el=document.getElementById("bank5-text"),this.text_child_el=document.getElementById("bank5-text-con"),this.text_child_el2=document.getElementById("bank5-text-con-std"),this.checkScroll(),this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)})},watch:{fontLevel(t,e){this.font_head=gv*t,this.font_main=bv*t,this.sel_height=vv*t},checkAnswer(t){t&&this.checkBank5()}},computed:{is_scoring(){return this.$store.getters.getIsScoring},checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},grade(){return this.data&&(this.data.changed_grade||this.data.testGrade)},setClass(){return function(t){if(this.is_scoring&&this.$store.state.ox_show){if(2==this.mc_type){let e="",s=this.selections[t].replace(/{{/g,"").replace(/}}/g,"");for(let t=0;t"));return e=this.rights.includes(this.selections[t])||this.rights.includes(s)?this.answers.includes(t)?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text",e}{let e=this.rights[0];-1!=e.indexOf("@@")&&(e=e.replace("@@","
"));let s=this.selections[t].replace(/{{/g,"").replace(/}}/g,"");return e==this.selections[t]||e==s?e==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}}return this.answers.includes(t)?"success--text select":"grey--text"}}},methods:{isNotUndfinedOrNull:O,replaceLineBreak(t){return t.replace(/\/\/\//gi,"
")},replaceBlankUnderline(t){return t.replace(/\[\[.*?\]\]/gi,t=>{let e="";if(this.content.right){let t=Math.round(1.4*this.content.right.length);t<15&&(t=15),e='';for(let s=0;s"}else e=t;return e})},replaceUnderline(t){let e=t.replace(/\{\{(.*?)\}\}/g,t=>{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""});return e},checkScroll(){this.scroll_pad=Math.round(.02*this.$store.state.screen_height),this.onScroll()},onScroll(t){let e=null,s=null,i=null,o=null;this.text_el&&(e=this.text_el.getBoundingClientRect()),this.text_child_el&&(s=this.text_child_el.getBoundingClientRect()),this.text_child_el2&&(i=this.text_child_el2.getBoundingClientRect()),this.text_child_el3&&(o=this.text_child_el3.getBoundingClientRect());let a=e?e.bottom:0,n=s?s.bottom:0,r=e?e.top:0,l=s?s.top:0,c=i?i.height:0,d=o?o.height:0;a+this.scroll_padl+this.scroll_pad?this.over_shadow_top=!0:this.over_shadow_top=!1},pcKeydown(t){const e=Number(t.key);Number.isInteger(e)&&e>=1&&e<=this.parsed_selections.length&&this.selectSentence(null,e-1)},checkBank5(){const t=Array.isArray(this.answers)?this.answers[0]:void 0,e=this.selections.findIndex(t=>t===this.rights[0]),s=O(t)&&t==e,i={seq:this.data.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,bankType:5,oxResult:s,answer:t,right:e,choices:this.selections,result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,i),this.data&&(this.data.check_answer=!1)},selectSentence(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),2==this.mc_type?-1==this.answers.indexOf(e)?(this.answers.length>1&&this.answers.shift(),this.answers.push(e)):this.answers.splice(this.answers.indexOf(e),1):this.answers.splice(0,1,e)},calcResult(){let t=1;if(2==this.mc_type){t=0;let e=0;for(let t=0;t`;e+=`${this.question}
`;let s=R(this.selections);if(2==this.mc_type){this.answers=this.answers.sort();let t=0;for(let i=0;i0)for(let e=t;e"),this.selections[i]=s[i]),-1!=s[i].indexOf("{{")&&-1!=s[i].indexOf("}}")&&(s[i]=s[i].replace(/{{/g,''),s[i]=s[i].replace(/}}/g,"")),e+=`${i+1}. ${s[i]}
`}}else for(let i=0;i"),this.selections[i]=s[i]),-1!=s[i].indexOf("{{")&&-1!=s[i].indexOf("}}")&&(s[i]=s[i].replace(/{{/g,''),s[i]=s[i].replace(/}}/g,"")),e+=`${i+1}. ${s[i]}
`}return e+="
",{right:t,result_html:e}}},beforeDestroy(){this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},wv=fv,yv=(s("5c7e"),Object(p["a"])(wv,_v,mv,!1,null,null,null)),xv=yv.exports;y()(yv,{VCol:rt["a"],VRow:ht["a"]}),fi()(yv,{Scroll:dn["b"]});var kv=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank6 height-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw",attrs:{id:"bank-std-ques"}},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"}),t.stdtext?s("div",{staticClass:"width-100 pos-abs left-0 right-0",style:"top:"+t.std_top+"px;",attrs:{id:"bank-std-div"}},[s("div",{staticClass:"sentence-body-text std-text min-h-7vh lh-1d8 d-flex justify-center align-center",style:"font-size:"+t.font_main+"vw;",domProps:{innerHTML:t._s(t.stdtext)}})]):t._e()]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n4vw over-y-scroll",attrs:{id:"bank6-text"}},[t.stdtext?s("div",{staticClass:"width-100 sentence-body-text lh-1d8 min-h-7vh d-flex justify-center align-center opacity-0",style:"font-size:"+t.font_main+"vw;",attrs:{id:"bank6-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),t.is_alpha_type?[s("div",{staticClass:"width-100 std-text lh-1d8 min-h-7vh text-left b-dash dash-pad",style:"font-size:"+t.font_main+"vw; margin-bottom:2vh;",attrs:{id:"bank6-text-con-std2"}},[t._l(t.parsed_selections,(function(e,i){return[t.linebreaks.includes(i)?s("br",{key:"parsed_selections-br-"+i}):t._e(),t.selections.includes(i)?s("span",{key:"parsed_selections-span-"+i,staticClass:"cursor-pointer font-weight-bold",class:t.setClass2(i,e),attrs:{id:"bank-sel-"+(t.selections.indexOf(i)+1)},domProps:{innerHTML:t._s(e)},on:{click:function(s){t.selectNumber(t.selections.indexOf(i),e)}}}):s("span",{key:"parsed_selections-span-else-"+i,domProps:{innerHTML:t._s(e)}})]}))],2)]:[t.stdtext2?s("div",{staticClass:"width-100 std-text lh-1d8 min-h-7vh d-flex justify-left align-center b-dash dash-pad",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank6-text-con-std2"},domProps:{innerHTML:t._s(t.stdtext2)}}):t._e(),s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank6-text",value:t.onScroll,expression:"onScroll",arg:"#bank6-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank6-text-con"}},[t._l(t.parsed_selections,(function(e,i){return[s("div",{key:"bank6-select-"+i,staticClass:"selection-btn text-left width-100",class:t.setClass(i),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(i+1)},on:{click:function(e){return t.selectSentence(e,i)}}},[s("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[s("b",[t._v(t._s(i+1))])]),s("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[s("span",{domProps:{innerHTML:t._s(e)}})])])]}))],2)]],2)])},Cv=[],$v={name:"bank6",mixins:[rn],props:{data:Object,content:Object,use:String,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{stdtext2:"",std_top:0,question_top:0,is_alpha_type:!1,linebreaks:[],parsed_selections:[],disablePressEnter:!0}},created(){this.question=this.content.question;let t=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"],e=["①","②","③","④","⑤","⑥"],s="",i="",o="";if("StoryAdvanced"===this.use){s=this.content.rightanswer.trim(),i=this.content.passage,o=this.content.passage;const t=/(\☆\☆(.*?)\☆\☆)/,e=this.content.passage.match(t);e&&(e[2]?i=e[2]:e[0]?i=e[0].replace(/☆☆/g,""):e[1]&&(i=e[1].replace(/☆☆/g,"")),o=o.replace(/(\☆\☆(.*?)\☆\☆)/g,""))}else s=this.content.right.trim(),i=this.content.st_std,o=this.content.text;if((t.includes(s)||e.includes(s))&&(this.is_alpha_type=!0),i=this.replaceLineBreak(i),i=this.replaceBlankUnderline(i),i=this.replaceUnderline(i),this.stdtext=""+i+"",this.is_alpha_type){let t=0;while(o.indexOf("///")>-1){let e=o.indexOf("///");if(this.linebreaks.push(e),o=o.substr(0,e)+o.substr(e+3),t++,t>200)break}o=o.replace(/\[\[.*?\]\]/gi,t=>{let e=s.length,i="";for(let s=0;s(a.push(e),t)),this.stdtext2=Array.from(this.stdtext2);for(let t=0;t"),o.includes(s)||o.push(s),t.includes(s)){let e=new Array(o.length),s=[];for(let i=0;i-1?e[a]=o[i]:s.push(o[i])}this.selections=e.concat(s)}else if(e.includes(s)){let e=new Array(o.length),s=[];for(let i=0;i-1?e[a]=o[i]:s.push(o[i])}this.selections=e.concat(s)}else this.selections=I(o);this.parsed_selections=this.selections.map(t=>this.replaceUnderline(t))}this.rights.push(s),this.setCreated()},mounted(){this.$nextTick(()=>{if(this.text_el=document.getElementById("bank6-text"),this.text_child_el=document.getElementById("bank6-text-con"),this.text_child_el2=document.getElementById("bank6-text-con-std"),this.text_child_el3=document.getElementById("bank6-text-con-std2"),this.stdtext){let t=document.getElementById("bank-std-ques");t&&(this.question_top=t.getBoundingClientRect().top)}this.checkScroll()})},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},setClass(){return function(t){return this.is_scoring&&this.$store.state.ox_show&&this.rights[0]==this.selections[t]?this.rights[0]==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}},setClass2(){return function(t,e){return this.is_scoring&&this.$store.state.ox_show?this.answers[0]==e?this.rights[0]==e?"c_b":"success--text":this.rights[0]==e?"c_r":"grey--text text--lighten-2":this.answers.includes(e)?"success--text":0==this.answers.length?"info--text":"grey--text text--lighten-2"}}},watch:{checkAnswer(t){t&&this.checkBank6()}},methods:{checkBank6(){const t=this.answers&&this.answers[0],e=this.rights&&this.rights[0],s=t===e,i=this.parsed_selections.findIndex(e=>e===t),o=this.parsed_selections.findIndex(t=>t===e),a={seq:this.data.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,bankType:6,oxResult:s,answer:i,right:o,choices:this.selections,result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,a),this.data&&(this.data.check_answer=!1)},selectSentence(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e)},selectNumber(t,e,s){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e)},calcResult(){let t,e=1;if(this.is_alpha_type){this.rights[0]!=this.answers[0]&&(e=0),t=``,t+=`${this.question}
`;let s=this.stdtext2.join("");if(this.linebreaks.length>0){let t=[],e=0;for(let i=0;i"),e=this.linebreaks[i];t.push(s.substr(e)),s=t.join("")}if(t+="",e)s=s.split(this.rights[0]),t+=s[0],t+=`${this.rights[0]} ${this.stdtext}`,t+=s[1];else{let e=this.stdtext2.indexOf(this.rights[0]),i=this.stdtext2.indexOf(this.answers[0]),o=`${this.rights[0]} ${this.stdtext} `;if(i>-1){let a=e${this.answers[0]} `;t+=a?s.substr(0,e)+o+s.substr(e+1,i-e-1)+n+s.substr(i+1):s.substr(0,i)+n+s.substr(i+1,e-i-1)+o+s.substr(e+1)}else t+=s.substr(0,e)+o+s.substr(e+1)}t+="
"}else{this.selections[this.answers[0]]!=this.rights[0]&&(e=0),t=``,t+=`${this.question}
`,t+=`${this.stdtext}
`,t+=`${this.stdtext2}
`;for(let e=0;e${e+1}. ${this.selections[e]}

`}t+="
"}return{right:e,result_html:t}}}},Sv=$v,Tv=(s("275e"),Object(p["a"])(Sv,kv,Cv,!1,null,null,null)),Av=Tv.exports;fi()(Tv,{Scroll:dn["b"]});var Iv=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"a-bank7 height-100 width-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{textContent:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text over-y-scroll",staticStyle:{width:"82%","padding-left":"3%","padding-right":"3%"},attrs:{id:"bank7-text"}},[t.show_text?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-left align-center min-h-7vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank7-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank7-text",value:t.onScroll,expression:"onScroll",arg:"#bank7-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank7-text-con"}},[t._l(t.parsed_selections,(function(e,i){return[s("div",{key:"bank7-select-"+i,staticClass:"selection-btn text-left width-100 d-flex",class:t.setClass(i),staticStyle:{"align-items":"center"},style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(i+1)},on:{click:function(e){return t.selectSentence(e,i)}}},[s("div",{staticClass:"left-idx grey--text d-flex align-center justify-center"},[s("b",[t._v(t._s(i+1))])]),s("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit",width:"calc(100% - 1.8rem)"}},[s("span",{domProps:{innerHTML:t._s(e)}})])])]}))],2)])])},Dv=[],Rv={name:"bank7",mixins:[rn],props:{data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{show_text:!1,parsed_selections:[],disablePressEnter:!0}},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},setClass:function(){return function(t){return this.is_scoring&&this.$store.state.ox_show&&this.rights[0]==this.selections[t]?this.rights[0]==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}}},watch:{checkAnswer(t){t&&this.checkBank7()}},methods:{checkBank7(){const t=this.answers&&this.answers[0],e=this.selections.findIndex(t=>t===(this.rights&&this.rights[0])),s=t===e,i={seq:this.data.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,bankType:7,oxResult:s,answer:t,right:e,choices:this.selections,result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,i),this.data&&(this.data.check_answer=!1)},selectSentence:function(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),this.answers.splice(0,1,e)},calcResult:function(){let t=1;this.selections[this.answers[0]]!=this.rights[0]&&(t=0);let e=``;e+=`${this.question}
`;for(let s=0;s${s+1}. ${this.selections[s]}

`}return e+="",{right:t,result_html:e}}},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank7-text"),this.text_child_el=document.getElementById("bank7-text-con"),this.checkScroll()})},created(){this.question=this.content.question;let t=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"];if(this.content&&null!=this.content.text){let t=this.content.text;t&&(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.stdtext=""+t+"",this.show_text=!0)}let e=/^st_[0-9]$/,s=[];for(let[o,a]of Object.entries(this.content))e.test(o)&&a&&s.push(a);s.includes(this.content.right)||s.push(this.content.right);let i=!!this.content.right&&this.content.right.trim();i&&t.includes(i)?this.selections=s.sort((e,s)=>(e=e.trim(),s=s.trim(),t.indexOf(e)-t.indexOf(s))):this.selections=I(s),this.parsed_selections=this.selections.map(t=>this.replaceUnderline(t)),this.rights.push(this.content.right),this.setCreated()}},Pv=Rv,Mv=(s("438f"),Object(p["a"])(Pv,Iv,Dv,!1,null,null,null)),Ev=Mv.exports;fi()(Mv,{Scroll:dn["b"]});var Bv=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank1 height-100"},[s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank1-text"}},[s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank1-text",value:t.onScroll,expression:"onScroll",arg:"#bank1-text"}],staticClass:"text-container lh-1d8 width-100 pt-4vh pb-4vh text-center",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank1-text-con"}},[s("div",{staticClass:"b-dash dash-pad"},[t._l(t.texts,(function(e,i){return[s("span",{key:"b1-texts-span-"+i,domProps:{innerHTML:t._s(e)}}),t.selections[i]&&t.selections[i].length>0?[s("strong",{key:"b1-texts-strong-"+i,staticClass:"cursor-pointer",class:t.setClass(i,0),domProps:{textContent:t._s(t.selections[i][0])},on:{click:function(e){return t.selectWord(i,t.selections[i][0])}}}),s("b",{key:"b1-texts-b-"+i,class:t.setClass(i,-1)},[t._v(" / ")]),s("strong",{key:"b1-texts-strong-2-"+i,staticClass:"cursor-pointer",class:t.setClass(i,1),domProps:{textContent:t._s(t.selections[i][1])},on:{click:function(e){return t.selectWord(i,t.selections[i][1])}}})]:t._e()]}))],2)])]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})]),t.is_scoring?s("div",{staticClass:"bank-answer d-flex align-center justify-center border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t.$store.state.ox_show?[t._l(t.rights,(function(e,i){return[s("strong",{key:"b1-rights-strong-"+i,class:[t.answers[i]==e?"c_b":"c_r"]},[t._v("\n "+t._s(e)+"\n ")]),t.rights.length-1>i?s("b",{key:"b1-rights-b-"+i,staticClass:"grey--text"},[t._v("\n -\n ")]):t._e()]}))]:[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-strong-"+i,staticClass:"success--text"},[t._v("\n "+t._s(e)+"\n ")]),t.showBar(i)?s("b",{key:"b1-answers-b-"+i,staticClass:"success--text"},[t._v("\n -\n ")]):t._e()]}))]],2):s("div",{staticClass:"bank-answer d-flex align-center justify-center success--text border-ede thin-t h-10vh",style:"font-size:"+t.font_foot+"vw"},[t._l(t.answers,(function(e,i){return[s("strong",{key:"b1-answers-s-2-"+i},[t._v(t._s(e))]),t.answers[i]&&t.answers[i+1]?s("b",{key:"b1-answers-b-2-"+i},[t._v("\n -\n ")]):t._e()]}))],2)])},Nv=[],qv={name:"bank1",mixins:[Bc],props:{use:String,data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{disablePressEnter:!0}},created(){this.question=this.content.question;let t=this.content.origin_passage,e=/\[\[.*?\]\]/gi,s=[],i=t?t.replace(e,(t,e)=>(s.push(t),"$_$")):"";if(i=i.replace(/\/\/\//gi,"
").replace(/\/\//gi,"
").replace(/\{\{/gi,'').replace(/\}\}/gi,""),this.texts=i.split("$_$"),s){for(let t=0;t-1?i.split("///"):i.split("//"),Math.random()>.5?this.selections.push([e[1],e[0]]):this.selections.push([e[0],e[1]])}"StoryAdvanced"===this.use?this.rights=this.content.rightanswer.split("//"):this.rights.push(this.content.rightanswer),this.answers=new Array(s.length)}this.setCreated()},mounted(){this.$nextTick(()=>{this.text_el=document.getElementById("bank1-text"),this.text_child_el=document.getElementById("bank1-text-con"),this.checkScroll()})},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},setClass:function(){return function(t,e){return this.is_scoring&&this.$store.state.ox_show?this.answers[t]==this.rights[t]?this.selections[t][e]==this.rights[t]?"c_b":"grey--text text--lighten-3":this.selections[t][e]==this.rights[t]?"c_b":this.answers[t]?"c_r":"grey--text text--lighten-3":this.answers[t]?-1===e?"grey--text text--lighten-3":this.answers[t]==this.selections[t][e]?"success--text":"grey--text text--lighten-3":"info2--text"}},showBar:function(){return function(t){let e=!1,s=this.answers;if(t==s.length-1)return!1;for(let i=s.length;i>0;i--)s[i]&&(e=!0),t>0&&t`;e+=`${this.question}
`;for(let s=0;s${this.texts[s]} `,this.selections[s]&&this.selections[s].length>0){let t="";t=this.selections[s][0]==this.rights[s]?"c_b":this.selections[s][0]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][0]} `,e+=" / ";let i="";i=this.selections[s][1]==this.rights[s]?"c_b":this.selections[s][1]==this.answers[s]?"c_r":"grey--text text--lighten-3",e+=`${this.selections[s][1]} `}return e+="",{right:t,result_html:e}}}},Lv=qv,zv=(s("01c6"),Object(p["a"])(Lv,Bv,Nv,!1,null,null,null)),Ov=zv.exports;fi()(zv,{Scroll:dn["b"]});var jv=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bank5 height-100 assessment-bank5",attrs:{id:"bank5-wrap"}},[i("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[i("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),i("div",{staticClass:"pos-rel width-100"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),i("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank5-text"}},[t.stdtext?i("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center min-h-7vh",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t._e(),i("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank5-text",value:t.onScroll,expression:"onScroll",arg:"#bank5-text"}],staticClass:"text-container pt-3vh pb-3vh lh-1d8 width-100",style:"font-size:"+t.font_main+"vw",attrs:{id:"bank5-text-con"}},[t.isStoryAdvanced?[i("v-row",{staticClass:"width-100 height-100",staticStyle:{margin:"0 auto"},style:{height:t.parsed_selections.some((function(t){return"O"===t||"X"===t}))||2==t.parsed_selections.length?"":"auto !important"}},t._l(t.parsed_selections,(function(e,o){return i("v-col",{key:"sa-bank5-select-"+o},[i("div",{staticClass:"selection-btn width-100",class:t.setClass(o),style:"min-height:"+t.sel_height+"vh; text-align: "+(2===t.parsed_selections.length?"center":"left"),attrs:{id:"bank-sel-"+(o+1)},on:{click:function(e){return t.selectSentence(e,o)}}},["O"==e?[i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]!==o,expression:"answers[0] !== i"}],staticClass:"OX_img",attrs:{src:s("3f44")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]===o,expression:"answers[0] === i"}],staticClass:"OX_img",attrs:{src:s("2b3f")}})]:"X"==e?[i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]!==o,expression:"answers[0] !== i"}],staticClass:"OX_img",attrs:{src:s("18e5")}}),i("img",{directives:[{name:"show",rawName:"v-show",value:t.answers[0]===o,expression:"answers[0] === i"}],staticClass:"OX_img",attrs:{src:s("6342")}})]:[i("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[i("b",[t._v(t._s(o+1))])]),i("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[i("span",{domProps:{innerHTML:t._s(e)}})])]],2)])})),1)]:t._l(t.parsed_selections,(function(e,s){return i("div",{key:"bank5-select-"+s,staticClass:"selection-btn text-left width-100",class:t.setClass(s),style:"min-height:"+t.sel_height+"vh",attrs:{id:"bank-sel-"+(s+1)},on:{click:function(e){return t.selectSentence(e,s)}}},[i("div",{staticClass:"left-idx grey--text pos-abs d-flex align-center justify-center"},[i("b",[t._v(t._s(s+1))])]),i("div",{staticClass:"idx-content d-flex justify-start align-center",staticStyle:{color:"inherit"}},[i("span",{domProps:{innerHTML:t._s(e)}})])])}))],2)]),i("div",{staticClass:"pos-rel width-100"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})])])},Vv=[],Fv={name:"bank5",mixins:[Bc],props:{use:String,data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{parsed_selections:[],mc_type:null,disablePressEnter:!0,doc_bind:!1}},created(){this.question=this.content.question;let t=this.content.passage,e=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"];t?(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.isStoryAdvanced&&(t=this.replaceLineBreakAll(t)),this.stdtext=`${t}`):this.stdtext=t;let s=[],i=this.content.example.split("//");for(let a=0,n=i.length;a0)for(let e=0;e(t=t.trim(),s=s.trim(),e.indexOf(t)-e.indexOf(s))):this.selections=I(s),this.parsed_selections=this.selections.map(t=>{let e=this.replaceUnderline(t);return e=e.replace("@@","
"),e}),this.setCreated()},mounted(){this.$nextTick(()=>{if(this.isStoryAdvanced){const t=document.getElementById("bank5-wrap"),e=2===this.selections.length?2:4;t.classList.add("examples-"+e)}this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown),this.text_el=document.getElementById("bank5-text"),this.text_child_el=document.getElementById("bank5-text-con"),this.text_child_el2=document.getElementById("bank5-text-con-std"),this.checkScroll()})},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},setClass(){return function(t){if(this.is_scoring&&this.$store.state.ox_show){if(2==this.mc_type){let e="",s=this.selections[t].replace(/{{/g,"").replace(/}}/g,"");for(let t=0;t"));return e=this.rights.includes(this.selections[t])||this.rights.includes(s)?this.answers.includes(t)?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text",e}{let e=this.rights[0];-1!=e.indexOf("@@")&&(e=e.replace("@@","
"));let s=this.selections[t].replace(/{{/g,"").replace(/}}/g,"");return e==this.selections[t]||e==s?e==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}}return this.answers.includes(t)?"success--text select":"grey--text"}}},watch:{checkAnswer(t){t&&this.checkStoryBank5()}},methods:{pcKeydown:function(t){const e=t.which||t.keyCode;49<=e&&53>=e&&this.selectSentence(null,e-49)},checkStoryBank5(){const t=this.selections.findIndex(t=>t===this.rights[0]),e=this.answers[0],s=O(e)&&t===e,i={seq:this.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,oxResult:s,answer:e,right:t,choices:this.selections,result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,i),this.data&&(this.data.check_answer=!1)},selectSentence(t,e){if(this.$store.state.ox_show)return!1;this.$store.dispatch("soundEffectPlay","click"),2==this.mc_type?-1==this.answers.indexOf(e)?(this.answers.length>1&&this.answers.shift(),this.answers.push(e)):this.answers.splice(this.answers.indexOf(e),1):this.answers.splice(0,1,e)},calcResult(){let t=1;if(2==this.mc_type){t=0;let e=0;for(let t=0;t`;e+=`${this.question}
`;let s=R(this.selections);if(2==this.mc_type){this.answers=this.answers.sort();let t=0;for(let i=0;i0)for(let e=t;e"),this.selections[i]=s[i]),-1!=s[i].indexOf("{{")&&-1!=s[i].indexOf("}}")&&(s[i]=s[i].replace(/{{/g,''),s[i]=s[i].replace(/}}/g,"")),e+=`${i+1}. ${s[i]}
`}}else for(let i=0;i"),this.selections[i]=s[i]),-1!=s[i].indexOf("{{")&&-1!=s[i].indexOf("}}")&&(s[i]=s[i].replace(/{{/g,''),s[i]=s[i].replace(/}}/g,"")),e+=`${i+1}. ${s[i]}
`}return e+="",{right:t,result_html:e}}},beforeDestroy(){this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)},destroyed(){this.$destroy()}},Gv=Fv,Wv=(s("2332"),Object(p["a"])(Gv,jv,Vv,!1,null,null,null)),Uv=Wv.exports;y()(Wv,{VCol:rt["a"],VRow:ht["a"]}),fi()(Wv,{Scroll:dn["b"]});var Hv=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"banksa",class:"is-mobile-"+t.is_mobile+" is-story-advanced-"+t.isStoryAdvanced,staticStyle:{height:"70vh",position:"relative","overflow-y":"scroll","overflow-x":"hidden"},style:{width:1!=t.sa_type?"100%":"80vw"},attrs:{id:"banksa-wrap"}},[s("div",{staticClass:"banksa--wrap",staticStyle:{height:"70vh",transition:"0.3s"}},[s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"over-y-scroll",attrs:{id:"banksa-text"}},[t.stdtext&&0!==t.sa_type?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center min-h-7vh",style:"font-size:"+t.font_main+"vw;",attrs:{id:"bank5-text-con-std"},domProps:{innerHTML:t._s(t.stdtext)}}):t.stdtext&&0===t.sa_type?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center",staticStyle:{"min-height":"11vh","margin-bottom":"3vh"},style:"font-size:"+t.font_main+"vw;",attrs:{id:"bank5-text-con-std"}},[s("div",{staticClass:"d-flex text-center"},[s("div",{domProps:{innerHTML:t._s(t.stdtext)}})])]):t._e(),s("div",{directives:[{name:"scroll",rawName:"v-scroll:#bank5-text",value:t.onScroll,expression:"onScroll",arg:"#bank5-text"}],staticClass:"text-container lh-1d8 width-100",staticStyle:{"padding-top":"3vh"},style:"font-size:"+t.font_std+"vw",attrs:{id:"bank5-text-con"}},[0===t.sa_type?[s("div",{staticClass:"d-block text-center",staticStyle:{"min-height":"31vh"}},[s("div",{staticClass:"d-flex justify-center align-center pos-rel",attrs:{id:"wki-show-0"}},[s("input",{ref:"wki-0",staticClass:"sa_input text-center",staticStyle:{resize:"none","font-family":"'Inconsolata' !important"},style:"font-size:"+t.font_std+"vw !important; width: "+(t.content.rightanswer.length+7)+"vw; visibility: "+(t.$store.state.ox_show?"hidden":"visible")+";",attrs:{type:"text",autocomplete:"off",id:"wki-0",maxlength:t.content.rightanswer.length+3,disabled:t.getInputDisabled},on:{keydown:t.keydownKeyboard,keyup:t.keyupKeyboardPC,focus:function(e){return t.focusInput("wki-0")},blur:t.checkBlur,paste:t.forbiddenPaste}}),t.$store.state.ox_show?s("div",{staticClass:"sa2-input height-100 pos-abs d-table",staticStyle:{"line-height":"1.1",padding:"8px 0"},domProps:{innerHTML:t._s(t.right_html)}}):t._e()])])]:1===t.sa_type?[t.is_mobile?[s("input",{ref:"wki-0",staticClass:"hidden-input pos-abs",class:t.is_ios?"left-m9999":"bottom-0",staticStyle:{opacity:"0","z-index":"-1"},attrs:{type:"text",autocomplete:"off",id:"wki-0",disabled:t.$store.state.ox_show,spellcheck:!1},on:{input:function(e){return t.touchKeyboard(e)},keyup:function(e){return t.keyupKeyboard(e)},focus:t.checkFocus,blur:t.checkBlur}}),s("auto-text",{attrs:{maxFontSize:3,maxHeight:.3*t.$store.state.screen_height,src:t.content.rightanswer,step:t.content.seq,type:"writingk"}},[s("div",{ref:"wki-show-0",staticClass:"pos-rel show-field",class:[t.focus_status?"focus":""],staticStyle:{"margin-top":"7vh"},style:"font-size:"+t.font_std+"vw",attrs:{id:"wki-show-0",rel:""+t.init_hint_underscore},domProps:{innerHTML:t._s(t.showAnswerHtml)},on:{click:function(e){return t.focusInput("wki-0")}}})])]:[t.$store.state.ox_show?s("div",{staticClass:"sa1-result-div width-100 height-100 d-flex justify-center",staticStyle:{"min-height":"31vh"}},[s("div",{staticStyle:{"margin-top":"7.5vh"}},t._l(Array.from(t.constent.rightanswer),(function(e,i){return s("span",{key:"char-"+i,class:e!==Array.from(t.cur_input.value.trim())[i]?"danger--text":"",domProps:{innerHTML:t._s(e)}})})),0)]):s("div",{staticClass:"d-flex justify-center",staticStyle:{"min-height":"31vh"}},[s("textarea",{ref:"wki-0",staticClass:"width-100",staticStyle:{"margin-top":"7.5vh"},attrs:{autocomplete:"off",id:"wki-0",disabled:t.$store.state.ox_show,spellcheck:!1},on:{keydown:t.keydownKeyboard,keypress:function(e){return e.preventDefault(),t.keypressKeyboard(e)},paste:t.forbiddenPaste,keyup:t.keyupKeyboardPC,blur:function(e){return t.blurInput(0)},focus:function(e){return t.focusInput(0)}}})])]]:2===t.sa_type?[s("div",{staticClass:"d-flex justify-center align-center",staticStyle:{height:"31vh"},style:"font-size:"+(t.font_main+.5)+"vw"},[t.$store.state.ox_show?t.$store.state.ox_show?s("div",{staticClass:"sa2-input",staticStyle:{"line-height":"1.5"},domProps:{innerHTML:t._s(t.type2_right_html)}}):t._e():s("div",{staticClass:"sa2-input",staticStyle:{"line-height":"1.5"},attrs:{id:"wki-0"},domProps:{innerHTML:t._s(t.passage)},on:{input:function(e){return t.touchKeyboard(e)}}})])]:t._e()],2),s("v-row",{directives:[{name:"show",rawName:"v-show",value:t.mobile_focus,expression:"mobile_focus"}],staticClass:"width-100 bg-white",style:"height: calc(37vh + 0px); "})],1)])])},Kv=[];const Zv=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",".","?","!","'",",","0","1","2","3","4","5","6","7","8","9"];var Yv={name:"bankSa",mixins:[Bc],components:{AutoText:Xt},props:{use:String,data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{parsed_selections:[],right_html:null,type2_right_html:null,is_mobile:!1,get_vh:null,focus_timeout:null,is_ios:!1,init_hint:!1,init_hint_underscore:null,focus_status:!1,char_limit:0,current_answer:[],fill_pos:[],mobile_focus:!1,disablePressEnter:!0}},created(){this.is_mobile=this.$store.state.is_mobile,"ios"===this.$store.state.platform&&(this.is_ios=!0),this.get_vh=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),this.question=this.content.question,this.sa_type=+this.content.sa_type;let t=this.content.passage;this.passage=this.content.passage;const e=Zv.findIndex(t=>" "===t);if(-1!==e&&Zv.splice(e,1),0===this.sa_type)Zv.push(" "),this.isStoryAdvanced&&t.match(/\/\//)&&(t=t.replace(/\/\//g,"
")),this.stdtext=t;else if(1===this.sa_type){let e=this.content.rightanswer.split(""),s="",i=!0;for(let t=0;t${n}`;this.current_answer.push(r)}this.init_hint_underscore=s,this.char_limit=this.fill_pos.length,t?(t=this.replaceLineBreak(t),t=this.replaceBlankUnderline(t),t=this.replaceUnderline(t),this.stdtext=""+t+""):this.stdtext=t}this.rights.push(this.content.rightanswer),this.setCreated()},mounted(){this.$nextTick(()=>{if(this.text_el=document.getElementById("bank5-text"),this.text_child_el=document.getElementById("bank5-text-con"),this.text_child_el2=document.getElementById("bank5-text-con-std"),this.checkScroll(),0===this.sa_type)setTimeout(()=>{this.focusInput("wki-0"),this.focus_status=!0},2e3);else if(1===this.sa_type){this.rightanswer_arr=this.content.rightanswer.replace(/[^ ]/g,"_").split(""),this.rightanswer_empty=[],this.rightanswer_arr.forEach((t,e)=>{" "==t&&this.rightanswer_empty.push(e)});let t=document.getElementById("wki-0");t&&(this.cur_input=t,this.is_mobile||(t.value=this.content.rightanswer.replace(/[^ ]/g,"_")),setTimeout(()=>{this.focusInput("wki-0"),this.init_hint=!0,this.focus_status=!0},2e3))}else if(2===this.sa_type){this.rightanswer_arr=this.content.rightanswer.replace(/[^ ]/g,"_").split("");let t=document.getElementsByClassName("sa_input");if(t){for(let e=0,s=t.length;e{this.touchKeyboard(t)}),t[e].addEventListener("keyup",t=>{this.keyupKeyboard(t,e)}),t[e].addEventListener("focus",()=>{this.focusInput("sa_input",e)}),t[e].addEventListener("blur",this.checkBlur)):(t[e].addEventListener("keydown",this.keydownKeyboard),t[e].addEventListener("keyup",this.keyupKeyboardPC));setTimeout(()=>{this.focusInput("sa_input",0),this.focus_status=!0},2e3)}}})},watch:{checkAnswer(t){t&&this.checkStoryBankSa()}},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count},getInputDisabled(){return this.$store.getters.getNextDisabled},setClass(){return function(t){return this.is_scoring&&this.$store.state.ox_show&&this.rights[0]==this.selections[t]?this.rights[0]==this.selections[this.answers[0]]?"c_b correct":"c_r wrong":this.answers.includes(t)?"success--text select":"grey--text"}},showAnswerHtml(){let t;return t=this.$store.state.ox_show?this.calcResult().answer_result_html:this.init_hint?this.current_answer.join(""):this.init_hint_underscore,t}},methods:{checkStoryBankSa(){let t=this.content.rightanswer.trim();if(0===this.sa_type){const t=document.getElementById("wki-0");this.answer=t.value.trim()}else if(1===this.sa_type)if(this.is_mobile){let t=this.cur_input.value.replace(/‘|’/g,"'").split(""),e=[],s=0;for(let i=0;i`;if(o+=`${this.question}
`,this.stdtext&&(o+=`${this.stdtext}
`),console.log("sa_type",this.sa_type),0===this.sa_type||1===this.sa_type){if(0===t){let t=Array.from(this.answer);for(let e=0,a=s.length;e${s[e]}`,i+=`${s[e]}`):(o+=`${s[e]}`,i+=`${s[e]}`)}else o+=`${this.answer}`,i+=`${e}`;this.right_html=i}else if(2===this.sa_type){let t=this.content.passage,s=this.content.passage,i=e.split(" / "),a=this.answer.split(" / ");for(let e=0;e${t[e]}`):(o+=`${t[e]}`,n+=`${t[e]}`)}else o=`${i[e]}`,n=`${i[e]}`;t=t.replace(/\/i,o),s=s.replace(/\/i,n)}this.type2_right_html=t,o+=s}return o+="",{right:t,result_html:o,answer_result_html:i}},keydownKeyboard(t){console.log("keydownkeyboard");let e=t.keyCode,s=t.target.selectionStart,i=t.target.value;i=this.koreanReplace(i);let o=Array.from(i).map((t,e)=>t);if(2===this.sa_type){if([9].includes(e))return!0;if(this.is_mobile)return t.stopPropagation(),t.preventDefault(),!1}if(8==e||"Backspace"==t.key||"Backspace"==e){if(0===s)return this.keyFalse(t),!1;if(1===this.sa_type){let e=s-1;return o[e]&&"_"!=o[e]&&(this.rightanswer_empty.includes(e)?o[e]=" ":o[e]="_"),t.target.value=o.join(""),t.target.setSelectionRange(e,e),this.keyFalse(t),!1}return!0}if(37==e||"ArrowLeft"==t.key||"ArrowLeft"==e){let e=s-1;return e>=0&&t.target.setSelectionRange(e,e),this.keyFalse(t),!1}if(39==e||"ArrowRight"==t.key||"ArrowRight"==e){let e=s+1;return e<=o.length&&t.target.setSelectionRange(e,e),this.keyFalse(t),!1}if(Zv.includes(t.key)){if(1!==this.sa_type)return!0;if(o[s]){let e;"_"==o[s]?(o[s]=t.key,e=s+1):" "==o[s]&&(o[s+1]=t.key,e=s+2),t.target.value=o.join(""),t.target.setSelectionRange(e,e)}return this.keyFalse(t),!1}return this.keyFalse(t),!1},keypressKeyboard(t){return t.preventDefault(),t.stopPropagation(),!1},forbiddenPaste(t){return this.keyFalse(t),!1},keyupKeyboardPC(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t.keyCode,i=t.target.selectionStart,o=t.target.value,a=e.test(o);if(o=this.koreanReplace(o),8==s||"Backspace"==t.key||"Backspace"==s)return this.keyFalse(t),!1;if(1===this.sa_type&&!a&&this.rightanswer_empty.includes(i)){let e=i+1;t.target.setSelectionRange(e,e)}t.target.value=o,a&&t.target.setSelectionRange(i-1,i-1)},focusInput(t,e=""){if(this.is_mobile){if(this.focus_status=!0,this.is_ios)return void(0===this.sa_type||1===this.sa_type?document.getElementById(t).focus():2===this.sa_type&&document.getElementsByClassName(t)[e].focus());let s=document.getElementsByClassName("banksa");s=s[0]?s[0]:null;let i=document.getElementsByClassName("banksa--wrap");i=i[0]?i[0]:null,0===this.sa_type?(this.focus_timeout&&clearTimeout(this.focus_timeout),this.focus_timeout=setTimeout(()=>{if(s&&i){let e=document.getElementById("wki-show-0");if(e){let t=e.getBoundingClientRect().top/this.get_vh*100;t>=34&&(i.style.marginTop=`-${t-34}vh`)}console.log(t),document.getElementById(t).focus()}},400)):1===this.sa_type?(this.focus_timeout&&clearTimeout(this.focus_timeout),this.focus_timeout=setTimeout(()=>{if(s&&i){let e=document.getElementById("wki-show-0");if(e){let t=e.getBoundingClientRect().top/this.get_vh*100;t>=34&&(i.style.marginTop=`-${t-34}vh`)}document.getElementById(t).focus()}},400)):2===this.sa_type&&(this.focus_timeout&&clearTimeout(this.focus_timeout),this.focus_timeout=setTimeout(()=>{if(s&&i){let s=document.getElementsByClassName(t)[e];if(this.cur_input=s,s){let t=s.getBoundingClientRect().top/this.get_vh*100;t>=34&&(i.style.marginTop=`-${t-33}vh`),s.focus()}}},400))}else if(0===this.sa_type){let t=document.getElementById("wki-0");t&&(t.focus(),t.setSelectionRange(0,0))}else if(1===this.sa_type){let t=document.getElementById("wki-0");t&&(t.focus(),t.setSelectionRange(0,0))}else 2===this.sa_type&&document.getElementsByClassName(t)[e]&&document.getElementsByClassName(t)[e].focus()},blurInput(t){},keyFalse(t){"Enter"!==t.key&&13!==t.keyCode&&(t.preventDefault(),t.stopPropagation())},koreanReplace(t){const e=/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi;let s=t;return e.test(s)&&(s=s.replace(/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/gi,(t,e)=>"")),s},checkFocus(t=""){this.mobile_focus=!0},checkBlur(t=""){if(this.mobile_focus=!1,this.is_mobile){let t=document.getElementsByClassName("banksa");t=t[0]?t[0]:null;let e=document.getElementsByClassName("banksa--wrap");e=e[0]?e[0]:null,t&&e&&(e.style.marginTop=""),this.is_ios&&window.scrollTo(0,NaN)}},keyupKeyboard(t,e=""){let s=t.which||t.keyCode;if(222===t.keyCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'")),13==s){console.log("dd");let t=document.getElementsByClassName("sa_input");t[e].blur(),t[e+1]&&t[e+1].focus()}},touchKeyboard(t,e){if(1==this.sa_type){let e=t.target.value;e=e.replace(/‘|’/g,"'");let s=Array.from(e);s.length>this.char_limit&&(t.target.value=s.splice(0,this.char_limit).join("")),new RegExp("^[A-Za-z0-9]*$","g").test(e)||(t.target.value=s.join("")),this.cur_input.value=t.target.value,this.updateGrammarAnswerMobile(e)}else 2==this.sa_type&&(this.passage=this.passage.replace(/‘|’/g,"'"))},updateGrammarAnswerMobile(t){if(1==this.sa_type){let e=Array.from(t),s=0;if(e.length>this.fill_pos.length)return!1;for(let t=0;t${o}`;this.current_answer.splice(t,1,a),s++}}}}},Jv=Yv,Xv=(s("71b5"),Object(p["a"])(Jv,Hv,Kv,!1,null,null,null)),Qv=Xv.exports;y()(Xv,{VRow:ht["a"]}),fi()(Xv,{Scroll:dn["b"]});var tf=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"banksc height-100",class:"is-story-advanced-"+t.isStoryAdvanced},[s("div",{staticClass:"bank-question d-flex align-center justify-center assesseent-question-title",style:"font-size:"+t.data.font_head+"vw"},[s("b",{staticClass:"font-weight-bold",domProps:{innerHTML:t._s(t.question)}})]),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_top,expression:"over_shadow_top"}],staticClass:"width-100 pos-abs top-0 left-0 scroll-shadow-top"})]),s("div",{staticClass:"bank-text pl-11p pr-11p mx-n6vw over-y-scroll",attrs:{id:"bank5-text"}},[t.passage?s("div",{staticClass:"b-dash dash-pad width-100 std-text lh-1d8 d-flex justify-center align-center min-h-7vh",staticStyle:{padding:"2vh 2%"},attrs:{id:"bank5-text-con-std"}},[s("span",{style:"font-size:"+t.font_main+"vw",domProps:{innerHTML:t._s(t.passage)}})]):t._e(),s("v-row",{staticClass:"align-content-center",staticStyle:{height:"22vh !important"}},[s("v-col",{staticClass:"pa-0 d-flex height-inherit align-content-center",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("auto-text",{key:"at-"+t.seq+"-1",attrs:{src:t.rightanswer,maxHeight:.29*t.$store.state.screen_height,maxFontSize:3.2}},[s("div",{staticClass:"height-100"},[t.$store.state.ox_show&&t.$store.getters.getIsScoring?s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center d-flex flex-row flex-wrap justify-center align-content-center wb-nm",style:"font-size:"+t.font_std+"vw",domProps:{innerHTML:t._s(t.result_html)}}):s("div",{staticClass:"answer-wrapper ma-auto width-auto height-inherit max-w-100 align-center d-flex flex-row flex-wrap justify-center align-content-center wb-nm",style:"font-size:"+t.font_std+"vw"},[t._l(t.selected_words,(function(e,i){return[t.is_ios?[i==t.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",domProps:{innerHTML:t._s(e)},on:{touchstart:function(s){return t.subSelection(s,e,i)}}}):s("span",{key:"matching-select-"+i,domProps:{innerHTML:t._s(e)}})]:[i==t.selected_words.length-1?s("span",{key:"matching-select-"+i,staticClass:"cursor-pointer",domProps:{innerHTML:t._s(e)},on:{click:function(s){return t.subSelection(s,e,i)}}}):s("span",{key:"matching-select-"+i,domProps:{innerHTML:t._s(e)}})]]}))],2)])])],1)],1),s("v-row",{staticStyle:{height:"31vh !important"}},[s("v-col",{staticClass:"pa-0 d-flex height-100",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[s("div",{staticClass:"chips-wrapper py-0 text-center pos-rel ma-auto width-auto height-100 max-w-100 d-flex align-center justify-center align-content-center flex-wrap"},[t.$store.state.is_mobile?s("auto-text",{key:"at-"+t.seq+"-2",attrs:{step:0,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:t.rightanswer,type:"chips",pa:.8,ma:.5,minWidth:4}},[t.is_ios?t._l(t.split_example,(function(e,i){return s("div",{key:"mat-div-"+i,on:{touchstart:function(s){return t.selectWord(s,e,i)}}},[s("v-chip",{key:"matching-choice-"+i,staticClass:"matching-select-btn text-center",class:[t.selected_keys.includes(i)?"visibility-hidden chip-0":"chip-0"],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,i)}}},[t._v("\n "+t._s(e)+"\n ")])],1)})):t._l(t.split_example,(function(e,i){return s("v-touch",{key:"matching-touch-"+i,on:{pressup:function(s){return t.selectWord(s,e,i)}}},[s("v-chip",{key:"matching-choice-"+i,staticClass:"matching-select-btn text-center",class:[t.selected_keys.includes(i)?"visibility-hidden chip-0":"chip-0"],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return s.stopPropagation(),t.selectWord(s,e,i)}}},[t._v("\n "+t._s(e)+"\n ")])],1)}))],2):s("auto-text",{key:"at-"+t.seq+"-3",attrs:{step:0,maxHeight:.28*t.$store.state.screen_height,maxFontSize:2.3,src:t.rightanswer,type:"chips",pa:.8,ma:.5,minWidth:4}},t._l(t.split_example,(function(e,i){return s("v-chip",{key:"matching-choice-"+i,staticClass:"matching-select-btn text-center",class:[t.selected_keys.includes(i)?"visibility-hidden chip-0":"chip-0"],staticStyle:{height:"auto !important"},style:"font-size:"+t.font_std+"vw",attrs:{color:"grey",outlined:""},on:{click:function(s){return t.selectWord(s,e,i)}}},[t._v("\n "+t._s(e)+"\n ")])})),1)],1)])],1)],1),s("div",{staticClass:"pos-rel width-100"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.over_shadow_bottom,expression:"over_shadow_bottom"}],staticClass:"width-100 pos-abs bottom-0 left-0 scroll-shadow-bottom"})])])},ef=[],sf={name:"bankSc",mixins:[Bc],components:{AutoText:Xt},props:{use:String,data:Object,content:Object,resource:{type:Object,default:function(){return{}}},nextclicked:{type:Function,default:function(){}},fontLevel:{type:Number,default:1}},data(){return{is_ios:!1,selected_keys:[],selected_words:[],result_html:null,disablePressEnter:!0}},created(){this.seq=this.content.seq,this.question=this.content.question,this.passage=this.content.passage,this.example=this.content.example,this.rightanswer=this.content.rightanswer,this.isStoryAdvanced&&!this.example?this.split_example=I(this.rightanswer.split(" ")):this.split_example=I(this.example.split("//")),this.setCreated()},computed:{checkAnswer(){return this.data&&this.data.check_answer},count(){return this.data&&this.data.count}},watch:{checkAnswer(t){t&&this.checkStoryBankSc()}},methods:{checkStoryBankSc(){let t=!0,e=this.content.rightanswer.trim(),s=R(this.selected_words);s=s.map(t=>t.replace(" "," ")),e!==s.join("").trim()&&(t=!1);const i={seq:this.count+1,id:this.content&&this.content.id,type:this.content&&this.content.type,oxResult:t,answer:s,right:this.content.rightanswer,result_html:this.calcResult().result_html};this.data&&"number"===typeof this.count&&this.$set(this.data.result_data,this.count,i),this.data&&(this.data.check_answer=!1)},selectWord:function(t,e,s){if(this.selected_keys.includes(s))return!1;let i=this.selected_words.length-1;[".","!","?"].includes(e)?i>=0&&(this.selected_words[i]=this.selected_words[i].replace(" ","")):i>=0&&-1===this.selected_words[i].indexOf(" ")&&(this.selected_words[i]=this.selected_words[i]+" "),this.selected_words.push(e+" "),this.selected_keys.push(s)},subSelection:function(t,e,s){this.selected_words.pop(),this.selected_keys.pop()},calcResult(){let t=1,e=this.content.rightanswer.trim(),s=e.split(" "),i=R(this.selected_words);i=i.map(t=>t.replace(" "," "));let o=i.join("").split(" ");e!==i.join("").trim()&&(t=0);let a=``;if(a+=`${this.question}
`,this.passage&&(a+=`${this.passage}
`),0===t){this.result_html="";for(let t=0,e=s.length;t${s[t]}
`,this.result_html+=""+s[t]):(a+=`${s[t]} `,this.result_html+=""+s[t]),this.result_html+=t":""}else a+=`${e}`,this.result_html=this.selected_words.join("");return a+="",{right:t,result_html:a}}}},of=sf,af=(s("e365"),Object(p["a"])(of,tf,ef,!1,null,null,null)),nf=af.exports;y()(af,{VChip:Me["a"],VCol:rt["a"],VRow:ht["a"]});var rf=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-dialog",{attrs:{"max-width":"600px",persistent:""},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[s("v-card",{staticClass:"submit-modal"},[s("div",{staticClass:"white--text d-flex justify-space-between align-center header"},[s("span",{staticClass:"text-h6"},[t._v("평가 제출")]),t.showCloseButton?s("v-btn",{staticClass:"white--text",attrs:{icon:""},on:{click:t.closeModal}},[s("v-icon",{attrs:{size:"24"}},[t._v(t._s(t.mdi_close_circle))])],1):t._e()],1),s("v-card-text",{staticClass:"content-wrapper"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],staticClass:"textarea-input no-resize no-outline",staticStyle:{resize:"none"},attrs:{placeholder:"선생님께 남기실 내용이 있으시다면 기록해주세요.",rows:"8"},domProps:{value:t.message},on:{input:[function(e){e.target.composing||(t.message=e.target.value)},t.onInput],compositionstart:t.onCompositionStart,compositionend:t.onCompositionEnd,click:t.handleTextarea,keydown:t.handleTextarea,keyup:t.handleTextarea}})]),s("v-card-actions",{staticClass:"pa-0 footer"},[s("button",{staticClass:"px-8",class:[{accesss:t.canSubmit}],attrs:{disabled:!t.canSubmit},on:{click:function(e){t.canSubmit&&t.submitEvaluation()}}},[t._v("\n 제출\n ")])])],1)],1)},lf=[],cf={name:"SubmitModal",props:{value:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0}},data(){return{message:"",draftMessage:"",isComposing:!1,mdi_close_circle:Lt["C"]}},computed:{dialog:{get(){return this.value},set(t){this.$emit("input",t)}},canSubmit(){const t=this.isComposing?this.draftMessage:this.message;return t.trim().length>0}},methods:{onInput(t){this.draftMessage=t.target.value,this.isComposing||(this.message=t.target.value)},onCompositionStart(){this.isComposing=!0},onCompositionEnd(t){this.isComposing=!1,this.message=t.target.value},handleTextarea(t){t.stopPropagation()},closeModal(){this.dialog=!1,this.message="",this.draftMessage="",this.isComposing=!1},submitEvaluation(){this.$emit("submit",this.message.trim()),this.closeModal()}}},df=cf,hf=(s("020b"),Object(p["a"])(df,rf,lf,!1,null,"3d6785a0",null)),uf=hf.exports;y()(hf,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VDialog:ct["a"],VIcon:jt["a"]});var pf=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{key:"grammar-index-"+t.action_count,staticClass:"studying-contents mode-grammar width-100",class:"is-mobile-"+t.is_mobile,attrs:{id:"grammar-index",content:t.content}},[s("input",{attrs:{type:"hidden"},domProps:{value:t.getGrammarActionCount}}),s("v-card",{key:"grammar_card_"+t.cardkey,staticClass:"elevation-0",staticStyle:{"justify-items":"center"}},[t.content.isReview?["MC"===t.content.type?[s("StoryBank5",{attrs:{data:t.data,content:t.content,fontLevel:t.fontLevel}})]:"CAB"===t.content.type?[s("StoryBank1",{attrs:{data:t.data,content:t.content,fontLevel:t.fontLevel}})]:"SA"===t.content.type?[s("StoryBankSa",{attrs:{data:t.data,content:t.content,fontLevel:t.fontLevel}})]:"SC"===t.content.type?[s("StoryBankSc",{attrs:{data:t.data,content:t.content,fontLevel:t.fontLevel}})]:t._e()]:"MC"==t.content.type?[s("grammar-mc",{key:"gmc-assessment-"+t.content.id+"-"+t.cardkey,attrs:{sub_unit:t.$store.state.grammar_sub_unit,fontLevel:t.fontLevel,isAssessment:t.isAssessment}})]:"SA"==t.content.type?[t.is_mobile?s("grammar-sa-mobile",{key:"gsam-assessment-"+t.content.id+"-"+t.cardkey,attrs:{sub_unit:t.$store.state.grammar_sub_unit,fontLevel:t.fontLevel,isAssessment:t.isAssessment}}):s("grammar-sa",{key:"gsa-assessment-"+t.content.id+"-"+t.cardkey,attrs:{sub_unit:t.$store.state.grammar_sub_unit,fontLevel:t.fontLevel,isAssessment:t.isAssessment,data:t.data}})]:"CAB"==t.content.type?[s("grammar-cab",{key:"gcab-assessment-"+t.content.id+"-"+t.cardkey,attrs:{sub_unit:t.$store.state.grammar_sub_unit,fontLevel:t.fontLevel,isAssessment:t.isAssessment}})]:"SC"==t.content.type?[s("grammar-sc",{key:"gsc-assessment-"+t.content.id+"-"+t.cardkey,attrs:{sub_unit:t.$store.state.grammar_sub_unit,fontLevel:t.fontLevel,isAssessment:t.isAssessment}})]:t._e()],2)],1)},_f=[],mf={name:"learning-study",props:["id","content","data","fontLevel","keyDownHandler"],mixins:[qi],components:{GrammarMc:tc,GrammarSa:rc,GrammarSaMobile:pc,GrammarCab:fc,GrammarSc:$c,StoryBank5:Uv,StoryBank1:Ov,StoryBankSc:nf,StoryBankSa:Qv},data(){return{isAssessment:!0,is_mobile:!1,timeout_moving:null,cardkey:0,action_count:0}},watch:{checkAnswer(t){console.log("Grammar checkAnswer",t),t&&this.content&&this.content.type&&this.checkGrammarAnswer()}},computed:{checkAnswer(){return console.log("Grammar checkAnswer computed",{content:!!this.content,type:this.content&&this.content.type,data:!!this.data,check_answer:this.data&&this.data.check_answer}),!!(this.content&&this.content.type&&this.data)&&this.data.check_answer},getGrammarActionCount(){return this.action_count=this.$store.getters.getGrammarActionCount,this.$store.getters.getGrammarActionCount},getCurModule(){return"GT_0"==this.$store.getters.getCurModule?this.setArrowColor("white"):this.setArrowColor("grey"),this.$store.getters.getCurModule},getCurModuleSeq(){return this.cardkey++,this.$store.getters.getCurModuleSeq},checkExternalKeyboard(){return!(void 0==window.ExternalKeyboard||!window.ExternalKeyboard.isUsed)}},created(){this.setupSingleQuestionData();const t=this.$store.state.book.schedule_id,e=this.$store.state.book.id,s=Number(this.$store.state.book.schedule_type);let i,o=!!this.$store.state.book.category&&Number(this.$store.state.book.category),a=!!this.$store.state.unit.voca_pk&&Number(this.$store.state.unit.voca_pk),n=!!this.$store.state.book.startdate;i=0==s||1==this.$store.state.book.schedule_type_v?this.$store.state.unit.id:this.$store.state.unit.seq,o>1&&!n&&!a&&this.$store.dispatch("setScheduleStartdate",{schedule_id:t,book_id:e,category:o}).then(t=>{}),this.booktype_1=this.$store.state.book.booktype_1,this.$store.commit("setIsLearned",!0),new RegExp("^"+g["A"]).test(this.$store.state.unit.v_mod)&&!a&&this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0)},mounted(){this.setupSingleQuestionData(),this.content.isReview&&document.addEventListener("keydown",this.keyDownHandler)},methods:{isNotUndfinedOrNull:O,setupSingleQuestionData(){const t=this.content,e=t.sub_unit;if(this.$store.state.grammar_type=t.type,this.$store.state.grammar_sub_unit=e,"MC"===t.type)this.$store.state.sentences=[t],this.$store.state[e+"_sentences"]=[t],this.$store.state[`grammar_${e}_data`]={choices:[t.example?t.example.split("//"):[]],passage:[t.passage||""],question:[t.question||""],answers:[],rightanswer:[t.rightanswer||""],right_number:[+t.rightanswer_num||0],right:[]};else if("CAB"===t.type){let s=t.choose_a,i=t.choose_b;if(!s||!i){const e=t.origin_passage||"",o=e.match(/\[\[(.+?)\/\/(.+?)\]\]/);o&&(s=s||o[1],i=i||o[2])}const o={...t,choose_a:s,choose_b:i};this.$store.state.sentences=[o],this.$store.state[e+"_sentences"]=[o],this.$store.state[`grammar_${e}_data`]={choices:[[s,i]],passage:[t.passage||""],question:[t.question||""],answers:[],rightanswer:[t.rightanswer||""],right_number:[+t.rightanswer_num||0],right:[]}}else"SA"===t.type?(this.$store.state.sentences=[t],this.$store.state[e+"_sentences"]=[t],this.$store.state.writing_k_data={answers:[],right:[],result_html:[]},this.$store.state.grammar_sa_type=t.sa_type||""):"SC"===t.type&&(this.$store.state.sentences=[t],this.$store.state[e+"_sentences"]=[t],this.$store.state[`grammar_${e}_data`]={choices:[t.sc_items||[]],right_number:[+t.rightanswer_num||0],answers:[],right:[],question:[t.question||""]},this.$store.state.grammar_matching_data={choice_words:[t.sc_items||[]],selected_words:[],selected_keys:[],selected_text:"",answers:[],right:[],result_html:[]})},setArrowColor(t){this.arrowColor=t},checkGrammarAnswer(){if(console.log("[INFO] content isReview",this.content.isReview),!this.content||!this.content.type||!this.data||this.content.isReview)return;const t={seq:this.data.count+1,id:this.content.id,type:this.content.type,sub_unit:this.content.sub_unit,sa_type:this.content.sa_type,sc_type:this.content.sc_type,result_html:this.generateGrammarResultHtml()};if(t.sentence=this.content.passage,"MC"===this.content.type){let e=this.content.rightanswer_num;isNaN(e)&&(e=this.content.split_exam.findIndex(t=>t===this.content.rightanswer),-1===e&&(e=this.content.example.split("//").findIndex(t=>t===this.content.rightanswer))),t.choices=this.content.split_exam,t.right=e,t.answer=this.$store.state.popquiz_select,t.oxResult=O(this.$store.state.popquiz_select)&&e===this.$store.state.popquiz_select}else if("SA"===this.content.type){if(this.$store.state.writing_k_data.answers&&Array.isArray(this.$store.state.writing_k_data.answers)&&this.$store.state.writing_k_data.answers[0]&&Array.isArray(this.$store.state.writing_k_data.answers[0])){const e=this.$store.state.writing_k_data.answers[0].join(""),s=this.content.rightanswer;t.right=s,t.answer=e,t.oxResult=s===e,this.$store.state.writing_k_current_answer&&(t.cur_answer_txt=this.$store.state.writing_k_current_answer.join(""))}}else if("SC"===this.content.type){const e=this.$store.state.grammar_matching_data,s=t=>String(t||"").trim().replace(/\s+/g," ").replace(/[\s]*[\.\!\?]+$/g,"").toLowerCase().replace(/[^a-z0-9]/gi,""),i=t=>String(t||"").replace(/ /gi," ").replace(/<[^>]*>/g,"").trim(),o=(e.selected_words||[]).map(i),a=o.filter(t=>t.length>0).join(" ").trim(),n=this.content.rightanswer;t.oxResult=s(n)===s(a),t.answer=a,t.right=n,t.choices=e.choice_words}else"CAB"===this.content.type&&(t.sentence=this.content.passage,t.choices=[this.content.choose_a,this.content.choose_b],t.answer=this.$store.state.cab_select,t.right=this.content.rightanswer,t.oxResult=this.$store.state.cab_select===this.content.rightanswer);"boolean"===typeof t.oxResult&&(this.$store.state.ox_right=t.oxResult),console.log("[Grammar] saving result:",t),this.data.result_data[this.data.count]=t,this.data.check_answer=!1},generateGrammarResultHtml(){if(console.log("this.content",this.content),"SA"===this.content.type){const t=this.content.id,e=this.content.question||this.content.text||"";let s=this.content.passage||this.content.origin_passage||"";s&&(s=s.replace(/]*class=['"]?sa_input['"]?[^>]*>/gi,t=>{const e=t.match(/data-textleng=['"]?(\d+)['"]?/i),s=e?parseInt(e[1]):10;return"("+" ".repeat(s)+")"}));const i=t=>void 0===t||null===t?"":window.escape(String(t)),o=t=>t?window.escape(String(t).replace(/'/g,"+_+")):"",a=this.$store.state.writing_k_data&&this.$store.state.writing_k_data.answers&&this.$store.state.writing_k_data.answers[0]||"",n=Array.isArray(a)?a.join(""):String(a||""),r=this.content.rightanswer||"",l=r===n;let c="";e&&(c+=`
${i(e)}
`),s&&(c+=`
${i(s)}
`);const d=String(r);let h="";for(let g=0;g${i(t)}`:`${i(t)}`}c+=`
${h}
`;const u="1",p=i(e),_=s?o(s):null;let m=`class='r-s' data-i='${t}' data-r='${l?"true":"false"}' data-a='${u}' data-e='${p}' data-t='SA'`;return _&&(m+=` data-p='${_}'`),`${c}`}if("SC"===this.content.type){const t=this.content.id,e=this.content.question||this.content.text||"",s=this.content.passage||this.content.origin_passage||"",i=String(this.content.rightanswer||""),o=t=>void 0===t||null===t?"":window.escape(String(t)),a=t=>t?window.escape(String(t).replace(/'/g,"+_+")):"",n=t=>String(t||"").trim().replace(/\s+/g," ").replace(/[\s]*[\.\!\?]+$/g,"").toLowerCase().replace(/[^a-z0-9]/gi,""),r=this.$store.state.grammar_matching_data&&this.$store.state.grammar_matching_data.selected_words||[],l=(r||[]).map(t=>String(t||"").replace(/ /gi," ").replace(/<[^>]*>/g,"").trim()).filter(t=>t.length>0),c=l.join(" ").trim(),d=n(c)===n(i);let h="";e&&(h+=`
${o(e)}
`),s&&(h+=`
${o(s)}
`);const u=i.split(/\s+/).filter(t=>t.length>0),p=l.length?l:(c||"").split(/\s+/),_=u.map(t=>t.replace(/[\s]*[\.\!\?]+$/g,"")),m=p.map(t=>String(t||"").replace(/[\s]*[\.\!\?]+$/g,""));let g="";const b=Math.max(u.length,p.length)-1;for(let x=0;x<=b;x++){const t=p[x]||"",e=u[x]||"",s=m[x]||"",i=_[x]||"",a=s&&i&&n(s)===n(i)||!s&&!i,r=x${o(l)}${r}`:`${o(l)}${r}`}h+=`
${g}
`;const v="1",f=o(e),w=s?a(s):null;let y=`class='r-s' data-i='${t}' data-r='${d?"true":"false"}' data-a='${v}' data-e='${f}' data-t='SC'`;return w&&(y+=` data-p='${w}'`),`${h}`}if("MC"===this.content.type){const t=this.content.id,e=this.content.question||this.content.text||"",s=this.content.passage||this.content.origin_passage||"",i=t=>void 0===t||null===t?"":window.escape(String(t)),o=t=>t?window.escape(String(t).replace(/'/g,"+_+")):"",a=Array.isArray(this.content.split_exam)?this.content.split_exam:String(this.content.example||"").split("//").filter(Boolean);let n=a.findIndex(t=>t===this.content.rightanswer);if(n<0){const t=Number(this.content.rightanswer_num);!isNaN(t)&&t>0&&(n=Math.max(0,t-1))}const r=this.content.sub_unit,l=this.$store.state[`grammar_${r}_data`],c=this.$store.state.current_step||0;let d="number"===typeof this.$store.state.popquiz_select?this.$store.state.popquiz_select:null;if(null===d&&l&&Array.isArray(l.answers)){const t=l.answers[c];"number"===typeof t&&(d=t)}const h=null!==d&&n>=0&&Number(d)===Number(n);let u="";e&&(u+=`
${i(e)}
`),s&&(u+=`
${i(s)}
`),u+="
";for(let _=0;_${i(t)}`:null===d||Number(d)!==_||h?u+=`${i(t)}`:u+=`${i(t)}`,_")}u+="
";const p=["class='r-s'",`data-i='${t}'`,`data-r='${h?"true":"false"}'`,"data-a='1'",`data-e='${i(e)}'`,"data-t='MC'"];return s&&p.push(`data-p='${o(s)}'`),null!==d&&void 0!==d&&p.push(`data-s='${d}'`),`${u}`}const t=!!this.$store.state.ox_right,e=this.content.type,s=this.content.id,i=t=>void 0===t||null===t?"":window.escape(String(t)),o=t=>t?window.escape(String(t).replace(/'/g,"+_+")):"",a=this.content.question||this.content.text||"",n=this.content.passage||this.content.origin_passage||"",r=i(a),l=n?o(n):null,c="1";let d="";if("MC"===e){const o=(this.content.example||"").split("//").filter(Boolean);a&&(d+=`
${i(a)}
`),n&&(d+=`
${i(n)}
`);const h=this.content.sub_unit,u=this.$store.state[`grammar_${h}_data`],p=this.$store.state.current_step||0,_=u&&u.answers&&"number"===typeof u.answers[p]?u.answers[p]:null,m=u&&u.right_number&&"number"===typeof u.right_number[p]?u.right_number[p]:isNaN(+this.content.rightanswer_num)?null:Math.max(0,+this.content.rightanswer_num-1);let g="";o.forEach((t,e)=>{const s=[];null!==m&&e===m&&s.push("c_b"),null!==_&&e===_&&s.push("select");const o=s.length>0?` class="${s.join(" ")}"`:"";g+=`${i(t)}`});let b=`class='r-s' data-i='${s}' data-r='${t?"true":"false"}' data-a='${c}' data-e='${r}' data-t='${e}'`;l&&(b+=` data-p='${l}'`),null!==_&&(b+=` data-s='${_}'`),d+=`
${g}
`}else if("SA"===e){const t=this.$store.state.writing_k_data&&this.$store.state.writing_k_data.answers&&this.$store.state.writing_k_data.answers[0]||"";a&&(d+=`
${i(a)}
`),n&&(d+=`
${i(n)}
`),d+=`
${i(t)}
`}else{if("CAB"===e){const t=this.content.choose_a||"",o=this.content.choose_b||"",h=this.$store.state.cab_select,u=this.content.rightanswer,p=h===u;a&&(d+=`
${i(a)}
`),n&&(d+=`
${i(n)}
`);const _=this.content.sub_unit,m=this.$store.state[`grammar_${_}_data`],g=this.$store.state.current_step||0,b=m&&m.answers&&"number"===typeof m.answers[g]?m.answers[g]:null,v=[t,o],f=v.findIndex(t=>t===u);let w="";v.forEach((t,e)=>{const s=[];null!==f&&e===f&&s.push("c_b"),null!==b&&e===b&&s.push("select");const o=s.length>0?` class="${s.join(" ")}"`:"";w+=`\n ${1===e?" / ":""}\n ${i(t)}\n `}),d+=`
${w}
`;let y=`class='r-s' data-i='${s}' data-r='${p?"true":"false"}' data-a='${c}' data-e='${r}' data-t='${e}'`;return l&&(y+=` data-p='${l}'`),null!==b&&(y+=` data-s='${b}'`),`${d}`}if("SC"===e){const t=this.$store.state.grammar_matching_data&&this.$store.state.grammar_matching_data.selected_text||"";a&&(d+=`
${i(a)}
`),d+=`
${i(t)}
`}else d+=`
${i(a)}
`}let h=`class='r-s' data-i='${s}' data-r='${t?"true":"false"}' data-a='${c}' data-e='${r}' data-t='${e}'`;return l&&(h+=` data-p='${l}'`),`${d}`},cleanupAssessmentData(){if(!this.content||!this.content.type)return;const t=this.content.sub_unit;["MC","CAB","SC"].includes(this.content.type)&&(this.$store.state[t+"_sentences"]&&(this.$store.state[t+"_sentences"]=[]),this.$store.state[`grammar_${t}_data`]&&(this.$store.state[`grammar_${t}_data`]={choices:[],passage:[],question:[],answers:[],rightanswer:[],right_number:[],right:[]})),"SA"===this.content.type&&(this.$store.state.writing_k_data={answers:[],right:[],result_html:[]},this.$store.state.grammar_sa_type=""),"SC"===this.content.type&&(this.$store.state.grammar_matching_data={choice_words:[],selected_words:[],selected_keys:[],selected_text:"",answers:[],right:[],result_html:[]}),this.$store.state.grammar_type="",this.$store.state.grammar_sub_unit=""}},beforeDestroy(){this.timeout_moving&&clearTimeout(this.timeout_moving),this.content&&this.content.type&&this.cleanupAssessmentData(),this.content.isReview&&document.removeEventListener("keydown",this.keyDownHandler)},destroyed(){console.log("--- GrammarTheory Destroyed ---"),this.$destroy()}},gf=mf,bf=(s("6476"),Object(p["a"])(gf,pf,_f,!1,null,null,null)),vf=bf.exports;y()(bf,{VCard:at["a"]});const ff=1.7,wf=1.6,yf=.6,xf=1.4;var kf={name:"level-test",directives:{Ripple:wi["a"]},props:["assessmentInfo"],components:{Loading:Bt,ProgressBar:kt,TTSAudio:Ft,InformationModal:Dg,M1:Ng,M2:Zg,W1:eb,V1:rb,WordArrange:pb,WordArrangeNew:fb,BlankInferenceNew:Rb,BlankInference:$b,Mtv1:qb,Mtv2:Fb,Bank5:xv,Bank1:Zb,Bank2:ev,Bank3:rv,Bank4:pv,Bank6:Av,Bank7:Ev,StoryBank1:Ov,StoryBank5:Uv,StoryBankSa:Qv,StoryBankSc:nf,Grammar:vf,Timer:ti,SubmitModal:uf},data(){return{tempTimestamp:null,LEVEL_TEST_RESULT:g["y"]+g["R"],LEVEL_TEST_GRADE:g["z"],ASSESSMENT_RESULT:g["c"]+g["R"],LEVEL_TEST:g["y"],ASSESSMENT:g["c"],mdiChevronDoubleLeft:Lt["q"],mdiChevronDoubleRight:Lt["r"],mdiChevronRight:Lt["v"],grade:null,testGrade:null,changed_grade:null,correct_count:0,incorrect_count:0,name:null,contents:null,font_head:ff,font_main:wf,is_ios:!1,is_mobile:this.$store.state.is_mobile||!1,doc_bind:!1,count:null,font_level:1,isPrevClicked:!1,curType:null,check_answer:!1,next_disabled:!1,result_data:{},final_result:{},dialog_start:!1,dialog_move:!1,windowModel:null,progressHalf:0,loadingText:"잠시만 기다려주세요.",savingResult:!1,questionCount:0,isDialogSubmit:!1,message:"",isTimeExpired:!1}},created(){this.font_level=this.$store.state.bank_font_level,"ios"===this.$store.state.platform&&(this.is_ios=!0)},mounted(){if(!this.assessmentInfo&&this.assessmentInfo.assessment_id)return;this.isTimeExpired=!1,this.isDialogSubmit=!1;let t="정규평가";+this.assessmentInfo.round_no>0&&(t=+this.assessmentInfo.round_no+"차 재평가"),this.$store.commit("setAssessmentInfo",{...this.assessmentInfo,roundNo:t}),this.initAssessment()},watch:{showLoading(t){t||this.$store.state.process_type===this.LEVEL_TEST_RESULT||(this.dialog_start=!0)},check_answer(t){console.log(">>>>>>>>>>check_answer",t),t||(this.next_disabled=!0,setTimeout(async()=>{console.log("check_answer",this.result_data[this.count]);const t=this.result_data[this.count];if(t&&this.hasUserAnswer(t)){const t=Object.keys(this.result_data).filter(t=>{const e=this.result_data[t];return!!e&&this.hasUserAnswer(e)}).length;this.$store.commit("setAssessmentInfo",{...this.$store.state.assessmentInfo,answeredCount:t})}if(!this.result_data[this.count])return!1;this.count+1===this.questionCount?(console.log("[Assessment] FINAL_RESULT",this.result_data),this.openSubmitModal()):(this.count+=1,this.smoothMove()),this.next_disabled=!1},750))},count(t,e){if(console.log("watch count : ",t,e),this.windowModel=t,this.curType=this.contents[t].type,"speaking"===this.curType&&(this.$store.commit("setRecordCntZero"),this.$store.commit("setSpeakingStart",!0)),this.$store.commit("setStep",t),this.$store.commit("oxShow",!1),["dictation","speaking"].includes(this.curType)||(this.$store.commit("setCurTTSAudio",void 0),this.$store.commit("setSpeakingStart",!1)),t!==e&&this.contents[t]&&"G"===this.contents[t].referenceType&&this.$nextTick(()=>{const e="currentModule-"+t,s=this.$refs[e],i=Array.isArray(s)?s[0]:s;i&&"function"===typeof i.setupSingleQuestionData&&i.setupSingleQuestionData()}),t>e){const e=this.result_data[t-1];!["유아","성인"].includes(this.$store.state.unit.name)&&e&&(console.log("evaluateResult"),this.evaluateResult(t,e))}},"$store.state.assessmentRemainingTime"(t,e){null!==this.$store.state.assessmentLimitTime&&this.$store.state.process_type!==this.ASSESSMENT_RESULT&&(this.isDialogSubmit||this.isTimeExpired||null!==t&&0===t&&null!==e&&e>0&&(this.isTimeExpired=!0,this.openSubmitModal()))}},computed:{showFontControl(){if(this.count<0||!this.contents)return!1;if(!this.contents||!Array.isArray(this.contents))return!1;const t=this.contents[this.count];if(!t)return!1;const e=["B","G","P"];return e.includes(t.referenceType)},...Object(S["e"])(["seconds"]),getScoringTimer(){return this.$store.getters.getScoringTimer},showLoading(){const t=document.querySelector("#header-study-bar");return t&&this.$store.state.loading_percent>0&&(t.style.zIndex=50),this.$store.state.loading_percent>0}},methods:{...Object(S["b"])(["startLevelTimer","pauseLevelTimer","stopLevelTimer","setAssessmentLimitTime","startAssessmentTimer","stopAssessmentTimer","resetAssessmentTimer"]),setToast:function(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},openSubmitModal(){this.$store.state.process_type!==this.ASSESSMENT_RESULT&&(this.isDialogSubmit=!0,this.message="")},async submitEvaluation(t){this.message=t;try{await this.ensureCurrentResultSaved(),this.isDialogSubmit=!1;const e={};Object.keys(this.result_data||{}).forEach(t=>{const s=this.result_data[t];if(s){const i={...s};void 0===i.ox_right&&"oxResult"in i&&(i.ox_right=!!i.oxResult),Object.keys(i).forEach(t=>{void 0===i[t]&&(i[t]=null)}),e[t]=i}});const s=this.generateAssessmentResultHtml(e);await this.submitAssessmentToAPI(e),await this.saveAssessmentToFirebase(s),console.log("[Assessment] SUBMIT_CLICKED",t||null)}catch(e){console.error("[Assessment] submitEvaluation error",e)}finally{this.$store.commit("setProcessType",this.ASSESSMENT_RESULT)}},async ensureCurrentResultSaved(){try{const e=this.count;if(null==e||!this.contents||!this.contents[e]||this.result_data[e])return;const s="currentModule-"+e,i=this.$refs[s],o=Array.isArray(i)?i[0]:i;if(!o)return;const a=["checkPopquiz","checkMatching","checkGrammarAnswer","checkDictation","checkWriting"];for(const n of a)if("function"===typeof o[n])try{o[n]();break}catch(t){console.warn("ensureCurrentResultSaved error:",n,t)}await this.$nextTick(),await new Promise(t=>setTimeout(t,50))}catch(t){console.warn("ensureCurrentResultSaved outer error:",t)}},async submitAssessmentToAPI(t){try{const e=Object.values(t).filter(t=>t.oxResult).length,s=e/this.questionCount*100,i=Object.keys(t).filter(e=>!t[e].oxResult).map(e=>t[e].id).filter(t=>t),o={assessmentUserId:this.assessmentInfo.assessment_user_id,score:s,studyTime:this.$store.state.seconds,wrongQuestionIds:i,roundNo:isNaN(this.assessmentInfo.round_no)?1:+this.assessmentInfo.round_no+1,comment:this.message,resultSheet:t},a=await this.$axios.post(`${g["w"]}/assessmentresult/${this.$store.state.cid}/user/${this.$store.state.uid}/submit`,o);if(200===a.status&&a.data.result){this.$emit("change-is-study",!0);const t=a.data.recordId;this.$store.commit("setAssessmentRecordId",t),this.$store.commit("setLearningStatus",!0),this.$store.commit("setProcessType",this.ASSESSMENT_RESULT)}console.log("[Assessment] API 저장 완료",a.data)}catch(e){console.error("[Assessment] API 저장 실패",e)}},async saveAssessmentToFirebase(t){try{const{db:e}=await Promise.resolve().then(s.bind(null,"3666")),i=`${this.$store.state.cid}-${this.assessmentInfo.assessment_id}-0-${this.$store.state.uid}-assessment`,o=e.collection("users").doc(this.$store.state.uid).collection("assessments").doc(this.assessmentInfo.assessment_id).collection("assessmentunits").doc(i);await o.set({result_html:t}),console.log("[Assessment] Firebase 저장 완료",{assessmentunitId:i,resultCount:t.length})}catch(e){console.error("[Assessment] Firebase 저장 실패",e)}},generateAssessmentResultHtml(t){const e=[];return this.contents&&Array.isArray(this.contents)?(this.contents.forEach((s,i)=>{const o=i.toString(),a=t[o];let n=null;if(a&&a.result_html)n=a.result_html;else{try{const t="currentModule-"+i,e=this.$refs[t],o=Array.isArray(e)?e[0]:e;if(o)if("function"===typeof o.generateGrammarResultHtml&&"G"===s.referenceType)try{n=o.generateGrammarResultHtml();const t=!!a&&a.oxResult;n=n.replace(/data-r='[^']*'/,`data-r='${t?"true":"false"}'`)}catch(r){console.warn(`[Assessment] generateGrammarResultHtml 호출 실패 (index: ${i}):`,r)}else if("function"===typeof o.calcResult)try{const t=o.calcResult();if(t&&t.result_html){n=t.result_html;const e=!!a&&a.oxResult;n=n.replace(/data-r='[^']*'/,`data-r='${e?"true":"false"}'`)}}catch(r){console.warn(`[Assessment] calcResult 호출 실패 (index: ${i}):`,r)}}catch(r){console.warn(`[Assessment] 모듈 ref 접근 실패 (index: ${i}):`,r)}n||(n=this.generateHtmlFromContent(s,a))}n||(n=this.generateHtmlFromContent(s,a)),e.push(n)}),e):(Object.keys(t||{}).forEach((s,i)=>{const o=t[s],a=o.oxResult;let n;o.result_html?n=o.result_html:(n=``,n+=`
문제 ${i+1}
`,o.sentence&&(n+=`
${o.sentence}
`),o.mean&&(n+=`
${o.mean}
`),void 0!==o.answer&&(n+=`
답: ${o.answer}
`),void 0!==o.right&&(n+=`
정답: ${o.right}
`),n+="
"),e.push(n)}),e)},generateHtmlFromContent(t,e){if(!t)return"";const s=t=>void 0===t||null===t?"":window.escape(String(t)),i=t.id||"",o=t.type||"",a=t.seq||0,n=e&&e.oxResult||!1,r=(e&&e.answer,e&&null!==e.answer&&void 0!==e.answer&&"number"===typeof e.answer?e.answer:null);if("v1"===o){const e=t.choices||[],l=t.mean||"",c=t.word||"",d=e.findIndex(t=>t===l);let h="
";h+=`
${s(c)}
`;for(let t=0;t${s(o+i)}`:null===r||r!==t||n?`${s(o+i)}`:`${s(o+i)}`,t")}h+="
";const u="
다음 단어에 맞는 올바른 뜻을 고르세요.
",p=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,`data-a='${+a+1}'`,`data-e='${s(c)}'`,`data-t='${o}'`];null!==r&&void 0!==r&&p.push(`data-s='${r}'`);const _=p.join(" ");return`${u}${h}`}if("m1"===o){const e=t.choices||[],l=t.mean||"",c=t.sentence||"",d=e.findIndex(t=>t===c);let h="
";h+=`
${s(l)}
`;for(let t=0;t${s(o+i)}`:null===r||r!==t||n?`${s(o+i)}`:`${s(o+i)}`,t")}h+="
";const u="
다음 해석에 맞는 올바른 영문장을 고르세요.
",p=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,`data-a='${+a+1}'`,`data-e='${s(l)}'`,`data-t='${o}'`];null!==r&&void 0!==r&&p.push(`data-s='${r}'`);const _=p.join(" ");return`${u}${h}`}if("m2"===o){const r=t.mean||"",l=t.sentence||"";let c="";e&&e.answer&&(c=String(e.answer));const d="
주어진 해석을 영문장으로 적으세요.
";let h="";if(l)for(let t=0;t${s(e)}`:`${s(e)}`}let u=`
${s(r)}
${h}
`;const p=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,`data-a='${+a+1}'`,`data-e='${s(r)}'`,`data-t='${o}'`].join(" ");return`${d}${u}`}if("mtv2"===o){const a=t.word||"",r=t.mean||"",l=e&&e.right||a||"",c=e&&e.answer?String(e.answer):"",d="
주어진 한글 뜻에 맞게 단어를 적으세요.
";let h="";if(l)for(let t=0;t${s(e)}`:`${s(e)}`}let u=`
${s(r)}
${h}
`;const p=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,"data-a='0'",`data-e='${s(r)}'`,`data-t='${o}'`].join(" ");return`${d}${u}`}if("mtv1"===o){const e=t.choices||[],l=t.mean||"",c=t.word||"",d=e.findIndex(t=>t===c);let h="
";h+=`
${s(l)}
`;for(let t=0;t${s(o+i)}`:null===r||r!==t||n?`${s(o+i)}`:`${s(o+i)}`,t")}h+="
";const u="
다음 뜻에 맞는 올바른 단어를 고르세요.
",p=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,`data-a='${+a+1}'`,`data-e='${s(l)}'`,`data-t='${o}'`];null!==r&&void 0!==r&&p.push(`data-s='${r}'`);const _=p.join(" ");return`${u}${h}`}if("w1"===o){const e=t.choices||[],l=t.mean||"",c=t.sentence||"",d=e.findIndex(t=>t===l);let h="
";h+=`
${s(c)}
`;for(let t=0;t${s(o+i)}`:null===r||r!==t||n?`${s(o+i)}`:`${s(o+i)}`,t")}h+="
";const u="
다음 영문장에 맞는 올바른 해석을 고르세요.
",p=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,`data-a='${+a+1}'`,`data-e='${s(c)}'`,`data-t='${o}'`];null!==r&&void 0!==r&&p.push(`data-s='${r}'`);const _=p.join(" ");return`${u}${h}`}if("word_arrange"===o){const a=t.mean||"",n=t.sentence||"",r=e?e.selected_chips?Array.isArray(e.selected_chips)?e.selected_chips.join(" "):String(e.selected_chips):e.answer&&"string"===typeof e.answer?e.answer:"":"",l=t=>String(t||"").toLowerCase().replace(/[^a-z0-9]/gi,""),c=n.split(/\s+/).filter(t=>t.length>0),d=r.split(/\s+/).filter(t=>t.length>0),h=l(r)===l(n);let u="";const p=Math.max(c.length,d.length)-1;for(let t=0;t<=p;t++){const e=d[t]||"",i=c[t]||"",o=e&&i&&l(e)===l(i),a=t${s(e)}${a}`:`${s(i)}${a}`}const _="
다음 해석을 보고 순서에 맞게 문장을 완성하세요.
",m=["class='r-s'",`data-i='${i}'`,`data-r='${h?"true":"false"}'`,"data-a='0'",`data-e='${s(a)}'`,`data-t='${o}'`].join(" ");return`${_}
${s(a)}
${u}
`}if("word_arrange_new"===o){const n=t.mean||"",r=t.sentence||"",l=t.choices||[],c=t=>(t||"").trim().replace(/\s+/g," "),d=c(r),h=l.findIndex(t=>c(t)===d),u=e&&null!==e.answer&&void 0!==e.answer?Number(e.answer):null,p=null!==u&&h>=0&&u===h,_="
다음 해석을 보고 순서에 맞게 나열한 문장을 찾으세요.
";let m="
";m+=`
${s(n)}
`;for(let t=0;t${s(i+e)}`:null===u||u!==t||p?`${s(i+e)}`:`${s(i+e)}`,t")}m+="
";const g=["class='r-s'",`data-i='${i}'`,`data-r='${p?"true":"false"}'`,`data-a='${+a+1}'`,`data-e='${s(n)}'`,`data-t='${o}'`];null!==u&&void 0!==u&&g.push(`data-s='${u}'`);const b=g.join(" ");return`${_}${m}`}if("blank_inference"===o||"blank_inference_new"===o){const r=t.mean||"",l=e&&e.right||t.sentence||"",c=e&&e.answer?String(e.answer):"",d=e&&e.cur_answer_txt?String(e.cur_answer_txt):"",h="blank_inference"===o?"
주어진 해석을 참고하여 영문장의 빈칸을 완성하세요.
":"
제시된 철자에 맞게 어휘를 넣어 문장을 완성하세요.
",u=d||(l?l.replace(/[A-Za-z]/g,"_"):"");let p="";if(l)for(let t=0;t${s(e)}`:`${s(e)}`:p+=`${s(e)}`}const _=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,`data-a='${+a+1}'`,`data-e='${s(r)}'`,`data-t='${o}'`].join(" ");return`${h}
${s(r)}
${p}
`}if("B"===t.referenceType||"P"===t.referenceType){const o=t.question||"";let a=[];if(t.example){const e=String(t.example||"").split("//");a=e.filter(Boolean)}else if(t.text){const e=/\[\[.*?\]\]/gi,s=[];t.text.replace(e,t=>(s.push(t),""));for(let t=0;t-1?e.split("///"):e.split("//");i.length>=2&&(a.push(i[0]),a.push(i[1]))}}if(t.bank_type){const r=+t.bank_type,l=t.right||t.rightanswer||"";let c=``;if(c+=`${s(o)}
`,1===r){let i=[],o=[];if(t.text){let e=t.text;const s=/\[\[.*?\]\]/gi,a=[];let n=e.replace(s,(t,e)=>(a.push(t),"$_$"));if(n=n.replace(/\/\/\//gi,"
"),i=n.split("$_$"),a)for(let t=0;t-1?e.split("///"):e.split("//"),s.length>=2&&o.push([s[0],s[1]])}}const a=e&&Array.isArray(e.answer)?e.answer:[],n=e&&Array.isArray(e.right)?e.right:[];for(let t=0;t${i[t]}
 `,o[t]&&o[t].length>0){const e=o[t][0],i=o[t][1],r=n[t],l=a[t];let d="";d=e==r?"c_b":e==l?"c_r":"grey--text text--lighten-3";let h="";h=i==r?"c_b":i==l?"c_r":"grey--text text--lighten-3",c+=`${s(e)} `,c+=" / ",c+=`${s(i)} `}}else if(2===r){let i=[],o=[];if(t.text){let e=t.text;const s=/\[\[.*?\]\]/gi,a=[];let n=e.replace(s,(t,e)=>(a.push(t),"$_$"));if(n=n.replace(/\/\/\//gi,"
"),i=n.split("$_$"),a)for(let t=0;t${i[t]} `,o[t]){const e=o[t];let i="";i=e.idx==a.idx?"c_b":n&&e.idx==n.idx?"c_r":"grey--text text--lighten-3",c+=`${s(e.txt)} `}}else if(3===r||4===r){let i=t[3===r&&"P"===t.referenceType?"passage":"st_std"];i&&(i=i.replace(/\/\/\//gi,"
"),i=i.replace(/\[\[.*?\]\]/gi,e=>{if(t.right){let e=Math.round(1.4*t.right.length);e<15&&(e=15);let s='';for(let t=0;t${""+i+""} `);let o=/^st_[0-9]$/,a=[],n=[];if(3===r&&"P"===t.referenceType)n=t.rightanswer?t.rightanswer.split("//"):[],a=[...n];else for(let[e,s]of Object.entries(t))o.test(e)&&s&&(n.push(s),a.push(s));const l=e&&Array.isArray(e.answer)?e.answer:[],d=e&&Array.isArray(e.right)?e.right:[];let h=!0;if(l.length>0&&d.length>0)for(let t=0;t${s(a[t])} `}}else if(5===r||7===r){if(t.text){let e=t.text;e=e.replace(/\/\/\//gi,"
"),e=e.replace(/\[\[.*?\]\]/gi,e=>{if(t.right){let e=Math.round(1.4*t.right.length);e<15&&(e=15);let s='';for(let t=0;t{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""}),7===r&&(c+=`${""+e+""}`)}let s=/^st_[0-9]$/,i=[];for(let[e,r]of Object.entries(t))s.test(e)&&r&&i.push(r);!i.includes(t.right)&&t.right&&i.push(t.right);let o=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"],a=t.right?t.right.trim():"";a&&o.includes(a)&&(i=i.sort((t,e)=>(t=t.trim(),e=e.trim(),o.indexOf(t)-o.indexOf(e))));let n=i.map(t=>{let e=t.replace(/\{\{(.*?)\}\}/g,t=>{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""});return e=e.replace("@@","
"),e});i.findIndex(e=>e===t.right);const l=e&&null!==e.answer&&void 0!==e.answer&&"number"===typeof e.answer?e.answer:null;for(let e=0;e${e+1}. ${n[e]}

`}}else if(6===r){let i=["ⓐ","ⓑ","ⓒ","ⓓ","ⓔ","ⓕ"],o=["①","②","③","④","⑤","⑥"],a=t.right?t.right.trim():"",n=t.st_std||("StoryAdvanced"===t.use?t.passage:""),r="StoryAdvanced"===t.use?t.passage:t.text,l=i.includes(a)||o.includes(a);if(n){if("StoryAdvanced"===t.use){const e=/(\☆\☆(.*?)\☆\☆)/,s=t.passage?t.passage.match(e):null;s&&(s[2]?n=s[2]:s[0]?n=s[0].replace(/☆☆/g,""):s[1]&&(n=s[1].replace(/☆☆/g,"")))}n=n.replace(/\/\/\//gi,"
"),n=n.replace(/\[\[.*?\]\]/gi,t=>{if(a){let t=Math.round(1.4*a.length);t<15&&(t=15);let e='';for(let s=0;s{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""}),c+=`${""+n+""}
`}!l&&r&&(r=r.replace(/\/\/\//gi,"
"),r=r.replace(/\[\[.*?\]\]/gi,t=>{if(a){let t=Math.round(1.4*a.length);t<15&&(t=15);let e='';for(let s=0;s{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""}),c+=`${""+r+""}
`);let d=/^st_[0-9]$/,h=[];for(let[e,s]of Object.entries(t))d.test(e)&&s&&h.push(s);if(!h.includes(a)&&a&&h.push(a),i.includes(a)){let t=new Array(h.length),e=[];for(let s=0;s-1?t[o]=h[s]:e.push(h[s])}h=t.filter(Boolean).concat(e)}else if(o.includes(a)){let t=new Array(h.length),e=[];for(let s=0;s-1?t[i]=h[s]:e.push(h[s])}h=t.filter(Boolean).concat(e)}const u=e&&null!==e.answer&&void 0!==e.answer?e.answer:null,p="number"===typeof u?u:-1;h.findIndex(t=>t===a);for(let t=0;t=0&&t===p&&(e=" class='c_r' "),c+=`${t+1}. ${s(h[t])}
`}}else{a.findIndex(t=>t===l);const t=e&&null!==e.answer&&void 0!==e.answer&&"number"===typeof e.answer?e.answer:null;for(let e=0;e${e+1}. ${s(a[e])}

`}}return c+="
",c}if("P"===t.referenceType){const o=t.question||"",r=t.rightanswer||"";let l=``;if(l+=`${s(o)}
`,"SC"===t.type){const i=(r||"").trim(),o=i.split(" ");let a="";e&&null!==e.answer&&void 0!==e.answer&&(a=Array.isArray(e.answer)?e.answer.map(t=>String(t).replace(" "," ")).join("").trim():String(e.answer).trim());const n=a.split(" "),c=i===a;if(t.passage&&(l+=`${t.passage}
`),c)l+=`${s(i)}`;else for(let t=0,e=o.length;t${s(o[t])}
`:l+=`${s(o[t]||"")} `}else if("SA"===t.type&&void 0!==t.sa_type){const i=+t.sa_type,o=(r||"").trim(),a=Array.from(o),n=e&&null!==e.answer&&void 0!==e.answer?String(e.answer).trim():"";let c="";if(0===i){let e=t.passage||"";e.match(/\/\//)&&(e=e.replace(/\/\//g,"
")),c=e}else if(1===i){let e=t.passage||"";e&&(e=e.replace(/\/\/\//gi,"
"),e=e.replace(/\[\[.*?\]\]/gi,t=>{if(o){let t=Math.round(1.4*o.length);t<15&&(t=15);let e='';for(let s=0;s{let e=t.replace(/\{|\}/g,"");return/^\s+$/.test(e)?''+Array.from(e).map(t=>" ").join("")+"":''+e+""}),c=""+e+"")}if(c&&(l+=`${c}
`),0===i||1===i)if(o===n)l+=`${s(n||o)}`;else{const t=Array.from(n);for(let e=0,i=a.length;e${s(a[e])}
`:l+=`${s(a[e]||"")}`}else if(2===i){t.passage;let e=t.passage||"",i=o.split(" / "),a=n.split(" / ");for(let t=0;t${s(e[t])}`:o+=`${s(e[t]||"")}`}else o=`${s(i[t]||"")}`;e=e.replace(/\/i,o)}l+=e}}else{const t=e&&null!==e.answer&&void 0!==e.answer?e.answer:null,i=a.findIndex(t=>t===r);for(let e=0;e${e+1}. ${s(a[e])}
`}}return l+="",l}}else if("G"===t.referenceType){const a=t=>t?window.escape(String(t).replace(/'/g,"+_+")):"";if("MC"===o){const o=t.question||t.text||"",n=t.passage||t.origin_passage||"",r=Array.isArray(t.split_exam)?t.split_exam:String(t.example||"").split("//").filter(Boolean);let l=r.findIndex(e=>e===t.rightanswer);if(l<0){const e=Number(t.rightanswer_num);!isNaN(e)&&e>0&&(l=Math.max(0,e-1))}const c=e&&null!==e.answer&&void 0!==e.answer?e.answer:null,d=null!==c&&l>=0&&Number(c)===Number(l);let h="";o&&(h+=`
${s(o)}
`),n&&(h+=`
${s(n)}
`),h+="
";for(let t=0;t${s(e)}`:null===c||Number(c)!==t||d?h+=`${s(e)}`:h+=`${s(e)}`,t")}h+="
";const u=["class='r-s'",`data-i='${i}'`,`data-r='${d?"true":"false"}'`,"data-a='1'",`data-e='${s(o)}'`,"data-t='MC'"];return n&&u.push(`data-p='${a(n)}'`),null!==c&&void 0!==c&&u.push(`data-s='${c}'`),`${h}`}if("SA"===o){const o=t.question||t.text||"";let n=t.passage||t.origin_passage||"";n&&(n=n.replace(/]*class=['"]?sa_input['"]?[^>]*>/gi,t=>{const e=t.match(/data-textleng=['"]?(\d+)['"]?/i),s=e?parseInt(e[1]):10;return"("+" ".repeat(s)+")"}));const r=e&&e.answer?String(e.answer):"",l=t.rightanswer||"",c=l===r;let d="";o&&(d+=`
${s(o)}
`),n&&(d+=`
${s(n)}
`);const h=String(l);let u="";for(let t=0;t${s(e)}`:`${s(e)}`}d+=`
${u}
`;const p="1",_=s(o),m=n?a(n):null;let g=`class='r-s' data-i='${i}' data-r='${c?"true":"false"}' data-a='${p}' data-e='${_}' data-t='SA'`;return m&&(g+=` data-p='${m}'`),`${d}`}if("SC"===o){const o=t.question||t.text||"",n=t.passage||t.origin_passage||"",r=String(t.rightanswer||""),l=t=>String(t||"").trim().replace(/\s+/g," ").replace(/[\s]*[\.\!\?]+$/g,"").toLowerCase().replace(/[^a-z0-9]/gi,""),c=e&&e.answer?String(e.answer):"",d=l(c)===l(r);let h="";o&&(h+=`
${s(o)}
`),n&&(h+=`
${s(n)}
`);const u=r.split(/\s+/).filter(t=>t.length>0),p=c?c.split(/\s+/).filter(t=>t.length>0):[],_=u.map(t=>t.replace(/[\s]*[\.\!\?]+$/g,"")),m=p.map(t=>String(t||"").replace(/[\s]*[\.\!\?]+$/g,""));let g="";const b=Math.max(u.length,p.length)-1;for(let t=0;t<=b;t++){const e=p[t]||"",i=u[t]||"",o=m[t]||"",a=_[t]||"",n=o&&a&&l(o)===l(a)||!o&&!a,r=t${s(c)}${r}`:`${s(c)}${r}`}h+=`
${g}
`;const v="1",f=s(o),w=n?a(n):null;let y=`class='r-s' data-i='${i}' data-r='${d?"true":"false"}' data-a='${v}' data-e='${f}' data-t='SC'`;return w&&(y+=` data-p='${w}'`),`${h}`}if("CAB"===o){const o=t.question||t.text||"",n=t.passage||t.origin_passage||"",r=t.choose_a||"",l=t.choose_b||"",c=t.rightanswer||"",d=e&&null!==e.answer&&void 0!==e.answer?String(e.answer):null,h=d===c,u=[r,l],p=u.findIndex(t=>t===c),_=null!==d?u.findIndex(t=>t===d):null;let m="";o&&(m+=`
${s(o)}
`),n&&(m+=`
${s(n)}
`);let g="";u.forEach((t,e)=>{const i=[];p>=0&&e===p&&i.push("c_b"),null!==_&&_>=0&&e===_&&!h&&i.push("c_r");const o=i.length>0?` class="${i.join(" ")}"`:"";g+=`${1===e?" / ":""}${s(t)}`}),m+=`
${g}
`;const b="1",v=s(o),f=n?a(n):null;let w=`class='r-s' data-i='${i}' data-r='${h?"true":"false"}' data-a='${b}' data-e='${v}' data-t='CAB'`;return f&&(w+=` data-p='${f}'`),null!==_&&_>=0&&(w+=` data-s='${_}'`),`${m}`}{const e=t.question||t.text||"",r=t.passage||t.origin_passage||"";let l="";e&&(l+=`
${s(e)}
`),r&&(l+=`
${s(r)}
`);const c=["class='r-s'",`data-i='${i}'`,`data-r='${n?"true":"false"}'`,"data-a='1'",`data-e='${s(e)}'`,`data-t='${o}'`];return r&&c.push(`data-p='${a(r)}'`),`${l}`}}let l=``;if(t.question&&(l+=`
${s(t.question)}
`),t.sentence&&(l+=`
${s(t.sentence)}
`),t.passage&&(l+=`
${s(t.passage)}
`),t.text&&(l+=`
${s(t.text)}
`),t.mean&&(l+=`
${s(t.mean)}
`),t.word&&(l+=`
${s(t.word)}
`),t.choices&&Array.isArray(t.choices)){const e=t.choices,i=t.right||t.rightanswer||"",o=e.findIndex(t=>t===i);l+="
";for(let t=0;t${s(a+i)}`,t")}l+="
"}if(t.example&&!t.choices){const e=String(t.example||"").split("//"),i=e.filter(Boolean),o=t.right||t.rightanswer||"",a=i.findIndex(t=>t===o);l+="
";for(let t=0;t${s(o+e)}`,t")}l+="
"}return e&&null!==e.answer&&void 0!==e.answer&&(l+=`
답: ${s(e.answer)}
`),t.right&&(l+=`
정답: ${s(t.right)}
`),t.rightanswer&&(l+=`
정답: ${s(t.rightanswer)}
`),l+="
",l},setSize(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.$store.state.bank_font_level;if(t<0&&yf>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&xf<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1));const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s])}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.setToast(e)},initAssessment(){this.tempTimestamp=Date.now(),this.$store.commit("setStep",1),this.$store.commit("addLoadingPercent",1),this.loading_interval=setInterval(()=>{100===this.$store.state.loading_percent?(clearInterval(this.loading_interval),this.fillLoadingPercent()):this.$store.commit("addLoadingPercent",1)},500),this.$store.commit("setLearningStatus",!0),this.$store.commit("setProcessType",g["c"]),this.getContent()},pcKeydown(t){"Enter"!==t.key||this.next_disabled||this.goNext()},evaluateResult(t,e){const s=e.oxResult;s?(this.correct_count+=1,this.incorrect_count=0):(this.incorrect_count+=1,this.correct_count=0)},goNext(){this.$store.dispatch("soundEffectPlay","level_next"),this.check_answer=!0,this.isPrevClicked=!1},goPrev(){if(this.isPrevClicked||0===this.count)return;const t=this.count-1,e=this.result_data[t],s=e&&this.hasUserAnswer(e),i=Object.keys(this.result_data).filter(t=>{const e=this.result_data[t];return!!e&&this.hasUserAnswer(e)}).length,o=s?i-1:i;this.$store.commit("setAssessmentInfo",{...this.$store.state.assessmentInfo,answeredCount:o}),setTimeout(async()=>{this.count=this.count-1,this.isPrevClicked=!0},0)},smoothMove(){this.$nextTick(()=>{const t=document.getElementById("level-progress-bar"),e=document.querySelector(".progress-wrap"),s=document.querySelector(".current-question");this.progressHalf=t.offsetWidth/2;const i=s.getBoundingClientRect(),o=i.left+i.width/2-this.progressHalf,a=e.scrollLeft;e.scrollTo({top:0,left:a+o,behavior:"smooth"})})},async fillLoadingPercent(){await this.$store.dispatch("fillLoadingPercent").then(()=>{window.addEventListener("resize",this.onResize)})},filterUniqueTypes(t){const e=new Set,s=[];for(const i of t){if(i.sa_type)continue;let t;if("G"===i.referenceType){const e=i.type,s=i.sub_unit||"";let o="";"SA"===e&&null!==i.sa_type&&void 0!==i.sa_type?o="-sa"+i.sa_type:"SC"===e&&null!==i.sc_type&&void 0!==i.sc_type&&(o="-sc"+i.sc_type),t=`Grammar-${e}-${s}${o}`}else t=i.type;e.has(t)||(e.add(t),s.push(i))}return console.log("🛠️ 문제 유형 목록:",Array.from(e).sort()),s},handleTestStartClick(){this.startLevelTimer(),null!==this.$store.state.assessmentLimitTime&&this.$store.dispatch("startAssessmentTimer"),this.dialog_start=!1,this.$nextTick(()=>{const t="currentModule-"+this.count,e=this.$refs[t],s=Array.isArray(e)?e[0]:e;"G"!==this.contents[0].referenceType&&(this.doc_bind=!0,document.addEventListener("keydown",this.pcKeydown)),this.contents[this.count]&&"m2"===this.contents[this.count].type&&s&&s.$refs&&s.$refs.linedInput&&setTimeout(()=>{s.$refs.linedInput.focusEditable&&s.$refs.linedInput.focusEditable()},300)})},getContent(){console.time("---- getContent Time ----"),this.$axios.get(`${g["w"]}/assessment/${this.$store.state.cid}/user/${this.$store.state.uid}/${this.assessmentInfo.assessment_id}`).then(async t=>{if(200==t.status){if(this.contents=t.data.questions,this.questionCount=this.contents.length,null!==t.data.limitTime&&void 0!==t.data.limitTime){const e=60*t.data.limitTime;this.$store.dispatch("setAssessmentLimitTime",e)}else this.$store.dispatch("resetAssessmentTimer");this.$store.commit("setAssessmentInfo",{...this.$store.state.assessmentInfo,totCnt:this.questionCount}),this.mapMatchingForWordArrange(),this.loading_interval&&(clearInterval(this.loading_interval),await this.fillLoadingPercent(),this.$store.state.init_loading=!1,this.count=0,console.timeEnd("---- getContent Time ----"))}}).catch(t=>{console.error(t)})},mapMatchingForWordArrange(){if(this.contents)for(let t=0;te);for(let s=e.length-1;s>0;s--){const t=Math.floor(Math.random()*(s+1));[e[s],e[t]]=[e[t],e[s]]}return e},newArrShuffle(t,e){const s=[];for(let i=0;i=200?o=i<300?15:i<400?17:i<500?20:22:s.length>22&&(o=15);let a=[],n=!1,r=[],l=[];if(null!=o&&s.length>o){n=!0;const t=Math.floor(s.length/o),e=s.length%o,i=[];let r=[];for(let o=0;o","!==t||" "===e[s-1]||isNaN(e[s-1])||" "===e[s+1]||isNaN(e[s+1])?(r.push(s)," "!==t&&"s"!==t||(t=" "),l.push(t)," "):t);t=t.replace(/\s\s+/g," ").trim();const s=t.split(/\s/gi);let i=this.createIdxRelation(s.length);if(a=this.newArrShuffle(s,i),s.join("")===a.join("")){let t=0;while(s.join("")===a.join("")&&t<1e3)i=this.createIdxRelation(s.length),a=this.newArrShuffle(s,i),t++}}return t.is_longchips=n,t.chips=a,t.ex_idx=r,t.ex_chr=l,t}catch(e){return t.is_longchips=!1,t.chips=(t.sentence||"").trim().split(/\s+/g).filter(Boolean),t.ex_idx=[],t.ex_chr=[],t}},resetTestInfo(){this.$store.state.process_type!==this.ASSESSMENT_RESULT&&this.$store.commit("setLearningStatus",!1),this.stopLevelTimer(),this.loading_interval&&clearInterval(this.loading_interval),this.$store.state.init_loading=!0},async getWordAudioBlob(t){const e=t.word.toLowerCase().replace(/~$/,"").trim().replace(/[^a-zA-Z0-9가-힣]/g,"_"),s=await this.$axios.get(`${g["w"]}/v2/file/checkvocamp3/${e}`);if(200===s.data.res)return`${g["rb"]}/${e}.mp3`;const i=1===+this.$store.state.settings.is_ttsgender?"F":"M",o="F"==i?"is_gender=1":"",a=await this.$axios.get(`${g["w"]}/v2/file/checkvocattsmp3/${e}?${o}`);if(200===a.status){const s=a.data.res,o=a.data.filename?a.data.filename:e;if(200==s){const t=o.charAt(0);return`${g["tb"]}/${i}/${t}/${o}.mp3`}{const s=await this.createTTS(t.word,i,e+".mp3"),o=s.data.done;if(o){const t=e.charAt(0);return`${g["tb"]}/${i}/${t}/${e}.mp3`}return}}},createTTS(t,e,s){return new Promise(i=>{i(this.$axios.post("https://pwu7jsh8kk.apigw.ntruss.com/tts/v1/fPGur2foEm/json",{text:t,gender:e,mp3name:s}))})},onResize(){this.smoothMove()},handleSubmitButton(){this.result_data.length!==this.questionCount&&(this.check_answer=!0),this.openSubmitModal()},hasUserAnswer(t){if(!t)return!1;switch(t.type){case"m1":case"MC":return null!==t.answer&&void 0!==t.answer&&t.answer>=0;case"m2":case"SA":if(t.cur_answer_txt){const e=(t.answer||"").toString(),s=t.cur_answer_txt.toString();return e!==s&&e.trim().length>0}const e=(t.answer||"").toString().trim();return e.length>0;case"mtv2":return this.hasMtv2UserInput(t);case"word_arrange":const s=t.selected_chips||[];return Array.isArray(s)&&s.length>0;case"word_arrange_new":if(null===t.answer||void 0===t.answer)return!1;if("number"===typeof t.answer)return t.answer>=0;const i=t.answer.toString().trim();return i.length>0;case"SC":const o=(t.answer||"").toString().trim();return o.length>0;case"CAB":const a=(t.answer||"").toString().trim();return a.length>0;case"blank_inference":case"blank_inference_new":return this.hasBlankInferenceUserInput(t);case"mtv1":return null!==t.answer&&void 0!==t.answer;case"v1":case"w1":if(null===t.answer||void 0===t.answer)return!1;if("number"===typeof t.answer)return t.answer>=0;const n=t.answer.toString().trim();return n.length>0;case"word_inference":return!(!t.answer||!Array.isArray(t.answer))&&t.answer.some(t=>t);default:if(Array.isArray(t.answer))return t.answer.length>0&&t.answer.some(t=>void 0!==t&&null!==t);if(t.bankType&&"number"===typeof t.answer)return t.answer>=0;if(null!==t.answer&&void 0!==t.answer){if("number"===typeof t.answer)return t.answer>=0;if("string"===typeof t.answer)return t.answer.trim().length>0}if(t.result_html){const e=//.test(t.result_html);return e}return!1}},hasBlankInferenceUserInput(t){const e=t.answer||"",s=t.right||"";if(t.cur_answer_txt){const s=t.cur_answer_txt;if(e===s)return!1;for(let t=0;t([^<]*)<\/span>/g);if(i&&i.length>0){const t=s.split("");let o=[];i.forEach(e=>{const i=e.match(/([^<]*)<\/span>/);if(i&&i[1]){const e=i[1];let a=-1;for(let t=0;t{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}},computedAssessmentList(){const t=this.searchKeyword&&this.searchKeyword.trim()?this.filteredAssessmentList:this.assessmentList;return t.map(t=>({...t,status:this.setStatus(t)}))},paginatedAssessmentList(){const t=this.computedAssessmentList;return t.slice(0,this.page*this.items_per_page)}},created(){this.getAssessmentList().then(()=>{this.sortAssessmentListByFilter("recent")})},methods:{changeIsStudy(t){this.isStudy=t},selectFilter(t){this.sortAssessmentListByFilter(t)},onSearch(t){if(!t||!t.trim())return this.searchKeyword="",void(this.filteredAssessmentList=[]);this.searchKeyword=t.trim();const e=this.searchKeyword.toLowerCase(),s=this.assessmentList.filter(t=>{const s=(t.name||"").toLowerCase();return s.includes(e)});this.filteredAssessmentList=s,this.page=1,this.has_more_data=this.computedAssessmentList.length>this.items_per_page,this.$nextTick(()=>{this.$refs.tableBody&&this.$refs.tableBody.scrollTo({top:0,behavior:"smooth"})})},refresh(t){this.getAssessmentList().then(()=>{"report"!==t&&(this.sortAssessmentListByFilter("recent"),this.setToast("최신 평가 목록으로 업데이트하였습니다."))})},getAssessmentList(){let t=this.$store.state.cid,e=this.$store.state.uid;return this.$axios.get(`${g["w"]}/assessment/${t}/user/${e}/schedule/all`).then(t=>{if(200==t.status){const e=t.data.rows.map(t=>({name:t.assessment_name,postdate:t.postdate,endDate:t.end_date,score:t.score,cutoff:t.cutoff,studyTime:t.study_time,tryCnt:t.try_cnt,...t,lastRecordId:t.last_record_id}));this.assessmentList=e,this.$nextTick(()=>{this.setupScrollListener()})}else console.log(t.status)}).catch(t=>{console.error(t)})},setupScrollListener(){const t=this.$refs.tableBody;t&&t.addEventListener("scroll",this.handleScroll)},handleScroll(t){this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=t.target,s=e.scrollTop,i=e.scrollHeight,o=e.clientHeight;s+o>=.9*i&&this.loadMoreData()},100)},loadMoreData(){!this.scroll_loading&&this.has_more_data&&(this.scroll_loading=!0,setTimeout(()=>{const t=this.page*this.items_per_page,e=this.computedAssessmentList.length;t=+s?"정규평가":t>1&&e&&+e>=+s?t-1+"차 재평가":t>=1?t+"차 재평가":"정규평가"},sortingCol(t,e){this.sort_order!==t?(this.sort_order=t,this.sort_direction="asc"):"asc"==this.sort_direction?this.sort_direction="desc":this.sort_direction="asc",this.$nextTick(()=>{this.$refs.tableBody.scrollTo({top:0,behavior:"smooth"})}),this.sortAssessmentList()},sortAssessmentList(){let t=[...this.computedAssessmentList];const e=t=>"name"===this.sort_order?t.name:"postdate"===this.sort_order?t.postdate:"endDate"===this.sort_order?t.endDate:t.name;t.sort((t,s)=>{const i=e(t),o=e(s);return"string"===typeof i?"asc"===this.sort_direction?i.localeCompare(o,"ko"):o.localeCompare(i,"ko"):"asc"===this.sort_direction?i-o:o-i}),this.assessmentList=t,this.page=1,this.has_more_data=this.computedAssessmentList.length>this.items_per_page},getStatusColor(t){return"success"===t?"#5EC0FF":"fail"===t?"#ff6251":"expired"===t?"#686868":"pending"===t?"#F2F2F2":"#FFFFFF"},getStatusClass(t){return"pending"===t?"text--secondary":"white--text"},formatDate(t){if(!t)return"";const e=new Date(t),s=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${s}.${i}.${o}`},isToday(t){if(!t)return!1;const e=new Date,s=new Date(t);return e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth()&&e.getDate()===s.getDate()},setToast(t){this.$store.dispatch("showToast",{message:t,duration:2e3})},handleRowClick(t){if("expired"!==t.status){if("success"===t.status)return this.changeIsStudy(!1),this.$store.commit("setAssessmentRecordId",t.lastRecordId),this.$store.commit("setAssessmentInfo",t),this.$store.commit("setLearningStatus",!0),void this.$store.commit("setProcessType",this.ASSESSMENT_RESULT);this.selectedAssessment=t,this.selectedAssessment.formattedEndDate=this.$dayjs(t.end_date).format("~ YY년 MM월 DD일"),this.$store.commit("setProcessType",this.ASSESSMENT)}else this.setToast("평가 제출일이 마감되었습니다.")},setStatus(t){const e=new Date,s=new Date(t.endDate);if(s.setHours(23,59,59,999),s=e)return"pending";const i=Number(t.score),o=Number(t.cutoff);return i>=o?"success":"pending"},getStatusText(t,e,s){return"expired"===t?"마감":"pending"===t||+et.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=new RegExp(s(e),"gi");return t.replace(i,"$&")},sortAssessmentListByFilter(t){let e=[...this.assessmentList];switch(t){case"recent":e.sort((t,e)=>{const s=new Date(t.postdate),i=new Date(e.postdate);if(s.getTime()!==i.getTime())return i-s;const o=(t.name||"").toString(),a=(e.name||"").toString();return o.localeCompare(a,"ko")});break;case"recent_learning":e.sort((t,e)=>{const s=t.studyTime,i=e.studyTime;return null===s&&null===i?new Date(e.postdate)-new Date(t.postdate):null===s?1:null===i?-1:i-s});break;case"alphabetical":e.sort((t,e)=>{const s=(t.name||"").toString(),i=(e.name||"").toString();return s.localeCompare(i,"ko")});break;default:e.sort((t,e)=>new Date(e.postdate)-new Date(t.postdate));break}this.assessmentList=e,this.page=1,this.has_more_data=this.computedAssessmentList.length>this.items_per_page,this.$nextTick(()=>{this.$refs.tableBody&&this.$refs.tableBody.scrollTo({top:0,behavior:"smooth"})})},beforeDestroy(){const t=this.$refs.tableBody;t&&t.removeEventListener("scroll",this.handleScroll),this.scrollTimeout&&clearTimeout(this.scrollTimeout)},highlightAssessment(t){const e=this.assessmentList.find(e=>e.name===t.name);e?(this.startHighlighting(e),this.$nextTick(()=>{this.scrollToAssessment(e)})):this.setToast("해당 평가를 찾을 수 없습니다.")},startHighlighting(t){this.highlight_assessment_id=t.name,this.highlightTimeout&&clearTimeout(this.highlightTimeout),this.highlightTimeout=setTimeout(()=>{this.highlight_assessment_id=null,this.highlightTimeout=null},3e3)},scrollToAssessment(t){const e=this.computedAssessmentList.findIndex(e=>e.name===t.name);if(-1!==e){const t=Math.ceil((e+1)/this.items_per_page);t>this.page&&(this.page=t,this.has_more_data=this.computedAssessmentList.length>t*this.items_per_page)}setTimeout(()=>{const e=document.querySelector(`[data-assessment-name="${t.name}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"start"})},50)}}},Af=Tf,If=(s("ffb5"),Object(p["a"])(Af,mg,gg,!1,null,null,null)),Df=If.exports;y()(If,{VBtn:ot["a"]}),o["default"].use($["a"]);const Rf=new $["a"]({mode:"hash",routes:[{name:"index",path:"/",component:xi},{name:"login",path:"/login",meta:{layout:"layout-login"},component:_t},{name:"leveltest",path:"/leveltest",component:ci},{name:"schedule",path:"/schedule",component:Au,children:[{path:"",name:"assessment-learningschedule",component:__},{path:"learningschedule",name:"schedule-learningschedule",component:Hp},{path:"assessmentSchedule",name:"assessment-learningschedule",component:__}]},{name:"report",path:"/report",component:Yu,children:[{path:"",name:"report-lookup",component:w_},{path:"lookup",name:"report-lookup",component:w_,children:[{path:"",name:"report-lookup-learning",component:L_},{path:"learning",name:"report-lookup-learning",component:L_},{path:"exam",name:"report-lookup-exam",component:Z_}]},{path:"analysis",name:"report-analysis",component:S_,children:[{path:"",name:"report-analysis-learning",component:sm},{path:"learning",name:"report-analysis-learning",component:sm},{path:"exam",name:"report-analysis-exam",component:lm}]},{path:"board",name:"report-board",component:sp,children:[{path:"",name:"report-board-board",component:mm}]},{path:"record",name:"report-record",component:sp,children:[{path:"",name:"report-record-record",component:ym}]}]},{name:"leaderboard",path:"/leaderboard",component:sp,children:[{path:"",name:"leaderboard-board",component:mm},{path:"board",name:"leaderboard-board",component:mm},{path:"record",name:"leaderboard-record",component:ym}]},{name:"settings",path:"/settings",component:lp,children:[{path:"",name:"settings-learningoptions",component:Tm},{path:"learningoptions",name:"settings-learningoptions",component:Tm},{path:"faq",name:"settings-faq",component:Ym}]},{name:"pocketnote",path:"/pocketnote",component:_p,children:[{path:"",name:"pocketnote-pocketnote",component:Em},{path:"pocketnote",name:"pocketnote-pocketnote",component:Em},{path:"checkupnote",name:"pocketnote-checkupnote",component:Om}]},{name:"checkup",path:"/checkup",meta:{layout:"layout-checkup"},component:Mp},{name:"checkupresult",path:"/checkupresult",meta:{layout:"layout-checkup"},component:_g},{name:"guide",path:"/guide",component:wp,children:[{path:"",name:"guide-faq",component:Ym},{path:"faq",name:"guide-faq",component:Ym},{path:"manual",name:"guide-manual",component:sg},{path:"video",name:"guide-video",component:lg}]},{name:"notice",path:"/notice",component:()=>s.e("chunk-6a883225").then(s.bind(null,"8899"))},{name:"coursebook",path:"/coursebook",component:Kh},{name:"readingbook",path:"/readingbook",component:lu},{name:"listeningbook",path:"/listeningbook",component:mu},{name:"schoolbook",path:"/schoolbook",component:xu},{name:"assessment",path:"/assessment",component:Df},{name:"assessmentreport",path:"/assessment/report",component:Uu},{path:"*",meta:{layout:"layout-404"},component:()=>s.e("chunk-2d0e5e97").then(s.bind(null,"9703"))}]});Rf.afterEach(t=>{"index"===t.name&&H&&H.dispatch&&H.dispatch("fetchMainPageInfo")});var Pf=Rf,Mf=s("0ff2"),Ef=s("ca95"),Bf=s.n(Ef),Nf=s("f309"),qf=s("a75b"),Lf=s("ac7c");o["default"].use(Nf["a"],{components:{VApp:x["a"],VAppBar:Rp["a"],VContent:qf["a"],VContainer:lt["a"],VRow:ht["a"],VCol:rt["a"],VCard:at["a"],VCardText:nt["b"],VCardActions:nt["a"],VIcon:jt["a"],VImg:qs["a"],VSimpleTable:gi["a"],VFileInput:mi["a"],VChip:Me["a"],VSheet:Se["a"],VCardTitle:nt["c"],VDataTable:Gh["a"],VTabs:rs["a"],VTab:as["a"],VTabsItems:ls["a"],VTabItem:ns["a"],VProgressCircular:Vs["a"],VListItemGroup:js["a"],VList:Ls["a"],VListItem:zs["a"],VListItemContent:Os["a"],VListItemTitle:Os["b"],VSpacer:Di["a"],VDatePicker:Ii["a"],VCheckbox:Lf["a"],VSimpleCheckbox:Pm["a"],VWindow:ni["a"],VWindowItem:ri["a"],VStepper:Ko["a"],VStepperHeader:Zo["a"],VStepperStep:Yo["a"],VDivider:Ho["a"],VResponsive:Oa["a"],VSwitch:ye["a"],VForm:dt["a"],VTextField:ut["a"],VBtn:ot["a"],VDialog:ct["a"],VExpansionPanels:Km["a"],VExpansionPanel:Wm["a"],VExpansionPanelHeader:Hm["a"],VExpansionPanelContent:Um["a"],VLazy:yt["a"]},directives:{Scroll:dn["a"]}});var zf=new Nf["a"]({theme:{themes:{light:{success:"#1BD05B",warning:"#ffa139",info:"#2196F3",danger:"#FF0000",info2:"#5bc7ff"},dark:!1},options:{minifyTheme:function(t){return t.replace(/[\r\n|\r|\n]/g,"")}}}}),Of=s("58ca");const jf={audioSrc:{type:String,default:""},refLink:{type:String,default:null},corsAnonym:{type:Boolean,default:!1},audioClass:{type:String,default:null},canvWidth:{type:Number,default:300},canvHeight:{type:Number,default:80},canvClass:{type:String,default:null},canvTop:{type:Boolean,default:!1},canvFillColor:{type:[String,Array],default:null},errorReceive:{type:Array,default:null},endedReceive:{type:Boolean,default:!1},loadeddataReceive:{type:Boolean,default:!1}},Vf={createHTMLElements:function(){console.log("createHTMLElements");const t=document.createElement("canvas"),e=document.createElement("div");let s=null,i=null,o=null,a=null;this.refLink?i=this.$parent.$refs[this.refLink]:(i=document.createElement("audio"),s=document.createElement("div"),o=document.createElement("source"),a=document.createElement("source"),o.setAttribute("type","audio/mpeg"),a.setAttribute("type","audio/mp3"),""!=this.audioSrc&&this.audioSrc&&(o.setAttribute("src",this.audioSrc),a.setAttribute("src",this.audioSrc)),this.audioClass&&i.setAttribute("class",this.audioClass),this.corsAnonym&&(i.crossOrigin="anonymous"),i.appendChild(o),i.appendChild(a),s.appendChild(i),this.$el.appendChild(s),this.errorReceive&&(i.onerror=t=>{}),this.endedReceive&&(i.onended=t=>{this.$store.dispatch("endAudio")}),this.loadeddataReceive&&("ios"!==this.$store.state.platform&&(i.onloadeddata=t=>{this.$store.commit("nextDisabled",!0),this.timeout1=setTimeout(()=>{this.$store.dispatch("loadedRecord").then(t=>{this.$store.dispatch("playRecordAudio")})},300)}),i.onended=t=>{this.$store.dispatch("stopRecordAudio")}),i.preload="auto",i.setAttribute("hidden",!0)),this.canvClass&&t.setAttribute("class",this.canvClass),this.canvWidth&&t.setAttribute("width",this.canvWidth),this.canvHeight&&t.setAttribute("height",this.canvHeight),(this.canvWidth||this.canvHeight)&&(e.setAttribute("class","pos-abs"),e.setAttribute("style","top: 50%; left: 50%; transform: translate(-50%, -50%); display:flex;")),t.setAttribute("hidden",!0),e.appendChild(t),this.canvTop?this.$el.insertBefore(e,s):this.$el.appendChild(e),this.ctxWrapper=t,this.ctx=t.getContext("2d"),this.audio=i},updateSrc:function(t){console.log("UPDATE SRC",t),this.audioSrc=t,this.audio.getElementsByTagName("source")[0].src=t,this.audio.getElementsByTagName("source")[1].src=t,this.audio.load(),console.log(this.module_idx),6!==this.module_idx&&this.module_idx!==g["y"]||this.decode(this.audioSrc)},setAnalyser:function(){let t=null,e=null;this.refLink?this.$avAudioRefs[this.refLink]?(t=this.$avAudioRefs[this.refLink].src,e=this.$avAudioRefs[this.refLink].ctx,this.analyser=e.createAnalyser()):(e=new AudioContext,this.analyser=e.createAnalyser(),t=e.createMediaElementSource(this.audio[0]),this.$avAudioRefs[this.refLink]={src:t,ctx:e}):(e=new AudioContext,this.analyser=e.createAnalyser(),t=e.createMediaElementSource(this.audio[0])),t.connect(this.analyser),this.analyser.fftSize=this.fftSize,this.analyser.connect(e.destination),this.audioCtx=e,this.audioCtx.suspend()},fillGradient:function(t){const e=this.canvWidth,s=this.canvHeight,i=this.ctx.createLinearGradient(e/2,0,e/2,s);let o=0;return t.forEach(e=>{i.addColorStop(o,e),o+=1/t.length}),i}};var Ff={props:jf,render:t=>t("div"),mounted(){this.createHTMLElements(),this.setAnalyser(),this.mainLoop(),this.audio.onplay=()=>{this.audioCtx&&this.audioCtx.resume()},this.audio.onpause=()=>{this.audioCtx&&(this.audioCtx.suspend(),cancelAnimationFrame(this.mainLoop))}},methods:Vf,beforeDestroy(){console.log("AVBase beforeDestroy"),this.audioCtx&&this.audioCtx.suspend()},destroyed(){this.$destroy()}};const Gf={canvWidth:{type:Number,default:500},canvHeight:{type:Number,default:80},playedLineWidth:{type:Number,default:.5},playedLineColor:{type:String,default:"navy"},noplayedLineWidth:{type:Number,default:.5},noplayedLineColor:{type:String,default:"lime"},playtime:{type:Boolean,default:!0},playtimeWithMs:{type:Boolean,default:!0},playtimeFontSize:{type:Number,default:12},playtimeFontFamily:{type:String,default:"monospace"},playtimeFontColor:{type:String,default:"grey"},playtimeTextBottom:{type:Boolean,default:!1},playtimeSlider:{type:Boolean,default:!0},playtimeSliderColor:{type:String,default:"red"},playtimeSliderWidth:{type:Number,default:1},playtimeClickable:{type:Boolean,default:!1},module_idx:{type:[Number,String],default:0}},Wf={name:"av-waveform",mixins:[Ff],props:Gf,data(){return{ctxWrapper:null,ctx:null,audio:null,duration:null,peaks:[],ctx_temp:null,req_frm:null,set_peaked:!1,chk_played:!1,timeout1:null}},mounted(){this.downloadProgress;this.$nextTick(()=>{""!=this.audioSrc&&this.audioSrc&&(6!==this.module_idx&&this.module_idx!==g["y"]||this.decode(this.audioSrc))})},watch:{audioSrc(t,e){console.log("audioSrc","v:",t,"ov:",e),t!=e&&this.renderCanvas()},currentPage(t,e){t!=e&&this.renderCanvas()},canvWidth(t){this.ctxWrapper.setAttribute("width",t)},canvHeight(t){this.ctxWrapper.setAttribute("height",t)}},computed:{currentPage(){return this.$store.state.current_page}},methods:{setAnalyser(){return null},mainLoop(){return null},decode(t){console.log("decode",t),window.cordova&&"ios"==window.cordova.platformId&&t.includes("https")&&(t=t.replace("https","http"),t=t.replace("/media",""),t=t.replace(".mp3","")),G()({url:t,method:"get",responseType:"blob"}).then(e=>{if(200==e.status){let s,i=new FileReader;i.onloadend=()=>{s=i.result,console.log(s&&!this.set_peaked),s&&!this.set_peaked&&(this.ctx_temp=new(window.AudioContext||window.webkitAudioContext),console.log(this.ctx_temp),window.cordova&&"ios"==window.cordova.platformId?(this.ctx_temp.decodeAudioData(s,t=>(i=null,this.setPeaks(t))),this.set_peaked=!0):(this.ctx_temp.decodeAudioData(s).then(t=>(i=null,this.setPeaks(t))).catch(e=>{console.error("Failed to decode audio data.",t),i=null,console.log(e)}),this.set_peaked=!0))},i.readAsArrayBuffer(e.data)}}).catch(t=>{})},setPeaks(t){console.log("setPeaks",t);const e=[];let s=0,i=0,o=0,a=0;const n=Math.ceil(t.length/this.canvWidth),r=this.canvWidth,l=this.canvHeight;this.duration=t.duration;for(let c=0;ci?a[t]:i,o=(i-s)/3*2;e[t]&&(e[t]=e[t]0&&!this.audio.paused?this.chk_played=!0:this.chk_played&&0==s&&this.audio.paused&&this.req_frm&&window.cancelAnimationFrame(this.req_frm)},draw(t,e,s,i){return this.ctx.lineWidth=e,this.ctx.strokeStyle=s,this.ctx.beginPath(),t.forEach(t=>{this.ctx.lineTo(i,t),i++}),this.ctx.stroke(),i},timeFormat(t){let e="";const s=parseFloat(t);if(isNaN(s))return e;const i=~~(s/60),o=~~(s%60),a=~~(s%1*1e3);return e=i<10?`0${i}:`:i+":",e+=("0"+o).substr(-2),this.playtimeWithMs&&(e+="."+("00"+a).substr(-3)),e},drawTime(t){const e=this.timeFormat(t),s=3,i=~~this.ctx.measureText(e).width,o=this.playX(t),a=o>this.canvWidth-i-s?o-i-s:o+s,n=this.playtimeTextBottom?this.canvHeight-this.playtimeFontSize+s:this.playtimeFontSize+s;this.ctx.fillStyle=this.playtimeFontColor,this.ctx.font=`${this.playtimeFontSize}px ${this.playtimeFontFamily}`,this.ctx.fillText(e,a,n)},drawSlider(t){const e=this.playX(t);this.ctx.lineWidth=this.playtimeSliderWidth,this.ctx.strokeStyle=this.playtimeSliderColor,this.ctx.beginPath(),this.ctx.moveTo(e,0),this.ctx.lineTo(e,this.canvHeight),this.ctx.stroke()},playX(t){return~~(t/this.duration*this.canvWidth)},updateTime(t){this.audio.currentTime=t.offsetX/this.canvWidth*this.duration},downloadProgress(t){const e=Math.round(t.loaded/t.total*this.canvWidth);this.ctx.clearRect(0,0,this.canvWidth,this.canvHeight),this.ctx.beginPath(),this.ctx.strokeStyle=this.noplayedLineColor,this.ctx.moveTo(0,this.canvHeight/2),this.ctx.lineTo(e,this.canvHeight/2),this.ctx.stroke()},renderCanvas(){if(!this.$store.state.is_mobile){let t=+this.ctxWrapper.getAttribute("width"),e=+this.ctxWrapper.getAttribute("height");if(this.canvWidth==t&&this.canvHeight==e||(this.ctxWrapper.setAttribute("width",this.canvWidth),this.ctxWrapper.setAttribute("height",this.canvHeight)),this.ctx.clearRect(0,0,this.canvWidth,this.canvHeight),window.rec_array.length>0){this.ctx.lineWidth=2,this.ctx.strokeStyle="#c82f2e",this.ctx.beginPath();let t=0,e=0;for(let s=0,i=window.rec_array.length;s{const t=document.querySelectorAll(".v-overlay.theme--dark");t.forEach(t=>{t&&t.parentNode&&t.parentNode.removeChild(t)})},1e3)},"$store.state.loading_percent"(t){if(0===t){const t=this.$store.state.modules,e=this.$store.state.current_page;this.tot_cnt=0,this.$store.getters.checkBankModule?this.tot_cnt=this.$store.state.bank_maxstep:this.tot_cnt=null!==this.$store.getters.getTotalStepCnt?this.$store.getters.getTotalStepCnt:"0",0===+this.tot_cnt&&t[e]&&t[e].maxstep>0&&(this.tot_cnt=t[e].maxstep)}}},computed:{...Object(S["c"])(["getInitGuideDialog"]),...Object(S["e"])(["seconds"]),formattedLevelSeconds(){const t=Math.floor(this.seconds/60),e=this.seconds%60,s=t.toString().padStart(2,"0"),i=e.toString().padStart(2,"0");return`${s}:${i}`},formattedAssessmentTime(){return this.$store.getters.getAssessmentRemainingTime},closeDisabled(){let t=!1,e=this.$store.getters.getCurModule,s=this.$store.getters.getCurrentStep;if(e&&(""+e).match(/GT|GB|GD/gi)&&this.$store.state.modules){let i=this.$store.state.modules.findIndex(t=>t.idx==e);-1!=i&&s===+this.$store.state.modules[i].maxstep&&this.$store.state.ox_show&&(t=!0)}return t},getType(){return this.$store.state.process_type},stepCurCnt(){if(this.$store.state.process_type===g["c"]){const t=this.$store.state.assessmentInfo.answeredCount||0,e=this.setAssessmentInfo("totCnt"),s=t+1;return s>e?e:s}return isNaN(this.$store.getters.getCurrentStep)?"0":this.$store.getters.getCurrentStep},stepTotCnt(){return console.log("stepTotCnt",this.$store.getters.getTotalStepCnt),this.$store.getters.checkBankModule?this.$store.state.bank_maxstep:null!==this.$store.getters.getTotalStepCnt?this.$store.getters.getTotalStepCnt:"0"},getDivision(){let t="";switch(this.$store.state.process_type){case g["bb"]:case g["hb"]:t=this.$store.getters.getDivision?" - "+this.$store.getters.getDivision:"";break;case g["r"]:t="";break;default:break}return t},getLearningMode(){return this.$store.getters.getLearningMode},printTimer(){return this.$store.getters.getMockExamTime},isAssessmentCounterReady(){if(this.$store.state.process_type!==g["c"])return!0;const t=this.$store.state.assessmentInfo,e=this.setAssessmentInfo("totCnt");return t&&"number"===typeof e&&e>0}},methods:{...Object(S["d"])(["setInitGuideDialog"]),...Object(S["b"])(["startLevelTimer","pauseLevelTimer","stopLevelTimer"]),setTitleClass(){let t="",e=this.$store.state.process_type;const s=this.$store.state.book,i=this.$store.state.unit;let o=+s.schedule_type||0,a=s.booktype_1,n=+s.category,r=+i.words_cnt||0,l=["학습하기를","시험보기를","어휘학습을","본문학습을","심화학습을","문장학습을","지문학습을","이론학습을","기본학습을"],c=" 종료하시겠습니까?",d="아직 학습이 완료되지 않았습니다.
학습하기를 눌러 끝까지 도전해보세요!",h="아직 시험이 완료되지 않았습니다.
시험보기를 눌러 끝까지 도전해보세요!",u="학습하기",p="시험보기";if(("coursebook"==this.$route.name&&31!==+s.booktype||"readingbook"==this.$route.name&&50===+s.booktype)&&(n=1),e===g["r"])return"book"===this.$route.name?(this.dialog_title=l[0]+c,t="study"):(this.dialog_title="Flash Card를"+c,t="pocket"),this.dialog_content=d,this.dialog_left_btn=u,this.dialog_right_btn="종료",t;if(e===g["S"])return t="shadow",this.dialog_title="쉐도우를"+c,this.dialog_content=d,this.dialog_left_btn=u,t;if(e===g["y"])return t="level_test",this.dialog_title="레벨 테스트를"+c,this.dialog_content="아직 테스트가 완료되지 않았습니다.
테스트하기를 눌러 끝까지 도전해보세요!",this.dialog_left_btn="테스트하기",t;if(0===o)switch(n){case 1:case 4:switch(a){case g["h"]:case g["g"]:4!=n||r?(e===g["pb"]?(this.dialog_title=l[2]+c,t="voca"):e===g["bb"]?4==n||10==n?(this.dialog_title=l[3]+c,t="major"):(this.dialog_title=l[5]+c,t="study2"):e===g["hb"]&&(this.dialog_title=l[4]+c,t="advanced"),this.dialog_content=d,this.dialog_left_btn=u):e===g["bb"]?(this.dialog_title=l[0]+c,t="study",this.dialog_content=d,this.dialog_left_btn=u):e===g["hb"]&&(this.dialog_title=l[1]+c,t="test",this.dialog_content=h,this.dialog_left_btn=p);break;case g["j"]:e===g["sb"]?(this.dialog_title=l[0]+c,this.dialog_content=d,this.dialog_left_btn=u,t="study"):e===g["qb"]&&(this.dialog_title=l[1]+c,this.dialog_content=h,this.dialog_left_btn=p,t="test");break;case g["e"]:e===g["pb"]?(this.dialog_title=l[2]+c,t="voca"):e===g["B"]?3==n?(this.dialog_title=l[6]+c,t="study3"):(this.dialog_title=l[3]+c,t="major"):e===g["a"]&&(this.dialog_title=l[4]+c,t="advanced"),this.dialog_content=d,this.dialog_left_btn=u;break;case g["f"]:e===g["u"]?(this.dialog_title=l[7]+c,t="grammar_theory"):e===g["s"]?(this.dialog_title=l[8]+c,t="grammar_basics"):e===g["t"]&&(this.dialog_title=l[4]+c,t="grammar_deep"),this.dialog_content=d,this.dialog_left_btn=u;break;case g["i"]:this.dialog_title="학습을 "+c,e===g["ab"]?t="story_v":e===g["Z"]?t="story_m":e===g["W"]&&(t="story_a"),this.dialog_content=d,this.dialog_left_btn=u;break;default:break}break;case 2:case 3:case 10:switch(a){case g["h"]:case g["g"]:e===g["pb"]?(this.dialog_title=l[2]+c,t="voca"):e===g["bb"]?[3,10].includes(+n)?(this.dialog_title=l[6]+c,t="study3"):(this.dialog_title=l[3]+c,t="major"):e===g["hb"]&&(this.dialog_title=l[4]+c,t="advanced"),this.dialog_content=d,this.dialog_left_btn=u;break;case g["e"]:e===g["pb"]?(this.dialog_title=l[2]+c,t="voca"):e===g["B"]?3==n?(this.dialog_title=l[6]+c,t="study3"):(this.dialog_title=l[3]+c,t="major"):e===g["a"]&&(this.dialog_title=l[4]+c,t="advanced"),this.dialog_content=d,this.dialog_left_btn=u;break;default:break}break;default:break}else if(1===o)if(1==this.$store.state.book.schedule_type_v&&a!==g["j"])switch(a){case g["h"]:case g["g"]:e===g["pb"]?(this.dialog_title=l[2]+c,this.dialog_content=d,this.dialog_left_btn=u,t="voca"):e===g["bb"]?(this.dialog_content=d,this.dialog_left_btn=u,[3,10].includes(n)?(this.dialog_title=l[6]+c,t="study3"):(this.dialog_title=l[3]+c,t="major")):e===g["hb"]&&(this.dialog_title=l[4]+c,this.dialog_content=d,this.dialog_left_btn=u,t="advanced");break;case g["e"]:e===g["pb"]?(this.dialog_title=l[2]+c,this.dialog_content=d,this.dialog_left_btn=u,t="voca"):e===g["B"]?(this.dialog_content=d,this.dialog_left_btn=u,3==n?(this.dialog_title=l[6]+c,t="study3"):(this.dialog_title=l[3]+c,t="major")):e===g["a"]&&(this.dialog_title=l[4]+c,this.dialog_content=d,this.dialog_left_btn=u,t="advanced");break;default:break}else switch(a){case g["h"]:case g["g"]:e===g["bb"]?(this.dialog_title=l[0]+c,this.dialog_content=d,this.dialog_left_btn=u,t="study"):e===g["hb"]&&(this.dialog_title=l[1]+c,this.dialog_content=h,this.dialog_left_btn=p,t="test");break;case g["j"]:e===g["sb"]?(this.dialog_title=l[0]+c,this.dialog_content=d,this.dialog_left_btn=u,t="study"):e===g["qb"]&&(this.dialog_title=l[1]+c,this.dialog_content=h,this.dialog_left_btn=p,t="test");break;case g["e"]:e===g["bb"]?(this.dialog_title=l[0]+c,this.dialog_content=d,this.dialog_left_btn=u,t="study"):e===g["hb"]&&(this.dialog_title=l[1]+c,this.dialog_content=h,this.dialog_left_btn=p,t="test");break;default:break}return t},setClass(){let t="";switch(this.$store.state.process_type){case g["bb"]:case g["B"]:case g["sb"]:case g["S"]:case g["s"]:case g["r"]:case g["Z"]:case g["c"]:t="success";break;case g["pb"]:case g["u"]:t="warning";break;case g["hb"]:case g["a"]:case g["qb"]:case g["t"]:case g["W"]:t="info2";break;default:break}return t},studyEndDialog(){let t=this.$store.getters.getCurModule;[g["G"],g["S"],g["r"],g["y"]].includes(this.getLearningMode)||1==this.$store.getters.getCurStepper||this.getLearningMode===g["ab"]&&"E"===t||this.getLearningMode===g["y"]?this.studyEnd():this.$store.dispatch("ingSave").then(t=>{t&&this.studyEnd()})},studyEnd(){this.$store.commit("setDialogResolve","studyend"),this.$store.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1}),["GT"].includes(this.getLearningMode)&&this.$store.commit("clearGrammar",!0),this.getLearningMode===g["y"]&&this.$router.go(-1)},closeDialog(){this.$store.commit("setDialogResolve","cancel"),this.$store.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1})},closeLevelReport(){this.$store.state.uclass>20?(this.dialog_level_result=!0,setTimeout(()=>{this.dialog_level_result=!1,this.goMain()},3e3)):this.goMain()},goMain(){let t=this.$route.name,e=t.split("-"),s=e[0];e[1];switch(s){case"book":case"report":case"pocketnote":case"assessment":case"coursebook":case"readingbook":case"schoolbook":case"listeningbook":this.$router.push({path:"/",query:{t:"logo"}});break;case"leveltest":this.$store.commit("setProcessType",null),this.$router.push({path:"/",query:{t:"logo"}});break;default:break}},setBookName(){let t=this.$store.state.process_type,e="";return e=g["r"]==t?"Flash Card":[g["ab"],g["Z"],g["W"]].includes(t)?this.$store.state.book.bookname||this.$store.state.unit.name:this.$store.state.book.schedule_name||this.$store.state.book.book_name||this.$store.state.book.bookname,e},setBookSubName(){let t=this.$store.state.process_type,e="";return e=g["r"]==t?"book"===this.$route.name?"문항을 다시 한 번 들어보세요!":"저장한 문항을 다시 한 번 들어보세요!":[g["ab"],g["Z"],g["W"]].includes(t)?this.$store.state.book.subtitle||this.$store.state.unit.sub_name:this.$store.state.unit.name,e},setBookNormalMent(t){switch(console.log("setBookNormalMent",t),this.$store.state.process_type){case g["pb"]:switch(t){case g["A"]:this.prev_ment="제시된 단어를",this.next_ment="따라 말해보며 암기",this.end_ment="하세요!";break;case g["ub"]:this.prev_ment="제시된 뜻에 맞는",this.next_ment="카드를 선택하세요.";break;case g["o"]:this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요.";break;case g["N"]:this.prev_ment="제시된 단어에",this.next_ment="알맞은 뜻을 선택하세요.";break;default:break}break;case g["bb"]:switch(t){case g["A"]:this.prev_ment="제시된",this.next_ment="문장을 듣고 반복 암기",this.end_ment="하세요!";break;case g["D"]:this.prev_ment="음성을 듣고",this.next_ment="순서에 맞게 문장을 완성하세요.";break;case g["o"]:this.prev_ment="음성을 듣고",this.$store.state.unit.words_cnt&&Number(this.$store.state.unit.words_cnt)>0?this.next_ment="철자를 입력하세요.":this.next_ment="빈 칸의 철자를 입력하세요.";break;case g["N"]:this.prev_ment="제시된 문장의",this.next_ment="알맞은 답을 찾아보세요.";break;case g["wb"]:this.prev_ment="제시된 뜻에 맞게",this.next_ment="문장을 조합하세요.";break;default:break}break;case g["hb"]:switch(t){case g["D"]:this.prev_ment="음성을 듣고",this.next_ment="순서에 맞게 문장을 완성하세요.";break;case g["o"]:this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요.";break;case g["xb"]:this.prev_ment="제시된 뜻에 맞게",this.next_ment="문장을 영작하세요.";break;case g["V"]:this.prev_ment="제시된 문장을",this.next_ment="따라 읽어보세요.";break;default:break}break;default:break}},setBookBankMent(t){console.log("setBookBankMent");const e=this.$store.state.book,s=e.category,i=e.publisher;switch(this.$store.state.process_type){case g["pb"]:switch(t){case g["A"]:this.prev_ment="제시된 단어를",this.next_ment="따라 말해보며 암기",this.end_ment="하세요!";break;case g["ub"]:this.prev_ment="제시된 뜻에 맞는",this.next_ment="카드를 선택하세요.";break;case g["o"]:this.prev_ment="음성을 듣고",this.next_ment="빈 칸을 완성하세요.";break;case g["vb"]:4==s?(this.prev_ment="지문의 어휘 변형",this.next_ment="문제를 풀어보세요."):(this.prev_ment="교과서 내용의",this.next_ment="어휘 문제를 풀어보세요.");break;default:break}break;case g["B"]:switch(t){case g["A"]:2===+e.origin_category&&["NE능률","지학사"].includes(i)?(this.prev_ment="AI 선생님과 함께",this.next_ment="문장을 듣고 말해",this.end_ment="보세요!"):(this.prev_ment="제시된",this.next_ment="문장을 듣고 반복 암기",this.end_ment="하세요!");break;case g["D"]:this.prev_ment="음성에 듣고",this.next_ment="순서에 맞게 문장을 완성하세요.";break;case g["N"]:this.prev_ment="제시된 문장의",this.next_ment="알맞은 답을 찾아보세요.";break;case g["V"]:this.prev_ment="제시된 문장을",this.next_ment="따라 읽어보세요.";break;case g["xb"]:this.prev_ment="제시된 뜻에 맞게",this.next_ment="문장을 영작하세요.";break;default:break}break;case g["a"]:switch(t){case g["M"]:this.prev_ment=(4==s?"문장을":"순서를")+" 조합하여",this.next_ment="글의 흐름을 익혀보세요.";break;case g["Q"]:this.prev_ment=4==s?"지문 변형 문제를 통해":"교과서 본문 문제로",this.next_ment="독해력을 키워보세요.";break;case g["o"]:this.prev_ment=4==s?"해석에 맞는":"해석에 맞게",this.next_ment="영어 구문을 완성하세요.";break;case g["v"]:4==s?(this.prev_ment="지문의 문법 변형",this.next_ment="문제를 풀어보세요."):(this.prev_ment="교과서 내용의",this.next_ment="문법 문제를 풀어보세요.");break;default:break}break;default:break}},setBookVocaMent(t){if(t===g["A"])this.prev_ment="제시된 단어를",this.next_ment="따라 말해보며 암기",this.end_ment="하세요!";else switch(this.$store.state.process_type){case g["sb"]:switch(t){case g["ub"]:this.prev_ment="제시된 뜻에 맞는",this.next_ment="카드를 선택하세요.";break;case g["o"]:this.prev_ment="음성을 듣고",this.next_ment="빈 칸을 완성하세요.";break;case g["N"]:this.prev_ment="제시된 단어에 맞는",this.next_ment="뜻을 선택하세요.";break;default:break}break;case g["qb"]:switch(t){case g["o"]:this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요.";break;case g["V"]:this.prev_ment="제시된 단어를",this.next_ment="따라 읽어보세요.";break;case g["xb"]:this.prev_ment="제시된 뜻에 맞게",this.next_ment="철자를 입력하세요.";break;default:break}break;default:break}},setBookGrammarMent(t){const e=this.$store.state.unit,s=+e.book_id,i=+e.seq+1,o=e.name;switch(t){case"GT_0":case"GT_1":case"GT_2":this.prev_ment="이론학습의","GT_0"==t?this.next_ment="영상강의":"GT_1"==t?this.next_ment="단어점검":"GT_2"==t&&(this.next_ment="이론점검");break;case"GB_1":case"GB_2":case"GB_3":case"GB_4":this.prev_ment="기본학습의",this.next_ment="기본학습"+t.split("_")[1],g["Ab"].includes(s)&&o.match("Review")&&(this.prev_ment="",this.next_ment="기본학습");break;case"GD_1":case"GD_2":this.prev_ment="심화학습의",this.next_ment="심화학습"+t.split("_")[1],(g["zb"].includes(s)&&i%3===0&&"GD_1"==t||g["Ab"].includes(s)&&o.match("Review"))&&(this.next_ment="단원시험");break}["GT_1","GT_2","GB_1","GB_3","GD_1"].includes(t)?this.end_ment="이":["GT_0","GB_2","GB_4","GD_2"].includes(t)&&(this.end_ment="가"),this.end_ment+=" 시작됩니다."},setBookStoryMent(t){switch(this.$store.state.process_type){case g["ab"]:this.prev_ment="영어 동화를",this.next_ment="집중하여 들어보세요.";break;case g["Z"]:t===g["N"]?(this.prev_ment="동화 속",this.next_ment="필수 영단어",this.end_ment="를 점검합니다."):t===g["D"]?(this.prev_ment="음성을 듣고",this.next_ment="순서에 맞게 문장",this.end_ment="을 완성하세요."):t===g["o"]?(this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요."):t===g["V"]&&(this.prev_ment="제시된 문장을",this.next_ment="따라 읽어보세요.");break;case g["W"]:this.prev_ment="영어 동화의",this.next_ment="심화 실전문제",this.end_ment="를 풀어보세요.";break}},setShadowReadingMent(){Number(this.$store.state.book.category);this.prev_ment="쉐도우가",this.next_ment="시작됩니다."},setInitMent(){if(console.log("setInitMent"),this.prev_ment="",this.next_ment="",this.end_ment="",this.$store.state.process_type===g["r"])return this.prev_ment="제시된 문장의",void(this.next_ment="음성을 들어보세요.");if(this.$store.state.process_type===g["S"])return void this.setShadowReadingMent();let t=this.$store.getters.getCurModule;null!==this.booktype_1&&null!==t&&(1==this.schedule_type&&1==this.$store.state.book.schedule_type_v?this.booktype_1==g["h"]?this.setBookNormalMent(t):this.booktype_1==g["e"]?this.setBookBankMent(t):this.setBookNormalMent(t):this.booktype_1==g["h"]||this.booktype_1==g["e"]&&1==this.schedule_type?this.setBookNormalMent(t):this.booktype_1==g["e"]&&0==this.schedule_type?this.setBookBankMent(t):this.booktype_1==g["j"]?this.setBookVocaMent(t):this.booktype_1==g["f"]?this.setBookGrammarMent(t):this.booktype_1==g["i"]?this.setBookStoryMent(t):this.setBookNormalMent(t))},setMockExamName(){return this.$store.state.mockexam?this.$store.state.mockexam.bookname:""},setAssessmentInfo:function(t){return"title"===t?this.$store.state.assessmentInfo.assessment_name:"subtitle"===t?this.$store.state.assessmentInfo.roundNo:"subtitle_2"===t?"평가":"class"===t?"assessment":"totCnt"===t?this.$store.state.assessmentInfo.totCnt:void 0},setExamSubName:function(t){const e=this.$store.state.mockexam;let s="";if(e)if(this.$store.getters.getMockexamInUnit){const i=e.booktype&&31==e.booktype;"subtitle"==t||"subtitle_2"==t?s=i?"듣기평가":e.unit_name:"class"==t&&(s=i?"mockexam2":"mockexam3")}else 20==e.question_cnt||e.new_mockexam?"subtitle"==t?s=e.cnttext:"subtitle_2"==t?s="듣기평가":"class"==t&&(s="mockexam2"):e.new_mockexam?"subtitle"==t||"subtitle_2"==t?s=e.cnttext:"class"==t&&(s="mockexam"):"subtitle"==t||"subtitle_2"==t?s="모의평가":"class"==t&&(s="mockexam");return s},checkTypeV(){return!$store.state.book.schedule_type_v||1!=$store.state.book.schedule_type_v}},created(){this.booktype_1=this.$store.state.book.booktype_1,this.schedule_type=this.$store.state.book.schedule_type,this.unwatch=this.$store.watch(t=>t.loading_percent,(t,e)=>{0==t&&e>0&&!new RegExp("R","g").test(this.getType)&&(g["G"]===this.getType?this.$store.getters.getMockexamMode&&this.$store.dispatch("soundEffectPlay","speaking"):(this.setInitMent(),this.$store.dispatch("soundEffectPlay","speaking"),null!==this.$store.getters.getCurModule&&1!=this.$store.state.cid&&(this.setInitGuideDialog(!0),window.settimeout1=setTimeout(()=>{this.setInitGuideDialog(!1)},g["E"])),[g["r"],g["S"]].includes(this.getType)&&(this.unwatch(),this.unwatch=null)))}),this.$store.state.is_mobile&&(this.is_mobile=!0)},beforeDestroy(){this.unwatch&&this.unwatch(),window.settimeout1&&window.clearTimeout(window.settimeout1),this.setInitGuideDialog(!1)}},uw=hw,pw=(s("811e"),Object(p["a"])(uw,cw,dw,!1,null,null,null)),_w=pw.exports;y()(pw,{VAppBar:Rp["a"],VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCardTitle:nt["c"],VCol:rt["a"],VDialog:ct["a"],VDivider:Ho["a"],VIcon:jt["a"],VRow:ht["a"]}),fi()(pw,{Ripple:wi["b"]});var mw=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("footer",{key:"fd-"+t.orientation,staticClass:"font-weight-medium pos-fix bg-white width-100 max-w-100 overflow-hidden",class:[{"d-none":"index"==t.$route.name&&t.$store.state.process_type!==t.LEVEL_TEST_RESULT},t.$store.state.process_type?t.$store.state.process_type:"","mod-"+t.getCurModule],attrs:{id:"footer",padless:""}},[s("div",{staticClass:"default-divider",class:{"in-study":t.$store.getters.getLearningStatus,"bg-transparent":t.$store.getters.getLearningStatus&&t.$store.getters.getLearningMode.match(/R/g)},attrs:{id:"footer-divider"}}),t.isMockexam?s("foot-numbers"):s("v-col",{staticClass:"text-center foot-con h-10vh py-0 width-100 d-flex align-center justify-center",attrs:{cols:"12"}},[s("strong",{staticClass:"grey--text",staticStyle:{"font-weight":"normal"},attrs:{id:"foot-cname"}},[t._v("\n Copyright @ 2020 내공스터디 All rights reserved.\n ")])]),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,"no-click-animation":"",persistent:""},model:{value:t.$store.state.auth_expired_dialog,callback:function(e){t.$set(t.$store.state,"auth_expired_dialog",e)},expression:"$store.state.auth_expired_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-2":"py-8"]},[s("h3",{staticClass:"title"},[s("b",[t._v("로그아웃되었습니다. 로그인 화면으로 이동합니다.")])])]),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeDialog}},[s("span",{staticClass:"title"},[t._v("확 인")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,"no-click-animation":"",persistent:""},model:{value:t.$store.state.dialog_network_check,callback:function(e){t.$set(t.$store.state,"dialog_network_check",e)},expression:"$store.state.dialog_network_check"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title"},[s("b",[t._v("인터넷 연결을 확인하세요.")])])])],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",persistent:""},model:{value:t.$store.state.dup_login_dialog,callback:function(e){t.$set(t.$store.state,"dup_login_dialog",e)},expression:"$store.state.dup_login_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",{staticClass:"mx-0",attrs:{dense:""}},[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("회원님의 계정이 다른 기기에서 접속하였습니다.")]),s("br"),s("b",[t._v("확인을 누르면 로그인 화면으로 이동합니다.")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:""},on:{click:t.dupLogout}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",persistent:""},model:{value:t.$store.state.relogin_dialog,callback:function(e){t.$set(t.$store.state,"relogin_dialog",e)},expression:"$store.state.relogin_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",{staticClass:"mx-0",attrs:{dense:""}},[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("학습 스케줄이 재설정 되었습니다.")]),s("br"),s("b",[t._v("다시 로그인하여 접속해주세요.")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:""},on:{click:t.dupLogout}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1)],1)},gw=[],bw=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{key:"fn-"+t.orientation,staticClass:"foot-con height-100 width-100 d-flex border-ede thin-t",attrs:{id:"foot-numbers"}},[s("div",{staticClass:"width-20"},[s("v-btn",{staticClass:"height-100",class:{"fn-active":1===t.$store.state.mockexam_select},attrs:{block:"",elevation:"0",text:"",tile:""},on:{click:function(e){return t.selectNum(1)}}},[s("div",{staticClass:"number-circle"},[t._v("1")])])],1),s("div",{staticClass:"width-20 border-ede thin-l"},[s("v-btn",{staticClass:"height-100",class:{"fn-active":2===t.$store.state.mockexam_select},attrs:{block:"",elevation:"0",text:"",tile:""},on:{click:function(e){return t.selectNum(2)}}},[s("div",{staticClass:"number-circle"},[t._v("2")])])],1),s("div",{staticClass:"width-20 border-ede thin-l"},[s("v-btn",{staticClass:"height-100",class:{"fn-active":3===t.$store.state.mockexam_select},attrs:{block:"",elevation:"0",text:"",tile:""},on:{click:function(e){return t.selectNum(3)}}},[s("div",{staticClass:"number-circle"},[t._v("3")])])],1),s("div",{staticClass:"width-20 border-ede thin-l"},[s("v-btn",{staticClass:"height-100",class:{"fn-active":4===t.$store.state.mockexam_select},attrs:{block:"",elevation:"0",text:"",tile:""},on:{click:function(e){return t.selectNum(4)}}},[s("div",{staticClass:"number-circle"},[t._v("4")])])],1),s("div",{staticClass:"width-20 border-ede thin-l"},[s("v-btn",{staticClass:"height-100",class:{"fn-active":5===t.$store.state.mockexam_select},attrs:{block:"",elevation:"0",text:"",tile:""},on:{click:function(e){return t.selectNum(5)}}},[s("div",{staticClass:"number-circle"},[t._v("5")])])],1)])},vw=[],fw={name:"foot-numbers",data(){return{}},computed:{orientation:function(){return"ios"==this.$store.state.platform?this.$store.state.orientation:90}},methods:{selectNum:function(t){this.$store.commit("setMockExamSelNum",t)}},created(){this.$store.state.is_mobile&&(document.getElementById("footer").style.cssText="z-index: 1; height: 12vh !important; top: 88vh")},beforeDestroy(){this.$store.state.is_mobile&&(document.getElementById("footer").style.cssText="")}},ww=fw,yw=(s("6421"),Object(p["a"])(ww,bw,vw,!1,null,null,null)),xw=yw.exports;y()(yw,{VBtn:ot["a"]});var kw={name:"footer-default",components:{FootNumbers:xw},data(){return{LEVEL_TEST_RESULT:g["y"]+g["R"],is_mobile:!1}},computed:{isMockexam:function(){return this.$store.getters.getMockexamMode},orientation:function(){return"ios"==this.$store.state.platform?this.$store.state.orientation:90},getCurModule(){return this.$store.getters.getCurModule}},methods:{closeDialog:function(){this.$store.commit("setDialogResolve","exit")},dupLogout(){this.$router.push({name:"login",query:{t:"auth"}}),this.$store.dispatch("logOutUser"),this.$store.commit("setDuploginDialog",!1),this.$store.commit("setReloginDialog",!1)}},created(){this.$store.state.is_mobile&&(this.is_mobile=!0)}},Cw=kw,$w=(s("1dfa"),Object(p["a"])(Cw,mw,gw,!1,null,null,null)),Sw=$w.exports;y()($w,{VBtn:ot["a"],VCard:at["a"],VCardActions:nt["a"],VCardText:nt["b"],VCol:rt["a"],VDialog:ct["a"],VRow:ht["a"]});var Tw=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("footer",{key:"fd-"+t.orientation,staticClass:"font-weight-medium pos-abs width-100 max-w-100 overflow-hidden",class:[{"d-none":"index"==t.$route.name},t.$store.state.process_type?t.$store.state.process_type:"","mod-"+t.getCurModule],attrs:{padless:"",id:"footer"}},[s("v-row",{staticClass:"width-100p height-100 ma-auto"},[s("v-col",{staticClass:"pa-0 d-flex align-center justify-start",attrs:{cols:"2"}},[s("span",{staticClass:"ebook-published"},[t._v("\n Published by\n "),s("br"),t._v("\n School Reading Association\n ")])]),s("v-col",{staticClass:"pa-0 d-flex",attrs:{cols:"4",offset:"2"}},[s("div",{staticClass:"d-flex flex-grow-1 align-center justify-center"},[s("div",{on:{click:function(e){return t.eBookAudioChangeTime(-1.5)}}},[s("v-icon",{staticClass:"control-icon",attrs:{size:"4rem",color:"black"}},[t._v("\n "+t._s(t.mdiRewind)+"\n ")])],1)]),s("div",{staticClass:"d-flex flex-grow-1 align-center justify-center"},[s("div",{on:{click:t.eBookAudioStartOrPause}},[s("v-icon",{staticClass:"control-icon",attrs:{size:"4rem",color:"#1bd05b"}},[t._v("\n "+t._s(t.getEBookAudioIsPlaying?t.mdiPauseCircleOutline:t.mdiPlayCircleOutline)+"\n ")])],1)]),s("div",{staticClass:"d-flex flex-grow-1 align-center justify-center"},[s("div",{on:{click:function(e){return t.eBookAudioChangeTime(1.5)}}},[s("v-icon",{staticClass:"control-icon",attrs:{size:"4rem",color:"black"}},[t._v("\n "+t._s(t.mdiFastForward)+"\n ")])],1)])]),s("v-col",{staticClass:"pa-0 d-flex align-center justify-end",attrs:{cols:"2",offset:"2"}},[s("div",{staticClass:"ebook-published pos-rel",staticStyle:{visibility:"hidden","z-index":"0"}},[t._v("\n Published by\n "),s("br"),t._v("\n School Reading Association\n\n "),s("div",{staticClass:"ebook-trans-btn pos-abs",on:{click:t.toggleTrans}},[s("span",{staticStyle:{"line-height":"0.9"}},[t._v(" 해석 ")])])])])],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,"no-click-animation":"",persistent:""},model:{value:t.$store.state.auth_expired_dialog,callback:function(e){t.$set(t.$store.state,"auth_expired_dialog",e)},expression:"$store.state.auth_expired_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-2":"py-8"]},[s("h3",{staticClass:"title"},[s("b",[t._v("로그아웃되었습니다. 로그인 화면으로 이동합니다.")])])]),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:t.closeDialog}},[s("span",{staticClass:"title"},[t._v("확 인")])])],1)],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,"no-click-animation":"",persistent:""},model:{value:t.$store.state.dialog_network_check,callback:function(e){t.$set(t.$store.state,"dialog_network_check",e)},expression:"$store.state.dialog_network_check"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-3":"py-8"]},[s("h3",{staticClass:"title"},[s("b",[t._v("인터넷 연결을 확인하세요.")])])])],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",persistent:""},model:{value:t.$store.state.dup_login_dialog,callback:function(e){t.$set(t.$store.state,"dup_login_dialog",e)},expression:"$store.state.dup_login_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",{staticClass:"mx-0",attrs:{dense:""}},[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("회원님의 계정이 다른 기기에서 접속하였습니다.")]),s("br"),s("b",[t._v("확인을 누르면 로그인 화면으로 이동합니다.")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:""},on:{click:t.dupLogout}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1),s("v-dialog",{attrs:{width:"31em","max-width":"420px",persistent:""},model:{value:t.$store.state.relogin_dialog,callback:function(e){t.$set(t.$store.state,"relogin_dialog",e)},expression:"$store.state.relogin_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center black--text title px-0",class:[t.is_mobile?"py-2":"py-8"]},[s("v-row",{staticClass:"mx-0",attrs:{dense:""}},[s("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[s("b",[t._v("학습 스케줄이 재설정 되었습니다.")]),s("br"),s("b",[t._v("다시 로그인하여 접속해주세요.")])])],1)],1),s("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[s("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[s("v-btn",{attrs:{color:"success",text:"","x-large":"",block:""},on:{click:t.dupLogout}},[s("span",{staticClass:"title"},[t._v("확인")])])],1)],1)],1)],1),t.is_mobile?s("v-dialog",{ref:"trans_dialog",attrs:{width:"60vw","hide-overlay":"","content-class":"trans-dialog"},model:{value:t.transDialog,callback:function(e){t.transDialog=e},expression:"transDialog"}},[s("v-card",{staticClass:"d-flex align-center"},[s("div",{staticClass:"close-wrap",on:{click:function(e){t.transDialog=!1}}},[s("v-icon",{attrs:{size:"3rem",color:"white"}},[t._v("\n "+t._s(t.mdiClose)+"\n ")])],1),s("v-card-text",{staticClass:"white--text pa-3 py-0 d-flex flex-column justify-center",staticStyle:{height:"calc(100% - 7rem)"}},[s("div",{staticStyle:{"overflow-y":"auto"}},[s("div",{staticClass:"translate-wrap",domProps:{innerHTML:t._s(t.getTranslate)}})])])],1)],1):s("dialog-drag",{key:"drag-dialog-"+t.dragDialogKey,style:{display:t.transDialog?"block":"none"},attrs:{id:"drag-dialog",title:!1,options:t.dialogOptions},on:{close:function(e){t.transDialog=!1}},scopedSlots:t._u([{key:"title",fn:function(){},proxy:!0}])},[s("div",{staticClass:"text-wrap"},[s("div",{staticClass:"translate-wrap",domProps:{innerHTML:t._s(t.getTranslate)}})])])],1)},Aw=[],Iw=s("db2a"),Dw=s.n(Iw),Rw={name:"FooterEBook",components:{DialogDrag:Dw.a},data(){return{mdiClose:Lt["B"],mdiRewind:Lt["Y"],mdiFastForward:Lt["F"],mdiPlayCircleOutline:Lt["V"],mdiPauseCircleOutline:Lt["S"],is_mobile:this.$store.state.is_mobile,audio:null,transDialog:!1,audio_end:!1,autoplay_timeout:null,first_timeout:null,dialogOptions:{buttonPin:!1},dragDialogKey:0}},mounted(){const t=this.$store.getters.getCurrentStep;if(1===t&&this.$store.state.currentEBookAudio&&(this.audio=this.$store.state.currentEBookAudio),!this.is_mobile){const t=document.body.getClientRects()[0];this.dialogOptions.x=t.width/2,this.dialogOptions.y=t.height/2,this.dragDialogKey++}},watch:{audio(t){const e=this.$store.getters.getCurrentStep;t&&1===e&&this.$store.state.currentEBookAudio&&(this.audio=this.$store.state.currentEBookAudio,this.first_timeout=setTimeout(()=>{this.$store.commit("setEBookAudioIsPlaying",!0)},4e3),this.audio_end=!1,this.audio.addEventListener("ended",()=>{this.$store.commit("setEBookAudioIsPlaying",!1),this.audio_end=!0,this.$store.getters.getIsEBookAutoPlay&&(clearTimeout(this.autoplay_timeout),this.autoplay_timeout=setTimeout(()=>{const t=document.getElementById("go-next-btn");t&&e===this.$store.getters.getCurrentStep&&t.click()},2e3))}))},"$store.state.currentEBookAudio"(t){const e=this.$store.getters.getCurrentStep;this.audio&&(this.audio.pause(),this.audio.currentTime=0),t&&(this.audio=t,this.audio_end=!1,this.audio.addEventListener("ended",()=>{this.$store.commit("setEBookAudioIsPlaying",!1),this.audio_end=!0,this.$store.getters.getIsEBookAutoPlay&&(clearTimeout(this.autoplay_timeout),this.autoplay_timeout=setTimeout(()=>{const t=document.getElementById("go-next-btn");t&&e===this.$store.getters.getCurrentStep&&t.click()},2e3))}))},"$store.state.eBookAudioIsPlaying"(t){this.audio&&(t?this.audio.play():this.audio.pause())},"$store.state.isEBookAutoPlay"(t){const e=this.$store.getters.getCurrentStep;t?this.audio_end&&(clearTimeout(this.autoplay_timeout),this.autoplay_timeout=setTimeout(()=>{const t=document.getElementById("go-next-btn");t&&e===this.$store.getters.getCurrentStep&&t.click()},2e3)):clearTimeout(this.autoplay_timeout)},"$store.getters.getEBookLoaded"(t){this.audio&&(this.audio.pause(),this.audio.currentTime=0,this.$store.commit("setEBookAudioIsPlaying",!1)),this.autoplay_timeout&&clearTimeout(this.autoplay_timeout),t||(this.audio=null,this.first_timeout&&clearTimeout(this.first_timeout)),this.transDialog=!1}},computed:{orientation(){return"ios"==this.$store.state.platform?this.$store.state.orientation:90},getEBookAudioIsPlaying(){return this.$store.getters.getEBookAudioIsPlaying},getCurModule(){return this.$store.getters.getCurModule},getTranslate(){let t="";const e=+this.$store.state.current_step,s=this.$store.state.sentences.filter(t=>+t.page===2*e||+t.page===2*e+1).map(t=>`
${t.kor}
`);return s&&s.length>0&&(t=s.join("")),t}},methods:{closeDialog(){this.$store.commit("setDialogResolve","exit")},dupLogout(){this.$router.push({name:"login",query:{t:"auth"}}),this.$store.dispatch("logOutUser"),this.$store.commit("setDuploginDialog",!1),this.$store.commit("setReloginDialog",!1)},eBookAudioStartOrPause(){this.$store.commit("setEBookAudioIsPlaying",!this.getEBookAudioIsPlaying)},eBookAudioChangeTime(t){this.audio.currentTime=this.audio.currentTime+t},toggleTrans(){this.transDialog=!this.transDialog},setEBookAutoPlayList(t,e){if(t){const e=[];if(t.length>0)for(let s=0,i=t.length;s{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)})})}}},Vw=jw,Fw=(s("36d3"),Object(p["a"])(Vw,zw,Ow,!1,null,null,null)),Gw=Fw.exports;y()(Fw,{VContent:qf["a"],VIcon:jt["a"]});var Ww=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-content",{staticClass:"bg-white"},[s("header-studying"),s("v-container",{staticClass:"body-studying"},[t._t("default")],2),s("footer-default")],1)},Uw=[],Hw={components:{HeaderStudying:_w,FooterDefault:Sw}},Kw=Hw,Zw=Object(p["a"])(Kw,Ww,Uw,!1,null,null,null),Yw=Zw.exports;y()(Zw,{VContainer:lt["a"],VContent:qf["a"]});var Jw=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-content",[s("v-container",{staticClass:"height-100 pa-0 overflow-hidden",attrs:{fluid:""}},[t._t("default")],2)],1)},Xw=[],Qw={},ty=Object(p["a"])(Qw,Jw,Xw,!1,null,null,null),ey=ty.exports;y()(ty,{VContainer:lt["a"],VContent:qf["a"]});var sy=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-content",[s("v-container",{staticClass:"ma-0 pa-0",attrs:{fluid:""}},[t._t("default")],2)],1)},iy=[],oy={},ay=oy,ny=Object(p["a"])(ay,sy,iy,!1,null,null,null),ry=ny.exports;y()(ny,{VContainer:lt["a"],VContent:qf["a"]});s("f20b");var ly=s("2b27"),cy=s.n(ly);o["default"].use(Of["a"],{refreshOnceOnNavigation:!0}),o["default"].prototype.$axios=G.a,o["default"].use(Kf),o["default"].use(Mf["a"]),o["default"].use(Bf.a,{name:"v-touch"}),o["default"].component("layout-default",Lw),o["default"].component("layout-login",Gw),o["default"].component("layout-studying",Yw),o["default"].component("layout-checkup",ey),o["default"].component("layout-404",ry),i_.a.locale("ko"),o["default"].use(cy.a),o["default"].prototype.$dayjs=i_.a,o["default"].config.productionTip=!1,Pf.beforeEach(async(t,e,s)=>{let i="",o="";if(null!==H.state.dialog_resolve||null!==H.state.dialog_reject)return!1;let a=!0;if("login"===t.name&&t.query.t&&"auth"===t.query.t)s();else if(H.getters.getUserAuthCheck||(a=await H.dispatch("restoreSessionStorageUserInfo")),a){if(t.name){let e=t.name.split("-");i=e[0]}if(e.name){let t=e.name.split("-");o=t[0]}const a=!!t.query.t&&t.query.t;let n=function(t){if(a==t)return!1;s(!1)};switch(o){case"book":case"coursebook":case"readingbook":case"listeningbook":case"schoolbook":case"report":case"pocketnote":case"schedule":case"leveltest":case"assessment":if(!0===H.getters.getLearningStatus){let e=H.getters.getLearningMode;if(new RegExp("R","g").test(e)){let i;H.dispatch("soundEffectPlay","click");let r=e.replace("R","");if(1==+H.state.book.schedule_type){if(1==H.state.book.schedule_type_v)return H.dispatch("exitLeaning"),n("btn"),!1;switch(H.state.book.booktype_1){case g["j"]:r==g["sb"]&&(i=+H.state.unit.advanced_done);break;case g["g"]:r==g["pb"]&&(i=+H.state.unit.study_done),r==g["bb"]&&(i=1);break;default:r==g["bb"]&&(i=+H.state.unit.test_done);break}}else switch(H.state.book.booktype_1){case g["h"]:r==g["pb"]&&(i=+H.state.unit.study_done),r==g["bb"]&&(i=+H.state.unit.test_done);break;case g["e"]:r==g["pb"]&&(i=+H.state.unit.major_done),r==g["B"]&&(i=+H.state.unit.advanced_done);break;case g["j"]:r==g["sb"]&&(i=+H.state.unit.advanced_done);break;case g["g"]:r==g["pb"]?i=+H.state.unit.study_done:r==g["bb"]&&(i=[1,2,3].includes(+H.state.book.category)&&["listeningbook"].includes(o)?+H.state.unit.test_done:1);break;case g["f"]:r==g["u"]?i=+H.state.unit.grammar_basics_done:r==g["s"]&&(i=+H.state.unit.grammar_deep_done);break;default:}console.log("process_type",e,o,i);const l=H.state.book.parent_books_id?H.state.book.parent_books_id:H.state.book.id,c=H.state.unit.seq,d=H.state.disable_units[l]?H.state.disable_units[l].findIndex(t=>t==c):-1,h=H.state.process_type.replace("R","");if(![g["bb"]+g["R"],g["pb"]+g["R"],g["B"]+g["R"],g["sb"]+g["R"]].includes(e)||!["book","coursebook","readingbook","listeningbook","schoolbook"].includes(o)||i&&0!=i||(H.state.book.id>87&&H.state.book.id<101&&"m3"==H.state.book.grade&&H.state.unit.seq>7&&![91,100].includes(+H.state.book.id)||[91,100].includes(+H.state.book.id)&&"m3"==H.state.book.grade&&H.state.unit.seq>8||-1!=d&&h==g["B"]))if(![g["u"]+g["R"],g["s"]+g["R"]].includes(e)||!["book","coursebook","readingbook","listeningbook","schoolbook"].includes(o)||i&&0!=i||g["Ab"].includes(+H.state.unit.book_id)&&H.state.unit.grammar_theory_done_modules&&"GT_0"==H.state.unit.grammar_theory_done_modules){if(H.dispatch("exitLeaning"),"logo"!=a)return!1;s()}else{if("logo"===t.query.t)return H.dispatch("exitLeaning"),void s();let e=await H.dispatch("awaitingDialog",{d_name:"dialog_leaning_result",value:!0});switch(e&&H.commit("setDialog",{d_name:"dialog_leaning_result",value:!1}),console.log(e),e){case"resultend":H.dispatch("exitLeaning"),n("btn");break;case"gotest":case"cancel":default:return n("btn"),!1}}else{if("logo"===t.query.t)return H.dispatch("exitLeaning"),void s();let e=await H.dispatch("awaitingDialog",{d_name:"dialog_leaning_result",value:!0});switch(e&&H.commit("setDialog",{d_name:"dialog_leaning_result",value:!1}),e){case"resultend":H.dispatch("exitLeaning"),n("btn");break;case"gotest":case"cancel":default:return n("btn"),!1}}}else{H.dispatch("soundEffectPlay","exit");let t=await H.dispatch("awaitingDialog",{d_name:"dialog_leaning_stop",value:!0});switch(t&&H.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1}),t){case"studyend":H.dispatch("exitLeaning"),n("btn");break;case"cancel":default:n("btn");break}}return}break;case"checkup":if("checkupresult"!==i){let t=await H.dispatch("awaitingDialog",{d_name:"dialog_leaning_stop",value:!0});switch(t&&H.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1}),t){case"studyend":H.commit("clearSentences"),s();break;case"cancel":default:n("btn");break}return}break;case"checkupresult":"checkup"!==i&&H.commit("clearSentences"),s();break;default:break}if("logo"==a)return H.dispatch("soundEffectPlay","click"),s(),!0;switch(i){case"login":switch(o){case!1:case"":s();break;case"index":{H.dispatch("soundEffectPlay","exit");let t=await H.dispatch("awaitingDialog",{d_name:"exit_dialog",value:!0});switch(t&&H.commit("setDialog",{d_name:"exit_dialog",value:!1}),t){case"logout":return H.dispatch("fbSetUIDNull"),H.dispatch("logOutUser"),void s();case"appexit":window.onbeforeunload=null,H.dispatch("fbSetUIDNull"),H.dispatch("logOutUser").then(()=>{H.state.is_mobile?navigator.app.exitApp():window.close()}).catch(()=>{s(!1)}),s();break;case"cancel":n("btn");break;default:H.dispatch("fbSetUIDNull"),s();break}break}default:s();break}break;case"index":switch(o){case"schedule":case"report":case"notice":case"book":case"coursebook":case"readingbook":case"listeningbook":case"schoolbook":case"guide":case"pocketnote":case"leaderboard":case"settings":if(H.dispatch("soundEffectPlay","click"),["book","coursebook","readingbook","listeningbook","schoolbook"].includes(o)&&"F"==H.state.product_type&&0==H.state.a_count){let t=await H.dispatch("getACount");if(0==t){let t=await H.dispatch("awaitingDialog",{d_name:"a_info_dialog",value:!0});switch(t&&H.commit("setDialog",{d_name:"a_info_dialog",value:!1}),t){case"gomain":s();break;case"cancel":default:return n("btn"),!1}}else t>0&&s()}else s();return;default:return void s()}case"leaderboard":if("index"==o){let t=H.getters.getLearderboardAuth;switch(t){case 0:return H.commit("setDialog",{d_name:"leaderboard_dialog",value:!0}),s(!1),!1;case 1:s();break;case 2:if(H.state.uclass>g["nb"]){s();break}return H.commit("setDialog",{d_name:"leaderboard_dialog",value:!0}),s(!1),!1;case 3:s();break;default:s(!1);break}}else s();break;case"schedule":["book","coursebook","readingbook","listeningbook","schoolbook"].includes(o)&&H.commit("setRouteJump",o),s();break;case"book":case"coursebook":case"readingbook":case"listeningbook":case"schoolbook":"schedule"==o&&H.state.route_jump&&H.commit("setRouteJump",!1),s();break;case"guide":s();break;default:s();break}}else{let i=!1;if(null===e.name&&"index"===t.name)return void s({name:"login"});if(e.name||"login"!=t.name||(i=!0),e.name||"index"!=t.name||(i=!0),"index"==e.name&&"login"==t.name&&(i=!0),i){if("login"===t.name)return void s()}else{let t=await H.dispatch("awaitingDialog",{d_name:"auth_expired_dialog",value:!0});t&&(H.commit("setDialog",{d_name:"auth_expired_dialog",value:!1}),s({name:"login",query:{t:"auth"}}))}}}),Object(i["waitForAuthInit"])().then(()=>{new o["default"]({vuetify:zf,router:Pf,render:t=>t(C),store:H}).$mount("#app")})},"594f":function(t,e,s){"use strict";s("d671")},"59ac":function(t,e,s){"use strict";s("4bbc")},"59c1":function(t,e,s){},"59d0":function(t,e,s){},"5ae2":function(t,e,s){t.exports=s.p+"img/ios-02.cecc33af.png"},"5b91":function(t,e,s){},"5ba0":function(t,e,s){},"5c7e":function(t,e,s){"use strict";s("ed09")},"5e25":function(t,e,s){},"5e95":function(t,e,s){"use strict";s("0bb6")},"5fb0":function(t,e,s){"use strict";s.d(e,"w",(function(){return a})),s.d(e,"x",(function(){return n})),s.d(e,"H",(function(){return r})),s.d(e,"J",(function(){return l})),s.d(e,"n",(function(){return c})),s.d(e,"k",(function(){return d})),s.d(e,"rb",(function(){return h})),s.d(e,"U",(function(){return u})),s.d(e,"I",(function(){return p})),s.d(e,"l",(function(){return _})),s.d(e,"tb",(function(){return m})),s.d(e,"p",(function(){return g})),s.d(e,"O",(function(){return b})),s.d(e,"nb",(function(){return v})),s.d(e,"mb",(function(){return f})),s.d(e,"lb",(function(){return w})),s.d(e,"jb",(function(){return y})),s.d(e,"ob",(function(){return x})),s.d(e,"kb",(function(){return k})),s.d(e,"bb",(function(){return C})),s.d(e,"hb",(function(){return $})),s.d(e,"q",(function(){return S})),s.d(e,"r",(function(){return T})),s.d(e,"pb",(function(){return A})),s.d(e,"B",(function(){return I})),s.d(e,"a",(function(){return D})),s.d(e,"sb",(function(){return R})),s.d(e,"qb",(function(){return P})),s.d(e,"S",(function(){return M})),s.d(e,"G",(function(){return E})),s.d(e,"u",(function(){return B})),s.d(e,"s",(function(){return N})),s.d(e,"t",(function(){return q})),s.d(e,"ab",(function(){return L})),s.d(e,"Z",(function(){return z})),s.d(e,"W",(function(){return O})),s.d(e,"y",(function(){return j})),s.d(e,"c",(function(){return V})),s.d(e,"A",(function(){return F})),s.d(e,"D",(function(){return G})),s.d(e,"o",(function(){return W})),s.d(e,"N",(function(){return U})),s.d(e,"wb",(function(){return H})),s.d(e,"xb",(function(){return K})),s.d(e,"V",(function(){return Z})),s.d(e,"ub",(function(){return Y})),s.d(e,"b",(function(){return J})),s.d(e,"vb",(function(){return X})),s.d(e,"M",(function(){return Q})),s.d(e,"Q",(function(){return tt})),s.d(e,"v",(function(){return st})),s.d(e,"Y",(function(){return it})),s.d(e,"X",(function(){return ot})),s.d(e,"R",(function(){return at})),s.d(e,"P",(function(){return nt})),s.d(e,"h",(function(){return rt})),s.d(e,"e",(function(){return lt})),s.d(e,"j",(function(){return ct})),s.d(e,"g",(function(){return dt})),s.d(e,"f",(function(){return ht})),s.d(e,"i",(function(){return ut})),s.d(e,"fb",(function(){return pt})),s.d(e,"gb",(function(){return _t})),s.d(e,"eb",(function(){return mt})),s.d(e,"Eb",(function(){return gt})),s.d(e,"zb",(function(){return bt})),s.d(e,"Ab",(function(){return vt})),s.d(e,"Cb",(function(){return ft})),s.d(e,"Db",(function(){return wt})),s.d(e,"Bb",(function(){return yt})),s.d(e,"cb",(function(){return xt})),s.d(e,"ib",(function(){return kt})),s.d(e,"C",(function(){return Ct})),s.d(e,"L",(function(){return $t})),s.d(e,"K",(function(){return St})),s.d(e,"yb",(function(){return Tt})),s.d(e,"T",(function(){return At})),s.d(e,"m",(function(){return It})),s.d(e,"db",(function(){return Dt})),s.d(e,"E",(function(){return Rt})),s.d(e,"F",(function(){return Pt})),s.d(e,"z",(function(){return Mt})),s.d(e,"d",(function(){return Et}));let i="",o="";i=(window.cordova&&"ios"===window.cordova.platformId?"http":"https")+"://api.tabstudy.co.kr",o="https://api.tabstudy.co.kr";const a=i,n=o,r=(window.cordova&&"ios"===window.cordova.platformId?"http":"https")+"://api.tabstudy.co.kr",l="production",c=!a.includes("api.tabstudy.co.kr"),d="https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy/img/cover",h="https://kr.object.ncloudstorage.com/cdn-irontrain/vocatrain/voices",u="https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy/sound",p="https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy",_="https://pwu7jsh8kk.apigw.ntruss.com",m="https://kr.object.ncloudstorage.com/voca-tts",g="https://l0xlmyrl8323.edge.naverncp.com/ebook",b=-1,v=10,f=11,w=19,y=20,x=21,k=29,C="S",$="T",S="E",T="F",A="V",I="M",D="A",R="VM",P="VA",M="H",E="X",B="GT",N="GB",q="GD",L="SV",z="SM",O="SA",j="LT",V="AS",F=0,G=1,W=2,U=3,H=4,K=5,Z=6,Y=7,J=99,X="I",Q="O",tt="R",et="B",st="G",it="E",ot="SBA",at="R",nt="F",rt=0,lt=1,ct=2,dt=3,ht=4,ut=5,pt=1,_t=2,mt=3,gt=(Object.freeze({[rt]:[A,C,$],[lt]:[A,I,D],[ct]:[I,D]}),[U,F,G,W,Z,Y,J]),bt=[39353,39354,39355,39356],vt=[102017,102018,102019,102020,102021,102022],ft={[F]:"리스닝",[Y]:"워드빙고",[W]:"딕테이션",[X]:"어휘추론",[G]:"문장조합",[U]:"문장찾기",[Z]:"스피킹",[H]:"영작하기",[K]:"영작하기",[Q]:"문단배열",[tt]:"독해점검",[et]:"빈칸추론",[st]:"문법점검",[it]:"스토리북",[ot]:"실전문제",["GT_0"]:"이론영상",["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"},wt=Object.freeze({[F]:"listening",[Y]:"wordbingo",[W]:"dictation",[X]:"wordinference",[G]:"matching",[U]:"popquiz",[Z]:"speaking",[H]:"writing",[K]:"writing_k",[Q]:"paragraphorder",[tt]:"readingquiz",[et]:"blankinference",[st]:"grammerquiz",[it]:"storybook",[ot]:"storybook_a",["GT_0"]:"GT_0",["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"}),yt=Object.freeze({listening:F,wordbingo:Y,dictation:W,wordinference:X,matching:G,popquiz:U,speaking:Z,writing:H,writing_k:K,paragraphorder:Q,readingquiz:tt,blankinference:et,grammerquiz:st,storybook:it,storybook_a:ot,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"}),xt=c?100:2,kt=1,Ct=2,$t=c?500:1e3,St=c?500:1e3,Tt=c?500:3e3,At=500,It=500,Dt=1,Rt=2500,Pt=2900,Mt=[{text:"유아",value:"infant"},{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:"adult"}],Et=[{text:"초등1",value:"1"},{text:"초등2",value:"2"},{text:"초등3",value:"3"},{text:"초등4",value:"4"},{text:"초등5",value:"5"},{text:"초등6",value:"6"}]},"60e4":function(t,e,s){"use strict";s("2b88")},"60fe":function(t,e,s){"use strict";s("faeb")},"62a3":function(t,e,s){t.exports=s.p+"img/003m3.b7ad85c9.png"},6342:function(t,e,s){t.exports=s.p+"img/X_mobile.3b6c912c.png"},6421:function(t,e,s){"use strict";s("4f2b")},6476:function(t,e,s){"use strict";s("082a")},6502:function(t,e,s){t.exports=s.p+"img/5.62a05bd8.png"},6574:function(t,e,s){},"67e6":function(t,e,s){"use strict";s("ea1a")},6814:function(t,e,s){},"688b":function(t,e,s){t.exports=s.p+"img/ios-03.4827afe5.png"},"68a8":function(t,e,s){},6974:function(t,e,s){"use strict";s("b814")},"6a5b":function(t,e,s){"use strict";s("d8d9")},"6c68":function(t,e,s){var i={"./timer-off.png":"950f","./timer-on.png":"9190"};function o(t){var e=a(t);return s(e)}function a(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="6c68"},"6d13":function(t,e,s){"use strict";s("c064")},"6dca":function(t,e,s){"use strict";s("7d14")},7027:function(t,e,s){},7167:function(t,e,s){"use strict";s("5ba0")},"71b5":function(t,e,s){"use strict";s("89ef")},"71ca":function(t,e,s){"use strict";s("94c4")},7239:function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"left"},[s("div",{staticClass:"bar-container pos-rel"},[s("div",{staticClass:"option-bar pos-fix"},[s("v-sheet",{staticClass:"option-bar-sheet grey lighten-4 pos-rel",attrs:{elevation:"0"}},[t._t("default")],2)],1)])])},o=[],a=s("2877"),n=s("6544"),r=s.n(n),l=s("8dd9"),c={},d=Object(a["a"])(c,i,o,!1,null,null,null);e["a"]=d.exports;r()(d,{VSheet:l["a"]})},"72f7":function(t,e,s){},7525:function(t,e,s){},"75f1":function(t,e,s){"use strict";s("00d2")},7640:function(t,e,s){"use strict";s("59c1")},7672:function(t,e,s){"use strict";s("374a")},7689:function(t,e,s){"use strict";s("2b5c")},"76fb":function(t,e,s){"use strict";s("06b6")},7787:function(t,e,s){},"77f5":function(t,e,s){},7897:function(t,e,s){"use strict";s("df67")},7927:function(t,e,s){t.exports=s.p+"img/X_ios_result.2471c915.png"},"7bd3":function(t,e,s){"use strict";s("4c0d")},"7d14":function(t,e,s){},"7dc1":function(t,e,s){t.exports=s.p+"img/000m3.d698ec8b.png"},"7e7d":function(t,e,s){},"7f94":function(t,e,s){"use strict";s("7787")},"7fbc":function(t,e,s){},"7fed":function(t,e,s){},"80bc":function(t,e,s){},"80fd":function(t,e,s){"use strict";s("07e9")},"811e":function(t,e,s){"use strict";s("8157")},8157:function(t,e,s){},"824a":function(t,e,s){"use strict";s("5262")},8302:function(t,e,s){},8348:function(t,e,s){},8352:function(t,e,s){t.exports=s.p+"img/new-leveltest.3e8c849b.png"},"83a1":function(t,e,s){},"84f5":function(t,e,s){"use strict";s("cb21")},"85e6":function(t,e,s){"use strict";s("e369")},"862b":function(t,e,s){},8791:function(t,e,s){},8978:function(t,e,s){"use strict";s("1830")},"89ef":function(t,e,s){},"8b29":function(t,e,s){"use strict";s("6574")},"8c1c":function(t,e,s){},"8d8e":function(t,e,s){"use strict";s("4368")},"8d9a":function(t,e,s){"use strict";s("24ca")},"8df5":function(t,e,s){t.exports=s.p+"img/003m5.48278c54.png"},"8e34":function(t,e,s){},"8eb1":function(t,e,s){"use strict";s("05e5")},"90a8":function(t,e,s){},"912d":function(t,e,s){},9190:function(t,e,s){t.exports=s.p+"img/timer-on.429ceea4.png"},9299:function(t,e,s){"use strict";s("e407")},"942b":function(t,e,s){"use strict";s("4bdb")},"943a":function(t,e,s){},"943b":function(t,e,s){},9458:function(t,e,s){"use strict";s("07d1")},"94c4":function(t,e,s){},"950f":function(t,e,s){t.exports=s.p+"img/timer-off.e0b7c132.png"},"95a9":function(t,e,s){"use strict";s("77f5")},"963b":function(t,e,s){t.exports=s.p+"img/O_ios_result.a7924bf7.png"},9661:function(t,e,s){},"969b":function(t,e,s){t.exports=s.p+"img/000m5.d45773f8.png"},"96cc":function(t,e,s){"use strict";s("b5de")},"96e9":function(t,e,s){},9733:function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("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"}},[s("defs",[s("linearGradient",{attrs:{id:t.seq_id,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},[s("stop",{attrs:{offset:"0%","stop-color":"#35e62b"}},[s("animate",{attrs:{attributeName:"stop-color",values:"#35e62b; #29c600; #35e62b",dur:"10s",repeatCount:"indefinite"}})]),s("stop",{attrs:{offset:"100%","stop-color":"#29c600"}},[s("animate",{attrs:{attributeName:"stop-color",values:"#29c600; #35e62b; #29c600",dur:"10s",repeatCount:"indefinite"}})])],1)],1),s("g",[s("rect",{attrs:{fill:"none",id:"canvas_background",height:"82",width:"82",y:"-1",x:"-1"}}),s("g",{attrs:{display:"none",overflow:"visible",y:"0",x:"0",height:"100%",width:"100%",id:"canvasGrid"}},[s("rect",{attrs:{fill:"url(#gridpattern)","stroke-width":"0",y:"0",x:"0",height:"100%",width:"100%"}})])]),s("g",[s("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"}})])])},o=[],a={props:["seq_id"]},n=a,r=(s("d423"),s("2877")),l=Object(r["a"])(n,i,o,!1,null,null,null);e["a"]=l.exports},"97b3":function(t,e,s){"use strict";s("90a8")},9915:function(t,e,s){},9921:function(t,e,s){"use strict";s("8348")},9933:function(t,e,s){},"99ab":function(t,e,s){},"9b6a":function(t,e,s){},"9c0e":function(t,e,s){"use strict";s("d068")},"9f29":function(t,e,s){"use strict";s("d60f")},"9f36":function(t,e,s){},"9fb1":function(t,e,s){t.exports=s.p+"img/chrome-speaking-02.13d8f197.png"},"9fc0":function(t,e,s){"use strict";s("8e34")},"9fe6":function(t,e,s){"use strict";s("cad3")},a0ca:function(t,e,s){},a155:function(t,e,s){"use strict";s("3c7a")},a1f7:function(t,e,s){"use strict";s("cb17")},a2a5:function(t,e,s){"use strict";s("9933")},a2ad:function(t,e,s){},a383:function(t,e,s){t.exports=s.p+"img/3.a7087543.png"},a4d6:function(t,e,s){},a51f:function(t,e,s){},a539:function(t,e,s){"use strict";s("0e5c")},a581:function(t,e,s){"use strict";s("243a")},a653:function(t,e,s){"use strict";s("ec9f")},a67f:function(t,e,s){},a8b6:function(t,e,s){},a94f:function(t,e,s){t.exports=s.p+"img/aos-02.5be4267d.png"},aa6d:function(t,e,s){t.exports=s.p+"img/word_3d.5e161d3e.png"},ab98:function(t,e,s){},af9e:function(t,e,s){"use strict";s("72f7")},b1e7:function(t,e,s){"use strict";s("ab98")},b239:function(t,e,s){},b2c2:function(t,e,s){},b38b:function(t,e,s){"use strict";s("80bc")},b54c:function(t,e,s){},b5de:function(t,e,s){},b770:function(t,e,s){},b814:function(t,e,s){},b8b4:function(t,e,s){t.exports=s.p+"img/chrome-speaking-04.d8b82a9e.png"},b92f:function(t,e,s){"use strict";s("6814")},b9c9:function(t,e,s){"use strict";s("1f90")},ba29:function(t,e,s){},bb6f:function(t,e,s){"use strict";s("0400")},bbe8:function(t,e,s){"use strict";s("2086")},bdd7:function(t,e,s){},be11:function(t,e,s){},bf66:function(t,e,s){},bf75:function(t,e,s){"use strict";s("a2ad")},c064:function(t,e,s){},c0c8:function(t,e,s){"use strict";s("262d")},c0d5:function(t,e,s){"use strict";s("5624")},c325:function(t,e,s){"use strict";s("96e9")},c4b4:function(t,e,s){"use strict";s("9661")},c5ef:function(t,e,s){"use strict";s("069a")},c60a:function(t,e,s){t.exports=s.p+"img/1.32b9bc19.png"},c819:function(t,e,s){"use strict";s("50cf")},c8b4:function(t,e,s){"use strict";(function(t){var i=s("3666"),o=s("cf34"),a=s("501b"),n=s("9733"),r=s("3344"),l=s("94ed"),c=s("5fb0");const d=20,h=20;e["a"]={name:"result-index",props:["wrongshow","mainshow","setChildTab","checkMainExist"],components:{IconReportO:o["a"],IconReportX:a["a"],IconReportT:n["a"],CircularAudioPlayer:r["a"]},data(){return{HOST:c["w"],VOCA_RESULT:c["pb"]+c["R"],ADVANCED_RESULT:c["a"]+c["R"],MAJOR_RESULT:c["B"]+c["R"],VOCA_MAJOR_RESULT:c["sb"]+c["R"],VOCA_ADVANCED_RESULT:c["qb"]+c["R"],basicGrammarBooks:c["zb"],middleGrammarBooks:c["Ab"],STORY_V_RESULT:c["ab"]+c["R"],STORY_M_RESULT:c["Z"]+c["R"],STORY_A_RESULT:c["W"]+c["R"],STORY_ADVANCED_RESULT:c["X"]+c["R"],tab:0,modules:[],tabs:[],study_pk:null,test_pk:null,voca_pk:null,major_pk:null,advanced_pk:null,process_type:null,prefix_type:null,postdate:null,cnttext:"",avgscore:0,totminute:null,wordcnt:null,wrongcnt:null,wrongpercent:null,unwatch1:null,type_class:"success",circle_size:0,circle_width:0,circle_font:0,matching:[],dictation:[],popquiz:[],writing:[],writing_k:[],speaking:[],wordbingo:[],wordinference:[],paragraphorder:[],readingquiz:[],grammerquiz:[],GT_1:[],GT_2:[],GB_1:[],GB_2:[],GB_3:[],GB_4:[],GD_1:[],GD_2:[],GD_3:[],storybook_a:[],grammar_theory_pk:null,grammar_basics_pk:null,grammar_deep_pk:null,story_v_pk:null,story_m_pk:null,story_a_pk: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,bank_modules:[this.$store.state.modules_names[c["vb"]],this.$store.state.modules_names[c["M"]],this.$store.state.modules_names[c["Q"]],this.$store.state.modules_names[c["v"]],"storybook_a"],model:[],base_load_interval:null,html_load_interval:null,base_load_cnt:0,html_load_cnt:0,word_pocket_ids:[],pocket_ids:[],pocket_disabled:!1,set_defs:!1,classname:"",is_ios:!1,is_mobile:!1,mdi_chevron_right:l["v"],mdi_bookmark:l["h"],mdi_bookmark_outline:l["i"],grammar_type:{},base_data:null,html_data:null}},created(){let t,e;this.$store.state.is_mobile&&(this.is_mobile=!0),"ios"==this.$store.state.platform&&(this.is_ios=!0),this.process_type=this.$store.state.process_type,this.prefix_type=this.process_type.replace(new RegExp("R","g"),"");const s={[c["bb"]]:"study",[c["hb"]]:"test",[c["pb"]]:"voca",[c["B"]]:"major",[c["sb"]]:"major",[c["a"]]:"advanced",[c["qb"]]:"advanced",[c["u"]]:"grammar_theory",[c["s"]]:"grammar_basics",[c["t"]]:"grammar_deep",[c["ab"]]:"story_v",[c["Z"]]:"story_m",[c["W"]]:"story_a"};switch(t=s[this.prefix_type]+"_pk",this.prefix_type){case c["bb"]:case c["B"]:case c["sb"]:case c["s"]:case c["Z"]:e="success";break;case c["hb"]:case c["a"]:case c["qb"]:case c["t"]:case c["W"]:e="info2";break;case c["pb"]:case c["u"]:case c["ab"]:e="warning";break;default:break}if([c["u"],c["s"],c["t"]].includes(this.prefix_type)){let t=this.$store.state.current_unit_id;this.$axios.get(`${c["w"]}/v2/book/getgrammartype?unit_id=${t}`).then(t=>{200===t.status&&(this.grammar_type=t.data)}).catch(t=>{console.error(t)})}this[t]=this.$store.getters.getPk(t),this.type_class=e,this[t]?this.base_load_interval=window.setInterval(()=>{let e=!1;this.$store.state.rdb_saving||(this.getBaseData(this[t]),e=!0),ds.getPk(t),(e,s)=>{!s&&e&&(this[t]=e,this.getBaseData(e),this.unwatch1())}),this.html_load_interval=window.setInterval(()=>{if(this.base_data){let t=!1;this.$store.state.fb_saving||(this.getHtmlData(),t=!0),h{this.setCircleSize(null,(function(){setTimeout(()=>{let t=document.getElementById("circle-col").getElementsByTagName("svg");t=t[0];let e=t.childNodes[0];e.classList.remove("v-progress-circular__underlay"),e.setAttribute("stroke","#f5f5f5")},50)})),window.addEventListener("resize",this.setCircleSize)})},watch:{tab(t,e){t!==e&&this.setChildTab(t)},html_data(t){t&&this.base_data&&this.compareResult().then(()=>{this.fillLoadingPercent()}).catch(t=>{console.error(t),this.fillLoadingPercent()})}},computed:{},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},showWords(t,e,s){let i=!0;if([void 0,"undefined"].includes(t))return!1;if(t=JSON.parse(t),e=Number(e),this.wrongshow)if(s&&"speaking"==s)switch(Number(t)){case 1:i=!1,t=!0;break;default:i=!0,t=!1;break}else i=!t;return this.mainshow&&(i=1==e),this.wrongshow&&this.mainshow&&(i=!t&&1==e),i},distContents(t,e){let s="",i=e,o=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"];switch(o.includes(e)&&(e="GRAMMAR"),e){case"popquiz":s+=`
${t.mean}
`,s+=`
${t.html}
`;break;case"writing":case"writing_k":s+=`
${t.mean}
`,s+=`
${t.html}
`;break;case"GRAMMAR":const e=this.$store.state.unit,o=+e.book_id,a=+e.seq+1,n=e.name;if(c["zb"].includes(o)&&a%3===0&&"GD_1"==i||c["Ab"].includes(o)&&n.match("Review")&&["GB_1","GD_1"].includes(i)){s+=`
${t.html}
`,s+=`
${t.mean}
`;break}"MC"==this.grammar_type[i]?(s+=`
${t.mean}
`,t.passage&&"null"!=t.passage&&(t.passage=t.passage.replace(/\+\_\+/g,"'"),s+=`
${t.passage}
`),s+=`
${t.html}
`):"SA"==this.grammar_type[i]?(s+=`
${t.mean}
`,t.passage&&"null"!=t.passage&&(t.passage=t.passage.replace(/\+\_\+/g,"'"),s+=`
${t.passage}
`),s+=`
${t.html}
`):"CAB"==this.grammar_type[i]?(s+=`
${t.mean}
`,s+=`
${t.html}
`):"SC"==this.grammar_type[i]&&(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},getBaseData(e){this.ur_id=e,this.$axios.get(`${c["w"]}/v2/result/${this.$store.state.cid}/user/${this.$store.state.uid}/unitrecord/${e}`).then(e=>{if(200==e.status){let s=e.data;if(this.base_data=s,this.postdate=s.postdate,this.avgscore=Math.round(+s.avg),this.totminute=Math.floor(+s.tot_studytime/60)+(+s.tot_studytime%60>30?1:0),s.class_id){let t=this.$store.state.class.filter(t=>t.id==s.class_id)[0];t&&t["name"]&&(this.classname=t["name"])}else this.$store.state.class[0]&&this.$store.state.class[0]["name"]&&(this.classname=this.$store.state.class[0]["name"]);if([c["hb"],c["bb"]].includes(s.type)){let e=parseInt(s.done_modules).toString(2).padStart(10,"0");e.slice(1,t.length).match(/1/gi);if(this.wordcnt=Number(s.tot_question_cnt),this.wrongcnt=Number(s.tot_wrong_cnt),this.wrongpercent=Math.round(Number(s.tot_wrong_cnt)/Number(s.tot_question_cnt)*100),this.modules=Array.from(e).map((t,e)=>{let s=Number(t);if(s){let t=this.$store.state.modules_names[e];"listening"!==t&&this.tabs.push(t)}return Number(t)}),s.type==c["hb"]?Number(s.done_cnt)<2?this.cnttext="정규시험":this.cnttext=Number(s.done_cnt)-1+"차 재시험":Number(s.done_cnt)<2?this.cnttext="정규학습":this.cnttext=Number(s.done_cnt)-1+"차 재학습","details"in s&&s.details.length>0){const t={256:"matching",128:"dictation",64:"popquiz",32:"writing",16:"writing_k",8:"speaking"};for(let e=0,i=s.details.length;e`${i}_${t}`);const o=this.$store.state.unit,a=+o.book_id,n=+o.seq+1,r=o.name;(c["zb"].includes(a)&&n%3===0&&"GD"==i||c["Ab"].includes(a)&&r.match("Review")&&["GB","GD"].includes(i))&&(t=[i+"_1"])}else t=s.done_mod&&s.type===c["W"]?[s.a_mod]:Array.from(s.done_mod);if("GT"==s.type&&1===t.length&&"GT_0"==s.details[0]._mod&&(t=[]),this.wordcnt=s.tot_question_cnt,"SV"==s.type&&(t=[],this.wordcnt=0),this.wrongcnt=s.tot_wrong_cnt,this.wrongpercent=+this.wordcnt+ +this.wrongcnt>0?Math.round(+this.wrongcnt/+this.wordcnt*100):0,this.modules=t.map((t,e)=>{let s=this.$store.state.modules_names[t];return t!=c["A"]&&"GT_0"!=t&&this.tabs.push(s),t}),Number(s.done_cnt)<2?this.cnttext="정규학습":this.cnttext=Number(s.done_cnt)-1+"차 재학습","details"in s&&s.details.length>0)for(let e=0,i=s.details.length;e0&&(this[t]=!0)}}}})},setCircleSize(t,e){if(this.tab>0)return!1;let s=document.getElementById("circle-row"),i=document.getElementById("circle-col");if(!s||!i)return!1;let o=window.getComputedStyle(i),a=s.offsetHeight,n=s.offsetWidth;a-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight);let r=a>n?n:a;isNaN(r)||(this.circle_size=.82*r,this.circle_width=.9*Math.round(r/12),this.circle_font=.9*Math.round(r/6)),e&&"function"===typeof e&&e()},getHtmlData(){let t=this,e=this.$store.state.uid,s=this.$store.state.book.schedule_id,o=this.$store.getters.getFBBookUnitId;if(!e||!s||!o)return;let a=!1;console.log(`/users/${e}/schedules/${s}/Bookunits/${o}`),i["db"].collection("users").doc(e).collection("schedules").doc(s).collection("Bookunits").doc(o).get().then(e=>{const s=e.data();let i=new DOMParser,o=!1;this.html_data=s;for(let[n,r]of Object.entries(s)){if(["wrong_bank_ids","wrong_grammar_ids","ing","undefined"].includes(n))continue;const e=this.withWord(n);!a&&e&&(a=!0);const s=e?"word_pocket":"pocket";let l=JSON.parse(r),c=[];if(l){for(let t=0;tdata not exist.
"});this[s+"_ids"]=this[s+"_ids"].filter((t,e)=>this[s+"_ids"].indexOf(t)==e),t[n]=c}}return this.checkMainExist(o),!0}).then(t=>{if(a){if(0==this.pocket_ids.length&&0==this.word_pocket_ids.length)return}else if(!this.pocket_ids||0==this.pocket_ids.length)return;const e=t=>{const e=this[t+"_ids"],s="pocket"==t?"s":"w";return Object.keys(e).reduce((t,i)=>(t.push(`${s}[]=${encodeURIComponent(e[i])}`),t),[]).join("&")};let s="?";this.pocket_ids.length>0&&(s+=e("pocket")),a&&this.word_pocket_ids.length>0&&(this.pocket_ids.length>0&&(s+="&"),s+=e("word_pocket"));let i=`${c["w"]}/v2/pocketnote/${this.$store.state.cid}/user/${this.$store.state.uid}/exists/${this.prefix_type}`;this.pocket_ids=[],this.word_pocket_ids=[],this.$axios.get(i+s).then(t=>{if(200==t.status){const e=t.data;for(let t=0,s=e.length;t{200==e.status&&(this[s+"_ids"].push(t),this.$store.dispatch("showToast",{message:"포켓노트에 추가되었습니다.",duration:2e3}),this.$store.dispatch("soundEffectPlay","save_pocket")),this.pocket_disabled=!1}).catch(t=>{window.console.error(t),this.pocket_disabled=!1})},deletePocket(t){const e=this.withWord(),s=e?"word_pocket":"pocket";if(!this.checkIncludesId(t))return;this.$store.dispatch("soundEffectPlay","click"),this.pocket_disabled=!0;const i={id:t};e&&(i.col="word"),this.$axios.post(`${c["w"]}/v2/pocketnote/${this.$store.state.cid}/user/${this.$store.state.uid}/delete/${this.prefix_type}`,i).then(e=>{200==e.status&&(this[s+"_ids"].splice(this[s+"_ids"].indexOf(t),1),this.$store.dispatch("showToast",{message:"포켓노트에서 삭제되었습니다.",duration:2e3}),this.$store.dispatch("soundEffectPlay","save_pocket")),this.pocket_disabled=!1}).catch(t=>{window.console.error(t),this.pocket_disabled=!1})},cancelPocketDialog(){},checkIncludesId(t){const e=this.withWord(),s=e?"word_pocket":"pocket";return this[s+"_ids"].includes(t)},withWord(t=null){let e=!1;return this.prefix_type===c["Z"]&&(1!==this.tab&&"popquiz"!==t||(e=!0)),e},setStoryBookUnitName(){const t=this.$store.state.unit.name,e=this.$store.state.book.bookname;return t&&e?`${t.split("-")[1].padStart(2,"0")}. ${e}`:""},compareResult(){return new Promise(async(t,e)=>{const s={result:!1,update:[]};try{if(console.log("compareResult",{ur_id:this.ur_id,base_data:this.base_data,html_data:this.html_data}),!this.base_data||!this.html_data)return void t();const e={right:0,half:0};if(this.html_data){const t=new DOMParser,s={};for(let[i,o]of Object.entries(this.html_data)){if(["wrong_bank_ids","wrong_grammar_ids","ing","undefined"].includes(i)||0==this.base_data.done)continue;if(this.base_data&&this.base_data.details){let t=null,e=null;if(["S","T"].includes(this.base_data.type)){switch(i){case"matching":e=256;break;case"dictation":e=128;break;case"popquiz":e=64;break;case"writing":e=32;break;case"writing_k":e=16;break;case"speaking":e=8;break}e&&(t=this.base_data.details.find(t=>t.module==e))}else e=c["Bb"][i],t=this.base_data.details.find(t=>t._mod==e);if(t&&1===+t.skip)continue}let a=JSON.parse(o);if(a)for(let o=0;o0){const t=+r.i||+r.id||null;t&&!l.includes(t)&&(s[i]||(s[i]=[]),s[i].push(o))}}}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 i=JSON.parse(e);if(i){if(s[t]){s[t].reverse();for(let e=0,o=s[t].length;e0?JSON.stringify(i):null}}i["db"].collection("users").doc(this.$store.state.uid).collection("schedules").doc(this.$store.state.book.schedule_id).collection("Bookunits").doc(this.$store.getters.getFBBookUnitId).update(this.html_data)}}const o=+this.base_data.real_cnt||0,a=+this.base_data.tot_question_cnt||0;if(o>0&&o!==a&&0!=this.base_data.done&&await this.$store.dispatch("updateReport",{ur_id:this.ur_id,question_cnt:o,half_cnt:e.half}).then(t=>{200==t.status&&t.data.success&&(this.wordcnt=o,this.base_data.tot_question_cnt=o,this.avgscore=Math.round(t.data.avg),this.wrongpercent=Math.round(+this.wrongcnt/+this.base_data.tot_question_cnt*100),s.result=!0,s.update.push({key:"tot_question_cnt",before:a,after:o}))}),+this.base_data.tot_question_cnt>0&&0!=this.base_data.done){const t=+o-+this.base_data.tot_wrong_cnt;t!==e.right&&await this.$store.dispatch("updateReport",{ur_id:this.ur_id,right_cnt:e.right,half_cnt:e.half}).then(t=>{200==t.status&&t.data.success&&(this.avgscore=Math.round(t.data.avg),this.wrongcnt=this.base_data.tot_question_cnt-e.right,this.wrongpercent=Math.round(+this.wrongcnt/+this.base_data.tot_question_cnt*100),s.result=!0,s.update.push({key:"wrongcnt",before:this.base_data.tot_wrong_cnt,after:this.wrongcnt}))}).catch(t=>{console.error(t)})}}catch(o){console.error(o)}finally{s.result&&this.$store.dispatch("sendMailForDev",{type:"Result/Index.vue UpdateReport",ur_id:this.ur_id,compareRes:s,book:this.$store.state.book,base_data:this.base_data,html_data:this.html_data}),t()}})},fillLoadingPercent(){this.$store.dispatch("fillLoadingPercent").then(()=>{this.$store.dispatch("soundEffectPlay","report")})}},beforeDestroy(){this.unwatch1&&this.unwatch1(),window.removeEventListener("resize",this.setCircleSize),this.html_load_interval&&window.clearInterval(this.html_load_interval),this.base_load_interval&&window.clearInterval(this.base_load_interval),this.html_load_cnt=0,this.base_load_cnt=0}}}).call(this,s("dd40")(t))},c8c2:function(t,e,s){},c939:function(t,e,s){},c93f:function(t,e,s){"use strict";s("05be")},c95c:function(t,e,s){"use strict";s("9915")},c9c8:function(t,e,s){"use strict";s("d4f1")},cad3:function(t,e,s){},cb17:function(t,e,s){},cb21:function(t,e,s){},cba0:function(t,e,s){t.exports=s.p+"img/002m3.d35d3e00.png"},cdea:function(t,e,s){},ceac:function(t,e,s){"use strict";s("464a")},cf34:function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("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"}},[s("defs",[s("linearGradient",{attrs:{id:t.seq_id,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},[s("stop",{attrs:{offset:"0%","stop-color":"#6de9ff"}},[s("animate",{attrs:{attributeName:"stop-color",values:"#6de9ff; #0594c4; #6de9ff",dur:"10s",repeatCount:"indefinite"}})]),s("stop",{attrs:{offset:"100%","stop-color":"#0594c4"}},[s("animate",{attrs:{attributeName:"stop-color",values:"#0594c4; #6de9ff; #0594c4",dur:"10s",repeatCount:"indefinite"}})])],1)],1),s("g",[s("rect",{attrs:{fill:"none",id:"canvas_background",height:"82",width:"82",y:"-1",x:"-1"}}),s("g",{attrs:{display:"none",overflow:"visible",y:"0",x:"0",height:"100%",width:"100%",id:"canvasGrid"}},[s("rect",{attrs:{fill:"url(#gridpattern)","stroke-width":"0",y:"0",x:"0",height:"100%",width:"100%"}})])]),s("g",[s("ellipse",{attrs:{id:"svg_4",cy:"50.453125",cx:"73","fill-opacity":"null","stroke-opacity":"null","stroke-width":"11",stroke:"#000",fill:"#fff"}}),s("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"}})])])},o=[],a={props:["seq_id"]},n=a,r=(s("a1f7"),s("2877")),l=Object(r["a"])(n,i,o,!1,null,null,null);e["a"]=l.exports},cff2:function(t,e,s){},d068:function(t,e,s){},d08c:function(t,e,s){"use strict";s("cff2")},d1c3:function(t,e,s){t.exports=s.p+"img/clock_3d.a53ad7f4.png"},d321:function(t,e,s){"use strict";s("e415")},d3ac:function(t,e,s){"use strict";s("9f36")},d423:function(t,e,s){"use strict";s("0d7b")},d4f1:function(t,e,s){},d52d:function(t,e,s){"use strict";s("a51f")},d545:function(t,e,s){"use strict";s("943a")},d60f:function(t,e,s){},d61d:function(t,e,s){t.exports=s.p+"img/guide-pdf.f4959958.png"},d671:function(t,e,s){},d6cc:function(t,e,s){t.exports=s.p+"img/control-speaking-02.2bc8d6ee.png"},d7f4:function(t,e,s){t.exports=s.p+"img/homework.aa27a35a.png"},d8b1:function(t,e,s){"use strict";s("188c")},d8d9:function(t,e,s){},d93e:function(t,e,s){t.exports=s.p+"img/test_cutoff_fail.4f5c64da.png"},d94d:function(t,e,s){"use strict";s("22e6")},dbe5:function(t,e,s){},dc7e:function(t,e,s){t.exports=s.p+"img/001m3.9b7d0105.png"},dd3a:function(t,e,s){},de2b:function(t,e,s){"use strict";s("a8b6")},df67:function(t,e,s){},e0d1:function(t,e,s){"use strict";s("f586")},e10a:function(t,e,s){},e135:function(t,e,s){"use strict";s("4e6f")},e365:function(t,e,s){"use strict";s("59d0")},e369:function(t,e,s){},e401:function(t,e,s){"use strict";s("862b")},e407:function(t,e,s){},e415:function(t,e,s){},e7c0:function(t,e,s){"use strict";s("1620")},e7d5:function(t,e,s){t.exports=s.p+"img/new-schedule.8b3da886.png"},ea1a:function(t,e,s){},eb2a:function(t,e,s){"use strict";s("b54c")},ec9f:function(t,e,s){},ed09:function(t,e,s){},eda7:function(t,e,s){"use strict";s("e10a")},edc3:function(t,e,s){},ef9b:function(t,e,s){t.exports=s.p+"img/chrome-logo.e82c3cd8.svg"},efbd:function(t,e,s){},efd5:function(t,e,s){},f007:function(t,e,s){"use strict";s("a0ca")},f00f:function(t,e,s){t.exports=s.p+"img/002m5.42870341.png"},f03e:function(t,e,s){"use strict";s("2c1c")},f0b3:function(t,e,s){},f10d:function(t,e,s){},f3d9:function(t,e,s){t.exports=s.p+"img/ios-01.bfc522d8.png"},f551:function(t,e,s){},f586:function(t,e,s){},f5ce:function(t,e,s){"use strict";s("943b")},f691:function(t,e,s){"use strict";s("a67f")},f705:function(t,e,s){"use strict";s("ba29")},f70c:function(t,e,s){"use strict";s("99ab")},f9c6:function(t,e,s){},faeb:function(t,e,s){},fb53:function(t,e,s){"use strict";s("07a1")},fc8b:function(t,e,s){"use strict";s("4bb4")},fcbb:function(t,e,s){"use strict";s("cdea")},fd1b:function(t,e,s){"use strict";s("3b6a")},feff:function(t,e,s){"use strict";s("bf66")},ffb5:function(t,e,s){"use strict";s("1d52")},ffcd:function(t,e,s){t.exports=s.p+"img/aos-01.407f5939.png"}},[[0,"runtime","vendors"]]]); //# sourceMappingURL=app.be715884.js.map