PageSourceSearch

https://alphanews.org/wp-content/plugins/gravityforms/assets/js/di…rm-text-counter.64926d28c5f6489abf78.min.js

js alphanews.org collected 2026-09-24 09:13:53 UTC 2,035 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgravityforms=self.webpackChunkgravityforms||[]).push([[499],{3151:function(t,e,n){n.r(e);var a=n(5798),r=function(t){t.on("init",function(){i(t.getElement(),t.getContent({format:"text"}).length,"ginput_counter_tinymce")}),t.on("input keyup paste setcontent undo redo change",function(){u(t)})},i=function(t,e,n){if(m(t)){var a=g(t,n),r=s(t);a.textContent=d(r.template,e,r.maxLength),l(a,n,e>r.maxLength)}},o=(0,a.debounce)(function(t){c(t),i(t,t.value.length)},{wait:100}),u=(0,a.debounce)(function(t){i(t.getElement(),t.getContent({format:"text"}).length,"ginput_counter_tinymce")},{wait:100}),c=function(t){var e=s(t);e.maxLength<=0||t.value.length>e.maxLength&&(t.value=t.value.substring(0,e.maxLength))},l=function(t,e,n){e&&t.classList.add(e),n?t.classList.add("ginput_counter_error"):t.classList.remove("ginput_counter_error")},m=function(t){var e=s(t);return e.template.length>0&&e.maxLength>0},s=function(t){var e=t.closest("[data-text-counter-max]");return e?{template:e.getAttribute("data-text-counter-template")||"",maxLength:parseInt(e.getAttribute("data-text-counter-max")||"0")}:{template:"",maxLength:0}},g=function(t){var e=t.nextElementSibling;return e&&e.classList.contains("ginput_counter")||((e=document.createElement("div")).className="ginput_counter gfield_description",e.setAttribute("aria-live","polite"),t.insertAdjacentElement("afterend",e)),e},d=function(t,e,n){var a=Math.max(0,n-e);return t.replace("{current}",e).replace("{max}",n).replace("{remaining}",a)};e.default=function(t){var e=document.getElementById("gform_".concat(t));e.querySelectorAll('[data-text-counter-max][data-text-counter-template] :is(textarea, input[type="text"]):not(.wp-editor-area)').forEach(function(t){c(t),i(t,t.value.length)}),e.addEventListener("input",function(t){o(t.target)}),window.tinymce&&((window.tinymce.editors||[]).forEach(function(t){r(t)}),window.tinymce.on("AddEditor",function(t){r(t.editor)})),(0,a.consoleInfo)("Gravity Forms Theme: Text counter initialized for form: "+t)}}}]);

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.