1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[46436],{436(s,t,e){e.r(t),e.d(t,{default:()=>i});let r=window.PluginBaseClass;class i extends r{static #s=this.options={inputElId:null,type:null};init(){this.options.inputElId&&(this._inputEl=document.getElementById(this.options.inputElId),this._inputEl)&&(this._maxLength=parseInt(this._inputEl.maxLength),this._minLength=parseInt(this._inputEl.minLength),this._maxLength&&("progress-bar"===this.options.type&&(this._progressBarEl=this.el.querySelector(".progress-bar")),this._writeCurrent(),setTimeout(()=>{this._writeCurrent()},1e3),this._registerEvents()))}_registerEvents(){["oninput","keyup","change"].forEach(s=>{this._inputEl.addEventListener(s,()=>{this._writeCurrent()})})}_writeCurrent(){this._currentLength=parseInt(this._inputEl.value.length),"progress-bar"===this.options.type?(this._currentPercentage=Math.ceil(this._currentLength/this._maxLength*100),this._currentPercentage>=100?(this._progressBarEl.classList.remove("bg-success"),this._progressBarEl.classList.remove("bg-warning"),this._progressBarEl.classList.add("bg-danger")):this._currentPercentage>=90?(this._progressBarEl.classList.remove("bg-success"),this._progressBarEl.classList.remove("bg-danger"),this._progressBarEl.classList.add("bg-warning")):(this._progressBarEl.classList.remove("bg-danger"),this._progressBarEl.classList.remove("bg-warning"),this._progressBarEl.classList.add("bg-success")),this._progressBarEl.style.width=`${this._currentPercentage}%`,this._progressBarEl.innerText=`${this._currentLength}/${this._maxLength}`):this.el.innerText=`${this._currentLength}/${this._maxLength}`}}}}]);
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.