PageSourceSearch

https://tbk-systems.ru/g/s3/mosaic/js/do/do.sidepanel.js

js tbk-systems.ru collected 2026-09-29 13:45:45 UTC 16,618 bytes, 1 lines download raw bytes

1(self.webpackChunkdo=self.webpackChunkdo||[]).push([[5796],{2653:t=>{t.exports=function t(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(i){!e.hasOwnProperty(i)||null===e[i]||"object"!=typeof e[i]&&"function"!=typeof e[i]||Object.isFrozen(e[i])||t(e[i])})),e}},8259:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var o=function(t,e,i,o){return new(i||(i=Promise))((function(n,s){function a(t){try{l(o.next(t))}catch(t){s(t)}}function r(t){try{l(o.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,r)}l((o=o.apply(t,e||[])).next())}))},n=function(t,e){var i,o,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function r(r){return function(l){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}};function s(t){return o(this,void 0,void 0,(function(){function e(t){27===t.keyCode&&p.close()}function o(t){var e=t.offsetWidth;if(!e){var i=getComputedStyle(g),o=i.display,n=i.width;n&&(n.includes("px")?e=parseInt(n,10):(t.style.display="block",e=t.offsetWidth,t.style.display=o))}return e}function s(){var i=function(){var t="right"===m().position;return{right:o(g),flip:t}}(),n=i.flip,s=i.right;n?(g.style.left="auto",g.style.right="0"):(g.style.left="0",g.style.right="auto"),p?(p.flip=n,p.right=s+d,p.width=s+d):(p=new r({target:t,left:0,right:s+d,position:0,flip:n,curve:"ease-in-out",willOpen:function(){v.style.display="block",g.style.display="block";var t="scroll"===getComputedStyle(document.body).overflowY,i=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)>document.documentElement.clientHeight;u&&(i||t)&&(document.body.style.borderRight="".concat(u,"px solid transparent")),document.body.style.overflow="hidden",document.addEventListener("keyup",e)},didClose:function(){v.style.display="none",g.style.display="none",document.body.style.borderRight&&(document.body.style.borderRight=""),document.body.style.overflow="",document.removeEventListener("keyup",e)},onAnimate:function(t){var e=p.flip,i=p.right;v.style.opacity=String(t/i),g.style.transform="translate3d(".concat(e?i-t:t-i,"px,0,0)")}}),f&&f.addEventListener("click",(function(t){return t.preventDefault(),p.toggle(),!1})),y&&y.addEventListener("click",(function(t){return t.preventDefault(),p.close(),!1})),v&&v.addEventListener("click",(function(){return p.close(),!1})),window.sidePanelController=p,window.addEventListener("resize",k))}var a,r,l,c,h,d,u,p,m,f,y,g,v,k;return n(this,(function(e){switch(e.label){case 0:return[4,i(6378)];case 1:return a=e.sent().getScrollBarWidth,[4,i(5565).A];case 2:return r=e.sent(),l=i(4511).s,[4,i(8476).A];case 3:return c=e.sent(),[4,i(6696)];case 4:return h=e.sent(),d=50,u=a(),t?(m=h.default("data-do-side_panel",t),f=t.querySelector(".side-panel__button-open"),y=t.querySelector(".side-panel__button-close"),g=t.querySelector(".side-panel__content"),v=t.querySelector(".side-panel__mask"),k=l((function(){var t=o(g);p.right=t+d,p.width=t+d}),200),c.add((function(){s()})),[2]):[2]}}))}))}},8610:(t,e,i)=>{"use strict";i.d(e,{$U:()=>o,Ay:()=>l,QF:()=>s,Yb:()=>r});var o,n=i(2653),s="screen",a=i.n(n)()(["(min-width: 1920px)","(min-width: 1440px)","(min-width: 1280px)",s,"(max-width: 991px)","(max-width: 767px)","(max-width: 479px)"]),r=a.indexOf(s);!function(t){t.BIG_SCREEN3=0,t.BIG_SCREEN2=1,t.BIG_SCREEN1=2,t.SCREEN=3,t.TABLET_LANDSCAPE=4,t.TABLET_PORTRAIT=5,t.MOBILE=6}(o||(o={}));const l=a},8476:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var o=i(8610),n=i(4511).s,s=new Set,a=r();function r(){for(var t,e=o.Ay.slice().reverse(),i=o.QF,n=!0,s=0;s<e.length;s+=1){if((t=e[s])===o.QF&&(n=!1),window.matchMedia(t).matches&&(i=t,n))break}return i}var l=n((function(){var t=r();
1t!==a&&(a=t,s.forEach((function(e){e(t)})))}),200);window.addEventListener("resize",l);const c={add:function(t){s.add(t),t(a)},remove:function(t){s.delete(t)},getMedia:r}},5565:(t,e,i)=>{"use strict";function o(t){this.delegate=t,this.startTimeStamp=0,this.request_=null}function n(){this.recentTouchMoves_=[],this.velocityX=0,this.velocityY=0}function s(){}function a(t){this.map=[];for(let e=0;e<=100;e+=1){let i=e/100;this.map.push([3*i*(1-i)*(1-i)*t[0]+3*i*i*(1-i)*t[2]+i*i*i,3*i*(1-i)*(1-i)*t[1]+3*i*i*(1-i)*t[3]+i*i*i])}}i.d(e,{A:()=>c}),o.prototype.scheduleAnimation=function(){this.request_||(this.request_=requestAnimationFrame(this.onAnimation_.bind(this)))},o.prototype.startAnimation=function(){this.startTimeStamp=0,this.scheduleAnimation()},o.prototype.stopAnimation=function(){cancelAnimationFrame(this.request_),this.startTimeStamp=0,this.request_=null},o.prototype.onAnimation_=function(t){this.request_=null,this.startTimeStamp||(this.startTimeStamp=t),this.delegate.onAnimation(t)&&this.scheduleAnimation()},n.kTimeWindow=50,n.prototype.pruneHistory_=function(t){for(let e=0;e<this.recentTouchMoves_.length;++e)if(this.recentTouchMoves_[e].timeStamp>t-n.kTimeWindow)return void(this.recentTouchMoves_=this.recentTouchMoves_.slice(e));this.recentTouchMoves_=[]},n.prototype.update_=function(t){this.pruneHistory_(t.timeStamp),this.recentTouchMoves_.push(t);let e=this.recentTouchMoves_[0],i=t.changedTouches[0].clientX-e.changedTouches[0].clientX,o=t.changedTouches[0].clientY-e.changedTouches[0].clientY,n=t.timeStamp-e.timeStamp;n>0?(this.velocityX=i/n,this.velocityY=o/n):(this.velocityX=0,this.velocityY=0)},n.prototype.onTouchStart=function(t){this.recentTouchMoves_.push(t),this.velocityX=0,this.velocityY=0},n.prototype.onTouchMove=function(t){this.update_(t)},n.prototype.onTouchEnd=function(t){this.update_(t),this.recentTouchMoves_=[]},s.prototype.scaleTime=function(t){return t},a.prototype.scaleTime=function(t){let e=0;for(;100!==e&&t>this.map[e][0];)e+=1;if(t===this.map[e][0]||0===e)return this.map[e][1];let i=this.map[e][1]-this.map[e-1][1],o=this.map[e][0]-this.map[e-1][0],n=(t-this.map[e-1][0])/o;return this.map[e-1][1]+n*i};let r={linear:new s,ease:new a([.25,.1,.25,1]),"ease-in":new a([.42,0,1,1]),"ease-out":new a([0,0,.58,1]),"ease-in-out":new a([.42,0,.58,1])};function l(t){this.velocityTracker=new n,this.animator=new o(this),this.target=t.target,this.left=t.left,this.right=t.right,this.position=t.position,this.flip=t.flip,this.fullWidth=t.fullWidth,this.width=this.right-this.left,this.curve=r[t.curve||"linear"],this.willOpenCallback=t.willOpen,this.didCloseCallback=t.didClose,this.animateCallback=t.onAnimate,this.state=l.kClosed,this.defaultAnimationSpeed=(this.right-this.left)/l.kBaseSettleDurationMS,this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.fullWidth||this.target.addEventListener("touchstart",this.onTouchStart.bind(this))}l.kOpened="opened",l.kClosed="closed",l.kOpening="opening",l.kClosing="closing",l.kDragging="dragging",l.kFlinging="flinging",l.kBaseSettleDurationMS=246,l.kMaxSettleDurationMS=600,l.kMinFlingVelocity=.4,l.kTouchSlop=5,l.kTouchSlopSquare=l.kTouchSlop*l.kTouchSlop,l.prototype.restrictToCurrent=function(t){return Math.max(this.left,Math.min(this.position,t))},l.prototype.restrictToBounds=function(t){return Math.max(this.left,Math.min(this.right,t))},l.prototype.onTouchStart=function(t){let e;this.velocityTracker.onTouchStart(t),e=this.flip?document.documentElement.clientWidth-t.changedTouches[0].clientX:t.changedTouches[0].clientX;let i=t.changedTouches[0].clientY;if(this.state!==l.kOpened){if(e!==this.restrictToCurrent(e))return;this.state=l.kDragging}this.animator.stopAnimation(),this.target.addEventListener("touchmove",this.onTouchMove),this.target.addEventListener("touchend",this.onTouchEnd),this.startX=e,this.startY=i,this.startPosition=this.position,this.touchBaseX=Math.min(e,this.startPosition)},l.prototype.onTouchMove=function(t){if(this.velocityTracker.onTouchMove(t),this.state===l.kOpened){let e;e=this.flip?document.documentElement.clientWidth-t.changedTouches[0].clientX-this.startX:t.changedTouches[0].clientX-this.startX;let i=t.changedTouches[0].clientY-this.startY;if(e*e+i*i<l.kTouchSlopSquare)return void t.preventDefault();if(Math.abs(i)>Math.abs(e))return this.target.removeEventListener("touchmove",this.onTouchMove),void this.target.removeEventListener("touchend",this.onTouchEnd);this.state=l.kDragging}let e;t.preventDefault(),e=this.flip?document.documentElement.clientWidth-t.changedTouches[0].clientX-this.touchBaseX:t.changedTouches[0].clientX-this.touchBaseX,this.position=this.restrictToBounds(this.startPosition+e),this.animator.scheduleAnimation()},l.prototype.onTouchEnd=function(t){this.velocityTracker.onTouchEnd(t),this.target.removeEventListener("touchmove",this.onTouchMove),this.target.removeEventListener("touchend",this.onTouchEnd);let e=this.velocityTracker.velocityX;this.flip&&(e*=-1),Math.abs(e)>l.kMinFlingVelocity?this.fling(e):this.isOpen()?this.open():this.close()},l.prototype.openFraction=function(){let t=this.right-this.left;return(this.position-this.left)/t},l.prototype.isOpen=function(){return this.openFraction()>=.5},l.prototype.isOpening=function(){return this.state===l.kOpening||this.state===l.kFlinging&&this.animationVelocityX>0},l.prototype.isClosing=function(){return this.state===l.kClosing||this.state===l.kFlinging&&this.animationVelocityX<0},l.prototype.toggle=function(){this.isOpen()?this.close():this.open()},l.prototype.open=function(){this.fullWidth?this.willOpenCallback.call(this.target):(this.position||this.willOpenCallback.call(this.target),this.animator.stopAnimation(),this.animationDuration=400,this.state=l.kOpening,this.animate())},l.prototype.close=function(){this.fullWidth?this.didCloseCallback.call(this.target):(this.animator.stopAnimation(),this.animationDuration=400,this.state=l.kClosing,this.animate())},l.prototype.fling=function(t){this.animator.stopAnimation(),this.animationVelocityX=t,this.state=l.kFlinging,this.animate()},l.prototype.animate=function(){this.positionAnimationBase=this.position,this.animator.startAnimation()},l.prototype.targetPosition=function(t){if(this.state===l.kFlinging)return this.positionAnimationBase+this.animationVelocityX*t;let e=this.curve.scaleTime(t/this.animationDuration),i=this.state===l.kOpening?this.width-this.positionAnimationBase:-this.positionAnimationBase;return this.positionAnimationBase+e*i},l.prototype.onAnimation=function(t){if(this.state===l.kDragging)return this.animateCallback.call(this.target,this.position),!1;let e=t-this.animator.startTimeStamp,i=this.targetPosition(e);return this.position=this.restrictToBounds(i),this.animateCallback.call(this.target,this.position),i<=this.left&&this.isClosing()?(this.state=l.kClosed,this.didCloseCallback.call(this.target),!1):!(i>=this.right&&this.isOpening())||(this.state=l.kOpened,!1)};const c=l},6378:(t,e,i)=>{"use strict";function o(){const t=document.createElement("div"),e=document.createElement("div");t.style.overflow="scroll",document.body.appendChild(t),t.appendChild(e);const i=t.offsetWidth-e.offsetWidth;return document.body.removeChild(t),i}i.r(e),i.d(e,{getScrollBarWidth:()=>o})},4511:(t,e,i)=>{"use strict";function o(t,e,i){let o;return function(){let n=this,s=arguments,a=i&&!o;clearTimeout(o),o=setTimeout((function(){o=null,i||t.apply(n,s)}),e),a&&t.apply(n,s)}}i.d(e,{s:()=>o})},6696:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var o=i(8610),n={"data-do-accordion":["isOpened","closeOther","childrenAsync"],"data-do-auth_popup_btn":["showUserName","showSettings","showOrders","showLogout","popupAfterAuthorized"],"data-do-form_auth":["isNativeStyle","isDrop","otherHeaderAfterAuth","showUserName","isToggle","isHeader","isRemember","isRegistration","isForgot","showSocial"],"data-do-blocklist":["slider","loop","returnToFirst","swipe","lastSlideArrow","center","controlsGroup","autoplay","childrenAsync","isMarquee","hoverStop"],"data-do-tt_blocklist":["slider","loop","returnToFirst","swipe","lastSlideArrow","center","controlsGroup","autoplay","childrenAsync","isMarquee","hoverStop"],"data-do-checkbox":["required"],"data-do-checkbox_group":["required"],"data-do-content":["image","gallery","text","headers"],"data-do-countdown":["isEnabledDays","isEnabledHours","isEnabledMinutes","isEnabledSeconds"],"data-do-form":["nativeStyle","showTitleAfterSend","disabledNativeStyleSelect"],"data-do-image":["scrollZoom","zoomOnClick"],"data-do-input":["required"],"data-do-input_date":["required"],"data-do-input_date_interval":["required"],"data-do-input_email":["required"],"data-do-input_phone":["required"],"data-do-link_universal":["blank","sidepanel"],"data-do-link_universal_block":["blank","sidepanel"],"data-do-link_universal_button":["blank","sidepanel"],"data-do-popup":["wmshowpopup"],"data-do-radio_group":["required"],"data-do-marquee":["circular","hoverStop","invertHover"],"data-do-menu_column":["dropdown","more","cancelForward","firstClick"],"data-do-menu_horizontal":["cancelForward","more","firstClickOpen"],"data-do-menu_vertical":["cancelForward","firstClickOpen"],"data-do-s3_article":["isHeadBlock","isAllLink","isImage","isDate","isAnnounce","isLinkMore","isDay","isMonth","isYear"],"data-do-s3_article2":["isHeadBlock","isAllLink","isImage","isDate","isAnnounce","isLinkMore","isDay","isYear"],"data-do-s3_board":["isDate","isDay","isMonth","isYear"],"data-do-s3_news_constructor":["isHeadNews","isAllNews","isImage","isDate","isAnnounce","isLinkMore","isDay","isYear"],"data-do-s3_unified_news_constructor":["isHeadBlock","isAllLink","isImage","isDate","isAnnouncement","isLinkMore","isDay","isYear","isTime","isMonthFirst","isDelimiterDayMonth","isDelimiterMonthYear","isDelimiterYearTime","isCustomDateFormat","isTags","isDelimiterTag"],"data-do-s3_vote_constructor":["isResults","isResultsInfo","isNativeStyle","isHideTextResult","isOtherAnswer"],"data-do-section":["scroll","smooth"],"data-do-select":["required"],"data-do-select_multiple":["required"],"data-do-slider":["loop","returnToFirst","lastSlideArrow","controlsGroup","swipe","autoplay","childrenAsync","previews","thumbs","thumbsSlider","independentScrolling","thumbsCenterMode"],"data-do-spoiler":["isOpened"],"data-do-svg_image":["stretch"],"data-do-tabs":["childrenAsync"],"data-do-textarea":["required"],"data-do-upload_file":["required"],"data-do-video":["viewportAutoPlay"],"data-do-video2":["viewportAutoPlay"],"data-do-shop2_cart":["products","amountBtn"],"data-do-shop2_search":["nativeStyles","price","name","article","text","folders","vendors","flags","perpage"],"data-do-shop2_folders":["cancelForward","firstClickOpen","icon","more","dropdown"],"data-do-shop2_vendors":["controlsGroup","loop","center","lastSlideArrow","swipe","autoplay","marqueeHoverStop"],"data-do-shop2_products_list":["nativeStyles","flags","price","anonce","vendor","rating","amount","actions","buttons","article","options","compare","favorite","controlsGroup","loop","slidesToScroll","center","lastSlideArrow","draggable","autoplay","pauseOnHover"]};const s=function(t,e){if(t in n){var i=n[t],o=function(t){for(var e in t)if(e in t){var n=t[e];i.includes(e)&&"boolean"!=typeof n?t[e]="0"!==n&&Boolean(n):"string"!=typeof n||Number.isNaN(+n)||(t[e]=Number(n)),"object"==typeof n&&o(n)}};o(e)}};function a(t,e){let i={};try{i=JSON.parse(e.getAttribute(t)||"")}catch(i){return void console.warn(`Error media: ${t} - ${e}`)}const n=o.Ay.slice(0,3),a=o.Ay.slice(4).reverse();return function(e){const r=o.Ay[e]||n.find((t=>window.matchMedia(t).matches))||a.find((t=>window.matchMedia(t).matches))||o.QF;let l={};const c=o.Ay.indexOf(r);let h=c>o.Yb?o.Ay.slice(o.Yb):o.Ay.slice(c,o.Yb+1).reverse();for(let t=0;t<h.length;t++){const e=h[t];if(Object.assign(l,i[e]),e===r)break}return s(t,l),l}}}}]);

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.