PageSourceSearch

https://soccernet.ng/app/plugins/nsn-contact-form/blocks/contact-form/block.c8f4479f3bb29e777f32.js

js soccernet.ng collected 2026-10-02 18:49:49 UTC 4,730 bytes, 2 lines download raw bytes

1/*! For license information please see block.c8f4479f3bb29e777f32.js.LICENSE.txt */
2(()=>{function e(){var n,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function c(e,o,a,s){var c=o&&o.prototype instanceof u?o:u,l=Object.create(c.prototype);return t(l,"_invoke",function(e,t,o){var a,s,c,u=0,l=o||[],f=!1,m={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,t){return a=e,s=0,c=n,m.n=t,i}};function p(e,t){for(s=e,c=t,r=0;!f&&u&&!o&&r<l.length;r++){var o,a=l[r],p=m.p,y=a[2];e>3?(o=y===t)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=n):a[0]<=p&&((o=e<2&&p<a[1])?(s=0,m.v=t,m.n=a[1]):p<y&&(o=e<3||a[0]>t||t>y)&&(a[4]=e,a[5]=t,m.n=y,s=0))}if(o||e>1)return i;throw f=!0,t}return function(o,l,y){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,y),s=l,c=y;(r=s<2?n:c)||!f;){a||(s?s<3?(s>1&&(m.n=-1),p(s,c)):m.n=c:m.v=c);try{if(u=2,a){if(s||(o="next"),r=a[o]){if(!(r=r.call(a,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,s<2&&(s=0)}else 1===s&&(r=a.return)&&r.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=n}else if((r=(f=m.n<0)?c:e.call(t,m))!==i)break}catch(e){a=n,s=1,c=e}finally{u=1}}return{value:r,done:f}}}(e,a,s),!0),l}var i={};function u(){}function l(){}function f(){}r=Object.getPrototypeOf;var m=[][a]?r(r([][a]())):(t(r={},a,function(){return this}),r),p=f.prototype=u.prototype=Object.create(m);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,s,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=f,t(p,"constructor",f),t(f,"constructor",l),l.displayName="GeneratorFunction",t(f,s,"GeneratorFunction"),t(p),t(p,s,"Generator"),t(p,a,function(){return this}),t(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:y}})()}function t(e,n,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,n,r,o){function s(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(s("next",0),s("throw",1),s("return",2))},t(e,n,r,o)}function n(e,t,n,r,o,a,s){try{var c=e[a](s),i=c.value}catch(e){return void n(e)}c.done?t(i):Promise.resolve(i).then(r,o)}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".nsn-contact-form__form").forEach(function(t){t.addEventListener("submit",function(){var r,o=(r=e().m(function n(r){var o,a,s,c,i,u,l,f,m,p,y;return e().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r.preventDefault(),a=t.querySelector(".nsn-contact-form__button"),s=t.querySelector(".nsn-contact-form__response"),c=a.textContent,i="nsn_contact_form_submissions",u=Date.now(),!((l=(l=JSON.parse(localStorage.getItem(i)||"[]")).filter(function(e){return u-e<36e5})).length>=3)){e.n=1;break}return s.style.display="block",s.className="nsn-contact-form__response nsn-contact-form__response--error",s.textContent="Too many submissions. Please try again later.",setTimeout(function(){s.style.display="none"},5e3),e.a(2);case 1:return a.disabled=!0,a.textContent="Sending...",f={timestamp:t.dataset.timestamp,honeypot:t.querySelector('[name="website"]').value,first_name:t.querySelector('[name="first_name"]').value,last_name:t.querySelector('[name="last_name"]').value,email:t.querySelector('[name="email"]').value,phone:t.querySelector('[name="phone"]').value,reason:(null===(o=t.querySelector('[name="reason"]'))||void 0===o?void 0:o.value)||"",message:t.querySelector('[name="message"]').value,rgpd_consent:t.querySelector('[name="rgpd_consent"]').checked?"1":"0"},e.p=2,e.n=3,fetch(t.dataset.restUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)});case 3:return m=e.v,e.n=4,m.json();case 4:p=e.v,s.style.display="block",p.success?(s.className="nsn-contact-form__response nsn-contact-form__response--success",s.textContent=p.message,t.reset(),l.push(u),localStorage.setItem(i,JSON.stringify(l))):(s.className="nsn-contact-form__response nsn-contact-form__response--error",s.textContent=p.message||"An error occurred. Please try again."),setTimeout(function(){s.style.display="none"},5e3),e.n=6;break;case 5:e.p=5,y=e.v,console.error("Form submission error:",y),s.style.display="block",s.className="nsn-contact-form__response nsn-contact-form__response--error",s.textContent="An error occurred. Please try again.";case 6:return e.p=6,a.disabled=!1,a.textContent=c,e.f(6);case 7:return e.a(2)}},n,null,[[2,5,6,7]])}),function(){var e=this,t=arguments;return new Promise(function(o,a){var s=r.apply(e,t);function c(e){n(s,o,a,c,i,"next",e)}function i(e){n(s,o,a,c,i,"throw",e)}c(void 0)})});return function(e){return o.apply(this,arguments)}}())})})})();

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.