nfsfu234-form-validation
Version:
NFSFU234FormValidation is a lightweight and user-friendly JavaScript library designed for validating HTML form elements, with a special emphasis on textarea fields. It offers customizable validation messages, comprehensive support for required field check
1 lines • 41.8 kB
JavaScript
"use strict";function e(e,t,r,o,n,a,i){try{var s=e[a](i);var u=s.value}catch(e){r(e);return}if(s.done){t(u)}else{Promise.resolve(u).then(o,n)}}function t(t){return function(){var r=this,o=arguments;return new Promise(function(n,a){var i=t.apply(r,o);function s(t){e(i,n,a,s,u,"next",t)}function u(t){e(i,n,a,s,u,"throw",t)}s(undefined)})}}function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||false;o.configurable=true;if("value"in o)o.writable=true;Object.defineProperty(e,o.key,o)}}function n(e,t,r){if(t)o(e.prototype,t);if(r)o(e,r);return e}function a(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function i(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function s(e,t){var r,o,n,a,i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),"throw":s(1),"return":s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,o&&(n=a[0]&2?o["return"]:a[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;if(o=0,n)a=[a[0]&2,n.value];switch(a[0]){case 0:case 1:n=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(a[0]===6&&i.label<n[1]){i.label=n[1];n=a;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(a);break}if(n[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];o=0}finally{r=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var u=Object.create;var l=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var v=function(e,t){for(var r in t)l(e,r,{get:t[r],enumerable:!0})},g=function(e,t,r,o){var n=true,a=false,s=undefined;if(t&&(typeof t==="undefined"?"undefined":i(t))=="object"||typeof t=="function")try{var u=function(){var n=v.value;!m.call(e,n)&&n!==r&&l(e,n,{get:function(){return t[n]},enumerable:!(o=d(t,n))||o.enumerable})};for(var f=c(t)[Symbol.iterator](),v;!(n=(v=f.next()).done);n=true)u()}catch(e){a=true;s=e}finally{try{if(!n&&f.return!=null){f.return()}}finally{if(a){throw s}}}return e};var h=function(e,t,r){return r=e!=null?u(f(e)):{},g(t||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)},y=function(e){return g(l({},"__esModule",{value:!0}),e)};var p={};v(p,{default:function(){return eZ}});module.exports=y(p);var b={ERROR:"error",ERROR_1:"error_1",CONSOLE:"console",THROW:"throw",WARNING:"warning",INFO:"info"},w=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b.CONSOLE;switch(t){case b.ERROR:console.error("Error:",e);break;case b.CONSOLE:console.error("Error:",e);break;case b.THROW:throw e;case b.WARNING:console.warn("Warning:",e);break;case b.INFO:console.log("Info:",e);break;default:throw console.error("Error:",e),e}};var E=function(e){return e.every(function(e){return e===!0})};var T=function(e){return typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":(typeof e==="undefined"?"undefined":i(e))>"u"?"undefined":e===null?"null":a(e,HTMLElement)?"HTML Element":(typeof e==="undefined"?"undefined":i(e))=="object"&&a(e,Array)?"array":(typeof e==="undefined"?"undefined":i(e))=="object"&&a(e,Object)?"object":typeof e=="function"?"function":null};var x=function(){return(typeof window==="undefined"?"undefined":i(window))>"u"?(w("This function only works in a broswer environment..."),!1):window.location.href},M=x;var k=function(){var e=t(function(e,t){var r,o,n,a,i,u;return s(this,function(s){switch(s.label){case 0:r={};s.label=1;case 1:s.trys.push([1,9,,10]);console.log("AJAX Loading....");return[4,fetch(e,t)];case 2:o=s.sent();if(!o.ok)return[3,4];console.log("AJAX Finished....");return[4,o.json()];case 3:return[2,s.sent()];case 4:if(o.status===404)throw r.code=(n=o.status)!==null&&n!==void 0?n:404,r.message="Resource Not Found",r.data={headers:o.headers,url:o.url,status:o.status,statusText:o.statusText,ok:o.ok},r;s.label=5;case 5:s.trys.push([5,7,,8]);return[4,o.json()];case 6:a=s.sent();if(T(a)==="object")r.code=o.status,r.message=a.message||o.statusText,r.data=a;else throw r.code=400,r.message="Response is not a valid JSON object 2.",r;return[2,r];case 7:i=s.sent();throw r.code=400,r.message="Response is not a valid JSON object. 1",r.data=null,r;case 8:return[3,10];case 9:u=s.sent();throw r.code=u.code||400,r.message=u.message||u.statusText||"An Error Occured",r.data=u.data||null,r;case 10:return[2]}})});return function t(t,r){return e.apply(this,arguments)}}(),L=function(e){var t={},r=e.RequestMethod||"GET",o=e.RequestHeader||{},n=e.RequestBodyIgnore||!1,a=e.RequestType||"json",i;if(["POST","PUT","DELETE","UPDATE"].includes(r)&&(i=e.RequestBody||"",i===""&&n!==!0))throw t.code=400,t.message='The body of this "'.concat(r,'" request you made is empty. If this was intentionional, then add the RequestBodyIgnore attribute and set it to true.'),t;return{method:r,headers:o,body:JSON.stringify(i)}},A=function(){var e=t(function(e){var t,r,o,n,a;return s(this,function(i){switch(i.label){case 0:t={};i.label=1;case 1:i.trys.push([1,3,,4]);r=e&&e.url?e.url:M(),o=L(e);return[4,k(r,o)];case 2:return[2,i.sent()];case 3:n=i.sent();throw t.code=n.code||400,t.message=n.message||"An Error Occured",t.data=(a=n.data)!==null&&a!==void 0?a:null,console.error("AJAX Failed: ",n.message),w(n.message,b.THROW),n;case 4:return[2]}})});return function t(t){return e.apply(this,arguments)}}(),S=A;var j=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3e3;e.focus(),e.classList.add("input-focus-error"),setTimeout(function(){e.classList.remove("input-focus-error")},t)},I=j;var F=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!e)return!1;I(e,r);var n=document.createElement("div");n.classList.add("js-inline-message"),n.innerHTML=t;var a=e.parentNode;if(!a)return!1;a.appendChild(n),o&&n.classList.add("text-success"),setTimeout(function(){a.removeChild(n)},r)},q=F;var C=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:3e3,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;var i;if(r!=""?i=document.getElementById(r):document.querySelectorAll("#js-errorMessageContainer").length>0?i=t.querySelector("#js-errorMessageContainer"):(i=document.createElement("div"),i.classList.add("js-errorMessageContainer"),i.setAttribute("id","js-errorMessageContainer"),t.appendChild(i)),!i)return!1;var s=document.createElement("div");s.classList.add("login-error-message-container","active");var u=document.createElement("div");u.classList.add("message","js-message"),u.innerHTML=e;var l=document.createElement("div");l.classList.add("icon","close","js-close"),l.innerHTML="<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.71,8.29a1,1,0,0,0-1.42,0L12,10.59,9.71,8.29A1,1,0,0,0,8.29,9.71L10.59,12l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l2.29,2.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L13.41,12l2.3-2.29A1,1,0,0,0,15.71,8.29Zm3.36-3.36A10,10,0,1,0,4.93,19.07,10,10,0,1,0,19.07,4.93ZM17.66,17.66A8,8,0,1,1,20,12,7.95,7.95,0,0,1,17.66,17.66Z'/></svg>",s.appendChild(u),s.appendChild(l),i.appendChild(s),n&&s.classList.add("success");var d=s.querySelector(".js-close");if(!d)return!1;d.addEventListener("click",function(){s&&s.parentNode&&s.parentNode.removeChild(s)}),setTimeout(function(){s&&s.parentNode&&s.parentNode.removeChild(s)},o),a&&console.error(e)},H=C;var R=function(e){var t=e.type,r=e.message,o=e.duration,n=e.element,i=e.success,s=i===void 0?!1:i;if(!a(n,HTMLElement))return console.error("The HTML Element you are trying to use is not found."),!1;if(n.style.position="relative",t==="inline")q(n,r,o,s);else if(t==="modal")H(r,n,"",o,s);else return console.error("The type of error display you specified is not supported."),!1;return!0},O=R;var B=function(e){var t={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),!1;if(!e)return t.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),t;var r=typeof e=="string"?document.getElementById(e):e;if(!r)return t.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),t;var o={},n=[];return r.querySelectorAll("input").forEach(function(e,t){var r=e.getAttribute("data-attr-name")||e.getAttribute("name")||t,a=e.value;if(e.type==="checkbox"&&(a=e.checked),e.type==="radio")if(e.checked)a=!0;else return;o[r]=a,n.push(!0)}),r.querySelectorAll("textarea").forEach(function(e,t){var r=e.getAttribute("data-attr-name")||e.getAttribute("name")||t,a=e.value;o[r]=a,n.push(!0)}),r.querySelectorAll("select").forEach(function(e,t){var r=e.getAttribute("data-attr-name")||e.getAttribute("name")||t,a=e.value;o[r]=a,n.push(!0)}),E(n)?o:!1},P=B;var N=function(e){return e.length},G=N;var _=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;var o={message:"",code:400};if(!e)return o.message="The input element you are trying to count and restrict is not found. Check your HTML code.",w(o.message),o;var n=t.maxLength&&parseInt(t.maxLength)&&t.maxLength>=1?t.maxLength:250,a=t.minLength&&parseInt(t.minLength)?t.minLength:0,i=!!(t.shouldButtonDisable&&t.shouldButtonDisable),s;if(t.form&&T(t.form)==="string"?document.getElementById(t.form):t.form&&T(t.form)==="HTML Element"?s=t.form:document.getElementById("nfsfu234_fv_form")?s=document.getElementById("nfsfu234_fv_form"):document.getElementById("jsForm")?s=document.getElementById("jsForm"):document.querySelector("form")?s=document.querySelector("form"):s=void 0,!s)return o.message="The form you are trying to validate does not exist.",w(o.message),o;e.addEventListener("input",function(){var t=G(e.value),u=!1,l;if(T(r)==="string"&&(l=document.getElementById(r)),l)l=l;else{var d=e.parentNode;if(d===null||d===void 0?void 0:d.querySelector(".js-counterContainer"))l=d.querySelector(".js-counterContainer");else{if(l=document.createElement("span"),l.classList.add("js-counterContainer"),!d)return!1;d.appendChild(l)}}return l?(t>n?(t=n,l.classList.remove("text-fail"),l.classList.add("text-success"),e.value=e.value.slice(0,n),i&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1}),u=!0):t>=n?(e.value=e.value.slice(0,n),l.classList.remove("text-fail"),l.classList.add("text-success"),i&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1}),u=!0):t>=a&&a!==0?(l.classList.remove("text-fail"),l.classList.add("text-success"),i&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1}),u=!0):(l.classList.add("text-fail"),i&&s&&s.querySelectorAll("button").forEach(function(e){e.disabled=!1})),l.innerHTML="".concat(t,"/").concat(n),u):(o.message="Counter Element Not Found",w(o.message),o)})},D=_;var $=function(e){return/^\d+$/.test(e)},Y=$;var J={"dd/mm/yyyy":/^\d{1,2}\/\d{1,2}\/\d{4}$/,"yyyy-mm-dd":/^\d{4}-\d{2}-\d{2}$/,"mm/dd/yyyy":/^\d{1,2}\/\d{1,2}\/\d{4}$/,"mm.dd.yyyy":/^\d{1,2}\.\d{1,2}\.\d{4}$/,"yyyy/mm/dd":/^\d{4}\/\d{1,2}\/\d{1,2}$/,"yyyy.mm.dd":/^\d{4}\.\d{1,2}\.\d{1,2}$/,time:/^(0?[1-9]|1[0-2]):[0-5][0-9] (AM|PM)$/,"24-hour":/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/,month:/^(0?[1-9]|1[0-2])$/,day:/^(0?[1-9]|[1-2][0-9]|3[0-1])$/},V=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"dd/mm/yyyy";var r=J[t.toLowerCase()];return r?r.test(e):(console.error("Invalid date format: ".concat(t)),!1)},Z=V;var U=function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},z=U;var X=function(e){return typeof e=="string"?/^(https?:\/\/)?(www\.)?[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(:\d{1,5})?(\/[^\s]*)?(\?.*)?$/.test(e):!1},W=X;var K=function(e){return typeof e=="number"&&(e=e.toString()),/^\d{5}(?:\d{1})?$/.test(e)},Q=K;function ee(e,t,r){var o={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;var n=t.form||void 0,a=t.customErrorMessages||null,s=t.errorType||"inline",u=t.includeHTML!==!1,l=e.hasAttribute("required")||e.classList.contains("js-required"),d=a&&a.checkbox&&a.checkbox!==""?a.checkbox:"You need to check this box";if(e.getAttribute("type")!=="checkbox")return!1;if(!u)return l&&!e.checked?(w(d),o.message=d,o.data=e,o):!0;if(!n)return o.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist. 5765846846"),o;var c=[];return l&&!e.checked?(w(d),o.message=d,o.data=e,s==="inline"?q(e,d,3e3):s==="modal"&&(I(e,3e3),H(d,n)),o):!0}var et=ee;var er=function(e,t,r){if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, it must be executed in a browser environment."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;var o;var n={message:"an error occured",type:"error",code:400},s=t.form||void 0,u=(o=(t.customErrorMessages||null).checkbox)!==null&&o!==void 0?o:"You need to choose a value.";if(!s)return n.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist. 5765846846"),n;var l=null;if((typeof e==="undefined"?"undefined":i(e))=="object"&&a(e,HTMLInputElement))l=e.getAttribute("name");else if(typeof e=="string")l=e;else if(!e)return console.error("The radio element(s) to validate is(are) not found."),n.message="The radio element(s) to validate is(are) not found.",n;if(!l)return w("The radio element(s) to validate is(are) not found."),n.message="The radio element(s) to validate is(are) not found.",n;var d=document.querySelectorAll('input[type="radio"][name="'.concat(l,'"]')),c=!1,f=!1,m=t.errorType||"inline",v=[],g=null;return d.forEach(function(e){g=e,(e.required||e.classList.contains("js-required"))&&(c=!0,e.checked?v.push(!0):v.push(!1))}),E(v)?!0:(!!(t.ignoreError&&t.ignoreError===!0)||(m==="inline"?q(g,u,3e3):m==="modal"&&(I(g,3e3),H(u,s))),n.message="You need to choose a value.",n.data=g,n)},eo=er;var en=function(e,t,r){var o={message:"",type:"error",data:null,code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return console.error("The input field you are trying to validate does not exist."),!1;if(T(t)!=="object")return w("options are not provided"),o.message="options are not provided",o;var n;var a=t.error_type||t.errorType||"inline",s=t.customErrorMessages||[],u=(n=t.form)!==null&&n!==void 0?n:void 0,l=t.includeHTML!==!1,d=e.getAttribute("type"),c=e.value.trim(),f=e.required||e.classList.contains("js-required"),m;if(!l){var v,g;if(f&&c==="")m=(v=s[d])!==null&&v!==void 0?v:"This field is required.";else if(f&&d==="radio"){t.ignoreError=!0;var h=eo(e,t);var y;h===!0?m="validated":m=(y=s[d])!==null&&y!==void 0?y:h.message}else if(f&&d==="checkbox"&&!et(e,{form:u,customErrorMessages:s}))m=(g=s[d])!==null&&g!==void 0?g:"You need to check this box";else switch(d){case"email":var p;c!==""&&!z(c)&&(m=((p=s.email)===null||p===void 0?void 0:p.format)||"Invalid email format.");break;case"url":var b;c!==""&&!W(c)&&(m=((b=s.url)===null||b===void 0?void 0:b.format)||"Invalid URL format.");break;case"zipcode":var E;c!==""&&!Q(c)&&(m=((E=s.zipcode)===null||E===void 0?void 0:E.format)||"Invalid ZIP code format.");break;case"date":var x;c!==""&&!Z(c)&&(m=((x=s.date)===null||x===void 0?void 0:x.format)||"Invalid date format.");break;case"tel":var M,k;c!==""&&!Y(c)&&(m=((M=s.tel)===null||M===void 0?void 0:M.format)||((k=s.phone)===null||k===void 0?void 0:k.format)||"Invalid phone number.");break;case"phone":var L,A;c!==""&&!Y(c)&&(m=((L=s.tel)===null||L===void 0?void 0:L.format)||((A=s.phone)===null||A===void 0?void 0:A.format)||"Invalid date format.");break;default:break}return m?(o.message=m,o.data=e,w(m),o):!0}if(!u)return o.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),o;var S,j;if(f&&c==="")m=(S=s[d])!==null&&S!==void 0?S:"This field is required.";else if(f&&d==="radio"){t.ignoreError=!0;var F=eo(e,t);var C;F===!0?m="validated":m=(C=s[d])!==null&&C!==void 0?C:F.message}else if(f&&d==="checkbox"&&!et(e,{form:u,customErrorMessages:s}))m=(j=s[d])!==null&&j!==void 0?j:"You need to check this box";else switch(d){case"email":var R;c!==""&&!z(c)&&(m=((R=s.email)===null||R===void 0?void 0:R.format)||"Invalid email format.");break;case"url":var O;c!==""&&!W(c)&&(m=((O=s.url)===null||O===void 0?void 0:O.format)||"Invalid URL format.");break;case"zipcode":var B;c!==""&&!Q(c)&&(m=((B=s.zipcode)===null||B===void 0?void 0:B.format)||"Invalid ZIP code format.");break;case"date":var P;c!==""&&!Z(c)&&(m=((P=s.date)===null||P===void 0?void 0:P.format)||"Invalid date format.");break;case"tel":var N,G;c!==""&&!Y(c)&&(m=((N=s.tel)===null||N===void 0?void 0:N.format)||((G=s.phone)===null||G===void 0?void 0:G.format)||"Invalid phone number.");break;case"phone":var _,D;c!==""&&!Y(c)&&(m=((_=s.tel)===null||_===void 0?void 0:_.format)||((D=s.phone)===null||D===void 0?void 0:D.format)||"Invalid date format.");break;default:break}return m?(o.message=m,o.data=e,a==="inline"?q(e,m):(I(e),H(m,e)),w(m),o):(o.code=200,o.data=null,o.message="success",o.type="success",!0)},ea=en;var ei=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{customErrorMessages:[],form:e};var r=[],o={message:"",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return o.message="To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.",r.push(o),r;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return o.message="The form you are trying to validate does not exist.",r.push(o),w(o.message),r;var n=[],a=e.querySelectorAll("input");return a.length>0?a.forEach(function(o){t.form=t.form||e;var a=ea(o,t);if(a===!0)n.push(!0);else{var i={message:"",code:400,data:null};n.push(!1);var s=a.message;i.message=s,i.data=o,r.push(i)}}):n.push(!0),E(n)?!0:r},es=ei;var eu=function(e,t,r){var o={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return console.error("The select element to validate is not found."),!1;if(T(t)!=="object")return w("options are not provided"),!1;var n=t.error_type||t.errorType||"inline",a=t.customErrorMessages||[],s=t.form||void 0,u=t.includeHTML!==!1,l=e.hasAttribute("required")||e.classList.contains("js-required"),d=e.value.trim(),c=(a===null||a===void 0?void 0:a.select)||"You have to select an option.";return u?s?l&&!d?(w(c),o.message=c,o.data=e,n?q(e,c,3e3):(I(e,3e3),H(c,s)),o):(o.code=200,o.data=null,o.message="success",o.type="success",!0):(o.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),o):l&&!d?(w(c),o.message=c,o.data=e,o):!0},el=eu;var ed=function(e,t){var r=[],o={message:"",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),!1;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return o.message="The form you are trying to validate does not exist.",r.push(o),w(o.message),r;if(T(t)!=="object")return w("options are not provided"),o.message="options are not provided",o;var n=[],a=e.querySelectorAll("select");return a.length>0?a.forEach(function(o){var a,i;t.customErrorMessages=(a=t.customErrorMessages)!==null&&a!==void 0?a:[],t.form=(i=t.form)!==null&&i!==void 0?i:e;var s=el(o,t);if(s===!0)n.push(!0);else{var u={message:"",code:400};n.push(!1);var l=s;u.message=l,u.data=o,r.push(u)}}):n.push(!0),E(n)?!0:r},ec=ed;var ef=function(e,t,r){var o={message:"",type:"error",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, it must be executed in a browser environment."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return o.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),o;if(T(t)!=="object")return w("options are not provided"),o.message="options are not provided",o;var n=t.error_type||t.errorType||"inline",a=t.customErrorMessages||[],s=t.form||void 0,u=t.includeHTML!==!1,l=e.hasAttribute("required")||e.classList.contains("js-required"),d=e.value.trim(),c=(a===null||a===void 0?void 0:a.textarea)||"Textarea cannot be left empty.";return u?s?l&&!d?(w(c),o.message=c,o.data=e,n==="inline"?q(e,c,3e3):(I(e,3e3),H(c,s)),o):(o.code=200,o.data=null,o.message="success",o.type="success",!0):(o.message="The form you are trying to validate does not exist.",w("The form you are trying to validate does not exist."),o):l&&!d?(w(c),o.message=c,o.data=e,o):!0},em=ef;var ev=function(e,t,r){var o=[],n={message:"",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return n.message="To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.",o.push(n),o;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return n.message="The form you are trying to validate does not exist.",o.push(n),w(n.message),o;if(T(t)!=="object")return w("options are not provided"),n.message="options are not provided",n;var a=[],s=e.querySelectorAll("textarea");return s.length>0?s.forEach(function(r,n){var i={message:"",code:400};var s,u,l;t.customErrorMessages=(s=t.customErrorMessages)!==null&&s!==void 0?s:[],t.errorType=(u=t.errorType)!==null&&u!==void 0?u:"inline",t.form=(l=t.form)!==null&&l!==void 0?l:e;var d=em(r,t);if(d===!0)a.push(!0);else{var c={message:"",code:400};a.push(!1);var f=d;c.message=f,c.data=r,o.push(c)}}):a.push(!0),E(a)?!0:o},eg=ev;var eh=function(e,t,r){var o={message:"",data:null,code:400},n={};if(!e)return w("Form element not found."),o.message="Form element not found.",o;var a=[],i=es(e,t),s=eg(e,t),u=ec(e,t);if(i===!0)a.push(!0);else{var l={code:400,message:""},d=i;l.message="Inputs Validation Failed",l.data=d,n.inputs=l,a.push(!1)}if(s===!0)a.push(!0);else{a.push(!1);var c={code:400,message:""},f=s;c.message="Textarea Validation Failed",c.data=f,n.textareas=c}if(u===!0)a.push(!0);else{a.push(!1);var m={code:400,message:""},v=u;m.message="Selects Validation Failed",m.data=v,n.selects=m}return E(a)?!0:{message:"Form Validation Error",data:n}},ey=eh;var ep=function(e,t){var r=[],o={message:"",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc."),w("To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.","big"),!1;if(!e)return o.message="The form you are trying to validate does not exist. 5555 0000",o.data=e,r.push(o),w(o.message),r;if(T(t)!=="object")return w("options are not provided"),o.message="options are not provided",o;var n=[],a=e.querySelectorAll('input[type="checkbox"]');return a.length>0?a.forEach(function(o){var a,i;t.customErrorMessages=(a=t.customErrorMessages)!==null&&a!==void 0?a:[],t.form=(i=t.form)!==null&&i!==void 0?i:e;var s=et(o,t);if(s===!0)n.push(!0);else{n.push(!1);var u={message:"",code:400};n.push(!1);var l=s;u.message=l,u.data=o,r.push(u)}}):n.push(!0),E(n)?!0:r},eb=ep;var ew=function(e,t){var r=[],o={message:"",code:400};if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("To access this function, it must be executed in a browser environment."),o.message="To access this function, you will need to execute it in a browser like Google Chrome, Safari, Firefox, Microsoft Edge, etc.",r.push(o),r;if(typeof e=="string"&&(e=document.getElementById(e)),!e)return o.message="The form you are trying to validate does not exist.",r.push(o),r;if(T(t)!=="object")return w("options are not provided"),o.message="options are not provided",o;var n=e.querySelectorAll('input[type="radio"]'),a=[];return n.forEach(function(e){var o={message:"",code:400},n=eo(e,t);if(n===!0)a.push(!0);else{a.push(!1);var i=n.message;o.message=i,o.data=e,r.push(o)}}),E(a)?!0:r},eE=ew;var eT=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:8,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:20,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"";var a=/[A-Z]/,i=/[a-z]/,s=/[0-9]/;return e.length<r||e.length>o?"Make sure the length of your password ranges from ".concat(r," - ").concat(o," characters"):a.test(e)?i.test(e)?s.test(e)?t&&!(typeof n=="string"?new RegExp(n):n).test(e)?"Your password needs to have one symbol e.g (!@#$%^&*())":!0:"Your password needs to have at least one number (0-9)":"Your password needs to have at least one lowercase (a-z)":"Your password needs to have at least 1 uppercase (A-Z)"},ex=eT;var eM=h(require("bcryptjs")),ek=function(){var e=t(function(e){var t;return s(this,function(r){switch(r.label){case 0:return[4,eM.genSalt(10)];case 1:t=r.sent();return[4,eM.hash(e,t)];case 2:return[2,r.sent()]}})});return function t(t){return e.apply(this,arguments)}}(),eL=ek;var eA=function(){var e=t(function(){var e,t,r,o,n,a,i,u,l,d;var c=arguments;return s(this,function(s){switch(s.label){case 0:e=c.length>0&&c[0]!==void 0?c[0]:Math.floor(Math.random()*11)+8,t=c.length>1&&c[1]!==void 0?c[1]:!1;r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",o="abcdefghijklmnopqrstuvwxyz",n="0123456789",a="!@#$%^&*()",i="";(e<8||e>18)&&w("Password length must be between 8 and 18 characters.","error_1"),i+=r[Math.floor(Math.random()*r.length)],i+=a[Math.floor(Math.random()*a.length)],i+=n[Math.floor(Math.random()*n.length)];u=3;for(;u<e;){l=Math.floor(Math.random()*4);l===0?i+=r[Math.floor(Math.random()*r.length)]:l===1?i+=o[Math.floor(Math.random()*o.length)]:l===2?i+=a[Math.floor(Math.random()*a.length)]:i+=n[Math.floor(Math.random()*n.length)],u++}if(!t)return[3,2];return[4,eL(i)];case 1:d=s.sent();return[2,{0:i,1:d,password:i,hashedPassword:d}];case 2:return[2,i]}})});return function t(){return e.apply(this,arguments)}}(),eS=eA;var ej=h(require("bcryptjs")),eI=function(){var e=t(function(e,t){var r,o,n;var a=arguments;return s(this,function(i){switch(i.label){case 0:r=a.length>2&&a[2]!==void 0?a[2]:!1;i.label=1;case 1:i.trys.push([1,5,,6]);if(!r)return[3,3];return[4,ej.compare(e,t)];case 2:o=i.sent();return[3,4];case 3:o=e===t;i.label=4;case 4:return[2,o];case 5:n=i.sent();return[2,(console.error("Error comparing passwords: ",n),!1)];case 6:return[2]}})});return function t(t,r){return e.apply(this,arguments)}}(),eF=eI;var eq=function(e){return typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":(typeof e==="undefined"?"undefined":i(e))>"u"?"undefined":e===null?"null":a(e,HTMLElement)?"HTML Element":(typeof e==="undefined"?"undefined":i(e))=="object"&&a(e,Array)?"array":(typeof e==="undefined"?"undefined":i(e))=="object"&&a(e,Object)?"object":typeof e=="function"?"function":"null"},eC=eq;var eH=function(){return(typeof window==="undefined"?"undefined":i(window))>"u"?(console.error("You need to be in a browser environment like Google Chrome, Safari, Firefox, Microsoft Edge, etc. for this function to work."),!1):!!navigator.onLine},eR=eH;var eO=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;var o=null,n={message:"error",type:"error",code:400};if(eC(t)==="HTML Element")o=t;else if(typeof t=="string")o=document.getElementById(t);else if(t===null&&r){var i=typeof r=="string"?document.getElementById(r):r;(a(i,HTMLFormElement)||a(i,HTMLDivElement))&&(o=i.querySelector('button[type="submit"], input[type="submit"], #jsSubmit, input[type="search"], button'))}else return n.message="The button element specified is not found.",w(n.message),n;return o?o?(o.tagName.toLowerCase()==="input"?o.value=e:o.innerHTML=e,!0):(n.message="The button element specified is not found.",w(n.message),n):(n.message="The button element specified is not found.",w(n.message),n)},eB=eO;var eP=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;e||(e=M()),(typeof window==="undefined"?"undefined":i(window))<"u"?setTimeout(function(){window.location.href=e},t*1e3):console.log("Redirecting to: ".concat(e||"current page"," (Delayed: ").concat(t," seconds)"))},eN=eP;var eG=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if((typeof window==="undefined"?"undefined":i(window))>"u")return console.error("You need to be in a browser environment like Google Chrome, Safari, Firefox, Microsoft Edge, etc. for this function to work."),!1;var t=null;if(typeof e=="string"){if(t=document.getElementById(e),!t)return console.error('Form with ID "'.concat(e,'" not found.')),!1}else if(a(e,HTMLFormElement)||a(e,HTMLDivElement))t=e;else if(e===null)t=document.body;else return console.error("Invalid form parameter."),!1;return t.querySelectorAll("input, textarea, select").forEach(function(e){a(e,HTMLInputElement)?e.type==="radio"||e.type==="checkbox"?e.checked=!1:e.value="":a(e,HTMLTextAreaElement)?e.value="":a(e,HTMLSelectElement)&&(e.selectedIndex=0)}),!0},e_=eG;var eD=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;var o=function e(e,o){t===null&&(t="show"),r===null&&(r="hide"),e==="password"&&t!==null?(o.innerHTML="",typeof t=="string"?o.innerHTML=t:T(t)==="HTML Element"?o.appendChild(t):o.innerHTML=t):e==="text"&&r!==null&&(o.innerHTML="",typeof r=="string"?o.innerHTML=r:T(r)==="HTML Element"?o.appendChild(r):o.innerHTML=t)};var n=document.querySelectorAll(".nfsfu234_fv_togglePassword")||document.querySelectorAll(".js-togglePassword")||void 0;if(!n)return w("No Toggle Password Button was found. Check your HTML Code","error_1"),!1;n.forEach(function(t){var r=e.type,n=e.nextElementSibling;o(r,n),t.addEventListener("click",function(){e.type=e.type==="password"?"text":"password";var t=e.type;n&&o(t,n)})})},e$=eD;var eY=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var o=typeof t=="string"?document.getElementById(t):t;if(!o){console.error("Form element not found."),w("Form Element not found");return}var n=o.querySelectorAll('input[type="password"]'),a=e.show||null,i=e.hide||null;r?n.forEach(function(e){e$(e,a,i)}):n.length>0&&e$(n[0],a,i)},eJ=eY;var eV=/*#__PURE__*/function(){function e(t,o){r(this,e);this.customErrorMessages={};if(console.log("NFSFU234FormValidation is loaded...."),(typeof window==="undefined"?"undefined":i(window))>"u")this.form=void 0;else{var n;t&&t.form&&(typeof t.form=="string"&&t.form!==""?n=document.getElementById(t.form):a(t.form,HTMLElement)&&(n=t.form)),n||(n=document.getElementById("jsForm")),n||(n=document.querySelector("form")),this.form=n}this.form&&a(this.form,HTMLElement)&&(this.form.hasAttribute("novalidate")||this.form.setAttribute("novalidate",""),this.form.addEventListener("submit",function(e){e.preventDefault()})),this.AJAXResult=null}n(e,[{key:"populateOptionsVariables",value:function e(e,t){var r=!1,o=null;if((typeof e==="undefined"?"undefined":i(e))=="object"&&e!==null)r=e.isAjax===!0||!1,o=e.ajaxOptions||null;else if(t){var n;r=((n=t.getAttribute("isAjax"))===null||n===void 0?void 0:n.trim())==="true"||!1;var a=t.getAttribute("action")||"",s=(t.getAttribute("method")||"GET").toUpperCase(),u={},l=/^nfsfu234_fv_reqheader_(.+)$/i;for(var d=0;d<t.attributes.length;d++){var c=t.attributes[d],f=c.name,m=c.name.toLowerCase().match(l);if(m){var v=m[1];u[v]=c.value}}o={url:a,RequestMethod:s,RequestHeader:Object.keys(u).length>0?u:void 0,RequestBody:void 0}}return{isAjax:r,ajaxOptions:o}}},{key:"submit",value:function e(e,t){var r=this;this.form=this.form||void 0,this.customErrorMessages=this.customErrorMessages||{};var o=this.form,n=this.customErrorMessages,s=!1,u=null;var l;if(typeof e=="string"?(o=document.getElementById(e),n={form:o,customErrorMessages:[]}):a(e,HTMLFormElement)||a(e,HTMLDivElement)?(o=e,n={form:o,customErrorMessages:[]}):e&&(typeof e==="undefined"?"undefined":i(e))=="object"&&"form"in e&&(typeof e.form=="string"?o=document.getElementById(e.form):(a(e.form,HTMLFormElement)||HTMLDivElement)&&(o=e.form),n={form:o,customErrorMessages:(l=e.customErrorMessages)!==null&&l!==void 0?l:[]}),!o)return w("Form element not found."),!1;o.getAttribute("novalidate")!==null||o.setAttribute("novalidate",""),o.addEventListener("submit",function(e){e.preventDefault()});var d=this.populateOptionsVariables(e,o),c=d.isAjax,f=d.ajaxOptions;s=c,u=f;var m={message:"",type:""},v=ey(o,n);if(v===!0)m.message="success",m.type="success",m.data=null;else if((typeof v==="undefined"?"undefined":i(v))=="object"&&v!==null&&"message"in v){var g=v.message;m.message=typeof g=="string"||typeof g=="number"||typeof g=="boolean"?g:"Error",m.type="error",m.data=v}else m.message="Error",m.type="error";return m.message==="success"&&s&&u!==null?(u.RequestBody=P(o),S(u).then(function(e){var t=e.code||e.status;if(t>=300&&t<=500){var n={type:"modal",message:e.message,duration:3e3,element:o,success:!1};return m.message=e.message,m.type="error",m.code=t,m.data=e.data,r.displayError(n),console.error("THIS IS ERR_ ",e.message),m}else return console.log("Success"),e}).catch(function(e){return console.error("LOLK ",e),m})):typeof t=="function"?(t(m),!0):new Promise(function(e){e(m)})}},{key:"validate",value:function e(e,t){var r,o={};var n;if(typeof e=="string"?(r=document.getElementById(e),o={form:r,customErrorMessages:[]}):a(e,HTMLFormElement)||a(e,HTMLDivElement)?(r=e,o={form:r,customErrorMessages:[]}):e&&(typeof e==="undefined"?"undefined":i(e))=="object"&&"form"in e?(typeof e.form=="string"?r=document.getElementById(e.form):(a(e.form,HTMLFormElement)||a(e.form,HTMLDivElement))&&(r=e.form),o={form:r,customErrorMessages:(n=e.customErrorMessages)!==null&&n!==void 0?n:[]}):(r=this.form,o={form:r,customErrorMessages:[]}),!r)return w("Form element not found."),!1;r.getAttribute("novalidate")!==null||r.setAttribute("novalidate",""),r.addEventListener("submit",function(e){e.preventDefault()});var s={message:"",type:""},u=ey(r,o);if(u===!0)s.message="success",s.type="success",s.data=null;else if((typeof u==="undefined"?"undefined":i(u))=="object"&&u!==null&&"message"in u){var l=u.message;typeof l=="string"||typeof l=="number"||typeof l=="boolean"?s.message=l:s.message="Error",s.type="error",s.data=u}else s.message="Error",s.type="error";return typeof t=="function"?(t(s),!0):new Promise(function(e){e(s)})}},{key:"ajax",value:function e(e){return this.AJAXResult=S(e)}},{key:"getAJAXResponse",value:function e(){return this.AJAXResult?this.AJAXResult:!1}},{key:"getFormDetails",value:function e(e){return e||(e=this.form),P(e)}},{key:"loading",value:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return r!==null&&(r=typeof r=="string"?document.getElementById(r):r,r=(typeof r==="undefined"?"undefined":i(r))>"u"?this.form:r),eB(e,t,r)}},{key:"displayError",value:function e(e){O(e)}},{key:"isEmail",value:function e(e){return z(e)}},{key:"isURL",value:function e(e){return W(e)}},{key:"isNumber",value:function e(e){return eC(e)==="number"}},{key:"isZipCode",value:function e(e){return Q(e)}},{key:"isZip",value:function e(e){return Q(e)}},{key:"countString",value:function e(e){return G(e)}},{key:"generatePassword",value:function e(e,r){return t(function(){return s(this,function(t){switch(t.label){case 0:return[4,eS(e,r)];case 1:return[2,t.sent()]}})})()}},{key:"generateRandomPassword",value:function e(e,r){return t(function(){return s(this,function(t){switch(t.label){case 0:return[4,eS(e,r)];case 1:return[2,t.sent()]}})})()}},{key:"passwordStrength",value:function e(){}},{key:"getPasswordStrength",value:function e(){}},{key:"checkPassword",value:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:20,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"";return ex(e,o,t,r,n)}},{key:"verifyPassword",value:function e(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t(function(){var t;return s(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,eF(e,r,o)];case 1:return[2,n.sent()];case 2:t=n.sent();return[2,(console.error("Error verifying password: ",t),!1)];case 3:return[2]}})})()}},{key:"passwordMatch",value:function e(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t(function(){var t;return s(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,eF(e,r,o)];case 1:return[2,n.sent()];case 2:t=n.sent();return[2,(console.error("Error verifying password: ",t),!1)];case 3:return[2]}})})()}},{key:"hashPassword",value:function e(e){return t(function(){var t;return s(this,function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,eL(e)];case 1:return[2,r.sent()];case 2:t=r.sent();return[2,(console.error("Error hashing password: ",t),!1)];case 3:return[2]}})})()}},{key:"togglePasswordVisibility",value:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return e$(e,t,r)}},{key:"togglePasswordVisibilityAll",value:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return eJ(e,t,r)}},{key:"validateInput",value:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;var o={type:"error",code:400};if(typeof e=="string"&&(e=document.getElementById(e)),e){var n;t.form=(n=t.form)!==null&&n!==void 0?n:this.form;var a=ea(e,t,r);if(a===!0)return!0;o=a}else{var i=b;o.message="The Input Feild you are trying to validate is undefined.",w("The Input Feild you are trying to validate is undefined.")}if(eC(r)==="function"){var s=r(o)}return new Promise(function(e,t){e(o)})}},{key:"validateAllInput",value:function e(e,t){return e=e!==null&&e!==void 0?e:this.form,es(e,t)}},{key:"validateRadio",value:function e(e,t){return eo(e,t)}},{key:"validateAllRadio",value:function e(e,t){return e=e!==null&&e!==void 0?e:this.form,eE(e,t)}},{key:"validateCheckbox",value:function e(e,t){return et(e,t)}},{key:"validateAllCheckbox",value:function e(e,t){return e=e!==null&&e!==void 0?e:this.form,eb(e,t)}},{key:"validateSelect",value:function e(e,t,r){var o;return t.form=(o=t.form)!==null&&o!==void 0?o:this.form,el(e,t,r)}},{key:"validateAllSelect",value:function e(e,t){return ec(e,t)}},{key:"validateTextarea",value:function e(e,t){return em(e,t)}},{key:"validateAllTextarea",value:function e(e,t){return eg(e,t)}},{key:"restrictInputWithCounter",value:function e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D(e,t,r)}},{key:"containsOnlyIntegers",value:function e(e){return Y(e)}},{key:"getPageURL",value:function e(){return M()}},{key:"redirect",value:function e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;e||(e=this.getPageURL()),eN(e,t)}},{key:"checkVariableType",value:function e(e){return eC(e)}},{key:"isOnline",value:function e(){return eR()}},{key:"reset",value:function e(e){var t;return e?t=e:t=this.form,e_(t)}}]);return e}();(typeof window==="undefined"?"undefined":i(window))<"u"&&(window.NFSFU234FormValidation=eV);var eZ=eV;//# sourceMappingURL=nfsfu234FormValidation.js.map