PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/v1world.us/wp-content/plugins/wpforms-lite/assets/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/v1world.us/wp-content/plugins/wpforms-lite/assets/js/text-limit.min.js

!function i(a,r,s){function o(n,t){if(!r[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw new Error("Cannot find module '"+n+"'")}e=r[n]={exports:{}};a[n][0].call(e.exports,function(t){var e=a[n][1][t];return o(e||t)},e,e.exports,i,a,r,s)}return r[n].exports}for(var l="function"==typeof require&&require,t=0;t<s.length;t++)o(s[t]);return o}({1:[function(t,e,n){"use strict";function o(t,e,n){return t.replace("{count}",e).replace("{limit}",n).replace("{remaining}",n-e)}function l(t,e,n){var i=document.createElement("div");return i.classList.add("wpforms-field-limit-text"),i.id="wpforms-field-limit-text-"+t+"-"+e,i.textContent=n,i}function d(e){return"string"==typeof e&&e.length?([/([A-Z]+),([A-Z]+)/gi,/([0-9]+),([A-Z]+)/gi,/([A-Z]+),([0-9]+)/gi].forEach(function(t){e=e.replace(t,"$1, $2")}),e.split(/\s+/).length):0}function u(t){return window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):t.clipboardData&&t.clipboardData.getData?t.clipboardData.getData("text/plain"):void 0}function c(t,e){var n="",i=/\s+/g,a=t.trim().match(i)||[],r=t.split(i);r.splice(e,r.length);for(var s=0;s<r.length;s++)n+=r[s]+(a[s]||"");return n.trim()}function i(t){return[].slice.call(t)}function a(){i(document.querySelectorAll(".wpforms-limit-characters-enabled")).map(function(t){var e=parseInt(t.dataset.textLimit,10)||0;t.value=t.value.slice(0,e);var n,i,a,r=l(t.dataset.formId,t.dataset.fieldId,o(window.wpforms_settings.val_limit_characters,t.value.length,e)),s=(n=r,i=e,function(t){n.textContent=o(window.wpforms_settings.val_limit_characters,this.value.length,i)});t.parentNode.appendChild(r),t.addEventListener("keydown",s),t.addEventListener("keyup",s),t.addEventListener("paste",(a=e,function(t){t.preventDefault();var e=u(t),t=this.selectionStart+e.length,e=this.value.substring(0,this.selectionStart)+e+this.value.substring(this.selectionStart);this.value=e.substring(0,a),this.setSelectionRange(t,t)}))}),i(document.querySelectorAll(".wpforms-limit-words-enabled")).map(function(t){var e=parseInt(t.dataset.textLimit,10)||0;t.value=c(t.value,e);var n,i,a,r=l(t.dataset.formId,t.dataset.fieldId,o(window.wpforms_settings.val_limit_words,d(t.value.trim()),e)),s=(n=r,i=e,function(t){var e=d(this.value.trim());n.textContent=o(window.wpforms_settings.val_limit_words,e,i),-1<[13,32,188].indexOf(t.keyCode)&&i<=e&&t.preventDefault()});t.parentNode.appendChild(r),t.addEventListener("keydown",s),t.addEventListener("keyup",s),t.addEventListener("paste",(a=e,function(t){t.preventDefault();var e=u(t),t=this.selectionStart+e.length,e=this.value.substring(0,this.selectionStart)+e+this.value.substring(this.selectionStart);this.value=c(e,a),this.setSelectionRange(t,t)}))})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a()},{}]},{},[1]);