PageSourceSearch

https://sartoreale.ru/local/templates/main_new/components/arturgol…/header/script.min.js?17800418686506

js sartoreale.ru collected 2026-10-02 06:57:50 UTC 6,506 bytes, 1 lines download raw bytes

1function JCTitleSearchAG(t){var e=this;this.arParams={AJAX_PAGE:t.AJAX_PAGE,CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN)},t.WAIT_IMAGE&&(this.arParams.WAIT_IMAGE=t.WAIT_IMAGE),t.PRELODER_ID&&(this.arParams.PRELODER_ID=t.PRELODER_ID),t.MIN_QUERY_LEN<=0&&(t.MIN_QUERY_LEN=1),this.cache=[],this.cache_key=null,this.startText="",this.running=!1,this.currentRow=-1,this.RESULT=null,this.CONTAINER=null,this.INPUT=null,this.WAIT=null,this.ShowResult=function(t){BX.type.isString(t)&&(e.RESULT.innerHTML=t),e.RESULT.style.display=""!==e.RESULT.innerHTML?"block":"none";var s,i,n,a=e.adjustResultNode(),l=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},!0);if(l&&(i=BX.findChild(l,{tag:"th"},!0)),i){var r=BX.pos(l);r.width=r.right-r.left;var o=BX.pos(i);o.width=o.right-o.left,i.style.width=o.width+"px",e.RESULT.style.width=a.width+o.width+"px",e.RESULT.style.left=a.left-o.width-1+"px",r.width-o.width>a.width&&(e.RESULT.style.width=a.width+o.width-1+"px"),r=BX.pos(l),(s=BX.pos(e.RESULT)).right>r.right&&(e.RESULT.style.width=r.right-r.left+"px")}l&&(n=BX.findChild(e.RESULT,{class:"title-search-fader"},!0)),n&&i&&(s=BX.pos(e.RESULT),n.style.left=s.right-s.left-18+"px",n.style.width="18px",n.style.top="0px",n.style.height=s.bottom-s.top+"px",n.style.display="block")},this.onKeyPress=function(t){var s,i=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},!0);if(!i)return!1;var n=i.rows.length;switch(t){case 27:return e.RESULT.style.display="none",e.currentRow=-1,e.UnSelectAll(),!0;case 40:"none"==e.RESULT.style.display&&(e.RESULT.style.display="block");var a=-1;for(s=0;s<n;s++)if(!BX.findChild(i.rows[s],{class:"title-search-separator"},!0)){if(-1==a&&(a=s),e.currentRow<s){e.currentRow=s;break}"title-search-selected"==i.rows[s].className&&(i.rows[s].className="")}return s==n&&e.currentRow!=s&&(e.currentRow=a),i.rows[e.currentRow].className="title-search-selected",!0;case 38:"none"==e.RESULT.style.display&&(e.RESULT.style.display="block");var l=-1;for(s=n-1;s>=0;s--)if(!BX.findChild(i.rows[s],{class:"title-search-separator"},!0)){if(-1==l&&(l=s),e.currentRow>s){e.currentRow=s;break}"title-search-selected"==i.rows[s].className&&(i.rows[s].className="")}return s<0&&e.currentRow!=s&&(e.currentRow=l),i.rows[e.currentRow].className="title-search-selected",!0;case 13:if("block"==e.RESULT.style.display){for(s=0;s<n;s++)if(e.currentRow==s&&!BX.findChild(i.rows[s],{class:"title-search-separator"},!0)){var r=BX.findChild(i.rows[s],{tag:"a"},!0);if(r)return window.location=r.href,!0}}}return!1},this.onTimeout=function(){e.onChange(function(){setTimeout(e.onTimeout,500)})},this.onChange=function(t){if(!e.running){if(e.running=!0,e.INPUT.value!=e.oldValue&&e.INPUT.value!=e.startText){if(e.oldValue=e.INPUT.value,e.INPUT.value.length>=e.arParams.MIN_QUERY_LEN){if(e.cache_key=e.arParams.INPUT_ID+"|"+e.INPUT.value,null==e.cache[e.cache_key]){if(e.WAIT){var s=BX.pos(e.INPUT),i=s.bottom-s.top-2;e.WAIT.style.top=s.top+1+"px",e.WAIT.style.height=i+"px",e.WAIT.style.width=i+"px",e.WAIT.style.left=s.right-i+2+"px",e.WAIT.style.display="block"}
1e.arParams.PRELODER_ID&&BX.show(BX(e.arParams.PRELODER_ID)),BX.ajax.post(e.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:e.arParams.INPUT_ID,q:e.INPUT.value,l:e.arParams.MIN_QUERY_LEN},function(s){e.cache[e.cache_key]=s,e.ShowResult(s),e.currentRow=-1,e.EnableMouseEvents(),e.WAIT&&(e.WAIT.style.display="none"),e.arParams.PRELODER_ID&&BX.hide(BX(e.arParams.PRELODER_ID)),t&&t(),e.running=!1,e.INPUT.value!=e.oldValue&&e.onChange()});return}e.ShowResult(e.cache[e.cache_key]),e.currentRow=-1,e.EnableMouseEvents()}else e.RESULT.style.display="none",e.currentRow=-1,e.UnSelectAll()}t&&t(),e.running=!1}},this.onScroll=function(){BX.type.isElementNode(e.RESULT)&&"none"!==e.RESULT.style.display&&""!==e.RESULT.innerHTML&&e.adjustResultNode()},this.UnSelectAll=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var s=t.rows.length,i=0;i<s;i++)t.rows[i].className=""},this.EnableMouseEvents=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},!0);if(t)for(var s=t.rows.length,i=0;i<s;i++)BX.findChild(t.rows[i],{class:"title-search-separator"},!0)||(t.rows[i].id="row_"+i,t.rows[i].onmouseover=function(t){e.currentRow!=this.id.substr(4)&&(e.UnSelectAll(),this.className="title-search-selected",e.currentRow=this.id.substr(4))},t.rows[i].onmouseout=function(t){this.className="",e.currentRow=-1})},this.onFocusLost=function(t){setTimeout(function(){e.RESULT.style.display="none"},250)},this.onFocusGain=function(){e.RESULT.innerHTML.length&&e.ShowResult()},this.onKeyDown=function(t){if(t||(t=window.event),"block"==e.RESULT.style.display&&e.onKeyPress(t.keyCode))return BX.PreventDefault(t)},this.adjustResultNode=function(){if(!(BX.type.isElementNode(e.RESULT)&&BX.type.isElementNode(e.CONTAINER)))return{top:0,right:0,bottom:0,left:0,width:0,height:0};var t=BX.pos(e.CONTAINER);return e.RESULT.style.position="absolute",e.RESULT.style.top=t.bottom+2+"px",e.RESULT.style.left=t.left+"px",e.RESULT.style.width=t.width+"px",t},this._onContainerLayoutChange=function(){BX.type.isElementNode(e.RESULT)&&"none"!==e.RESULT.style.display&&""!==e.RESULT.innerHTML&&e.adjustResultNode()},this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID),BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this._onContainerLayoutChange),this.RESULT=document.body.appendChild(document.createElement("DIV")),this.RESULT.className="title-search-result",this.INPUT=document.getElementById(this.arParams.INPUT_ID),this.startText=this.oldValue=this.INPUT.value,BX.bind(this.INPUT,"focus",function(){e.onFocusGain()}),BX.bind(this.INPUT,"blur",function(t){t.relatedTarget&&BX.hasClass(BX(t.relatedTarget),"js_search_href")||e.onFocusLost()}),this.INPUT.onkeydown=this.onKeyDown,this.arParams.WAIT_IMAGE&&(this.WAIT=document.body.appendChild(document.createElement("DIV")),this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')",BX.browser.IsIE()||(this.WAIT.style.backgroundRepeat="none"),this.WAIT.style.display="none",this.WAIT.style.position="absolute",this.WAIT.style.zIndex="1100"),BX.bind(this.INPUT,"bxchange",function(){e.onChange()}),BX.bind(this.INPUT,"paste",function(t){setTimeout(function(){e.onChange()},200)});var t=BX.findParent(this.CONTAINER,BX.is_fixed);BX.type.isElementNode(t)&&BX.bind(window,"scroll",BX.throttle(this.onScroll,100,this))},BX.ready(function(){e.Init(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.