1!function(window){window.JCCatalogSocnetsComments||(window.JCCatalogSocnetsComments=function(arParams){var i;if(this.errorCode=0,this.params={},this.serviceList={blog:!1,facebook:!1,vk:!1},this.settings={blog:{ajaxUrl:"",ajaxParams:{},contID:"bx-cat-soc-comments-blg"},facebook:{contID:"bx-cat-soc-comments-fb",contWidthID:"",parentContID:"soc_comments",facebookJSDK:"facebook-jssdk",facebookPath:""},vk:{}},this.services={blog:{obBlogCont:null},facebook:{obFBCont:null,obFBContWidth:null,obFBParentCont:null,obFBjSDK:null,currentWidth:0}},this.activeTabId="",this.currentTab=-1,this.tabsContId="",this.tabList=[],this.obTabList=[],"object"==typeof arParams){if(this.params=arParams,this.params.serviceList&&"object"==typeof this.params.serviceList)for(i in this.serviceList)this.serviceList.hasOwnProperty(i)&&this.params.serviceList[i]&&(this.serviceList[i]=!0);this.serviceList.blog&&this.initParams("blog"),this.serviceList.facebook&&this.initParams("facebook"),"object"==typeof this.params.tabs&&(this.activeTabId=this.params.tabs.activeTabId,this.tabsContId=this.params.tabs.tabsContId,this.tabList=this.params.tabs.tabList)}else this.errorCode=-1;0===this.errorCode&&BX.ready(BX.proxy(this.Init,this))},window.JCCatalogSocnetsComments.prototype.initParams=function(id){var i;if(this.params.settings&&"object"==typeof this.params.settings&&"object"==typeof this.params.settings[id])for(i in this.settings[id])this.settings[id].hasOwnProperty(i)&&this.params.settings[id][i]&&(this.settings[id][i]=this.params.settings[id][i])},window.JCCatalogSocnetsComments.prototype.Init=function(){if(this.tabList&&BX.type.isArray(this.tabList)&&0!==this.tabList.length){var i,strFullId;for(i=0;i<this.tabList.length;i++){if(strFullId=this.tabsContId+this.tabList[i],this.obTabList[i]={id:this.tabList[i],tabId:strFullId,contId:strFullId+"_cont",tab:BX(strFullId),cont:BX(strFullId+"_cont")},!this.obTabList[i].tab||!this.obTabList[i].cont){this.errorCode=-2;break}this.activeTabId===this.tabList[i]&&(this.currentTab=i),BX.bind(this.obTabList[i].tab,"click",BX.proxy(this.onClick,this))}this.serviceList.blog&&(this.services.blog.obBlogCont=BX(this.settings.blog.contID),this.services.blog.obBlogCont||(this.serviceList.blog=!1,this.errorCode=-16)),this.serviceList.facebook&&(this.services.facebook.obFBCont=BX(this.settings.facebook.contID),this.services.facebook.obFBCont?this.services.facebook.obFBContWidth=this.services.facebook.obFBCont.firstChild:(this.serviceList.facebook=!1,this.errorCode=-32),this.services.facebook.obFBParentCont=BX(this.settings.facebook.parentContID)),0===this.errorCode&&(this.showActiveTab(),this.serviceList.blog&&this.loadBlog(),this.serviceList.facebook&&this.loadFB()),this.params={}}else this.errorCode=-1},window.JCCatalogSocnetsComments.prototype.loadBlog=function(){var postData;0===this.errorCode&&this.serviceList.blog&&0!==this.settings.blog.ajaxUrl.length&&((postData=this.settings.blog.ajaxParams).sessid=BX.bitrix_sessid(),BX.ajax({timeout:30,method:"POST",dataType:"html",url:this.settings.blog.ajaxUrl,data:postData,onsuccess:BX.proxy(this.loadBlogResult,this)}))},window.JCCatalogSocnetsComments.prototype.loadBlogResult=function(result){BX.type.isNotEmptyString(result)&&BX.adjust(this.services.blog.obBlogCont,{html:result})},window.JCCatalogSocnetsComments.prototype.loadFB=function(){var width,d,s,id,fbpath,js,fjs;this.services.facebook.obFBParentCont&&this.services.facebook.obFBContWidth&&(width=parseInt(this.services.facebook.obFBParentCont.offsetWidth,10),isNaN(width)||(BX.adjust(this.services.facebook.obFBContWidth,{attrs:{"data-width":width-20}}),this.services.facebook.currentWidth=width),this.services.facebook.obFBjSDK||(this.services.facebook.obFBjSDK=!0,BX.defer(BX.proxy((d=document,s="script",id=this.settings.facebook.facebookJSDK,fbpath=this.settings.facebook.facebookPath,fjs=d.getElementsByTagName(s)[0],void(d.getElementById(id)||((js=d.createElement(s)).id=id,js.src=fbpath,fjs.parentNode.insertBefore(js,fjs)))),this))))},window.JCCatalogSocnetsComments.prototype.getFBParentWidth=function(){var width=0;return this.services.facebook.obFBParentCont&&(width=parseInt(this.services.facebook.obFBParentCont.offsetWidth,10),isNaN(width)&&(width=0)),width},window.JCCatalogSocnetsComments.prototype.setFBWidth=function(width){var obFrame=null,src,newSrc;this.serviceList.facebook&&this.services.facebook.currentWidth!==width&&width>20&&this.services.facebook.obFBContWidth&&this.services.facebook.obFBContWidth.firstChild&&this.services.facebook.obFBContWidth.firstChild.fitrstChild&&(obFrame=this.services.facebook.obFBContWidth.firstChild.fitrstChild)&&(newSrc=(src=obFrame.getAttribute("src")).replace(/width=(\d+)/gi,"width="+width),BX.adjust(this.services.facebook.obFBContWidth,{attrs:{"data-width":width-20}}),this.services.facebook.currentWidth=width,BX.style(this.services.facebook.obFBContWidth.firstChild,"width",width+"px"),BX.adjust(obFrame,{attrs:{src:newSrc},style:{width:width+"px"}}))},window.JCCatalogSocnetsComments.prototype.onResize=function(){this.serviceList.facebook&&this.setFBWidth(this.getFBParentWidth())},window.JCCatalogSocnetsComments.prototype.onClick=function(){var target=BX.proxy_context,index=-1,i;for(i=0;i<this.obTabList.length;i++)if(target.id===this.obTabList[i].tabId){index=i;break}index>-1&&index!==this.currentTab&&(this.hideActiveTab(),this.currentTab=index,this.showActiveTab())},window.JCCatalogSocnetsComments.prototype.hideActiveTab=function(){BX.removeClass(this.obTabList[this.currentTab].tab,"active"),BX.addClass(this.obTabList[this.currentTab].cont,"tab-off"),BX.addClass(this.obTabList[this.currentTab].cont,"hidden")},window.JCCatalogSocnetsComments.prototype.showActiveTab=function(){BX.onCustomEvent("onAfterBXCatTabsSetActive_"+this.tabsContId,[{activeTab:this.obTabList[this.currentTab].id}]),BX.addClass(this.obTabList[this.currentTab].tab,"active"),BX.removeClass(this.obTabList[this.currentTab].cont,"tab-off"),BX.removeClass(this.obTabList[this.currentTab].cont,"hidden")})}(window),$(document).on("click",".catalog_reviews_extended span.dropdown-select__list-link",(function(){const _this=$(this),ajaxData=_this.data("review_sort_ajax"),container=_this.closest(".blog-comments"),containerId=container.attr("id");void 0!==containerId&&containerId&&(ajaxData.containerId=containerId),void 0!==ajaxData&&(container.addClass("blur"),$.ajax({type:"post",data:ajaxData,success:function(html){$("#reviews_sort_continer").html(html),container.removeClass("blur")}}))})),$(document).on("click",".rating-vote__item:not(.disable)",(function(e){e.preventDefault();const _this=$(this),action=_this.data("action"),$parent=_this.closest(".rating-vote"),$likeButton=$parent.find(".rating-vote__item-like"),$dislikeButton=$parent.find(".rating-vote__item-dislike"),commentId=$parent.data("comment_id"),userId=$parent.data("user_id"),ajaxUrl=$parent.data("ajax_url");$.ajax({url:ajaxUrl,dataType:"json",data:{commentId:commentId,action:action,userId:userId},success:function(data){void 0!==data.LIKE&&$likeButton.find(".rating-vote__result").text(data.LIKE),void 0!==data.DISLIKE&&$dislikeButton.find(".rating-vote__result").text(data.DISLIKE),void 0!==data.SET_ACTIVE_LIKE&&$likeButton.toggleClass("active"),void 0!==data.SET_ACTIVE_DISLIKE&&$dislikeButton.toggleClass("active")}})})),$(document).on("change",".filter-panel__sort-form input",(function(){const _this=$(this),$form=_this.closest("form")[0],$container=_this.closest(".blog-comments"),method=$form.method,formData=new FormData($form);for(let value of formData.entries())value[1]||formData.delete(value[0]);$container.length&&($container.addClass("blur"),formData.append("containerId",$container.attr("id"))),$.ajax({data:formData,t
1ype:method,processData:!1,contentType:!1,success:function(html){$("#reviews_sort_continer").html(html),$container.removeClass("blur")}})})),$(document).on("click",".blog-comment__load_more",(function(){$(".blog-comment-nav-item-sel").next().click(),initSwiperSlide()})); 2//# sourceMappingURL=script.min.js.map
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.