Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/burlakastudio.realcommenter/ |
Upload File : |
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1; $jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)}; $jscomp.SymbolClass=function(a,b){this.$jscomp$symbol$id_=a;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:b})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};$jscomp.Symbol=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(c||"")+"_"+b++,c)}var b=0;return a}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}}; $jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.asyncIterator;a||(a=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a}; $jscomp.iteratorFromArray=function(a,b){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}; $jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3"); function realcommenter_gallery_get_pictures(){var a=document.querySelectorAll(realcommenter_get_selector("image_gallery_initer"));a.reduce=[].reduce;return a} function realcommenter_gallery_ping(a){if(a=a.getAttribute(realcommenter_get_selector("image_gallery_initer_attr"))){var b=realcommenter_gallery_get_pictures();"undefined"===typeof window.itape_gallery_id_pathes&&(window.itape_gallery_id_pathes=[]);var c=[];b.length&&(b.reduce=[].reduce,c=b.reduce(function(a,b){b=+b.getAttribute(realcommenter_get_selector("image_gallery_initer_attr"));if(!b||isNaN(b)||window.itape_gallery_id_pathes[b])return a;a.push(b);return a},[]));c.length?realcommenter_ajaxion.bind(window, {url:"/bitrix/admin/burlakastudio.realcommenter.image_processor.php",onsuccess:realcommenter_gallery_thumb_pathes,data:{request_type:"thumbs_list",file_id:c,thumb_size:"gallery",gallery_start_from_image_id:a}})():realcommenter_gallery_start(a)}} function realcommenter_gallery_thumb_pathes(a){"undefined"!==typeof a.ERROR&&Object.keys(a.ERROR).length?console.log(a.ERROR):a.file_info&&("undefined"===typeof window.itape_gallery_id_pathes&&(window.itape_gallery_id_pathes=[]),a.file_info.forEach(function(a){window.itape_gallery_id_pathes[a.file_id]=a.THUMB}),realcommenter_gallery_start(a.request.gallery_start_from_image_id))} function realcommenter_gallery_start(a){window.gallery_image_nodes=realcommenter_gallery_get_pictures();if(window.gallery_image_nodes.length){var b;(b=document.querySelector(".itape_gallery_monitor"))&&realcommenter_gallery_interface_remove.bind(b)();b=document.createElement("div");b.className="itape_gallery_monitor";b.innerHTML='<div class="igm_monitor">\n\t<div class="imt_nav">\n\t\t<span class="itn_left"></span>\n\t\t<span class="itn_right"></span>\n\t</div>\n</div>\n<del></del>';document.body.appendChild(b); realcommenter_gallery_tools_init(b);setTimeout(function(){this.classList.toggle("_show",!0)}.bind(b),50);var c=window.gallery_image_nodes.reduce(function(b,c,f){c.getAttribute(realcommenter_get_selector("image_gallery_initer_attr"))==a&&(b=f);return b},"");b.setAttribute("data-current-image",c);realcommenter_gallery_roll.bind({interface:b,shift:0})()}} function realcommenter_gallery_tools_init(a){var b=a.querySelector("del");if(b){var c=realcommenter_gallery_interface_hide.bind(a);browser_hash_CPU("#itape_gallery",c);b.addEventListener("click",c);b.addEventListener("click",browser_hash_unregister_callback_from_stack.bind(this,c));if(b=a.querySelector(".igm_monitor"))a.querySelectorAll(".imt_nav span").forEach(function(b){if(1>=window.gallery_image_nodes.length)b.parentNode.removeChild(b);else{var c=~b.className.indexOf("right")?1:-1;b.addEventListener("click", realcommenter_gallery_roll.bind({interface:a,shift:c}))}}),b.addEventListener("click",c),b.addEventListener("click",browser_hash_unregister_callback_from_stack.bind(this,c))}} function realcommenter_gallery_roll(a){if("object"===typeof this&&this.interface&&(a&&a.stopPropagation(),"undefined"!==typeof window.gallery_image_nodes&&window.gallery_image_nodes&&window.gallery_image_nodes.length)){a=+this.interface.getAttribute("data-current-image")+this.shift;a>=window.gallery_image_nodes.length&&(a=0);0>a&&(a=window.gallery_image_nodes.length-1);var b=+window.gallery_image_nodes[a].getAttribute(realcommenter_get_selector("image_gallery_initer_attr"));if(window.itape_gallery_id_pathes[b]&& (this.interface.setAttribute("data-current-image",String(a)),a=this.interface.querySelector(".igm_monitor"))){var c=a.querySelector("img");c||(c=document.createElement("img"),a.appendChild(c),c.addEventListener("load",function(a){a.classList.toggle("ncli_tinter",!1);this.classList.toggle("_show",!0)}.bind(c,a)),drag_and_fire(c,"left",!1,!1,!1,function(a){realcommenter_gallery_roll.bind({interface:this,shift:0<a.drag_shift?-1:1})()}.bind(this.interface)),c.addEventListener("click",function(a){a.stopPropagation()})); a.classList.toggle("ncli_tinter",!0);c.classList.toggle("_show",!1);setTimeout(function(){this.src=window.itape_gallery_id_pathes[b]}.bind(c),300)}}}function realcommenter_gallery_interface_hide(){this&&(this.classList.toggle("_show",!1),setTimeout(realcommenter_gallery_interface_remove.bind(this),350))}function realcommenter_gallery_interface_remove(){this&&this.parentNode.removeChild(this)};