1 2; /* Start:"a:4:{s:4:"full";s:86:"/bitrix/templates/sbcentr/components/bitrix/menu/bootstrap_v5/script.js?16471699416176";s:6:"source";s:71:"/bitrix/templates/sbcentr/components/bitrix/menu/bootstrap_v5/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3(function(window) { 4 5 if (!window.BX || BX.CatalogMenu) 6 return; 7 8 BX.CatalogMenu = { 9 items : {}, 10 idCnt : 1, 11 currentItem : null, 12 overItem : null, 13 outItem : null, 14 timeoutOver : null, 15 timeoutOut : null, 16 17 getItem : function(item) 18 { 19 if (!BX.type.isDomNode(item)) 20 return null; 21 22 var id = !item.id || !BX.type.isNotEmptyString(item.id) ? (item.id = "menu-item-" + this.idCnt++) : item.id; 23 24 if (!this.items[id]) 25 this.items[id] = new CatalogMenuItem(item); 26 27 return this.items[id]; 28 }, 29 30 itemOver : function(item) 31 { 32 var menuItem = this.getItem(item); 33 if (!menuItem) 34 return; 35 36 if (this.outItem == menuItem) 37 { 38 clearTimeout(menuItem.timeoutOut); 39 } 40 41 this.overItem = menuItem; 42 43 if (menuItem.timeoutOver) 44 { 45 clearTimeout(menuItem.timeoutOver); 46 } 47 48 menuItem.timeoutOver = setTimeout(function() { 49 if (BX.CatalogMenu.overItem == menuItem) 50 { 51 menuItem.itemOver(); 52 } 53 54 }, 100); 55 }, 56 57 itemOut : function(item) 58 { 59 var menuItem = this.getItem(item); 60 if (!menuItem) 61 return; 62 63 this.outItem = menuItem; 64 65 if (menuItem.timeoutOut) 66 { 67 clearTimeout(menuItem.timeoutOut); 68 } 69 70 menuItem.timeoutOut = setTimeout(function() { 71 72 if (menuItem != BX.CatalogMenu.overItem) 73 { 74 menuItem.itemOut(); 75 } 76 if (menuItem == BX.CatalogMenu.outItem) 77 { 78 menuItem.itemOut(); 79 } 80 81 }, 100); 82 }, 83 84 removeHover : function(curItem) 85 { 86 if (typeof curItem !== "object") 87 return false; 88 89 var items = curItem.parentNode.querySelectorAll('[data-role="bx-menu-item"]'); 90 for (var i=0; i<items.length; i++) 91 { 92 if (curItem == items[i]) 93 continue; 94 95 if (BX.hasClass(items[i], "bx-hover")) 96 BX.removeClass(items[i], "bx-hover") 97 } 98 } 99 }; 100 101 var CatalogMenuItem = function(item) 102 { 103 this.element = item; 104 this.popup = BX.findChild(item, { className: "bx_children_container" }, false, false); 105 this.isLastItem = BX.lastChild(this.element.parentNode) == this.element; 106 }; 107 108 CatalogMenuItem.prototype.itemOver = function() 109 { 110 if (!BX.hasClass(this.element, "bx-hover")) 111 { 112 BX.addClass(this.element, "bx-hover"); 113 114 var popup = BX.findChild(this.element, {className:"bx-nav-2-lvl-container"}, true, false); 115 if (popup) 116 { 117 var popupRightEdge = popup.getBoundingClientRect().left + popup.offsetWidth; 118 if (popupRightEdge > document.body.clientWidth) 119 popup.style.right = 0; 120 } 121 } 122 }; 123 124 CatalogMenuItem.prototype.itemOut = function() 125 { 126 BX.removeClass(this.element, "bx-hover"); 127 }; 128})(window); 129 130BX.namespace("BX.Main.MenuComponent"); 131BX.Main.MenuComponent.CatalogHorizontal = (function() 132{ 133 var CatalogHorizontal = function(menuBlockId, itemImgDesc) 134 { 135 this.menuBlockId = menuBlockId || ""; 136 this.itemImgDesc = itemImgDesc || ""; 137 138 this.resizeMenu(); 139 BX.bind(window, "resize", BX.proxy(this.resizeMenu, this)); 140 }; 141 142 CatalogHorizontal.prototype.clickInMobile = function(element, event) 143 { 144 if (!BX.hasClass(element, "bx-hover")) 145 { 146 event.preventDefault(); 147 } 148 }; 149 150 CatalogHorizontal.prototype.toggleInMobile = function(element) 151 { 152 var parentObj = BX.findParent(element, {className: "bx-nav-parent"}); 153 var arrow = element.firstChild; 154 if (BX.hasClass(parentObj, "bx-opened")) 155 { 156 BX.removeClass(parentObj, "bx-opened"); 157 BX.removeClass(arrow, "bx-nav-angle-top"); 158 BX.addClass(arrow, "bx-nav-angle-bottom"); 159 } 160 else 161 { 162 BX.addClass(parentObj, "bx-opened"); 163 BX.addClass(arrow, "bx-nav-angle-top"); 164 BX.removeClass(arrow, "bx-nav-angle-bottom"); 165 } 166 }; 167 168 CatalogHorizontal.prototype.resizeMenu = function() 169 { 170 var templateWrap = this.templateWrap; 171 var menuMobile = document.body.querySelector("[data-role='bx-menu-mobile']"); 172 var menuMobileButton = document.body.querySelector("[data-role='bx-menu-button-mobile']"); 173 var menuMobilePosition = document.body.querySelector("[data-role='bx-menu-button-mobile-position']"); 174 175 if (document.body.clientWidth <= 767) //mobile 176 { 177 if (!menuMobile) 178 { 179 menuMobile = BX.create("div", { 180 attrs: { 181 className: "bx-aside-nav", 182 "data-role" : "bx-menu-mobile" 183 }, 184 children: [ BX.clone(BX("ul_" + this.menuBlockId)) ] 185 }); 186 document.body.insertBefore(menuMobile, document.body.firstChild); 187 } 188 189 if (!menuMobileButton) 190 { 191 menuMobileButton = BX.create("div", { 192 attrs: {className: "bx-aside-nav-control bx-closed", "data-role" : "bx-menu-button-mobile"}, 193 children: [ 194 BX.create("i", { 195 attrs: {className: "bx-nav-bars"} 196 }) 197 ], 198 events: { 199 "click" : function() { 200 if (BX.hasClass(this, "bx-opened")) 201 { 202 BX.removeClass(this, 'bx-opened'); 203 BX.removeClass(menuMobile, 'bx-opened'); 204 BX.addClass(this, 'bx-closed'); 205 document.body.style.overflow = ""; 206 BX.removeClass(document.body, 'bx-opened'); 207 } 208 else 209 { 210 211 BX.addClass(this, 'bx-opened'); 212 BX.addClass(menuMobile, 'bx-opened'); 213 BX.removeClass(this, 'bx-closed'); 214 document.body.style.overflow = "hidden"; 215 BX.addClass(document.body, 'bx-opened'); 216 } 217 } 218 } 219 }); 220 221 document.body.insertBefore(menuMobileButton, document.body.firstChild); 222 223 224 } 225 } 226 else 227 { 228 BX.removeClass(menuMobile, 'bx-opened'); 229 BX.removeClass(document.body, 'bx-opened'); 230 document.body.style.overflow = ""; 231 232 if (menuMobileButton) 233 BX.removeClass(menuMobileButton, 'bx-opened'); 234 } 235 }; 236 237 CatalogHorizontal.prototype.changeSectionPicure = function(element, itemId) 238 { 239 var curLi = BX.findParent(element, {className: "bx-nav-1-lvl"}); 240 if (!curLi) 241 return; 242 243 var imgDescObj = curLi.querySelector("[data-role='desc-img-block']"); 244 if (!imgDescObj) 245 return; 246 247 var imgObj = BX.findChild(imgDescObj, {tagName: "img"}, true, false); 248 if (imgObj) 249 imgObj.src = this.itemImgDesc[itemId]["PICTURE"]; 250 251 var linkObj = BX.findChild(imgDescObj, {tagName: "a"}, true, false);
252 if (linkObj) 253 linkObj.href = element.href; 254 255 var descObj = BX.findChild(imgDescObj, {tagName: "p"}, true, false); 256 if (descObj) 257 descObj.innerHTML = this.itemImgDesc[itemId]["DESC"]; 258 259 }; 260 261 return CatalogHorizontal; 262})(); 263 264 265 266 267/* End */ 268; 269; /* Start:"a:4:{s:4:"full";s:85:"/bitrix/templates/sbcentr/components/bitrix/menu/tree_utk/script.min.js?1528840272165";s:6:"source";s:67:"/bitrix/templates/sbcentr/components/bitrix/menu/tree_utk/script.js";s:3:"min";s:71:"/bitrix/templates/sbcentr/components/bitrix/menu/tree_utk/script.min.js";s:3:"map";s:71:"/bitrix/templates/sbcentr/components/bitrix/menu/tree_utk/script.map.js";}"*/ 270function OpenMenuNode(e){if(e.parentNode.className=="")e.parentNode.className="close";else e.parentNode.className="";return false} 271/* End */ 272; 273; /* Start:"a:4:{s:4:"full";s:67:"/bitrix/components/bitrix/search.title/script.min.js?17687995896573";s:6:"source";s:48:"/bitrix/components/bitrix/search.title/script.js";s:3:"min";s:52:"/bitrix/components/bitrix/search.title/script.min.js";s:3:"map";s:52:"/bitrix/components/bitrix/search.title/script.map.js";}"*/ 274function JCTitleSearch(t){var e=this;this.arParams={AJAX_PAGE:BX.util.htmlspecialcharsback(t.AJAX_PAGE),CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN,10)};if(t.WAIT_IMAGE){this.arParams.WAIT_IMAGE=t.WAIT_IMAGE}if(this.arParams.MIN_QUERY_LEN<=0){this.arParams.MIN_QUERY_LEN=1}this.cache=[];this.cache_key=null;this.startText="";this.running=false;this.runningCall=false;this.currentRow=-1;this.RESULT=null;this.CONTAINER=null;this.INPUT=null;this.WAIT=null;this.ShowResult=function(t){if(BX.type.isString(t)){e.RESULT.innerHTML=t}e.RESULT.style.display=e.RESULT.innerHTML===""?"none":"block";var s=e.adjustResultNode();var i=null;var n=null;var l=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(l){n=BX.findChild(l,{tag:"th"},true)}if(n){var r=BX.pos(l);r.width=r.right-r.left;var a=BX.pos(n);a.width=a.right-a.left;n.style.width=a.width+"px";e.RESULT.style.width=s.width+a.width+"px";e.RESULT.style.left=s.left-a.width-1+"px";if(r.width-a.width>s.width){e.RESULT.style.width=s.width+a.width-1+"px"}r=BX.pos(l);i=BX.pos(e.RESULT);if(i.right>r.right){e.RESULT.style.width=r.right-r.left+"px"}}var o=false;if(l){o=BX.findChild(e.RESULT,{class:"title-search-fader"},true)}if(o&&n){i=BX.pos(e.RESULT);o.style.left=i.right-i.left-18+"px";o.style.width=18+"px";o.style.top=0+"px";o.style.height=i.bottom-i.top+"px";o.style.display="block"}};this.onKeyPress=function(t){var s=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(!s){return false}var i=0;var n=s.rows.length;switch(t){case 27:e.RESULT.style.display="none";e.currentRow=-1;e.UnSelectAll();return true;case 40:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var l=-1;for(i=0;i<n;i++){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(l==-1){l=i}if(e.currentRow<i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i==n&&e.currentRow!=i){e.currentRow=l}s.rows[e.currentRow].className="title-search-selected";return true;case 38:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var r=-1;for(i=n-1;i>=0;i--){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(r==-1){r=i}if(e.currentRow>i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i<0&&e.currentRow!=i){e.currentRow=r}s.rows[e.currentRow].className="title-search-selected";return true;case 13:if(e.RESULT.style.display=="block"){for(i=0;i<n;i++){if(e.currentRow==i&&!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){var a=BX.findChild(s.rows[i],{tag:"a"},true);if(a){window.location=a.href;return true}}}}return false;default:break}return false};this.onTimeout=function(){e.onChange((function(){setTimeout(e.onTimeout,500)}))};this.onChange=function(t){if(e.running){e.runningCall=true;return}e.running=true;if(e.INPUT.value!=e.oldValue&&e.INPUT.value!=e.startText){e.oldValue=e.INPUT.value;if(e.INPUT.value.length>
274=e.arParams.MIN_QUERY_LEN){e.cache_key=e.arParams.INPUT_ID+"|"+e.INPUT.value;if(e.cache[e.cache_key]==null){if(e.WAIT){var s=BX.pos(e.INPUT);var 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"}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();if(e.WAIT){e.WAIT.style.display="none"}if(!!t){t()}e.running=false;if(e.runningCall){e.runningCall=false;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()}}if(!!t){t()}e.running=false};this.onScroll=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&e.RESULT.innerHTML!==""){e.adjustResultNode()}};this.UnSelectAll=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){t.rows[i].className=""}}};this.EnableMouseEvents=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){if(!BX.findChild(t.rows[i],{class:"title-search-separator"},true)){t.rows[i].id="row_"+i;t.rows[i].onmouseover=function(t){if(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(){if(e.RESULT.innerHTML.length>0){e.ShowResult()}};this.onKeyDown=function(t){if(!t){t=window.event}if(e.RESULT.style.display=="block"&&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);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";return t};this.onContainerLayoutChange=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&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.INPUT.value;this.oldValue=this.INPUT.value;BX.bind(this.INPUT,"focus",(function(){e.onFocusGain()}));BX.bind(this.INPUT,"blur",(function(){e.onFocusLost()}));this.INPUT.onkeydown=this.onKeyDown;if(this.arParams.WAIT_IMAGE){this.WAIT=document.body.appendChild(document.createElement("DIV"));this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')";if(!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()}));var t=BX.findParent(this.CONTAINER,BX.is_fixed);if(BX.type.isElementNode(t)){BX.bind(window,"scroll",BX.throttle(this.onScroll,100,this))}};BX.ready((function(){e.Init(t)}))} 275/* End */ 276;; /* /bitrix/templates/sbcentr/components/bitrix/menu/bootstrap_v5/script.
276js?16471699416176*/ 277; /* /bitrix/templates/sbcentr/components/bitrix/menu/tree_utk/script.min.js?1528840272165*/ 278; /* /bitrix/components/bitrix/search.title/script.min.js?17687995896573*/ 279 280//# sourceMappingURL=template_ce3a2e905f0dc8a2dd494120ae58525b.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.