(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,s){t.exports=s("56d7")},"028e":function(t,e,s){},"029d":function(t,e,s){"use strict";s("391e")},"034e":function(t,e,s){"use strict";s("2f7a")},"05f0":function(t,e,s){},"060b":function(t,e,s){t.exports=s.p+"img/chrome-speaking-03.a3ae0df0.png"},"07c4":function(t,e,s){"use strict";s("1c6e")},"07e0":function(t,e,s){},"07fa":function(t,e,s){"use strict";s("1cde")},"098b":function(t,e,s){"use strict";s("5eff")},"0bb6":function(t,e,s){},"0d7b":function(t,e,s){},"0e05":function(t,e,s){"use strict";s("790a")},"0f27":function(t,e,s){"use strict";s("8562")},1195:function(t,e,s){t.exports=s.p+"img/lock.8e4beaf3.png"},"124d":function(t,e,s){"use strict";s("74ec")},"130c":function(t,e,s){"use strict";s("f10d")},1323:function(t,e,s){"use strict";s("a171")},"15d4":function(t,e,s){"use strict";s("9eda")},"16b74":function(t,e,s){},"16ca":function(t,e,s){"use strict";s("6c74")},1751:function(t,e,s){"use strict";s("528d")},1812:function(t,e,s){"use strict";s("47c6")},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.379bbe43.png"},"18e5":function(t,e,s){t.exports=s.p+"img/X_mobile_gray.2840f538.png"},"19ea":function(t,e,s){"use strict";s("23a6")},"1a44":function(t,e,s){"use strict";s("f630")},"1b35":function(t,e,s){},"1bb2":function(t,e,s){t.exports=s.p+"img/aos-03.56fdf9bf.png"},"1c6e":function(t,e,s){},"1c70":function(t,e,s){},"1cde":function(t,e,s){},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"},"228f":function(t,e,s){"use strict";s("1b35")},"236c":function(t,e,s){"use strict";s("b81f")},"23a6":function(t,e,s){},"23cf":function(t,e,s){"use strict";s("361a")},"24dd":function(t,e,s){t.exports=s.p+"img/2.e3f19843.png"},"25c1":function(t,e,s){t.exports=s.p+"img/manual.59bdae74.png"},"26ab":function(t,e,s){},"26b8":function(t,e,s){"use strict";s("fbdc")},2737:function(t,e,s){t.exports=s.p+"img/chrome-speaking-01.7010c071.png"},2867:function(t,e,s){},"29a2":function(t,e,s){"use strict";s("73cb")},"2a0f":function(t,e,s){"use strict";s("5d78")},"2a68":function(t,e,s){"use strict";s("c9e5")},"2a92":function(t,e,s){},"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"},"2bae":function(t,e,s){"use strict";s("05f0")},"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"),_=s("490a"),p=Object(l["a"])(r,i,o,!1,null,null,null);e["a"]=p.exports;d()(p,{VBtn:h["a"],VIcon:u["a"],VProgressCircular:_["a"]})},"348d":function(t,e,s){},"358d":function(t,e,s){"use strict";s("2867")},"35a1":function(t,e,s){},"361a":function(t,e,s){},3666:function(t,e,s){"use strict";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),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 n=o.a.firestore();e["a"]=n},"36d3":function(t,e,s){"use strict";s("c939")},3868:function(t,e,s){t.exports=s.p+"img/4.7a11a5b9.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="},"391e":function(t,e,s){},"3b80":function(t,e,s){},"3c12":function(t,e,s){"use strict";s("7f73")},"3e07":function(t,e,s){"use strict";s("adfd")},"3f44":function(t,e,s){t.exports=s.p+"img/O_mobile_gray.757e2c08.png"},"3f9a":function(t,e,s){},"3fc5":function(t,e,s){},"3fcb":function(t,e,s){"use strict";s("7a0d")},"3fcc":function(t,e,s){"use strict";s("b239")},"40fd":function(t,e,s){t.exports=s.p+"img/1st.521e3afa.png"},"411e":function(t,e,s){"use strict";s("c1cb")},"418b":function(t,e,s){"use strict";s("5251")},4337:function(t,e,s){"use strict";s("74e4")},4457:function(t,e,s){"use strict";s("82af")},"47c6":function(t,e,s){},"4a0a":function(t,e,s){"use strict";s("8791")},"4a42":function(t,e,s){t.exports=s.p+"img/T_ios_result.e0844625.png"},"4a91":function(t,e,s){"use strict";s("028e")},"4b67":function(t,e,s){},"4bb4":function(t,e,s){},"4bbc":function(t,e,s){},"4bda":function(t,e,s){"use strict";s("b60e")},"4bdb":function(t,e,s){},"4d37":function(t,e,s){"use strict";s("2a92")},"4d5a":function(t,e,s){},"4e1a":function(t,e,s){"use strict";s("be11")},"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){},"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},"512b":function(t,e,s){},5251:function(t,e,s){},"528d":function(t,e,s){},"54b1":function(t,e,s){"use strict";s("99b6")},"552f":function(t,e,s){"use strict";s("4b67")},5624:function(t,e,s){},5681:function(t,e,s){"use strict";s("b770")},"56d7":function(t,e,s){"use strict";s.r(e);var i=s("3666"),o=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)],1)},n=[],r=(s("7e7d"),s("7707")),l=s.n(r),c=s("5fb0");const d="layout-default";var h={name:"App",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;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.plugins.speechRecognition.requestPermission(),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())),window.FastClick&&window.cordova&&"ios"===window.cordova.platformId&&document.addEventListener("DOMContentLoaded",(function(){window.FastClick.attach(document.body)}),!1),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?window.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){122===t.keyCode&&(t.preventDefault(),this.$store.state.is_mobile||(this.$store.dispatch("toggleFullScreen",!this.$store.state.fullScreenStatus),this.$store.dispatch("setFullScreenDialog",!0)))},handleFullscreenChange(){document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||(this.$store.dispatch("toggleFullScreen",!1),this.$store.dispatch("setFullScreenDialog",!0))}},computed:{layout(){return this.$route.meta.layout||d}},data(){return{screen_width:null,screen_height:null,dialog:!1}},created(){"webkitSpeechRecognition"in window&&this.$store.commit("setWebkitSpeechAvailable",!0),console.log=()=>{},this.initialize()},mounted(){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("DOMContentLoaded",()=>{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)}},u=h,_=s("2877"),p=s("6544"),g=s.n(p),m=s("7496"),b=Object(_["a"])(u,a,n,!1,null,null,null),v=b.exports;g()(b,{VApp:m["a"]});var f=s("8c4f"),w=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{staticClass:"fill-height bg-road",style:"align-items:"+t.card_align+";",attrs:{fluid:""}},[s("h1",{staticClass:"pos-abs title",staticStyle:{top:"-10000px"}},[t._v("\n 내공스터디 가맹학원 전용 학생 접속페이지, 교과서 및 필수 리딩구문 컨텐츠\n 학습!\n ")]),s("v-row",{staticClass:"mx-0",style:"margin-top:"+t.card_top+";",attrs:{id:"loginvue",align:"center",justify:"center"}},[s("v-col",{attrs:{cols:"12",sm:"8",md:"7",lg:"7"}},[s("v-card",{staticClass:"elevation-0",staticStyle:{background:"#fafbfc"},attrs:{outlined:""}},[s("v-card-text",{staticClass:"login-field-div"},[s("v-row",{attrs:{align:"center",justify:"center"}},[s("v-col",{staticClass:"pb-0",attrs:{cols:"12",sm:"7",md:"6",lg:"6"}},[s("v-row",{attrs:{"no-gutters":""}},[s("v-col",{attrs:{cols:"4",offset:"4",md:"6","offset-md":"3",sm:"6","offset-sm":"3",lg:"6","offset-lg":"3"}},[s("app-logo",{attrs:{color:"rgb(22, 208, 91)",backgroundColor:"transparent",inColor:"white"}})],1)],1),s("h2",{staticClass:"title text-center mt-2 fw-400",staticStyle:{"margin-left":"-20%","margin-right":"-20%"}},[t._v("\n 영어내신은 역시, 스마트 학습 내공스터디!\n ")]),s("br"),s("v-form",{ref:"form",staticClass:"loginform",attrs:{autocomplete:"off"},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[s("div",[s("v-text-field",{attrs:{rules:t.idrules,id:"loginid",placeholder:"아이디 입력",name:"login",type:"text",outlined:"","hide-details":"","single-line":"",required:"",color:"success","background-color":"white",autocomplete:"off"},on:{focus:function(e){return t.focusField(e,1)},blur:t.blurField},model:{value:t.loginid,callback:function(e){t.loginid=e},expression:"loginid"}})],1),s("div",{staticClass:"width-100",staticStyle:{height:"1vh","min-height":"12px"}}),s("div",[s("v-text-field",{staticClass:"text-center",attrs:{rules:t.pwrules,id:"password",placeholder:"비밀번호 입력",name:"password",type:"password",outlined:"","hide-details":"","single-line":"",required:"",color:"success","background-color":"white",autocomplete:"off"},on:{keydown:t.enterValidate,focus:function(e){return t.focusField(e,2)},blur:t.blurField},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)])],1)],1)],1),s("v-card-actions",{staticClass:"text-center login-btn-div"},[s("v-row",{attrs:{"no-gutters":"",align:"center",justify:"center"}},[s("v-col",{attrs:{cols:"3"}},[s("v-btn",{attrs:{color:"success","x-large":"",block:"",elevation:"0",onloadedmetadata:""},on:{click:t.validate,touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[t._v("\n 로그인\n ")])],1)],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:"5"}},[s("v-btn",{staticStyle:{bottom:"0","letter-spacing":"unset","text-transform":"unset"},attrs:{text:"","x-large":"",block:"",elevation:"0",color:"grey darken-1",disabled:""}},[t._v("\n 내공스터디 학생용 v. "+t._s(t.app_version)+"\n ")])],1)],1)],1)],1)],1),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:""},on:{click:function(e){t.dup_dialog=!1}}},[s("span",{staticClass:"title"},[t._v("취소")])])],1)],1)],1)],1)],1)],1)},k=[],x=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"}})])},y=[],C={props:{color:String,backgroundColor:String,inColor:String}},$=C,S=Object(_["a"])($,x,y,!0,null,null,null),T=S.exports,A={name:"login",components:{AppLogo:T},data(){return{uname:"",uclass_type:"",valid:!0,loginid:"",password:"",idrules:[t=>!!t||""],pwrules:[t=>!!t||""],card_align:"center",card_top:"0px",dialog_success:!1,dialog_fail:!1,dialog_timeout:null,response_bak:null,dup_dialog:!1,fail_text:"",is_mobile:!1,is_ios:!1,ios_focustimeout:null}},methods:{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},focusField(t,e){window.cordova&&"ios"!==window.cordova.platformId?this.is_mobile&&(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.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(c["v"]+"/user/logincheck",{loginid:this.loginid,password:this.password,additional:{version:"1.4.08"}}).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>=c["mb"]&&e<=c["kb"]){if(this.uclass_type="학생",e==c["mb"])return this.fail_text="현재 사용 중지 상태이오니
학원 선생님께 문의해주세요.",this.dialog_fail=!0,!1;if(e==c["lb"])return this.fail_text="현재 휴원 상태이오니
학원 선생님께 문의해주세요.",this.dialog_fail=!0,!1}else{if(!(e>=c["ib"]&&e<=c["jb"]))return!1;if(this.uclass_type="선생님",e<=c["nb"])return this.fail_text="강사 아이디로는 로그인 불가합니다.",this.dialog_fail=!0,!1}if(this.uname=t.data.name,c["cb"]==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.$axios.get(`${c["v"]}/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(`${c["v"]}/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.commit("setDialogResolve","appexit")},closeDialog(){this.$store.commit("setDialogResolve","cancel")}},created(){this.app_version="1.4.08".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(){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()}},M=A,D=(s("cb8e"),s("8336")),I=s("b0af"),P=s("99d9"),R=s("62ad"),N=s("a523"),E=s("169a"),B=s("4bd4"),L=s("0fd9"),O=s("8654"),z=Object(_["a"])(M,w,k,!1,null,null,null),V=z.exports;g()(z,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VContainer:N["a"],VDialog:E["a"],VForm:B["a"],VRow:L["a"],VTextField:O["a"]});var q=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),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)},j=[],G=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"}},[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"},t._l(t.totalValue,(function(e){return s("div",{key:e,staticClass:"progress-segment white--text cursor-pointer",class:{"is-complete success--text":e{this.dialog_alert=!1,this.dialog_timer=null},2e3)):this.goPrev()},handleOutsideClick(){this.dialog_timer&&(clearTimeout(this.dialog_timer),this.dialog_timer=null),this.dialog_alert=!1}},created(){},data(){return{is_ios:!1,dialog_alert:!1,dialog_timer:null,is_mobile:this.$store.state.is_mobile||!1}}},W=U,H=(s("6718"),s("b687")),K=Object(_["a"])(W,G,F,!1,null,null,null),Y=K.exports;g()(K,{VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VLazy:H["a"],VRow:L["a"]});var Z=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pos-abs left-0 right-0 top-0 bottom-0 flex-column justify-center align-center align-content-center",class:[t.in_checkup?"bg-transparent":"bg-white"],attrs:{id:"module-loadin-div"},on:{click:t.hideLoading}},[s("div",{staticClass:"container text-center pos-rel"},[s("icon-rolling",{attrs:{size:"100",color:t.setColor,strokewidth:"4"}}),s("div",{staticClass:"percent-caption title font-weight-bold pos-abs align-center justify-center",style:"color:"+t.setColor,domProps:{textContent:t._s(t.getPercent+"%")}})],1),s("div",{staticClass:"container text-center pos-rel title grey--text text--darken-2"},[t._v("\n "+t._s(t.loadingText)+"\n ")]),s("div",{staticClass:"container text-center pos-rel"},[s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar",style:"width:"+t.getPercent+"%; background-color:"+t.setColor})])])])},J=[],Q=function(t,e){var s=e._c;return 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:e.props.size+"px",height:e.props.size+"px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[s("circle",{attrs:{cx:"50",cy:"50",fill:"none",stroke:e.props.color,"stroke-width":e.props.strokewidth,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)])},X=[],tt={props:["color","size","strokewidth"]},et=tt,st=Object(_["a"])(et,Q,X,!0,null,null,null),it=st.exports,ot={name:"loading",components:{IconRolling:it},props:{loadingText:{type:String,default:"잠시만 기다려주세요."}},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"]),in_checkup:!1}},created(){let t=this.$route.name;["checkup","checkupresult"].includes(t)&&(this.in_checkup=!0)},computed:{getPercent:function(){const t=document.getElementById("footer");return t&&(this.$store.state.loading_percent>0&&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)}}},at=ot,nt=(s("30dd"),Object(_["a"])(at,Z,J,!1,null,null,null)),rt=nt.exports,lt=s("2f62");function ct(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 dt(t,e,s){let i,o=t.length,a=[],n=1,r=0,l=ht(t);if(o<10){s&&l.indexOf(s)>-1&&l.splice(l.indexOf(s),1);let t=ct(l);t=t.splice(0,3),t.push(s),a=ct(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=ct(a);break}if(r++,r>300){a=ct(a);break}}}return{choices:a,right_num:a.indexOf(s)}}function ht(t){let e=Array.isArray(t)?[]:{};for(let s in t)"object"==typeof t[s]&&null!=t[s]?e[s]=ht(t[s]):e[s]=t[s];return e}function ut(t){for(var e="",s=new Uint8Array(t),i=s.byteLength,o=0;o0}function gt(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 mt(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;o0?"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)},vt=[],ft=s("94ed"),wt={name:"tts-audio",props:["leveltest_data"],data(){return{SPEAKING:c["U"],VOCA_ADVANCED:c["pb"],LEVEL_TEST:c["x"],fix_left:0,fix_top:0,canv_width:0,canv_height:0,set_position:!1,unwatch1:null,interval1:null,is_ios:!1,mdi_minus:ft["N"]}},methods:{endedReceive(t){this.$store.dispatch("endAudio")},setCaption(){console.log("setCaption"),this.$nextTick(()=>{let t,e=200;this.$store.state.process_type===c["pb"]?(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===c["pb"]&&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===c["x"]&&t&&"speaking"===t.contents[t.testGrade][t.count].type},getCurModule(){return null===this.$store.getters.getCurModule&&this.isLevelTestSpeaking?c["x"]:this.$store.getters.getCurModule}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0),this.$store.state.is_mobile&&(this.getCurModule!=c["U"]&&!this.isLevelTestSpeaking||0!=this.set_position?this.unwatch1=this.$store.watch((t,e)=>e.getCurModule,(t,e)=>{t==c["U"]&&0==this.set_position&&this.setCaption()}):this.setCaption())},beforeDestroy(){this.unwatch1&&this.unwatch1(),this.interval1&&window.clearInterval(this.interval1)}},kt=wt,xt=(s("2017"),s("132d")),yt=Object(_["a"])(kt,bt,vt,!1,null,null,null),Ct=yt.exports;g()(yt,{VCol:R["a"],VContainer:N["a"],VIcon:xt["a"],VRow:L["a"]});var $t=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)])},St=[],Tt=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; }\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(),"chips"===t.type?s("div",{staticClass:"d-flex flex-wrap justify-center align-center align-content-center",attrs:{id:"chips-"+t.step}},[t.complete?t._t("default"):t._e()],2):"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)},At=[];const Mt=20;var Dt={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),_=0;while(u>e&&_.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),_++}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()}},It=Dt,Pt=(s("07fa"),Object(_["a"])(It,Tt,At,!1,null,null,null)),Rt=Pt.exports,Nt={name:"level-popquiz",components:{AutoText:Rt},props:["data","content"],data(){return{doc_bind:!1,popquiz_select:null,ox_show:!1,ox_right:!1,mdi_play_circle:ft["T"],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(){}},Et=Nt,Bt=(s("7640"),Object(_["a"])(Et,$t,St,!1,null,null,null)),Lt=Bt.exports;g()(Bt,{VBtn:D["a"],VCol:R["a"],VIcon:xt["a"],VRow:L["a"]});var Ot=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"height-100 d-flex",staticStyle:{"max-height":"70vh"},attrs:{id:"level-dictation-wrapper"}},[s("div",{staticClass:"video-wrapper video-view-on"},[s("video-player",{key:"level-synthesia-video-player-"+t.videoKey,ref:"level-synthesia-video-player",staticClass:"width-100 height-100",attrs:{id:"synthesia-video-player",blob:t.getVideoURL}}),s("div",{staticClass:"d-flex align-center justify-center"},[s("t-t-s-player",{attrs:{"leveltest-data":t.content}})],1)],1),s("div",{staticClass:"listening-window in-study left-0 right-0 top-0 bottom-0 pos-rel",attrs:{id:"listening-wrapper",touchless:""}},[s("div",{staticClass:"question-wrapper"},[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: 4vh;"},[s("div",{staticClass:"bg-question"},[s("span",[t._v("\n "+t._s("Q "+(t.data.count+1)+". 문장을 듣고, 빈 칸에 알맞은 단어를 적으세요.")+"\n ")])])]),s("v-sheet",{staticClass:"height-100",staticStyle:{padding:"0 1rem","max-height":"60%"}},[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:t.content.sentence,maxHeight:.26*t.$store.state.screen_height,maxFontSize:2.1}},[s("div",{staticClass:"height-100"},[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-"+t.data.count}},[t.data.is_ios?t._l(t.select_arr,(function(e,i){return s("span",{key:"dic-sel-"+i,class:{"cursor-pointer":t.choice_idx.includes(i)},staticStyle:{"font-size":"inherit"},domProps:{textContent:t._s(t.dictation_uppercase.includes(i)?e.toUpperCase():e)},on:{touchstart:function(s){return t.subSelection(s,e,i)}}})})):t._l(t.select_arr,(function(e,i){return s("span",{key:"dic-sel-"+i,class:{"cursor-pointer":t.choice_idx.includes(i)},staticStyle:{"font-size":"inherit"},domProps:{textContent:t._s(t.dictation_uppercase.includes(i)?e.toUpperCase():e)},on:{click:function(s){return t.subSelection(s,e,i)}}})}))],2)])])],1)],1)],1)],1),s("v-card",{staticClass:"in-study-module-control elevation-0"},[s("div",{staticClass:"dictation-keyboard border-ede thin-t width-100"},[s("v-row",{staticClass:"width-100 height-100 ma-0",attrs:{align:"center",justify:"center","no-gutters":""}},[s("v-col",{staticClass:"width-100 height-100 d-flex",style:1!==t.scale_val?"transform: scale("+t.scale_val+")":"",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[t.tmptxt?s("auto-text",{attrs:{type:"keyboard",maxFontSize:2.2,maxHeight:.3*t.$store.state.screen_height,src:t.tmptxt,step:t.data.count,ml:1,mt:1.2,mtn:.3,wrapWidth:4,wrapHeight:4}},[t.data.is_ios?t._l(t.choice_arr,(function(e,i){return s("button",{key:"keybtn-"+e.char,staticClass:"keywrap d-block pos-rel",class:[0===e.cnt?"pressed keywrap-"+t.data.count:"keywrap-"+t.data.count],attrs:{id:"k-"+e.char},on:{touchstart:function(s){return t.toggleLetter(s,e.char,e.cnt)}}},[e.max>1?s("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[i1?s("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[i{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)}},Gt=jt,Ft=(s("67e6"),Object(_["a"])(Gt,Vt,qt,!1,null,null,null)),Ut=Ft.exports,Wt=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},Ht=[],Kt=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}})])])},Yt=[],Zt={props:{color:String}},Jt=Zt,Qt=(s("1852"),Object(_["a"])(Jt,Kt,Yt,!1,null,null,null)),Xt=Qt.exports;window.dialog_timeout=null;var te={components:{IconSoundWave:Xt},props:["spacekey","leveltestData"],data(){return{DICTATION:c["n"],STORY_EBOOK:c["X"],ALL_LISTENING:c["b"],SHADOW_READING:c["R"],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===c["X"]?this.switch_val=this.$store.state.isEBookAutoPlay:this.mode===c["R"]&&(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 c["C"]:t=!1;break;default:t=!0;break}return t},setSwitchLabel(){const t=this.getCurModule;let e="";return t===c["X"]?e="자동 "+(this.is_mobile?"":"재생"):t===c["n"]?e="반복 재생":t===c["b"]&&(e="반복"+(this.is_mobile?"":" 재생")),e},setSwitchStyle(){let t="";const e=this.getCurModule;return e===c["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===c["X"]?this.repeatEBook(t):e===c["n"]?this.repeatDictation(t):e===c["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!==c["b"])return t=!t,!1;this.$store.commit("setShadowReadingRepeat",t),this.$axios.post(`${c["v"]}/user/${this.$store.state.cid}/${this.$store.state.uid}/setuseroption`,{column:"shadow_reading_repeat",value:+t})},checkToggle(t){const e=this.getCurModule===c["z"]&&"synthesia"===this.$store.state.listening_mode,s=this.getCurModule===c["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(c["z"]==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(c["z"]==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")}}},ee=te,se=(s("a556"),s("b73d")),ie=Object(_["a"])(ee,Wt,Ht,!1,null,null,null),oe=ie.exports;g()(ie,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VRow:L["a"],VSwitch:se["a"]});var ae={name:"level-dictation",components:{VideoPlayer:Ut,AutoText:Rt,TTSPlayer:oe},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:[]}},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){console.log(e,s,"0");let i=!1;for(let o=0;o0){this.choice_arr[o].cnt-=1,i=!0;break}if(i){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){let e=document.getElementById("k-"+t.key);e&&(e.focus(),e.click())}else if(8==e){let t=document.getElementById("dic-ans-"+this.count).getElementsByClassName("cursor-pointer");t.length>0&&t[t.length-1].click()}else if(13!=e)return t.preventDefault(),!1},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))}}},_e=ue,pe=(s("4e1a"),s("cc20")),ge=Object(_["a"])(_e,de,he,!1,null,null,null),me=ge.exports;g()(ge,{VChip:pe["a"],VCol:R["a"],VIcon:xt["a"],VRow:L["a"],VSheet:re["a"]});var be=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)},ve=[],fe=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)],1)},we=[];function ke(t,e){return Ie(t,e)}var xe=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","\\$"),ye=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}"),Ce=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"),$e=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"),Se=new Array("Minsu","Kyungki","Jisu","3030","Kwangju","Hanbok","Namsan");function Te(t){for(var e=0;e"+g+"",r++):0==a[l]?n=n+" "+g+"":(n=n+" "+g+"",r+=a[l])}var m=r/s.length*100;return{html:n,score:m}}var Pe=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}})])])])},Re=[],Ne={props:{in_color:String}},Ee=Ne,Be=Object(_["a"])(Ee,Pe,Re,!1,null,null,null),Le=Be.exports,Oe={props:{content:{type:Object,default:()=>{}},prompt:{type:String,default:""},parentdialog:Boolean},components:{IconMic:Le},data(){return{language:"en-US",matches:5,showPopup:!0,showPartial:!1,mdiClose:ft["B"],mdiCellphone:ft["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}},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===c["pb"]&&(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=document.getElementById("mobile_option_area");e.style.left=s.getBoundingClientRect().left+12+"px",e.style.top=s.getBoundingClientRect().top+12+"px",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===c["x"]?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.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===c["x"]?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===c["pb"]?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()}},startRecord(){if(console.log("startRecord"),!this.getNextDisabled&&!this.timerShow){if(!this.permission)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===c["x"]?this.content.sentence:this.$store.state.sentences[this.$store.state.current_step].sentence;let s=ke(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()}},ze=Oe,Ve=(s("ab11"),s("71a3")),qe=s("c671"),je=s("fe57"),Ge=s("aac8"),Fe=Object(_["a"])(ze,fe,we,!1,null,null,null),Ue=Fe.exports;g()(Fe,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VTab:Ve["a"],VTabItem:qe["a"],VTabs:je["a"],VTabsItems:Ge["a"]});var We=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)},He=[],Ke=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)},Ye=[];window.rec_array=new Array(0),window.timeout1=[];var Ze={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:c["pb"],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:ft["N"],mdiClose:ft["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===c["x"]?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===c["x"]){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===c["pb"])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===c["x"]?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===c["x"]?this.sentence:this.$store.state.sentences[this.$store.state.current_step].sentence;let s=ke(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===c["pb"]?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===c["pb"]?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===c["pb"]?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===c["pb"]){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===c["pb"]&&(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()}},es=ts,ss=(s("130c"),Object(_["a"])(es,We,He,!1,null,null,null)),is=ss.exports;g()(ss,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VRow:L["a"]});var os={name:"level-speaking",components:{SpeechRecognition:Ue,WebkitSpeechRecognition:is,AutoText:Rt},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:ft["T"],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(){}},as=os,ns=(s("6974"),Object(_["a"])(as,be,ve,!1,null,null,null)),rs=ns.exports;g()(ns,{VCol:R["a"],VIcon:xt["a"],VRow:L["a"],VSheet:re["a"]});var ls=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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"},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)},cs=[],ds=s("7239"),hs=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:"11vh",width:"11vh",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:"11vh",width:"11vh",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",{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",{staticClass:"success--text",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)])},us=[],_s=s("cf34"),ps=s("501b"),gs=s("3344"),ms={props:["item","wrongShow","setChildTab"],components:{IconReportO:_s["a"],IconReportX:ps["a"],CircularAudioPlayer:gs["a"]},data(){return{HOST:c["v"],tab:0,tabs:["상세 조회"],html_data:null,circle_size:0,circle_width:0,circle_font:0,mdi_chevron_right:ft["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["a"].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}},bs=ms,vs=s("adda"),fs=s("8860"),ws=s("da13"),ks=s("5d23"),xs=s("1baa"),ys=s("490a"),Cs=Object(_["a"])(bs,hs,us,!1,null,"27fdea12",null),$s=Cs.exports;g()(Cs,{VCard:I["a"],VCol:R["a"],VContainer:N["a"],VIcon:xt["a"],VImg:vs["a"],VList:fs["a"],VListItem:ws["a"],VListItemContent:ks["a"],VListItemGroup:xs["a"],VListItemTitle:ks["b"],VProgressCircular:ys["a"],VRow:L["a"],VTab:Ve["a"],VTabItem:qe["a"],VTabs:je["a"],VTabsItems:Ge["a"]});var Ss={name:"leveltest-result",props:["result"],components:{LeftBarStatic:ds["a"],Loading:rt,LevelReport:$s},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:ft["v"],mdi_chevron_left:ft["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(`${c["v"]}/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)}},Ts=Ss,As=(s("07c4"),Object(_["a"])(Ts,ls,cs,!1,null,null,null)),Ms=As.exports;g()(As,{VBtn:D["a"],VCol:R["a"],VIcon:xt["a"],VRow:L["a"],VSheet:re["a"],VSwitch:se["a"]});const Ds=1.7,Is=1.6,Ps={e3:1,e4:2,e5:3,e6:4,m1:5,m2:6,m3:7,h1:8,h2:9,h3:10};var Rs={name:"level-test",components:{Loading:rt,ProgressBar:Y,LevelPopquiz:Lt,LevelDictation:ce,LevelMatching:me,LevelSpeaking:rs,TTSAudio:Ct,LevelTestResult:Ms},data(){return{tempTimestamp:null,LEVEL_TEST_RESULT:c["x"]+c["Q"],LEVEL_TEST_GRADE:c["y"],LEVEL_TEST:c["x"],mdiChevronDoubleLeft:ft["q"],mdiChevronDoubleRight:ft["r"],mdiChevronRight:ft["v"],grade:null,testGrade:null,changed_grade:null,correct_count:0,incorrect_count:0,name:null,contents:null,font_head:Ds,font_main:Is,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(lt["e"])(["seconds"]),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(lt["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",c["x"]),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?c["y"].findIndex(t=>t.value===this.changed_grade):c["y"].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[c["y"][s].value]||(-1==t?s+=1:s-=1),this.changed_grade=c["y"][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;Ps[e]Ps[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(`${c["v"]}/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=c["y"][c["y"].findIndex(e=>e.value===t)-s].value);let i=ht(this.$store.state.book),o=ht(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=c["y"].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(`${c["v"]}/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=`${c["v"]}/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=`${c["w"]}/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(c["v"]+"/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(`${c["v"]}/v2/file/checkvocamp3/${i}`);if(200===o.data.res)return t.blob=`${c["qb"]}/${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(`${c["v"]}/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=`${c["sb"]}/${a}/${s}/${o}.mp3`,e()}else{const s=await this.$axios.post(c["v"]+"/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=`${c["sb"]}/${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=`${c["v"]}/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=`${c["w"]}/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(c["v"]+"/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=`${c["w"]}/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(c["v"]+"/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=`${c["v"]}/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(){}},Ns=Rs,Es=(s("e2bf"),s("f665")),Bs=s("1e6c"),Ls=Object(_["a"])(Ns,q,j,!1,null,null,null),Os=Ls.exports;g()(Ls,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var zs=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 justify-space-around align-center pos-rel",on:{click:function(e){return t.changeInfo("name")},touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[i("span"),i("b",{staticClass:"fs-1p1rem"},[t._v(t._s(t.getUserName))]),i("v-icon",{key:"index-icon-1",style:"width:"+t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)+"px !important; padding-bottom: 0.2rem;",attrs:{dark:"",color:"grey",size:t.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)}},[t._v(t._s(t.mdi_chevron_right))])],1)])])],1)],1),i("div",{staticClass:"main-title text-center fw-700 pa-0"},[t._v("내공학습 관리")]),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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("aa1d"),"lazy-src":s("aa1d"),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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("9c2f"),"lazy-src":s("9c2f"),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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("25c1"),"lazy-src":s("25c1"),height:"100%",contain:""}}),t.is_mobile?t._e():i("v-chip",{staticClass:"ml-1",staticStyle:{position:"absolute",bottom:"87%",left:"65%",padding:"0 0.75rem",transform:"scale(0.875)","transform-origin":"center"},attrs:{id:"leveltest-chip",color:"#ff1717","text-color":"white","x-small":"",pill:""}},[i("span",{staticClass:"white--text",staticStyle:{"margin-top":"-2px"}},[t._v("\n NEW\n ")])])],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("레벨 테스트")])])]),t.is_mobile?i("v-chip",{staticClass:"ml-1",staticStyle:{position:"absolute",top:"0.4rem",right:"0.4rem",padding:"0 0.75rem",transform:"scale(0.875)","transform-origin":"center"},attrs:{id:"leveltest-chip",color:"#ff1717","text-color":"white","x-small":"",pill:""}},[i("span",{staticClass:"white--text",staticStyle:{"margin-top":"-2px"}},[t._v("\n NEW\n ")])]):t._e()],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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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("7c6d"),"lazy-src":s("7c6d"),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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("6ebb"),"lazy-src":s("6ebb"),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-7",staticClass:"main-manage-btn",attrs:{tile:"",block:"",text:"",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)}}},[i("div",{staticClass:"main-nav-img-wrap ma-auto pos-rel"},[i("v-img",{staticStyle:{margin:"0 auto"},attrs:{src:s("c9ec"),"lazy-src":s("c9ec"),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)],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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},Vs=[],qs={name:"index",components:{LevelTestResult:Ms},data:()=>({LEVEL_TEST_RESULT:c["x"]+c["Q"],STUDY:c["ab"],TEST:c["gb"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],MOCK_EXAM:c["F"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"],GRAMMAR_THEORY:c["t"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],LEVEL_TEST_GRADE:c["y"],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:ft["v"],mdi_sync:ft["X"],mdi_image_outline:ft["I"],mdi_camera_outline:ft["k"],mdi_close:ft["B"],mdi_file:ft["F"],mdi_information_outline:ft["J"]}),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`${c["v"]}/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}},watch:{dialog_level_start(t){t?this.level_name=this.$store.state.uclass>20?"":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.08"},mounted:function(){this.$store.state.init_sound||(this.$store.dispatch("soundEffectPlay","after_login"),this.getRankPopupView?this.getBoard():this.checkNewNotice())},methods:{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=`${c["v"]}/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(){this.takePicture(window.Camera.PictureSourceType.SAVEDPHOTOALBUM)},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=c["v"]+"/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=`${c["v"]}/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(`${c["v"]}/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==c["F"]?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(`${c["v"]}/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,"+ut(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(`${c["v"]}/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[c["ab"],c["A"],c["rb"],c["F"],c["r"],c["Y"]].includes(e)?s="success--text":[c["gb"],c["a"],c["pb"],c["s"],c["V"]].includes(e)?s="info2--text":[c["ob"],c["t"],c["Z"]].includes(e)&&(s="warning--text"),s},setListType(t){const e=t.type;if(e==c["F"])return"평가";if(e==c["t"])return"이론";if([c["r"],c["Y"]].includes(e))return"기본";if([c["s"]].includes(e))return"심화";if(e==c["Z"])return"동화";if(e==c["V"])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!==c["i"])switch(i){case c["g"]:case c["f"]:t.type==c["ob"]?s="어휘":t.type==c["ab"]?s=4!=o||Number(t.words_cnt)?[2,4].includes(o)?"본문":3==o||1==o?"지문":"문장":"학습":t.type==c["gb"]&&(s=4!=o||Number(t.words_cnt)?"심화":"시험");break;case c["d"]:t.type==c["ob"]?s="어휘":t.type==c["A"]?s=3==o?"지문":"본문":t.type==c["a"]&&(s="심화");break;default:break}else switch(i){case c["i"]:t.type==c["rb"]?s="학습":t.type==c["pb"]&&(s="시험");break;default:t.type==c["ab"]?s="학습":t.type==c["gb"]&&(s="시험");break}else switch(i){case c["g"]:case c["f"]:t.type==c["ob"]?s="어휘":t.type==c["ab"]?s=4!=o||Number(t.words_cnt)?[2,4].includes(o)?"본문":3==o||1==o?"지문":"문장":"학습":t.type==c["gb"]&&(s=4!=o||Number(t.words_cnt)?"심화":"시험");break;case c["d"]:t.type==c["ob"]?s="어휘":t.type==c["A"]?s=3==o?"지문":"본문":t.type==c["a"]&&(s="심화");break;case c["i"]:t.type==c["rb"]?s="학습":t.type==c["pb"]&&(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(`${c["v"]}/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(`${c["v"]}/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(`${c["v"]}/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=`${c["v"]}/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()}},js=qs,Gs=(s("d2fa"),s("a609")),Fs=s("23a7"),Us=s("1f4f"),Ws=s("269a"),Hs=s.n(Ws),Ks=s("5607"),Ys=Object(_["a"])(js,zs,Vs,!1,null,null,null),Zs=Ys.exports;g()(Ys,{VBtn:D["a"],VBtnToggle:Gs["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VChip:pe["a"],VCol:R["a"],VDialog:E["a"],VFileInput:Fs["a"],VIcon:xt["a"],VImg:vs["a"],VRow:L["a"],VSimpleTable:Us["a"],VTextField:O["a"]}),Hs()(Ys,{Ripple:Ks["b"]});var Js=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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",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<=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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",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",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:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("bookmark_dialog")}},model:{value:t.bookmark_dialog,callback:function(e){t.bookmark_dialog=e},expression:"bookmark_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},[i("v-row",[i("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[i("span",{staticClass:"black--text"},[t._v("북마크 교재")]),i("span",{domProps:{textContent:t._s(t.bookmarktext)}}),t._v("되었습니다.\n ")])],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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},Qs=[],Xs=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 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),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)},ti=[],ei={name:"book-list-latest",props:["type","query","setBookInfo","setBookInfoVMA","setBookInfoGRAMMAR","getLearningStatus","tab","updateSingleUnit","unitStatusChecker","updateTmpSelUpdate"],data(){return{STUDY:c["ab"],TEST:c["gb"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],MOCK_EXAM:c["F"],GRAMMAR_THEORY:c["t"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"],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:ft["M"],mdi_chevron_right:ft["v"],mdi_chevron_left:ft["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(`${c["v"]}/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===c["gb"]?s:null,study_cnt:e===c["ab"]?s:null,voca_cnt:e===c["ob"]?s:null,major_cnt:[c["A"],c["rb"]].includes(e)?s:null,advanced_cnt:[c["a"],c["pb"]].includes(e)?s:null,story_v_cnt:e===c["Z"]?s:null,story_m_cnt:e===c["Y"]?s:null,story_a_cnt:e===c["V"]?s:null,test_pk:e===c["gb"]?i:null,study_pk:e===c["ab"]?i:null,voca_pk:e===c["ob"]?i:null,major_pk:[c["A"],c["rb"]].includes(e)?i:null,advanced_pk:[c["a"],c["pb"]].includes(e)?i:null,story_v_pk:e===c["Z"]?i:null,story_m_pk:e===c["Y"]?i:null,story_a_pk:e===c["V"]?i:null,test_done_modules:e===c["gb"]?t.done_modules:null,study_done_modules:e===c["ab"]?t.done_modules:null,voca_done_modules:e===c["ob"]?t.done_mod:null,major_done_modules:[c["A"],c["rb"]].includes(e)?t.done_mod:null,advanced_done_modules:[c["a"],c["pb"]].includes(e)?t.done_mod:null,story_v_done_modules:e===c["Z"]?t.done_mod:null,story_m_done_modules:e===c["Y"]?t.done_mod:null,story_a_done_modules:e===c["V"]?t.done_mod:null,test_done:e===c["gb"]?o:null,study_done:e===c["ab"]?o:null,voca_done:e===c["ob"]?o:null,major_done:[c["A"],c["rb"]].includes(e)?o:null,advanced_done:[c["a"],c["pb"]].includes(e)?o:null,story_v_done:e===c["Z"]?o:null,story_m_done:e===c["Y"]?o:null,story_a_done:e===c["V"]?o:null,test_random_sentences_ids:e===c["gb"]?a:null,study_random_sentences_ids:e===c["ab"]?a:null,voca_random_sentences_ids:e===c["ob"]?a:null,major_random_sentences_ids:[c["A"],c["rb"]].includes(e)?a:null,advanced_random_sentences_ids:[c["a"],c["pb"]].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 c["g"]:e.voca_status=this.unitStatusChecker(e,c["ob"]),e.study_status=this.unitStatusChecker(e,c["ab"]),e.test_status=this.unitStatusChecker(e,c["gb"]),t.type==c["ob"]&&(s=e.voca_status),t.type==c["ab"]&&(s=e.study_status),t.type==c["gb"]&&(s=e.test_status);break;case c["d"]:e.voca_status=this.unitStatusChecker(e,c["ob"]),e.major_status=this.unitStatusChecker(e,c["A"]),e.advanced_status=this.unitStatusChecker(e,c["a"]),t.type==c["ob"]&&(s=e.voca_status),t.type==c["A"]&&(s=e.major_status),t.type==c["a"]&&(s=e.advanced_status);break;case c["i"]:break;case c["f"]:e.voca_status=this.unitStatusChecker(e,c["ob"]),e.study_status=this.unitStatusChecker(e,c["ab"]),3===+t.category&&(e.test_status=this.unitStatusChecker(e,c["gb"])),t.type==c["ob"]&&(s=e.voca_status),t.type==c["ab"]&&(s=e.study_status),t.type==c["gb"]&&3===+t.category&&(s=e.test_status);break;default:break}else switch(t.booktype_1){case c["i"]:e.major_status=this.unitStatusChecker(e,c["rb"]),e.advanced_status=this.unitStatusChecker(e,c["pb"]),t.type==c["rb"]&&(s=e.major_status),t.type==c["pb"]&&(s=e.advanced_status);break;default:e.study_status=this.unitStatusChecker(e,c["ab"]),e.test_status=this.unitStatusChecker(e,c["gb"]),t.type==c["ab"]&&(s=e.study_status),t.type==c["gb"]&&(s=e.test_status);break}else switch(t.booktype_1){case c["g"]:e.voca_status=this.unitStatusChecker(e,c["ob"]),e.study_status=this.unitStatusChecker(e,c["ab"]),e.test_status=this.unitStatusChecker(e,c["gb"]),t.type==c["ob"]&&(s=e.voca_status),t.type==c["ab"]&&(s=e.study_status),t.type==c["gb"]&&(s=e.test_status);break;case c["d"]:e.voca_status=this.unitStatusChecker(e,c["ob"]),e.major_status=this.unitStatusChecker(e,c["A"]),e.advanced_status=this.unitStatusChecker(e,c["a"]),t.type==c["ob"]&&(s=e.voca_status),t.type==c["A"]&&(s=e.major_status),t.type==c["a"]&&(s=e.advanced_status);break;case c["i"]:e.major_status=this.unitStatusChecker(e,c["rb"]),e.advanced_status=this.unitStatusChecker(e,c["pb"]),t.type==c["rb"]&&(s=e.major_status),t.type==c["pb"]&&(s=e.advanced_status);break;case c["f"]:e.voca_status=this.unitStatusChecker(e,c["ob"]),e.study_status=this.unitStatusChecker(e,c["ab"]),3===+t.category&&(e.test_status=this.unitStatusChecker(e,c["gb"])),t.type==c["ob"]&&(s=e.voca_status),t.type==c["ab"]&&(s=e.study_status),t.type==c["gb"]&&3===+t.category&&(s=e.test_status);break;case c["e"]:e.theory_status=this.unitStatusChecker(e,c["t"]),e.basics_status=this.unitStatusChecker(e,c["r"]),e.deep_status=this.unitStatusChecker(e,c["s"]),t.type==c["t"]&&(s=e.theory_status),t.type==c["r"]&&(s=e.basics_status),t.type==c["s"]&&(s=e.deep_status);break;case c["h"]:e.story_v_status=this.unitStatusChecker(e,c["Z"]),e.story_m_status=this.unitStatusChecker(e,c["Y"]),e.story_a_status=this.unitStatusChecker(e,c["V"]),t.type==c["Z"]&&(s=e.story_v_status),t.type==c["Y"]&&(s=e.story_m_status),t.type==c["V"]&&(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!==c["i"])i="*";else switch(e.booktype_1){case c["i"]:e.type==c["rb"]&&(i=c["pb"]);break;default:e.type==c["ab"]&&(i=c["gb"]);break}else switch(e.booktype_1){case c["g"]:e.type==c["ob"]&&(i=c["ab"]),e.type==c["ab"]&&(i=c["gb"]);break;case c["d"]:e.type==c["ob"]&&(i=c["A"]),e.type==c["A"]&&(i=c["a"]);break;case c["i"]:e.type==c["rb"]&&(i=c["pb"]);break;case c["f"]:e.type==c["ob"]&&(i=c["ab"]);break;case c["e"]:e.type==c["t"]&&(i=c["t"]),e.type==c["r"]&&(i=c["r"]),e.type==c["s"]&&(i=c["s"]);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(`${c["v"]}/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:d,done_cnt:h}=i,u=(t,e,s)=>{t[e+"_pk"]=a,t[e+"_done_modules"]="mod"===s?l:d,t[e+"_done"]=r,t[e+"_cnt"]=h};if(1==+e.schedule_type)if(1==e.schedule_type_v&&e.booktype_1!=c["i"])switch(e.booktype_1){case c["g"]:e.type==c["ab"]?u(s,"study","modules"):e.type==c["gb"]&&u(s,"test","modules");break;case c["d"]:e.type==c["A"]?u(s,"major","mod"):e.type==c["a"]&&u(s,"advanced","mod");break;case c["f"]:console.log(e),e.type==c["ob"]?u(s,"voca","mod"):e.type==c["ab"]?u(s,"study","modules"):e.type==c["gb"]&&3===+e.category&&u(s,"test","modules");break;default:}else switch(e.booktype_1){case c["i"]:n==c["pb"]&&u(s,"advanced","mod");break;default:n==c["gb"]&&u(s,"test","modules");break}else switch(e.booktype_1){case c["g"]:n==c["ab"]?u(s,"study","modules"):n==c["gb"]&&u(s,"test","modules");break;case c["d"]:n==c["A"]?u(s,"major","mod"):n==c["a"]&&u(s,"advanced","mod");break;case c["i"]:n==c["pb"]&&u(s,"advanced","mod");break;case c["e"]:this.grammar_type=e.type,n==c["t"]?u(s,"grammar_theory","mod"):n==c["r"]?u(s,"grammar_basics","mod"):n==c["s"]&&u(s,"grammar_deep","mod");break;default:}let _=this.checkStatus(e,s);this.sel_book=_.book,this.sel_unit=_.unit,o(_.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([c["ab"],c["gb"]].includes(e)){let o=0;switch(t){case 1:case 2:o=e===c["ab"]?4:6,this.exitSound(),this.setLearningDialog(o);break;case 3:this.clickSound(),this.setLearningDialog(8);break;default:o=e===c["ab"]?0:31===+s&&1===+i?8:2,this.clickSound(),this.setLearningDialog(o);break}}else if([c["ob"],c["A"],c["a"],c["rb"],c["pb"]].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([c["t"],c["r"],c["s"]].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([c["Z"],c["Y"],c["V"]].includes(e))switch(this.learning_dialog_vma=e,console.log(t),t){case 1:case 2:{const t=e===c["Z"]?13:12;this.exitSound(),this.setLearningDialog(t);break}case 3:{const t=e===c["Z"]?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(`${c["v"]}/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",c["F"]),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,c["ab"],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,c["gb"],t.clear,this.closeLearningDialog)):this.$axios.get(`${c["v"]}/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,c["gb"],t.clear,this.closeLearningDialog)):(window.console.log("getStudyPk 204"),this.setBookInfo(this.sel_book,this.sel_unit,c["gb"],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.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+c["Q"];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 c["ab"]:case c["A"]:case c["rb"]:case c["r"]:case c["Y"]:o="success--text";break;case c["ob"]:case c["t"]:case c["Z"]:o="warning--text";break;case c["gb"]:case c["a"]:case c["pb"]:case c["s"]:case c["V"]:o="info2--text";break;case c["F"]: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==c["F"])return t.schedule_id&&"3"!=i&&"1"!=t.booktype?"듣기":"평가";if(t.type==c["t"])return"이론";if([c["r"],c["Y"]].includes(t.type))return"기본";if([c["s"]].includes(t.type))return"심화";if(t.type==c["Z"])return"동화";if(t.type==c["V"])return"실전";if(1==+t.schedule_type)if(1==t.schedule_type_v)switch(s){case c["g"]:case c["f"]:t.type==c["ob"]?e="어휘":t.type==c["ab"]?e=4!=i||+t.words_cnt?[2,4].includes(i)?"본문":3==i||1==i?"지문":"문장":"학습":t.type==c["gb"]&&(e=4!=i||+t.words_cnt?"심화":"시험");break;case c["d"]:t.type==c["ob"]?e="어휘":t.type==c["A"]?e=3==i?"지문":"본문":t.type==c["a"]&&(e="심화");break;case c["i"]:t.type==c["rb"]?e="학습":t.type==c["pb"]&&(e="시험");break;default:}else switch(s){case c["i"]:t.type==c["rb"]?e="학습":t.type==c["pb"]&&(e="시험");break;default:t.type==c["ab"]?e="학습":t.type==c["gb"]&&(e="시험");break}else switch(s){case c["g"]:case c["f"]:t.type==c["ob"]?e="어휘":t.type==c["ab"]?e=4!=i||+t.words_cnt?[2,4].includes(i)?"본문":3==i||1==i?"지문":"문장":"학습":t.type==c["gb"]&&(e=4!=i||+t.words_cnt?"심화":"시험");break;case c["d"]:t.type==c["ob"]?e="어휘":t.type==c["A"]?e=3==i?"지문":"본문":t.type==c["a"]&&(e="심화");break;case c["i"]:t.type==c["rb"]?e="학습":t.type==c["pb"]&&(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()}},si=ei,ii=(s("83dc"),s("2e4b")),oi=s("2fa4"),ai=Object(_["a"])(si,Xs,ti,!1,null,null,null),ni=ai.exports;g()(ai,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDatePicker:ii["a"],VDialog:E["a"],VIcon:xt["a"],VList:fs["a"],VListItem:ws["a"],VListItemContent:ks["a"],VListItemGroup:xs["a"],VRow:L["a"],VSpacer:oi["a"]});var ri=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"):t.mode===t.TEST?s("test"):t.mode===t.EXAM?s("exam"):t.mode===t.VOCA?s("voca"):t.mode===t.MAJOR?s("major"):t.mode===t.ADVANCED?s("advanced"):t.mode===t.FLASHCARD?s("flash-card"):t.mode===t.VOCA_MAJOR?s("voca-major"):t.mode===t.VOCA_ADVANCED?s("voca-advanced"):t.mode===t.SHADOW_READING?s("shadow-reading",{attrs:{bookmode:t.bookmode}}):[t.GRAMMAR_THEORY,t.GRAMMAR_BASICS,t.GRAMMAR_DEEP].includes(t.mode)?s("grammar-theory"):[t.STORY_V,t.STORY_M,t.STORY_A].includes(t.mode)?s("story-book"):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)])},li=[],ci=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("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)},di=[],hi={name:"mixindefault",methods:{pressEnter:function(t){let e=this.$store.getters.getCurModule;if([c["ub"],c["L"],c["P"],c["u"],c["n"],c["wb"]].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.go("next")}},mounted(){this.$nextTick(()=>{document.addEventListener("keyup",this.pressEnter)})},beforeDestroy(){document.removeEventListener("keyup",this.pressEnter)}},ui=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)},_i=[],pi=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)},gi=[],mi={name:"sentence-sheet",components:{AutoText:Rt},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(){}},bi=mi,vi=(s("5e95"),Object(_["a"])(bi,pi,gi,!1,null,null,null)),fi=vi.exports;g()(vi,{VCol:R["a"],VRow:L["a"],VSheet:re["a"]});var wi=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()},ki=[],xi={name:"word-sheet",props:{flashShow:Boolean,row:Object,img:[String,Boolean],idx:[String,Number]},components:{},methods:{initLoaded:function(){this.$store.commit("onLoading",!1)}},created(){}},yi=xi,Ci=(s("59ac"),Object(_["a"])(yi,wi,ki,!1,null,null,null)),$i=Ci.exports;g()(Ci,{VCol:R["a"],VRow:L["a"],VSheet:re["a"]});var Si={name:"listening",components:{SentenceSheet:fi,WordSheet:$i},props:["font_level","show_eng","show_kor"],data(){return{}},created(){},mounted(){},watch:{},computed:{flashShow(){return this.$store.getters.getFlashShow}},methods:{}},Ti=Si,Ai=(s("6dca"),Object(_["a"])(Ti,ui,_i,!1,null,null,null)),Mi=Ai.exports;g()(Ai,{VWindow:Es["a"],VWindowItem:Bs["a"]});var Di=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)})):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)}))],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 ")])})),1)]],2)])],1)],1):t._e()],1)})),1)},Ii=[],Pi={name:"matching",components:{AutoText:Rt},props:["use"],data(){return{EBOOK_CDN:c["o"],is_ios:!1}},created(){"ios"===this.$store.state.platform&&(this.is_ios=!0)},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.$store.commit("subMatchingSelect",{word:e,key:s})},padSelection:function(t){let e=t.replace(/\s+/gi," ");return/[a-zA-Z0-9]/i.test(e.substr(-1))&&(e+=" "),e}},beforeDestroy(){this.$store.commit("destroyMatching")}},Ri=Pi,Ni=(s("0e05"),Object(_["a"])(Ri,Di,Ii,!1,null,null,null)),Ei=Ni.exports;g()(Ni,{VChip:pe["a"],VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var Bi=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)},Li=[],Oi={name:"dictation",components:{AutoText:Rt},data(){return{ADVANCED:c["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)}},zi=Oi,Vi=(s("96cc"),Object(_["a"])(zi,Bi,Li,!1,null,null,null)),qi=Vi.exports;g()(Vi,{VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var ji=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)})),s("v-dialog",{attrs:{"max-width":t.$store.state.is_mobile?320:400,transition:!1,"hide-overlay":"",persistent:""},on:{"click:outside":t.cancelDialog},model:{value:t.font_dialog,callback:function(e){t.font_dialog=e},expression:"font_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center title",class:[t.$store.state.is_mobile?"py-2":"py-4"],staticStyle:{"background-color":"#404040"}},[s("v-row",[s("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[s("span",{staticClass:"white--text",domProps:{innerHTML:t._s(t.font_txt)}})])],1)],1)],1)],1)],2)},Gi=[];const Fi=.6,Ui=1.4,Wi=1.8,Hi=2,Ki=1.6,Yi=1.8;var Zi={name:"popquiz",components:{AutoText:Rt},data(){return{wrap_key:0,is_ios:!1,unwatch_once:null,doc_bind:!1,storyReady:!1,font_level:1,font_head:Wi,font_std:Hi,font_main:Ki,font_foot:Yi,font_dialog:!1,font_txt:""}},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=Wi*t,this.font_std=Hi*t,this.font_main=Ki*t,this.font_foot=Yi*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:{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&&Fi>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Ui<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1)),e+=' ';const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s]),e+=""}this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)},cancelDialog:function(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)}},beforeDestroy(){this.$store.commit("destroyPopquiz"),this.doc_bind&&document.removeEventListener("keydown",this.pcKeydown)}},Ji=Zi,Qi=(s("1a44"),Object(_["a"])(Ji,ji,Gi,!1,null,null,null)),Xi=Qi.exports;g()(Qi,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]}),Hs()(Qi,{Ripple:Ks["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"}},[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._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)})):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)}))],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)})),0)]],2)])],1)],1):t._e()],1)}))],2)},eo=[],so={name:"writing",components:{AutoText:Rt},data(){return{wrong_pos:[],unwatch1:null,is_ios:!1}},methods:{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){console.log(this.wrong_pos,s),this.wrong_pos.includes(s)&&this.wrong_pos.splice(this.wrong_pos.indexOf(s),1),console.log(e,s),this.$store.commit("subWritingSelect",{word:e,key:s})},getHint:function(){console.log("getHint"),this.$store.dispatch("soundEffectPlay","hint"),this.$store.dispatch("getWritingHint").then(t=>{window.console.log(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=[])})},beforeDestroy(){this.$store.commit("destroyWriting"),this.unwatch1()}},io=so,oo=(s("6b7f"),Object(_["a"])(io,to,eo,!1,null,null,null)),ao=oo.exports;g()(oo,{VChip:pe["a"],VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var no=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)},ro=[],lo={components:{AutoText:Rt},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(c["yb"].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(c["zb"].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()}},co=lo,ho=(s("2df3"),Object(_["a"])(co,no,ro,!1,null,null,null)),uo=ho.exports,_o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"dictation-keyboard border-ede thin-t width-100"},[s("v-row",{staticClass:"width-100 height-100 ma-0",attrs:{align:"center",justify:"center","no-gutters":""}},[s("v-col",{staticClass:"width-100 height-100 d-flex",style:1!==t.scale_val?"transform: scale("+t.scale_val+")":"",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[t.tmptxt?s("auto-text",{attrs:{type:"keyboard",maxFontSize:t.maxFontSize,maxHeight:.3*t.$store.state.screen_height,src:t.tmptxt,step:t.getStep,wrapWidth:t.wrapWidth,wrapHeight:t.wrapHeight,ml:t.ml,mt:t.mt,mtn:t.mtn}},[t.is_ios?[t._l(t.$store.state.dictation_choice,(function(e,i){return[s("button",{key:"keybtn-"+e.char,staticClass:"keywrap d-block pos-rel",class:[0===e.cnt?"pressed keywrap-"+t.getStep:"keywrap-"+t.getStep],attrs:{id:"k-"+e.char},on:{touchstart:function(s){return t.toggleLetter(s,e.char,e.cnt)}}},[e.max>1?s("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[i1?s("div",{staticClass:"pos-abs num width-100p text-center fw-400",class:[i1&&(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}},methods:{toggleLetter:function(t,e,s){if(s<=0)return!1;this.is_ios||this.$store.dispatch("soundEffectPlay","dicbtn"),this.$store.commit("toggleDictationLetter",{char:e,key:e+s})},pcKeydown:function(t){const e=t.which||t.keyCode;if(e>64&&e<91){let e=document.getElementById("k-"+t.key);e&&(e.focus(),e.click())}else if(8==e){let t=document.getElementById("dic-ans-"+this.$store.state.current_step).getElementsByClassName("cursor-pointer");t.length>0&&t[t.length-1].click()}else{if(13!=e)return t.preventDefault(),!1;{let t=document.getElementById("go-next-btn");t&&t.click()}}}},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)}},mo=go,bo=(s("236c"),Object(_["a"])(mo,_o,po,!1,null,null,null)),vo=bo.exports;g()(bo,{VCol:R["a"],VRow:L["a"]});var fo={name:"learning-study",props:["id"],mixins:[hi],components:{Listening:Mi,Matching:Ei,Dictation:qi,Popquiz:Xi,Writing:ao,OXDisplayer:uo,Keyboard:vo,TTSPlayer:oe,TTSAudio:Ct,Loading:rt},data(){return{LISTENING:c["z"],MATCHING:c["C"],DICTATION:c["n"],POPQUIZ:c["M"],WRITING:c["vb"],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:ft["q"],mdi_chevron_double_right:ft["r"],mdi_chevron_right:ft["v"],mdi_check:ft["n"],mdi_chevron_right_circle_outline:ft["x"]}},computed:{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 c["z"]:t="in-listening";break;case c["C"]:t="in-matching";break;case c["n"]:t="in-dictation";break;case c["M"]:t="in-popquiz";break;case c["vb"]: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)&&(c["z"]>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(`${c["v"]}/v1/book/getsentenceunitone/${i}`);else if(1==this.$store.state.book.schedule_type_v)t=await this.$axios.get(`${c["v"]}/v1/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&type=${c["ab"]}&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(`${c["v"]}/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(e),window.console.log(t),e?(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){return!this.$store.state.ox_show&&(0!=this.is_skip&&(null!==this.getModule&&(this.next_module_idx=this.getNextModuleIdx,null!==this.next_module_idx&&(t.idx===this.next_module_idx&&(-1==t.idx?this.next_module_name="Report":this.next_module_name=c["Bb"][this.next_module_idx],void(this.skip_dialog=!0))))))},goSkip:function(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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 c["C"]:this.$store.commit("destroyMatching");break;case c["n"]:this.$store.commit("destroyDictation");break;case c["M"]:this.$store.commit("destroyPopquiz");break;case c["vb"]:this.$store.commit("destroyWriting");break;default:}},destroyed(){this.$destroy()}},wo=fo,ko=s("ce7e"),xo=s("7e85"),yo=s("9c54"),Co=s("56a4"),$o=Object(_["a"])(wo,ci,di,!1,null,null,null),So=$o.exports;g()($o,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var To=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("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)},Ao=[],Mo=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?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 ")])])},Do=[];const Io=["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 Po={name:"writing_k",components:{AutoText:Rt},data(){return{VOCA_ADVANCED:c["pb"],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:ft["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(Io.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.process_type===c["pb"]?(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==c["gb"]?c["hb"]:c["B"],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()}},Ro=Po,No=(s("19ea"),Object(_["a"])(Ro,Mo,Do,!1,null,null,null)),Eo=No.exports;g()(No,{VBtn:D["a"],VCol:R["a"],VIcon:xt["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var Bo=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?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",class:t.is_ios?"left-m9999":"bottom-0",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 ")])])},Lo=[],Oo={name:"writing_k",components:{AutoText:Rt},data(){return{VOCA_ADVANCED:c["pb"],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}},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){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){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},checkBlur(){this.mobile_focus=!1,this.is_ios&&window.scrollTo(0,NaN)},delegateFocus(t){this.focusInput("wki-"+this.$store.state.current_step)}},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===c["pb"]?(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.$store.state.is_mobile||(document.removeEventListener("click",this.delegateFocus),this.unwatch3()),this.$store.commit("destroyWritingK")},destroyed(){this.$destroy()}},zo=Oo,Vo=(s("9a70"),Object(_["a"])(zo,Bo,Lo,!1,null,null,null)),qo=Vo.exports;g()(Vo,{VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var jo=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)},Go=[],Fo={name:"speaking",components:{SpeechRecognition:Ue,WebkitSpeechRecognition:is,AutoText:Rt},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}},Uo=Fo,Wo=(s("942b"),Object(_["a"])(Uo,jo,Go,!1,null,null,null)),Ho=Wo.exports;g()(Wo,{VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var Ko={name:"learning-test",props:["id"],mixins:[hi],components:{Matching:Ei,Dictation:qi,Popquiz:Xi,Writing:ao,WritingK:Eo,WritingKMobile:qo,Speaking:Ho,OXDisplayer:uo,Keyboard:vo,TTSPlayer:oe,TTSAudio:Ct,Loading:rt},data(){return{MATCHING:c["C"],DICTATION:c["n"],POPQUIZ:c["M"],WRITING:c["vb"],WRITING_K:c["wb"],SPEAKING:c["U"],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:ft["q"],mdi_chevron_double_right:ft["r"],mdi_check:ft["n"],mdi_chevron_right:ft["v"],mdi_chevron_right_circle_outline:ft["x"]}},computed:{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 c["C"]:t="in-matching";break;case c["n"]:t="in-dictation";break;case c["M"]:t="in-popquiz";break;case c["vb"]:t="in-writing";break;case c["wb"]:t="in-writing-k";break;case c["U"]: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){return!this.$store.state.ox_show&&(0!=this.is_skip&&(null!==this.getModule&&(this.next_module_idx=this.getNextModuleIdx,null!==this.next_module_idx&&(t.idx===this.next_module_idx&&(-1==t.idx?this.next_module_name="Report":this.next_module_name=c["Bb"][this.next_module_idx],void(this.skip_dialog=!0))))))},goSkip(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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(`${c["v"]}/v1/book/getsentenceunitone/${i}`);else if(1==this.$store.state.book.schedule_type_v)t=await this.$axios.get(`${c["v"]}/v1/book/getsentenceunitone/${i}`);else{let s=this.$store.state.book.sentence_cnt,o=i*s;t=await this.$axios.get(`${c["v"]}/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&start=${o}&leng=${s}`)}if(l){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(`${c["v"]}/result/getwrongsentences/${o}`),t&&a){let e=ct(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)},beforeDestroy(){switch(this.timeout_moving&&clearTimeout(this.timeout_moving),this.$store.dispatch("initStep"),this.$store.dispatch("initPage"),this.$store.commit("destroyModules"),this.getModule){case c["C"]:this.$store.commit("destroyMatching");break;case c["n"]:this.$store.commit("destroyDictation");break;case c["M"]:this.$store.commit("destroyPopquiz");break;case c["vb"]:this.$store.commit("destroyWriting");break;case c["wb"]:this.$store.commit("destroyWritingK");break;case c["U"]:this.$store.commit("destroySpeaking");break;default:}},destroyed(){this.$destroy()}},Yo=Ko,Zo=(s("b38f"),Object(_["a"])(Yo,To,Ao,!1,null,null,null)),Jo=Zo.exports;g()(Zo,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var Qo=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("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)},Xo=[],ta=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)},ea=[],sa={name:"dictation",components:{AutoText:Rt},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=sa,oa=(s("7167"),Object(_["a"])(ia,ta,ea,!1,null,null,null)),aa=oa.exports;g()(oa,{VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var na=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)},ra=[],la=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)])])])},ca=[],da=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)},ha=[],ua={props:["logo"],data(){return{HOST:c["v"]}}},_a=ua,pa=s("6b53"),ga=Object(_["a"])(_a,da,ha,!1,null,null,null),ma=ga.exports;g()(ga,{VResponsive:pa["a"]});var ba={name:"flip",components:{AppLogo:T,AcademyLogo:ma},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}}},va=ba,fa=(s("fc8b"),Object(_["a"])(va,la,ca,!1,null,"4075ca86",null)),wa=fa.exports,ka={name:"wordbingo",components:{Flip:wa},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")}},xa=ka,ya=(s("4d37"),Object(_["a"])(xa,na,ra,!1,null,null,null)),Ca=ya.exports;g()(ya,{VRow:L["a"]});var $a=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),s("v-dialog",{attrs:{"max-width":t.is_mobile?320:400,transition:!1,"hide-overlay":"",persistent:""},on:{"click:outside":t.cancelDialog},model:{value:t.font_dialog,callback:function(e){t.font_dialog=e},expression:"font_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center title",class:[t.is_mobile?"py-2":"py-4"],staticStyle:{"background-color":"#404040"}},[s("v-row",[s("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[s("span",{staticClass:"white--text",domProps:{innerHTML:t._s(t.font_txt)}})])],1)],1)],1)],1)],1)},Sa=[],Ta=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)},Aa=[];const Ma=1.8,Da=2,Ia=1.6,Pa=1.8,Ra=8;var Na={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:Ma,font_std:Da,font_main:Ia,font_foot:Pa,sel_height:Ra,is_scoring:this.$store.getters.getIsScoring,is_wrong_term:!1,prevent_wrong_trem:!1,timeout:null,DEFAULT_TIME:c["l"],mdi_chevron_double_right:ft["r"]}},watch:{fontLevel(t,e){this.font_head=Ma*t,this.font_std=Da*t,this.font_main=Ia*t,this.font_foot=Pa*t,this.sel_height=Ra*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=Ma*this.fontLevel,this.font_std=Da*this.fontLevel,this.font_main=Ia*this.fontLevel,this.font_foot=Pa*this.fontLevel,this.sel_height=Ra*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(){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)}},Ea={name:"bank1",mixins:[Na],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()}},Ba=Ea,La=(s("8978"),s("f977")),Oa=Object(_["a"])(Ba,Ta,Aa,!1,null,null,null),za=Oa.exports;g()(Oa,{VBtn:D["a"],VIcon:xt["a"]}),Hs()(Oa,{Scroll:La["b"]});var Va=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)},qa=[],ja={name:"bank2",mixins:[Na],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=ht(this.rights),this.selections=ct(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}}}},Ya=Ka,Za=(s("4fbf"),Object(_["a"])(Ya,Wa,Ha,!1,null,null,null)),Ja=Za.exports;g()(Za,{VBtn:D["a"],VIcon:xt["a"]}),Hs()(Za,{Scroll:La["b"]});var Qa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank4 height-100"},[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"]})])]),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)},Xa=[],tn={name:"bank4",mixins:[Na],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=ht(this.rights),this.selections=ct(this.selections),this.setCreated()}},en=tn,sn=(s("1323"),Object(_["a"])(en,Qa,Xa,!1,null,null,null)),on=sn.exports;g()(sn,{VBtn:D["a"],VIcon:xt["a"]}),Hs()(sn,{Scroll:La["b"]});var an=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bank5 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:"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)},nn=[],rn={name:"bank5",mixins:[Na],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=ct(i),this.parsed_selections=this.selections.map(t=>this.replaceUnderline(t)),this.rights.push(this.resource.right),this.setCreated()}},ln=rn,cn=(s("2bae"),Object(_["a"])(ln,an,nn,!1,null,null,null)),dn=cn.exports;g()(cn,{VBtn:D["a"],VIcon:xt["a"]}),Hs()(cn,{Scroll:La["b"]});var hn=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)},un=[],_n={name:"bank6",mixins:[Na],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=ct(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}}}},pn=_n,gn=(s("e401"),Object(_["a"])(pn,hn,un,!1,null,null,null)),mn=gn.exports;g()(gn,{VBtn:D["a"],VIcon:xt["a"]}),Hs()(gn,{Scroll:La["b"]});var bn=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)},vn=[],fn={name:"bank7",mixins:[Na],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=ct(s),this.parsed_selections=this.selections.map(t=>this.replaceUnderline(t)),this.rights.push(this.resource.right),this.setCreated()}},wn=fn,kn=(s("6d13"),Object(_["a"])(wn,bn,vn,!1,null,null,null)),xn=kn.exports;g()(kn,{VBtn:D["a"],VIcon:xt["a"]}),Hs()(kn,{Scroll:La["b"]});const yn=.6,Cn=1.4;var $n={name:"bank-modules",props:["mode"],components:{Bank1:za,Bank2:Ua,Bank3:Ja,Bank4:on,Bank5:dn,Bank6:mn,Bank7:xn},directives:{Ripple:Ks["a"]},data(){return{fake_btn_show:!1,font_level:1,font_dialog:!1,font_txt:"",timeout:null,is_mobile:!1,mdi_chevron_double_right:ft["r"]}},computed:{setIconSize(){return this.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},methods:{callBankData(){let t=this.$store.state.current_book_id,e=this.$store.state.current_unit_id;this.$axios.get(`${c["v"]}/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=ct(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&&yn>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Cn<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1)),e+=' ';const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s]),e+=""}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)},cancelDialog(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)}},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")}},Sn=$n,Tn=(s("d0f4"),Object(_["a"])(Sn,$a,Sa,!1,null,null,null)),An=Tn.exports;g()(Tn,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VWindow:Es["a"],VWindowItem:Bs["a"]}),Hs()(Tn,{Ripple:Ks["b"]});var Mn=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)},Dn=[],In={name:"popquiz",components:{AutoText:Rt},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)}},Pn=In,Rn=(s("228f"),Object(_["a"])(Pn,Mn,Dn,!1,null,null,null)),Nn=Rn.exports;g()(Rn,{VBtn:D["a"],VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var En={name:"learning-study",props:["id"],mixins:[hi],components:{Listening:Mi,DictationWord:aa,WordBingo:Ca,BankModules:An,PopquizWord:Nn,OXDisplayer:uo,Keyboard:vo,TTSPlayer:oe,TTSAudio:Ct,Loading:rt},data(){return{LISTENING:c["z"],WORDBINGO:c["tb"],DICTATION:c["n"],WORD_INFERENCE:c["ub"],POPQUIZ:c["M"],BOOK_BANK:c["d"],BOOK_NORMAL:c["g"],BOOK_LISTENING:c["f"],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:ft["q"],mdi_chevron_double_right:ft["r"],mdi_chevron_right:ft["v"],mdi_check:ft["n"],mdi_chevron_right_circle_outline:ft["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},setUnderControlClass(){let t="";switch(this.$store.getters.getCurModule){case c["z"]:t="in-listening";break;case c["tb"]:t="in-wordbingo";break;case c["ub"]:t="in-bankmodules";break;case c["n"]: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)&&(c["z"]>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(`${c["v"]}/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(`${c["v"]}/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;if(t.idx!==this.next_module_idx)return!1;if(-1==t.idx)if(this.booktype_1==c["d"])-1==this.next_module_idx&&e&&(this.next_module_name="Report");else{if(![c["g"],c["f"]].includes(this.booktype_1))return!1;-1==this.next_module_idx&&e&&(this.next_module_name="Report")}else this.next_module_name=c["Bb"][this.next_module_idx],"문장찾기"==this.next_module_name&&(this.next_module_name="팝퀴즈");this.skip_dialog=!0},goSkip:function(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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("^"+c["z"]).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()}},Bn=En,Ln=Object(_["a"])(Bn,Qo,Xo,!1,null,null,null),On=Ln.exports;g()(Ln,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var zn=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("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)},Vn=[],qn=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},jn=[],Gn={name:"video-listening",components:{SentenceSheet:fi,WordSheet:$i,VideoPlayer:Ut},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()}},Fn=Gn,Un=(s("dc03"),Object(_["a"])(Fn,qn,jn,!1,null,null,null)),Wn=Un.exports;g()(Un,{VCol:R["a"],VRow:L["a"],VSwitch:se["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var Hn={name:"learning-study",props:["id"],mixins:[hi],components:{VideoListening:Wn,Listening:Mi,Matching:Ei,Popquiz:Xi,WritingK:Eo,WritingKMobile:qo,Speaking:Ho,OXDisplayer:uo,TTSPlayer:oe,TTSAudio:Ct,Loading:rt},data(){return{LISTENING:c["z"],MATCHING:c["C"],POPQUIZ:c["M"],WRITING_K:c["wb"],SPEAKING:c["U"],moduleKorname:c["Bb"],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:ft["q"],mdi_chevron_double_right:ft["r"],mdi_chevron_right:ft["v"],mdi_check:ft["n"],mdi_chevron_right_circle_outline:ft["x"]}},computed:{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 c["z"]:t="in-listening";break;case c["C"]:t="in-matching";break;case c["M"]:t="in-popquiz";break;case c["wb"]:t="in-writing-k";break;case c["U"]: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)&&(c["z"]>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(`${c["v"]}/v1/book/getsentenceunitone/${i}`),o={data:[]};else{if(1==this.$store.state.book.schedule_type_v)t=await this.$axios.get(`${c["v"]}/v1/book/getsentencelimited/${e}?schedule_id=${this.$store.state.book.schedule_id}&type=${c["A"]}&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(`${c["v"]}/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.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("initStep").then(()=>{this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getModule)})})})})})})}catch(o){window.console.error(o)}},skipModule(t,e){return!this.$store.state.ox_show&&(0!=this.is_skip&&(null!==this.getModule&&(this.next_module_idx=this.$store.getters.getNextModule,null!==this.next_module_idx&&(t.idx===this.next_module_idx&&(-1==t.idx?this.next_module_name="Report":this.next_module_name=this.moduleKorname[+this.next_module_idx],void(this.skip_dialog=!0))))))},goSkip(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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()}},Kn=Hn,Yn=Object(_["a"])(Kn,zn,Vn,!1,null,null,null),Zn=Yn.exports;g()(Yn,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var Jn=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&&sr<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1)),e+=' ';const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s]),e+=""}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3),this.setFontSize(),this.setQuestionSize("")},cancelDialog:function(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)},setFontSize:function(){this.font_head=ir*this.font_level,this.font_main=or*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=gt(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.timeout&&window.clearTimeout(this.timeout),this.unwatch1&&this.unwatch1(),this.unwatch2&&this.unwatch2()}},nr=ar,rr=(s("3c12"),Object(_["a"])(nr,Xn,tr,!1,null,null,null)),lr=rr.exports;g()(rr,{VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]}),Hs()(rr,{Ripple:Ks["b"]});var cr,dr,hr={name:"learning-study",props:["id"],mixins:[hi],components:{BankModules:An,DictationAdvanced:lr,Keyboard:vo,OXDisplayer:uo,Loading:rt},data(){return{DICTATION:c["n"],PARAGRAPH_ORDER:c["L"],READING_QUIZ:c["P"],GRAMMER_QUIZ:c["u"],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:ft["r"],mdi_chevron_right:ft["v"],mdi_check:ft["n"],mdi_chevron_right_circle_outline:ft["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(`${c["v"]}/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(`${c["v"]}/v1/book/getsentenceunitone/${i}`).then(e=>{let s=e.data;s=ct(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){return!this.$store.state.ox_show&&(0!=this.is_skip&&(null!==this.getCurModule&&(this.next_module_idx=this.$store.getters.getNextModule,null!==this.next_module_idx&&(t.idx===this.next_module_idx&&(c["n"]===this.next_module_idx?this.next_module_name="빈칸추론":-1==t.idx?this.next_module_name="Report":this.next_module_name=c["Bb"][this.next_module_idx],void(this.skip_dialog=!0))))))},goSkip:function(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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()}},ur=hr,_r=Object(_["a"])(ur,Jn,Qn,!1,null,null,null),pr=_r.exports;g()(_r,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var gr={},mr=Object(_["a"])(gr,cr,dr,!1,null,null,null),br=mr.exports,vr=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},fr=[],wr=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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:"11vh",width:"11vh",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:"11vh",width:"11vh",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",{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:"11vh",width:"11vh",contain:"",src:s("a383"),"lazy-src":s("a383"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[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:"11vh",width:"11vh",contain:"",src:s("3868"),"lazy-src":s("3868"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[t._v("\n 오답 문항\n ")]),i("h3",{staticClass:"black--text title"},[t._v(t._s(t.wrongcnt)+"개")])],1)]),i("v-col",{staticClass:"col-center py-0 before-divider",staticStyle:{height:"100%"},attrs:{cols:"3"}},[i("div",[i("v-img",{attrs:{height:"11vh",width:"11vh",contain:"",src:s("6502"),"lazy-src":s("6502"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[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:"11vh",width:"11vh",contain:"",src:s("185c"),"lazy-src":s("185c"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[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+"_skip"]?[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)]:[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()]}))]],2)],1)],1)}))],2)],2),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":t.cancelPocketDialog},model:{value:t.pocket_dialog,callback:function(e){t.pocket_dialog=e},expression:"pocket_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("span",{staticClass:"black--text"},[t._v("포켓노트")]),i("span",{domProps:{textContent:t._s(t.pocket_text)}}),t._v("되었습니다.\n ")])],1)],1)],1)],1)],1)},kr=[],xr=s("c8b4"),yr=xr["a"],Cr=(s("d967"),Object(_["a"])(yr,wr,kr,!1,null,null,null)),$r=Cr.exports;g()(Cr,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VContainer:N["a"],VDialog:E["a"],VIcon:xt["a"],VImg:vs["a"],VList:fs["a"],VListItem:ws["a"],VListItemContent:ks["a"],VListItemGroup:xs["a"],VListItemTitle:ks["b"],VProgressCircular:ys["a"],VRow:L["a"],VTab:Ve["a"],VTabItem:qe["a"],VTabs:je["a"],VTabsItems:Ge["a"]});var Sr={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:ds["a"],ResultList:$r,Loading:rt},data(){return{STUDY_RESULT:c["ab"]+c["Q"],TEST_RESULT:c["gb"]+c["Q"],VOCA_RESULT:c["ob"]+c["Q"],MAJOR_RESULT:c["A"]+c["Q"],ADVANCED_RESULT:c["a"]+c["Q"],VOCA_MAJOR_RESULT:c["rb"]+c["Q"],VOCA_ADVANCED_RESULT:c["pb"]+c["Q"],BOOK_BANK:c["d"],BOOK_NORMAL:c["g"],BOOK_VOCA:c["i"],BOOK_LISTENING:c["f"],GRAMMAR_THEORY_RESULT:c["t"]+c["Q"],GRAMMAR_BASICS_RESULT:c["r"]+c["Q"],GRAMMAR_DEEP_RESULT:c["s"]+c["Q"],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:ft["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!=c["i"]&&(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=ht(this.$store.state.book),e=ht(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 c["g"]:case c["f"]:console.log("여기",s,c["ob"]),s===c["ob"]?(n=c["ab"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===c["ab"]&&(n=c["gb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;case c["i"]:s===c["rb"]&&(n=c["pb"],e.major_cnt=+e.major_cnt+1,l=e.major_cnt);break;case c["d"]:s===c["ob"]?(n=c["A"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===c["A"]&&(n=c["a"],e.major_cnt=+e.major_cnt+1,l=e.major_cnt);break;case c["e"]:s===c["t"]?(n=c["r"],e.grammar_theory_cnt=+e.grammar_theory_cnt+1,l=e.grammar_theory_cnt):s===c["r"]&&(n=c["s"],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 c["g"]:case c["f"]:s===c["ob"]?(n=c["ab"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===c["ab"]&&(n=c["gb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;case c["d"]:s===c["ob"]?(n=c["A"],e.voca_cnt=+e.voca_cnt+1,l=e.voca_cnt):s===c["A"]&&(n=c["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 c["g"]:case c["f"]:s===c["ab"]&&(n=c["gb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;case c["i"]:s===c["rb"]&&(n=c["pb"],e.major_cnt=+e.major_cnt+1,l=e.major_cnt);break;case c["d"]:s===c["ab"]&&(n=c["gb"],e.study_cnt=+e.study_cnt+1,l=e.study_cnt);break;default:break}console.log("next_type",n);let d="";switch(n){case c["ab"]: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 c["gb"]: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 c["ob"]:case c["A"]:case c["rb"]:case c["a"]:case c["pb"]:let t=o==c["i"]?5:0;switch(n){case c["ob"]:d="voca_status";break;case c["A"]:case c["rb"]:d="major_status";break;case c["a"]:case c["pb"]:d="advanced_status";break;default:}if(this.is_restudy>0&&l>2?(this.clickSound(),r=12+t,this.setDialogVMA(n)):n!=c["a"]&&n!=c["pb"]||(null==e.major_pk||Number(e.major_cnt)<1)&&(this.exitSound(),r=11+t,this.setDialogVMA(n)),null==r)switch(e[d]){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 c["r"]:case c["s"]:switch(n===c["r"]?d="basics_status":n===c["s"]&&(d="deep_status"),e[d]){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,c["ab"],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,c["gb"],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,c["A"],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,c["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,c["pb"],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==c["d"]?this.goMajor({clear:!1}):this.booktype_1!=c["g"]&&this.booktype_1!=c["f"]||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:c["r"]});break;case this.GRAMMAR_BASICS_RESULT:this.goStudyGRAMMAR({clear:!1,type:c["s"]});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);if("coursebook"==this.$route.name&&(i=1),0===e)switch(i){case 1:case 4:switch(s){case c["g"]:case c["f"]:4!=i||+this.$store.state.unit.words_cnt?t===c["ob"]?(this.leftbar_btn_1_cls="success",4==i?this.leftbar_btn_1="본문학습":1==i&&s==c["f"]?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===c["ab"]?(this.leftbar_btn_2_cls="success",4==i?this.leftbar_btn_2="본문완료":1==i&&s===c["f"]?this.leftbar_btn_2="지문완료":this.leftbar_btn_2="문장완료",(c["f"]!=s||"listeningbook"==this.$route.name&&s===c["f"])&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="심화학습",this.dialog_content=this.leftbar_btn_1+"을")):t===c["gb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료"):t===c["ab"]?(this.leftbar_btn_2_cls="success",this.leftbar_btn_2="학습완료",c["f"]!=s&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="시험보기",this.dialog_content=this.leftbar_btn_1+"를")):t===c["gb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case c["i"]:t===c["rb"]?(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===c["pb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case c["d"]:t===c["ob"]?(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===c["A"]?(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===c["a"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료");break;case c["e"]:t===c["t"]?(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===c["r"]?(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===c["s"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료");break;default:break}break;case 2:case 3:case 10:switch(s){case c["g"]:case c["f"]:t===c["ob"]?(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===c["ab"]?(this.leftbar_btn_2_cls="success",this.leftbar_btn_2=3==i?"지문완료":"본문완료",(c["f"]!=s||c["f"]==s&&"listeningbook"==this.$route.name)&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="심화학습",this.dialog_content=this.leftbar_btn_1+"을")):t===c["gb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="심화완료");break;case c["d"]:t===c["ob"]?(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===c["A"]?(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===c["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!==c["i"])this.leftbar_btn_1_cls=null,this.leftbar_btn_1=null,this.leftbar_btn_2="학습완료",[c["ab"],c["A"],c["rb"]].includes(t)?this.leftbar_btn_2_cls="success":c["ob"]===t?this.leftbar_btn_2_cls="warning":this.leftbar_btn_2_cls="info2";else switch(s){case c["g"]:case c["f"]:t===c["ab"]?(this.leftbar_btn_2_cls="success",this.leftbar_btn_2="학습완료",c["f"]!=s&&(this.leftbar_btn_1_cls="info2",this.leftbar_btn_1="시험보기",this.dialog_content=this.leftbar_btn_1+"를")):t===c["gb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case c["i"]:t===c["rb"]?(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===c["pb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;case c["d"]:t===c["ab"]?(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===c["gb"]&&(this.leftbar_btn_2_cls="info2",this.leftbar_btn_2="시험완료");break;default:break}this.tab>=7&&(this.leftbar_btn_2="목록")}}},Tr=Sr,Ar=(s("3e07"),Object(_["a"])(Tr,vr,fr,!1,null,null,null)),Mr=Ar.exports;g()(Ar,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VSheet:re["a"],VSwitch:se["a"]});var Dr=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)},Ir=[],Pr=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)},Rr=[],Nr={name:"listening",components:{SentenceSheet:fi,WordSheet:$i},computed:{flashShow:function(){return this.$store.getters.getFlashShow}},methods:{checkSentence:function(t){return null!==t.sentences_id&&null===t.words_id}},created(){}},Er=Nr,Br=(s("5681"),Object(_["a"])(Er,Pr,Rr,!1,null,null,null)),Lr=Br.exports;g()(Br,{VWindow:Es["a"],VWindowItem:Bs["a"]});var Or={name:"flashcard-study",components:{FlashListening:Lr,TTSPlayer:oe,TTSAudio:Ct,Loading:rt},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:ft["v"],mdi_chevron_left:ft["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",c["z"])})})})})}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=ht(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()}},zr=Or,Vr=(s("95a9"),Object(_["a"])(zr,Dr,Ir,!1,null,null,null)),qr=Vr.exports;g()(Vr,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VTextField:O["a"]});var jr=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(),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"}]}),s("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,"hide-overlay":"",persistent:""},on:{"click:outside":t.cancelDialog},model:{value:t.font_dialog,callback:function(e){t.font_dialog=e},expression:"font_dialog"}},[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",domProps:{innerHTML:t._s(t.font_txt)}})])],1)],1)],1)],1)],2)},Gr=[],Fr=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)},Ur=[],Wr={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()}},Hr=Wr,Kr=(s("552f"),Object(_["a"])(Hr,Fr,Ur,!1,null,null,null)),Yr=Kr.exports;g()(Kr,{VCol:R["a"],VRow:L["a"]});const Zr=.6,Jr=1.4;var Qr={name:"shadowreading-index",components:{AllListening:Yr,TTSPlayer:oe,TTSAudio:Ct,Loading:rt,VideoListening:Wn},data(){return{is_mobile:!1,is_ready:!1,sentences:[],show_eng:!0,show_kor:!0,font_level:1,font_dialog:!1,font_txt:"",timeout:null,spacekey:!1,going:!1,contentType:"text",cardMaxHeight:null,mdiChevronDoubleLeft:ft["q"],mdiChevronDoubleRight:ft["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:{showLoading(){return this.$store.state.loading_percent>0},getNextDisabled(){return this.$store.getters.getNextDisabled},isSynthesia(){return this.$store.getters.isSynthesia}},methods:{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(`${c["v"]}/v1/book/getsentenceunitone/${i}`);else if(1==this.$store.state.book.schedule_type_v){let s=c["ab"];this.$store.state.book.booktype_1==c["d"]&&(s=c["A"]),t=await this.$axios.get(`${c["v"]}/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(`${c["v"]}/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",c["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&&Zr>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Jr<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1)),e+=' ';const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s]),e+=""}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)},cancelDialog(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)},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()}},Xr=Qr,tl=(s("91f9"),Object(_["a"])(Xr,jr,Gr,!1,null,null,null)),el=tl.exports;g()(tl,{VBtn:D["a"],VBtnToggle:Gs["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"]}),Hs()(tl,{Ripple:Ks["b"]});var sl=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),i("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,"hide-overlay":"",persistent:""},on:{"click:outside":t.cancelDialog},model:{value:t.font_dialog,callback:function(e){t.font_dialog=e},expression:"font_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.font_txt)}})])],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}},[t._m(0)])]):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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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:"11vh",width:"11vh",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:"11vh",width:"11vh",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",{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:"11vh",width:"11vh",contain:"",src:s("a383"),"lazy-src":s("a383"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[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:"11vh",width:"11vh",contain:"",src:s("3868"),"lazy-src":s("3868"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[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:"11vh",width:"11vh",contain:"",src:s("6502"),"lazy-src":s("6502"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[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:"11vh",width:"11vh",contain:"",src:s("185c"),"lazy-src":s("185c"),transition:!1}}),i("p",{staticClass:"grey--text text--darken-1 mb-0 mt-1"},[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=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex align-center justify-center"},[s("b",[t._v("제출")])])}],ol=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)},al=[],nl={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()}},rl=nl,ll=(s("1751"),Object(_["a"])(rl,ol,al,!1,null,null,null)),cl=ll.exports;window.setTimeout1=null,window.setTimeout2=null,window.setTimeout3=null,window.setInterval1=null,window.setInterval2=null,window.setInterval3=null;var dl={name:"mock-exam",props:["updateSingleMockExamUnit"],components:{VerticalStepper:cl,IconSoundWave:Xt,Loading:rt,LeftBarStatic:ds["a"],IconReportO:_s["a"],IconReportX:ps["a"]},data(){return{HOST:c["v"],NAS_HOST:c["G"],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_dialog:!1,font_level:80,font_txt:"",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,mdi_chevron_double_right:ft["r"],mdi_close:ft["B"],mdi_chevron_right:ft["v"],mdi_arrow_collapse:ft["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.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(`${c["v"]}/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.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=`${c["G"]}/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(`${c["v"]}/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=.9*r,this.circle_width=.9*Math.round(r/9),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;window.setInterval2=window.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&&(window.clearInterval(window.setInterval2),window.setInterval2=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)),e+=' ',s){case 70:e+=" (작게)";break;case 75:e+=" (조금 작게)";break;case 80:e+=" (기본)";break;case 85:e+=" (조금 크게)";break;case 90:e+=" (크게)";break;default:}e+=""}this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)},cancelDialog(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)},setSizeFit(){if(this.dialog)return;this.resize_on=!this.resize_on;let t=this.resize_on?"지문 전체보기로 설정하였습니다.":"지문 전체보기를 해제하였습니다.";this.font_txt=t,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)}},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),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(){this.$destroy()}},hl=dl,ul=(s("4337"),Object(_["a"])(hl,sl,il,!1,null,null,null)),_l=ul.exports;g()(ul,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VContainer:N["a"],VDialog:E["a"],VIcon:xt["a"],VImg:vs["a"],VList:fs["a"],VListItem:ws["a"],VListItemContent:ks["a"],VListItemGroup:xs["a"],VProgressCircular:ys["a"],VRow:L["a"],VSheet:re["a"],VTab:Ve["a"],VTabItem:qe["a"],VTabs:je["a"],VTabsItems:Ge["a"]}),Hs()(ul,{Ripple:Ks["b"]});var pl=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.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)}}),["GT_2","GB_3","GD_2"].includes(t.next_module_idx)?[t._v("으로")]:[t._v("로")],t._v("\n 넘어가시겠습니까?\n ")],2)]],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),s("v-dialog",{attrs:{"max-width":t.is_mobile?320:400,transition:!1,"hide-overlay":"",persistent:""},on:{"click:outside":t.cancelDialog},model:{value:t.font_dialog,callback:function(e){t.font_dialog=e},expression:"font_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center title",class:[t.is_mobile?"py-2":"py-4"],staticStyle:{"background-color":"#404040"}},[s("v-row",[s("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[s("span",{staticClass:"white--text",domProps:{innerHTML:t._s(t.font_txt)}})])],1)],1)],1)],1)],2)},gl=[],ml=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)},bl=[];const vl=1.8,fl=2,wl=1.6,kl=1.8,xl=49.5,yl=8;var Cl={name:"grammarmixin",props:["resource","nextclicked","fontLevel"],data(){return{font_head:vl,font_std:fl,font_main:wl,font_foot:kl,sel_height:yl,img_width:xl}},created(){this.setCreated()},mounted(){},watch:{fontLevel:function(t,e){this.font_head=vl*t,this.font_std=fl*t,this.font_main=wl*t,this.font_foot=kl*t,this.sel_height=yl*t,this.setImageWidth(t),this.setInputSize(t)}},computed:{},methods:{setCreated:function(){this.font_head=vl*this.fontLevel,this.font_std=fl*this.fontLevel,this.font_main=wl*this.fontLevel,this.font_foot=kl*this.fontLevel,this.sel_height=yl*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()}},Sl=$l,Tl=(s("b38b"),Object(_["a"])(Sl,ml,bl,!1,null,null,null)),Al=Tl.exports;g()(Tl,{VBtn:D["a"],VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var Ml=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+.5)+"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+.5)+"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 ")])])},Dl=[];const Il=["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 Pl={name:"grammar_writing_k",mixins:[Cl],props:["sub_unit","gkey"],data(){return{NG_CDN:c["H"],NODE_ENV:c["I"],VOCA_ADVANCED:c["pb"],contents:[],os_mode:0,hint_term: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:ft["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{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:{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(Il.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()},keydownKeyboardInput:function(t){if(console.log("keydownKeyboardInput",this.cur_question_txt),222===t.keyCode&&(t.target.value=t.target.value.replace(/‘|’/g,"'")),t.defaultPrevented)return;if(t.repeat)return void t.preventDefault();this.show_hint&&(this.show_hint=!1);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):Il.includes(t.key)?(this.$store.dispatch("soundEffectPlay","dicbtn"),this.input_val=this.cur_input.value.replace(/‘/g,"'"),!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();this.show_hint&&(this.show_hint=!1);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):Il.includes(t.key)?(this.$store.dispatch("soundEffectPlay","dicbtn"),this.input_val=t.target.value,!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.$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}},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.$store.dispatch("processNext")),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.$store.dispatch("processNext")),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(t){t-=1,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(t),this.disable_timeout=!1,this.$store.state.is_mobile||document.addEventListener("click",this.delegateFocus)},this.hint_term)},timeoutFirst:function(t){if(this.cur_input=document.getElementById("wki-"+this.$store.state.current_step),this.cur_input&&(0===this.sa_type&&!this.sa_rightanswer&&this.contents&&(this.sa_rightanswer=this.contents[this.$store.state.current_step].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(){console.log("Created Grammar SA");new RegExp(/\{\{.+?\}\}/gi);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==c["gb"]?c["hb"]:c["B"],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(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.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})},500)},beforeDestroy(){console.log("--- GrammarSA 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:{"$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(t)},"$store.state.loading_percent"(t){0==t&&(console.log("Watch $store.state.loading_percent",t),this.setFirst(this.$store.getters.getCurrentStep))}},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){let s=t.target.value;t.target.value=t.target.value.replace(/‘|’/g,"'");let i=Array.from(s);console.log(i.length,this.char_limit),i.length>this.char_limit&&(t.target.value=i.splice(0,this.char_limit).join("")),console.log("touchKeyboard",s),this.$store.commit("updateGrammarAnswerMobile",s)},touchKeyboard0(t,e){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 e=document.getElementById("wki-"+t);e&&!this.contents[t].img&&e.focus()}else if(2===+this.$store.state.grammar_sa_type){let e=document.getElementsByClassName("sa_input");e&&e.length>0&&!this.contents[t].img&&e[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){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(t),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,s=this.contents[e];if(this.mobile_focus=!0,this.is_ios)return;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;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)}},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.$store.state.is_mobile||(document.removeEventListener("click",this.delegateFocus),this.unwatch3())},destroyed(){console.log("::GrammarSaMobile destroyed::"),this.$destroy()}},zl=Ol,Vl=(s("358d"),Object(_["a"])(zl,Bl,Ll,!1,null,null,null)),ql=Vl.exports;g()(Vl,{VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var jl=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)},Gl=[],Fl={name:"grammar_cab",mixins:[Cl],props:["sub_unit"],data(){return{NG_CDN:c["H"],NODE_ENV:c["I"],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})}}},Ul=Fl,Wl=Object(_["a"])(Ul,jl,Gl,!1,null,null,null),Hl=Wl.exports;g()(Wl,{VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var Kl=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)}))],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 ")])})),1)],1)])],1)],1):t._e()],1)})),1)},Yl=[],Zl={name:"grammar-matching",components:{AutoText:Rt},mixins:[Cl],props:["sub_unit"],data(){return{NG_CDN:c["H"],NODE_ENV:c["I"],is_ios:!1}},created(){},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.$store.commit("subGrammarMatchingSelect",{word:e,key:s})}}},Jl=Zl,Ql=(s("26b8"),Object(_["a"])(Jl,Kl,Yl,!1,null,null,null)),Xl=Ql.exports;g()(Ql,{VChip:pe["a"],VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var tc=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),s("v-dialog",{attrs:{"max-width":t.is_mobile?320:400,transition:!1,"hide-overlay":"",persistent:""},on:{"click:outside":t.cancelDialog},model:{value:t.font_dialog,callback:function(e){t.font_dialog=e},expression:"font_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center title",class:[t.is_mobile?"py-2":"py-4"],staticStyle:{"background-color":"#404040"}},[s("v-row",[s("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[s("span",{staticClass:"white--text",domProps:{innerHTML:t._s(t.font_txt)}})])],1)],1)],1)],1)],1)])},ec=[],sc=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 oc=1.8,ac=2,nc=1.6,rc=1.8,lc=8;var cc={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:oc,font_std:ac,font_main:nc,font_foot:rc,sel_height:lc,is_scoring:this.$store.getters.getIsScoring,is_wrong_term:!1,prevent_wrong_trem:!1,timeout:null,DEFAULT_TIME:c["l"],mdi_chevron_double_right:ft["r"]}},watch:{fontLevel(t,e){this.font_head=oc*t,this.font_std=ac*t,this.font_main=nc*t,this.font_foot=rc*t,this.sel_height=lc*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=oc*this.fontLevel,this.font_std=ac*this.fontLevel,this.font_main=nc*this.fontLevel,this.font_foot=rc*this.fontLevel,this.sel_height=lc*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(){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()}},dc={name:"bank1",mixins:[cc],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}}}},hc=dc,uc=(s("84f5"),Object(_["a"])(hc,sc,ic,!1,null,null,null)),_c=uc.exports;g()(uc,{VBtn:D["a"],VIcon:xt["a"]}),Hs()(uc,{Scroll:La["b"]});var pc=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bank5 height-100",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"}},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",style:"top:calc("+t.sel_height/2+"vh - 1rem);"},[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)},gc=[],mc={name:"bank5",mixins:[cc],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=ct(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=ht(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}}}},bc=mc,vc=(s("9c56"),Object(_["a"])(bc,pc,gc,!1,null,null,null)),fc=vc.exports;g()(vc,{VBtn:D["a"],VCol:R["a"],VIcon:xt["a"],VRow:L["a"]}),Hs()(vc,{Scroll:La["b"]});var wc=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 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.resource.rightanswer.length+7)+"vw; visibility: "+(t.$store.state.ox_show?"hidden":"visible")+";",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?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?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?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)]),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)},kc=[];const xc=["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 yc={name:"bankSa",mixins:[cc],components:{AutoText:Rt},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}},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=xc.findIndex(t=>" "===t);if(-1!==e&&xc.splice(e,1),0===this.sa_type)xc.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.$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.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(xc.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){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){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++}}}}},Cc=yc,$c=(s("e8e2"),Object(_["a"])(Cc,wc,kc,!1,null,null,null)),Sc=$c.exports;g()($c,{VBtn:D["a"],VIcon:xt["a"],VRow:L["a"]}),Hs()($c,{Scroll:La["b"]});var Tc=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)},Ac=[],Mc={name:"bankSc",mixins:[cc],components:{AutoText:Rt},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=ct(this.rightanswer.split(" ")):this.split_example=ct(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=ht(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}}}},Dc=Mc,Ic=(s("bbe8"),Object(_["a"])(Dc,Tc,Ac,!1,null,null,null)),Pc=Ic.exports;g()(Ic,{VBtn:D["a"],VChip:pe["a"],VCol:R["a"],VIcon:xt["a"],VRow:L["a"]});const Rc=.6,Nc=1.4;var Ec={name:"learning-study",components:{Bank1:_c,Bank5:fc,BankSa:Sc,BankSc:Pc},directives:{Ripple:Ks["a"]},data(){return{fake_btn_show:!1,font_level:1,font_dialog:!1,font_txt:"",timeout:null,is_mobile:!1,mdiChevronDoubleRight:ft["r"]}},created(){},mounted(){},watch:{},computed:{setIconSize:function(){return this.$store.state.screen_width.fontRemToPx(5.4).toFixed(2)}},methods:{setSize:function(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.$store.state.bank_font_level;if(t<0&&Rc>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Nc<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1)),e+=' ';const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s]),e+=""}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)},cancelDialog:function(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)},nextClicked:function(t){this.fake_btn_show=t}},beforeDestroy(){}},Bc=Ec,Lc=(s("842b"),Object(_["a"])(Bc,tc,ec,!1,null,null,null)),Oc=Lc.exports;g()(Lc,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VWindow:Es["a"],VWindowItem:Bs["a"]}),Hs()(Lc,{Ripple:Ks["b"]});const zc=.6,Vc=1.4,qc=1.8;var jc={name:"learning-study",props:["id"],mixins:[hi],components:{OXDisplayer:uo,Loading:rt,GrammarMc:Al,GrammarSa:El,GrammarSaMobile:ql,GrammarCab:Hl,GrammarSc:Xl,GrammarReview:Oc},data(){return{HOST:c["v"],LISTENING:c["z"],WORDBINGO:c["tb"],DICTATION:c["n"],WORD_INFERENCE:c["ub"],POPQUIZ:c["M"],BOOK_BANK:c["d"],BOOK_NORMAL:c["g"],BOOK_LISTENING:c["f"],basicGrammarBooks:c["yb"],middleGrammarBooks:c["zb"],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:ft["q"],mdi_chevron_double_right:ft["r"],mdi_chevron_right:ft["v"],mdi_check:ft["n"],mdi_chevron_right_circle_outline:ft["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:qc,font_level:1,font_dialog:!1,font_txt:"",arrowColor:"grey",action_count:0}},watch:{cardkey(t){console.log("cardkey",t)}},computed:{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 c["z"]:t="in-listening";break;case c["tb"]:t="in-wordbingo";break;case c["ub"]:t="in-bankmodules";break;case c["n"]: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("^"+c["z"]).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:{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(c["yb"].includes(n)&&r%3===0&&"GD_1"==e||c["zb"].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(`${c["v"]}/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;if(t.idx!==this.next_module_idx)return!1;if(-1===t.idx)this.next_module_name="Report";else if("GT_1"==this.next_module_idx)this.next_module_name="단어점검";else if("GT_2"==this.next_module_idx)this.next_module_name="이론점검";else if(["GB_1","GB_2","GB_3","GB_4"].includes(this.next_module_idx)){let t=this.next_module_idx.split("_")[1];this.next_module_name="기본학습"+t}else if(["GD_1","GD_2","GD_3"].includes(this.next_module_idx)){let t=this.next_module_idx.split("_")[1];this.next_module_name="심화학습"+t}this.skip_dialog=!0},goSkip(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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,unit_seq:s.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;c["yb"].includes(s)&&i%3===0||c["zb"].includes(s)&&o.match("Review")||c["zb"].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&&zc>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&Vc<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1)),e+=' ';const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s]),e+=""}this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)},cancelDialog(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)},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()}},Gc=jc,Fc=(s("deba"),Object(_["a"])(Gc,pl,gl,!1,null,null,null)),Uc=Fc.exports;g()(Fc,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]}),Hs()(Fc,{Ripple:Ks["b"]});var Wc=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("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)},Hc=[],Kc={name:"learning-study",props:["id"],mixins:[hi],components:{Listening:Mi,WordBingo:Ca,DictationWord:aa,PopquizWord:Nn,OXDisplayer:uo,Keyboard:vo,TTSPlayer:oe,TTSAudio:Ct,Loading:rt},data(){return{LISTENING:c["z"],WORDBINGO:c["tb"],DICTATION:c["n"],POPQUIZ:c["M"],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:ft["q"],mdi_chevron_double_right:ft["r"],mdi_chevron_right:ft["v"],mdi_check:ft["n"],mdi_chevron_right_circle_outline:ft["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("^"+c["z"]).test(this.$store.state.unit.v_mod)&&!a&&this.$store.dispatch("setUnitRecordEmpty"),this.$store.state.is_mobile&&(this.is_mobile=!0)},computed:{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 c["z"]:t="in-listening";break;case c["tb"]:t="in-wordbingo";break;case c["n"]:t="in-dictation";break;case c["M"]: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)&&(c["z"]>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(`${c["v"]}/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(`${c["v"]}/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){return!this.$store.state.ox_show&&(0!=this.is_skip&&(null!==this.getCurModule&&(this.next_module_idx=this.$store.getters.getNextModule,null!==this.next_module_idx&&(t.idx===this.next_module_idx&&(-1===t.idx?this.next_module_name="Report":(this.next_module_name=c["Bb"][this.next_module_idx],"문장찾기"==this.next_module_name&&(this.next_module_name="팝퀴즈")),void(this.skip_dialog=!0))))))},goSkip(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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()}},Yc=Kc,Zc=Object(_["a"])(Yc,Wc,Hc,!1,null,null,null),Jc=Zc.exports;g()(Zc,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var Qc=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("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)},Xc=[],td=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("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"height-inherit pt-0 pb-0 d-flex justify-center align-center",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[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)],1),s("v-row",{staticClass:"ma-0"},[s("v-col",{staticClass:"height-inherit pt-0 pb-0 d-flex",attrs:{cols:"12",sm:"12",md:"12",lg:"12"}},[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"},[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)],1)],1):t._e()],1)})),t.is_mobile?s("speech-recognition",{attrs:{prompt:t.setNextPrompt2}}):s("webkit-speech-recognition",{attrs:{sentence:t.setNextPrompt}})],2)},ed=[],sd={name:"speaking",components:{SpeechRecognition:Ue,WebkitSpeechRecognition:is,AutoText:Rt},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=sd,od=(s("e9c5"),Object(_["a"])(id,td,ed,!1,null,null,null)),ad=od.exports;g()(od,{VCol:R["a"],VRow:L["a"],VSheet:re["a"],VWindow:Es["a"],VWindowItem:Bs["a"]});var nd={name:"learning-study",props:["id"],mixins:[hi],components:{Listening:Mi,DictationWord:aa,SpeakingWord:ad,WritingK:Eo,WritingKMobile:qo,OXDisplayer:uo,Keyboard:vo,TTSPlayer:oe,TTSAudio:Ct,Loading:rt},data(){return{LISTENING:c["z"],DICTATION:c["n"],SPEAKING:c["U"],WRITING_K:c["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_seq:0,next_module_name:"",mdi_chevron_double_left:ft["q"],mdi_chevron_double_right:ft["r"],mdi_chevron_right:ft["v"],mdi_check:ft["n"],mdi_chevron_right_circle_outline:ft["x"]}},computed:{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 c["z"]:t="in-listening";break;case c["n"]:t="in-dictation";break;case c["U"]:t="in-speaking";break;case c["wb"]: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)&&(c["z"]>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(`${c["v"]}/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(`${c["v"]}/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){return!this.$store.state.ox_show&&(0!=this.is_skip&&(null!==this.getCurModule&&(this.next_module_idx=this.$store.getters.getNextModule,null!==this.next_module_idx&&(t.idx===this.next_module_idx&&(-1===t.idx?this.next_module_name="Report":(this.next_module_name=c["Bb"][this.next_module_idx],"영작하기"==this.next_module_name&&(this.next_module_name="라이팅")),void(this.skip_dialog=!0))))))},goSkip(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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("^"+c["z"]).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()}},rd=nd,ld=Object(_["a"])(rd,Qc,Xc,!1,null,null,null),cd=ld.exports;g()(ld,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var dd=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.seqthis.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)}}},bd=md,vd=(s("9299"),Object(_["a"])(bd,ud,_d,!1,null,null,null)),fd=vd.exports,wd=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),s("v-dialog",{attrs:{"max-width":t.is_mobile?320:400,transition:!1,"hide-overlay":"",persistent:""},on:{"click:outside":t.cancelDialog},model:{value:t.font_dialog,callback:function(e){t.font_dialog=e},expression:"font_dialog"}},[s("v-card",[s("v-card-text",{staticClass:"text-center title",class:[t.is_mobile?"py-2":"py-4"],staticStyle:{"background-color":"#404040"}},[s("v-row",[s("v-col",{staticClass:"text-center",attrs:{cols:"12"}},[s("span",{staticClass:"white--text",domProps:{innerHTML:t._s(t.font_txt)}})])],1)],1)],1)],1)],1)},kd=[];const xd=.6,yd=1.4;var Cd={name:"StoryAdvanced",components:{Bank1:_c,Bank5:fc,BankSa:Sc,BankSc:Pc,Bank3:Ja,Bank6:mn},data(){return{font_level:1,fake_btn_show:!1,mdiChevronDoubleRight:ft["r"],font_txt:"",font_dialog:!1,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:{setSize(t){let e;this.$store.dispatch("soundEffectPlay","click");let s=this.$store.state.bank_font_level;if(console.log(t,s),t<0&&xd>=s)e="가장 작은 글씨 크기입니다.";else if(t>0&&yd<=s)e="가장 큰 글씨 크기입니다.";else{e=t>0?"글씨 크기가 커졌습니다.":"글씨 크기가 작아졌습니다.",s=Number((s+t).toFixed(1)),e+=' ';const i={.6:" (작게)",.8:" (조금 작게)",1:" (기본)",1.2:" (조금 크게)",1.4:" (크게)"};i[s]&&(e+=i[s]),e+=""}this.$store.commit("updateBankFontLevel",s),this.font_level=s,this.font_txt=e,this.font_dialog=!0,this.timeout=window.setTimeout(()=>{this.font_dialog=!1},2e3)},cancelDialog(){this.font_dialog=!1,this.timeout&&window.clearTimeout(this.timeout)},nextClicked(t){this.fake_btn_show=t}},beforeDestroy(){this.$store.commit("destroyModules")},destroyed(){this.$destroy()}},$d=Cd,Sd=(s("ef48"),Object(_["a"])($d,wd,kd,!1,null,"2bdb08c4",null)),Td=Sd.exports;g()(Sd,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VWindow:Es["a"],VWindowItem:Bs["a"]}),Hs()(Sd,{Ripple:Ks["b"]});var Ad={name:"StoryBookLearning",mixins:[hi],components:{OXDisplayer:uo,Loading:rt,EBook:fd,Popquiz:Xi,Matching:Ei,Dictation:qi,Speaking:Ho,TTSPlayer:oe,TTSAudio:Ct,Keyboard:vo,StoryAdvanced:Td},data(){return{mdiChevronDoubleLeft:ft["q"],mdiChevronDoubleRight:ft["r"],mdiChevronRight:ft["v"],mdiCheck:ft["n"],mdiChevronRightCircleOutline:ft["x"],STORY_EBOOK:c["X"],POPQUIZ:c["M"],MATCHING:c["C"],DICTATION:c["n"],SPEAKING:c["U"],STORY_ADVANCED:c["W"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"],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:{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!==c["M"]||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 c["C"]:t="in-matching",this.isStoryMatchingImg&&(t+=" is-story-matching-img");break;case c["n"]:t="in-dictation";break;case c["U"]:t="in-speaking";break}return t},isStoryMatchingImg(){const t=this.$store.state;return console.log(t.sentences,t.current_step),t.process_type===c["Y"]&&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===c["V"])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===c["V"]&&this.$store.commit("destroyGrammarBank"),this.$store.dispatch("ingLoad").then(s=>{console.log("ingLoad",s),this.$axios.get(`${c["v"]}/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()})}),d=()=>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===c["Y"]&&await l(),t===c["Y"]&&(this.getCurModule===c["M"]?d():await d()),this.$store.commit("setRepeatCntZero"),this.$store.dispatch("nextActions",this.getCurModule)})})):this.$store.dispatch("clearAudioCtx").then(async()=>{t===c["Y"]&&await l(),d(),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){return!this.$store.state.ox_show&&(0!=this.is_skip&&(null!==this.getCurModule&&(this.next_module_idx=this.$store.getters.getNextModule,null!==this.next_module_idx&&(t.idx===this.next_module_idx&&(-1==t.idx?this.next_module_name="Report":this.next_module_name=c["Bb"][this.next_module_idx],void(this.skip_dialog=!0))))))},goSkip:function(){this.$store.state.clear_prev_result?this.$store.dispatch("clearResultData").then(t=>{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===c["Z"]?e="warning":s===c["Y"]?e="success":s===c["V"]&&(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()}},Md=Ad,Dd=Object(_["a"])(Md,dd,hd,!1,null,null,null),Id=Dd.exports;g()(Dd,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"],VStepper:xo["a"],VStepperHeader:yo["a"],VStepperStep:Co["a"]});var Pd={name:"learning-index",props:["bookmode","mode","tab","setBookInfo","setBookInfoVMA","setBookInfoGRAMMAR","setDialogText","setLearningDialog","setDialogVMA","updateSingleMockExamUnit"],components:{Study:So,Test:Jo,Voca:On,Major:Zn,Advanced:pr,Exam:br,Result:Mr,FlashCard:qr,VocaMajor:Jc,VocaAdvanced:cd,ShadowReading:el,MockExam:_l,GrammarTheory:Uc,StoryBook:Id},data(){return{STUDY:c["ab"],TEST:c["gb"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],EXAM:c["p"],FLASHCARD:c["q"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],SHADOW_READING:c["R"],MOCK_EXAM:c["F"],GRAMMAR_THEORY:c["t"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"],LEVEL_TEST:c["x"],learning_mode:"",check_pc:""}},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()}},Rd=Pd,Nd=(s("098b"),Object(_["a"])(Rd,ri,li,!1,null,null,null)),Ed=Nd.exports,Bd=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)}})])])},Ld=[],Od={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"]},zd=Od,Vd=(s("bf75"),Object(_["a"])(zd,Bd,Ld,!0,null,null,null)),qd=Vd.exports;const jd=10;var Gd={name:"bookMixin",components:{BookListLatest:ni,IconRolling:it,LeftBarStatic:ds["a"],Learning:Ed,ctooltip:qd},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"}]}},created(){this.$route.name&&(this.menu=this.$route.name.replace("book",""),this.$store.state.book_menu=this.menu),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+jd),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=ht(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(c["v"]+"/v1/user/bookmarkuse",e).then(e=>{200==e.status&&this.$store.commit("setBookmarkUse",t)})},changeGrade(){let t=ht(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=ht(s.story_books[n]);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 e=this.books.filter(e=>([5,6].includes(this.tab)||![5,6].includes(this.tab)&&+e.category===this.tab)&&(e.schedule_name&&-1!==e.schedule_name.indexOf(t)||e.unit_names&&-1!==e.unit_names.indexOf(t)||50===+e.booktype&&(-1!==e.bookname.indexOf(t)||-1!==e.subtitle.indexOf(t))));for(let i=0,o=e.length;it.table_key==e[i].table_key);if(-1!==o){const e=ht(this.books[o]);e.search_name=null,e.schedule_name&&-1!==e.schedule_name.indexOf(t)?e.search_name=e.schedule_name.replace(t,s):50===+e.booktype?-1!==e.bookname.indexOf(t)&&(e.search_name=e.bookname.replace(t,s)):e.search_name=null,this.books[o]=Object.freeze(e);let i=this.getScheduleBookId(e);this.searchUnitBg(e,i)}}}}},searchUnitBg(t,e){if(this.$data[e]&&(t.unit_names&&-1!==t.unit_names.indexOf(this.final_keyword)||50===+t.booktype&&-1!==t.subtitle.indexOf(this.final_keyword))){const t=this.$data[e].filter(t=>-1!==t.name.indexOf(this.final_keyword));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===c["O"]&&this.$store.state.uclass>c["ib"]&&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===c["O"]&&this.$store.state.uclass2)||(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,c["ab"],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,c["ab"],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+c["Q"];this.setBookInfo(this.expanded[0],this.sel_unit,e,!1,this.closeLearningDialog)},goResultVMA(){if(!this.chkCurVal())return!1;let t=this.learning_dialog_vma+c["Q"],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.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.sel_book.unit,this.learning_dialog_vma,e.clear,this.closeLearningDialog)},setBookInfo(t,e,s,i,o){if(!t||!t||!s)return!1;let a=ht(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&(s==c["ab"]&&a.study_random_sentences_ids&&(a.study_random_sentences_ids=!1),s==c["gb"]&&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=ht(e);!0===this.is_mobile&&window.cordova&&"android"==window.cordova.platformId&&window.Study.inputStudyInfo(t.schedule_id,t.id,a.id),i&&(s==c["ob"]&&a.voca_random_sentences_ids&&(a.voca_random_sentences_ids=!1),[c["A"],c["rb"]].includes(s)&&a.major_random_sentences_ids&&(a.major_random_sentences_ids=!1),[c["a"],c["pb"]].includes(s)&&a.advanced_random_sentences_ids&&(a.advanced_random_sentences_ids=!1),s===c["Y"]&&(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(c["v"]+"/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(`${c["v"]}/v4/book/getcommonbooks?product=${i}&new_story_book=Y`).then(e=>{if(200==e.status){let t=[];for(let[n,r]of Object.entries(e.data)){if("course"==this.menu){if(1!==+r.category)continue}else if("reading"==this.menu){if(1!==+r.category)continue}else if("school"==this.menu){if(![2,3,4].includes(+r.category))continue;if(1===this.is_openbook&&1===+r.category)continue}let e=Object.assign({table_key:this.setTableId(r),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:"F"!==i||1!=+r.category,unit_names:null,search_name:null},r);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(2===+e.category&&["NE능률","지학사"].includes(e.publisher))e.category=1,e.origin_category=2;else if(3===+e.category&&[1,31].includes(+e.booktype))continue}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 a="course"==this.menu?"ng":"reading"==this.menu?"story":"listening"==this.menu?"listening":"etc";s[a].includes(r.id)||("course"==this.menu||"reading"==this.menu||"listening"==this.menu||"school"==this.menu&&1!==+r.category)&&s[a].push(r.id)}const a=this.menu.charAt(0).toUpperCase()+this.menu.slice(1);this.$store.commit(`set${a}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!=c["d"]){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===c["pb"]||s===c["gb"]&&4===i&&!+e.words_cnt?n+="시험중":n+="학습중";else if(2==o[s])s===c["pb"]||s===c["gb"]&&4===i&&!+e.words_cnt?n+="재시험중":n+="재학습중";else if(3==o[s])s===c["F"]?n+=this.is_mobile?"듣기":"평가완료":(4===i?s===c["ab"]?n+=+e.words_cnt?"본문":"학습":s===c["gb"]?n+=+e.words_cnt?"심화":"시험":s===c["Z"]?n+="동화":n+=a[s]:"listeningbook"==this.$route.name&&31===+t.booktype?s===c["ob"]?n+="어휘":s===c["ab"]?n+="지문":s===c["gb"]&&(n+="심화"):n+=a[s],n+=this.is_mobile?"":"완료");else{let o="";o=4===i?s===c["ab"]?+e.words_cnt?"본문":"학습":s===c["gb"]?+e.words_cnt?"심화":"시험":a[s]:"listeningbook"==this.$route.name&&31===+t.booktype?s===c["ab"]?"지문":s===c["F"]?"심화":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===c["F"]?n+=this.is_mobile?"듣기":"평가":n+=r[s],n+=this.is_mobile?"":"완료"):(n+=r[s],s!==c["F"]||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===c["F"]?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===c["F"]?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=c["q"],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:"재학습하시겠습니까?"},d={l1:"학습하기",l2:"이어서 학습",l3:"재학습",r1:"처음부터 학습",l4:"시험보기",l5:"이어서 시험",l6:"재시험",r2:"처음부터 시험"},h=[1,11,16],u=[7,12,17];const _=[];if("course"==this.menu||"reading"==this.menu||"listening"==this.menu||"school"==this.menu&&0===r&&4===a&&n!=c["d"])switch(n){case c["e"]:{const t={GT:"theory",GB:"basics",GD:"deep"},a={GT:"이론",GB:"기본",GD:"심화"},n=e[t[s]+"_status"];console.log(n,s,e,i),n>0&&n<3?_.push(l["t1"],d["l2"],d["r1"]):3==n?_.push(l["t2"],d["l3"],""):_.push(`${a[s]}${l["t0"]}`,d["l1"],""),console.log(_),o(_[0],_[1],_[2],i);break}case c["g"]:case c["f"]:{const t={V:"voca_status",S:"study_status",T:"test_status"},n=e[t[s]];if([1,2].includes(n))s!==c["gb"]||4!==a||+e.words_cnt?_.push(l["t1"],d["l2"],d["r1"]):_.push(l["t5"],d["l5"],d["r2"]);else if(3==n)s!==c["gb"]||4!==a||+e.words_cnt?u.includes(i)?_.push(l["t7"],"",""):_.push(l["t2"],d["l3"],""):u.includes(i)?_.push(l["t8"],"",""):_.push(l["t6"],d["l6"],"");else if(s===c["ob"])_.push("어휘"+l["t0"],d["l1"],"");else if(s===c["ab"])if(4!==a||Number(e.words_cnt)){const t=4==a?"본문":"listeningbook"==this.$route.name?"지문":"문장";_.push(t+l["t0"],d["l1"],"")}else _.push(l["t0"],d["l1"],"");else s===c["gb"]&&(4!==a||Number(e.words_cnt)?h.includes(i)?_.push(l[4===a?"t11":"t10"],"",""):_.push("심화"+l["t0"],d["l1"],""):h.includes(i)?_.push(l["t9"],"",""):_.push(l["t4"],d["l4"],""));o(_[0],_[1],_[2],i);break}case c["i"]:{const t={VM:e.major_status,VA:e.advanced_status};[1,2].includes(t[s])?s===c["rb"]?_.push(l["t1"],d["l2"],d["r1"]):_.push(l["t5"],d["l5"],d["r2"]):3==t[s]?u.includes(i)?s===c["rb"]?_.push(l["t7"],"",""):_.push(l["t8"],"",""):s===c["rb"]?_.push(l["t2"],d["l3"],""):_.push(l["t6"],d["l6"],""):s===c["rb"]?_.push(l["t0"],d["l1"],""):h.includes(i)?_.push(l["t9"],"",""):_.push(l["t4"],d["l4"],""),o(_[0],_[1],_[2],i);break}case c["h"]:{const t={SV:e.story_v_status,SM:e.story_m_status,SA:e.story_a_status};if(t[s]>0&&t[s]<3)_.push(l["t1"],d["l2"],d["r1"]);else if(3==t[s]){let t=l["t2"];s===c["Z"]&&(t="동화보기를 "+l["t13"]),_.push(t,d["l3"],"")}else{let t;s===c["Z"]?t="동화보기를 시작하시겠습니까?":s===c["Y"]?t="기본"+l["t0"]:s===c["V"]&&(t="실전문제를 학습하시겠습니까?");const e=s===c["Z"]?"동화보기":d["l1"];_.push(t,e,"")}o(_[0],_[1],_[2],i);break}default:break}else if("school"==this.menu)if(0===r)switch(n){case c["g"]:case c["f"]:{const t={V:e.voca_status,S:e.study_status,T:e.test_status};[1,2].includes(t[s])?_.push(l["t1"],d["l2"],d["r1"]):3===t[s]?u.includes(i)?_.push(l["t7"],"",""):_.push(l["t2"],d["l3"],""):s===c["ob"]?_.push("어휘"+l["t0"],d["l1"],""):s===c["ab"]?_.push(([3,10].includes(a)?"지":"본")+"문"+l["t0"],d["l1"],""):s===c["gb"]&&(h.includes(i)?_.push(l["t1"+(3==a?"2":"1")],"",""):_.push("심화"+l["t0"],d["l1"],"")),o(_[0],_[1],_[2],i);break}case c["d"]:{const t={V:e.voca_status,M:e.major_status,A:e.advanced_status};[1,2].includes(t[s])?_.push(l["t1"],d["l2"],d["r1"]):3===t[s]?u.includes(i)?_.push(l["t7"],"",""):_.push(l["t2"],d["l3"],""):s===c["ob"]?_.push("어휘"+l["t0"],d["l1"],""):s===c["A"]?_.push(`${3==a?"지":"본"}문${l["t0"]}`,d["l1"],""):s===c["a"]&&(h.includes(i)?_.push(l["t1"+(3==a?"2":"1")],"",""):_.push("심화"+l["t0"],d["l1"],"")),o(_[0],_[1],_[2],i);break}}else if(1===r){let n;if(1===+t.schedule_type_v){let t="",r="";s===c["ob"]?(t="voca",r="어휘"):[c["ab"],c["A"],c["rb"]].includes(s)?(t=s==c["ab"]?"study":"major",r=[3,10].includes(a)?"지문":"본문"):[c["gb"],c["a"],c["pb"]].includes(s)&&(t=s==c["gb"]?"test":"advanced",r="심화"),n=e[t+"_status"],[1,2].includes(n)?_.push(l["t1"],d["l2"],d["r1"]):3===+n?u.includes(i)?_.push(l["t7"],"",""):_.push(l["t2"],d["l3"],""):[c["gb"],c["a"],c["pb"]].includes(s)&&h.includes(i)?_.push(l["t1"+(3==a?2:1)],"",""):_.push(r+l["t0"],d["l1"],""),o(_[0],_[1],_[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])?[c["ab"],c["rb"]].includes(s)?_.push(l["t1"],d["l2"],d["r1"]):[c["gb"],c["pb"]].includes(s)&&_.push(l["t5"],d["l5"],d["r2"]):3==t[s]?[c["ab"],c["rb"]].includes(s)?u.includes(i)?_.push(l["t7"],"",""):_.push(l["t2"],d["l3"],""):[c["gb"],c["pb"]].includes(s)&&(u.includes(i)?_.push(l["t8"],"",""):_.push(l["t6"],d["l6"],"")):[c["ab"],c["rb"]].includes(s)?_.push(l["t0"],d["l1"],""):[c["gb"],c["pb"]].includes(s)&&(h.includes(i)?_.push(l["t9"],"",""):_.push(l["t4"],d["l4"],"")),o(_[0],_[1],_[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))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||(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,(s.schedule_name&&-1!==s.schedule_name.indexOf(r)||s.publisher&&-1!==s.publisher.indexOf(r)||s.unit_names&&-1!==s.unit_names.indexOf(r))&&(n=!0)),"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=`${c["v"]}/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){h=!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&&(h=!1),r){if("school"==this.menu&&4==r){let e={table_key:this.setTableId(o[t]),progress:d>0?Math.round(l/d*100):0,disable:h,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=d>0?Math.round(l/d*100):0,i.disable=h,"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===c["f"]&&(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(`${c["v"]}/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),"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 c["ab"]:case c["gb"]:case c["ob"]:case c["A"]:case c["rb"]:case c["a"]:case c["pb"]:case c["t"]:case c["r"]:case c["s"]:case c["Z"]:case c["Y"]:case c["V"]:{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===c["ab"]&&o&&0===n&&r>0||o&&0===n)&&(s=1);break}case c["F"]:t.mock_pk&&Number(t.mock_cnt)>0&&(s=3);break;default:break}return s},getUnits(t,e){return new Promise((s,i)=>{let o=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[o]&&!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[o]&&!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 a=parseInt(t.schedule_id),n=parseInt(t.id),r=null==t.schedule_type?0:parseInt(t.schedule_type),l="?";if(1==r){let e=null==t.sentence_cnt?0:parseInt(t.sentence_cnt),s=null==t.total_cnt?0:parseInt(t.total_cnt);l+="tot_cnt="+s+"&sen_cnt="+e}e&&(1==t.schedule_type&&1==t.schedule_type_v?l+="&s_u_id="+e:l+="&unit_id="+e),1==t.booktype_1&&(l+="?"==l?"vma=1":"&vma=1"),1==t.mockexam&&(l+="?"==l?"mock=1":"&mock=1"),l+="&bt="+t.booktype_1,31===+t.booktype&&"listeningbook"==this.$route.name&&(l+="&category=10"),this.$axios.get(`${c["v"]}/v2/book/${n}/schedule/${a}/type/${r}/user/${this.$store.state.uid}${l}`).then(i=>{let a;if(200==i.status)a=i.data||[];else{if(204!=i.status)return!1;a=[]}if(e){let e=-1;const s=1==t.schedule_type&&1==t.schedule_type_v?"s_u_id":"id";let i;const n=this.$refs.story_book_table;if(50===+t.booktype&&n)i=n.$data[o],a[0][s]==i[s]&&(e=0);else{i=this.$data[o];for(let t=0;te.schedule_id?+t.schedule_id===+e.schedule_id:+t.id===+e.id);if(s>-1){n.$data.story_books.splice(s,1,e);const t=this.books.findIndex(t=>t.schedule_id?+t.schedule_id===+n.$data.story_books[s].schedule_id:+t.id===+n.$data.story_books[s].id);-1!==t&&(this.books[t]=n.$data.story_books[s])}}else this.$data[o]=Object.freeze(r)}}else{for(let[e,s]of Object.entries(a))if(1==t.schedule_type)if(1==t.schedule_type_v&&t.booktype_1!==c["i"]){const t={V:"voca",M:"major",A:"advanced",S:"study",T:"test",X:"mock",VM:"major",MA:"advanced"};s.mode.length>1&&s.mode.indexOf(c["F"])>-1?s.mock_status=this.unitStatusChecker(s,c["F"]):s[t[s.mode]+"_status"]=this.unitStatusChecker(s,s.mode)}else t.booktype_1===c["i"]?(s.major_status=this.unitStatusChecker(s,c["rb"]),s.advanced_status=this.unitStatusChecker(s,c["pb"])):(s.study_status=this.unitStatusChecker(s,c["ab"]),s.test_status=this.unitStatusChecker(s,c["gb"]));else switch(t.booktype_1){case c["g"]:case c["f"]:{const e={V:"voca",S:"study",T:"test",X:"mock"};t.mockexam?t.mockexam&&"listeningbook"==this.$route.name&&31===+t.booktype&&(s[e[s.mode]+"_status"]=this.unitStatusChecker(s,s.mode),["V","S","T"].forEach(t=>{s[e[t]+"_status"]=this.unitStatusChecker(s,t)})):(s[e[s.mode]+"_status"]=this.unitStatusChecker(s,s.mode),["V","S","T","X"].forEach(t=>{s[e[t]+"_status"]=this.unitStatusChecker(s,t)}));break}case c["d"]:case c["i"]:case c["e"]:{const e={V:"voca",M:"major",A:"advanced",S:"study",T:"test",X:"mock",VM:"major",VA:"advanced",GT:"theory",GB:"basics",GD:"deep"},i=[];t.booktype_1===c["d"]?i.push("V","M","A"):t.booktype_1===c["i"]?i.push("VM","VA"):t.booktype_1===c["e"]&&i.push("GT","GB","GD");for(let t=0,o=i.length;t{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 n=0;this.$store.state.ing_save&&(n=1500),setTimeout(()=>{s("open"),this.$store.state.ing_save=!1},n)}).catch(t=>{console.log(t),i()})})},getStoryBookUnits(t){return new Promise((e,s)=>{if(t&&t.length>0){this.loading_unit=!0;let i=t.every(t=>t.unit);if(i){for(let e=0,s=t.length;e{if(200==s.status&&s.data){const i=s.data;if(0===+this.is_openbook)if(0===i.length)for(let e=0,s=t.length;e{if(t.schedule_id){if(+t.schedule_id===+s.schedule_id)return+t.schedule_id===+s.schedule_id}else if(+t.book_id===+s.id)return+t.book_id===+s.id})};if(a&&0!==Object.keys(a).length){if(a.schedule_id=s.schedule_id,a.origin_level=s.origin_level,a.story_v_status=this.unitStatusChecker(a,c["Z"]),a.story_m_status=this.unitStatusChecker(a,c["Y"]),a.story_a_status=this.unitStatusChecker(a,c["V"]),!this.$data[o]){this.$data[o]=Object.freeze(a);const t=ht(s);t.unit=this.$data[o],this.story_books[e]=Object.freeze(t);const i=this.data.books.findIndex(e=>e.schedule_id?+e.schedule_id===+t.schedule_id:+e.id===+t.id);-1!==i&&(this.data.books[i]=this.story_books[e])}}else{const i=ht(s);i.unit={name:s.cover_path.replace(".png","")},t[e]=Object.freeze(i)}}else for(let e=0,s=t.length;et.schedule_id?+t.schedule_id===+s.schedule_id:+t.book_id===+s.id)};if(a&&0!==Object.keys(a).length&&(a.schedule_id=s.schedule_id,a.origin_level=s.origin_level,a.story_v_status=this.unitStatusChecker(a,c["Z"]),a.story_m_status=this.unitStatusChecker(a,c["Y"]),a.story_a_status=this.unitStatusChecker(a,c["V"]),!this.$data[o])){this.$data[o]=Object.freeze(a);const t=ht(s);t.unit=this.$data[o],this.story_books[e]=Object.freeze(t);const i=this.data.books.findIndex(e=>e.schedule_id?+e.schedule_id===+t.schedule_id:+e.id===+t.id);-1!==i&&(this.data.books[i]=this.story_books[e])}}this.loading_unit=!1;let o=0;this.$store.state.ing_save&&(o=1500),setTimeout(()=>{e("open"),this.$store.state.ing_save=!1},o)}}).catch(t=>{console.error(t),s(t)})}}else s(null)})},openRestudyDialog(){document.getElementById("dialog-old-text").offsetHeight,document.getElementById("dialog-old-actions").offsetHeight;if(this.restudy_dialog=!0,this.restudy_type=c["q"],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,c["R"],!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,c["gb"],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=`${c["v"]}/book/${t.id}/getsentence`;if(0==Number(t.schedule_type))s=`${c["v"]}/book/getunitsentence?unitids=${e.id}`;else{let i=Number(t.sentence_cnt),o=Number(e.seq)*i;s=`${c["v"]}/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=c["q"],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",c["F"]),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==c["t"]?(s="theory_status",i="theory_cnt"):e==c["r"]?(s="basics_status",i="basics_cnt"):e==c["s"]&&(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==c["i"]?5:0,r=null;switch(e){case c["ob"]:o="voca_status",a="voca_cnt";break;case c["A"]:case c["rb"]:o="major_status",a="major_cnt";break;case c["a"]:case c["pb"]: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==c["a"]?c["A"]:c["rb"];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=c["q"],this.restudy_cnt_ment=""},500)},selectRestudyType(t){this.restudy_type=t},startRestudy(){if(this.restudy_type===c["q"])this.goFlashCard(),this.learning_dialog=!1;else if(this.restudy_type===c["ab"]){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=c["q"],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)},destroyed(){this.$destroy()}},Fd=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.story_books.filter((function(e){return+e.level===+t.select_level})).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.story_search_books?t.story_search_books:t.story_books.filter((function(e){return+e.level===+t.select_level})),(function(e,o){return[t.endInitBook&&+e.level===+t.select_level&&e.unit?i("v-lazy",{directives:[{name:"show",rawName:"v-show",value:t.showStoryBooks(e),expression:"showStoryBooks(item)"}],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:""]},[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.EBOOK_CDN+"/ngcover/"+e.cover_path,alt:"book-cover",rel:"preload"}}),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)}}}),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)}}})],1)],1)])])],1):t._e()]}))],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)},Ud=[];const Wd=999;var Hd={name:"StoryBookTable",mixins:[Gd],data(){return{EBOOK_CDN:c["o"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"],PRODUCT_FREE:c["O"],mdiChevronRight:ft["v"],story_books:[],story_search_books:null,highlight_book:null,sel_book:null,item_length:Object.freeze({4:0}),items_per_page:Wd,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}},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},"data.schedule_load"(t){t&&this.initBook()},"data.final_keyword"(t){t||(this.story_search_books=null)},selectedTab(t){t&&this.initBook()},story_search_books(t){console.log("v",t)}},computed:{showStoryBooks(){return t=>(console.log("item",t),!0)},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?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(){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)},setBooksUnit(){return new Promise((t,e)=>{this.getStoryBookUnits(this.data.books).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={[c["Z"]]:t.story_v_status,[c["Y"]]:t.story_m_status,[c["V"]]: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){const i=this.$store.state.product_type;"F"!==i||this.free_limit_is_show||this.checkFreeLimit();let o=e.split("-"),a=(o[0],o[1]),n=!1,r=o.length>2?this.data.final_keyword:null;return("all"==a||"all"!=a&&s.level==a)&&(n=!0),r&&n&&this.story_search_books&&(n=!0),n},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&&0!==+this.$store.state.promotion_check||[1,2,3].includes(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),e},cardClick(t){if(t.disable)return this.alert_dialog=!0,void(window.dialog_timeout=setTimeout(()=>{this.alert_dialog=!1},3e3));this.checkIsFree(t)||(this.highlight_book=t,this.data.study_progress=([.9999,1].includes(+t.complete_unit_cnt)?1:0)+" / 1단원",this.data.coverimg_url=`${c["o"]}/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}},Kd=Hd,Yd=(s("a9b1"),s("4a91"),Object(_["a"])(Kd,Fd,Ud,!1,null,"3e69f939",null)),Zd=Yd.exports;g()(Yd,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VChip:pe["a"],VCol:R["a"],VDialog:E["a"],VLazy:H["a"],VRow:L["a"]});var Jd=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+" is-ng-book-1-"+t.$store.state.product_type:""],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",{domProps:{innerHTML:t._s(e.search_name||e.name)}}),t._v("\n   \n "),[t.STUDY,t.MAJOR].includes(e.mode)?s("v-btn",{staticClass:"border-ede thin-l 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(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:""}},[t._v(t._s(t.mdiPlayCircleOutline))]),s("b",{staticClass:"ml-n1",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?[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?[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?[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?[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?[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?"심화":"심화학습")}})])]:[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",{domProps:{innerHTML:t._s(e.search_name||e.name)}}),t._v("\n   \n "),t.item.booktype_1===t.BOOK_NORMAL?s("v-btn",{staticClass:"border-ede thin-l 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(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:""}},[t._v(t._s(t.mdiPlayCircleOutline))]),s("b",{staticClass:"ml-n1",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"},[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)}}})],1)]),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"},[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)}}})],1)])],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"},[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)}}})],1)]),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"},[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)}}})],1)])],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",{domProps:{innerHTML:t._s(e.search_name||e.name)}}),t._v("\n   \n "),s("v-btn",{staticClass:"border-ede thin-l 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(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:""}},[t._v(t._s(t.mdiPlayCircleOutline))]),s("b",{staticClass:"ml-n1",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"},[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)}}})],1)]):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"},[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)}}})],1)]),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"},[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)}}})],1):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",{domProps:{innerHTML:t._s(e.search_name||e.name)}}),t._v("\n   \n "),s("v-btn",{staticClass:"border-ede thin-l 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(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:""}},[t._v(t._s(t.mdiPlayCircleOutline))]),s("b",{staticClass:"ml-n1",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"},[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)}}})],1)]),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"},[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)}}})],1)]),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"},[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?"심화":"심화학습")}})])],1)])],1)],1)],1)]:t.item.booktype_1===t.BOOK_VOCA?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:"8"}},[s("span",{domProps:{innerHTML:t._s(e.search_name||e.name)}})]),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"},[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)}}})],1)]),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"},[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)}}})],1)])],1)],1)],1)]:t.item.booktype_1===t.BOOK_GRAMMAR?[s("v-col",{staticClass:"d-flex align-center",attrs:{cols:"6"}},[s("span",{domProps:{innerHTML:t._s(e.search_name||e.color_name||e.name)}})]),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"},[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)}}})],1)]),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"},[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)}}})],1)]),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"},[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)}}})],1)])],1)],1)],1)]:t._e()]],2)],1)])})),0)},Qd=[],Xd={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:ft["M"],mdiPlayCircleOutline:ft["U"],ADVANCED:c["a"],basicGrammarBooks:c["yb"],BOOK_BANK:c["d"],BOOK_GRAMMAR:c["e"],BOOK_LISTENING:c["f"],BOOK_NORMAL:c["g"],BOOK_VOCA:c["i"],BOOK_STORY:c["h"],CDN:c["j"],FLASHCARD:c["q"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],GRAMMAR_THEORY:c["t"],HOST:c["v"],MAJOR:c["A"],middleGrammarBooks:c["zb"],MOCK_EXAM:c["F"],PRODUCT_FREE:c["O"],RESULT_SUFFIX:c["Q"],SHADOW_READING:c["R"],STUDY:c["ab"],TAG_HOT:c["db"],TAG_NEW:c["eb"],TAG_VOCA:c["fb"],TEST:c["gb"],UCLASS_ETC:c["ib"],VOCA:c["ob"],VOCA_ADVANCED:c["pb"],VOCA_MAJOR:c["rb"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"]}},created(){},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}}},th=Xd,eh=Object(_["a"])(th,Jd,Qd,!1,null,null,null),sh=eh.exports;g()(eh,{VBtn:D["a"],VCol:R["a"],VIcon:xt["a"],VLazy:H["a"],VRow:L["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 ih=10;var oh={name:"book-course",mixins:[Gd],components:{StoryBookTable:Zd,UnitTemplate:sh},data(){return{STUDY:c["ab"],TEST:c["gb"],FLASHCARD:c["q"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],MOCK_EXAM:c["F"],GRAMMAR_THEORY:c["t"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"],CDN:c["j"],BOOK_NORMAL:c["g"],BOOK_BANK:c["d"],BOOK_VOCA:c["i"],BOOK_STORY:c["h"],BOOK_LISTENING:c["f"],BOOK_GRAMMAR:c["e"],TAG_NEW:c["eb"],TAG_VOCA:c["fb"],TAG_HOT:c["db"],PRODUCT_FREE:c["O"],UCLASS_ETC:c["ib"],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:ih,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmark_dialog:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:c["q"],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:ft["t"],mdi_chevron_right:ft["v"],mdi_chevron_left_circle:ft["u"],mdi_chevron_right_circle:ft["w"],mdi_menu_down:ft["L"],mdi_menu_right:ft["M"],mdi_heart:ft["G"],mdi_heart_outline:ft["H"],mdi_arrow_left:ft["f"],mdi_volume_high:ft["Z"],mdi_sync:ft["X"],mdi_play_circle_outline:ft["U"],mdi_information_outline:ft["J"],mdi_magnify:ft["K"],mdi_close_circle:ft["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}},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&&[c["g"],c["d"],c["f"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==c["d"]){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==c["f"]){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=ht(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=ht(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)}},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:{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=ht(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=ht(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=ih,[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(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=`${c["j"]}/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=ht(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=ht(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=ht(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=ht(this.$data[i])}if(void 0==i)return;let a,n=[],r=ht(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(`${c["v"]}/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,c["F"]),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,d=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=d,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(`${c["v"]}/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(`${c["v"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=ht(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=ht(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.bookmark_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.bookmark_dialog=!1},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!=c["ab"])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,c["gb"],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,c["gb"],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,c["gb"],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,c["gb"],s,this.setLearningDialog)},goResultGRAMMAR(){if(!this.chkCurVal())return!1;let t=this.learning_dialog_vma+c["Q"];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=ht(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(`${c["v"]}/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=ht(e);s.unit=t,e=Object.freeze(s)}this.sel_book=e;const i={[c["Z"]]:t.story_v_status,[c["Y"]]:t.story_m_status,[c["V"]]: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}}},ah=oh,nh=(s("411e"),s("8fea")),rh=s("de8e"),lh=s("dc22"),ch=Object(_["a"])(ah,Js,Qs,!1,null,null,null),dh=ch.exports;g()(ch,{VBtn:D["a"],VBtnToggle:Gs["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDataTable:nh["a"],VDialog:E["a"],VIcon:xt["a"],VLazy:H["a"],VOverflowBtn:rh["a"],VRow:L["a"],VSheet:re["a"],VSwitch:se["a"],VTextField:O["a"]}),Hs()(ch,{Resize:lh["a"]});var hh=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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",attrs:{cols:t.isStorybook?12:3}},[t.isStorybook?i("div",{class:"d-flex "+(1==t.tab?"width-100p":"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),2==t.tab?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",{attrs:{id:"level_list_2"}},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("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.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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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",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:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("bookmark_dialog")}},model:{value:t.bookmark_dialog,callback:function(e){t.bookmark_dialog=e},expression:"bookmark_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},[i("v-row",[i("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[i("span",{staticClass:"black--text"},[t._v("북마크 교재")]),i("span",{domProps:{textContent:t._s(t.bookmarktext)}}),t._v("되었습니다.\n ")])],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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},uh=[];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 _h=10;var ph={name:"book-course",mixins:[Gd],components:{StoryBookTable:Zd,UnitTemplate:sh},data(){return{STUDY:c["ab"],TEST:c["gb"],FLASHCARD:c["q"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],MOCK_EXAM:c["F"],GRAMMAR_THEORY:c["t"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],STORY_V:c["Z"],STORY_M:c["Y"],STORY_A:c["V"],CDN:c["j"],BOOK_NORMAL:c["g"],BOOK_BANK:c["d"],BOOK_VOCA:c["i"],BOOK_STORY:c["h"],BOOK_LISTENING:c["f"],BOOK_GRAMMAR:c["e"],TAG_NEW:c["eb"],TAG_VOCA:c["fb"],TAG_HOT:c["db"],PRODUCT_FREE:c["O"],UCLASS_ETC:c["ib"],AUDIO_BOOK_GRADE:c["c"],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,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"}],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:_h,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmark_dialog:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:c["q"],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:ft["t"],mdi_chevron_right:ft["v"],mdi_chevron_left_circle:ft["u"],mdi_chevron_right_circle:ft["w"],mdi_menu_down:ft["L"],mdi_menu_right:ft["M"],mdi_heart:ft["G"],mdi_heart_outline:ft["H"],mdi_arrow_left:ft["f"],mdi_volume_high:ft["Z"],mdi_sync:ft["X"],mdi_play_circle_outline:ft["U"],mdi_information_outline:ft["J"],mdi_magnify:ft["K"],mdi_close_circle:ft["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}},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&&[c["g"],c["d"],c["f"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==c["d"]){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==c["f"]){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=ht(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=ht(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"}],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}},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"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:{changeCategory(t){this.level_exclusive=+t,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=ht(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=ht(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.reading_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")}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=_h,[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=`${c["j"]}/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=ht(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=ht(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=ht(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=ht(this.$data[i])}if(void 0==i)return;let a,n=[],r=ht(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(`${c["v"]}/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,c["F"]),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,d=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=d,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(`${c["v"]}/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(`${c["v"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=ht(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=ht(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.bookmark_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.bookmark_dialog=!1},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!=c["ab"])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,c["gb"],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,c["gb"],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,c["gb"],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,c["gb"],s,this.setLearningDialog)},goResultGRAMMAR(){if(!this.chkCurVal())return!1;let t=this.learning_dialog_vma+c["Q"];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=ht(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(`${c["v"]}/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=ht(e);s.unit=t,e=Object.freeze(s)}this.sel_book=e;const i={[c["Z"]]:t.story_v_status,[c["Y"]]:t.story_m_status,[c["V"]]: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=c["c"].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}}},gh=ph,mh=(s("8e07"),Object(_["a"])(gh,hh,uh,!1,null,null,null)),bh=mh.exports;g()(mh,{VBtn:D["a"],VBtnToggle:Gs["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDataTable:nh["a"],VDialog:E["a"],VIcon:xt["a"],VLazy:H["a"],VOverflowBtn:rh["a"],VRow:L["a"],VSheet:re["a"],VSwitch:se["a"],VTextField:O["a"]}),Hs()(mh,{Resize:lh["a"]});var vh=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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",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)],1):t._e(),t.tab<=3&&0===t.listening_mode?i("v-row",{staticClass:"ma-0"},[i("v-col",{staticClass:"pa-0 pr-1 height-100",staticStyle:{width:"max-content"}},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)],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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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",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(),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",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",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:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(e){return t.closeDialog("bookmark_dialog")}},model:{value:t.bookmark_dialog,callback:function(e){t.bookmark_dialog=e},expression:"bookmark_dialog"}},[i("v-card",[i("v-card-text",{staticClass:"text-center black--text title",class:[t.is_mobile?"py-3":"py-6"]},[i("v-row",[i("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[i("span",{staticClass:"black--text"},[t._v("북마크 교재")]),i("span",{domProps:{textContent:t._s(t.bookmarktext)}}),t._v("되었습니다.\n ")])],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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},fh=[];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 wh=10;var kh={name:"book-school",mixins:[Gd],components:{UnitTemplate:sh},data(){return{STUDY:c["ab"],TEST:c["gb"],FLASHCARD:c["q"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],MOCK_EXAM:c["F"],GRAMMAR_THEORY:c["t"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],CDN:c["j"],BOOK_NORMAL:c["g"],BOOK_BANK:c["d"],BOOK_VOCA:c["i"],BOOK_LISTENING:c["f"],BOOK_GRAMMAR:c["e"],TAG_NEW:c["eb"],TAG_VOCA:c["fb"],TAG_HOT:c["db"],PRODUCT_FREE:c["O"],UCLASS_ETC:c["ib"],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:wh,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmark_dialog:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:c["q"],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:ft["v"],mdi_menu_down:ft["L"],mdi_menu_right:ft["M"],mdi_heart:ft["G"],mdi_heart_outline:ft["H"],mdi_arrow_left:ft["f"],mdi_volume_high:ft["Z"],mdi_sync:ft["X"],mdi_play_circle_outline:ft["U"],mdi_information_outline:ft["J"],mdi_close_circle:ft["C"],mdi_magnify:ft["K"],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}},watch:{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]&&[c["g"],c["d"],c["f"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==c["d"]){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==c["f"]){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=ht(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=ht(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)},current_publisher_idx(t){const e=[];for(let s=0;s{+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))},methods:{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=ht(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=ht(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=wh,[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&&(console.log(t,this.listening_book),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(console.log("item",t),this.listening_book&&e.isExpanded&&this.isUniqueBook)return;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);let n=10===+t.category?3:+t.category;a>0?this.study_progress=`${i} / ${a}${e}`:(this.study_progress="",3===n&&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===n&&1===+t.booktype&&t.mockexam?1:t.unit_cnt}),t.cover_path&&(1===n&&2===t.origin_category&&(n=2),this.coverimg_url=`${c["j"]}/${n}/${window.encodeURIComponent(t.cover_path)}`);let r=this.getScheduleBookId(t);this.opened_item=this.$data[r],this.final_keyword&&this.searchUnitBg(t,r);const l={row:document.querySelector(".v-data-table__expanded")};if(s.row&&l.row){const t=s.row.getBoundingClientRect().top,e=l.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:break}console.log("end"),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=ht(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=ht(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=ht(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=ht(this.$data[i])}if(void 0==i)return;let a,n=[],r=ht(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(`${c["v"]}/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,c["F"]),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,d=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=d,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(`${c["v"]}/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(`${c["v"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=ht(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=ht(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.bookmark_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.bookmark_dialog=!1},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!=c["ab"])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,c["gb"],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,c["gb"],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,c["gb"],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,c["gb"],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=ht(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(`${c["v"]}/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})}}},xh=kh,yh=(s("3fcb"),Object(_["a"])(xh,vh,fh,!1,null,null,null)),Ch=yh.exports;g()(yh,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDataTable:nh["a"],VDialog:E["a"],VIcon:xt["a"],VLazy:H["a"],VOverflowBtn:rh["a"],VRow:L["a"],VSheet:re["a"],VSwitch:se["a"],VTextField:O["a"]});var $h=function(){var t=this,e=this,i=e.$createElement,o=e._self._c||i;return o("div",{attrs:{id:"book-vue"}},[e.getLearningStatus?o("learning",{key:"learning-index",attrs:{bookmode:"school",mode:e.$store.getters.getLearningMode,tab:e.tab,setBookInfo:e.setBookInfo,setBookInfoVMA:e.setBookInfoVMA,setBookInfoGRAMMAR:e.setBookInfoGRAMMAR,setDialogText:e.setDialogText,setLearningDialog:e.setLearningDialog,setDialogVMA:e.setDialogVMA,updateSingleMockExamUnit:e.updateSingleMockExamUnit}}):e._e(),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.getLearningStatus,expression:"!getLearningStatus"}],staticClass:"v-book-index static-container"},[o("left-bar-static",{key:"book-left-bar",staticClass:"child-white"},[o("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[o("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[o("v-switch",{key:"book-left-bar-switch-1",staticClass:"switch-left-label width-100",class:"is-mobile-"+e.is_mobile,attrs:{label:"최근 학습내역",color:"success","hide-details":"","input-value":7==e.tab_class,ripple:!1,dense:e.is_mobile},on:{change:function(t){return e.changeTab(t,7)},touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}})],1),o("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"}},[o("v-switch",{key:"book-left-bar-switch-2",staticClass:"switch-left-label width-100",class:"is-mobile-"+e.is_mobile,attrs:{label:"학습중인 교재",color:"success","hide-details":"","input-value":6==e.tab_class,ripple:!1,dense:e.is_mobile},on:{change:function(t){return e.changeTab(t,6)},touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}})],1),o("div",{staticClass:"d-flex align-center",staticStyle:{flex:"1 1 auto"},attrs:{id:"bookmark_switch"}},[o("v-switch",{key:"book-left-bar-switch-3",staticClass:"switch-left-label width-100",class:"is-mobile-"+e.is_mobile,attrs:{label:"북마크 교재",color:"success","hide-details":"","input-value":5==e.tab_class,ripple:!1,dense:e.is_mobile},on:{change:function(t){return e.changeTab(t,5)},touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}})],1)]),o("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),o("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[o("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[o("router-link",{staticClass:"left-label-title d-flex",staticStyle:{"text-decoration":"none"},attrs:{to:"/schedule/learningschedule"}},[o("div",{staticClass:"label-control",on:{touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[o("label",[e._v("나의 학습 스케쥴\n "),o("v-btn",{attrs:{icon:"",text:"",fab:""}},[o("v-icon",{attrs:{size:e.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)}},[e._v(e._s(e.mdi_chevron_right))])],1)],1)])])],1),o("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[o("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[e._v("학습 진행률")]),o("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[o("span",{domProps:{textContent:e._s(e.study_progress)}})])],1),o("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[o("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[e._v("재학습")]),o("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[o("span",{domProps:{textContent:e._s(e.setRestudyText())}})])],1),o("div",{staticStyle:{flex:"1 1 auto"}})],1),o("div",{staticClass:"default-divider border-ede thin-t my-0",staticStyle:{height:"0"}}),o("div",{staticClass:"vertical-wrapper d-flex flex-column align-stretch justify-space-evenly"},[o("div",{staticClass:"wrap-div d-flex align-center",staticStyle:{flex:"1 1 auto"}},[o("a",{staticClass:"left-label-title d-flex"},[o("div",{staticClass:"label-control",class:{"success--label":null!=e.$store.state.current_book_id}},[o("label",[e._v("선택된 교재 정보\n "),o("v-icon",{class:{"success--text":e.coverimg_url},attrs:{disabled:""==e.coverimg_url,size:e.$store.state.screen_width.fontRemToPx(1.6).toFixed(2)},on:{click:e.openCoverImg}},[e._v(e._s(e.mdi_chevron_right)+"\n ")])],1)])])]),o("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[o("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[e._v("제작자")]),o("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[e._v("\n "+e._s(e.$store.state.cur_book_publisher)+"\n ")])],1),o("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[o("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[e._v("제작년도")]),o("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[e._v("\n "+e._s(e.$store.state.cur_book_publishdate)+"\n ")])],1),o("v-row",{staticClass:"left-details grey--text wrap-div d-flex align-center",attrs:{"no-gutters":""}},[o("v-col",{staticClass:"before-divider pl-3",attrs:{cols:"6"}},[e._v("학습일차")]),o("v-col",{staticClass:"grey--text text--darken-3",attrs:{cols:"6"}},[e._v("\n "+e._s(e.$store.state.cur_book_unit_cnt?e.$store.state.cur_book_unit_cnt+"일":"")+"\n ")])],1)],1)]),o("div",{staticClass:"right"},[o("v-sheet",{key:"book-right-sheet",staticClass:"contents-sheet pa-0",attrs:{elevation:"0"}},[o("v-row",{staticClass:"width-100 ma-0 custom-tab-wrapper min-h-40px",class:""+this.menu},[o("v-col",{staticClass:"pa-0",on:{touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[o("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel d-flex align-center justify-center",class:{"success--text active":1==e.tab_class},attrs:{id:"tab1"},on:{click:function(t){return e.selectTab(1)}}},[e._v("\n 멤버십\n "),o("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==e.$store.state.product_type&&e.$store.state.tuto&&0==JSON.parse(e.$store.state.tuto)["t7"]?o("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:e.t7_display,type:"t7",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:e.t7_top,tool_left:e.t7_left,tool_translate:"translate(-50%, -100%)",text:"저작권 협의된 교과서 공식 컨텐츠입니다."}}):e._e()],1),o("v-col",{staticClass:"pa-0",class:{"before-divider":![1,2].includes(e.tab)},on:{touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[o("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":2==e.tab_class},attrs:{id:"tab2"},on:{click:function(t){return e.selectTab(2)}}},[e._v("\n 이외 교과서\n "),o("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==e.$store.state.product_type&&e.$store.state.tuto&&0==JSON.parse(e.$store.state.tuto)["t8"]?o("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:e.t8_display,type:"t8",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:e.t8_top,tool_left:e.t8_left,tool_translate:"translate(-50%, -100%)",text:"초,중,고의 모든 영어 교과서가 제공됩니다."}}):e._e()],1),o("v-col",{staticClass:"pa-0",class:{"before-divider":![2,3].includes(e.tab)},on:{touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[o("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":3==e.tab_class},attrs:{id:"tab3"},on:{click:function(t){return e.selectTab(3)}}},[e._v("\n 수능/모의고사\n "),o("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==e.$store.state.product_type&&e.$store.state.tuto&&0==JSON.parse(e.$store.state.tuto)["t9"]?o("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:e.t9_display,type:"t9",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:e.t9_top,tool_left:e.t9_left,tool_translate:"translate(-50%, -100%)",text:"수능, 모의고사 변형문제도 학습 가능합니다."}}):e._e()],1),o("v-col",{staticClass:"pa-0",class:{"before-divider":![4,10].includes(e.tab)},on:{touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[o("button",{staticClass:"custom-tab-btn grey--text width-100 pos-rel",class:{"success--text active":4==e.tab_class},attrs:{id:"tab4"},on:{click:function(t){return e.selectTab(4)}}},[e._v("\n 사용자 교재\n "),o("div",{staticClass:"slider pos-abs width-100 bottom-0"})]),"F"==e.$store.state.product_type&&e.$store.state.tuto&&0==JSON.parse(e.$store.state.tuto)["t10"]?o("ctooltip",{attrs:{wrap_position:"fixed",wrap_display:e.t10_display,type:"t10",arrow_direction:"arrow-down",arrow_left:"50%",arrow_translate:"translate(-50%, -2px)",tool_top:e.t10_top,tool_left:e.t10_left,tool_translate:"translate(-50%, -100%)",text:"선생님께 부여받은 교재를 확인하세요."}}):e._e()],1)],1),o("div",{directives:[{name:"show",rawName:"v-show",value:e.tab<7||10===+e.tab,expression:"tab < 7 || +tab === 10"}],staticClass:"content-child-2"},[o("v-row",{staticClass:"gradeselect-wrapper ma-0 width-100 min-h-40px",staticStyle:{border:"thin solid #edeeef"}},[o("v-col",{staticClass:"pa-0 height-100 d-flex align-center",staticStyle:{"padding-left":"1.25% !important"},attrs:{cols:5}},[1!==e.tab?o("v-row",{staticClass:"ma-0 width-100"},[o("v-col",{staticClass:"pa-0 pr-1 height-100",attrs:{cols:1==e.tab?12:3}},[o("v-overflow-btn",{key:"ov-grade",staticClass:"custom-filter",attrs:{items:e.grade_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"success"},on:{change:e.changeGrade},scopedSlots:e._u([{key:"label",fn:function(){return[o("div",{staticClass:"mx-0"},[e._v("학년")])]},proxy:!0},{key:"append",fn:function(){return[o("v-icon",{attrs:{color:"white"}},[e._v(e._s(e.mdi_menu_down))])]},proxy:!0}],null,!1,2335967587),model:{value:e.select_grade,callback:function(t){e.select_grade=t},expression:"select_grade"}})],1),o("v-col",{staticClass:"pa-0 pr-1 height-100",attrs:{cols:"3"}},[o("v-overflow-btn",{key:"ov-sort",staticClass:"custom-filter",attrs:{items:e.sort_items,dense:"","hide-details":"",solo:"",flat:"","single-line":"","append-icon":"",color:"info","background-color":"#ffa025"},scopedSlots:e._u([{key:"label",fn:function(){return[o("span",{staticClass:"mx-0"},[e._v(" 정렬 ")])]},proxy:!0},{key:"append",fn:function(){return[o("v-icon",{attrs:{color:"white"}},[e._v(e._s(e.mdi_menu_down))])]},proxy:!0}],null,!1,2022726672),model:{value:e.sortBy,callback:function(t){e.sortBy=t},expression:"sortBy"}})],1)],1):1===e.tab&&0===e.membership_mode?o("v-row",{staticClass:"ma-0"},[o("v-col",{staticClass:"pa-0 pr-1 height-100",staticStyle:{width:"max-content"}},e._l(e.membership_publisher,(function(t,s){return o("v-btn",{key:"membership-publisher-"+s,staticClass:"category-btn mr-2",class:e.current_publisher_idx===s?"white--text":"grey--text",attrs:{depressed:"",rounded:"",color:e.current_publisher_idx===s?"success":"grey lighten-4"},on:{click:function(t){return e.changePublisher(s)}}},[e._v("\n "+e._s(t)+"\n ")])})),1)],1):1===e.tab&&1===e.membership_mode?o("v-row",{staticClass:"ma-0 width-100"},[o("v-col",{staticClass:"pa-0 pr-1 height-100"},[o("div",{staticClass:"cursor grey--text",on:{click:e.membershipDetailBackBtnClick}},[o("span",[e._v("<")]),o("span",{staticClass:"underline ml-1"},[e._v("저작권 계약 교과서 목록")])])])],1):e._e()],1),o("v-col",{staticClass:"pa-0",staticStyle:{"align-self":"center","padding-right":"3.5% !important"},attrs:{cols:4,offset:"3","offset-sm":3}},[o("v-row",[o("v-text-field",{directives:[{name:"show",rawName:"v-show",value:1!==e.membership_mode,expression:"membership_mode !== 1"}],staticClass:"search-input float-right",staticStyle:{width:"90%"},attrs:{"append-icon":e.search_keyword?"":e.mdi_magnify,id:"search",label:"교재명, 단원명, 제작자",dense:"",solo:"",outlined:"",rounded:"","single-line":"","hide-details":"","full-width":!0,clearable:!0,"clear-icon":e.mdi_close_circle,color:"success"},on:{blur:e.searchBlur,keyup:function(t){1===e.tab?e.searchKeyupMembership(t):e.searchKeyup(t)}},model:{value:e.search_keyword,callback:function(t){e.search_keyword=t},expression:"search_keyword"}})],1)],1)],1),1!==e.tab||0!==e.membership_mode?o("v-row",{staticClass:"mx-0"},[o("v-col",{staticClass:"py-0 pos-rel px-0",attrs:{cols:"12"}},[o("v-data-table",{key:"book-list",staticClass:"custom-dt over-y-scroll",attrs:{id:"book-list-dttbl",headers:e.headers,items:e.books,"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:e.expanded,"item-key":e.item_key,"items-per-page":e.items_per_page,"no-data-text":"등록된 교재가 없습니다.","no-results-text":"등록된 교재가 없습니다.","hide-default-footer":"","hide-default-header":"","fixed-header":"","single-select":"",sortBy:e.sortBy,search:e.tableSearch,"custom-filter":e.filterTabs,"custom-sort":e.sortTabs,height:"64vh"},on:{"click:row":e.selectRow},scopedSlots:e._u([{key:"item.data-table-expand",fn:function(t){var s=t.isExpanded,i=t.isSelected,a=t.item;return[o("div",[o("v-lazy",{attrs:{transition:""}},[o("v-icon",{directives:[{name:"show",rawName:"v-show",value:s,expression:"isExpanded"}],staticClass:"act-ico",attrs:{ripple:!1,absolute:""}},[e._v(e._s(e.mdi_menu_down))])],1),i&&e.loading_unit?[o("icon-rolling",{attrs:{color:"#2196f3",size:"16",strokewidth:"12",absolute:""}})]:e._e(),o("v-icon",{directives:[{name:"show",rawName:"v-show",value:!s&&!(i&&e.loading_unit),expression:"!isExpanded && !(isSelected && loading_unit)"}],staticClass:"act-ico",class:{"grey--text text--lighten-2":e.mockexams_block[a.books_id]},attrs:{ripple:!1,absolute:""}},[e._v(e._s(e.mdi_menu_right))])],2)]}},{key:"item.bookmark",fn:function(t){var s=t.item;return[o("v-lazy",{attrs:{"min-height":"40px",transition:""}},[o("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(t){return t.stopPropagation(),e.toggleBookmark(s)},touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[1==Number(s.bookmark)?o("v-icon",{attrs:{size:"80%"}},[e._v(e._s(e.mdi_heart))]):o("v-icon",{staticClass:"act-ico",attrs:{size:"80%"}},[e._v(e._s(e.mdi_heart_outline))])],1)],1)]}},{key:"item.info",fn:function(t){var s=t.item;return[o("v-row",{staticClass:"width-100 d-flex align-center min-h-40px",attrs:{dense:"","no-gutters":""}},[o("v-col",{staticClass:"row-name d-flex align-center",attrs:{cols:"8"}},[o("div",{staticClass:"book-title",class:{"grey--text-d7":s.disable},domProps:{innerHTML:e._s(1!==e.tab?s.search_name||s.schedule_name||s.bookname:s.schedule_name||s.bookname)}}),s.subtitle?o("div",{staticClass:"book-subtitle before-divider ml-3 grey--text",domProps:{textContent:e._s(s.subtitle)}}):e._e(),11===+s.booktype||s.booktype_2===e.TAG_HOT||3===+s.origin_category&&31===+s.booktype?o("div",{staticClass:"book-subtitle ml-1 fw-300 booktag hot",class:{"opacity-half":s.disable}},[e._v("\n HOT\n ")]):s.booktype_2===e.TAG_NEW||1==s.category&&0===Number(s.booktype)||2==s.category&&11!=s.booktype||3==s.category&&0===Number(s.booktype)?o("div",{staticClass:"book-subtitle ml-1 fw-300 booktag new",class:{"opacity-half":s.disable}},[e._v("\n NEW\n ")]):s.booktype_2===e.TAG_VOCA?o("div",{staticClass:"book-subtitle ml-1 fw-300 booktag voca",class:{"opacity-half":s.disable}},[e._v("\n VOCA\n ")]):e._e(),e.HasMockExam(s.category,s.books_id,s)&&!s.mockexam||s.mockexam&&10===+s.category&&31===+s.booktype?o("div",{staticClass:"mockexam-div height-100 before-divider ml-3"},[o("v-btn",{staticClass:"px-xl-3 px-lg-2",class:{"max-w-46px ml-1":e.is_mobile},attrs:{elevation:"0",text:"",large:"",ripple:!1,color:"black",tile:""},on:{click:function(t){return t.stopPropagation(),e.openMockExamConfirm(s.books_id,s.bookname,null,null,+s.booktype)}}},[o("v-icon",{staticStyle:{"margin-bottom":"-1px"},attrs:{size:e.$store.state.screen_width.fontRemToPx(1.5).toFixed(2),left:""}},[e._v(e._s(e.mdi_play_circle_outline))]),o("b",{staticClass:"ml-n1",domProps:{textContent:e._s(e.setMockName(s))}})],1)],1):e._e()]),o("v-col",{staticClass:"row-progress d-flex align-center justify-center",attrs:{cols:"4"}},[o("v-lazy",{staticClass:"lazy-progress"},[o("div",{staticClass:"progress-wrap pos-rel width-100 height-100"},[o("b",{staticClass:"under-text fw-700",class:{"grey--text text--lighten-1":!s.progress}},[e._v("  "+e._s(s.progress)+"%  ")]),o("div",{staticClass:"progress-gauge pos-abs height-100 left-0 top-0 overflow-hidden text-right",style:"width:"+s.progress+"%"},[o("b",{staticClass:"white--text tw-800"},[e._v("  "+e._s(s.progress)+"%  ")])])])])],1)],1)]}},{key:"expanded-item",fn:function(t){var s=t.item;return[e.$data[e.getScheduleBookId(s)]?[o("unit-template",{attrs:{data:e.$data,menu:e.menu,headers:e.headers,item:s,is_mobile:e.is_mobile,getScheduleBookId:e.getScheduleBookId,setListBtnText:e.setListBtnText,setBtnText:e.setBtnText,grammarConfirm:e.grammarConfirm,vmaConfirm:e.vmaConfirm,shadowreadingConfirm:e.shadowreadingConfirm,openMockExamConfirm:e.openMockExamConfirm,studyConfirm:e.studyConfirm,testConfirm:e.testConfirm,alertAdvanced:e.alertAdvanced}})]:e._e()]}}],null,!0)}),o("div",{directives:[{name:"show",rawName:"v-show",value:e.scroll_loading,expression:"scroll_loading"}],staticClass:"linear-activity overflow-hidden width-100 pos-abs bottom-0"},[o("div",{staticClass:"indeterminate pos-rel width-100 height-100"})])],1)],1):e._e(),1===e.tab&&0===e.membership_mode?o("v-row",{staticClass:"mx-0 membership-row"},[o("v-col",{staticClass:"py-0 pos-rel px-0 d-none",attrs:{cols:"12"}},[o("v-data-table",{staticClass:"temp-table",attrs:{id:"book-list-dttbl"}})],1),o("v-col",{staticClass:"py-0 pos-rel px-0 membership-item-wrapper",attrs:{cols:"12"}},[e.final_keyword&&(!e.membership_search_books||0==e.membership_search_books.length)||-1===this.membership_books.findIndex((function(e){return e.publisher==t.membership_publisher[t.current_publisher_idx]}))?[o("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"}},[e._v("\n 등록된 교재가 없습니다.\n ")])]:[o("v-col",{staticClass:"membership-item-wrap"},e._l(e.membership_search_books?e.membership_search_books:e.membership_books,(function(t,i){return o("v-lazy",{directives:[{name:"show",rawName:"v-show",value:1==t.category&&t.publisher===e.membership_publisher[e.current_publisher_idx],expression:"\n item.category == 1 &&\n item.publisher ===\n membership_publisher[current_publisher_idx]\n "}],key:"membership_table_"+i,attrs:{options:{threshold:.5},transition:"fade-transition"}},[o("v-card",{staticClass:"cursor",on:{click:function(s){return e.membershipBookClick(t)}}},[o("div",{staticClass:"d-flex",class:[t.disable?"book-disabled pos-rel":""]},[t.disable?o("div",{staticClass:"pos-abs lock-div"},[o("img",{attrs:{src:s("1195")}})]):e._e(),o("img",{staticClass:"book-cover-img",attrs:{src:e.CDN+"/2/"+t.cover_path,alt:"book-cover",rel:"preload"}}),o("div",{staticClass:"membership-book-info"},[o("span",{staticClass:"font-weight-bold badge",class:e.membership_customer_books_id.includes(t.id)?"grey--text":""},[e._v(e._s(e.membership_customer_books_id.includes(t.id)?"사용자 교재":"저작권 계약"))]),t.search_name?o("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:e._s(t.bookname.split("_")[0].replace(new RegExp(e.final_keyword,"gi"),"$&"))}}):o("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[e._v("\n "+e._s(t.bookname&&t.bookname.split("_")[0])+"\n ")]),o("div",{staticClass:"mb-1 d-flex"},[t.search_name?o("div",[o("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing",domProps:{innerHTML:e._s(t.publisher.replace(new RegExp(e.final_keyword,"gi"),"$&"))}}),o("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[e._v(e._s(" 영어 교과서"))])]):o("span",{staticClass:"font-weight-bold fs-1p1rem book-title-spacing"},[e._v("\n "+e._s(t.publisher+" 영어 교과서")+"\n ")]),t.search_name?o("span",{staticClass:"grey--text text--darken-1 fs-1p1rem ml-1",domProps:{innerHTML:e._s(t.bookname.split(" ")[t.bookname.split(" ").length-1].replace(new RegExp(e.final_keyword,"gi"),"$&"))}}):o("span",{staticClass:"grey--text text--darken-1 fs-1p1rem ml-1"},[e._v("\n "+e._s(t.bookname&&t.bookname.split(" ")[t.bookname.split(" ").length-1])+"\n ")])]),o("div",{staticClass:"membership-tag-wrap"},e._l(["어휘","대화문","본문","기출문제"],(function(t,s){return o("span",{key:"membership_tag_"+s,staticClass:"membership-tag"},[e._v(e._s(t))])})),0)])])])],1)})),1)]],2)],1):e._e()],1),o("div",{directives:[{name:"show",rawName:"v-show",value:7==e.tab,expression:"tab == 7"}]},[o("book-list-latest",{key:"book-list-3",attrs:{type:"school",query:e.query_startdate,setBookInfo:e.setBookInfo,setBookInfoVMA:e.setBookInfoVMA,setBookInfoGRAMMAR:e.setBookInfoGRAMMAR,getLearningStatus:e.getLearningStatus,tab:e.tab,updateSingleUnit:e.updateSingleUnit,unitStatusChecker:e.unitStatusChecker,updateTmpSelUpdate:e.updateTmpSelUpdate}})],1)],1)],1)],1),o("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(t){return e.closeDialog("bookmark_dialog")}},model:{value:e.bookmark_dialog,callback:function(t){e.bookmark_dialog=t},expression:"bookmark_dialog"}},[o("v-card",[o("v-card-text",{staticClass:"text-center black--text title",class:[e.is_mobile?"py-3":"py-6"]},[o("v-row",[o("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[o("span",{staticClass:"black--text"},[e._v("북마크 교재")]),o("span",{domProps:{textContent:e._s(e.bookmarktext)}}),e._v("되었습니다.\n ")])],1)],1)],1)],1),o("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(t){return e.closeDialog("alert_dialog")}},model:{value:e.alert_dialog,callback:function(t){e.alert_dialog=t},expression:"alert_dialog"}},[o("v-card",[o("v-card-text",{staticClass:"text-center black--text title",class:[e.is_mobile?"py-3":"py-6"]},["adm_null"==e.alert_type?[e._v("다른 학원의 수업자료를 무상 공유해드립니다."),o("br"),e._v("배정된 담당자를\n 통해 문의하세요!")]:[e._v("해당 교재는 비활성화 되어있습니다."),o("br"),e._v("담당 선생님께\n 문의하세요!")]],2)],1)],1),o("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":e.closeLearningDialog},model:{value:e.learning_dialog,callback:function(t){e.learning_dialog=t},expression:"learning_dialog"}},[o("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[o("v-card-text",{staticClass:"text-center black--text title",class:[e.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[o("v-row",[o("v-col",{staticClass:"text-center px-0",class:{"pb-1":e.is_mobile},attrs:{cols:"12"}},[o("h3",{staticClass:"title"},[o("b",{domProps:{textContent:e._s(e.dialog_title)}})])]),[1,11,12,16,17].includes(e.learning_dialog_type)?e._e():o("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[o("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:e._s(e.setBookName)}}),o("br"),o("span",{staticClass:"grey--text",domProps:{textContent:e._s(e.setUnitName)}})])],1)],1),o("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[o("v-row",{attrs:{dense:""}},[0==e.learning_dialog_type?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudy({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:[1,11,16].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3",attrs:{cols:"12",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("확인")])])],1)]:2==e.learning_dialog_type?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goTest({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:3==e.learning_dialog_type?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:e.openRestudyDialog}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[e.isProcessResult?o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])]):o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goResult({type:e.STUDY})}}},[o("span",{staticClass:"title"},[e._v("성적표")])])],1)]:[4].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudy({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudy({clear:!0})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_right_btn)}})])],1)]:5==e.learning_dialog_type?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goTest({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[e.isProcessResult?o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])]):o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goResult({type:e.TEST})}}},[o("span",{staticClass:"title"},[e._v("성적표")])])],1)]:6==e.learning_dialog_type?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goTest({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goTest({clear:!0})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_right_btn)}})])],1)]:7!=e.learning_dialog_type||e.isProcessResult?[8,13].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyVMA({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:[9,14].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyVMA({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[e.isProcessResult?o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])]):o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.goResultVMA}},[o("span",{staticClass:"title"},[e._v("성적표")])])],1)]:[10,15].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyVMA({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyVMA({clear:!0})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_right_btn)}})])],1)]:[28].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyGRAMMAR({clear:!0})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:[29,30].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyGRAMMAR({clear:!1})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyGRAMMAR({clear:!0})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_right_btn)}})])],1)]:[32].includes(e.learning_dialog_type)?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goStudyGRAMMAR({clear:!0})}}},[o("span",{staticClass:"title",domProps:{textContent:e._s(e.dialog_left_btn)}})])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:[12,17].includes(e.learning_dialog_type)&&!e.isProcessResult?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:e.goResultVMA}},[o("span",{staticClass:"title"},[e._v("성적표")])])],1),o("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:99==e.learning_dialog_type?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:e.goShadowReading}},[o("span",{staticClass:"title"},[e._v("확인")])])],1),o("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:e._e():[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goResult({type:e.TEST})}}},[o("span",{staticClass:"title"},[e._v("성적표")])])],1),o("v-col",{staticClass:"py-3 border-ede",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeLearningDialog}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]],2)],1),o("div",{staticClass:"pos-abs border-ede thin-l width-100 height-100 white",class:[e.restudy_dialog?"opacity-1":"opacity-0"],attrs:{id:"from-right-slide-dialog"}},[o("v-card-text",{staticClass:"text-center pa-0 pos-rel top-0",attrs:{id:"dialog-new-text"}},[o("div",{staticClass:"pos-abs rd-arrow"},[o("v-btn",{attrs:{"x-large":"",icon:"",ripple:!1},on:{click:e.closeRestudyDialog}},[o("v-icon",[e._v(e._s(e.mdi_arrow_left))])],1)],1),o("v-row",{attrs:{align:"center",justify:"center","no-gutters":""}},[o("v-col",{staticClass:"text-center cursor-pointer",class:{active:e.restudy_type==e.FLASHCARD},attrs:{cols:"5"},on:{click:function(t){return e.selectRestudyType(e.FLASHCARD)},touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[o("div",[o("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[e._v(e._s(e.mdi_volume_high))]),o("br"),o("b",{staticClass:"fs-title"},[e._v("리스닝 학습")]),o("br"),o("br"),o("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"}},[e._v("\n 무제한 듣기 학습\n ")])],1)]),o("v-col",{staticClass:"text-center cursor-pointer",class:{active:e.restudy_type==e.STUDY},attrs:{cols:"5"},on:{click:function(t){return e.selectRestudyType(e.STUDY)},touchstart:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)},mousedown:function(t){return t.stopPropagation(),e.$store.dispatch("clickSound",t)}}},[o("div",{staticClass:"border-ede thin-l"},[o("v-icon",{staticClass:"py-2",attrs:{size:"40"}},[e._v(e._s(e.mdi_sync))]),o("br"),o("b",{staticClass:"fs-title"},[e._v("전체 재학습")]),o("br"),o("br"),o("div",{staticClass:"btn-style subtitle-1 ma-auto",staticStyle:{"max-width":"80%",width:"80%",padding:"2px 0"},domProps:{textContent:e._s(e.restudy_cnt_ment)}})],1)])],1)],1),o("v-card-actions",{staticClass:"text-center pos-abs bottom-0 width-100 align-start",staticStyle:{height:"28%"},attrs:{id:"dialog-new-actions"}},[o("v-row",{attrs:{dense:"","no-gutters":"",justify:"center"}},[o("v-col",{attrs:{cols:"4"}},[o("v-btn",{staticClass:"subtitle-1",attrs:{color:"success",rounded:"",block:"",depressed:"",large:"",height:"2.7rem !important",ripple:!1},on:{click:e.startRestudy}},[o("b",{staticClass:"fw-800"},[e._v("재학습 시작")])])],1)],1)],1)],1)],1)],1),o("v-dialog",{attrs:{scrollable:"",width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(t){e.restudy_false_dialog=!1}},model:{value:e.restudy_false_dialog,callback:function(t){e.restudy_false_dialog=t},expression:"restudy_false_dialog"}},[o("v-card",[o("v-card-text",{staticClass:"text-center black--text title",class:[e.is_mobile?"py-2":"py-8"]},[o("v-row",[o("v-col",{staticClass:"text-center px-0",attrs:{cols:"12"}},[o("span",{staticClass:"title"},[e._v("재학습 가능 횟수(3회)를 모두 학습하셨습니다.")])])],1)],1),o("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[o("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[o("v-col",{staticClass:"py-3",attrs:{cols:"12"}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){e.restudy_false_dialog=!1}}},[o("span",{staticClass:"title"},[e._v("확인")])])],1)],1)],1)],1)],1),o("v-dialog",{attrs:{scrollable:!1,width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":e.closeMockExamConfirm},model:{value:e.mockexam_dialog,callback:function(t){e.mockexam_dialog=t},expression:"mockexam_dialog"}},[o("v-card",{staticClass:"pos-rel",staticStyle:{overflow:"hidden"}},[o("v-card-text",{staticClass:"text-center black--text title",class:[e.is_mobile?"py-2":"py-8"],attrs:{id:"dialog-old-text"}},[o("v-row",[o("v-col",{staticClass:"text-center px-0",class:{"pb-1":e.is_mobile},attrs:{cols:"12"}},[o("h3",{staticClass:"title"},[e.sel_mockexam?[e.sel_mockexam.schedule_id&&!e.sel_mockexam.new_mockexam?[o("b",[e._v("\n 듣기"+e._s(e.sel_mockexam.booktype&&31===+e.sel_mockexam.booktype?"평가를":"학습을")+"\n 시작하시겠습니까?\n ")])]:[e.sel_mockexam.new_mockexam?o("b",[e._v("\n "+e._s(e.sel_mockexam.cnttext)+"를 시작하시겠습니까?\n ")]):20==e.sel_mockexam.question_cnt?o("b",[e._v("듣기평가를 시작하시겠습니까?")]):o("b",[e._v("모의평가를 시작하시겠습니까?")])]]:e._e()],2)]),o("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[e.sel_mockexam&&e.sel_mockexam.bookname?o("span",{staticClass:"grey--text font-weight-bold",domProps:{textContent:e._s(e.sel_mockexam.bookname)}}):e._e(),o("br"),e.sel_mockexam&&e.sel_mockexam.unit_name?o("span",{staticClass:"grey--text",domProps:{textContent:e._s(e.sel_mockexam.unit_name)}}):e._e()])],1)],1),o("v-card-actions",{staticClass:"text-center border-ede thin-t py-0",attrs:{id:"dialog-old-actions"}},[e.sel_mockexam?o("v-row",{attrs:{dense:""}},[e.sel_mockexam.schedule_id?[null===e.sel_mockexam.record_id?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goMockExam(!1)}}},[o("span",{staticClass:"title"},[e._v("확인")])])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeMockExamConfirm}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goMockExam(!1)}}},[o("span",{staticClass:"title"},[e._v("재평가")])])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goMockExam(!0)}}},[o("span",{staticClass:"title"},[e._v("성적표")])])],1)]]:[null===e.sel_mockexam.record_id?[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goMockExam(!1)}}},[o("span",{staticClass:"title"},[e._v("확인")])])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.closeMockExamConfirm}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)]:[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goMockExam(!1)}}},[o("span",{staticClass:"title"},[e._v("재시험")])])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:function(t){return e.goMockExam(!0)}}},[o("span",{staticClass:"title"},[e._v("성적표")])])],1)]]],2):e._e()],1)],1)],1),o("v-dialog",{attrs:{"content-class":"cover-dialog",transition:!1,persistent:""},on:{"click:outside":function(t){e.coverimg_dialog=!1}},model:{value:e.coverimg_dialog,callback:function(t){e.coverimg_dialog=t},expression:"coverimg_dialog"}},[o("v-card",{staticClass:"ma-auto"},[o("img",{staticStyle:{"max-height":"40vh",height:"40vh"},attrs:{src:e.coverimg_url}})])],1),e.$store.state.product_type==e.PRODUCT_FREE?o("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(t){return e.closeDialog("prevent_free_dialog")}},model:{value:e.prevent_free_dialog,callback:function(t){e.prevent_free_dialog=t},expression:"prevent_free_dialog"}},[o("v-card",[o("v-card-text",{staticClass:"text-center black--mode title",class:[e.is_mobile?"py-3":"py-8"]},[e.is_grammar||e.is_ng_book?o("span",[e._v("\n 해당 유닛은 유료 결제 이후 학습 가능합니다.\n ")]):e.is_vip_book?o("span",[e._v("\n 멤버십 교과서는 정식가입 후 이용 가능합니다.\n ")]):o("span",[e._v(" 해당 유닛은 유료 결제 이후 학습 가능합니다. ")])])],1)],1):e._e(),o("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},on:{"click:outside":function(t){return e.closeDialog("prevent_advanced_dialog")}},model:{value:e.prevent_advanced_dialog,callback:function(t){e.prevent_advanced_dialog=t},expression:"prevent_advanced_dialog"}},[o("v-card",[o("v-card-text",{staticClass:"text-center black--text title",class:[e.is_mobile?"py-3":"py-8"]},[e._v("올해 개정된 교육과정으로"),o("br"),e._v("조만간 업데이트 될\n 예정입니다.")])],1)],1),o("v-dialog",{attrs:{width:"31em","max-width":"420px",transition:!1,persistent:""},model:{value:e.$store.state.a_info_dialog,callback:function(t){e.$set(e.$store.state,"a_info_dialog",t)},expression:"$store.state.a_info_dialog"}},[o("v-card",[o("v-card-text",{staticClass:"text-center black--text title",class:[e.is_mobile?"py-3":"py-8"]},[o("v-row",[o("v-col",{staticClass:"text-center grey--text px-0",attrs:{cols:"12"}},[o("v-icon",{staticStyle:{width:"1.1rem !important",height:"1.1rem !important","margin-top":"-0.2rem"},attrs:{color:"success"}},[e._v(e._s(e.mdi_information_outline))]),e._v(" "),o("span",{staticClass:"success--text"},[e._v("잠깐! 체험해보셨나요?")]),o("br"),o("div",{staticStyle:{width:"100%",height:"12px"}}),o("span",[e._v("교과서 및 모의고사의 "),o("span",{staticClass:"black--text"},[e._v("심화학습")]),e._v("에는")]),o("br"),o("span",[o("span",{staticClass:"black--text"},[e._v("변형문제, 내신문제")]),e._v("가 포함되어\n 있습니다.")])],1)],1)],1),o("v-card-actions",{staticClass:"text-center border-ede thin-t py-0"},[o("v-row",{attrs:{dense:""}},[o("v-col",{staticClass:"py-3 border-ede thin-r",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"success",text:"","x-large":"",block:"",ripple:!1},on:{click:e.freeGomain}},[o("span",{staticClass:"title"},[e._v("종료")])])],1),o("v-col",{staticClass:"py-3",attrs:{cols:"6",dense:""}},[o("v-btn",{attrs:{color:"grey",text:"","x-large":"",block:"",ripple:!1},on:{click:e.freeCancel}},[o("span",{staticClass:"title"},[e._v("취소")])])],1)],1)],1)],1)],1),o("v-dialog",{attrs:{scrollable:"",width:"35em","max-width":"450px",transition:!1,persistent:""},model:{value:e.trial_guide_dialog,callback:function(t){e.trial_guide_dialog=t},expression:"trial_guide_dialog"}},[o("v-card",[o("v-card-text",{staticClass:"text-center",class:[e.is_mobile?"py-2":"py-8 pt-3 pb-2"]},[o("v-row",[o("v-col",{staticClass:"title text-center px-0 pb-0 pt-2",attrs:{cols:"12"}},[o("h3",{staticClass:"success--text pb-3 mb-2",staticStyle:{"border-bottom":"1px dashed #d8d8d8","font-size":"1.2rem","font-weight":"800 !important"}},[e._v("\n "+e._s(e.trial_title)+"\n ")])]),o("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:e._s(e.trial_html)}})],1)],1),o("v-card-actions",{staticClass:"text-center border-ede thin-t pa-0"},[o("v-row",{attrs:{dense:"","no-gutters":"",align:"center",justify:"center"}},[o("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[o("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(t){e.trial_guide_dialog=!1,e.closeTrialGuide()}}},[o("span",{staticClass:"title white--text"},[e._v("확인")])])],1)],1)],1)],1)],1)],1)},Sh=[];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 Th=10;var Ah={name:"book-school",mixins:[Gd],components:{UnitTemplate:sh},data(){return{STUDY:c["ab"],TEST:c["gb"],FLASHCARD:c["q"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],MOCK_EXAM:c["F"],GRAMMAR_THEORY:c["t"],GRAMMAR_BASICS:c["r"],GRAMMAR_DEEP:c["s"],CDN:c["j"],BOOK_NORMAL:c["g"],BOOK_BANK:c["d"],BOOK_VOCA:c["i"],BOOK_LISTENING:c["f"],BOOK_GRAMMAR:c["e"],TAG_NEW:c["eb"],TAG_VOCA:c["fb"],TAG_HOT:c["db"],PRODUCT_FREE:c["O"],UCLASS_ETC:c["ib"],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:[],membership_mode:0,membership_book:null,membership_publisher:["NE능률","지학사"],membership_books:[],membership_search_books:null,membership_customer_books_id:c["m"]?[99721,99727,99728,99732,99737]:[198082,198083,198089,198092,198099],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:Th,study_progress:"",alert_dialog:!1,dialog_title:"",dialog_left_btn:"",dialog_right_btn:"",bookmark_disabled:!1,bookmark_dialog:!1,bookmarktext:"",learning_dialog:!1,learning_dialog_type:0,learning_dialog_vma:null,coverimg_dialog:!1,coverimg_url:"",restudy_dialog:!1,restudy_type:c["q"],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:ft["v"],mdi_menu_down:ft["L"],mdi_menu_right:ft["M"],mdi_heart:ft["G"],mdi_heart_outline:ft["H"],mdi_arrow_left:ft["f"],mdi_volume_high:ft["Z"],mdi_sync:ft["X"],mdi_play_circle_outline:ft["U"],mdi_information_outline:ft["J"],mdi_close_circle:ft["C"],mdi_magnify:ft["K"],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]&&[c["g"],c["d"],c["f"]].includes(this.expanded[0].booktype_1))if(this.expanded[0].booktype_1==c["d"]){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==c["f"]){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=ht(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=ht(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)}},mounted(){1==this.tab&&(this.$nextTick(()=>{let t=document.getElementById("tab1");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(1))},methods:{searchKeyupMembership(t){if(1===this.tab&&(13===t.keyCode||"Enter"===t.key)){this.final_keyword=this.search_keyword;const t=this.final_keyword,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.includes(t)||o.includes(t)||e.unit_names&&e.unit_names.includes(t)});let s=[],i=!1;for(let o=0,a=e.length;ot.table_key==e[o].table_key),n=ht(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=ht(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(1===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=1),this.setTab(this.last_tab),this.last_tab=null,this.expanded=[])},changePublisher(t){this.current_publisher_idx=t,this.search_keyword="",this.final_keyword=""},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=Th,[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&&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;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);let n=10===+t.category?3:+t.category;a>0?this.study_progress=`${i} / ${a}${e}`:(this.study_progress="",3===n&&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===n&&1===+t.booktype&&t.mockexam?1:t.unit_cnt}),t.cover_path&&(1===n&&2===t.origin_category&&(n=2),this.coverimg_url=`${c["j"]}/${n}/${window.encodeURIComponent(t.cover_path)}`);let r=this.getScheduleBookId(t);this.opened_item=this.$data[r],this.final_keyword&&this.searchUnitBg(t,r);const l={row:document.querySelector(".v-data-table__expanded")};if(s.row&&l.row){const t=s.row.getBoundingClientRect().top,e=l.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:break}console.log("end"),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=ht(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=ht(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=ht(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=ht(this.$data[i])}if(void 0==i)return;let a,n=[],r=ht(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(`${c["v"]}/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,c["F"]),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,d=o>0?Math.round(a/o*100):0;r.complete_unit_cnt=String(a),r.progress=d,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(`${c["v"]}/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(`${c["v"]}/schedule/togglebookmark/${t.bookmark}`,e).then(e=>{if(200==e.status){let e=1==+t.bookmark?0:1,s=ht(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=ht(o);t.bookmark=e,this.books.splice(i,1,Object.freeze(t));break}this.bookmarktext=e?"에 추가":"에서 삭제",this.bookmark_dialog=!0,window.dialog_timeout=setTimeout(()=>{this.bookmark_dialog=!1},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!=c["ab"])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,c["gb"],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,c["gb"],s,this.setLearningDialog),!1;if(console.log(t.test_cnt),window.is_restudy>0&&Number(t.test_cnt)>2)return this.clickSound(),this.sel_unit=t,s=7,this.setDialogText(this.expanded[0],t,c["gb"],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,c["gb"],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=ht(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(`${c["v"]}/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})}}},Mh=Ah,Dh=(s("029d"),Object(_["a"])(Mh,$h,Sh,!1,null,null,null)),Ih=Dh.exports;g()(Dh,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDataTable:nh["a"],VDialog:E["a"],VIcon:xt["a"],VLazy:H["a"],VOverflowBtn:rh["a"],VRow:L["a"],VSheet:re["a"],VSwitch:se["a"],VTextField:O["a"]});var Ph=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/learningschedule"}},[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:"/schedule/learningbook"}},[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),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)},Rh=[],Nh={name:"schedule-index",components:{Learning:Ed,LeftBarStatic:ds["a"]},data(){return{dialog1:!1,is_mobile:!1}},computed:{routeCheck:function(){let t;switch(this.$route.name){case"schedule-learningschedule":t=1;break;case"schedule-learningbook":t=2;break;default:}return t},getLearningStatus:function(){return this.$store.getters.getLearningStatus}},mounted(){let t=this.$store.state.cid,e=this.$store.state.uid,s=`${c["v"]}/schedule/${t}/user/${e}`;this.$axios.get(s).then(t=>{204==t.status&&(this.dialog1=!0,window.setTimeout(()=>{this.dialog1=!1},2500))})},created(){this.$store.state.is_mobile&&(this.is_mobile=!0)}},Eh=Nh,Bh=(s("d808"),Object(_["a"])(Eh,Ph,Rh,!1,null,null,null)),Lh=Bh.exports;g()(Bh,{VCard:I["a"],VCardText:P["b"],VDialog:E["a"]});var Oh=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-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:"/report/lookup"}},[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:"/report/analysis"}},[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("레포트 분석")])])]),s("router-link",{staticClass:"vertical-tab",attrs:{to:"/report/leveltest"}},[s("div",{class:[3==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)],1)},zh=[],Vh={name:"report-index",components:{Learning:Ed,LeftBarStatic:ds["a"]},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(){}},qh=Vh,jh=(s("ab7e"),Object(_["a"])(qh,Oh,zh,!1,null,null,null)),Gh=jh.exports,Fh=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)},Uh=[],Wh={name:"leaderboard-index",components:{LeftBarStatic:ds["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}}},Hh=Wh,Kh=(s("de2b"),Object(_["a"])(Hh,Fh,Uh,!1,null,null,null)),Yh=Kh.exports,Zh=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 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:"/settings/faq"}},[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("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)},Jh=[],Qh={name:"settings-index",components:{LeftBarStatic:ds["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}}},Xh=Qh,tu=(s("f0bf"),Object(_["a"])(Xh,Zh,Jh,!1,null,null,null)),eu=tu.exports;g()(tu,{VCol:R["a"],VContainer:N["a"],VRow:L["a"]});var su=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},iu=[],ou={name:"pocketnote-index",components:{Learning:Ed},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(`${c["v"]}/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)})}},au=ou,nu=(s("6535"),Object(_["a"])(au,su,iu,!1,null,null,null)),ru=nu.exports;g()(nu,{VBtn:D["a"],VCol:R["a"],VRow:L["a"],VSwitch:se["a"]});var lu=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 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 d-none",attrs:{to:"/guide/manual"}},[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("사용자 매뉴얼")])])]),s("router-link",{staticClass:"vertical-tab d-none",attrs:{to:"/guide/video"}},[s("div",{class:[3==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("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)},cu=[],du={data(){return{is_mobile:!1}},components:{LeftBarStatic:ds["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")}}},hu=du,uu=(s("16ca"),Object(_["a"])(hu,lu,cu,!1,null,null,null)),_u=uu.exports;g()(uu,{VCol:R["a"],VContainer:N["a"],VRow:L["a"]});var pu=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)},gu=[],mu=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)}}})},bu=[],vu={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()}},fu=vu,wu=Object(_["a"])(fu,mu,bu,!1,null,null,null),ku=wu.exports;window.timeout1=null,window.timeout2=null,window.timeout3=null,window.interval1=[];var xu={name:"checkup",components:{Loading:rt,TextareaAutosize:ku},data(){return{SOUND_CDN:c["T"],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:ft["B"],mdi_arrow_right:ft["g"],mdi_music:ft["O"],mdi_music_off:ft["P"]}},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(`${c["v"]}/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["a"].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=ht(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()}},yu=xu,Cu=(s("a134"),s("40dc")),$u=Object(_["a"])(yu,pu,gu,!1,null,null,null),Su=$u.exports;g()($u,{VAppBar:Cu["a"],VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"]});var Tu=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_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)]}))],2)],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)},Au=[],Mu=s("fa33"),Du=s("2430");const Iu=new Date,Pu=Iu.getTime()+6e4*Iu.getTimezoneOffset(),Ru=new Date(Pu+324e5),Nu=Ru.getFullYear(),Eu=Ru.getMonth()+1,Bu=Ru.getDate();var Lu={name:"schedule-learning-schedule",data(){return{STUDY:c["ab"],TEST:c["gb"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],en:Du["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:Nu,sel_month:Eu,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:ft["a"],mdi_calendar_month:ft["j"],mdi_chart_arc:ft["m"],mdi_chevron_down:ft["s"],mdi_chevron_up:ft["y"]}},components:{Datepicker:Mu["a"],IconRolling:it},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!==c["i"])switch(e){case c["g"]:case c["f"]:this.sel_record.type==c["ob"]||this.sel_record.type==c["ab"]?t="학습":this.sel_record.type==c["gb"]?t=4!=s||Number(this.sel_record.words_cnt)?"학습":"시험":0===this.sel_record.type.indexOf(c["F"])&&(t="학습");break;case c["d"]:t="학습";break;default:break}else switch(e){case c["i"]:this.sel_record.type==c["rb"]?t="학습":this.sel_record.type==c["pb"]&&(t="시험");break;default:this.sel_record.type==c["ab"]?t="학습":this.sel_record.type==c["gb"]&&(t="시험");break}else switch(e){case c["g"]:case c["f"]:this.sel_record.type==c["ob"]||this.sel_record.type==c["ab"]?t="학습":this.sel_record.type==c["gb"]?t=4!=s||Number(this.sel_record.words_cnt)?"학습":"시험":0===this.sel_record.type.indexOf(c["F"])&&(t="학습");break;case c["d"]:t="학습";break;case c["i"]:this.sel_record.type==c["rb"]?t="학습":this.sel_record.type==c["pb"]&&(t="시험");break;case c["e"]:case c["h"]:[c["t"],c["Z"]].includes(this.sel_record.type)?t=this.sel_record.type==c["t"]?"이론":"동화":[c["r"],c["Y"]].includes(this.sel_record.type)?t="기본":[c["s"],c["V"]].includes(this.sel_record.type)&&(t=this.sel_record.type===c["s"]?"심화":"실전");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 c["ab"]:case c["rb"]:(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!==c["i"];switch(e){case"class":[c["ab"],c["A"],c["rb"],c["r"],c["Y"]].includes(t.type)?i="success":[c["gb"],c["a"],c["pb"],c["s"],c["V"]].includes(t.type)?i="info2":t.type==c["p"]?i="primary":[c["ob"],c["t"],c["Z"]].includes(t.type)?i="warning":0===t.type.indexOf(c["F"])&&(i="info2");break;case"text":if(0===n)switch(o){case 1:case 4:switch(a){case c["g"]:case c["f"]:t.type===c["ob"]?i="어휘":t.type===c["ab"]?i=4!==o||Number(t.words_cnt)?4===o?"본문":1===o&&31===+t.booktype?"지문":"문장":"학습":t.type===c["gb"]?i=4!==o||Number(t.words_cnt)?"심화":"시험":t.type===c["F"]&&(i=1===o&&31===+t.booktype?"심화":"듣기");break;case c["i"]:t.type===c["rb"]?i="학습":t.type===c["pb"]&&(i="시험");break;case c["d"]:t.type===c["ob"]?i="어휘":t.type===c["A"]?i="본문":t.type===c["a"]&&(i="심화");break;case c["e"]:case c["h"]:[c["t"],c["Z"]].includes(t.type)?i=t.type==c["t"]?"이론":"동화":[c["r"],c["Y"]].includes(t.type)?i="기본":[c["s"],c["V"]].includes(t.type)&&(i=t.type===c["s"]?"심화":"실전");break;default:break}break;case 2:case 3:switch(a){case c["g"]:case c["f"]:t.type===c["ob"]?i="어휘":t.type===c["ab"]?i=3==o&&31===!+t.booktype?"지문":"본문":t.type===c["gb"]?i="심화":t.type===c["F"]&&(i="듣기");break;case c["d"]:t.type===c["ob"]?i="어휘":t.type===c["A"]?i=3==o?"지문":"본문":t.type===c["a"]&&(i="심화");break;default:break}break;default:break}else if(1===n)if(r)switch(o){case 1:case 4:switch(a){case c["g"]:case c["f"]:t.type===c["ob"]?i="어휘":t.type===c["ab"]?i=4!==o||Number(t.words_cnt)?4===o?"본문":1===o&&31===+t.booktype?"지문":"문장":"학습":t.type===c["gb"]?i=4!==o||Number(t.words_cnt)?"심화":"시험":0===t.type.indexOf(c["F"])&&(i=1===o&&31===+t.booktype?"심화":"듣기");break;case c["d"]:t.type===c["ob"]?i="어휘":t.type===c["A"]?i="본문":t.type===c["a"]&&(i="심화");break;default:break}break;case 2:case 3:switch(a){case c["g"]:case c["f"]:t.type===c["ob"]?i="어휘":t.type===c["ab"]?i=3==o&&31===!+t.booktype?"지문":"본문":t.type===c["gb"]?i="심화":0===t.type.indexOf(c["F"])&&(i="듣기");break;case c["d"]:t.type===c["ob"]?i="어휘":t.type===c["A"]?i=3==o?"지문":"본문":t.type===c["a"]&&(i="심화");break;default:break}break;default:break}else switch(a){case c["g"]:case c["f"]:t.type===c["ab"]?i="학습":t.type===c["gb"]?i="시험":0===t.type.indexOf(c["F"])&&(i="듣기");break;case c["i"]:t.type===c["rb"]?i="학습":t.type===c["pb"]?i="시험":t.type===c["ab"]?i="학습":t.type===c["gb"]&&(i="시험");break;case c["d"]:t.type===c["ab"]?i="학습":t.type===c["gb"]&&(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()?Bu: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 c["g"]:case c["f"]:e="학습",t.type===c["gb"]&&(4!==o||Number(t.words_cnt)||(e="시험"));break;case c["i"]:t.type===c["rb"]?e="학습":t.type===c["pb"]&&(e="시험");break;case c["d"]:e="학습";break;case c["e"]:t.type===c["t"]?e="이론":t.type===c["r"]?e="기본":t.type===c["s"]&&(e="심화");break;case c["h"]:t.type===c["Z"]?e="이론":t.type===c["Y"]?e="기본":t.type===c["V"]&&(e="심화");break;default:break}break;case 2:case 3:switch(a){case c["g"]:case c["f"]:e="학습";break;case c["d"]:e="학습";break;default:break}break;default:break}else if(1===n)if(r)switch(o){case 1:case 4:switch(a){case c["g"]:case c["f"]:e="학습",t.type===c["gb"]&&(4!==o||Number(t.words_cnt)||(e="시험"));break;case c["d"]:e="학습";break;default:break}break;case 2:case 3:switch(a){case c["g"]:case c["f"]:e="학습";break;case c["d"]:e="학습";break;default:break}break;default:break}else switch(a){case c["g"]:case c["f"]:[c["ab"]].includes(t.type)?e="학습":t.type===c["gb"]?e="시험":0===t.type.indexOf(c["F"])&&(e="학습");break;case c["i"]:t.type===c["rb"]||t.type===c["ab"]?e="학습":t.type!==c["pb"]&&t.type!==c["gb"]||(e="시험");break;case c["d"]:t.type===c["ab"]?e="학습":t.type===c["gb"]&&(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(){let t=[];for(let e=0;e
${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(`${c["v"]}/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(Nu,Eu,Bu),null),i=0,o={};new Date(this.this_ym).getTime()==new Date(this.current_ym).getTime()?(s="THIS",i=Bu):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,d=!!n.class_id&&this.class_days[n.class_id],h=new Date(n.startdate),u=0,_=!1,p=[],g=h.yyyymm(),m=new Date(this.current_ym).yyyymm();if(g==m&&(_=h.getDate()),!n.history)continue;let b=0,v=r,f=h,w=0,k=`${n.schedule_id}-${n.books_id}-${n.type}-${a}`,x=Math.floor(Number(n.booktype)/10)||0,y=1==t&&1==a&&x!==c["i"];if("PREV"==s||"THIS"==s)for(let s=0;st&&(v=t);let i=new Date(n.history[s]["postdate"]);this.latest_sch_dates[k]?this.latest_sch_dates[k].getTime()t&&(v=t);let i=new Date(n.history[s]["postdate"]);this.latest_sch_dates[k]?this.latest_sch_dates[k].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),y?o[e].push(!1):x==c["d"]?a.type==c["A"]&&o[e].push(!1):x==c["i"]?a.type==c["rb"]&&o[e].push(!1):a.type==c["ab"]&&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,Nu==s&&Eu==i){o.classList.add("success--text");let t=document.getElementById("schedule-right-list-"+Bu);if(Bu>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==Bu){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!=c["i"];if(!a){if(e.type==c["gb"])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==c["ab"]&&!i.pass)return this.prevent_text="해당 유닛의 학습부터 시작하세요.",this.prevent_test=!0,this.move_dialog=!0,void this.$store.dispatch("soundEffectPlay","exit");if(e.type==c["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==c["A"]&&!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(c["F"]))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+c["Q"],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==c["gb"]?t.test_modules:null,i.study_done_modules=this.sel_record.type==c["ab"]?t.study_modules:null,i.voca_done_modules=this.sel_record.type==c["ob"]?t.v_mod:null,i.major_done_modules=[c["A"],c["rb"]].includes(this.sel_record.type)?t.m_mod:null,i.advanced_done_modules=[c["a"],c["pb"]].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(`${c["v"]}/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",c["F"]),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=Nu,this.sel_month=Eu;let e=document.getElementsByClassName("day__month_btn")[0];e.classList.add("success--text");let s=document.getElementById("schedule-right-list-"+Bu);if(Bu>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)}},Ou=Lu,zu=(s("2a0f"),Object(_["a"])(Ou,Tu,Au,!1,null,null,null)),Vu=zu.exports;g()(zu,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCardTitle:P["c"],VCol:R["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VSheet:re["a"]});var qu=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{staticClass:"w-100",staticStyle:{"margin-left":"0px","margin-right":"4px"},attrs:{id:"schedule-learning-book"}},[s("v-col",{staticClass:"pa-0",staticStyle:{width:"100%"},attrs:{cols:"12",sm:"12",md:"12"}},[s("v-sheet",{staticClass:"contents-sheet px-0 white overflow-hidden",staticStyle:{position:"relative"},attrs:{id:"right",elevation:"0"}},[s("div",{staticClass:"search-field width-100 d-inline-block d-flex justify-end align-center min-h-40px"},[s("div",{staticClass:"float-right search-div"},[s("v-text-field",{attrs:{"append-icon":t.mdi_magnify,label:"교재명 검색",dense:"",solo:"",rounded:"","single-line":"","hide-details":"",color:"success",flat:"","background-color":"grey lighten-3"},on:{keydown:t.searchList,"click:append":t.searchList},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]),s("div",{staticClass:"shown-header-div width-100"},[s("table",{staticClass:"shown-header width-100"},[s("thead",[s("tr",{attrs:{id:"schedule-list-head-tr"}},[s("th",{staticClass:"text-left",staticStyle:{width:"13%"}},[s("span",[t._v("조회")])]),s("th",{staticClass:"text-left",staticStyle:{width:"49%"}},[s("span",[t._v("교재명")])]),s("th",{staticClass:"text-left",staticStyle:{width:"16%"}},[s("span",[t._v("진도율")])]),s("th",{staticClass:"text-left",staticStyle:{width:"22%"}},[s("span",[t._v("학습 시작일")])])])])])]),s("infinite-scroller",{key:"schedule-list-infiscroll-10",staticClass:"infi-cls",attrs:{loadmore:t.loadMore,cat:10,nomore:t.nomore,loading:t.loading}},[s("v-data-table",{attrs:{id:"schedule-list-search",headers:t.headers,items:t.items,"mobile-breakpoint":10,"single-expand":!0,"show-expand":!0,expanded:t.expanded,"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,options:t.options,"server-items-length":t.item_length,page:t.page,"items-per-page":t.items_per_page,"sort-by":t.sortby,"sort-desc":t.sortdesc,dense:""},on:{"update:expanded":function(e){t.expanded=e},"click:row":t.toggleRow,"update:options":function(e){t.options=e},"current-items":t.currentItems},scopedSlots:t._u([{key:"item.data-table-expand",fn:function(e){var i=e.expand,o=e.isExpanded;return[o?s("v-icon",{attrs:{color:"grey",size:"24px"},on:{click:function(t){return t.stopPropagation(),i(!o)}}},[t._v(t._s(t.mdi_menu_down))]):t._e(),o?t._e():s("v-icon",{attrs:{color:"grey",size:"24px"},on:{click:function(t){return t.stopPropagation(),i(!o)}}},[t._v(t._s(t.mdi_menu_right))])]}},{key:"item.schedule_name",fn:function(e){var i=e.item;return[s("span",[t._v(t._s(i.schedule_name))]),i.booktype_1==t.BOOK_BANK&&i.booktype_2==t.TAG_NEW||i.booktype_2==t.TAG_HOT||(3===+i.category||1===+i.category)&&31===+i.booktype?s("span",{staticClass:"booktag hot"},[t._v("\n HOT")]):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("span",{staticClass:"booktag new"},[t._v("\n NEW\n ")]):i.booktype_2==t.TAG_VOCA?s("span",{staticClass:"booktag voca"},[t._v("\n VOCA")]):t._e()]}},{key:"item.rate",fn:function(e){var i=e.item;return[s("b",[t._v(t._s(i.complete_unit_seqs?i.complete_unit_seqs.split(",").length:0)+" ")]),t._v("/ "+t._s(i.tot_unit_cnt)+"\n ")]}},{key:"item.startdate",fn:function(e){var i=e.item;return[s("span",[t._v(t._s(t.setStartDate(i.startdate)))])]}},{key:"expanded-item",fn:function(e){var i=e.item;return[s("td",{staticClass:"pa-0",attrs:{colspan:t.headers.length+1}},[s("v-simple-table",{staticClass:"white custom_simple_table",scopedSlots:t._u([{key:"default",fn:function(){return[s("colgroup",[s("col"),s("col",{attrs:{width:"12%"}}),s("col",{attrs:{width:"76%"}})]),s("tbody",{domProps:{innerHTML:t._s(t.setTmiHtml(i))}})]},proxy:!0}],null,!0)})],1)]}}])})],1)],1)],1)],1)},ju=[],Gu=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()])},Fu=[],Uu={name:"intinitescroller",props:["loadmore","cat","nomore","loading","isAdmin"],data(){return{scroll_top:null,con_height:0,el_rect:null,distance:10,init:!1,prevent_interval:!1,prevent_timeout:null}},methods:{onScroll:function(t){this.nomore||this.loading||(this.scroll_top=t.target.scrollTop,this.con_height=t.target.children[0].clientHeight,this.scroll_top+this.el_rect.height>this.con_height-this.distance&&(this.prevent_interval||(this.prevent_interval=!0,this.loadmore(),this.prevent_timeout=setTimeout(()=>{this.prevent_interval=!1},1e3))))},onResize:function(t){this.el_rect=this.$el.getBoundingClientRect()}},mounted(){this.$nextTick(()=>{this.el_rect=this.$el.getBoundingClientRect(),this.init||(this.loadmore(),this.init=!0)})},created(){window.addEventListener("resize",this.onResize)},beforeDestroy(){window.removeEventListener("resize",this.onResize),this.prevent_timeout&&clearTimeout(this.prevent_timeout)},destroyed(){this.$destroy()}},Wu=Uu,Hu=(s("768e"),Object(_["a"])(Wu,Gu,Fu,!1,null,null,null)),Ku=Hu.exports;Hs()(Hu,{Scroll:La["b"]});var Yu={name:"schedule-learning-book",data(){return{STUDY:c["ab"],TEST:c["gb"],VOCA:c["ob"],MAJOR:c["A"],ADVANCED:c["a"],VOCA_MAJOR:c["rb"],VOCA_ADVANCED:c["pb"],MOCK_EXAM:c["F"],BOOK_BANK:c["d"],BOOK_VOCA:c["i"],BOOK_LISTENING:c["f"],TAG_NEW:c["eb"],TAG_VOCA:c["fb"],TAG_HOT:c["db"],keyword:"",old_keyword:"",nomore:!1,loading:!1,headers:Object.freeze([{text:"교재명",value:"schedule_name",align:"left",sortable:!1,width:"52%"},{text:"진도율",value:"rate",align:"left",sortable:!1,width:"14%"},{text:"학습 시작일",value:"startdate",align:"left",sortable:!1,width:"22%"}]),item_key:"id",items:[],expanded:[],options:{},item_length:0,page:1,items_per_page:99999,sortby:void 0,sortdesc:void 0,per_list:10,select_row:!1,select_id:0,mdi_magnify:ft["K"],mdi_menu_down:ft["L"],mdi_menu_right:ft["M"]}},components:{InfiniteScroller:Ku},watch:{keyword(t,e){t!=e&&(this.nomore=!1)}},methods:{currentItems(t){this.$nextTick(()=>{let t=document.getElementById("schedule-list-search").getElementsByTagName("tr")[0].getElementsByTagName("td");if(this.headers.length+1==t.leatngth){let e=document.getElementById("schedule-list-head-tr").getElementsByTagName("th");for(let[s,i]of Object.entries(t))e[s].style=`width:${i.clientWidth}px;`}})},toggleRow(t){this.expanded.length>0&&this.expanded[0].id==t.id?(this.select_row=!1,this.select_id="",this.expanded.pop()):(this.select_row=!0,this.select_id=t.id,this.expanded.pop(),this.expanded.push(t))},searchList(t){13!=event.keyCode&&"click"!=event.type||this.getList(this.keyword)},loadMore(){this.getList(this.keyword)},getList(t){if(t!==this.old_keyword&&(this.nomore=!1,this.items=[],this.item_length=0),this.nomore)return;let e=this.$store.state.cid,s=this.$store.state.uid,i=`${c["v"]}/v2/schedule/${e}/user/${s}/list`;"string"==typeof t&&t&&(i+="/"+t,this.old_keyword=t),i+=`?leng=${this.item_length}&per=${this.per_list}`,this.$axios.get(i).then(t=>{if(200==t.status){let e,s=t.data,i=s.length;if([54,98,150].includes(Number(this.$store.state.cid)))for(let t=0,o=s.length;t0||Number(s[t].study_modules)>0)&&(s[t].booktype_1=0,s[t].booktype_2=0,s[t].booktype=0);this.item_length=this.item_length+i;for(let t=0;t{let s=void 0;return 1==+t&&(i+=1,s=e),s}).filter(t=>void 0!==t),s+=` ${i}단계 (`;for(let e=0;ee&&(s+=" - ")}else{if(""==t||!t)return"";t=Array.from(t),i=t.length,s+=` ${i}단계 (`;for(let i=0;ii&&(s+=" - ")}}return s+=")",s},setStartDate(t){let e="학습 전";return t&&(e=t.split(" ")[0]),e}},created(){}},Zu=Yu,Ju=(s("15d4"),Object(_["a"])(Zu,qu,ju,!1,null,null,null)),Qu=Ju.exports;g()(Ju,{VCol:R["a"],VDataTable:nh["a"],VIcon:xt["a"],VRow:L["a"],VSheet:re["a"],VSimpleTable:Us["a"],VTextField:O["a"]});var Xu=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 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:"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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},t_=[],e_={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}}}},s_=e_,i_=(s("cf91"),Object(_["a"])(s_,Xu,t_,!1,null,null,null)),o_=i_.exports;g()(i_,{VBtn:D["a"],VCol:R["a"],VContainer:N["a"],VRow:L["a"]});var a_=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 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:"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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("b",[t._v("진단 평가")])])],1)],1),s("div",[s("router-view")],1)],1)],1)],1)},n_=[],r_={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}}}},l_=r_,c_=(s("843e4"),Object(_["a"])(l_,a_,n_,!1,null,null,null)),d_=c_.exports;g()(c_,{VBtn:D["a"],VCol:R["a"],VContainer:N["a"],VRow:L["a"]});var h_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"report-lookup-learning"}},[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("a.type"),staticStyle:{width:"12%","min-width":"40px"},on:{click:function(e){return t.sortingCol("a.type",t.sort_direction)}}},[s("span",[t._v("구분 ")]),t._m(1)]),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("b.schedule_name"),staticStyle:{width:"30%"},on:{click:function(e){return t.sortingCol("b.schedule_name",t.sort_direction)}}},[s("span",[t._v("교재명 ")]),t._m(2)]),t._m(3),t._m(4),s("th",{staticClass:"text-left sort-col",class:t.arrowClass("a.postdate"),staticStyle:{width:"20%"},on:{click:function(e){return t.sortingCol("a.postdate",t.sort_direction)}}},[s("span",[t._v("학습일 ")]),t._m(5)])])])])]),s("infinite-scroller",{key:"schedule-list-infiscroll-10",staticClass:"infi-cls",attrs:{loadmore:t.loadMore,cat:11,nomore:t.nomore,loading:t.loading}},[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))}})]}}],null,!0)})],1)],1)},u_=[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("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:"18%"}},[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"})])}],__={name:"report-lookup-learning",data(){return{nomore:!1,loading:!1,headers:Object.freeze([{text:"No.",value:"no",align:"left",sortable:!1,width:"8%"},{text:"구분",value:"type",align:"left",sortable:!1,width:"12%"},{text:"교재명",value:"schedule_name",align:"left",sortable:!1,width:"30%"},{text:"차시",value:"unit_name",align:"left",sortable:!1,width:"22%"},{text:"점수",value:"avg",align:"left",sortable:!1,width:"18%"},{text:"학습일",value:"postdate",align:"left",sortable:!1,width:"20%"}]),item_key:"id",items:[],item_length:0,page:1,items_per_page:99999,sort_order:"a.postdate",sort_direction:"desc",per_list:10,is_openbook:0}},components:{InfiniteScroller:Ku},computed:{arrowClass(){return t=>{let e="";return t==this.sort_order&&(e=" active "+this.sort_direction),e}}},methods:{clickSound(){this.$store.dispatch("soundEffectPlay","click")},currentItems(t){this.$nextTick(()=>{let t=document.getElementById("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;`}})},loadMore(){if(this.loading)return!1;this.getList()},getList(){if(this.nomore)return;let t=this.$store.state.cid,e=this.$store.state.uid,s=`${c["v"]}/v2/result/${t}/user/${e}`;s+=`?leng=${this.item_length}&per=${this.per_list}&ord=${this.sort_order}&dir=${this.sort_direction}`,this.$axios.get(s).then(t=>{if(console.log(t),200==t.status){let e=t.data;if([54,98,150].includes(Number(this.$store.state.cid)))for(let t=0,i=e.length;t${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(`${c["v"]}/mockexam/book/${t}`).then(t=>{200==t.status?e(t.data):s(!1)}).catch(t=>{window.console.err(t),s(!1)})})},goResult(t){this.clickSound(),window.console.log(t);let e=t.type+c["Q"],s={},i={},o=0,a=0;if(t.booktype&&(o=Math.floor(Number(t.booktype)/10),a=Number(t.booktype)%10),o==c["f"]&&t.type==c["F"])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",c["F"]),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==c["gb"]?t.done_cnt:null,i.study_cnt=t.type==c["ab"]?t.done_cnt:null,i.voca_cnt=t.type==c["ob"]?t.done_cnt:null,i.major_cnt=[c["A"],c["rb"]].includes(t.type)?t.done_cnt:null,i.advanced_cnt=[c["a"],c["pb"]].includes(t.type)?t.done_cnt:null,i.test_pk=t.type==c["gb"]?t.id:null,i.study_pk=t.type==c["ab"]?t.id:null,i.voca_pk=t.id,i.major_pk=t.id,i.advanced_pk=t.id,i.test_done_modules=t.type==c["gb"]?t.done_modules:null,i.study_done_modules=t.type==c["ab"]?t.done_modules:null,i.voca_done_modules=t.type==c["ob"]?t.done_mod:null,i.major_done_modules=[c["A"],c["rb"]].includes(t.type)?t.done_mod:null,i.advanced_done_modules=[c["a"],c["pb"]].includes(t.type)?t.done_mod:null,i.test_done=t.type==c["gb"]?t.done:null,i.study_done=t.type==c["ab"]?t.done:null,i.voca_done=t.type==c["ob"]?t.done:null,i.major_done=[c["A"],c["rb"]].includes(t.type)?t.done:null,i.advanced_done=[c["a"],c["pb"]].includes(t.type)?t.done:null,[c["t"],c["r"],c["s"],c["Z"],c["Y"],c["V"]].includes(t.type)){const e={[c["t"]]:"grammar_theory",[c["r"]]:"grammar_basics",[c["s"]]:"grammar_deep",[c["Z"]]:"story_v",[c["Y"]]:"story_m",[c["V"]]:"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,[c["Z"],c["Y"],c["V"]].includes(t.type)&&(s.level=+t.level,s.bookname=t.bookname)}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)})})}},created(){this.is_openbook=this.$store.state.settings.is_openbook}},p_=__,g_=(s("2a68"),Object(_["a"])(p_,h_,u_,!1,null,null,null)),m_=g_.exports;g()(g_,{VDataTable:nh["a"]});var b_=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)},v_=[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("조회")])])}],f_={name:"report-lookup-leveltest",data(){return{LEVEL_TEST_RESULT:c["x"]+c["Q"],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:Ku,LevelTestResult:Ms},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=`${c["v"]}/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")}},w_=f_,k_=(s("a653"),Object(_["a"])(w_,b_,v_,!1,null,null,null)),x_=k_.exports;g()(k_,{VBtn:D["a"],VDataTable:nh["a"],VTextField:O["a"]});var y_=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},C_=[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("오픈 준비중입니다.")])])])}],$_={name:"report-lookup-exam",props:["clickSound"],data(){return{}}},S_=$_,T_=(s("d545"),Object(_["a"])(S_,y_,C_,!1,null,null,null)),A_=T_.exports,M_=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?"":"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","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"},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)},D_=[],I_=s("9ca8"),P_=(s("8deb"),s("ef97"),{name:"report-analysis-learning",components:{"v-chart":I_["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:ft["D"],mdi_chevron_right:ft["v"],mdi_chevron_left:ft["t"],mdi_arrow_expand_all:ft["e"],mdi_arrow_collapse_all:ft["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=`${c["v"]}/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)}}),R_=P_,N_=(s("29a2"),Object(_["a"])(R_,M_,D_,!1,null,null,null)),E_=N_.exports;g()(N_,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VDatePicker:ii["a"],VDialog:E["a"],VIcon:xt["a"],VProgressCircular:ys["a"],VRow:L["a"],VSimpleTable:Us["a"],VSpacer:oi["a"]});var B_=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},L_=[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("오픈 준비중입니다.")])])])}],O_={name:"report-analysis-exam",data(){return{}}},z_=O_,V_=(s("2aa4"),Object(_["a"])(z_,B_,L_,!1,null,null,null)),q_=V_.exports,j_=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},G_=[],F_={name:"learderboard-board",components:{InfiniteScroller:Ku},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:ft["v"],mdi_chevron_left:ft["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,`${c["v"]}/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=`${c["v"]}/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)}},Q_=J_,X_=Object(_["a"])(Q_,Y_,Z_,!1,null,null,null),tp=X_.exports;g()(X_,{VChip:pe["a"],VCol:R["a"],VDataTable:nh["a"],VImg:vs["a"],VRow:L["a"],VSheet:re["a"]});var ep=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",{attrs:{fluid:""}},[s("div",{staticClass:"padding-div width-100"}),s("v-row",[s("v-col",{staticClass:"text-right label-flex flex-row-reverse align-center fw-700",attrs:{cols:"2"}},[s("label",[t._v("교재 순서")])]),s("v-col",{staticClass:"pr-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_random",0)},[t._v("순서대로 학습")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_random",1)},[t._v("랜덤 순서대로 학습")])])],1)],1),s("v-row",[s("v-col",{staticClass:"text-right label-flex flex-row-reverse align-center fw-700",attrs:{cols:"2"}},[s("label",[t._v("학습 단계")])]),s("v-col",{staticClass:"pr-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_skip",0)},[t._v("학습단계 스킵 불가")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_skip",1)},[t._v("학습단계 스킵 가능")])])],1)],1),s("v-row",[s("v-col",{staticClass:"text-right label-flex flex-row-reverse align-center fw-700",attrs:{cols:"2"}},[s("label",[t._v("채점 여부")])]),s("v-col",{staticClass:"pr-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_scoringnext",0)},[t._v("실시간 채점")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_scoringnext",1)},[t._v("학습 후 일괄 채점")])])],1)],1),s("v-row",[s("v-col",{staticClass:"text-right label-flex flex-row-reverse align-center fw-700",attrs:{cols:"2"}},[s("label",[t._v("재학습")])]),s("v-col",{staticClass:"pr-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_restudy",0)},[t._v("무제한")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_restudy",1)},[t._v("차시당 최대 3회")])])],1)],1),s("v-row",[s("v-col",{staticClass:"text-right label-flex flex-row-reverse align-center fw-700",attrs:{cols:"2"}},[s("label",[t._v("효과음")])]),s("v-col",{staticClass:"pr-1",attrs:{cols:"5"}},[s("v-btn",{attrs:{"x-large":"",block:"",rounded:"",color:t.sound_effect?"success":"grey lighten-3",elevation:"0",ripple:!1},on:{click:function(e){return t.handleSoundEffect(1)},touchstart:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),t.$store.dispatch("clickSound",e)}}},[s("b",{class:[t.sound_effect?"white--text":"grey--text text--lighten-1"]},[t._v("효과음 사용")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"5"}},[s("v-btn",{attrs:{"x-large":"",block:"",rounded:"",color:t.sound_effect?"grey lighten-3":"success",elevation:"0",ripple:!1},on:{click:function(e){return t.handleSoundEffect(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",{class:[t.sound_effect?"grey--text text--lighten-1":"white--text"]},[t._v("효과음 사용안함")])])],1)],1),s("v-row",[s("v-col",{staticClass:"text-right label-flex flex-row-reverse align-center fw-700",attrs:{cols:"2"}},[s("label",[t._v("리스닝")])]),s("v-col",{staticClass:"pr-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_studentcontrol",0)},[t._v("학습자 제어 가능")])])],1),s("v-col",{staticClass:"pl-1",attrs:{cols:"5"}},[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}},[s("b",{class:t.setClass("is_studentcontrol",1)},[t._v("관리자 직접 설정")])])],1)],1),s("v-row",[s("v-col",{attrs:{cols:"2"}}),s("v-col",{staticClass:"py-0",staticStyle:{"padding-left":"25px","padding-right":"30px"},attrs:{cols:"10"}},[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 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:"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)},sp=[],ip={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:ft["v"],mdi_chevron_left:ft["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:{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=`${c["v"]}/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)}},op=ip,ap=(s("54b1"),Object(_["a"])(op,ep,sp,!1,null,null,null)),np=ap.exports;g()(ap,{VBtn:D["a"],VCard:I["a"],VCardText:P["b"],VCol:R["a"],VContainer:N["a"],VDialog:E["a"],VRow:L["a"],VSheet:re["a"],VTextField:O["a"]});var rp=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},lp=[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("해 석")])])}],cp={name:"pocketnote-pocketnote",props:{sentenceCover:Boolean,closeCover:Function},components:{InfiniteScroller:Ku},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:ft["Y"],mdi_chevron_right:ft["v"],mdi_chevron_left:ft["t"],mdi_close:ft["B"],mdi_checkbox_blank_outline:ft["o"],mdi_checkbox_marked:ft["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=`${c["v"]}/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",c["q"]),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)}},dp=cp,hp=s("9e88"),up=Object(_["a"])(dp,rp,lp,!1,null,null,null),_p=up.exports;g()(up,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDataTable:nh["a"],VDialog:E["a"],VIcon:xt["a"],VRow:L["a"],VSimpleCheckbox:hp["a"],VWindow:Es["a"]});var pp=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)},gp=[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("성적표")])])}],mp={name:"checkup-note",components:{InfiniteScroller:Ku},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:ft["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=`${c["v"]}/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(`${c["v"]}/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()}},bp=mp,vp=Object(_["a"])(bp,pp,gp,!1,null,null,null),fp=vp.exports;g()(vp,{VBtn:D["a"],VCol:R["a"],VDataTable:nh["a"],VIcon:xt["a"],VRow:L["a"]});var wp=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)},kp=[],xp={data(){return{mdi_magnify:ft["K"],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학년까지 총 23권 시리즈로 준비 되어있습니다.

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

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

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

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

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

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

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

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))}},yp=xp,Cp=(s("c9f2"),s("cd55")),$p=s("49e2"),Sp=s("c865"),Tp=s("0393"),Ap=Object(_["a"])(yp,wp,kp,!1,null,null,null),Mp=Ap.exports;g()(Ap,{VCol:R["a"],VExpansionPanel:Cp["a"],VExpansionPanelContent:$p["a"],VExpansionPanelHeader:Sp["a"],VExpansionPanels:Tp["a"],VRow:L["a"],VTextField:O["a"]});var Dp=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 e.stopPropagation(),t.$store.dispatch("clickSound",e)},mousedown:function(e){return e.stopPropagation(),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)},Ip=[],Pp={data(){return{mdi_chevron_right:ft["v"]}}},Rp=Pp,Np=Object(_["a"])(Rp,Dp,Ip,!1,null,null,null),Ep=Np.exports;g()(Np,{VBtn:D["a"],VCol:R["a"],VIcon:xt["a"],VImg:vs["a"],VRow:L["a"]});var Bp=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)},Lp=[],Op={},zp=Op,Vp=(s("4bda"),Object(_["a"])(zp,Bp,Lp,!1,null,null,null)),qp=Vp.exports;g()(Vp,{VCol:R["a"],VContainer:N["a"],VResponsive:pa["a"],VRow:L["a"]});var jp=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)},Gp=[],Fp={name:"checkup-result",components:{IconReportO:_s["a"],IconReportX:ps["a"],Loading:rt},data(){return{unwatch:null,unwatch2:null,interval1:null,result:[],content_height:0,is_ios:!1,mdi_close:ft["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["a"].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()}},Up=Fp,Wp=(s("4457"),Object(_["a"])(Up,jp,Gp,!1,null,null,null)),Hp=Wp.exports;g()(Wp,{VAppBar:Cu["a"],VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCardTitle:P["c"],VCol:R["a"],VIcon:xt["a"],VList:fs["a"],VListItem:ws["a"],VListItemContent:ks["a"],VListItemGroup:xs["a"],VListItemTitle:ks["b"],VRow:L["a"]}),o["a"].use(f["a"]);var Kp=new f["a"]({mode:"hash",routes:[{name:"index",path:"/",component:Zs},{name:"login",path:"/login",meta:{layout:"layout-login"},component:V},{name:"leveltest",path:"/leveltest",component:Os},{name:"schedule",path:"/schedule",component:Lh,children:[{path:"",name:"schedule-learningschedule",component:Vu},{path:"learningschedule",name:"schedule-learningschedule",component:Vu},{path:"learningbook",name:"schedule-learningbook",component:Qu}]},{name:"report",path:"/report",component:Gh,children:[{path:"",name:"report-lookup",component:o_},{path:"lookup",name:"report-lookup",component:o_,children:[{path:"",name:"report-lookup-learning",component:m_},{path:"learning",name:"report-lookup-learning",component:m_},{path:"exam",name:"report-lookup-exam",component:A_}]},{path:"analysis",name:"report-analysis",component:d_,children:[{path:"",name:"report-analysis-learning",component:E_},{path:"learning",name:"report-analysis-learning",component:E_},{path:"exam",name:"report-analysis-exam",component:q_}]},{path:"leveltest",name:"report-leveltest",component:o_,children:[{path:"",name:"report-lookup-leveltest",component:x_},{path:"learning",name:"report-lookup-leveltest",component:x_}]}]},{name:"leaderboard",path:"/leaderboard",component:Yh,children:[{path:"",name:"leaderboard-board",component:K_},{path:"board",name:"leaderboard-board",component:K_},{path:"record",name:"leaderboard-record",component:tp}]},{name:"settings",path:"/settings",component:eu,children:[{path:"",name:"settings-learningoptions",component:np},{path:"learningoptions",name:"settings-learningoptions",component:np},{path:"faq",name:"settings-faq",component:Mp}]},{name:"pocketnote",path:"/pocketnote",component:ru,children:[{path:"",name:"pocketnote-pocketnote",component:_p},{path:"pocketnote",name:"pocketnote-pocketnote",component:_p},{path:"checkupnote",name:"pocketnote-checkupnote",component:fp}]},{name:"checkup",path:"/checkup",meta:{layout:"layout-checkup"},component:Su},{name:"checkupresult",path:"/checkupresult",meta:{layout:"layout-checkup"},component:Hp},{name:"guide",path:"/guide",component:_u,children:[{path:"",name:"guide-faq",component:Mp},{path:"faq",name:"guide-faq",component:Mp},{path:"manual",name:"guide-manual",component:Ep},{path:"video",name:"guide-video",component:qp}]},{name:"notice",path:"/notice",component:()=>s.e("chunk-e4c6969c").then(s.bind(null,"8899"))},{name:"coursebook",path:"/coursebook",component:dh},{name:"readingbook",path:"/readingbook",component:bh},{name:"listeningbook",path:"/listeningbook",component:Ch},{name:"schoolbook",path:"/schoolbook",component:Ih},{path:"*",meta:{layout:"layout-404"},component:()=>s.e("chunk-2d0e5e97").then(s.bind(null,"9703"))}]}),Yp={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:"",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}),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:c["Cb"],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:{}},Zp={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},getAcademyName(t){return t.cname},getLearderboardAuth(t){return t.learderboard_auth},getRankPopupView(t){return t.rankpopup_view},getIsSkip(t){return t.uclass===c["jb"]?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]||![c["ub"],c["L"],c["P"],c["u"]].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===c["Db"].includes(e)&&t.voca_audio_ctx&&t.voca_audio_ctx.length>0){let s;if(c["tb"]===e){for(let e=0;e0&&(e=t.current_step-t.words.length),e<0)return"";let i=t.audio_ctx[e]||"";return!0===c["Db"].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>=c["bb"]},getWritingKHintDisabled(t){let e=c["hb"];return t.process_type==c["A"]&&(e=c["B"]),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.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 c["C"]:a="matching";break;case c["vb"]: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},getBlockClick(t){return t.block_fastclick},getCIdForRecord(t){return Number(t.uclass)>c["ib"]?c["N"]: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===c["x"]&&(s=!0);return s},getSpeakTimerStatus(t){return t.speak_timer}},Jp=s("bc3a"),Qp=s.n(Jp),Xp={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},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=ht(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,t.is_learning||(t.process_type=null,t.current_restudy=!1,t.clear_prev_result=!1)},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.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=ht(t.settings);s.is_random=+e.is_random||0,s.is_skip=+e.is_skip||0,c["O"]==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},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){console.log("setStoryBooks",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(e.type.substr(0,1)){case c["ab"]:s=e.book.study_modules,c["ab"]!==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 c["gb"]:s=e.book.test_modules,c["gb"]!==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.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,t.schedule_type=+e.book.schedule_type?+e.book.schedule_type:0;for(let[n,r]of Object.entries(o)){let s={idx:Number(r),name:c["Bb"][r],maxstep:0};c["ab"]==t.process_type?c["z"]==+s.idx?s.maxstep=+e.unit.words_cnt+ +e.unit.sentences_cnt:s.maxstep=+e.unit.sentences_cnt:c["gb"]==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(c["Q"],"");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"},d=e.unit[l[n]+"_cnt"],h=e.unit[l[n]+"_done_modules"];s=r[n],e.init?["SV","SM","SA"].includes(n)&&(t.current_page=0):null===h||+d>0&&s==h||(a=h),console.log("mod",s),s&&(o=["SBA"].includes(s)?[s]:Array.from(s)),t.book=Object.freeze(e.book),t.current_book_id=e.book.id,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,t.schedule_type=+e.book.schedule_type?+e.book.schedule_type:0;for(let[u,_]of Object.entries(o)){let s={idx:isNaN(_)?_:Number(_),name:c["Bb"][_],maxstep:0,seq:+u};if(console.log(s),[c["ob"],c["rb"],c["pb"]].includes(t.process_type))isNaN(s.idx)?s.maxstep=0:s.maxstep=Number(e.unit.words_cnt),[c["rb"],c["pb"]].includes(t.process_type)&&("문장찾기"==s.name&&(s.name="팝퀴즈"),"영작하기"==s.name&&(s.name="라이팅"));else if(c["A"]==t.process_type||c["a"]==t.process_type)isNaN(s.idx)?s.maxstep=0:s.maxstep=Math.round(e.unit.sentences_cnt);else if(t.process_type==c["Y"]){let t="sentences";3===+_&&(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(c["Q"],"");l==c["t"]?(i="v",o="grammar_theory"):l==c["r"]?(i="m",o="grammar_basics"):l==c["s"]&&(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.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 d=e.cnt.split("-");if(s){const e=+t.unit.book_id,i=+t.unit.seq+1,o=t.unit.name,a=s.split("_")[0];c["yb"].includes(e)&&i%3===0&&["GT","GD"].includes(a)||c["zb"].includes(e)&&o.match("Review")||c["zb"].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[h,u]of Object.entries(n)){u=`${s.split("_")[0]}_${u}`;let t={idx:isNaN(u)?u:Number(u),name:c["Bb"][u],maxstep:d[h],seq:+h};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=ht(t.modules),r=!!e.loadeddata&&JSON.parse(e.loadeddata);if(t.words=Object.freeze(e.words||[]),r&&r.sentences_ids)for(let c=0;c{let i=[],o=[],a=[],n=ht(t.modules),r="",l=!!e.loadeddata&&JSON.parse(e.loadeddata),d=[],h=[],u=[];if(r=[c["a"],c["Y"],c["V"]].includes(t.process_type)?"sentences":"words",t.init_loading=!1,t.process_type===c["Y"]){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=ct(e[r]):[c["Z"],c["Y"],c["V"]].includes(t.process_type)?(d=e.sentences,h=e.words,t.process_type===c["Z"]&&(u=e.pages)):i=[c["ob"],c["rb"],c["pb"]].includes(t.process_type)&&1==t.settings.is_random?ct(e[r]):e[r],[c["Z"],c["Y"],c["V"]].includes(t.process_type))for(let c=0,p=n.length;c{if(200===t.status&&t.data)for(let s=0,i=n.length;s{console.log(t)})}else for(let t=0,c=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==c["gb"]&&840==t.unit.id&&0==o&&(o=1),1030==t.uid&&794==t.book.schedule_id&&t.process_type==c["gb"]&&851==t.unit.id&&0==o&&(o=1),1033==t.uid&&794==t.book.schedule_id&&t.process_type==c["gb"]&&850==t.unit.id&&0==o&&(o=1),1035==t.uid&&789==t.book.schedule_id&&t.process_type==c["ab"]&&764==t.unit.id&&i==c["C"]&&0==o&&(o=1),1045==t.uid&&791==t.book.schedule_id&&t.process_type==c["ab"]&&735==t.unit.id&&i==c["vb"]&&0==o&&(o=1),1062==t.uid&&798==t.book.schedule_id&&t.process_type==c["ab"]&&1171==t.unit.id&&i==c["vb"]&&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===c["U"]&&t.is_mobile&&"android"==t.platform){let e=Math.round(.6*parseInt(t.modules[t.current_page].maxstep));if(c["pb"]==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,[c["ob"],c["rb"],c["pb"]].includes(t.process_type)){if(s.words_ids&&"object"===typeof s.words_ids&&s.words_ids.length>0){let e=ht(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=ht(t.sentences);t.sentences=[];for(let i=0;i0&&"GRAMMAR"!=i){let e=s.audio_files;console.log(t),console.log(t.sentences);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 c["tb"]: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 c["ub"]:case c["L"]:case c["P"]:case c["u"]: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 c["W"]: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(console.log("---- START addStep ----"),void 0===t.modules[t.current_page])return;let e=Number(t.modules[t.current_page].idx);if(t.current_step++,c["U"]==e&&1==t.is_mobile&&"android"==t.platform){let e=Math.round(.6*parseInt(t.modules[t.current_page].maxstep)),s="";c["pb"]==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))}console.log("---- END addStep ----")},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,c["U"]==e&&1==t.is_mobile&&"android"==t.platform){let e=Math.round(.6*parseInt(t.modules[t.current_page].maxstep)),s="";c["pb"]==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){console.log("###### nextDisabled ######",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)===c["z"]&&(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){console.log("playSynthesiaVideo"),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&&(console.log("readyState: ",+t.current_step,t.current_synthesia_video.readyState),"ios"===t.platform&&t.current_synthesia_video.load())},setAudioCtx(t,e){o["a"].set(t.audio_ctx,Number(e.idx),e.url),t.init_loading&&(t.init_loading=!1)},setVocaAudioCtx(t,e){o["a"].set(t.voca_audio_ctx,Number(e.idx),e.url),t.init_loading&&(t.init_loading=!1)},setVideoCtx(t,e){o["a"].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=ht(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=ht(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(console.log("--addWrongSenId--"),!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=[c["ob"],c["rb"],c["pb"]].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=ht(t[`wrong_${o}_ids`]);e.push(+s),t[`wrong_${o}_ids`]=Object.freeze(e)}if(+e==c["vb"]){let e=ht(t.wrong_sentence_write_ids);e&&0!=e.length||(e=ht(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=[c["ob"],c["rb"],c["pb"]].includes(t.process_type)||e&&0===t.current_page?"words":"sentences",i=e&&0===t.current_page?"word":"sentence";let o=ht(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){console.log("setChipsInitData",e);let s=e.s_name,i=ht(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=ht(t[s.data_n]);i.choice_words=e.words,console.log(i),t[s.data_n]=Object.freeze(i)},setGrammarMC(t,e){console.log("setGrammarMC");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]}`}),console.log(s);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),console.log(t.modules,i,s),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=ht(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=ht(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=ht(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=ht(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=ht(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=ht(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=ht(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=ct(c),i.choice_letters[t]=c;for(let e=0;enew RegExp(/[a-zA-Z]/i).test(t)?(s.push(t),"_"):t),s=ct(s),i.choice_letters[o]=s;for(let e=0;e0&&h.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;for(s=0;s0)for(s=0;s0){t.dictation_choice[i].cnt-=1,s=!0;break}if(s)for(let i=0;it.dictation_choice[i].cnt){t.dictation_choice[i].cnt+=1,s=!0;break}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=ht(t.dictation_select);for(let n=0;n`,a=ht(t.dictation_data);for(let n=0;n"+s[n]+"":""+s[n]+""}else t+=""+s[n]+"";o+=t}else o+=" "}o+="",console.log("showDictationRight",t.current_step,a.result_html,o),a.result_html.push(o),t.dictation_data=Object.freeze(a),console.log("---- END showDictationRight ----")},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=ht(t.popquiz_choices);for(e=0;ee==t.cab_select);if(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=ht(e))}}t[`grammar_${s}_data`]=Object.freeze(i),t.ox_right=e},clearWriting(t){let e=ht(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=ht(t.writing_data),i=ht(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=ht(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=ht(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=ht(t.writing_k_current_answer),a=ht(t.writing_k_hint_pos),n=ht(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=ht(t.writing_k_current_answer),i=ht(t.writing_k_hint_pos),o=ht(t.writing_k_hint_w_pos),a=ht(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=ht(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===c["pb"]?t.words[e].word:t.sentences[e].sentence;let o=ht(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=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===c["pb"]?t.words[e].word:t.sentences[e].sentence;let o=t.writing_k_current_answer.join(""),a=ht(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=s==o,a.right[e]=i,t.writing_k_data=Object.freeze(a),t.ox_right=i},checkGrammarWritingK(t){console.log("checkGrammarWritingK",t.writing_k_data,t.current_step);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=ht(t.writing_k_data);console.log(3366,o.answers[e],typeof o.answers[e]);let 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=ht(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===c["pb"]?(e=t.words[i],s=e.word):(e=t.sentences[i],s=e.sentence);let o=ht(t.writing_k_data),a=o.right[i],n=``,r=o.answers[i],l=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===c["pb"]?(e=t.words[i],s=e.word):(e=t.sentences[i],s=e.sentence);let o=ht(t.writing_k_data),a=``,n=ht(t.writing_k_current_answer),r=n.map(t=>t);for(let l=0;l]*>|<\/span>| |\xa0| /g,"");if(t.writing_k_current_question[l].trim()!=e.trim()){let e=`${t.writing_k_current_question[l]}`;t.settings.is_scoringnext?r.splice(l,1,e):n.splice(l,1,e)}}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=ht(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,ht(t.writing_k_data)),o=i.right[e],a=``,n=i.answers[e],r=ht(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,_=s.origin_passage.split(" / ");for(let a=0;a<_.length;a++){if(-1!=_[a].indexOf("[[[ ]]]")){let t=s.rightanswer.split(" / ").length,e="";for(let s=0;s0){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{console.log(r);for(let e=0;e]*>|<\/span>| /g,"");if(console.log(t.writing_k_current_rightanswer[e].trim(),s.trim()),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,[c["rb"],c["pb"]].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=ht(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),console.log(t.speaking_data)},setRecBlob(t,e){t.rec_blob=e},setWordBingo(t,e){let s=ht(t.words),i=ht(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=ct(s.map(t=>({right:!1,word:t.word,cls:"defaultcard"})))},setWordBingoMax(t){let e=ht(t.modules);e=e.map(e=>(e.idx===c["tb"]&&(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){console.log("---- START updateWordBingoResult ----");let e=ht(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,console.log("updateWordBingoResult",t.current_step,e.result_html,e.result_html[t.current_step],a),t.wordbingo_data=Object.freeze(e),console.log("---- END updateWordBingoResult ----")},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=ht(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=ht(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=ht(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=ht(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=ht(t.unit);console.log(t.process_type);const o={[c["ab"]]:"study",[c["gb"]]:"test",[c["ob"]]:"voca",[c["A"]]:"major",[c["a"]]:"advanced",[c["rb"]]:"major",[c["pb"]]:"advanced",[c["t"]]:"grammar_theory",[c["r"]]:"grammar_basics",[c["s"]]:"grammar_deep",[c["Y"]]:"story_m",[c["V"]]:"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"),[c["ub"],c["L"],c["P"],c["u"]].includes(i)){let e=ht(t.bank_data);for(let t=s;t0&&(a.result_html[n]=`${t.sentences[t.current_step].sentence}`),i==c["tb"]&&(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["a"].delete(t.audio_ctx,e);if(t.voca_audio_ctx.length>0)for(let[e,s]of Object.entries(t.voca_audio_ctx))o["a"].delete(t.voca_audio_ctx,e);if(t.video_ctx.length>0)for(let[e,s]of Object.entries(t.video_ctx))o["a"].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{Qp.a.post(c["v"]+"/sendmailfordev",{version:"1.4.08",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["a"].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["a"].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["a"].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["a"].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["a"].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["a"].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["a"].collection("users").doc(t.uid).collection("schedules").doc(o).collection("Bookunits").doc(a).get().then(t=>{t.exists||t.ref.set({})}),i["a"].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)},setScheduleStartdate:({commit:t,state:e},s)=>new Promise((t,i)=>{Qp.a.post(`${c["v"]}/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)=>{Qp.a.post(c["v"]+"/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)return!1;{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"}}return n?new Promise((e,s)=>{Qp.a.post(c["v"]+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=`${c["v"]}/tts/${o}/${a}`,l="tts";1===+t.settings.is_ttsgender?(r+="?is_gender=1",l+="/female"):(r+="?is_gender=0",l+="/male"),Qp()({url:r,method:"get",responseType:"blob"}).then(i=>{if(200==i.status)if("ios"===t.platform)e("setAudioCtx",{idx:n,url:`${c["w"]}/media/${l}/${o}/${a}.mp3`});else{let t=new Blob([i.data],{type:"audio/mp3"}),s=window.URL.createObjectURL(t);e("setAudioCtx",{idx:n,url:s})}else 204==i.status&&(window.console.log("204::tts_create"),s("sendGoogleTTSCreate",{id:a,bookid:o,type:"S"}).then(s=>{200==s.status&&Qp()({url:r,method:"get",responseType:"blob"}).then(s=>{if(200==s.status)if("ios"===t.platform)e("setAudioCtx",{idx:n,url:`${c["w"]}/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,d=`${c["v"]}/tts/${n}/${r}`,h="tts";1===+t.settings.is_ttsgender?(d+="?is_gender=1",h+="/female"):(d+="?is_gender=0",h+="/male"),Qp()({url:d,method:"get",responseType:"blob"}).then(i=>{if(200==i.status){if("ios"===t.platform)e("setAudioCtx",{idx:l,url:`${c["w"]}/media/${h}/${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?Qp()({url:d,method:"get",responseType:"blob"}).then(s=>{if(200==s.status){if("ios"===t.platform)e("setAudioCtx",{idx:l,url:`${c["w"]}/media/${h}/${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?Qp()({url:`${c["v"]}/v2/file/checkvocamp3/${a}?wid=${n}`,method:"get"}).then(i=>{if(200==i.status){let l=i.data.res,d=i.data.filename?i.data.filename:a;if(200==l)e("setVocaAudioCtx",{idx:r,url:`${c["qb"]}/${d}.mp3`});else{const i=1===+t.settings.is_ttsgender?"F":"M",l="F"==i?"&is_gender=1":"";Qp()({url:`${c["v"]}/v2/file/checkvocattsmp3/${a}?wid=${n}${l}`,method:"get"}).then(t=>{if(200==t.status){let l=t.data.res,d=t.data.filename?t.data.filename:a;if(200==l){const t=d.charAt(0);e("setVocaAudioCtx",{idx:r,url:`${c["sb"]}/${i}/${t}/${d}.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=`${c["v"]}/tts/${o}/${r}`,d="tts";1===+s.settings.is_ttsgender&&(l+="?is_gender=1",d+="/female"),Qp()({url:l,method:"get",responseType:"blob"}).then(i=>{if(200==i.status)if("ios"===s.platform)e("setVocaAudioCtx",{idx:n,url:`${c["w"]}/media/${d}/${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&&Qp()({url:l,method:"get",responseType:"blob"}).then(t=>{if(200==t.status)if("ios"===s.platform)e("setVocaAudioCtx",{idx:n,url:`${c["w"]}/media/${d}/${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;Qp()({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=c["k"]+"/tts/v1/fPGur2foEm/json";const a=i.wordfile,n=1===+t.settings.is_ttsgender?"F":"M",r=i.bookid,l=i.wid,d=i.key;Qp.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:d,url:`${c["sb"]}/${n}/${t}/${a}.mp3`})}else s("loadVocaTts",{bookid:r,wordfile:a,wid:l,key:d})}else s("loadVocaTts",{bookid:r,wordfile:a,wid:l,key:d})}).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),Qp()({url:`${c["v"]}/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})}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==c["a"])return!0;let o=s.getCurModule,a=null,n=null;switch(e.process_type===c["Y"]?o===c["M"]?(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 c["z"]:case c["b"]:if("ios"!==e.platform){const t=()=>{0==e.loading_percent&&e.current_tts_audio.readyState};e.current_tts_audio.onloadeddata=t}break;case c["C"]:case c["n"]:"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 c["U"]:case c["tb"]:"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==c["a"])return!0;const o=e.getCurModule,a=e.isSynthesia;switch(o){case c["z"]:case c["C"]:case c["n"]:case c["b"]:{const e=o===c["z"]&&"synthesia"===s.listening_mode,n=o===c["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 c["U"]:case c["tb"]:"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==c["a"])return!0;let a=s.getCurModule,n=o||"next",r=0,l="",d=null,h=null;a===c["z"]?(e.current_step{if(!0===c["Db"].includes(a))if("next"===n){if("S"===l){let s=a===c["z"]?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 c["z"]:case c["C"]:case c["n"]:case c["b"]:i("btnPlayAudioIos");break}else if(e.current_tts_audio.readyState>=2)switch(a){case c["z"]:case c["C"]:case c["n"]:case c["b"]:t("playAudio");break}else switch(a){case c["z"]:case c["C"]:case c["b"]:e.current_tts_audio.onloadeddata=function(i){a===c["z"]&&s.isSynthesia&&"synthesia"===e.listening_mode||e.current_tts_audio.readyState>=2&&0==e.loading_percent&&t("playAudio")};break;case c["n"]:[c["ob"],c["rb"],c["pb"]].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 c["z"]:case c["b"]:i("btnPlayAudioIos");break}a===c["z"]&&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===c["z"]){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===c["z"]&&!["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]&&c["z"]==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==c["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===c["b"]&&t("toggleAudio")},2e3)}else e("goNextShadowReading");else e("goNextShadowReading");else if(s.process_type===c["Y"]&&i===c["M"]){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?c["K"]:c["xb"];i=l?c["K"]:i,setTimeout(()=>{e("sendResult").then(s=>{let o=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),e("addPage",c["M"]).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===c["z"])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===c["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===c["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(c["Db"].includes(i))if("ios"===e.platform)t("setTTSPlayingStatus",!1),window.clearStudyMedia();else{let t=e.current_tts_audio;i===c["z"]&&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),g=[];if(o>=200?o<300?i=15:o>=300&&o<400?i=17:o>=400&&o<500?i=20:o>=500&&(i=22):p.length>22&&(i=15),null!=i){if(!(p.length<=i)){t("setLongChips",!0);let e=Math.floor(p.length/i),s=p.length%i,o=[],a=0;for(let t=0;t1e3)break;d.push(c),r.push(g);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[_].push(e)," "!=t&&"s"!=t||(t=" "),n[_].push(t)," "):t})),s=s.replace(/\s\s+/g," ").trim(),p=s.split(/\s/gi);p.length;let e=0;if(l.push(p),g=ht(p),p.length<3)2==p.length?(g=g.reverse(),c=[1,0]):c=[0];else if(c=h(g),g=u(g,c),p.join("")===g.join(""))while(p.join("")===g.join(""))if(c=h(p),g=u(p,c),e++,e>1e3)break;d.push(c),r.push(g)}}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?(_+="",t("setChipHtmlData",{result_html:_,s_name:r}),o(!0)):e(i+1)):s("checkExChar",{word:n[i],sentence:u}).then(s=>{console.log(s),_+=`${s}`,u+=s,n.length-1<=i?(_+="",t("setChipHtmlData",{result_html:_,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:""},[c["rb"],c["pb"]].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=`${c["v"]}/speakingdeletefile/${t.cid}/${t.uid}`,o={filename:e};Qp.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=[c["rb"],c["pb"]].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=`${c["v"]}/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),Qp.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===c["pb"]?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!=c["U"]&&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[0,"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,d=e.end_time-e.start_time>0?Math.round(.001*(e.end_time-e.start_time)):0;e.ingTime[e.process_type]&&(d+=e.ingTime[e.process_type],e.ingTime={});try{if(isNaN(d)||!isFinite(d)||d<0||d>16777215)throw new Error("study_time is NaN or Infinity")}catch(v){console.error(v,e.start_time,e.end_time,e.ingTime)}let h=s.getCIdForRecord;o={academy_id:h,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:d,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 u=function(t){for(let[e,s]of Object.entries(t))s||this.wrong_cnt++},_=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,g,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 c["z"]:case c["X"]:o={...o,wrong_cnt:0,score:100};break;case c["C"]:u.call(o,e.matching_data.right),_.call(o),n=e.matching_data.result_html;break;case c["n"]:u.call(o,e.dictation_data.right),_.call(o),n=e.dictation_data.result_html;break;case c["M"]:u.call(o,e.popquiz_data.right),_.call(o),n=[];let t=ht(e.popquiz_data);if(!t.skip)for(let s=0;s`,l=t.right_number[s],d=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 c["vb"]:u.call(o,e.writing_data.right),_.call(o),n=e.writing_data.result_html;break;case c["wb"]:u.call(o,e.writing_k_data.right),_.call(o),n=e.writing_k_data.result_html;break;case c["U"]:{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 d=[];for(let o=0;o${e.speaking_data.result_html[o]}`;d.push(i)}}n=d;break}case c["tb"]: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,u.call(o,e.wordbingo_data.right),_.call(o),n=e.wordbingo_data.result_html;break;case c["ub"]:case c["L"]:case c["P"]:case c["u"]:o.question_cnt||(o.question_cnt=e.bank_maxstep),u.call(o,e.bank_data.right),_.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(c["yb"].includes(t)&&"GD_1"==m&&s%3===0||c["zb"].includes(t)&&i.match("Review")&&["GB_1","GD_1"].includes(m)){o.question_cnt||(o.question_cnt=e.bank_maxstep),u.call(o,e.grammar_bank_data.right),_.call(o),n=e.grammar_bank_data.result_html,g=ht(e.grammar_bank_data),g.skip=!1,e.grammar_bank_data=Object.freeze(g);break}if(p=e.grammar_sub_unit,console.log("grammar_type : ",e.grammar_type),"MC"==e.grammar_type){if(g=ht(e[`grammar_${p}_data`]),u.call(o,g.right),_.call(o),n=[],!g.skip&&g.choices)for(let t=0;t`,a=g.right_number[t],r=g.answers[t];for(let e=0;e${g.choices[t][e]}`}n.push(o)}g.skip=!1,e[`grammar_${p}_data`]=Object.freeze(g)}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 c["W"]:o.question_cnt||(o.question_cnt=e.bank_maxstep,o.question_cnt=e.modules?e.modules[0].maxstep:e.bank_maxstep),u.call(o,e.grammar_bank_data.right),_.call(o),n=e.grammar_bank_data.result_html,g=ht(e.grammar_bank_data),g.skip=!1,e.grammar_bank_data=Object.freeze(g);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!=c["X"]&&i("setTodayStudy"),a==c["vb"]&&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(e,s)=>{console.log("::sendResult::",o,n),Qp.a.post(c["v"]+"/v4/result/sendresult",o).then(async s=>{t("setRDBSaving",!1),[c["z"],c["X"]].includes(a)||await i("sendResultHtml",n),s.data&&t("updateUnitRecordId",{ur_id:s.data}),e(s),t("setSendingResult",!1)}).catch((function(e){s(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["a"].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),console.log("::sendResultHtml END updatedata::",r),i["a"].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["a"].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==c["q"]?"initAudioFlash":"initAudio",o=e.process_type==c["q"]?"initAudioPlayFlash":"initAudioPlay";return s(i).then(()=>{s("fillLoadingPercent").then(e=>{t("toggleTimer",!0);let i=window.setTimeout(()=>{s(o).then(()=>{t("nextDisabled",!1)})},c["E"]);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(()=>{})},c["E"]);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")},c["E"]);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===c["pb"]?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)},c["E"]);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")},c["E"]);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")},c["E"]);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(c["yb"].includes(n)&&r%3===0&&"GD_1"==i||c["zb"].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),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)=>{Qp.a.get(`${c["v"]}/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 c["z"]:return e("startListening");case c["C"]:return e("startMatching");case c["n"]:return e("startDictation");case c["M"]:return e("startPopquiz");case c["vb"]:return e("startWriting");case c["wb"]:return e("startWritingK");case c["U"]:return e("startSpeaking");case c["tb"]:return e("startWordBingo");case c["L"]:case c["P"]:case c["ub"]:case c["u"]:return e("startBankModule");case c["b"]:return e("startAllListening");case c["X"]:return e("initPage"),e("startEBook");case c["W"]: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 c["yb"].includes(s)&&i%3===0||c["zb"].includes(s)&&o.match("Review")||c["zb"].includes(s)&&t.unit.v_mod&&"GT_0"==t.unit.v_mod?e("setLearningStatus",!1):e("setProcessType",t.process_type+c["Q"]).then(()=>{})}return"SV"==t.process_type?e("setLearningStatus",!1):e("setProcessType",t.process_type+c["Q"]).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=c["l"];switch(i){case c["C"]:o=c["xb"];break;case c["n"]:!t.process_type===c["a"]&&(o=c["xb"]);break;default:break}let a=setTimeout((function(){e("processNext").then(t=>{i!==c["wb"]&&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===c["z"]&&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=>{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 c["z"]:break;case c["C"]:0==e.matching_data.selected_words.length&&(a=!0);break;case c["n"]:0==e.dictation_select_key.length&&(a=!0),c["a"]==e.process_type&&(a=!1);break;case c["M"]:-1==e.popquiz_select&&(a=!0);break;case c["vb"]:0==e.writing_data.selected_words.length&&(a=!0);break;case c["wb"]:0==e.writing_k_current_answer.length&&(a=!0);break;case c["U"]: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 c["z"]:return t("clearAudioIterator"),s("sendResult").then(e=>{s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",c["z"]).then(()=>{t("initStep"),t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})});case c["C"]:case c["n"]: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)})})})}),c["S"]);t("setDelayActor",i)});case c["M"]:case c["vb"]:case c["wb"]: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)})})}),c["S"]);t("setDelayActor",i)});case c["U"]:return t("addWrongSenAllId"),t("setRecordCntZero"),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("sendResult").then(e=>{s("addPage",c["U"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})})});case c["tb"]:return t("addWrongSenAllId"),s("sendResult").then(e=>{let i=setTimeout((function(){t("setBingoHide",!0),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("setBingoAnswer",""),s("addPage",c["tb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",a),t("setModuleSkip",!1)})})})}),c["S"]);t("setDelayActor",i)});case c["ub"]:case c["L"]:case c["P"]:case c["u"]: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)})})}),c["S"]);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)})})}),c["S"]);t("setDelayActor",i)});case-1:return s("setProcessType",e.process_type+c["Q"]).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,d=void 0!=a[n+1]?a[n+1].idx:-1,h=Number(e.settings.is_scoringnext),u=a[n].idx,_=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,g=+e.unit.seq+1,m=e.unit.name;let b;switch((c["yb"].includes(p)&&g%3===0&&"GD_1"==u||c["zb"].includes(p)&&m.match("Review")&&["GB_1","GD_1"].includes(u))&&(u="GRAMMAR_BANK"),["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"].includes(u)&&(u="GRAMMAR"),u){case c["z"]:{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>=_?(t("toggleTimer",!1),s("allRepeatCheck").then(o=>{if(o){if(c["q"]==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",c["z"]).then(()=>{t("initStep"),t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})}else t("initStep"),t("setRepeatCntZero"),c["q"]==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"),c["q"]==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 c["C"]:return r>=_?u===c["C"]&&(t("toggleTimer",!1),s("checkMatching").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["J"]: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",c["C"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})}),b);t("setDelayActor",i)})})})):s("checkMatching").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["J"]: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 c["n"]:if(e.process_type===c["a"]){if(e.process_next_disabled&&!e.checked_wrong)return;return b=e.ox_right?c["K"]:c["xb"],b=h?c["J"]:b,r>=_?e.checked_wrong?(t("nextDisabled",!0),s("sendResult").then(e=>{t("oxShow",!1),t("setCheckedWrong",!1),s("checkAudioStop").then(()=>{t("addLoadingPercent",5),s("addPage",c["n"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})})):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",c["n"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})},b);t("setDelayActor",i)});else if(t("setCheckedWrong",!0),t("oxShow",!0),t("showDictationRight"),h)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"),h)s("wrongTimerIsScoringX");else{t("setPreventClick",!0);let e=setTimeout(()=>{t("setPreventClick",!1)},3e3);t("setDelayActor",e)}})}return r>=_?u===c["n"]&&(t("toggleTimer",!1),s("checkDictation").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["J"]: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",c["n"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})}),b);t("setDelayActor",i)})})):s("checkDictation").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["J"]: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 c["M"]:{let i=e.book&&50===+e.book.booktype&&0===h;return r>=_?u===c["M"]&&(t("toggleTimer",!1),s("checkPopquiz").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["K"]:b,t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),i?setTimeout(()=>{t("playAudio")},b+(i?750:0)):s("sendResult").then(e=>{let i=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",c["M"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})}),b);t("setDelayActor",i)})})):s("checkPopquiz").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["K"]:b,t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0);let o=setTimeout((function(){i?t("playAudio"):s("addStep").then(()=>{t("oxShow",!1),s("clearPopquiz").then(()=>{t("nextDisabled",!1),t("renderPopquiz")})})}),b+(i?750:0));t("setDelayActor",o)})}case c["vb"]:return r>=_?u===c["vb"]&&(t("toggleTimer",!1),s("checkWriting").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["K"]: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",c["vb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})},b);t("setDelayActor",i)})})})):s("checkWriting").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["K"]: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 c["wb"]:return r>=_?u===c["wb"]&&(t("toggleTimer",!1),s("checkWritingK").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["K"]: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",c["wb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",d)})})}),b);t("setDelayActor",i)})})):s("checkWritingK").then(()=>{b=e.ox_right?c["K"]:c["xb"],b=h?c["K"]:b,t("addWrongSenId"),t("nextDisabled",!0),t("oxShow",!0),s("showWritingKRight");let i=setTimeout((function(){t("oxShow",!1),s("addStep").then(()=>{s("clearWritingK").then(()=>{s("setWritingK")})})}),b);t("setDelayActor",i)});case c["U"]:if(!e.current_tts_audio)return!1;if(t("setSpeakingKorShow",!0),e.webkit_speech_available&&!e.is_mobile)if(r>=_){if(u!==c["U"])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",c["U"]).then(()=>{t("oxShow",!1),s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",d)})})}),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>=_){if(u!==c["U"])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",c["U"]).then(()=>{t("oxShow",!1),s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",d)})})}),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 c["tb"]:return r>=_?u===c["tb"]&&(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",c["tb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})}),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",c["tb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})}),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 c["ub"]:case c["L"]:case c["P"]:case c["u"]:if(0===l&&(_=e.bank_maxstep-1),b=e.ox_right?2e3:0,b=h?c["K"]:b,r>=_){t("toggleTimer",!1),t("nextDisabled",!0);let e=setTimeout(()=>{t("oxShow",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{s("addPage",u).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})},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",d),t("setDelayActor",null)});break;case"GRAMMAR":if(b=e.ox_right?c["K"]:c["xb"],b=h?c["K"]:b,"MC"==e.grammar_type)return r>=_?(t("toggleTimer",!1),s("checkGrammarMC").then(()=>{t("addWrongGrammarId","MC"),t("nextDisabled",!0),t("oxShow",!0),s("sendResult").then(e=>{let i=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",c["M"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})}),b);t("setDelayActor",i)})})):s("checkGrammarMC").then(()=>{t("addWrongGrammarId","MC"),t("nextDisabled",!0),t("oxShow",!0);let e=setTimeout((function(){s("addStep").then(()=>{t("oxShow",!1),s("clearPopquiz").then(()=>{t("nextDisabled",!1)})})}),b);t("setDelayActor",e)});if("SA"==e.grammar_type)return r>=_?(t("toggleTimer",!1),s("checkGrammarWritingK").then(()=>{t("addWrongGrammarId","SA"),t("nextDisabled",!0),t("oxShow",!0),s("showGrammarWritingKRight"),s("sendResult").then(e=>{let i=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("clearWritingK").then(()=>{s("addPage",c["wb"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("nextDisabled",!1),t("addLoadingPercent",5),s("nextActions",d).then(()=>{t("clearWritingKData")})})})})}),b);t("setDelayActor",i)})})):(t("setGrammarDisabled",!0),s("checkGrammarWritingK").then(()=>{t("addWrongGrammarId","SA"),t("nextDisabled",!0),t("oxShow",!0),s("showGrammarWritingKRight");let e=setTimeout((function(){t("oxShow",!1),s("addStep").then(()=>{s("clearWritingK").then(()=>{s("setGrammarWritingK")})})}),b);t("setDelayActor",e)}));if("CAB"==e.grammar_type)return r>=_?(t("toggleTimer",!1),s("checkGrammarCAB").then(()=>{t("addWrongGrammarId","CAB"),t("nextDisabled",!0),t("oxShow",!0),s("sendResult").then(e=>{let i=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",c["M"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})}),b);t("setDelayActor",i)})})):(t("setGrammarDisabled",!0),s("checkGrammarCAB").then(()=>{t("addWrongGrammarId","CAB"),t("nextDisabled",!0),t("oxShow",!0);let e=setTimeout((function(){s("addStep").then(()=>{t("oxShow",!1),s("clearPopquiz").then(()=>{t("renderPopquiz"),t("nextDisabled",!1)})})}),b);t("setDelayActor",e)}));if("SC"==e.grammar_type)return r>=_?(t("toggleTimer",!1),s("checkGrammarMatching").then(()=>{t("addWrongGrammarId","SC"),t("nextDisabled",!0),s("showGrammarChipsRight").then(()=>{s("sendResult").then(e=>{t("oxShow",!0);let i=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("addPage",c["C"]).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})}),b);t("setDelayActor",i)})})})):(t("setGrammarDisabled",!0),s("checkGrammarMatching").then(()=>{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&&(_=e.bank_maxstep-1),b=e.ox_right?2e3:0,b=h?c["K"]:b,r>=_){t("toggleTimer",!1),t("nextDisabled",!0);let e=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{s("addPage",u).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})}),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 c["X"]:if(_=Math.floor(l/2),r>=_){b=e.ox_right?c["K"]:c["xb"],t("nextDisabled",!0);let i=setTimeout((function(){t("ebookLoaded",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d),t("ebookLoaded",!1)})}),b);t("setDelayActor",i)}else s("addStep");break;case c["W"]:if(0===l&&(_=e.bank_maxstep-1),b=e.ox_right?2e3:0,b=h?c["K"]:b,r>=_){t("toggleTimer",!1),t("nextDisabled",!0);let e=setTimeout((function(){t("oxShow",!1),t("addLoadingPercent",5),s("sendResult").then(()=>{s("addPage",u).then(()=>{s("initStep").then(()=>{t("setRepeatCntZero"),t("addLoadingPercent",5),s("nextActions",d)})})})}),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"),c["z"]==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===c["X"]&&s("subStep")},clearResultData({state:t,commit:e,dispatch:s,getters:i}){return new Promise((e,o)=>{console.log("--- clearResultData ---");let a=i.getCIdForRecord,n={academy_id:a,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==n.schedule_type&&1==t.book.schedule_type_v&&(n.schedule_type_v=t.book.schedule_type_v,n.s_u_id=t.unit.s_u_id?t.unit.s_u_id:0),Qp.a.post(c["v"]+"/v2/result/setclearresult",n).then(t=>{200===t.status?s("clearIngDoc").then(()=>{e(!0)}):e(!0)}).catch(t=>{o(!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["a"].collection("users").doc(t.uid).collection("schedules").doc(o).collection("Bookunits").doc(a).set({}).then(t=>{s()}).catch(t=>{s(),console.error(t)})})},clearIngData({state:t,getters:e}){return new Promise(s=>{console.log("--- clearIngData ---");let o=t.schedule_id,a=e.getFBBookUnitId+"-ing";i["a"].collection("users").doc(t.uid).collection("schedules").doc(o).collection("Bookunits").doc(a).update({ing:null}).then(t=>{s()}).catch(t=>{s(),console.error(t)})})},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;[c["ob"],c["rb"],c["Y"]].includes(t.process_type)&&(a=!0),a?(i=(t.process_type,c["Y"],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(_.length<4){let e=ct(s),o=t+" "+e.join(" ")+" "+i;_.includes(o)||c==o||_.push(o)}}}}if(u=_.length>0?dt(_,4,c):dt(o,4,c),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=c["v"],r=!1;if([c["ob"],c["rb"],c["Y"]].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?Qp.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(c["bb"]<=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],d=i.idx_relation[r],h=i.choice_words[r],u=t.long_chips[r],_=d.indexOf(n),p=h[_];console.log(_,p);for(let c=0,g=o.length;c0?(e("getWritingHint",{pos:-1}),a):void 0===o[n]&&_>=0&&(e("getWritingHint",{pos:n}),{word:p,key:_})},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===c["pb"]?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}`;_.push(a)}}else 0!==i&&2!==i||_.push("rightanswer::"+r);t("setGrammarWritingK",{splited:n,writing_k_current_answer:_,writing_k_empty_pos:p,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]}`;u.push(s),h.splice(s,1,e),d=!0}l++}}}if(d)p++;else{let t,s=!1;for(g.add=!0,g.txt+=n,t=o;tt&&"q"==e.className.replace(/[\s| ]/g,"")&&null===i&&(i=s,!0)}));if(i){let t=` `;h.splice(i,1,t);break}}else{let s=`${e.writing_k_current_question[t]}`;u.push(t),h.splice(t,1,s),g.txt+=e.writing_k_current_question[t]}}return t("getWritingKHintMobile",{writing_k_current_answer:h,writing_k_hint_pos:u,writing_k_hint_w_pos:_,writing_k_hint_hit:p}),g},getWritingKHint({commit:t,state:e},s){let i=c["hb"];if(e.process_type==c["A"]&&(i=c["B"]),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=ht(e.writing_k_hint_pos),d=ht(e.writing_k_hint_w_pos),h={type:1,pos:[]};for(let c=0,u=e.writing_k_current_question.length;c{if("ios"===e.platform){if(e.process_type!==c["pb"]){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,d,h=t.modules[t.current_page].idx,u={};console.log("ingSave",h),e("toggleTimer",!1),u.last_mod=h,u.current_page=t.current_page,u.current_step=t.current_step,u.audio_files=t.audio_files,u.voca_audio_files=t.voca_audio_files,t.words.length>0&&(u.words_ids=t.words.map(t=>t.id)),t.sentences.length>0&&(u.sentences_ids=t.sentences.map(t=>t.id)),u.study_time=t.end_time-t.start_time>0?Math.round(.001*(t.end_time-t.start_time)):0;let _=h,p=["GT_1","GT_2","GB_1","GB_2","GB_3","GB_4","GD_1","GD_2","GD_3"];p.includes(h)&&(h="GRAMMAR");let g={};if("GRAMMAR"==h){console.log("ingSave Grammar",t,t.unit),g.unit=t.unit,g.prefix_mod=u.last_mod.split("_")[0],g.current_page=u.current_page,g.current_step=u.current_step,u.grammar_type=t.grammar_type;let e=_.replace(/\_/g,"").replace(/\G/g,"").toLowerCase();switch(t.grammar_type){case"MC":case"CAB":a=ht(t[`grammar_${e}_data`]),n=a.right.length,u.current_step("redcard"!=t.cls&&"greencard"!=t.cls||(t.cls="defaultcard"),t)),u.wordbingo_selections=d,u.wordbingo_words=ht(t.wordbingo_words);break;case c["ub"]:case c["L"]:case c["P"]:case c["u"]:a=ht(t.bank_data),n=a.right.length,u.current_step{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(!a||!n||!r)return!0;let l=await i["a"].collection("users").doc(a).collection("schedules").doc(n).collection("Bookunits").doc(r).get(),d=!1;if(console.log("ingLoad",l.exists,l.data()),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=pt.call(s,"sentences_ids")),i&&(d=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===c["W"]&&(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),[c["ob"],c["rb"],c["pb"]].includes(t.process_type)?(c["Db"].includes(o)&&(i=pt.call(s,"voca_audio_files")),i&&(i=pt.call(s,"words_ids"))):(c["Db"].includes(o)&&(i=pt.call(s,"audio_files")),i&&(i=pt.call(s,"sentences_ids"))),i)switch(o){case c["tb"]:i="wordbingo_data"in s,i&&(i=pt.call(s,"wordbingo_selections")),i&&(i=pt.call(s,"wordbingo_words"));break;case c["n"]:i="dictation_data"in s,i&&(i=pt.call(s.dictation_data,"choice_letters")),i&&(i=pt.call(s.dictation_data,"selected_letters")),i&&(i=pt.call(s.dictation_data,"answers"));break;case c["M"]:i="popquiz_data"in s,i&&(i=pt.call(s.popquiz_data,"choices")),i&&(i=pt.call(s.popquiz_data,"right_number"));break;case c["C"]:i=pt.call(s,"long_chips"),i&&(i="matching_data"in s),i&&(i=pt.call(s.matching_data,"choice_words")),i&&(i=pt.call(s,"matching_exception_idx")),i&&(i=pt.call(s,"matching_exception_char"));break;case c["vb"]:i=pt.call(s,"long_chips"),i&&(i="writing_data"in s),i&&(i=pt.call(s.writing_data,"choice_words")),i&&(i=pt.call(s,"writing_exception_idx")),i&&(i=pt.call(s,"writing_exception_char"));break;case c["wb"]:i="writing_k_data"in s;break;case c["U"]:i="speaking_data"in s;break;case c["ub"]:case c["L"]:case c["P"]:case c["u"]:i="bank_data"in s,i&&(i=pt.call(s,"bank_questions"));break;case c["W"]:i&&(i=pt.call(s,"sentences_ids")),console.log(s);break;default:break}i&&(d=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 d},exitLeaning({commit:t}){t("setLearningStatus",!1),t("initializeStudyInfo"),t("initializeBookInfo"),t("toggleDialog",{name:"dialog_leaning_stop",value:!1})},setTodayStudy({commit:t,state:e}){Qp.a.post(`${c["v"]}/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}){Qp.a.get(`${c["v"]}/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")},setLoadStartFalse({state:t,getters:e,commit:s}){return console.log(e.getCurModule,t.grammar_type),e.getCurModule===c["wb"]||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===c["z"]){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){Qp.a.post(c["v"]+"/user/updatetutorial",{uid:e.uid,type:[s]}).then(e=>{t("updateTutorial",s)}).catch(t=>{window.console.error(t)})},resetTutorial({commit:t,state:e}){Qp.a.post(c["v"]+"/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)=>{Qp.a.get(`${c["v"]}/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_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(t=>{e("saveUserInfo",n),t(!0)}):new Promise(t=>{t(!1)})},setCheckupInfo({commit:t},e){let s=[];return s=e.is_random?ct(e.sentences):e.sentences,t("setSentences",s),!0},playAudioIos({state:t,commit:e,getters:s,dispatch:i},o){let a,n=c["z"]===t.modules[t.current_page].idx,r=c["tb"]===t.modules[t.current_page].idx;if(t.process_type===c["q"]){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=[c["ob"],c["rb"],c["pb"]].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))}}),[c["ob"],c["rb"],c["pb"]].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))}}),[c["ob"],c["rb"],c["pb"]].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){Qp.a.post(`${c["v"]}/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=`${c["o"]}/mp3/page/${t}.mp3`;try{const t=await Qp()({url:s,method:"get",responseType:"blob"});if(200===t.status){if("ios"===e.platform){const t=`${c["w"]}/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=ht(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)=>{Qp.a.post(`${c["v"]}/v1/result/updatereport/${e.ur_id}`,e).then(e=>{t(e)}).catch(t=>{s(t)})})},updateSynthesiaOption({state:t},e){Qp.a.post(`${c["v"]}/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){Qp.a.post(`${c["v"]}/user/${t.cid}/${t.uid}/setuseroption`,{column:"speak_timer",value:s?1:0}).then(()=>{e("setSpeakTimer",s)}).catch(t=>{window.console.error(t)})}};o["a"].use(lt["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{}),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!==c["x"]||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 ug={props:dg,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:hg,beforeDestroy(){console.log("AVBase beforeDestroy"),this.audioCtx&&this.audioCtx.suspend()},destroyed(){this.$destroy()}};const _g={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}},pg={name:"av-waveform",mixins:[ug],props:_g,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!==c["x"]||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","")),Qp()({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;s0&&(this.tot_cnt=t[e].maxstep)}}},computed:{...Object(lt["c"])(["getInitGuideDialog"]),...Object(lt["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}`},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(){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 c["ab"]:case c["gb"]:t=this.$store.getters.getDivision?" - "+this.$store.getters.getDivision:"";break;case c["q"]:t="";break;default:break}return t},getLearningMode(){return this.$store.getters.getLearningMode},printTimer(){return this.$store.getters.getMockExamTime}},methods:{...Object(lt["d"])(["setInitGuideDialog"]),...Object(lt["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,a=s.booktype_1,n=+s.category,r=+i.words_cnt||0,l=["학습하기를","시험보기를","어휘학습을","본문학습을","심화학습을","문장학습을","지문학습을","이론학습을","기본학습을"],d=" 종료하시겠습니까?",h="아직 학습이 완료되지 않았습니다.
학습하기를 눌러 끝까지 도전해보세요!",u="아직 시험이 완료되지 않았습니다.
시험보기를 눌러 끝까지 도전해보세요!",_="학습하기",p="시험보기";if(("coursebook"==this.$route.name&&31!==+s.booktype||"readingbook"==this.$route.name&&50===+s.booktype)&&(n=1),e===c["q"])return"book"===this.$route.name?(this.dialog_title=l[0]+d,t="study"):(this.dialog_title="Flash Card를"+d,t="pocket"),this.dialog_content=h,this.dialog_left_btn=_,this.dialog_right_btn="종료",t;if(e===c["R"])return t="shadow",this.dialog_title="쉐도우를"+d,this.dialog_content=h,this.dialog_left_btn=_,t;if(e===c["x"])return t="level_test",this.dialog_title="레벨 테스트를"+d,this.dialog_content="아직 테스트가 완료되지 않았습니다.
테스트하기를 눌러 끝까지 도전해보세요!",this.dialog_left_btn="테스트하기",t;if(0===o)switch(n){case 1:case 4:switch(a){case c["g"]:case c["f"]:4!=n||r?(e===c["ob"]?(this.dialog_title=l[2]+d,t="voca"):e===c["ab"]?4==n||10==n?(this.dialog_title=l[3]+d,t="major"):(this.dialog_title=l[5]+d,t="study2"):e===c["gb"]&&(this.dialog_title=l[4]+d,t="advanced"),this.dialog_content=h,this.dialog_left_btn=_):e===c["ab"]?(this.dialog_title=l[0]+d,t="study",this.dialog_content=h,this.dialog_left_btn=_):e===c["gb"]&&(this.dialog_title=l[1]+d,t="test",this.dialog_content=u,this.dialog_left_btn=p);break;case c["i"]:e===c["rb"]?(this.dialog_title=l[0]+d,this.dialog_content=h,this.dialog_left_btn=_,t="study"):e===c["pb"]&&(this.dialog_title=l[1]+d,this.dialog_content=u,this.dialog_left_btn=p,t="test");break;case c["d"]:e===c["ob"]?(this.dialog_title=l[2]+d,t="voca"):e===c["A"]?3==n?(this.dialog_title=l[6]+d,t="study3"):(this.dialog_title=l[3]+d,t="major"):e===c["a"]&&(this.dialog_title=l[4]+d,t="advanced"),this.dialog_content=h,this.dialog_left_btn=_;break;case c["e"]:e===c["t"]?(this.dialog_title=l[7]+d,t="grammar_theory"):e===c["r"]?(this.dialog_title=l[8]+d,t="grammar_basics"):e===c["s"]&&(this.dialog_title=l[4]+d,t="grammar_deep"),this.dialog_content=h,this.dialog_left_btn=_;break;case c["h"]:this.dialog_title="학습을 "+d,e===c["Z"]?t="story_v":e===c["Y"]?t="story_m":e===c["V"]&&(t="story_a"),this.dialog_content=h,this.dialog_left_btn=_;break;default:break}break;case 2:case 3:case 10:switch(a){case c["g"]:case c["f"]:e===c["ob"]?(this.dialog_title=l[2]+d,t="voca"):e===c["ab"]?[3,10].includes(+n)?(this.dialog_title=l[6]+d,t="study3"):(this.dialog_title=l[3]+d,t="major"):e===c["gb"]&&(this.dialog_title=l[4]+d,t="advanced"),this.dialog_content=h,this.dialog_left_btn=_;break;case c["d"]:e===c["ob"]?(this.dialog_title=l[2]+d,t="voca"):e===c["A"]?3==n?(this.dialog_title=l[6]+d,t="study3"):(this.dialog_title=l[3]+d,t="major"):e===c["a"]&&(this.dialog_title=l[4]+d,t="advanced"),this.dialog_content=h,this.dialog_left_btn=_;break;default:break}break;default:break}else if(1===o)if(1==this.$store.state.book.schedule_type_v&&a!==c["i"])switch(a){case c["g"]:case c["f"]:e===c["ob"]?(this.dialog_title=l[2]+d,this.dialog_content=h,this.dialog_left_btn=_,t="voca"):e===c["ab"]?(this.dialog_content=h,this.dialog_left_btn=_,[3,10].includes(n)?(this.dialog_title=l[6]+d,t="study3"):(this.dialog_title=l[3]+d,t="major")):e===c["gb"]&&(this.dialog_title=l[4]+d,this.dialog_content=h,this.dialog_left_btn=_,t="advanced");break;case c["d"]:e===c["ob"]?(this.dialog_title=l[2]+d,this.dialog_content=h,this.dialog_left_btn=_,t="voca"):e===c["A"]?(this.dialog_content=h,this.dialog_left_btn=_,3==n?(this.dialog_title=l[6]+d,t="study3"):(this.dialog_title=l[3]+d,t="major")):e===c["a"]&&(this.dialog_title=l[4]+d,this.dialog_content=h,this.dialog_left_btn=_,t="advanced");break;default:break}else switch(a){case c["g"]:case c["f"]:e===c["ab"]?(this.dialog_title=l[0]+d,this.dialog_content=h,this.dialog_left_btn=_,t="study"):e===c["gb"]&&(this.dialog_title=l[1]+d,this.dialog_content=u,this.dialog_left_btn=p,t="test");break;case c["i"]:e===c["rb"]?(this.dialog_title=l[0]+d,this.dialog_content=h,this.dialog_left_btn=_,t="study"):e===c["pb"]&&(this.dialog_title=l[1]+d,this.dialog_content=u,this.dialog_left_btn=p,t="test");break;case c["d"]:e===c["ab"]?(this.dialog_title=l[0]+d,this.dialog_content=h,this.dialog_left_btn=_,t="study"):e===c["gb"]&&(this.dialog_title=l[1]+d,this.dialog_content=u,this.dialog_left_btn=p,t="test");break;default:break}return t},setClass(){let t="";switch(this.$store.state.process_type){case c["ab"]:case c["A"]:case c["rb"]:case c["R"]:case c["r"]:case c["q"]:case c["Y"]:t="success";break;case c["ob"]:case c["t"]:t="warning";break;case c["gb"]:case c["a"]:case c["pb"]:case c["s"]:case c["V"]:t="info2";break;default:break}return t},studyEndDialog(){let t=this.$store.getters.getCurModule;[c["F"],c["R"],c["q"],c["x"]].includes(this.getLearningMode)||1==this.$store.getters.getCurStepper&&this.$store.getters.getCurrentRestudy||this.getLearningMode===c["Z"]&&"E"===t||this.getLearningMode===c["x"]?this.studyEnd():this.$store.dispatch("ingSave").then(t=>{t&&this.studyEnd()})},studyEnd(){console.log("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===c["x"]&&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":this.$router.push({path:"/",query:{t:"logo"}});break;case"leveltest":this.$store.commit("setProcessType",null),this.$router.push({path:"/"});break;default:break}},setBookName(){let t=this.$store.state.process_type,e="";return e=c["q"]==t?"Flash Card":[c["Z"],c["Y"],c["V"]].includes(t)?this.$store.state.book.bookname:this.$store.state.book.schedule_name,e},setBookSubName(){let t=this.$store.state.process_type,e="";return e=c["q"]==t?"book"===this.$route.name?"문항을 다시 한 번 들어보세요!":"저장한 문항을 다시 한 번 들어보세요!":[c["Z"],c["Y"],c["V"]].includes(t)?this.$store.state.book.subtitle:this.$store.state.unit.name,e},setBookNormalMent(t){switch(console.log("setBookNormalMent",t),this.$store.state.process_type){case c["ob"]:switch(t){case c["z"]:this.prev_ment="제시된 단어를",this.next_ment="따라 말해보며 암기",this.end_ment="하세요!";break;case c["tb"]:this.prev_ment="제시된 뜻에 맞는",this.next_ment="카드를 선택하세요.";break;case c["n"]:this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요.";break;case c["M"]:this.prev_ment="제시된 단어에",this.next_ment="알맞은 뜻을 선택하세요.";break;default:break}break;case c["ab"]:switch(t){case c["z"]:this.prev_ment="제시된",this.next_ment="문장을 듣고 반복 암기",this.end_ment="하세요!";break;case c["C"]:this.prev_ment="음성을 듣고",this.next_ment="순서에 맞게 문장을 완성하세요.";break;case c["n"]: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 c["M"]:this.prev_ment="제시된 문장의",this.next_ment="알맞은 답을 찾아보세요.";break;case c["vb"]:this.prev_ment="제시된 뜻에 맞게",this.next_ment="문장을 조합하세요.";break;default:break}break;case c["gb"]:switch(t){case c["C"]:this.prev_ment="음성을 듣고",this.next_ment="순서에 맞게 문장을 완성하세요.";break;case c["n"]:this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요.";break;case c["wb"]:this.prev_ment="제시된 뜻에 맞게",this.next_ment="문장을 영작하세요.";break;case c["U"]: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 c["ob"]:switch(t){case c["z"]:this.prev_ment="제시된 단어를",this.next_ment="따라 말해보며 암기",this.end_ment="하세요!";break;case c["tb"]:this.prev_ment="제시된 뜻에 맞는",this.next_ment="카드를 선택하세요.";break;case c["n"]:this.prev_ment="음성을 듣고",this.next_ment="빈 칸을 완성하세요.";break;case c["ub"]:4==s?(this.prev_ment="지문의 어휘 변형",this.next_ment="문제를 풀어보세요."):(this.prev_ment="교과서 내용의",this.next_ment="어휘 문제를 풀어보세요.");break;default:break}break;case c["A"]:switch(t){case c["z"]: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 c["C"]:this.prev_ment="음성에 듣고",this.next_ment="순서에 맞게 문장을 완성하세요.";break;case c["M"]:this.prev_ment="제시된 문장의",this.next_ment="알맞은 답을 찾아보세요.";break;case c["U"]:this.prev_ment="제시된 문장을",this.next_ment="따라 읽어보세요.";break;case c["wb"]:this.prev_ment="제시된 뜻에 맞게",this.next_ment="문장을 영작하세요.";break;default:break}break;case c["a"]:switch(t){case c["L"]:this.prev_ment=(4==s?"문장을":"순서를")+" 조합하여",this.next_ment="글의 흐름을 익혀보세요.";break;case c["P"]:this.prev_ment=4==s?"지문 변형 문제를 통해":"교과서 본문 문제로",this.next_ment="독해력을 키워보세요.";break;case c["n"]:this.prev_ment=4==s?"해석에 맞는":"해석에 맞게",this.next_ment="영어 구문을 완성하세요.";break;case c["u"]:4==s?(this.prev_ment="지문의 문법 변형",this.next_ment="문제를 풀어보세요."):(this.prev_ment="교과서 내용의",this.next_ment="문법 문제를 풀어보세요.");break;default:break}break;default:break}},setBookVocaMent(t){if(t===c["z"])this.prev_ment="제시된 단어를",this.next_ment="따라 말해보며 암기",this.end_ment="하세요!";else switch(this.$store.state.process_type){case c["rb"]:switch(t){case c["tb"]:this.prev_ment="제시된 뜻에 맞는",this.next_ment="카드를 선택하세요.";break;case c["n"]:this.prev_ment="음성을 듣고",this.next_ment="빈 칸을 완성하세요.";break;case c["M"]:this.prev_ment="제시된 단어에 맞는",this.next_ment="뜻을 선택하세요.";break;default:break}break;case c["pb"]:switch(t){case c["n"]:this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요.";break;case c["U"]:this.prev_ment="제시된 단어를",this.next_ment="따라 읽어보세요.";break;case c["wb"]: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],c["zb"].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],(c["yb"].includes(s)&&i%3===0&&"GD_1"==t||c["zb"].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 c["Z"]:this.prev_ment="영어 동화를",this.next_ment="집중하여 들어보세요.";break;case c["Y"]:t===c["M"]?(this.prev_ment="동화 속",this.next_ment="필수 영단어",this.end_ment="를 점검합니다."):t===c["C"]?(this.prev_ment="음성을 듣고",this.next_ment="순서에 맞게 문장",this.end_ment="을 완성하세요."):t===c["n"]?(this.prev_ment="음성을 듣고",this.next_ment="철자를 입력하세요."):t===c["U"]&&(this.prev_ment="제시된 문장을",this.next_ment="따라 읽어보세요.");break;case c["V"]: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===c["q"])return this.prev_ment="제시된 문장의",void(this.next_ment="음성을 들어보세요.");if(this.$store.state.process_type===c["R"])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==c["g"]?this.setBookNormalMent(t):this.booktype_1==c["d"]?this.setBookBankMent(t):this.setBookNormalMent(t):this.booktype_1==c["g"]||this.booktype_1==c["d"]&&1==this.schedule_type?this.setBookNormalMent(t):this.booktype_1==c["d"]&&0==this.schedule_type?this.setBookBankMent(t):this.booktype_1==c["i"]?this.setBookVocaMent(t):this.booktype_1==c["e"]?this.setBookGrammarMent(t):this.booktype_1==c["h"]?this.setBookStoryMent(t):this.setBookNormalMent(t))},setMockExamName(){return this.$store.state.mockexam?this.$store.state.mockexam.bookname:""},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"):"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)&&(c["F"]===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)},c["D"])),[c["q"],c["R"]].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)}},Lg=Bg,Og=(s("124d"),Object(_["a"])(Lg,Pg,Rg,!1,null,null,null)),zg=Og.exports;g()(Og,{VAppBar:Cu["a"],VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCardTitle:P["c"],VCol:R["a"],VDialog:E["a"],VDivider:ko["a"],VIcon:xt["a"],VRow:L["a"]}),Hs()(Og,{Ripple:Ks["b"]});var Vg=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",attrs:{id:"foot-cname"}},[t._v(t._s(t.$store.state.cname))])]),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)},qg=[],jg=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)])},Gg=[],Fg={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="")}},Ug=Fg,Wg=(s("6421"),Object(_["a"])(Ug,jg,Gg,!1,null,null,null)),Hg=Wg.exports;g()(Wg,{VBtn:D["a"]});var Kg={name:"footer-default",components:{FootNumbers:Hg},data(){return{LEVEL_TEST_RESULT:c["x"]+c["Q"],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)}},Yg=Kg,Zg=(s("1812"),Object(_["a"])(Yg,Vg,qg,!1,null,null,null)),Jg=Zg.exports;g()(Zg,{VBtn:D["a"],VCard:I["a"],VCardActions:P["a"],VCardText:P["b"],VCol:R["a"],VDialog:E["a"],VRow:L["a"]});var Qg=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)},Xg=[],tm=s("db2a"),em=s.n(tm),sm={name:"FooterEBook",components:{DialogDrag:em.a},data(){return{mdiClose:ft["B"],mdiRewind:ft["W"],mdiFastForward:ft["E"],mdiPlayCircleOutline:ft["U"],mdiPauseCircleOutline:ft["R"],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)})})}}},_m=um,pm=(s("36d3"),Object(_["a"])(_m,dm,hm,!1,null,null,null)),gm=pm.exports;g()(pm,{VContent:ng["a"],VIcon:xt["a"]});var mm=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)},bm=[],vm={components:{HeaderStudying:zg,FooterDefault:Jg}},fm=vm,wm=Object(_["a"])(fm,mm,bm,!1,null,null,null),km=wm.exports;g()(wm,{VContainer:N["a"],VContent:ng["a"]});var xm=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)},ym=[],Cm={},$m=Object(_["a"])(Cm,xm,ym,!1,null,null,null),Sm=$m.exports;g()($m,{VContainer:N["a"],VContent:ng["a"]});var Tm=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)},Am=[],Mm={},Dm=Mm,Im=Object(_["a"])(Dm,Tm,Am,!1,null,null,null),Pm=Im.exports;g()(Im,{VContainer:N["a"],VContent:ng["a"]});s("f20b");var Rm=s("2b27"),Nm=s.n(Rm);o["a"].use(cg["a"],{refreshOnceOnNavigation:!0}),o["a"].prototype.$axios=Qp.a,o["a"].use(bg),o["a"].use(sg["a"]),o["a"].use(og.a,{name:"v-touch"}),o["a"].component("layout-default",cm),o["a"].component("layout-login",gm),o["a"].component("layout-studying",km),o["a"].component("layout-checkup",Sm),o["a"].component("layout-404",Pm),Eg.a.locale("ko"),o["a"].use(Nm.a),o["a"].prototype.$dayjs=Eg.a,o["a"].config.productionTip=!1,Kp.beforeEach(async(t,e,s)=>{let i="",o="";if(null!==eg.state.dialog_resolve||null!==eg.state.dialog_reject)return!1;let a=!0;if("login"===t.name&&t.query.t&&"auth"===t.query.t)s();else if(eg.getters.getUserAuthCheck||(a=await eg.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":if(!0===eg.getters.getLearningStatus){let t=eg.getters.getLearningMode;if(new RegExp("R","g").test(t)){let e;eg.dispatch("soundEffectPlay","click");let i=t.replace("R","");if(1==+eg.state.book.schedule_type){if(1==eg.state.book.schedule_type_v)return eg.dispatch("exitLeaning"),n("btn"),!1;switch(eg.state.book.booktype_1){case c["i"]:i==c["rb"]&&(e=+eg.state.unit.advanced_done);break;case c["f"]:i==c["ob"]&&(e=+eg.state.unit.study_done),i==c["ab"]&&(e=1);break;default:i==c["ab"]&&(e=+eg.state.unit.test_done);break}}else switch(eg.state.book.booktype_1){case c["g"]:i==c["ob"]&&(e=+eg.state.unit.study_done),i==c["ab"]&&(e=+eg.state.unit.test_done);break;case c["d"]:i==c["ob"]&&(e=+eg.state.unit.major_done),i==c["A"]&&(e=+eg.state.unit.advanced_done);break;case c["i"]:i==c["rb"]&&(e=+eg.state.unit.advanced_done);break;case c["f"]:i==c["ob"]?e=+eg.state.unit.study_done:i==c["ab"]&&(e=[1,2,3].includes(+eg.state.book.category)&&["listeningbook"].includes(o)?+eg.state.unit.test_done:1);break;case c["e"]:i==c["t"]?e=+eg.state.unit.grammar_basics_done:i==c["r"]&&(e=+eg.state.unit.grammar_deep_done);break;default:}if(console.log("process_type",t,o,e),![c["ab"]+c["Q"],c["ob"]+c["Q"],c["A"]+c["Q"],c["rb"]+c["Q"]].includes(t)||!["book","coursebook","readingbook","listeningbook","schoolbook"].includes(o)||e&&0!=e||eg.state.book.id>87&&eg.state.book.id<101&&"m3"==eg.state.book.grade&&eg.state.unit.seq>7&&![91,100].includes(+eg.state.book.id)||[91,100].includes(+eg.state.book.id)&&"m3"==eg.state.book.grade&&eg.state.unit.seq>8)if(![c["t"]+c["Q"],c["r"]+c["Q"]].includes(t)||!["book","coursebook","readingbook","listeningbook","schoolbook"].includes(o)||e&&0!=e||c["zb"].includes(+eg.state.unit.book_id)&&eg.state.unit.grammar_theory_done_modules&&"GT_0"==eg.state.unit.grammar_theory_done_modules){if(eg.dispatch("exitLeaning"),"logo"!=a)return!1;s()}else{let t=await eg.dispatch("awaitingDialog",{d_name:"dialog_leaning_result",value:!0});switch(t&&eg.commit("setDialog",{d_name:"dialog_leaning_result",value:!1}),console.log(t),t){case"resultend":eg.dispatch("exitLeaning"),n("btn");break;case"gotest":case"cancel":default:return n("btn"),!1}}else{let t=await eg.dispatch("awaitingDialog",{d_name:"dialog_leaning_result",value:!0});switch(t&&eg.commit("setDialog",{d_name:"dialog_leaning_result",value:!1}),t){case"resultend":eg.dispatch("exitLeaning"),n("btn");break;case"gotest":case"cancel":default:return n("btn"),!1}}}else{eg.dispatch("soundEffectPlay","exit");let t=await eg.dispatch("awaitingDialog",{d_name:"dialog_leaning_stop",value:!0});switch(t&&eg.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1}),t){case"studyend":eg.dispatch("exitLeaning"),n("btn");break;case"cancel":default:n("btn");break}}return}break;case"checkup":if("checkupresult"!==i){let t=await eg.dispatch("awaitingDialog",{d_name:"dialog_leaning_stop",value:!0});switch(t&&eg.commit("setDialog",{d_name:"dialog_leaning_stop",value:!1}),t){case"studyend":eg.commit("clearSentences"),s();break;case"cancel":default:n("btn");break}return}break;case"checkupresult":"checkup"!==i&&eg.commit("clearSentences"),s();break;default:break}if("logo"==a)return eg.dispatch("soundEffectPlay","click"),s(),!0;switch(i){case"login":switch(o){case!1:case"":s();break;case"index":{eg.dispatch("soundEffectPlay","exit");let t=await eg.dispatch("awaitingDialog",{d_name:"exit_dialog",value:!0});switch(t&&eg.commit("setDialog",{d_name:"exit_dialog",value:!1}),t){case"logout":return eg.dispatch("fbSetUIDNull"),eg.dispatch("logOutUser"),void s();case"appexit":window.onbeforeunload=null,eg.dispatch("fbSetUIDNull"),eg.dispatch("logOutUser").then(()=>{eg.state.is_mobile?window.navigator.app.exitApp():window.close()}).catch(()=>{s(!1)}),s();break;case"cancel":n("btn");break;default:eg.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(eg.dispatch("soundEffectPlay","click"),["book","coursebook","readingbook","listeningbook","schoolbook"].includes(o)&&"F"==eg.state.product_type&&0==eg.state.a_count){let t=await eg.dispatch("getACount");if(0==t){let t=await eg.dispatch("awaitingDialog",{d_name:"a_info_dialog",value:!0});switch(t&&eg.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=eg.getters.getLearderboardAuth;switch(t){case 0:return eg.commit("setDialog",{d_name:"leaderboard_dialog",value:!0}),s(!1),!1;case 1:s();break;case 2:if(eg.state.uclass>c["mb"]){s();break}return eg.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)&&eg.commit("setRouteJump",o),s();break;case"book":case"coursebook":case"readingbook":case"listeningbook":case"schoolbook":"schedule"==o&&eg.state.route_jump&&eg.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 eg.dispatch("awaitingDialog",{d_name:"auth_expired_dialog",value:!0});t&&(eg.commit("setDialog",{d_name:"auth_expired_dialog",value:!1}),s({name:"login",query:{t:"auth"}}))}}}),new o["a"]({vuetify:lg,router:Kp,render:t=>t(v),store:eg}).$mount("#app")},"59ac":function(t,e,s){"use strict";s("4bbc")},"59c1":function(t,e,s){},"5ae2":function(t,e,s){t.exports=s.p+"img/ios-02.cecc33af.png"},"5ba0":function(t,e,s){},"5d78":function(t,e,s){},"5e95":function(t,e,s){"use strict";s("0bb6")},"5eff":function(t,e,s){},"5fb0":function(t,e,s){"use strict";s.d(e,"v",(function(){return a})),s.d(e,"w",(function(){return n})),s.d(e,"G",(function(){return r})),s.d(e,"I",(function(){return l})),s.d(e,"m",(function(){return c})),s.d(e,"j",(function(){return d})),s.d(e,"qb",(function(){return h})),s.d(e,"T",(function(){return u})),s.d(e,"H",(function(){return _})),s.d(e,"k",(function(){return p})),s.d(e,"sb",(function(){return g})),s.d(e,"o",(function(){return m})),s.d(e,"N",(function(){return b})),s.d(e,"mb",(function(){return v})),s.d(e,"lb",(function(){return f})),s.d(e,"kb",(function(){return w})),s.d(e,"ib",(function(){return k})),s.d(e,"nb",(function(){return x})),s.d(e,"jb",(function(){return y})),s.d(e,"ab",(function(){return C})),s.d(e,"gb",(function(){return $})),s.d(e,"p",(function(){return S})),s.d(e,"q",(function(){return T})),s.d(e,"ob",(function(){return A})),s.d(e,"A",(function(){return M})),s.d(e,"a",(function(){return D})),s.d(e,"rb",(function(){return I})),s.d(e,"pb",(function(){return P})),s.d(e,"R",(function(){return R})),s.d(e,"F",(function(){return N})),s.d(e,"t",(function(){return E})),s.d(e,"r",(function(){return B})),s.d(e,"s",(function(){return L})),s.d(e,"Z",(function(){return O})),s.d(e,"Y",(function(){return z})),s.d(e,"V",(function(){return V})),s.d(e,"x",(function(){return q})),s.d(e,"z",(function(){return j})),s.d(e,"C",(function(){return G})),s.d(e,"n",(function(){return F})),s.d(e,"M",(function(){return U})),s.d(e,"vb",(function(){return W})),s.d(e,"wb",(function(){return H})),s.d(e,"U",(function(){return K})),s.d(e,"tb",(function(){return Y})),s.d(e,"b",(function(){return Z})),s.d(e,"ub",(function(){return J})),s.d(e,"L",(function(){return Q})),s.d(e,"P",(function(){return X})),s.d(e,"u",(function(){return et})),s.d(e,"X",(function(){return st})),s.d(e,"W",(function(){return it})),s.d(e,"Q",(function(){return ot})),s.d(e,"O",(function(){return at})),s.d(e,"g",(function(){return nt})),s.d(e,"d",(function(){return rt})),s.d(e,"i",(function(){return lt})),s.d(e,"f",(function(){return ct})),s.d(e,"e",(function(){return dt})),s.d(e,"h",(function(){return ht})),s.d(e,"eb",(function(){return ut})),s.d(e,"fb",(function(){return _t})),s.d(e,"db",(function(){return pt})),s.d(e,"Db",(function(){return gt})),s.d(e,"yb",(function(){return mt})),s.d(e,"zb",(function(){return bt})),s.d(e,"Bb",(function(){return vt})),s.d(e,"Cb",(function(){return ft})),s.d(e,"Ab",(function(){return wt})),s.d(e,"bb",(function(){return kt})),s.d(e,"hb",(function(){return xt})),s.d(e,"B",(function(){return yt})),s.d(e,"K",(function(){return Ct})),s.d(e,"J",(function(){return $t})),s.d(e,"xb",(function(){return St})),s.d(e,"S",(function(){return Tt})),s.d(e,"l",(function(){return At})),s.d(e,"cb",(function(){return Mt})),s.d(e,"D",(function(){return Dt})),s.d(e,"E",(function(){return It})),s.d(e,"y",(function(){return Pt})),s.d(e,"c",(function(){return Rt}));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",_="https://kr.object.ncloudstorage.com/cdn-irontrain/ngstudy",p="https://pwu7jsh8kk.apigw.ntruss.com",g="https://kr.object.ncloudstorage.com/voca-tts",m="https://l0xlmyrl8323.edge.naverncp.com/ebook",b=-1,v=10,f=11,w=19,k=20,x=21,y=29,C="S",$="T",S="E",T="F",A="V",M="M",D="A",I="VM",P="VA",R="H",N="X",E="GT",B="GB",L="GD",O="SV",z="SM",V="SA",q="LT",j=0,G=1,F=2,U=3,W=4,H=5,K=6,Y=7,Z=99,J="I",Q="O",X="R",tt="B",et="G",st="E",it="SBA",ot="R",at="F",nt=0,rt=1,lt=2,ct=3,dt=4,ht=5,ut=1,_t=2,pt=3,gt=(Object.freeze({[nt]:[A,C,$],[rt]:[A,M,D],[lt]:[M,D]}),[U,j,G,F,K,Y,Z]),mt=[39353,39354,39355,39356],bt=[102017,102018,102019,102020,102021,102022],vt={[j]:"리스닝",[Y]:"워드빙고",[F]:"딕테이션",[J]:"어휘추론",[G]:"문장조합",[U]:"문장찾기",[K]:"스피킹",[W]:"영작하기",[H]:"영작하기",[Q]:"문단배열",[X]:"독해점검",[tt]:"빈칸추론",[et]:"문법점검",[st]:"스토리북",[it]:"실전문제",["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"},ft=Object.freeze({[j]:"listening",[Y]:"wordbingo",[F]:"dictation",[J]:"wordinference",[G]:"matching",[U]:"popquiz",[K]:"speaking",[W]:"writing",[H]:"writing_k",[Q]:"paragraphorder",[X]:"readingquiz",[tt]:"blankinference",[et]:"grammerquiz",[st]:"storybook",[it]:"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"}),wt=Object.freeze({listening:j,wordbingo:Y,dictation:F,wordinference:J,matching:G,popquiz:U,speaking:K,writing:W,writing_k:H,paragraphorder:Q,readingquiz:X,blankinference:tt,grammerquiz:et,storybook:st,storybook_a:it,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"}),kt=c?100:2,xt=1,yt=2,Ct=c?500:1e3,$t=c?500:1e3,St=c?500:3e3,Tt=500,At=500,Mt=1,Dt=2500,It=2900,Pt=[{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"}],Rt=[{text:"초등1",value:"1"},{text:"초등2",value:"2"},{text:"초등3",value:"3"},{text:"초등4",value:"4"},{text:"초등5",value:"5"},{text:"초등6",value:"6"}]},"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"},6393:function(t,e,s){},6421:function(t,e,s){"use strict";s("4f2b")},6502:function(t,e,s){t.exports=s.p+"img/5.b21eafee.png"},6535:function(t,e,s){"use strict";s("16b74")},6718:function(t,e,s){"use strict";s("07e0")},"67e6":function(t,e,s){"use strict";s("ea1a")},"688b":function(t,e,s){t.exports=s.p+"img/ios-03.4827afe5.png"},6974:function(t,e,s){"use strict";s("b814")},"6b7f":function(t,e,s){"use strict";s("810c")},"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"},"6c74":function(t,e,s){},"6d13":function(t,e,s){"use strict";s("c064")},"6dca":function(t,e,s){"use strict";s("7d14")},"6ebb":function(t,e,s){t.exports=s.p+"img/leaderboard.fab004ef.png"},7167:function(t,e,s){"use strict";s("5ba0")},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"]})},"73cb":function(t,e,s){},"74e4":function(t,e,s){},"74ec":function(t,e,s){},7640:function(t,e,s){"use strict";s("59c1")},"768e":function(t,e,s){"use strict";s("c475")},"77f5":function(t,e,s){},"790a":function(t,e,s){},7927:function(t,e,s){t.exports=s.p+"img/X_ios_result.2471c915.png"},"7a0d":function(t,e,s){},"7c6d":function(t,e,s){t.exports=s.p+"img/pocketnote.bf7b7f24.png"},"7d14":function(t,e,s){},"7dc1":function(t,e,s){t.exports=s.p+"img/000m3.d698ec8b.png"},"7e7d":function(t,e,s){},"7f73":function(t,e,s){},"7f95":function(t,e,s){},"7fed":function(t,e,s){},"80bc":function(t,e,s){},"810c":function(t,e,s){},"82af":function(t,e,s){},8302:function(t,e,s){},"83dc":function(t,e,s){"use strict";s("348d")},"842b":function(t,e,s){"use strict";s("30e1")},"843e4":function(t,e,s){"use strict";s("a14e")},"84f5":function(t,e,s){"use strict";s("cb21")},8562:function(t,e,s){},"862b":function(t,e,s){},8791:function(t,e,s){},8978:function(t,e,s){"use strict";s("1830")},"8c7a":function(t,e,s){},"8d9f":function(t,e,s){},"8df5":function(t,e,s){t.exports=s.p+"img/003m5.48278c54.png"},"8e07":function(t,e,s){"use strict";s("f235")},"8ec2":function(t,e,s){},9190:function(t,e,s){t.exports=s.p+"img/timer-on.429ceea4.png"},"91f5":function(t,e,s){},"91f9":function(t,e,s){"use strict";s("8ec2")},9299:function(t,e,s){"use strict";s("e407")},9359:function(t,e,s){},"942b":function(t,e,s){"use strict";s("4bdb")},"943a":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"},"969b":function(t,e,s){t.exports=s.p+"img/000m5.d45773f8.png"},"96cc":function(t,e,s){"use strict";s("b5de")},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},"995b":function(t,e,s){},"99b6":function(t,e,s){},"9a70":function(t,e,s){"use strict";s("9fee")},"9c2f":function(t,e,s){t.exports=s.p+"img/report.57796d0f.png"},"9c56":function(t,e,s){"use strict";s("1c70")},"9ca2":function(t,e,s){},"9eda":function(t,e,s){},"9fb1":function(t,e,s){t.exports=s.p+"img/chrome-speaking-02.13d8f197.png"},"9fee":function(t,e,s){},a134:function(t,e,s){"use strict";s("d2d2")},a14e:function(t,e,s){},a171:function(t,e,s){},a1f7:function(t,e,s){"use strict";s("cb17")},a2ad:function(t,e,s){},a383:function(t,e,s){t.exports=s.p+"img/3.ee580765.png"},a556:function(t,e,s){"use strict";s("26ab")},a653:function(t,e,s){"use strict";s("ec9f")},a8b6:function(t,e,s){},a94f:function(t,e,s){t.exports=s.p+"img/aos-02.5be4267d.png"},a9b1:function(t,e,s){"use strict";s("91f5")},aa1d:function(t,e,s){t.exports=s.p+"img/schedule.57e92475.png"},ab11:function(t,e,s){"use strict";s("3fc5")},ab7e:function(t,e,s){"use strict";s("9ca2")},adfd:function(t,e,s){},b239:function(t,e,s){},b2a6:function(t,e,s){},b38b:function(t,e,s){"use strict";s("80bc")},b38f:function(t,e,s){"use strict";s("b2a6")},b5de:function(t,e,s){},b60e:function(t,e,s){},b770:function(t,e,s){},b814:function(t,e,s){},b81f:function(t,e,s){},b852:function(t,e,s){},b8b4:function(t,e,s){t.exports=s.p+"img/chrome-speaking-04.d8b82a9e.png"},bbe8:function(t,e,s){"use strict";s("2086")},bc6c:function(t,e,s){},be11:function(t,e,s){},be4b:function(t,e,s){},bf2d:function(t,e,s){},bf75:function(t,e,s){"use strict";s("a2ad")},c064:function(t,e,s){},c0d5:function(t,e,s){"use strict";s("5624")},c1cb:function(t,e,s){},c32b:function(t,e,s){"use strict";s("8d9f")},c475:function(t,e,s){},c60a:function(t,e,s){t.exports=s.p+"img/1.c0d52f62.png"},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["v"],VOCA_RESULT:c["ob"]+c["Q"],ADVANCED_RESULT:c["a"]+c["Q"],MAJOR_RESULT:c["A"]+c["Q"],VOCA_MAJOR_RESULT:c["rb"]+c["Q"],VOCA_ADVANCED_RESULT:c["pb"]+c["Q"],basicGrammarBooks:c["yb"],middleGrammarBooks:c["zb"],STORY_V_RESULT:c["Z"]+c["Q"],STORY_M_RESULT:c["Y"]+c["Q"],STORY_A_RESULT:c["V"]+c["Q"],STORY_ADVANCED_RESULT:c["W"]+c["Q"],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["ub"]],this.$store.state.modules_names[c["L"]],this.$store.state.modules_names[c["P"]],this.$store.state.modules_names[c["u"]],"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,pocket_dialog:!1,pocket_text:"에 추가",pocket_dialog_timeout:null,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["ab"]]:"study",[c["gb"]]:"test",[c["ob"]]:"voca",[c["A"]]:"major",[c["rb"]]:"major",[c["a"]]:"advanced",[c["pb"]]:"advanced",[c["t"]]:"grammar_theory",[c["r"]]:"grammar_basics",[c["s"]]:"grammar_deep",[c["Z"]]:"story_v",[c["Y"]]:"story_m",[c["V"]]:"story_a"};switch(t=s[this.prefix_type]+"_pk",this.prefix_type){case c["ab"]:case c["A"]:case c["rb"]:case c["r"]:case c["Y"]:e="success";break;case c["gb"]:case c["a"]:case c["pb"]:case c["s"]:case c["V"]:e="info2";break;case c["ob"]:case c["t"]:case c["Z"]:e="warning";break;default:break}if([c["t"],c["r"],c["s"]].includes(this.prefix_type)){let t=this.$store.state.current_unit_id;this.$axios.get(`${c["v"]}/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["yb"].includes(o)&&a%3===0&&"GD_1"==i||c["zb"].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["v"]}/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["gb"],c["ab"]].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["gb"]?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["yb"].includes(a)&&n%3===0&&"GD"==i||c["zb"].includes(a)&&r.match("Review")&&["GB","GD"].includes(i))&&(t=[i+"_1"])}else t=s.done_mod&&s.type===c["V"]?[s.a_mod]:Array.from(s.done_mod);if("GT"==s.type&&1===s.details.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["z"]&&"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=.9*r,this.circle_width=.9*Math.round(r/9),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["a"].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["v"]}/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.pocket_text="에 추가",this.pocket_dialog_timeout=window.setTimeout(()=>{this.pocket_dialog=!0,this.$store.dispatch("soundEffectPlay","save_pocket"),this.pocket_dialog_timeout=window.setTimeout(()=>{this.pocket_dialog=!1},2e3)},200)),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["v"]}/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.pocket_text="에서 삭제",this.pocket_dialog_timeout=window.setTimeout(()=>{this.pocket_dialog=!0,this.$store.dispatch("soundEffectPlay","save_pocket"),this.pocket_dialog_timeout=window.setTimeout(()=>{this.pocket_dialog=!1},2e3)},200)),this.pocket_disabled=!1}).catch(t=>{window.console.error(t),this.pocket_disabled=!1})},cancelPocketDialog(){this.pocket_dialog=!1,window.clearTimeout(this.pocket_dialog_timeout)},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["Y"]&&(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))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["Ab"][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["a"].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)}}console.log("html_cnt : ",e);const o=+this.base_data.real_cnt||0,a=+this.base_data.tot_question_cnt||0;if(o>0&&o!==a&&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){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.pocket_dialog_timeout&&window.clearTimeout(this.pocket_dialog_timeout),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){},c9e5:function(t,e,s){},c9ec:function(t,e,s){t.exports=s.p+"img/settings.31d0dbfc.png"},c9f2:function(t,e,s){"use strict";s("ea42")},ca0a:function(t,e,s){},cb17:function(t,e,s){},cb21:function(t,e,s){},cb8e:function(t,e,s){"use strict";s("9359")},cba0:function(t,e,s){t.exports=s.p+"img/002m3.d35d3e00.png"},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},cf91:function(t,e,s){"use strict";s("3b80")},d0f4:function(t,e,s){"use strict";s("995b")},d2d2:function(t,e,s){},d2fa:function(t,e,s){"use strict";s("be4b")},d321:function(t,e,s){"use strict";s("e415")},d423:function(t,e,s){"use strict";s("0d7b")},d545:function(t,e,s){"use strict";s("943a")},d61d:function(t,e,s){t.exports=s.p+"img/guide-pdf.f4959958.png"},d6cc:function(t,e,s){t.exports=s.p+"img/control-speaking-02.2bc8d6ee.png"},d808:function(t,e,s){"use strict";s("b852")},d967:function(t,e,s){"use strict";s("6393")},dbe5:function(t,e,s){},dc03:function(t,e,s){"use strict";s("35a1")},dc7e:function(t,e,s){t.exports=s.p+"img/001m3.9b7d0105.png"},de2b:function(t,e,s){"use strict";s("a8b6")},deba:function(t,e,s){"use strict";s("4d5a")},e2bf:function(t,e,s){"use strict";s("7f95")},e401:function(t,e,s){"use strict";s("862b")},e407:function(t,e,s){},e415:function(t,e,s){},e8e2:function(t,e,s){"use strict";s("bc6c")},e9c5:function(t,e,s){"use strict";s("ca0a")},ea1a:function(t,e,s){},ea42:function(t,e,s){},ec9f:function(t,e,s){},ef48:function(t,e,s){"use strict";s("bf2d")},ef9b:function(t,e,s){t.exports=s.p+"img/chrome-logo.e82c3cd8.svg"},f00f:function(t,e,s){t.exports=s.p+"img/002m5.42870341.png"},f0bf:function(t,e,s){"use strict";s("8c7a")},f10d:function(t,e,s){},f235:function(t,e,s){},f3d9:function(t,e,s){t.exports=s.p+"img/ios-01.bfc522d8.png"},f630:function(t,e,s){},fbdc:function(t,e,s){},fc8b:function(t,e,s){"use strict";s("4bb4")},ffcd:function(t,e,s){t.exports=s.p+"img/aos-01.407f5939.png"}},[[0,"runtime","vendors"]]]); //# sourceMappingURL=app.4c6bf5c9.js.map