1"use strict";(self["webpackChunktodoschool"]=self["webpackChunktodoschool"]||[]).push([[541],{41620:function(e,t,r){r.d(t,{A:function(){return _}});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"ref_root",staticClass:"select-tab",class:e.classNames},[t("div",{ref:"ref_container",staticClass:"tab__wrap",class:{"swiper-container":!e.blockSwiper}},[t("div",{ref:"ref_list",staticClass:"tab__list",class:{"swiper-wrapper":!e.blockSwiper}},[e._l(e.renderList,function(s,a){return[s.hidden?e._e():t("div",{key:a,staticClass:"tab__item",class:{"st-select":a===e.modelData.index,"swiper-slide":!e.blockSwiper,disabled:e.disableList&&e.disableList.indexOf(s.text)>-1}},[s.to||s.href?[t("AdjustLink",{staticClass:"tab__item__target",attrs:{to:s.to,href:s.href},on:{click:function(t){return t.preventDefault(),e.selectByPath(a,s.to)}}},[t("span",[e._v(e._s(s.text)),s.badge?t("img",{staticClass:"tab__item__new-badge",attrs:{src:r(67081),alt:""}}):e._e()])])]:[t("button",{staticClass:"tab__item__target",class:e.colorClass,on:{click:function(t){return e.selectByIndex(a)}}},[t("span",[e._v(e._s(s.text)),s.badge?t("img",{staticClass:"tab__item__new-badge",attrs:{src:r(6
17081),alt:""}}):e._e()])])]],2)]}),t("span",{ref:"ref_shape",staticClass:"tab__selectshape",class:e.colorClass})],2)])])},a=[],i=r(64467),o=r(82284),n=r(64241),l=r(11777);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var p={name:"SelectTab",components:{AdjustLink:l.A},model:{prop:"modelValue",event:"modelEvent"},props:{modelValue:null,select:null,selectIndex:[Number,String],list:Array,disableList:{type:Array,default:null},theme:{type:String,default:"default"},size:{type:[String,Number],default:1},color:{type:String,default:"default"},truewidth:Boolean,blockSwiper:{type:Boolean,default:!1},hiddenList:{type:Array,default:null},profiles:{type:Array,default:null}},data:function(){return{tl:new this.$gsap.timeline,ignoreModel:!1,modelData:{index:this.selectIndex||0,value:this.modelValue||this.select||null},renderList:[],isOverflow:!1,swiper:null}},computed:{classNames:function(){return"".concat("theme--".concat(this.theme)," size--".concat(this.size)," color--".concat(this.color),this.isOverflow?" overflow":"").concat(this.truewidth?" truewidth":"")},colorClass:function(){return"".concat(["math","hangeul","bundle"].includes(this.color)?this.color:this.modelValue)}},watch:{list:{deep:!0,handler:function(){this.parseRenderList(),this.moveSelectLine()}},select:function(e){this.selectByValue(e)},selectIndex:function(e){this.selectByIndex(e)},modelValue:function(){this.ignoreModel||this.selectByValue(this.modelValue),this.ignoreModel=!1},"modelData.value":function(){var e=this;this.ignoreModel=!0,this.$emit("change",this.modelData),this.$emit("modelEvent",this.modelData.value),this.$nextTick(function(){e.ignoreModel=!1})},"$store.state.$screen.width":function(){this.moveSelectLine(),this.calcItemSize()}},methods:{init:function(){this.blockSwiper||this.makeSwiper(),this.modelData.value?this.selectByValue():this.selectByIndex(this.modelData.index),this.calcItemSize()},calcItemSize:function(){if(this.$refs.ref_root&&!this.truewidth){var e=170,t=this.$refs.ref_root.offsetWidth,r=this.$refs.ref_root.querySelectorAll(".tab__item"),s=(0,n.A)(r).reduce(function(e,t){return e+t.offsetWidth},0);if(this.isOverflow){var a=this.$refs.ref_root.querySelectorAll(".tab__item__target"),i=this.$refs.ref_root.querySelectorAll(".tab__item__target > span"),o=parseInt(getComputedStyle(a[0]).paddingLeft),l=(0,n.A)(i).reduce(function(t,r){return t+Math.max(r.offsetWidth+2*o,e)},0);s>l&&(this.isOverflow=!1)}else t<=s&&(this.isOverflow=!0)}},selectByPath:function(e,t){t&&this.selectByIndex(e)},selectByIndex:function(e){if(0!=this.renderList.length){var t=this.renderList[parseInt(e)].value;this.selectByValue(t)}},selectByValue:function(e){if(e!==this.modelData.value){void 0===e&&(e=this.modelData.value);for(var t=0,r=this.renderList.length;t<r;++t)if(this.renderList[t].value===e){this.modelData=this.renderList[t];break}this.moveSelectLine()}},moveSelectLine:function(){var e=this;this.tl.pause(),this.tl.clear(),this.$nextTick(function(){if(e.$refs.ref_list){var t=e.modelData.index,r=e.$refs.ref_list.querySelectorAll(".tab__item")[t];if(r){var s=r.offsetWidth,a=r.offsetLeft;e.$gsap.set(e.$refs.ref_shape,{css:{width:s,x:a}}),e.tl.play()}}})},parseRenderList:function(){var e=this,t=this.list.map(function(t,r){return"object"===(0,o.A)(t)?u(u({},t),{},{index:r}):{text:e.profiles&&"reportProfile"===e.theme?e.profiles.find(function(e){return e.userId===t}).name:t,value:t,index:r}});this.renderList=t},makeSwiper:function(){var e=this;this.destroySwiper();var t={slidesPerView:"auto",watchOverflow:!0,freeMode:!0};this.swiper=new this.$swiper(this.$refs.ref_container,t),this.$nextTick(function(){e.swiper.update(
1)})},destroySwiper:function(){this.swiper&&this.swiper.destroy()},setScrollPosition:function(e){this.swiper&&this.swiper.setProgress(e,0)},getScrollPosition:function(){return this.swiper?this.swiper.progress:0}},created:function(){this.parseRenderList()},mounted:function(){this.init()},beforeDestroy:function(){this.destroySwiper()}},f=p,h=r(81656),d=(0,h.A)(f,s,a,!1,null,"58c8f2b0",null),_=d.exports},30541:function(e,t,r){r.r(t),r.d(t,{default:function(){return H}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"parent__profile"},[t("h1",{staticClass:"page-title"},[e._v(" "+e._s(e.$text["ManageProfiles"])+" ")]),e.serviceList.length>1?t("div",{staticClass:"profile__tab",class:{tdea:e.$store.state.isTdeaRoute}},[t("SelectTab",{attrs:{list:e.serviceList,select:e.serviceTabKey},on:{change:function(t){e.onClickTab(t.index)}}})],1):e._e(),e.profileReady?e.profiles.length>0?[t("section",{staticClass:"profile__info"},[t("ul",{staticClass:"profile__list"},e._l(e.profiles,function(r,s){return t("li",{key:s,staticClass:"profile__item shadow-box"},[t("ul",{staticClass:"profile__entries",class:{jp:"ja_jp"===e.region,tdea:"TDEA"===e.serviceTabKey}},[t("li",{staticClass:"profile__entries__item"},[t("span",{staticClass:"profile__prop"},[e._v(e._s(e.$store.state.isTdeaRoute?e.$text["ProfileName"]:e.$text["Name"]))]),t("span",{staticClass:"profile__value"},[e._v(e._s(r.name))])]),e.$store.state.isTdeaRoute?t("li",{staticClass:"profile__entries__item"},[t("span",{staticClass:"profile__prop"},[e._v(e._s(e.$text["ProfileID/Password"]))]),t("span",{staticClass:"profile__value"},[e._v(e._s(r.loginId)+"ï¼ ******")])]):e._e(),t("li",{staticClass:"profile__entries__item"},[t("span",{staticClass:"profile__prop"},[e._v(e._s(e.$text["BirthYearMonth"]))]),t("span",{staticClass:"profile__value"},[-1!=r.birthYear&&-1!=r.birthMonth?[e._v(" "+e._s(r.birthYear)+e._s(e.$text.Year)+" "+e._s(r.birthMonth)+e._s(e.$text.Month)+" ")]:[e._v(" "+e._s(e.$text["NoBirthYearMonth"])+" ")]],2)]),e.$store.state.isTdeaRoute?e._e():t("li",{staticClass:"profile__entries__item"},[t("span",{staticClass:"profile__prop"},[e._v(" "+e._s("TDK"===e.serviceTabKey?e.$text["TDK_CurrentLevel"]:e.$text["TDE_CurrentLevel"])+" ")]),t("span",{staticClass:"profile__value"},[e._v(" "+e._s(r.levelText)+" ")])])]),t("div",{staticClass:"profile__modify"},[t("p",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"profile__alert",attrs:{id:"parents-profile-".concat(s)}},[e._v(" "+e._s(e.$text["AfterLevelChange"])+" ")]),t("div",{staticClass:"profile__controls"},[t("ButtonBasic",{ref:"btnEditProfile-".concat(s),refInFor:!0,attrs:{type:"secondary",size:"3"},on:{click:function(t){return e.onClickOpenChangeProfile(s)}}},[e._v(" "+e._s(e.$text["EditProfile"])+" ")]),"TDE"===e.serviceTabKey?t("ButtonBasic",{ref:"btnChangeLevel-".concat(s),refInFor:!0,attrs:{type:"secondary",size:"3"},on:{click:function(t){return e.onClickOpenChangeLevel(s)}}},[e._v(" "+e._s(e.$text["ChangeLevel"])+" ")]):e._e(),"TDEA"===e.serviceTabKey?t("ButtonBasic",{ref:"btnGoReport-".concat(s),refInFor:!0,attrs:{type:"secondary",size:"3"},on:{click:function(t){return e.onClickGoReport(s)}}},[e._v(" "+e._s(e.$text["GoReport"])+" ")]):e._e()],1)])])}),0),e.$store.state.isTdeaRoute?[t("p",{staticClass:"profile__info__description"},[e._v(" "+e._s(e.$text["TDEA_ProfileID/PWGuide"])+" ")]),t("div",{staticClass:"profile__info__link"},[t("ButtonBasic",{attrs:{type:"primary2"},on:{click:e.onClickGoStudySpace}},[t("div",{staticClass:"profile__info__link__item"},[t("p",[e._v(e._s(e.$text["GoStudySpace"]))]),t("i",{staticClass:"icon--link-rect mint"})])]),e.profiles.length<2?t("ButtonBasic",{attrs:{type:"borderonly"},on:{click:e.onClickOpenProfileCreate}},[e._v(" "+e._s(e.$text["AddProfile"])+" ")]):e._e()],1)]:e._e()],2)]:[t("div",{class:{tdea:e.$store.state.isTdeaRoute},attrs:{id:"report-nodata"}},[e.$store.state.isTdeaRoute?[t("img",{staticClass:"noprofile-tdea",attrs:{src:r(56564),alt:""}}),t("h2",{domProps:{innerHTML:e._s(e.$text["NoSavedProfile"])}}),t("div",{staticClass:"profile_empty_info"},[t("p",{domProps:{innerHTML:e._s(e.$text["TDEA_NoSavedProfile"])}}),t("div",{staticClass:"study-space"},[e._m(0),t("ButtonBasic",{attrs:{type:"primary"},on:{click:e.onClickOpenProfileCreate}},[e._v(" "+e._s(e.$text["AddProfile"])+" ")])],1)])]:[t("i",{staticClass:"sticker--mark-smile"}),t("h2",{domProps:{innerHTML:e._s(e.$text["NoSavedProfile"])}}),t("p",{domProps:{innerHTML:e._s(e.$text["".concat(this.serviceTabKey,"_NoSavedProfile_Desc")])}})]],2),e.$store.state.isTdeaRoute?e._e():[t("div",{staticClass:"hero__links"},[t("div",{staticClass:"hero__links__pc"},[t("button",{on:{click:function(t){return e.onClickDownload("appstore")}}},[t("i",{staticClass:"logo--appstore-icon-white c-white"}),t("span",[e._v("App Store")])]),t("button",{on:{click:function(t){return e.onClickDownload("playstore")}}},[t("i",{staticClass:"logo--playstore-icon-white c-white"}),t("span",[e._v("Google Play")])])])])]]:[t("div",{staticClass:"parent__profile__loading"},[t("SpinnerDotsWave")],1)],e.serviceTab[e.selectProfileTabIdx].productId?t("ProfileManage",{ref:"ref_profileManage",attrs:{productId:e.serviceTab[e.selectProfileTabIdx].productId,selectProfile:e.selectProfile},on:{openRemoveProfile:e.onClickRemoveProfile,openCantProfileDelete:e.onOpenCantProfileDelete}}
1):e._e(),e.serviceTabKey?t("ProfileRemove",{ref:"ref_profileRemove",attrs:{serviceTabKey:e.serviceTabKey},on:{deleteProfile:e.deleteProfile}}):e._e(),t("ProfileChangeLevel",{ref:"ref_profileChangeLevel",attrs:{serviceTabKey:e.serviceTabKey,selectProfile:e.selectProfile},on:{changeLevelSuccess:e.onChangeLevelSuccess}}),t("FloatSheet",{attrs:{headerless:!0},model:{value:e.openState.studySpaceLogin,callback:function(t){e.$set(e.openState,"studySpaceLogin",t)},expression:"openState.studySpaceLogin"}},[t("div",{staticClass:"study-space-login"},[t("p",{domProps:{innerHTML:e._s(e.$text["Notice_Login"])}}),t("ButtonBasic",{attrs:{type:"borderonly"},on:{click:e.moveToStudySpace}},[t("p",[e._v(e._s(e.$text["GoStudySpace"]))])])],1)]),t("FloatSheet",{ref:"ref_cantProfileDelete",attrs:{title:e.$text["DeleteProfile_Unavailable"]},model:{value:e.openState.cantProfileDelete,callback:function(t){e.$set(e.openState,"cantProfileDelete",t)},expression:"openState.cantProfileDelete"}},[t("div",{staticClass:"cant-profile-delete"},[t("p",{staticClass:"delete-profile-desc-main",domProps:{innerHTML:e._s(e.deleteProfileDesc(0))}}),t("p",{staticClass:"delete-profile-desc-sub",domProps:{innerHTML:e._s(e.deleteProfileDesc(1))}}),t("ButtonBasic",{attrs:{type:e.$store.state.isTdeaRoute?"primary":"primary2",size:"full"},on:{click:function(t){e.openState.cantProfileDelete=!1}}},[e._v(" "+e._s(e.$text["Confirm"])+" ")])],1)])],2)},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"study-space__content"},[t("img",{attrs:{src:r(19667),alt:""}}),t("img",{staticClass:"mo",attrs:{src:r(37532),alt:""}})])}],i=r(10467),o=r(64467),n=r(54756),l=r.n(n),c=r(63653),u=r(41620),p=r(3014),f=r(18377),h=r(6497),d=function(){var e=this,t=e._self._c;return t("FloatSheet",{attrs:{title:e.$text["ManageProfiles"],customClass:"profile-manage ".concat(e.productId)},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t("div",{staticClass:"profile__change"},[t("form",{staticClass:"form--profile-change type--col",attrs:{autocomplete:"off"},on:{submit:function(e){e.preventDefault()}}},["tdea"!==e.productId?[t("div",{staticClass:"form__block"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["Name"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[t("InputText",{attrs:{value:e.changeData.name,counter:"13"},on:{change:e.onChangeName}})],1)])]),t("div",{staticClass:"form__block"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["BirthYearMonth"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block birth-block"},[t("Dropdown",{attrs:{placeholder:e.$text["Year"],customClass:"parent-profile",stretch:""},on:{change:e.onChangeYear},model:{value:e.changeData.birthYear,callback:function(t){e.$set(e.changeData,"birthYear",t)},expression:"changeData.birthYear"}},e._l(e.birthYears,function(r){return t("option",{key:r,domProps:{value:r}},[e._v(" "+e._s(r)+" ")])}),0),t("Dropdown",{attrs:{placeholder:e.$text["Month"],customClass:"parent-profile",stretch:""},on:{change:e.onChangeMonth},model:{value:e.changeData.birthMonth,callback:function(t){e.$set(e.changeData,"birthMonth",t)},expression:"changeData.birthMonth"}},e._l(e.birthMonths,function(r){return t("option",{key:r,domProps:{value:r}},[e._v(" "+e._s(r)+" ")])}),0)],1)])])]:"tdea"===e.productId?[t("div",{staticClass:"form__block"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["Name"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[t("InputText",{attrs:{value:e.changeData.name,placeholder:e.$text["ProfileName_Placeholder"],maxlength:"13",mark:!1===e.validate.name},on:{blur:e.onChangeName}})],1)])]),t("div",{staticClass:"form__block"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["ProfileID"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[t("InputText",{attrs:{value:e.changeData.loginId,name:"tdea-profile-create-app-id",autocomplete:"off",maxlength:"16",disable:!0},on:{blur:e.onChangeProfileId}})],1)])]),t("div",{staticClass:"form__block"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["Password"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[t("InputTextPassword",{attrs:{placeholder:e.$text["NewProfilePassword_Placeholder"],name:"tdea-profile-create-app-secret",autocomplete:"new-password",mark:!1===e.validate.password,maxlength:"20"},on:{blur:e.onChangeProfilePassword},model:{value:e.changeData.password,callback:function(t){e.$set(e.changeData,"password",t)},expression:"changeData.password"}})],1)]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[t("InputTextPassword",{attrs:{placeholder:e.$text["NewProfilePassword_Placeholder_ReEnter"],name:"tdea-profile-create-app-secret",autocomplete:"new-password",mark:!1===e.validate.passwordConfirm,maxlength:"20"},on:{blur:e.onChangeProfilePasswordConfirm},model:{value:e.changeData.passwordConfirm,callback:function(t){e.$set(e.changeData,"passwordConfirm",t)},expression:"changeData.passwordConfirm"}})],1)])]),t("div",{staticClass:"form__block profile-create__birth-row"},[t("div",{staticClass:"profile-create__birth-col"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["Year"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[t("Dropdown",{attrs:{placeholder:e.$text["Year"],stretch:"",customClass:"parent-profile"},on:{change:e.onChangeYear},model:{value:e.changeData.birthYear,callback:function(t){e.$set(e.changeData,"birthYear",t)},expression:"changeData.birthYear"}}
1,e._l(e.birthYears,function(r){return t("option",{key:r,domProps:{value:r}},[e._v(" "+e._s(r)+" ")])}),0)],1)])]),t("div",{staticClass:"profile-create__birth-col"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["Month"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[t("Dropdown",{attrs:{placeholder:e.$text["Month"],stretch:"",customClass:"parent-profile"},on:{change:e.onChangeMonth},model:{value:e.changeData.birthMonth,callback:function(t){e.$set(e.changeData,"birthMonth",t)},expression:"changeData.birthMonth"}},e._l(e.birthMonths,function(r){return t("option",{key:r,domProps:{value:r}},[e._v(" "+e._s(e.formatMonthOption(r))+" ")])}),0)],1)])])])]:e._e()],2),t("div",{staticClass:"profile__change__delete"},[t("ButtonPlane",{attrs:{underline:""},on:{click:e.onClickRemoveProfile}},[e._v(" "+e._s(e.$text["DeleteProfile"])+" ")])],1),t("div",{staticClass:"profile__change__confirm"},[t("ButtonBasic",{attrs:{type:"primary",disable:!e.validateForm},on:{click:e.onClickChangeProfile}},[e._v(" "+e._s(e.$text["Save"])+" ")])],1)])])},_=[],v=r(22707),m=r(24018),b=r(48995),g=r(63475);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y={name:"ProfileManage",components:{FloatSheet:c.A,InputText:v.A,InputTextPassword:m.A,Dropdown:b.A,ButtonBasic:p.A,ButtonPlane:g.A},props:{productId:{type:String,required:!0},selectProfile:{type:Object,default:function(){}}},computed:{$text:function(){return this.$store.getters.text},birthYears:function(){for(var e=this.$store.state.servertime?parseInt(this.$store.state.servertime.format("YYYY"),10):(new Date).getFullYear(),t=[],r=2e3;r<=e;r+=1)t.push(r);return t},birthMonths:function(){for(var e=[],t=1;t<=12;t+=1)e.push(t);return e},validateForm:function(){return this.productId,!(0,f.Im)(this.changeData.name)&&!(0,f.Im)(this.changeData.birthYear)&&!(0,f.Im)(this.changeData.birthMonth)}},data:function(){return{isOpen:!1,changeData:{},validate:{}}},methods:{resetForm:function(){"tdea"!==this.productId?(this.changeData={name:null,birthYear:null,birthMonth:null},this.validate={name:null,birthYear:null,birthMonth:null}):(this.changeData={name:null,loginId:null,password:null,passwordConfirm:null,birthYear:null,birthMonth:null},this.validate={name:null,loginId:null,password:null,passwordConfirm:null,birthYear:null,birthMonth:null})},formatMonthOption:function(e){return String(e).padStart(2,"0")},open:function(e){this.resetForm(),this.changeData=P(P({},e),"tdea"===this.productId?{passwordConfirm:null}:{}),this.isOpen=!0},close:function(){this.isOpen=!1},onChangeName:function(e){this.changeData.name=e.value||"",this.validate.name=null},onChangeProfileId:function(e){this.changeData.loginId=e.value||""},onChangeProfilePassword:function(e){this.changeData.password=e.value||"",this.validate.password=null},onChangeProfilePasswordConfirm:function(e){this.changeData.passwordConfirm=e.value||"",this.validate.passwordConfirm=null},onChangeYear:function(e){this.changeData.birthYear=e.value},onChangeMonth:function(e){this.changeData.birthMonth=e.value},onClickChangeProfile:function(){var e=this;return(0,i.A)(l().mark(function t(){var r,s,a;return l().wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e.validate.name=!(0,f.Im)(e.changeData.name),e.validate.loginId=(0,f.N8)(e.changeData.loginId),e.validate.password=!!(0,f.Im)(e.changeData.password)||(0,f.t2)(e.changeData.password),e.validate.passwordConfirm=!!(0,f.Im)(e.changeData.password)||e.changeData.password===e.changeData.passwordConfirm,e.validate.birthYear=!(0,f.Im)(e.changeData.birthYear),e.validate.birthMonth=!(0,f.Im)(e.changeData.birthMonth),e.validate.name){t.next=1;break}return(0,f.wJ)("Error_ProfileInfoRequired"),t.abrupt("return");case 1:if("tdea"!==e.productId||e.validate.loginId){t.next=2;break}return e.changeData.loginId.length<4?(0,f.wJ)("Error_ProfileId_MinLength"):(0,f.wJ)("Error_ProfileId_InvalidChars"),t.abrupt("return");case 2:if("tdea"!==e.productId||e.validate.password){t.next=3;break}return e.changeData.password.length<6?(0,f.wJ)("Error_ProfilePassword_MinLength"):(0,f.wJ)("Error_ProfilePassword_InvalidChars"),t.abrupt("return");case 3:if("tdea"!==e.productId||e.validate.passwordConfirm){t.next=4;break}return(0,f.wJ)("Error_ProfilePasswordConfirm_Mismatch"),t.abrupt("return");case 4:return s="tdea"!==e.productId?P(P({},e.changeData),{}
1,{birthYear:parseInt(e.changeData.birthYear),birthMonth:parseInt(e.changeData.birthMonth)}):P(P(P(P({userId:null===(r=e.selectProfile)||void 0===r?void 0:r.userId},e.changeData.name?{name:e.changeData.name}:{}),e.changeData.birthYear?{birthYear:parseInt(e.changeData.birthYear)}:{}),e.changeData.birthMonth?{birthMonth:parseInt(e.changeData.birthMonth)}:{}),e.changeData.password?{newPassword:e.changeData.password}:{}),e.$store.dispatch("openDialog",{type:"wait"}),t.next=5,e.$store.dispatch("userUpdate",{updateData:s,productId:e.productId});case 5:a=t.sent,e.$store.dispatch("closeDialog"),a.result?(e.close(),e.$store.dispatch("openRoofAlert",e.$text.Toast_EditProfile)):(0,f.wJ)(a.errorCode);case 6:case"end":return t.stop()}},t)}))()},onClickRemoveProfile:function(){var e=this;if("tdea"===this.productId){var t=this.$store.state.$user.purchases.filter(function(t){var r;return t.serviceName===e.productId&&t.userId===(null===(r=e.selectProfile)||void 0===r?void 0:r.userId)&&"available"===t.expiredStatus}).length>0;if(t)return void this.$emit("openCantProfileDelete")}this.$emit("openRemoveProfile")}}},$=y,D=r(81656),x=(0,D.A)($,d,_,!1,null,"46be63ce",null),w=x.exports,k=function(){var e=this,t=e._self._c;return t("FloatSheet",{attrs:{title:e.$text["DeleteProfile"]},on:{close:function(t){e.deleteProfileCheck=!1}},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t("div",{staticClass:"profile__delete"},[t("p",[e._v(" "+e._s(e.$text[e.serviceTabKey+"_DeleteProfile_PopupDesc"])+" ")]),t("div",{staticClass:"profile__delete__check"},[t("Checkbox",{attrs:{text:e.$text["DeleteProfile_Confirmed"],color:e.$store.state.isTdeaRoute?"tdea":"default"},model:{value:e.deleteProfileCheck,callback:function(t){e.deleteProfileCheck=t},expression:"deleteProfileCheck"}})],1),t("div",{staticClass:"profile__delete__controls"},[t("ButtonBasic",{attrs:{size:"stretch"},on:{click:e.close}},[e._v(" "+e._s(e.$text["Cancel"])+" ")]),t("ButtonBasic",{attrs:{type:e.$store.state.isTdeaRoute?"primary":"primary2",disable:!e.deleteProfileCheck,size:"stretch"},on:{click:e.deleteProfile}},[e._v(" "+e._s(e.$text["Confirm"])+" ")])],1)])])},T=[],I=r(8347),S={name:"ProfileRemove",components:{FloatSheet:c.A,Checkbox:I.A,ButtonBasic:p.A},props:{serviceTabKey:{type:String,required:!0}},computed:{$text:function(){return this.$store.getters.text}},data:function(){return{isOpen:!1,deleteProfileCheck:!1}},methods:{open:function(){this.isOpen=!0},close:function(){this.isOpen=!1},deleteProfile:function(){this.$emit("deleteProfile")}}},O=S,L=(0,D.A)(O,k,T,!1,null,"b7ba282a",null),A=L.exports,M=function(){var e=this,t=e._self._c;return t("FloatSheet",{attrs:{title:e.$text["ChangeLevel"]},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},[t("div",{staticClass:"profile__level-change"},[t("form",{staticClass:"form--level-change type--col",on:{submit:function(e){e.preventDefault()}}},[t("div",{staticClass:"form__block"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text[e.serviceTabKey+"_CurrentLevel"]))]),t("div",{staticClass:"form__input"},[e.selectProfile?t("div",{staticClass:"form__input__block"},[t("InputText",{attrs:{disable:"",value:e.currentLevelText}})],1):e._e()])]),t("div",{staticClass:"form__block"},[t("p",{staticClass:"form__label"},[e._v(e._s(e.$text["LevelToChange"]))]),t("div",{staticClass:"form__input"},[t("div",{staticClass:"form__input__block"},[e._e(),t("Dropdown",{attrs:{modelValue:"-1",customClass:"parent-profile"},on:{modelEvent:e.onSelectChangeLevel}},e._l(e.renderLevelList,function(r){return t("option",{key:r.value,domProps:{value:r.value}},[e._v(" "+e._s(r.text)+" ")])}),0)],1)])]),t("div",{staticClass:"form__confirm"},[t("ButtonBasic",{attrs:{disable:!e.changeData.currentLevel,type:"primary2"},on:{click:e.onClickChangeLevel}},[e._v(" "+e._s(e.$text["GoChange"])+" ")])],1)]),t("ul",{staticClass:"profile__level-change__notice"},e._l(e.$text["LevelToChange_Desc"].split("<br>"),function(r,s){return t("li",{key:"".concat(s),staticClass:"prefix--dot"},[e._v(" "+e._s(r)+" ")])}),0)])])},j=[];function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?B(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var R={name:"ProfileChangeLevel",components:{FloatSheet:c.A,InputText:v.A,Dropdown:b.A,ButtonBasic:p.A},props:{serviceTabKey:{type:String,default:"TDE"},selectProfile:{type:Object,default:function(){return null}}},computed:{$text:function(){return this.$store.getters.text},renderLevelList:function(){var e=[];if(!this.selectProfile)return e;for(var t="Z",r=t.charCodeAt(0)-64,s=0;s<r;s++){var a=(0,f.GV)(s+1),i=this.$text["TD".concat("TDK"===this.serviceTabKey?"K":"E","_LevelAbbr")];e.push({value:a.charCodeAt(0)-64,text:(0,f.uf)(i,"[level]",a)})}return e},currentLevelText:function(){var e=this.$text["TD".concat("TDK"===this.serviceTabKey?"K":"E","_LevelAbbr")];return(0,f.uf)(e,"[level]",(0,f.GV)(this.selectProfile.currentLevel))}},data:function(){return{isOpen:!1,changeData:{}}},methods:{open:function(e){this.changeData=Y({},e),this.isOpen=!0},close:function(){this.isOpen=!1},onSelectChangeLevel:function(e){this.changeData.currentLevel=e},onClickChangeLevel:function(){var e=this;return(0,i.A)(l().mark(function t(){var r,s;return l().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return r={accountId:e.changeData.accountId,groupId:e.changeData.groupId,userId:e.changeData.userId,level:parseInt(e.changeData.currentLevel)},t.next=1,e.$store.dispatch("userChangeLevel",r);case 1:s=t.sent,s.result&&e.$emit("changeLevelSuccess");case 2:case"end":return t.stop()}},t)}))()}}},E=R,K=(0,D.A)(E,M,j,!1,null,"11df4ced",null),N=K.exports;function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var V={name:"ParentProfile",components:{FloatSheet:c.A,SelectTab:u.A,ButtonBasic:p.A,ProfileManage:w,ProfileRemove:A,ProfileChangeLevel:N,SpinnerDotsWave:h.A},data:function(){return{serviceTab:null,serviceTabKey:null,serviceList:[],changeData:{name:"",birthYear:"",birthMonth:"",currentLevel:null},openState:{studySpaceLogin:!1,cantProfileDelete:!1},selectProfileIndex:0}},computed:{$text:function(){return this.$store.getters.text},defService:function(){return this.$store.state.$user.defService},selectProfileTabIdx:function(){return this.$store.state.$user.selectProfileTabIdx},selectProfile:function(){return this.profiles.length>0?this.profiles[this.selectProfileIndex]:null},profiles:function(){var e=this.$text["TD".concat("TDK"===this.serviceTabKey?"K":"E","_LevelAbbr")],t=this.$store.state.isTdeaRoute?"tdea":this.serviceTab[this.selectProfileTabIdx].productId;return this.$store.state.$user.profiles[t].map(function(t){return G(G({},t),{},{levelText:t.currentLevel?(0,f.uf)(e,"[level]",(0,f.GV)(t.currentLevel)):"-"})})},region:function(){return this.$store.state.region},regionUrl:function(){return this.$store.state.regionUrl},serviceName:function(){return this.$store.state.serviceName},user:function(){return this.$store.state.$user},profileReady:function(){return this.$store.state.$user.profileReady}},watch:{selectProfileTabIdx:function(){this.serviceTabKey=this.serviceTab[this.selectProfileTabIdx].key},serviceTab:function(){this.serviceTabKey=this.serviceTab[this.selectProfileTabIdx].key}},beforeCreate:function(){this.serviceTab=[],this.$store.dispatch("setProfileTab",0)},created:function(){var e=this;this.$store.state.isTdeaRoute?(this.serviceTab=this.defService.filter(function(t){return t.target===e.region&&"TDEA"===t.key}),this.serviceTabKey="TDEA",this.serviceList=this.serviceTab.filter(function(e){return"TDEA"===e.key}).map(function(t){return{text:e.$text[t.key]||t.key,value:t.key}})):(this.serviceTab=this.defService.filter(function(t){return t.target===e.region}),this.serviceTabKey=this.serviceTab[this.selectProfileTabIdx].key,this.serviceList=this.serviceTab.filter(function(e){return"TDEA"!==e.key}).map(function(t){return{text:e.$text[t.key]||t.key,value:t.key}}))},beforeDestroy:function(){this.$eventBus.$off("openStudySpaceLogin")},mounted:function(){var e=this;this.$eventBus.$on("openStudySpaceLogin",function(){e.openState.studySpaceLogin=!0}),this.requestProfiles();var t=this.$route.query,r=t.tab,s=t.t;if(r&&this.$nextTick(function(){e.onClickTab(e.serviceTab.findIndex(function(e){return e.key.toLowerCase()===r.toLowerCase()}))}),"manageprofile"===s){var a=this.profiles.findIndex(function(t){return t.loginId===e.$route.query.loginId});a>-1&&this.$nextTick(function(){e.onClickOpenChangeProfile(a)})}else"createprofile"===s?this.$nextTick(function(){e.onClickOpenProfileCreate()}):"opengospacepopup"===s&&this.$nextTick(function(){e.openState.studySpaceLogin=!0});s&&(0,f.I2)(),this.$store.state.$auth.options.preventRedirectProfile&&this.$store.dispatch("deleteAuthOption")},methods:{requestProfiles:function(){var e=this;return(0,i.A)(l().mark(function t(){return l().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,e.$store.dispatch("fetchUserAllProfiles");case 1:case"end":return t.stop()}},t)}))()},onClickDownload:function(e){var t={TDE:{appstore:"ko_kr"===this.region?"https://apps.apple.com/kr/app/id1463158907":"https://todoeigo.onelink.me/ZHal/28386158",playstore:"ko_kr"===this.region?"https://play.google.com/store/apps/details?id=com.enuma.todoenglish":"https://todoeigo.onelink.me/ZHal/28386158"},TDM:{appstore:"https://apps.apple.com/app/id666465255",playstore:"https://play.google.com/store/apps/details?id=com.enuma.todomath"},TDK:{appstore:"https://apps.apple.com/kr/app/id1564689239",playstore:"https://play.google.com/store/apps/details?id=com.enuma.todohangeul"}};
1window.open(t[this.serviceTabKey]["".concat(e)],"_blank")},onClickTab:function(e){this.$store.dispatch("setProfileTab",e)},onClickOpenChangeProfile:function(e){var t,r,s=this.$store.state.$user.parentalCheck;s?(this.selectProfileIndex=e,"TDEA"!==this.serviceTabKey?this.changeData={accountId:this.selectProfile.accountId,groupId:this.selectProfile.groupId,userId:this.selectProfile.userId,name:this.selectProfile.name,gender:this.selectProfile.gender}:this.changeData={name:this.selectProfile.name,loginId:this.selectProfile.loginId,password:""},this.changeData.birthYear=null===(t=this.selectProfile.birthYear)||void 0===t?void 0:t.toString(),this.changeData.birthMonth=null===(r=this.selectProfile.birthMonth)||void 0===r?void 0:r.toString(),this.$refs.ref_profileManage.open(this.changeData)):this.$eventBus.$emit("openParentalGate",{type:"element",element:this.$refs["btnEditProfile-".concat(e)][0].$el})},onClickOpenChangeLevel:function(e){var t=this.$store.state.$user.parentalCheck;t?this.profiles[e].currentLevel&&(-1!=this.profiles[e].currentLevel?(this.selectProfileIndex=e,this.changeData=G(G({},this.selectProfile),{},{currentLevel:null}),this.$refs.ref_profileChangeLevel.open(this.changeData)):this.$store.dispatch("openDialog",this.$text["".concat(this.serviceTabKey,"_NoLearningData_Desc")])):this.$eventBus.$emit("openParentalGate",{type:"element",element:this.$refs["btnChangeLevel-".concat(e)][0].$el})},onChangeLevelSuccess:function(){this.$refs.ref_profileChangeLevel.close(),document.querySelector("#parents-profile-".concat(this.selectProfileIndex)).style.display="block",this.$store.dispatch("openRoofAlert",this.$text.Toast_ChangeLevel)},onClickGoReport:function(e){this.$router.push("".concat(this.regionUrl,"/tdea/parents/report?profileId=").concat(this.profiles[e].userId))},onClickRemoveProfile:function(){this.$refs.ref_profileRemove.open(),this.$refs.ref_profileManage.close()},checkTimeisup:function(e,t){var r=this.$dayjs.utc(this.$store.state.servertime.valueOf());return e.diff(r,"minutes")-(e.utcOffset()-this.$dayjs().utcOffset())<t},deleteProfile:function(){var e=this;return(0,i.A)(l().mark(function t(){var r,s;return l().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.dispatch("openDialog",{type:"wait"}),r="TDEA"!==e.serviceTabKey?{accountId:e.selectProfile.accountId,groupId:e.selectProfile.groupId,userId:e.selectProfile.userId}:{accountId:e.selectProfile.accountId,userId:e.selectProfile.userId},t.next=1,e.$store.dispatch("userDelete",{deleteData:r,productId:e.serviceTab[e.selectProfileTabIdx].productId});case 1:s=t.sent,e.$store.dispatch("closeDialog"),s.result?(e.$refs.ref_profileRemove.close(),e.$store.dispatch("openRoofAlert",e.$text.Toast_ProfileDeleted)):(0,f.wJ)(e.$text.Alert_404);case 2:case"end":return t.stop()}},t)}))()},onClickGoStudySpace:function(){this.openState.studySpaceLogin=!0},moveToStudySpace:function(){var e="".concat("https://todoacademy.com/eng-jp/login").concat(1===this.profiles.length?"?loginId=".concat(this.profiles[0].loginId):"");window.open(e,"_blank"),this.openState.studySpaceLogin=!1},onClickOpenProfileCreate:function(){this.$store.dispatch("openCommonPopup",{type:"ProfileCreate",data:{from:"parents"}})},onOpenCantProfileDelete:function(){var e=this;this.openState.cantProfileDelete=!0,this.$nextTick(function(){var t=e.$refs.ref_cantProfileDelete.$el.querySelector(".float-sheet__box .cant-profile-delete p.delete-profile-desc-sub span");t.onclick=function(){e.$store.dispatch("openCS")}})},deleteProfileDesc:function(e){var t=this.$text["TDEA_DeleteProfile_DisabledPopupDesc"].split("<br>")[e];return t}}},q=V,z=(0,D.A)(q,s,a,!1,null,"405be78e",null),H=z.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.