1function __rvxReviewSuccessModalComponent__() { 2 return { 3 duration: 1500, 4 progress: 0, 5 timer: null, 6 init() { 7 this.$watch('showReviewSuccessModal', (newValue) => { 8 if (newValue) { 9 this.resetTimer(); 10 this.startTimer(); 11 } else { 12 this.stopTimer(); 13 } 14 }); 15 }, 16 startTimer() { 17 const interval = 100; 18 const steps = this.duration / interval; 19 const stepSize = 100 / steps; 20 let currentStep = 0; 21 22 this.timer = setInterval(() => { 23 currentStep += 1; 24 this.progress = currentStep * stepSize; 25 26 if (currentStep >= steps) { 27 clearInterval(this.timer); 28 this.close(); 29 } 30 }, interval); 31 }, 32 stopTimer() { 33 if (this.timer) { 34 clearInterval(this.timer); 35 this.timer = null; 36 } 37 }, 38 resetTimer() { 39 this.progress = 0; 40 this.stopTimer(); 41 }, 42 close() { 43 this.stopTimer(); 44 this.$dispatch('notify-close-success-modal'); 45 } 46 }; 47}
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.