PageSourceSearch

https://altaei.com/wp-content/uploads/siteground-optimizer-assets/mc4wp-forms-api.min.js?ver=4.14.1

js altaei.com collected 2026-10-06 19:43:30 UTC 6,497 bytes, 2 lines download raw bytes

1(()=>{var i={9885(e){function t(){this.listeners={}}t.prototype.emit=function(e,t){this.listeners[e]=this.listeners[e]??[],this.listeners[e].forEach(e=>e.apply(null,t))},t.prototype.on=function(e,t){this.listeners[e]=this.listeners[e]??[],this.listeners[e].push(t)},e.exports=t},5626(){function t(e){const s=!!e.getAttribute("data-show-if"),o=s?e.getAttribute("data-show-if").split(":"):e.getAttribute("data-hide-if").split(":"),r=o[0],a=(o.length>1?o[1]:"*").split("|"),i=function(e,t){const s=[],n=e.querySelectorAll('input[name="'+t+'"],select[name="'+t+'"],textarea[name="'+t+'"]');for(let e=0;e<n.length;e++)("radio"!==n[e].type&&"checkbox"!==n[e].type||n[e].checked)&&s.push(n[e].value);return s}(function(e){let t=e;for(;t.parentElement;)if(t=t.parentElement,"FORM"===t.tagName)return t;return null}(e),r);let n=!1;for(let e=0;e<i.length&&!n;e++)n=a.indexOf(i[e])>-1||a.indexOf("*")>-1&&i[e].length>0;e.style.display=s?n?"":"none":n?"none":"";const t=e.querySelectorAll("input,select,textarea");for(let e=0;e<t.length;e++)(n||s)&&t[e].getAttribute("data-was-required")&&(t[e].required=!0,t[e].removeAttribute("data-was-required")),n&&s||!t[e].required||(t[e].setAttribute("data-was-required","true"),t[e].required=!1)}function e(){const e=document.querySelectorAll(".mc4wp-form [data-show-if],.mc4wp-form [data-hide-if]");for(let n=0;n<e.length;n++)t(e[n])}function n(e){if(!e.target||!e.target.form||e.target.form.className.indexOf("mc4wp-form")<0)return;const n=e.target.form.querySelectorAll("[data-show-if],[data-hide-if]");for(let e=0;e<n.length;e++)t(n[e])}document.addEventListener("keyup",n,!0),document.addEventListener("change",n,!0),document.addEventListener("mc4wp-refresh",e,!0),window.addEventListener("load",e),e()},6942(e,t,n){const o=n(2076),i=n(6564),s=function(e,t){this.id=e,this.element=t||document.createElement("form"),this.name=this.element.getAttribute("data-name")||"Form #"+this.id,this.errors=[],this.started=!1};s.prototype.setData=function(e){try{i(this.element,e)}catch(e){console.error(e)}},s.prototype.getData=function(){return o(this.element,{hash:!0,empty:!0})},s.prototype.getSerializedData=function(){return o(this.element,{hash:!1,empty:!0})},s.prototype.setResponse=function(e){this.element.querySelector(".mc4wp-response").innerHTML=e},s.prototype.reset=function(){this.setResponse(""),this.element.querySelector(".mc4wp-form-fields").style.display="",this.element.reset()},e.exports=s},9685(e,t,n){const a=n(6942),s=[],o=new(n(9885));function i(e,t){t=t||parseInt(e.getAttribute("data-id"))||0;const n=new a(t,e);return s.push(n),n}e.exports={get:function(e){e=parseInt(e);for(let t=0;t<s.length;t++)if(s[t].id===e)return s[t];return i(document.querySelector(".mc4wp-form-"+e),e)},getByElement:function(e){const t=e.form||e;for(let e=0;e<s.length;e++)if(s[e].element===t)return s[e];return i(t)},on:function(e,t){o.on(e,t)},trigger:function(e,t){"submit"===e||e.indexOf(".submit")>0?(o.emit(t[0].id+"."+e,t),o.emit(e,t)):window.setTimeout(function(){o.emit(t[0].id+"."+e,t),o.emit(e,t)},10)}}},2076(e){var s=/^(?:submit|button|image|reset|file)$/i,o=/^(?:input|select|textarea|keygen)/i,n=/(\[[^[\]]*\])/g;function t(e,n,s){if(0===n.length)return s;var i,a,o=n.shift(),r=o.match(/^\[(.+?)\]$/);return"[]"===o?(e=e||[],Array.isArray(e)?e.push(t(null,n,s)):(e._values=e._values||[],e._values.push(t(null,n,s))),e):(r?(i=r[1],a=+i,isNaN(a)?(e=e||{})[i]=t(e[i],n,s):(e=e||[])[a]=t(e[a],n,s)):e[o]=t(e[o],n,s),e)}function i(e,s,o){if(s.match(n))t(e,function(e){var s=[],o=new RegExp(n),t=/^([^[\]]*)/.exec(e);for(t[1]&&s.push(t[1]);null!==(t=o.exec(e));)s.push(t[1]);return s}(s),o);else{var i=e[s];i?(Array.isArray(i)||(e[s]=[i]),e[s].push(o)):e[s]=o}return e}function a(e,t,n){return n=n.replace(/(\r)?\n/g,`\r
2`),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}e.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:0[0]===t.hash&&(t.hash=!0);for(var n,r,l,c=t.hash?{}:"",u=t.serializer||(t.hash?i:a),p=e&&e.elements?e.elements:[],d=Object.create(null),m=0;m<p.length;++m)if(n=p[m],(t.disabled||!n.disabled)&&n.name&&o.test(n.nodeName)&&!s.test(n.type)){if(r=n.name,l=n.value,"checkbox"!==n.type&&"radio"!==n.type||n.checked||(l=0[0]),t.empty){if
2("checkbox"!==n.type||n.checked||(l=""),"radio"===n.type&&(d[n.name]||n.checked?n.checked&&(d[n.name]=!0):d[n.name]=!1),l==null&&"radio"==n.type)continue}else if(!l)continue;if("select-multiple"!==n.type)c=u(c,r,l);else{l=[];for(var g=n.options,v=!1,f=0;f<g.length;++f){var h=g[f],b=t.empty&&!h.value,j=h.value||b;h.selected&&j&&(v=!0,c=t.hash&&"[]"!==r.slice(r.length-2)?u(c,r+"[]",h.value):u(c,r,h.value))}!v&&t.empty&&(c=u(c,r,""))}}if(t.empty)for(r in d)d[r]||(c=u(c,r,""));return c}},6564(e){e.exports&&(e.exports=function e(t,n,s){for(const a in n){if(!n.hasOwnProperty(a))continue;const r=a;let o=n[a];if(0[0]===o&&(o=""),null===o&&(o=""),0[0]!==s&&(r=s+"["+a+"]"),o.constructor===Array)r+="[]";else if("object"==typeof o){e(t,o,r);continue}const i=t.elements.namedItem(r);if(!i)continue;const c=i.type||i[0].type;switch(c){default:i.value=o;break;case"radio":case"checkbox":{const e=o.constructor===Array?o:[o];for(let t=0;t<i.length;t++)i[t].checked=e.indexOf(i[t].value)>-1}break;case"select-multiple":{const e=o.constructor===Array?o:[o];for(let t=0;t<i.options.length;t++)i.options[t].selected=e.indexOf(i.options[t].value)>-1}break;case"select":case"select-one":i.value=o.toString()||o;break;case"date":i.value=new Date(o).toISOString().split("T")[0]}const l=new Event("change",{bubbles:!0});switch(c){default:i.dispatchEvent(l);break;case"radio":case"checkbox":for(let e=0;e<i.length;e++)i[e].checked&&i[e].dispatchEvent(l)}}})}},o={};function n(e){var t,s=o[e];return 0[0]!==s?s.exports:(t=o[e]={exports:{}},i[e](t,t.exports,n),t.exports)}const t=window.mc4wp||{},e=n(9685);function s(e,t){document.addEventListener(e,e=>{if(!e.target)return;const n=e.target;("string"==typeof n.className&&n.className.indexOf("mc4wp-form")>-1||"function"==typeof n.matches&&n.matches(".mc4wp-form *"))&&t.call(e,e)},!0)}n(5626),s("submit",function(t){if(t.defaultPrevented)return;const n=e.getByElement(t.target);e.trigger("submit",[n,t])}),s("focus",function(t){const n=e.getByElement(t.target);n.started||(e.trigger("started",[n,t]),n.started=!0)}),s("change",function(t){const n=e.getByElement(t.target);e.trigger("change",[n,t])}),t.listeners&&([].forEach.call(t.listeners,function(t){e.on(t.event,t.callback)}),delete t.listeners),t.forms=e,window.mc4wp=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.