PageSourceSearch

https://sarak.yes24.com/_nuxt/readingGoalStore.8e8f1ae2.js

js yes24.com collected 2026-09-24 08:38:12 UTC 2,103 bytes, 1 lines download raw bytes

1import{Q as l,c as s,b as u}from"./entry.3578af79.js";import{u as g}from"./badgeStore.52b02505.js";const c=l("readingGoal",{state:()=>({uid:"",year:new Date().getFullYear(),readingCount:0,goalCount:0,unlock:!1,goalCountInput:0,showExceedAlert:!1,showMissionPointSaveAlert:!1,showReadingGoalTooltipYn:!0}),getters:{readingCompleteRate:t=>Math.floor(t.readingCount/t.goalCount*100),isGoalExceedDefaultValue:t=>+t.goalCountInput>1e3},actions:{async getUserCountData(t){try{const a=await s(`/reading-note/${t}/goal`);if(typeof a=="object"&&Object.keys(a).length>0){const{uid:r,year:o,readingCount:i,goalCount:n}=a;this.uid=r,this.year=o,this.readingCount=i,this.goalCount=n,this.goalCountInput=n}else this.uid="",this.year=new Date().getFullYear(),this.readingCount=0,this.goalCount=0,this.goalCountInput=0;return{readingCount:this.readingCount,goalCount:this.goalCount}}catch(e){return e}},async setGoalCount(t){try{const e=await s("/reading-note/goal",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:this.uid,blogId:t,year:this.year,goalCount:this.validationReadingGoal(this.goalCountInput)})}),{uid:a}=e;if(this.uid=a,this.unlock=e.unlock,this.goalCount=this.goalCountInput,this.goalCount>0&&(await this.giveUserYesPoint(1)).result===!0){const o=g();await o.loadBadge();const i=o.badges.find(n=>n.badgeCode==="FM_01");o.selectedBadge={...i,isAcquired:"Y",isBadgeFoot:!0},o.badgeBottomSheet=!0}}catch(e){console.error(e)}},async giveUserYesPoint(t){try{return await s("/reading-note/etc/reading-note-mission-point",{method:"POST",headers:"application/json",body:JSON.stringify({memberId:u().loginUser.id,savePointType:t})})}catch(e){return console.error(e),{result:!1}}},openGetYesPointModal(){this.showMissionPointSaveAlert=!0},validationReadingGoal(t){const e=+t;return Number.isNaN(e)||!Number.isInteger(e)||e<0?0:e},makeQuietReadingGoalTooltip(){localStorage.setItem("readingGoal","false"),this.showReadingGoalTooltipYn=!1},checkReadingGoalTooltipOn(){const t=localStorage.getItem("readingGoal")||"true";this.showReadingGoalTooltipYn=t==="true"}}});export{c as u};

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.