System.register(["./index-legacy-fdce4919.js"],(function(e,t){"use strict";var s,o,i,d;return{setters:[e=>{s=e.bh,o=e.J,i=e.O,d=e.bi}],execute:function(){const t=d({prefixKey:"",storage:sessionStorage});e("u",s("student-register-store",{state:()=>({token:t.get(o,""),selectGoods:[],selectVip:[],schoolId:t.get("register_school_id","")}),getters:{getToken(){return this.token},getGoods(){return this.selectGoods},getVip(){return this.selectVip},getSchoolId(){return this.schoolId}},actions:{setToken(e){this.token=e,t.set(o,e)},deleteToken(){this.token="",t.remove(o)},setGoods(e){this.selectGoods.push(e)},deleteGoods(e){const t=this.selectGoods.findIndex((t=>t.productSkuId===e));this.selectGoods.splice(t,1)},setVip(e){this.selectVip=e},deleteVip(e){const t=this.selectVip.findIndex((t=>t.goodsId===e));this.selectVip.splice(t,1)},selectedVip(e){return this.selectVip.findIndex((t=>t.goodsId===e))>=0},setShoolId(e){this.schoolId=e,t.set("register_school_id",e)},studentLoutOut(){this.deleteToken(),i.replace({path:"/student-register",query:{sId:this.schoolId}})}}}))}}}));
