uawdijnntqw1x1x1
IP : 18.227.209.41
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
axolotl.ru
/
www
/
bitrix
/
js
/
crm
/
form_loader.min.js
/
/
!function(){var t={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(t.arrayBuffer)var e=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&e.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function o(t){return"string"!=typeof t&&(t=String(t)),t}function i(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function d(t){var e=new FileReader,r=c(e);return e.readAsArrayBuffer(t),r}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(e){var n;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:t.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:t.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():t.arrayBuffer&&t.blob&&((n=e)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||r(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var t=s(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t,e,r,n=s(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=c(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}a.prototype.append=function(t,e){t=n(t),e=o(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},a.prototype.delete=function(t){delete this.map[n(t)]},a.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},a.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},a.prototype.set=function(t,e){this.map[n(t)]=o(e)},a.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},a.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),i(t)},a.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),i(t)},a.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),i(t)},t.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function h(t,e){var r,n,o=(e=e||{}).body;if(t instanceof h){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new a(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),l.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function p(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new a(e.headers),this.url=e.url||"",this._initBody(t)}h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},u.call(h.prototype),u.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];y.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})};var b=self.DOMException;try{new b}catch(t){(b=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),b.prototype.constructor=b}function w(e,r){return new Promise(function(n,o){var i=new h(e,r);if(i.signal&&i.signal.aborted)return o(new b("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new a,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;n(new y(o,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new b("Aborted","AbortError"))},s.open(i.method,i.url,!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),i.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),i.signal&&(i.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",c)}),s.send(void 0===i._bodyInit?null:i._bodyInit)})}w.polyfill=!0,self.fetch||(self.fetch=w,self.Headers=a,self.Request=h,self.Response=y)}();!function(t){"use strict";if(void 0===t.Promise||-1===t.Promise.toString().indexOf("[native code]")){var e="[[PromiseStatus]]",r="[[PromiseValue]]",n=function(t,n){"internal pending"===t[e]&&(t=t[r]),"pending"===t[e]?t.deferreds.push(n):(t.handled=!0,setTimeout(function(){var a="resolved"===t[e]?n.onFulfilled:n.onRejected;if(a)try{o(n.promise,a(t[r]))}catch(t){i(n.promise,t)}else"resolved"===t[e]?o(n.promise,t[r]):i(n.promise,t[r])},0))},o=function(t,n){if(n===t)throw new TypeError("A promise cannot be resolved with it promise.");try{if(n&&("object"==typeof n||"function"==typeof n)){if(n instanceof d)return t[e]="internal pending",t[r]=n,void a(t);if("function"==typeof n.then)return void s(n.then.bind(n),t)}t[e]="resolved",t[r]=n,a(t)}catch(e){i(t,e)}},i=function(t,n){t[e]="rejected",t[r]=n,a(t)},a=function(t){"rejected"===t[e]&&0===t.deferreds.length&&setTimeout(function(){t.handled||console.error("Unhandled Promise Rejection: "+t[r])},0),t.deferreds.forEach(function(e){n(t,e)}),t.deferreds=null},s=function(t,e){var r=!1;try{t(function(t){r||(r=!0,o(e,t))},function(t){r||(r=!0,i(e,t))})}catch(t){r||(r=!0,i(e,t))}},c=function(t,e,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=r},d=function(t){this[e]="pending",this[r]=null,this.handled=!1,this.deferreds=[],s(t,this)};d.prototype.catch=function(t){return this.then(null,t)},d.prototype.then=function(t,e){var r=new d(function(){});return n(this,new c(t,e,r)),r},d.all=function(t){var e=[].slice.call(t);return new d(function(t,r){if(0===e.length)t(e);else for(var n=e.length,o=function(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof a.then)return void a.then.call(a,function(t){o(i,t)},r);e[i]=a,0==--n&&t(e)}catch(t){r(t)}},i=0;i<e.length;i++)o(i,e[i])})},d.resolve=function(t){return t&&"object"==typeof t&&t.constructor===d?t:new d(function(e){e(t)})},d.reject=function(t){return new d(function(e,r){r(t)})},d.race=function(t){return new d(function(e,r){for(var n=0,o=t.length;n<o;n++)t[n].then(e,r)})},t.Promise=d}}(window);(function(){function t(t){if(window.console&&console.warn){console.warn(t||"[DEPRECATED] This javascript-loader of CRM-forms is deprecated. Please, change to new javascript-loader.")}}t();function e(t){return t.match(/((http|https):\/\/[^\/]+?)\//)[1]}var r=function(){var t=document.querySelector('script[src*="/bitrix/js/crm/form_loader.js"]');if(t&&t.src){return e(t.src)}return null}();var n={};try{n=JSON.parse(window.sessionStorage.getItem("b24:form:compatible:loaders"))||{}}catch(t){}var o=[];function i(t,e){o.push(t);t.compatibility={id:Math.random().toString().split(".")[1]+Math.random().toString().split(".")[1]};var r=document.createElement("div");r.innerHTML=e.form[t.type];r=r.children[0];r.dataset.b24Id=t.compatibility.id;t.compatibility.anchorScript=r;var n=document.createElement("script");n.type="text/javascript";n.appendChild(document.createTextNode(r.textContent));if(t.click&&t.type==="click"){t.click.forEach(function(t){t.parentNode.insertBefore(r.cloneNode(true),t)})}else if(t.node){t.node.appendChild(r)}else if(t.defaultNode){if(t.defaultNode.nextElementSibling){t.defaultNode.parentNode.insertBefore(r,t.defaultNode.nextElementSibling)}else if(t.defaultNode){t.defaultNode.parentNode.appendChild(r)}}else{return}if(o.length===1){window.addEventListener("b24:form:init:before",function(t){var e=t.detail.data;var r=t.detail.object;if(!e||!e.identification){return}var n=o.filter(function(t){if(parseInt(e.identification.id)!==parseInt(t.id)){return false}if(e.identification.sec!==t.sec){return false}if(e.id&&t.compatibility&&t.compatibility.id){return parseInt(e.id)===parseInt(t.compatibility.id)}return true})[0];if(!n){return}if(n.compatibility&&r){n.compatibility.instance=r}window.b24form.Compatibility.applyOldenLoaderData(e,n)})}document.head.appendChild(n)}var a={};function s(t){var o=e(t.ref)||r;if(!o){throw new Error("Could not load form without parameter `ref`")}var s=o+"|"+t.id;if(n[s]){i(t,n[s]);return}if(!a[s]){a[s]=new Promise(function(e,r){var i=o+"/bitrix/services/main/ajax.php?action=crm.site.form.get"+"&id="+t.id+"&sec="+t.sec+"&loaderOnly=y";window.fetch(i,{method:"GET",mode:"cors",cache:"no-cache",headers:{Origin:window.location.origin}}).then(function(t){return t.json()}).then(function(r){n[s]=r.result.loader;try{window.sessionStorage.setItem("b24:form:compatible:loaders",JSON.stringify(n))}catch(t){}e(t,r.result.loader)}).catch(r)})}a[s].then(function(){i(t,n[s])})}function c(t){if(!t.compatibility||!t.compatibility.instance){return}t.compatibility.instance.destroy();t.compatibility.anchorScript.remove()}window.Bitrix24FormLoader={init:function(){this.yaId=null;this.forms={};this.eventHandlers=[];this.frameHeight="200";this.defaultNodeId="bx24_form_";if(!window.Bitrix24FormObject||!window[window.Bitrix24FormObject])return;var t=window[window.Bitrix24FormObject];t.forms=t.forms||[];var e=t.forms;e.ntpush=e.push;e.push=function(t){e.ntpush(t);this.preLoad(t)}.bind(this);e.forEach(this.preLoad,this)},preLoad:function(t){var e=t.defaultNode=document.getElementById(this.defaultNodeId+t.type);if(!t.node&&!t.defaultNode){throw new Error("Could not load form: node not found.")}switch(t.type){case"click":case"button":case"link":var r=t.click||Array.prototype.slice.call(document.getElementsByClassName("b24-web-form-popup-btn-"+t.id));if(r&&Object.prototype.toString.call(r)!=="[object Array]"){r=[r]}if(!r&&e){r=[e.nextElementSibling]}t.click=r;t.type="click";break;case"delay":t.type="auto";break;case"inline":default:t.type="inline";break}this.load(t)},createPopup:function(e){t()},resizePopup:function(){t()},showPopup:function(e){t()},hidePopup:function(e){t()},scrollToPopupMiddle:function(e){t()},util:{addClass:function(t,e){if(t&&typeof t.className=="string"&&t.className.indexOf(e)===-1){t.className+=" "+e;t.className=t.className.replace(" "," ")}},removeClass:function(t,e){if(!t||!t.className){return}t.className=t.className.replace(e,"").replace(" "," ")},hasClass:function(t,e){var r=this.nodeListToArray(t.classList);var n=r.filter(function(t){return t==e});return n.length>0},isIOS:function(){return/(iPad;)|(iPhone;)/i.test(navigator.userAgent)},isMobile:function(){return/(ipad|iphone|android|mobile|touch)/i.test(navigator.userAgent)}},createFrame:function(e){t()},getUniqueLoadId:function(t){var e=t.type;switch(e){case"click":case"button":case"link":e="button";break}return e+"_"+t.id},isFormExisted:function(t){return!!this.forms[this.getUniqueLoadId(t)]},load:function(t){t.loaded=false;t.handlers=t.handlers||{};t.options=t.options||{};s(t)},unload:function(t){t=t||{};c(t);var e=this.getUniqueLoadId(t);this.forms[e]=null},doFrameAction:function(e,r){t()},checkHash:function(e){t()},sendDataToFrame:function(e,r){t()},onFrameLoad:function(e){t()},isGuestLoaded:function(){return window.b24Tracker&&window.b24Tracker.guest},guestLoadedChecker:function(){t()},onGuestLoaded:function(){t()},addEventListener:function(t,e,r){t=t||window;if(window.addEventListener){t.addEventListener(e,r,false)}else{t.attachEvent("on"+e,r)}},addEventHandler:function(e,r,n){t()},execEventHandler:function(e,r,n){t()},setFrameHeight:function(e,r){t()}};window.Bitrix24FormLoader.init()})(); //# sourceMappingURL=form_loader.map.js
/var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/crm/form_loader.min.js