1const i=s=>({name:s.name,length:s.length||6,validation:/\d/g,valueArray:[],value:"",init(){this.valueArray=Array(this.length),this.setValue()},handleInputChange(t,a){const e=t.target.value.match(this.validation);this.valueArray[a]=e?+e:null,this.setValue(),e&&this.setFocus(t.target.nextElementSibling)},handleInputPaste(t){const a=t.clipboardData.getData("text").match(this.validation);if(!a)return;this.valueArray=a,this.setValue();const e=document.getElementById(`otp-${a.length}`);this.setFocus(e)},setFocus(t){t&&t.focus()},setValue(){this.value=this.valueArray.join(""),this.$dispatch("update")}});export{i as InputOtp};
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.