1(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{364:function(t,e,o){"use strict";o.r(e);o(5);var l=o(3),c=o(17);function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,l)}return o}function n(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach(function(e){Object(l.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var h={props:{videos:{type:Object,required:!0,default:()=>({items:[]})}},data:()=>({collection:[],csPos:0,sPos:0}),computed:n(n({},Object(c.b)(["isDesktop"])),{},{itemRect(){return this.isDesktop,{width:170,height:240}},eagerCount(){return this.isDesktop?6:3},isHome(){return"/"===this.$route.path}}),fetch(){this.collection=this.videos.items.slice(0,20)},mounted(){},methods:{mouseEnter(t){this.csPos=pageYOffset,document.body.style.overflow="hidden",document.querySelector(".slider").addEventListener("scroll",this.scrolling),window.addEventListener("mousewheel",this.wheel)},mouseLeave(t){document.body.style.overflow="",document.querySelector(".slider").removeEventListener("scroll",this.scrolling),window.removeEventListener("mousewheel",this.wheel)},scrolling(t){document.documentElement.scroll(0,this.csPos)},wheel(t){var e=document.querySelector(".slider");t.deltaY>=0&&this.sPos<this.itemRect.width*this.collection.length?this.sPos+=this.itemRect.width:this.sPos>=this.itemRect.width&&(this.sPos-=this.itemRect.width),e&&e.scroll(this.sPos,0)},sliderArrows(t,e){var o=null;"collection-show-more"===e.target.parentElement.className?(o=e.target.parentElement.parentElement.parentElement,"left"===t?(this.collection=this.videos.items.slice(0,10),o.scrollTo(0,0)):"right"===t&&(190===this.itemRect.width?(this.collection=this.videos.items.slice(0,this.collection.length+5),this.$nextTick(()=>o.scrollTo(o.scrollLeft+7*this.itemRect.width,0))):this.collection=this.videos.items.slice(0,this.collection.length+10))):(o=e.target.parentElement.previousElementSibling,"left"===t?(this.collection.length>=11&&(this.collection=this.videos.items.slice(0,this.collection.length-5)),o.scrollTo(o.scrollLeft-195-5*this.itemRect.width,0)):"right"===t&&(this.collection.length<this.videos.items.length&&(this.collection=this.videos.items.slice(0,this.collection.length+6)),o.scrollTo(o.scrollLeft+195+6*this.itemRect.width,0)))}}},d=o(8),component=Object(d.a)(h,function(){var t=this,e=t._self._c;return e("div",{staticClass:"slider-wrapper"},[t.collection.length>7?e("i",{staticClass:"before"}):t._e(),t._v(" "),e("div",{staticClass:"slider"},[e("ul",{style:"width:".concat(t.collection.length*(20+t.itemRect.width),"px;")},t._l(t.collection,function(o,i){return e("li",{key:"slider-".concat(o.id,"-").concat(i)},[e("nuxt-link",{attrs:{to:t.localePath("/catalog/".concat(t.postUrl(o.id||o.kinopoisk_id,o.title_ru)))}},[e("div",{staticClass:"poster",style:"width:".concat(t.itemRect.width,"px;height:").concat(t.itemRect.height,"px;")},[i<t.eagerCount?e("img",{attrs:{src:t.optimizedFilmPoster(o),srcset:t.optimizedFilmPosterSrcset(o),sizes:"170px",alt:"ÐоÑÑÐµÑ Ðº "+o.title_ru,fetchpriority:0===i&&t.isHome?"high":void 0,width:"170",height:"240",loading:"eager",decoding:"async"}}):e("img",{staticClass:"lazyload",attrs:{"data-src":t.filmPoster(o,180),"data-srcset":t.filmPosterSrcset(o),sizes:"170px",alt:"ÐоÑÑÐµÑ Ðº "+o.title_ru,src:"/static_files/no-poster.png",width:"170",height:"240",loading:"lazy",decoding:"async"}})]),t._v(" "),e("strong",{staticClass:"name-ru",style:"width:".concat(t.itemRect.width,"px;")},[t._v("\n "+t._s(o.title_ru)+"\n ")])])],1)}),0)]),t._v(" "),t.collection.length>6?e("div",{staticClass:"arrows"},[t.collection.length>7?e("i",{staticClass:"larrow",on:{click:function(e){return t.sliderArrows("left",e)}}}):t._e(),t._v(" "),e("i",{staticClass:"rarrow",on:{click:function(e){return t.sliderArrows("right",e)}}})]):t._e(),t._v(" "),t.collection.length<60?e("i",{staticClass:"after"}):t._e()])},[],!1,null,null,null);e.default=component.exports}}]);
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.