PageSourceSearch

https://ambition-kw.com/bitrix/js/landing/metrika/dist/metrika.bundle.min.js?17891296673708

js ambition-kw.com collected 2026-10-06 13:16:14 UTC 3,708 bytes, 2 lines download raw bytes

1this.BX=this.BX||{};(function(e,t){"use strict";var i=function(){function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;babelHelpers.classCallCheck(this,e);this.tool=i||null;this.sendedLabel=[];if(t===true){return}this.formSelector=".bitrix24forms";this.widgetBlockItemSelector=".landing-b24-widget-button-social-item";this.formBlocks=babelHelpers.toConsumableArray(document.querySelectorAll(this.formSelector));this.siteType=this.getSiteType();this.formsLoaded=[];this.widgetOpened=false;this.widgetBlockHover=false;this.waitForWidget();this.detectAnchor()}babelHelpers.createClass(e,[{key:"getSiteType",value:function e(){var t=document.querySelector('meta[property="Bitrix24SiteType"]');if(t){return t.getAttribute("content")}return null}},{key:"isFormsExists",value:function e(){return this.formBlocks.length>0}},{key:"detectAnchor",value:function e(){var i=this;babelHelpers.toConsumableArray(document.querySelectorAll("a")).map((function(e){var n=t.Dom.attr(e,"href");if(n){n=n.toString()}if(n&&n.indexOf(":")){var a=n.split(":")[0];if(["callto","tel","mailto"].includes(a)){t.Event.bind(e,"click",(function(){i.sendLabel("","addressClick",a)}))}}}))}},{key:"waitForWidget",value:function e(){var i=this;babelHelpers.toConsumableArray(document.querySelectorAll(this.widgetBlockItemSelector)).map((function(e){t.Event.bind(e,"mouseover",(function(){i.widgetBlockHover=true}));t.Event.bind(e,"mouseout",(function(){i.widgetBlockHover=false}));t.Event.bind(e,"click",(function(){babelHelpers.toConsumableArray(e.classList).map((function(e){if(e.indexOf("ui-icon-service-")===0){var t=e.substr("ui-icon-service-".length);i.sendLabel("","olOpenedFromWidget",t)}}))}))}));window.addEventListener("onBitrixLiveChat",(function(e){var t=e.detail,n=t.widget,a=t.widgetHost;n.subscribe({type:BX.LiveChatWidget.SubscriptionType.every,callback:function e(t){if(t.type===BX.LiveChatWidget.SubscriptionType.widgetOpen){if(i.widgetBlockHover){i.sendLabel(a,"chatOpenedFromWidget")}else{i.sendLabel(a,"chatOpened")}}}})}))}},{key:"waitForForms",value:function e(){var i=this;window.addEventListener("b24:form:show:first",(function(e){var t=e.detail.object.identification,n=t.id,a=t.sec,o=t.address;var s=e.detail.object.disabled;i.formsLoaded.push(n+"|"+a);if(s){i.sendLabel(o,"formDisabledLoad",n+"|"+a)}else{i.sendLabel(o,"formSuccessLoad",n+"|"+a)}}));setTimeout((function(){i.formBlocks.map((function(e){var n=t.Dom.attr(e,"data-b24form");if(n&&n.indexOf("|")){var a=n.split("|");if(!i.formsLoaded.includes(a[0]+"|"+a[1])){i.sendLabel(null,"formFailLoad",a[1]?a[0]+"|"+a[1]:a[0])}}}))}),5e3)}},{key:"clearSendedLabel",value:function e(){this.sendedLabel=[]}},{key:"sendLabel",value:function e(t,i,n){if(this.sendedLabel.includes(i+n)){return}if(n&&n.substr(0,1)==="#"){n=n.substr(1)}this.sendedLabel.push(i+n);BX.ajax({url:(t?t:"")+"/bitrix/images/landing/analytics/pixel.gif?action="+i+(n?"&value="+n:"")+(this.siteType?"&siteType="+this.siteType:"")+"&time="+(new Date).getTime()})}},{key:"sendData",value:function e(i){var n=this;t.Runtime.loadExtension("ui.analytics").then((function(e){var a;var o={tool:(a=n.tool)!==null&&a!==void 0?a:BX.Landing.Main.getAnalyticsCategoryByType()};["tool","category","event","type","c_section","c_sub_section","c_element","status"].forEach((function(e){if(i[e]){o[e]=i[e]}}));for(var s=1;s<=5;s++){var r="p".concat(s);var l=i[r];if(l&&t.Type.isArray(l)&&l.length===2){o[r]="".concat(t.Text.toCamelCase(l[0]),"_").concat(t.Text.toKebabCase(l[1]))}}var c=e.sendData;c(o)}))["catch"]((function(e){console.error("Metrika send error",e)}))}}]);return e}();e.Metrika=i})(this.BX.Landing=this.BX.Landing||{},BX);
2//# sourceMappingURL=metrika.bundle.map.js

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.