PageSourceSearch

https://pneumaflex.ru/wp-content/themes/pneumaflex/vendor/ajax-simply/ajaxs.min.js

js pneumaflex.ru collected 2026-10-06 06:38:28 UTC 8,975 bytes, 1 lines download raw bytes

1function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ajaxsURL(e){return window.jxs.url+e}function ajaxsGET(e,a,t,o,n){return ajaxs(e,a,t,o,n,{method:"GET"})}function ajaxs(action,data,doneFunc,alwaysFunc,failFunc,_data){var _method=_data&&_data.method?_data.method:"POST";data?"function"==typeof data&&(failFunc=alwaysFunc,alwaysFunc=doneFunc,doneFunc=data,data={}):data={};var moreAJAXdata="object"===_typeof(data.ajax)?data.ajax:{};delete data.ajax;var uploadProgress="function"==typeof data.uploadProgress&&data.uploadProgress;delete data.uploadProgress;var largeFileError="function"==typeof data.largeFileError&&data.largeFileError;delete data.largeFileError;var objdata={};objdata.origin_data=data,objdata.action=action;var parsed=ajaxsData(data);data=parsed[0],objdata=jQuery.extend(objdata,parsed[1]);var filesSizeData=parsed[2],is_FormData=data instanceof FormData;(is_FormData&&data.get("action")||data.action)&&(is_FormData?data.delete("action"):delete data.action,console.warn("AJAXS NOTICE: `data.action` parameter was deleted. It is reserved by Ajax Simply. Change the name of the parameter."));var jx={};is_FormData&&(jx.processData=!1,jx.contentType=!1,"GET"===_method&&(_method="POST",console.log("AJAX contain FILE data. So request method can`t be GET, it turned to POST... Fix your code...")),uploadProgress&&(jx.xhr=function(){var e=jQuery.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var a=Math.ceil(e.loaded/e.total*100);uploadProgress(a,e)}else console.log("NOTICE: total uploaded file size is not known. uploadProgress data is not available.")}),e})),jx.url=ajaxsURL(action),jx.dataType="json",jx.method=_method,jx.data=data;var consoleHTML={elem:null,html:"",method:function(n,r){return function(){if(console[r].apply(null,arguments),"group"===n)consoleHTML.html+='<div class="ajaxs-console-group">',arguments[0]&&(consoleHTML.html+='<span class="group-name">'.concat(arguments[0],"</span>"));else if("groupEnd"===n)consoleHTML.html+="</div>";else{var e,a,t="",o="";for(a=0;a<arguments.length;a++)o="object"===_typeof(e=arguments[a])?JSON.stringify(e):e,t+='<div class="ajaxs-console-line type-'.concat(n," valtype-").concat(_typeof(e),'">').concat(o,"</div>");consoleHTML.html+=t}}},process:function(e){var a=0<arguments.length&&void 0!==e?e:"on";if(this.elem=document.querySelector("#ajaxs-console, .ajaxs-console"),this.elem){this.addCSS(),this.wrapElem(),"on"===a&&(consoleHTML.html="");for(var t=["log","error","warn","info","group","groupEnd"],o=0;o<t.length;o++){var n=t[o],r="ajaxsSave_".concat(n);"on"===a?(console[r]=console[n],console[n]=consoleHTML.method(n,r)):console[r]&&(console[n]=console[r])}"off"===a&&(consoleHTML.elem.innerHTML+=consoleHTML.html)}},addCSS:function(){if(!this.elem.dataset.cssAdded){this.elem.dataset.cssAdded=1;var e=document.createElement("style");e.type="text/css",(document.head||document.getElementsByTagName("head")[0]).appendChild(e),e.appendChild(document.createTextNode("\n\t\t\t.ajaxs-console-line{ border-bottom:1px solid rgba(0,0,0,.1); }\n\t\t\t.ajaxs-console-group{ margin-left:1em; }\n\t\t\t.ajaxs-console-group .group-name{ display:block; margin-left:-1em; font-weight:bold; }\n\t\t\t.ajaxs-console-line.type-error{ color:red }\n\t\t\t"))}},wrapElem:function(){if(!this.elem.dataset.wrapped){this.elem.dataset.wrapped=1;var e=document.createElement("div");e.classList.add("ajaxs-console-wrap");var a=document.createElement("a");a.classList.add("ajaxs-console-clear"),a.href="#",a.onclick=function(){return this.nextElementSibling.innerHTML="",!1},a.innerHTML="Clear Ajaxs Console",this.elem.parentNode.insertBefore(e,this.elem),e.appendChild(a),e.appendChild(this.elem)}}},extraData=null,fn__responseExtra=function fn__responseExtra(extraData){jQuery.each(extraData,function(key,val){if("reload"===key)setTimeout(function(){window.location.reload()},parseInt(val));else if("redirect"===key)setTimeout(function(){document.location.href=val[0]},parseInt(val[1]));else if("console"===key){var groups={};val.forEach(function(e){var a=e[2]||"no";groups[a]||(groups[a]=[]),groups[a].push({data:e[0],type:e[1]})}
1),Object.keys(groups).forEach(function(e){"no"!==e&&console.group(e),groups[e].forEach(function(e){console[e.type](e.data)}),"no"!==e&&console.groupEnd()})}else"alert"===key?val.forEach(function(e){alert(e)}):"html"===key?val.forEach(function(e){var a=jQuery(e[0]),t=e[1],o=e[2];a.length&&a[o](t)}):"trigger"===key?val.forEach(function(e){var a=e[1]&&"document"!==e[1]?e[1]:document;jQuery(a).trigger(e[0],e[2])}):"call"===key?val.forEach(function(e){for(var a=e[0],t=a.replace(/^window\./,"").split("."),o=window,n=o[t[0]],r=1;r<t.length;r++)t[r]in n&&(n=(o=n)[t[r]]);"function"==typeof n?n.apply(o,e[1]):console.log("Function window."+a+"() not found. Declare it please.")}):"jseval"===key&&val.forEach(function(_val){eval("(function(){"+_val+"})()")})})};jx.dataFilter=function(e,a){if(-1!==e.indexOf('"extra":')){var t=JSON.parse(e);void 0!==t.extra&&(extraData=t.extra,e=JSON.stringify(t.response))}return e},jx.success=function(e,a,t){consoleHTML.process("on"),"function"==typeof doneFunc&&doneFunc(e),setTimeout(function(){extraData&&fn__responseExtra(extraData),jQuery(document).trigger("ajaxs_done",[objdata,jx])},0)},jx.error=function(e,a,t){consoleHTML.process("on"),"function"==typeof failFunc?failFunc():console.log("Response error: "+t),void 0!==e.responseJSON&&fn__responseExtra(e.responseJSON.extra),setTimeout(function(){jQuery(document).trigger("ajaxs_fail",[objdata,jx,e,a,t])},0)},jx.complete=function(e,a){"function"==typeof alwaysFunc&&alwaysFunc(),setTimeout(function(){jQuery(document).trigger("ajaxs_always",[objdata,jx,e,a]),consoleHTML.process("off")},0)},jQuery(document).trigger("ajaxs_start",[objdata,jx]),jQuery.each(moreAJAXdata,function(e,a){jx[e]=a});var xhr=jQuery.ajax(jx);if(is_FormData){var abort_xhr=!1,fileSize=function(e){for(var a=-1;a++,1024<(e/=1024););return Math.max(e,.1).toFixed(1)+" "+["kB","MB","GB","TB","PB"][a]};if(largeFileError=largeFileError||function(e,a,t){t?alert("ERROR: The file size is too Large: "+e+" (max allowed: "+a+").\n\nFile Name: "+t):alert("ERROR: The total files size is too Large: "+e+" (max allowed: "+a+").")},window.jxs&&window.jxs.post_max_size&&filesSizeData.total>window.jxs.post_max_size&&1<filesSizeData.data.length&&(largeFileError(fileSize(filesSizeData.total),fileSize(window.jxs.post_max_size)),abort_xhr=!0),!abort_xhr&&window.jxs&&window.jxs.upload_max_filesize)for(var i=0;i<filesSizeData.data.length;i++){var fdata=filesSizeData.data[i];fdata.size>window.jxs.upload_max_filesize&&(largeFileError(fileSize(fdata.size),fileSize(window.jxs.upload_max_filesize),fdata.name),abort_xhr=!0)}abort_xhr&&xhr.abort()}return xhr}function ajaxsData(e){if(e instanceof FormData)return e;function t(e){return e instanceof jQuery||e instanceof HTMLElement}var o={};t(e)?o=_ajaxsCollectData(e):jQuery.each(e,function(e,a){t(a)?jQuery.extend(o,_ajaxsCollectData(a)):o[e]=a});var n={total:0,data:[]},r=!1;jQuery.each(o,function(e,a){if(/__isFileType$/.test(e)||a instanceof File||a instanceof FileList)if(r=!0,a instanceof File)n.total+=a.size,n.data.push({name:a.name,size:a.size});else for(var t=0;t<a.length;t++)n.total+=a[t].size,n.data.push({name:a[t].name,size:a[t].size})});var a=jQuery.extend({},o);if(r)if("undefined"===window.FormData)console.log("ERROR: browser not support javascript FormData() object. Files can not be sent...");else{var i=new FormData;jQuery.each(o,function(e,a){if(e=e.replace(/__isFileType$/,""),a instanceof File)i.append(e,a);else if(a instanceof FileList)for(var t=0;t<a.length;t++)i.append("".concat(e,"[]"),a[t]);else if("object"===_typeof(a))for(var o in a)i.append("".concat(e,"[]"),a[o]);else i.append(e,a)}),o=i}return[o,a,n]}function _ajaxsCollectData(t){var e,l,a,c={};return t instanceof jQuery||(t=jQuery(t)),(a=(e=function(e){var a="input[name], select[name], textarea[name], button[name]:focus".replace("[name]","["+(l=e)+"]");return t.find(a).add(t.filter(a))})("name")).length||(a=e("id")),a.length||(a=e("data-name")),a.each(function(e,a){function t(e){return"object"===_typeof(e)&&null!==e}var o=jQuery(a),n=o.attr(l),r=o.val(),i=!1;if("[]"===n.substr(-2)&&(n=n.substr(0,n.length-2),i=!0),o.is("select"))if(i)if("object"===_typeof(r)){if(null!==r)if(void 0===c[n])c[n]=r;else if(t(c[n]))for(var s in r)c[n].push(r[s]);else c[n]=r}else"object"!==_typeof(c[n])&&(c[n]=[]),c[n].push(r);else c[n]=r;else if(o.is('[type="file"]')){if(a.files.length)if(n+="__isFileType",i){void 0===c[n]&&(c[n]=[]);for(s=0;s<a.files.length;s++)c[n].push(a.files[s])}else c[n]=a.files[0]}else o.is('[type="radio"], [type="checkbox"], [type="submit"], button')&&!o.is(":checked")&&!o.is(":focus")||(i?t(c[n])?c[n].push(r):c[n]=[r]:c[n]=r)}),c}

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.