PageSourceSearch

https://shop.by/js/noindex/noindex.min.js?02102613

js shop.by collected 2026-10-02 10:21:44 UTC 10,362 bytes, 1 lines download raw bytes

1var xhrDataShop=new XMLHttpRequest;function linksHandler(e){let t=e.target.closest(".Page__GA4LinkBlock"),o=e.target.closest(".ModelList__LinkModel"),a=e.target.closest(".AddTimestamp"),l=e.target.closest(".ShopItemList__ViewProduct"),n=e.target.closest(".cart-button"),i=e.target.closest(".fast-order-button"),s=e.target.closest(".Page__ViewHelpBlock"),r=e.target.closest(".Page__DescHelpHideBlock");const d=e.target.closest(".Page__PhoneBlock"),c=document.querySelectorAll(".ShopItemList__ContentBlockPhone");if(e.composedPath().includes(t)&&window.sendEventGA4Click(t),n&&(n.classList.contains("cart-button-check")||(e.preventDefault(),e.stopPropagation()),cart.addToggleCartListener(n)),i&&cart.fastOrderListener(i),e.composedPath().includes(l)&&window.ShopItemList__SendEcommerce(l),e.composedPath().includes(a)&&window.sendEventGA4Click(a),e.composedPath().includes(o)&&(Page__SetCookie("model_"+o.getAttribute("data-model"),window.location.href,2,"/"),"tip-models"==document.body.getAttribute("data-page"))){let t=e.target.closest(".ModelList__ModelBlockItem"),a=[];a.push({item_name:t.querySelector(".ModelList__NameBlock").innerHTML,item_id:o.getAttribute("data-model"),price:parseFloat(t.querySelector(".ModelList__PriceBlock").getAttribute("data-price"))/2.6,item_brand:t.getAttribute("data-brand"),item_category:document.querySelector(".Page__TitleActivePage").innerHTML,item_list_name:document.querySelector(".Page__TitleActivePage").innerHTML,index:parseInt(t.getAttribute("data-position")),quantity:"1",currency:"USD"}),sendEcommerceGA4("select_item",a)}if(e.composedPath().includes(r)){let t=e.target.parentElement;t.querySelector(".Page__ViewHelpBlock").classList.remove("Page__ActiveInfoIcon"),t.querySelector(".Page__DescHelpBlock").classList.add("invisible")}if(e.composedPath().includes(s)){let e=s.getAttribute("data-id"),t=document.querySelector('[data-id="info_'+e+'"]');""===t.querySelector(".Page__DescHelpTxt").innerHTML.trim()&&document.getElementById("ModelEssId")?window.Page__GetTypeAttributes(parseInt(document.getElementById("ModelEssId").value),s,t):s.classList.contains("Page__ActiveInfoIcon")?(s.classList.remove("Page__ActiveInfoIcon"),t.classList.add("invisible")):(document.querySelector(".Page__ViewHelpBlock").classList.remove("Page__ActiveInfoIcon"),document.querySelector(".Page__DescHelpBlock").classList.add("invisible"),s.classList.add("Page__ActiveInfoIcon"),t.classList.remove("invisible"),t.style.left=s.offsetLeft+15+"px")}if(e.composedPath().includes(d)){const e=d.getAttribute("data-id");document.querySelector(`.ShopItemList__ContentBlockPhone[data-id="phone_${e}"]`)?Page__RemovePhoneBlocks():Page__OpenPhoneBlock(d),window.sendEventGA4Click(d)}c.forEach(t=>{t.contains(e.target)||e.target.closest(".ShopItemList__ContentBlockPhone")||Page__RemovePhoneBlocks()})}function linksTimestampHandler(e){let t=e.target.closest(".AddTimestamp"),o=e.target.closest(".fast-order-button"),a=e.target.closest(".Page__ShopPageLink");if(e.composedPath().includes(t)&&window.Page__AddReferer(t),e.composedPath().includes(o)){let e=o.getAttribute("data-owner");localStorage.setItem("ownerCart",e)}if(e.composedPath().includes(a)){let e=Date.now(),t={id:a.getAttribute("data-item"),itemUrl:a.getAttribute("data-url"),backUrl:window.location.href,expiry:e+3e5};localStorage.setItem("shopitem_"+a.getAttribute("data-id"),JSON.stringify(t))}}function slideGallery(e){let t=e.target.closest(".ModelList__ItemGalleryBlock");if(e.composedPath().includes(t)){let e=t.getAttribute("data-index"),o=t.closest(".ModelList__IconBlock");window.ModelList__ChangeImage(o,e)}}function sendAnalyticsVisit(){let e=new FormData;e.append("from",window.location.hostname),e.append("token",window.localStorage.getItem("_SUI_")),e.append("referer",window.location.pathname),e.append("new",window.localStorage.getItem("newUI"));let t=new XMLHttpRequest;t.open("POST","/ajax/data/visit/",!0),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.send(e)}function Page__GetDataShop(e,t){let o=document.querySelector('.ModelTabs [data-id="title_url_shop"]').getAttribute("data-model");e||document.modelform.reset(),document.querySelector('.Page__ModelWapperBlock [data-model="shop"] .PageModel__ModelListSeller')&&(document.querySelector('.Page__ModelWapperBlock [data-model="shop"] .PageModel__ModelListSeller').style.opacity="0.3"),xhrDataShop.open("GET","/model/shop/?model_id="+o+e,!0),xhrDataShop.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhrDataShop.send(),xhrDataShop.onreadystatechange=function(){4===xhrDataShop.readyState&&200===xhrDataShop.status&&(document.querySelector('.Page__ModelWapperBlock [data-model="shop"]').innerHTML=xhrDataShop.responseText,shopBookmarks.reload(),window.hideLink(".ok__hidden-link"),cart.reload(),pickUp.showModalListener(),window.ModelFilter__filterButton(),window.Page__AboutShopBlock(),document.querySelector('.Page__ModelWapperBlock [data-model="shop"] .PageModel__ModelListSeller').style.opacity="1",t&&window.scrollTo({top:document.querySelector(".PageModel__BlockInfoTabs").offsetTop+150,behavior:"smooth"}),document.querySelectorAll(".PageModel__ModelListSeller .Paging__InnerPages .Paging__PageModelLink").forEach(e
1=>e.addEventListener("click",function(){Page__GetDataShop(e.getAttribute("data-href").replace("?","&"),!0)})))}}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".PageModel__BlockMessageUser").forEach(e=>{e.innerHTML='Продавайте Ваши товары на&nbsp;Shop.by!<a class="Page__ActiveButtonBg" href="https://get.shop.by/?utm_source=shopby&utm_medium=header&utm_id=1" target="_blank" title="Продавайте ваши товары на Shop.by!">подробности</a>'}),document.querySelectorAll(".PageModel__ReviewsPublishingRules").length&&document.querySelectorAll(".PageModel__ReviewsPublishingRules").forEach(function(e){e.innerHTML='Мы публикуем отзывы, отражающие Ваше мнение о товарах в соответствии с <a href="/informacya/pokupatelyu/polzovatelskoe_soglashenie_shopby/" title="Пользовательское соглашение">Пользовательским соглашением</a>.'}),document.querySelector(".ShopPage__ReviewsPublishingRules")&&(document.querySelector(".ShopPage__ReviewsPublishingRules").innerHTML='Мы публикуем отзывы, отражающие Ваше мнение о работе магазинов в соответствии с&nbsp;<a href="'+REAL_HOST+'/informacya/pokupatelyu/polzovatelskoe_soglashenie_shopby/" title="Пользовательское соглашение">Пользовательским соглашением</a>.'),document.querySelector(".PageModel__ReviewsTitleBlock")&&(document.querySelector(".PageModel__ReviewsTitleBlock").innerHTML='<span class="ModelReviews__Title">Мой отзыв о товаре <span class="ModelReviews__ItemName">'+document.querySelector(".Page__MainBody").getAttribute("data-title")+"</span></span>"),document.querySelectorAll(".ModelReviews__ButtonAddReviewLink").length&&document.querySelectorAll(".ModelReviews__ButtonAddReviewLink").forEach(function(e){e.innerHTML="Оставить отзыв"}),document.querySelectorAll(".ShopPage__TypeFilterLink").forEach(e=>{e.href=e.href+e.getAttribute("data-filter")}),document.querySelector(".Header").classList.contains("isBot")||document.body.classList.contains("Page__RedirectShop")||sendAnalyticsVisit(),!document.querySelector(".Header").classList.contains("isBot")&&document.querySelector(".SubscribeModel__Form")&&window.checkModelNotif(),window.hideLink(".ok__hidden-link"),window.burgerMobile.init(),cart.reload(),document.addEventListener("click",linksHandler),document.addEventListener("mousedown",linksTimestampHandler),document.addEventListener("mouseover",slideGallery)}),window.onload=function(){window.hideLink(".ok__hidden-link")},window.hideLink=function(e){let t=document.querySelectorAll(e),o=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.isIntersecting){let o=e.target.attributes,a=document.createElement("a");a.innerHTML=e.target.innerHTML;for(let e of o)"data-link"==e.name?a.setAttribute("href",e.value):a.setAttribute(e.name,e.value);a.classList.remove("ok__hidden-link"),e.target.replaceWith(a),t.unobserve(e.target),window.lazyLoadImage(".lazyLoadImage")}})},{threshold:0});t.forEach(e=>o.observe(e))},window.lazyLoadImage=function(e){lozad(e,{loaded:function(e){e.classList.remove("lazyLoadImage")}}).observe()},window.checkModelNotif=async function(){try{const e=+document.querySelector(".Favourites__BlockItem").getAttribute("data-id"),t=document.querySelector(".SubscribeModel__FormInput"),o=document.querySelector(".SubscribeModel__FormInputBlock"),a=document.querySelector(".SubscribeModel__FormSubscribeText"),l=document.querySelector(".SubscribeModel__FormSubscribeTextEmail"),n=document.querySelector(".SubscribeModel__ButtonSubscribe"),i=document.querySelector(".ModelReview__FormPrivacyPolicy"),s=document.querySelector(".SubscribeModel__reCAPTCHA"),r=await fetch(`/management/user/checkmodelnotif/?model_id=${Math.abs(e)}`),d=await r.json();let c;if(d.data.email&&(c=d.data.email,t.value=c),c&&0===d.data.guest?t.readOnly=!0:t.readOnly=!1,1===d.data.isset&&(o.style.display="none",a.style.display="block",l.textContent=c,n.classList.add("SubscribeModel__ButtonUnsubscribe"),n.textContent="Отменить подписку",i.style.display="none",s.style.display="none"),200!==d.status)throw new Error(d.message)}catch(e){console.log(e)}},window.Page__GetTypeAttributes=function(e,t,o){let a=new XMLHttpRequest;a.open("GET","/type_attributes/?ids="+e,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.send(),a.onreadystatechange=function(){if(4===a.readyState&&200===a.status&&a.responseText){let e=JSON.parse(a.responseText)[0].attributes;if(e){for(let t=0,o=e.length;t<o;t++){let o=document.querySelector('.Page__ViewHelpBlock[data-attrid="'+e[t].prof_id+'"]');if(e[t].comment&&o){let a=e[t].comment.replace(/\&lt;/gi,"<").replace(/\&gt;/gi,">").replace(/\&amp;/gi,"&").replace(/\&quot;/gi,"");document.querySelector('.Page__DescHelpBlock[data-id="info_'+o.getAttribute("data-id")+'"] .Page__DescHelpTxt').innerHTML=a}}t&&(t.classList.add("Page__ActiveInfoIcon"),o.classList.remove("invisible"),o.style.left=t.offsetLeft+15+"px")}}}};

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.