PageSourceSearch

https://remycom.ru/bitrix/js/aspro.max/notice.min.js?176278214814441

js remycom.ru collected 2026-09-26 12:24:36 UTC 14,441 bytes, 1 lines download raw bytes

1if(void 0===window.JNotice){let e='<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg">\n      <path d="M40.7071 19.2929C41.0976 19.6834 41.0976 20.3166 40.7071 20.7071L31.4142 30L40.7071 39.2929C41.0976 39.6834 41.0976 40.3166 40.7071 40.7071C40.3166 41.0976 39.6834 41.0976 39.2929 40.7071L30 31.4142L20.7071 40.7071C20.3166 41.0976 19.6834 41.0976 19.2929 40.7071C18.9024 40.3166 18.9024 39.6834 19.2929 39.2929L28.5858 30L19.2929 20.7071C18.9024 20.3166 18.9024 19.6834 19.2929 19.2929C19.6834 18.9024 20.3166 18.9024 20.7071 19.2929L30 28.5858L39.2929 19.2929C39.6834 18.9024 40.3166 18.9024 40.7071 19.2929Z"/>\n      <path fill-rule="evenodd" clip-rule="evenodd" d="M0 30C0 13.4315 13.4315 0 30 0C46.5685 0 60 13.4315 60 30C60 46.5685 46.5685 60 30 60C13.4315 60 0 46.5685 0 30ZM30 2C14.536 2 2 14.536 2 30C2 45.464 14.536 58 30 58C45.464 58 58 45.464 58 30C58 14.536 45.464 2 30 2Z"/>\n      </svg>';window.JNoticeSurface=function(e){var t={inited:!1};Object.defineProperties(this,{inited:{get:function(){return t.inited},set:function(e){e&&(t.inited=!0)}}}),this.config=function(t){if("object"==typeof e&&void 0!==t&&Object.keys(e).indexOf(t)>-1)return e[t]},this.init()},window.JNoticeSurface.prototype={node:null,inner:null,notices:[],get side(){return"left"===this.config("side")?"left":"right"},get reverse(){return Boolean(this.config("reverse"))},get classname(){return"notice-surface--"+this.side+(this.reverse?" notice-surface--reverse":"")},init:function(){this.inited||(this.inited=!0,this.node=BX.create({tag:"div",attrs:{class:"notice-surface "+this.classname},html:'<div class="notice-surface__inner"></div>'}),this.node.noticeSurface=this,this.inner=this.node.querySelector(".notice-surface__inner"),BX.ready(BX.delegate((function(){BX.append(this.node,document.body)}),this)))},search:function(e){if(void 0!==e&&e instanceof window.JNotice)for(var t in this.notices)if(this.notices[t]===e)return t;return!1},create:function(e){var t=new JNotice(e);return t.appendTo(this),t},append:function(e){if(void 0!==e&&e instanceof window.JNotice){if(e.removed||e.inserted&&e.surface!==this)return!1;var t=this.search(e);return t||(this.notices.push(e),t=this.notices.length-1,BX.prepend(e.node,this.inner)),e.inserted||e.appendTo(this),t}return!1},remove:function(e){if(void 0!==e&&void 0!==this.notices[e]){var t=this.notices[e];delete this.notices[e],this.notices.splice(e,1),BX.remove(t.node),t.remove()}},clear:function(){for(i in this.notices)void 0!==this.notices[i]&&this.notices[i].remove();this.notices=[]},getItemName:function(e){var t,i="function"==typeof jQuery,n="",o=e.querySelector(".js-notice-block__title");return o&&(n=o.textContent),(t=-1!==e.getAttribute("class").indexOf("catalog_detail")?e.querySelector(".product-main [data-js-item-name]"):e.querySelector("[data-js-item-name]"))&&(t=i?jQuery(t).data("js-item-name"):BX.data(t,"js-item-name"))&&(n=t),n},getItemImage:function(e){var t="function"==typeof jQuery,i="",n=e.querySelector(".js-notice-block__image img");if(n)i=n.getAttribute("src"),(o=t?jQuery(n).data("src"):BX.data(n,"src"))&&!BX.hasClass(n,"lazyloaded")&&(i=o);else if(n=e.querySelector("meta[itemprop=image]"))i=n.getAttribute("content");else if(n=e.querySelector(".image-list__link link[itemprop=image]"))i=n.getAttribute("href");else if(n=e.querySelector(".image-list-wrapper img")){var o;i=n.getAttribute("src"),(o=t?jQuery(n).data("src"):BX.data(n,"src"))&&!BX.hasClass(n,"lazyloaded")&&(i=o)}return i},onRequestError:function(t){var i={title:BX.message("NOTICE_REQUEST_ERROR"),detail:t.status+" "+t.statusText,image:e};return this.create({closeable:!0,autoclose:3e3,type:"requesterror",content:i})},onResultError:function(t){var i={title:BX.message("NOTICE_ERROR"),detail:t.error,image:e};return this.create({closeable:!0,autoclose:3e3,type:"resulterror",content:i})},onAuth:function(e){if("object"==typeof e&&e&&BX.message("USER_ID")){const t={title:BX.message("NOTICE_AUTHORIZED"),detail:e.login||e.fullname,image:e.image};return this.create({closeable:!0,autoclose:3e3,type:"auth",content:t,link:arAsproOptions.PAGES.PERSONAL_PAGE_URL})}},onAdd2cart:function(e){if("object"==typeof e&&e.length)for(i in e){var t=e[i];
1if(t instanceof Node&&(t=t.closest(".js-notice-block"))){var n=this.getItemName(t),o=this.getItemImage(t),s={title:BX.message("NOTICE_ADDED2CART"),detail:n,image:o};if(e.length>1){var a=e.length-1,r=[BX.message("NOTICE_PRODUCT1"),BX.message("NOTICE_PRODUCT2"),BX.message("NOTICE_PRODUCT0")];s.detail+='<div class="notice__detail__more font-bold">'+BX.message("NOTICE_MORE").replace("#COUNT#",a).replace("#PRODUCTS#",r[a%100>4&&a%100<20?2:[2,0,1,1,1,2][Math.min(a%10,5)]])+"</div>"}return this.create({closeable:!0,autoclose:3e3,type:"add2cart",link:arAsproOptions.PAGES.BASKET_PAGE_URL,content:s})}}},onAdd2Delay:function(e){if("object"==typeof e&&e.length)for(i in e){var t=e[i];if(t instanceof Node&&(t=t.closest(".js-notice-block"))){var n=this.getItemName(t),o=this.getItemImage(t),s={title:BX.message("NOTICE_ADDED2DELAY"),detail:n,image:o};if(e.length>1){var a=e.length-1,r=[BX.message("NOTICE_PRODUCT1"),BX.message("NOTICE_PRODUCT2"),BX.message("NOTICE_PRODUCT0")];s.detail+='<div class="notice__detail__more font-bold">'+BX.message("NOTICE_MORE").replace("#COUNT#",a).replace("#PRODUCTS#",r[a%100>4&&a%100<20?2:[2,0,1,1,1,2][Math.min(a%10,5)]])+"</div>"}return this.create({closeable:!0,autoclose:3e3,type:"add2delay",link:arAsproOptions.PAGES.BASKET_PAGE_URL+"#delayed",content:s})}}},onAdd2Favorite:function(e,t){if("object"==typeof e&&e.length&&t)for(i in e){var n=e[i];if(n instanceof Node&&(n=n.closest(".js-notice-block"))){var o=this.getItemName(n),s=this.getItemImage(n),a={title:BX.message("NOTICE_ADDED2FAVORITE"),detail:o,image:s};if(e.length>1){var r=e.length-1,c=[BX.message("NOTICE_PRODUCT1"),BX.message("NOTICE_PRODUCT2"),BX.message("NOTICE_PRODUCT0")];a.detail+='<div class="notice__detail__more font-bold">'+BX.message("NOTICE_MORE").replace("#COUNT#",r).replace("#PRODUCTS#",c[r%100>4&&r%100<20?2:[2,0,1,1,1,2][Math.min(r%10,5)]])+"</div>"}return this.create({closeable:!0,autoclose:3e3,type:"add2delay",link:arAsproOptions.PAGES.FAVORITE_PAGE_URL,content:a})}}},onAdd2Compare:function(e,t){if("object"==typeof e&&e.length&&t)for(i in e){var n=e[i];if(n instanceof Node&&(n=n.closest(".js-notice-block"))){var o=this.getItemName(n),s=this.getItemImage(n),a={title:BX.message("NOTICE_ADDED2COMPARE"),detail:o,image:s};if(e.length>1){var r=e.length-1,c=[BX.message("NOTICE_PRODUCT1"),BX.message("NOTICE_PRODUCT2"),BX.message("NOTICE_PRODUCT0")];a.detail+='<div class="notice__detail__more font-bold">'+BX.message("NOTICE_MORE").replace("#COUNT#",r).replace("#PRODUCTS#",c[r%100>4&&r%100<20?2:[2,0,1,1,1,2][Math.min(r%10,5)]])+"</div>"}return this.create({closeable:!0,autoclose:3e3,type:"add2compare",link:arAsproOptions.PAGES.COMPARE_PAGE_URL,content:a})}}}},window.JNoticeSurface.get=function(e){var t=".notice-surface.notice-surface--"+("left"===(e="object"==typeof e?e:{}).side?"left":"right")+(Boolean(e.reverse)?".notice-surface--reverse":":not(.notice-surface--reverse)"),i=document.querySelector(t);return i=i?i.noticeSurface:new window.JNoticeSurface(e)},window.JNotice=function(e){var t={surface:!1,inited:!1,removed:!1};Object.defineProperties(this,{surface:{get:function(){return t.surface},set:function(e){void 0!==e&&e instanceof window.JNoticeSurface&&!this.inserted&&!this.removed&&(t.surface=e,e.append(this),this.show(),BX.onCustomEvent("onAppendNotice",{notice:this}))}},inserted:{get:function(){return t.surface instanceof window.JNoticeSurface}},inited:{get:function(){return t.inited},set:function(e){e&&(t.inited=!0)}},removed:{get:function(){return t.removed},set:function(e){e&&(t.removed=!0)}}}),this.config=function(t){if("object"==typeof e&&void 0!==t&&Object.keys(e).indexOf(t)>-1)return e[t]},this.init()},window.JNotice.prototype={node:null,inner:null,closer:null,handlers:{onClickNode:function(e){e||(e=window.event);var t=e.target||e.srcElement;
1if(void 0!==t&&t&&!t.closest("a")&&!t.closest(".notice__closer")){BX.PreventDefault(e);var i=t.closest(".notice");i&&(i=i.notice).link.length&&(location.href=i.link)}},onMouseEnterNode:function(e){e||(e=window.event);var t=e.target||e.srcElement;if(void 0!==t&&t){var i=t.closest(".notice");i&&(i=i.notice).autoclose&&(i.closed||i.stopAutoClose())}},onMouseLeaveNode:function(e){e||(e=window.event);var t=e.target||e.srcElement;if(void 0!==t&&t){var i=t.closest(".notice");i&&(i=i.notice,BX.removeClass(i.node,"animate--notice-click"),i.closed||i.startAutoClose())}},onMouseDownNode:function(e){e||(e=window.event);var t=e.target||e.srcElement;if(void 0!==t&&t){var i=t.closest(".notice");i&&(i=i.notice,BX.addClass(i.node,"animate--notice-click"))}},onMouseUpNode:function(e){e||(e=window.event);var t=e.target||e.srcElement;if(void 0!==t&&t){var i=t.closest(".notice");i&&(i=i.notice,BX.removeClass(i.node,"animate--notice-click"))}},onClickCloser:function(e){e||(e=window.event);var t=e.target||e.srcElement;if(void 0!==t&&t){for(var i=null,n=t;n;){if(n.matches(".notice")){i=n;break}n=n.parentElement||n.parentNode}i&&(i=i.notice,BX.addClass(i.node,"notice--closed"),i.remove())}}},get visible(){return!BX.hasClass(this.node,"notice--hidden")&&this.inserted},get closed(){return BX.hasClass(this.node,"notice--closed")},get closeable(){return Boolean(this.config("closeable"))},get autoclose(){var e=parseInt(this.config("autoclose"));return e||0},get classname(){var e=this.config("classname");return"string"==typeof e?e:""},get type(){var e=this.config("type");return"string"==typeof e?e:""},get link(){var e=this.config("link");return"string"==typeof e?e:""},get content(){var e=this.config("content");if("function"==typeof e&&(e=e()),"object"==typeof e){var t=void 0!==e.title&&e.title?"function"==typeof e.title?e.title():e.title.toString():"",i=void 0!==e.detail&&e.detail?"function"==typeof e.detail?e.detail():e.detail.toString():"",n=void 0!==e.image&&e.image?"function"==typeof e.image?e.image():e.image.toString():"",o=void 0!==e.image_link&&e.image_link?"function"==typeof e.image_link?e.image_link():e.image_link.toString():"";if(t.length||i.length||n.length){if(e='<div class="notice__info-wrap">',n){n.match(/<svg[\s>]/)||(n=`<img src="${n}" />`),e+='<div class="notice__image-wrap"><div class="notice__image">'+(o?'<a href="'+o+'">':"")+n+(o?"</a>":"")+"</div></div>"}(t||i)&&(e+='<div class="notice__text-wrap">',t&&(e+='<div class="notice__title switcher-title font-bold">'+t+"</div>"),i&&(e+='<div class="notice__detail font_14">'+i+"</div>"),e+="</div>"),e+="</div>"}}return void 0===e?"":e.toString()},init:function(){if(!this.inited){this.inited=!0;var e=this.closeable?'<span class="notice__closer stroke-theme-hover" title="'+BX.message("NOTICE_CLOSE")+'"><i class="svg inline  svg-inline-" aria-hidden="true"><svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 1L1 13M1 1L13 13" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></i></span>':"";this.node=BX.create({tag:"div",attrs:{class:"notice notice--hidden"+(this.classname.length?" "+this.classname:"")+(this.link.length?" notice--link":"")},dataset:{type:this.type},html:e+'<div class="notice__inner">'+this.content+"</div>"}),this.node.notice=this,this.inner=this.node.querySelector(".notice__inner"),this.closeable&&(this.closer=this.node.querySelector(".notice__closer")),this.bindEvents(),BX.onCustomEvent("onInitNotice",{notice:this})}},bindEvents:function(){this.node&&("function"==typeof this.handlers.onClickNode&&this.node.addEventListener("click",this.handlers.onClickNode),"function"==typeof this.handlers.onMouseEnterNode&&this.node.addEventListener("mouseenter",this.handlers.onMouseEnterNode),"function"==typeof this.handlers.onMouseLeaveNode&&this.node.addEventListener("mouseleave",this.handlers.onMouseLeaveNode),"function"==typeof this.handlers.onMouseEnterNode&&this.node.addEventListener("mousedown",this.handlers.onMouseDownNode),"function"==typeof this.handlers.onMouseLeaveNode&&this.node.addEventListener("mouseup",this.handlers.onMouseUpNode)),this.closeable&&this.closer&&"function"==typeof this.handlers.onClickCloser&&this.closer.addEventListener("click",this.handlers.onClickCloser)},unbindEvents:function(){this.node&&("function"==typeof this.handlers.onClickNode&&this.node.removeEventListener("click",this.handlers.onClickNode),"function"==typeof this.handlers.onMouseEnterNode&&this.node.removeEventListener("mouseenter",this.handlers.onMouseEnterNode),"function"==typeof this.handlers.onMouseLeaveNode&&this.node.removeEventListener("mouseleave",this.handlers.onMouseLeaveNode),"function"==typeof this.handlers.onMouseEnterNode&&this.node.removeEventListener("mousedown",this.handlers.onMouseDownNode),"function"==typeof this.handlers.onMouseLeaveNode&&this.node.removeEventListener("mouseup",this.handlers.onMouseUpNode)),this.closer&&"function"==typeof this.handlers.onClickCloser&&this.closer.removeEventListener("click",this.handlers.onClickCloser)},callback:function(e){"function"==typeof e&&e()},appendTo:function(e){this.surface=e},show:function(e){this.visible?this.callback(e):(BX.addClass(this.node,"animate--notice-show"),BX.removeClass(this.node,"notice--hidden"),setTimeout(BX.delegate((function(){BX.removeClass(this.node,"animate--notice-show"),this.startAutoClose(),this.callback(e)}),this),600),BX.onCustomEvent("onShowNotice",{notice:this}))},hide:function(e){if(this.visible){var t=this;setTimeout((function(){t.node.style.height=t.node.getBoundingClientRect().height+"px",t.node.style.opacity=1,setTimeout((function(){BX.addClass(t.node,"animate--notice-hide"),setTimeout((function(){BX.addClass(t.node,"notice--hidden"),BX.removeClass(t.node,"animate--notice-hide"),t.callback(e)}),700)}),25),BX.onCustomEvent("onHideNotice",{notice:t})}),100)}else this.callback(e)},remove:function(){this.removed||(this.removed=!0,this.hide(BX.delegate((function(){this.unbindEvents(),this.inserted&&this.surface.remove(this.surface.search(this)),BX.onCustomEvent("onRemoveNotice",{notice:this})}),this)))},startAutoClose:function(){this.stopAutoClose(),this.autoclose&&(this.autocloseTimer=setTimeout(BX.delegate((function(){this.remove()}),this),this.autoclose))},stopAutoClose:function(){void 0!==this.autocloseTimer&&this.autocloseTimer&&(clearTimeout(this.autocloseTimer),this.autocloseTimer=!1)}}}

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.