PageSourceSearch

https://www.chefmarket.ru/_nuxt/574d357.js

js chefmarket.ru collected 2026-09-25 18:57:16 UTC 30,516 bytes, 2 lines download raw bytes

vendor: 4,413 bytes, lines 1-2
1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1220:function(t,e,r){"use strict";r(715)},1233:function(t,e,r){"use strict";r(728)},1507:function(t,e,r){"use strict";r.r(e);var n=r(15),o=r(90);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",h=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof x?e:x,a=Object.create(i.prototype),c=new j(n||[]);return o(a,"_invoke",{value:T(t,r,c)}),a}function v(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",y="suspendedYield",w="executing",s="completed",S={};function x(){}function E(){}function L(){}var p={};d(p,a,(function(){return this}));var k=Object.getPrototypeOf,P=k&&k(k(C([])));P&&P!==r&&n.call(P,a)&&(p=P);var g=L.prototype=x.prototype=Object.create(p);function A(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,l,i,a){var h=v(t[o],t,l);if("throw"!==h.type){var u=h.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,a)}))}a(h.arg)}var l;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return l=l?l.then(o,o):o()}})}function T(e,r,n){var o=m;return function(i,a){if(o===w)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=M(c,n);if(u){if(u===S)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=w;var p=v(e,r,n);if("normal"===p.type){if(o=n.done?s:y,p.arg===S)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function M(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,M(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),S;var i=v(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,S;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,S):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,S)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(c(e)+" is not iterable")}return E.prototype=L,o(g,"constructor",{value:L,configurable:!0}),o(L,"constructor",{value:E,configurable:!0}),E.displayName=d(L,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,d(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},A(_.prototype),d(_.prototype,h,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(g),d(g,u,"Generator"),d(g,a,(function(){return this})),d(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(W),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,S):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),W(r),S}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;W(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),S}},e}function h(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,a){if(t){if("string"==typeof t)return d(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,a):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,r=Array(a);e<a;e++)r[e]=t[e];return r}function f(t,e,r,n,o,a,c){try{var i=t[a](c),u=i.value}catch(t){return void r(t)}i.done?e(u):Promise.resolve(u).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function c(t){f(a,n,o,c,l,"next",t)}function l(t){f(a,n,o,c,l,"throw",t)}c(void 0)}))}}var m={name:"SliderSuppliers",props:{type:{type:String,default:"Suppliers"},slidesProps:{type:Array,default:function(){return[]}},emitChanges:{type:Boolean,default:!1}},data:function(){return{dataSlides:[],slides:[],currentIndex:1,slideWidth:null,currentPosition:0,pointerStartX:null,touchStartX:null,mouseStartX:null,mouseCurrentX:null,blockSlideMovement:!1,maxPosition:0,minPosition:0,allBreakpoints:{sm:575.98,md:767.98,lg:991.98,xl:1199.98,xxl:1919.98},windowWidth:null,isAutoScrollEnabled:!1,scrollSecondsTimeout:3e3,slidesWidths:{sm:436,md:660,lg:668,xl:848},tapDelay:200,tapTimeout:700,touchDifference:30,isSafari:!1,safariBlockResize:!1}},mounted:function(){var t=this;return v(l().mark((function e(){var r,n,o,c;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.blockSlideMovement=!0,t.isSafari=t.isSafariBrowser(),t.setWindowWidth(),e.next=5,t.fillDataBanner();case 5:return t.dataSlides=e.sent,t.handleResize(),n=t.dataSlides[t.dataSlides.length-1],o=t.dataSlides[0],t.slides=[n].concat(h(t.dataSlides),[o]),t.resetSliderPosition(),e.next=13,t.$nextTick();case 13:null===(r=t.$refs.track)||void 0===r||r.classList.add("transition"),window.addEventListener("resize",t.handleResize),(c=t.$refs.sliderWrapper)&&(c.addEventListener("touchstart",t.onTouchStart,{passive:!1}),c.addEventListener("touchend",t.onTouchEnd,{passive:!1})),t.startAutoScroll(),t.blockSlideMovement=!1;case 19:case"end":return e.stop()}}),e)})))()},methods:{isSafariBrowser:function(){var t=o.a.osDeviceDetect();return console.log("browser",t),console.log("browser Apple","Apple"===t),"Apple"===t},startAutoScroll:function(){var t=this;this.isAutoScrollEnabled&&(this.autoScrollTimeout=setTimeout((function(){t.slide("next"),t.startAutoScroll()}),this.scrollSecondsTimeout))},stopAutoScroll:function(){clearTimeout(this.autoScrollTimeout)},onSliderButtonClick:function(t){this.stopAutoScroll(),this.slide(t)},onMouseDown:function(t){var e=this;return v(l().mark((function r(){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.blockSlideMovement){r.next=2;break}return r.abrupt("return");case 2:return e.isAutoScrollEnabled&&e.stopAutoScroll(),e.mouseStartX=t.clientX,e.mouseCurrentX=t.clientX,window.addEventListener("mousemove",e.onMouseMove),r.next=8,Object(n.b)(1e3);case 8:window.removeEventListener("mousemove",e.onMouseMove);case 9:case"end":return r.stop()}}),r)})))()},onMouseUp:function(){window.removeEventListener("mousemove",this.onMouseMove)},onMouseMove:function(t){if(!this.blockSlideMovement){this.mouseCurrentX=t.clientX,window.removeEventListener("mousemove",this.onMouseMove);var e=this.mouseCurrentX-this.mouseStartX;this.slide(e>0?"prev":"next")}},onTouchStart:function(t){this.blockSlideMovement||(this.isAutoScrollEnabled&&this.stopAutoScroll(),"pointerdown"===t.type&&(this.pointerStartX=t.clientX),"touchstart"===t.type&&(this.touchStartX=t.touches[0].clientX))},onTouchEnd:function(t){if(!this.blockSlideMovement){if("pointerup"===t.type){var e=t.clientX-this.pointerStartX;this.slide(e>0?"prev":"next")}if("touchend"===t.type){var r=t.changedTouches[0].clientX-this.touchStartX;(r>this.touchDifference||r<-this.touchDifference)&&this.slide(r>0?"prev":"next")}}},slide:function(t){var e=this;return v(l().mark((function r(){var o,c,h,d;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.blockSlideMovement){r.next=2;break}return r.abrupt("return");case 2:if(e.blockSlideMovement=!0,"prev"===t?e.slideToLeft():e.slideToRight(),!(e.currentPosition>e.minPosition)){r.next=17;break}return r.next=7,Object(n.b)(500);case 7:return null===(o=e.$refs.track)||void 0===o||o.classList.remove("transition"),r.next=10,Object(n.b)(100);case 10:return e.currentPosition=e.maxPosition+e.getOffset(),e.currentIndex=e.dataSlides.length,r.next=14,Object(n.b)(100);case 14:return null===(c=e.$refs.track)||void 0===c||c.classList.add("transition"),e.blockSlideMovement=!1,r.abrupt("return");case 17:if(!(e.currentPosition<e.maxPosition)){r.next=30;break}return r.next=20,Object(n.b)(500);
2case 20:return null===(h=e.$refs.track)||void 0===h||h.classList.remove("transition"),r.next=23,Object(n.b)(100);case 23:return e.currentPosition=e.getFirstPosition(),e.currentIndex=1,r.next=27,Object(n.b)(100);case 27:return null===(d=e.$refs.track)||void 0===d||d.classList.add("transition"),e.blockSlideMovement=!1,r.abrupt("return");case 30:return e.currentPosition===e.minPosition&&(e.currentIndex=1),e.currentPosition===e.maxPosition&&(e.currentIndex=e.dataSlides.length),r.next=34,Object(n.b)(500);case 34:e.blockSlideMovement=!1;case 35:case"end":return r.stop()}}),r)})))()},slideToLeft:function(){this.currentIndex--;var t=this.slideWidth;this.currentPosition+=t,this.emitChanges&&this.$emit("changeSlide",this.currentIndex)},slideToRight:function(){this.currentIndex++;var t=this.slideWidth;this.currentPosition-=t,this.emitChanges&&this.$emit("changeSlide",this.currentIndex)},getOffset:function(){return this.windowWidth<575.98?.07*this.slideWidth:0},setWindowWidth:function(){this.windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0},getDynamicWidth:function(){return this.windowWidth>=this.allBreakpoints.xl?this.slidesWidths.xl:this.windowWidth>=this.allBreakpoints.lg?this.slidesWidths.lg:this.windowWidth>=this.allBreakpoints.md?this.slidesWidths.md:this.windowWidth>=this.allBreakpoints.sm?this.slidesWidths.sm:.75*this.windowWidth},handleResize:function(){if(this.isSafari){if(this.safariBlockResize)return;this.safariBlockResize=!0}this.setWindowWidth(),this.slideWidth=this.getDynamicWidth();var t=this.dataSlides.length*this.slideWidth;this.maxPosition=-t,this.minPosition=this.getFirstPosition(),this.resetSliderPosition()},resetSliderPosition:function(){this.currentPosition=this.getFirstPosition(),this.currentIndex=1},getFirstPosition:function(){var t=0;return t-=this.slideWidth-this.getOffset()},fillDataBanner:function(){var t=this;return v(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.slidesProps);case 1:case"end":return e.stop()}}),e)})))()}},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize);var t=this.$refs.sliderWrapper;t&&(t.removeEventListener("touchstart",this.onTouchStart),t.removeEventListener("touchend",this.onTouchEnd))}},y=(r(1220),r(3)),component=Object(y.a)(m,(function(){var t=this,e=t._self._c;return t.dataSlides.length>0?e("div",{ref:"sliderWrapper",staticClass:"slider-container"},[e("div",{staticClass:"slider-buttons-track"},[e("button",{staticClass:"btn btn-arrow slider-button-prev",on:{click:function(e){return t.onSliderButtonClick("prev")}}}),e("button",{staticClass:"btn btn-arrow slider-button-next",on:{click:function(e){return t.onSliderButtonClick("next")}}})]),e("div",{ref:"track",staticClass:"slider-track",style:{transform:"translate3d(".concat(t.currentPosition,"px, 0, 0)")},on:{mousedown:t.onMouseDown,mouseup:t.onMouseUp}},t._l(t.slides,(function(r,n){return e("div",{key:n,ref:"slide",refInFor:!0,staticClass:"slide banner-slide"},[e("div",{staticClass:"slide-with-fixed-width",style:{width:"".concat(t.slideWidth,"px")}},[t._t("default",null,{slide:r,index:n})],2)])})),0)]):t._e()}),[],!1,null,"31b9528c",null);e.default=component.exports},1532:function(t,e,r){"use strict";r.r(e);var n=r(354),o=r(15),c=r(353);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof x?e:x,a=Object.create(i.prototype),c=new j(n||[]);return o(a,"_invoke",{value:T(t,r,c)}),a}function v(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",y="suspendedYield",w="executing",s="completed",S={};function x(){}function E(){}function L(){}var p={};d(p,a,(function(){return this}));var k=Object.getPrototypeOf,P=k&&k(k(C([])));P&&P!==r&&n.call(P,a)&&(p=P);var g=L.prototype=x.prototype=Object.create(p);function A(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,c,i,a){var h=v(t[o],t,c);if("throw"!==h.type){var u=h.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,a)}),(function(t){r("throw",t,i,a)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,a)}))}a(h.arg)}var c;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return c=c?c.then(o,o):o()}})}function T(e,r,n){var o=m;return function(i,a){if(o===w)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}
vendor: 4,457 bytes, line 2
2for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=M(c,n);if(u){if(u===S)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=w;var p=v(e,r,n);if("normal"===p.type){if(o=n.done?s:y,p.arg===S)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function M(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,M(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),S;var i=v(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,S;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,S):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,S)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return E.prototype=L,o(g,"constructor",{value:L,configurable:!0}),o(L,"constructor",{value:E,configurable:!0}),E.displayName=d(L,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,d(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},A(_.prototype),d(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(g),d(g,u,"Generator"),d(g,a,(function(){return this})),d(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(W),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,S):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),W(r),S}}
2,catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;W(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),S}},e}function d(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,a){if(t){if("string"==typeof t)return f(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?f(t,a):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,r=Array(a);e<a;e++)r[e]=t[e];return r}function v(t,e,r,n,o,a,c){try{var i=t[a](c),u=i.value}catch(t){return void r(t)}i.done?e(u):Promise.resolve(u).then(n,o)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function c(t){v(a,n,o,c,l,"next",t)}function l(t){v(a,n,o,c,l,"throw",t)}c(void 0)}))}}var y={name:"SliderCelebrationDishes",props:{type:{type:String,default:"HolidayPage"},emitChanges:{type:Boolean,default:!1}},data:function(){return{dataHolidayBanner:[],slides:[],currentIndex:1,slideWidth:null,currentPosition:0,pointerStartX:null,touchStartX:null,mouseStartX:null,mouseCurrentX:null,blockSlideMovement:!1,maxPosition:0,minPosition:0,isAutoScrollEnabled:!0,scrollSecondsTimeout:3e3}},mounted:function(){var t=this;return m(h().mark((function e(){var r,n,c;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.blockSlideMovement=!0,e.next=3,t.fillDataHolidayBanner();case 3:if(t.dataHolidayBanner=e.sent,0!==t.dataHolidayBanner.length){e.next=9;break}return e.next=7,t.$nextTick();case 7:return e.next=9,Object(o.b)(1e3);case 9:if(0!==t.dataHolidayBanner.length){e.next=12;break}return console.error("Ошибка с формированием НГ Баннера!"),e.abrupt("return");case 12:return t.handleResize(),n=t.dataHolidayBanner[t.dataHolidayBanner.length-1],c=t.dataHolidayBanner[0],t.slides=[n].concat(d(t.dataHolidayBanner),[c]),t.resetSliderPosition(),e.next=19,t.$nextTick();case 19:null===(r=t.$refs.track)||void 0===r||r.classList.add("transition"),window.addEventListener("resize",t.handleResize),t.startAutoScroll(),t.blockSlideMovement=!1;case 23:case"end":return e.stop()}}),e)})))()},computed:{},methods:{startAutoScroll:function(){var t=this;this.isAutoScrollEnabled&&(this.autoScrollTimeout=setTimeout((function(){t.slide("next"),t.startAutoScroll()}),this.scrollSecondsTimeout))},stopAutoScroll:function(){clearTimeout(this.autoScrollTimeout)},onSliderButtonClick:function(t){this.stopAutoScroll(),this.slide(t)},onMouseDown:function(t){var e=this;return m(h().mark((function r(){return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.blockSlideMovement){r.next=2;break}return r.abrupt("return");case 2:return e.isAutoScrollEnabled&&e.stopAutoScroll(),e.mouseStartX=t.clientX,e.mouseCurrentX=t.clientX,window.addEventListener("mousemove",e.onMouseMove),r.next=8,Object(o.b)(1e3);case 8:window.removeEventListener("mousemove",e.onMouseMove);case 9:case"end":return r.stop()}}),r)})))()},onMouseUp:function(){window.removeEventListener("mousemove",this.onMouseMove)},onMouseMove:function(t){if(!this.blockSlideMovement){this.mouseCurrentX=t.clientX,window.removeEventListener("mousemove",this.onMouseMove);var e=this.mouseCurrentX-this.mouseStartX;this.slide(e>0?"prev":"next")}},onTouchStart:function(t){this.blockSlideMovement||(this.isAutoScrollEnabled&&this.stopAutoScroll(),"pointerdown"===t.type&&(this.pointerStartX=t.clientX),"touchstart"===t.type&&(this.touchStartX=t.touches[0].clientX))},onTouchEnd:function(t){if(!this.blockSlideMovement){if("pointerup"===t.type){var e=t.clientX-this.pointerStartX;this.slide(e>0?"prev":"next")}if("touchend"===t.type){var r=t.changedTouches[0].clientX-this.touchStartX;this.slide(r>0?"prev":"next")}}},slide:function(t){var e=this;return m(h().mark((function r(){var n,c,l,d;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.blockSlideMovement){r.next=2;break}return r.abrupt("return");case 2:if(e.blockSlideMovement=!0,"prev"===t?e.slideToLeft():e.slideToRight(),!(e.currentPosition>e.minPosition)){r.next=17;break}return r.next=7,Object(o.b)(500);case 7:return e.$refs.track&&(null===(n=e.$refs.track)||void 0===n||n.classList.remove("transition")),r.next=10,Object(o.b)(100);case 10:return e.currentPosition=e.maxPosition,e.currentIndex=e.dataHolidayBanner.length,r.next=14,Object(o.b)(100);case 14:return e.$refs.track&&(null===(c=e.$refs.track)||void 0===c||c.classList.add("transition")),e.blockSlideMovement=!1,r.abrupt("return");case 17:if(!(e.currentPosition<e.maxPosition)){r.next=30;break}return r.next=20,Object(o.b)(500);case 20:return e.$refs.track&&(null===(l=e.$refs.track)||void 0===l||l.classList.remove("transition")),r.next=23,Object(o.b)(100);case 23:return e.currentPosition=e.minPosition,e.currentIndex=1,r.next=27,Object(o.b)(100);case 27:return e.$refs.track&&(null===(d=e.$refs.track)||void 0===d||d.classList.add("transition")),e.blockSlideMovement=!1,r.abrupt("return");case 30:return e.currentPosition===e.minPosition&&(e.currentIndex=1),e.currentPosition===e.maxPosition&&(e.currentIndex=e.dataHolidayBanner.length),r.next=34,Object(o.b)(500);case 34:e.blockSlideMovement=!1;case 35:case"end":return r.stop()}}),r)})))()},slideToLeft:function(){this.currentIndex--,this.currentPosition+=this.slideWidth,this.emitChanges&&this.$emit("changeSlide",this.currentIndex)},slideToRight:function(){this.currentIndex++,this.currentPosition-=this.slideWidth,this.emitChanges&&this.$emit("changeSlide",this.currentIndex)},handleResize:function(){this.slideWidth=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);var t=this.dataHolidayBanner.length*this.slideWidth;this.maxPosition=-t,this.minPosition=0-this.slideWidth,this.resetSliderPosition()},resetSliderPosition:function(){this.currentPosition=0,this.currentPosition-=this.slideWidth,this.currentIndex=1},fillDataHolidayBanner:function(){var t=this;return m(h().mark((function e(){var r,o,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.$dayjs().format("HH:mm"),o=r>="07:00"&&r<"17:00"?"NewYearLandingDay":"NewYearLandingNight","HolidayPage"!==t.type){e.next=5;break}return e.abrupt("return",n.a.getSliderData(o));case 5:if("FrontPage"!==t.type){e.next=11;break}if(l={sliderNumber:"banners/d-main-banner.webp"},t.$store.getters.stateNewYear>
2=c.a.STATE_SLIDER_UPDATE){e.next=10;break}return e.abrupt("return",[l].concat(d(n.a.getSliderData(o))));case 10:return e.abrupt("return",[].concat(d(n.a.getSliderData(o)),[l]));case 11:return e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e)})))()}},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}},w=(r(1233),r(3)),component=Object(w.a)(y,(function(){var t=this,e=t._self._c;return t.dataHolidayBanner.length>0?e("div",{ref:"sliderWrapper",staticClass:"slider-container"},[e("div",{staticClass:"slider-buttons-track"},[e("button",{staticClass:"btn btn-arrow slider-button-prev",on:{click:function(e){return t.onSliderButtonClick("prev")}}}),e("button",{staticClass:"btn btn-arrow slider-button-next",on:{click:function(e){return t.onSliderButtonClick("next")}}})]),e("div",{ref:"track",staticClass:"slider-track",style:{transform:"translate3d(".concat(t.currentPosition,"px, 0, 0)")},on:{mousedown:t.onMouseDown,mouseup:t.onMouseUp,touchstart:t.onTouchStart,touchend:t.onTouchEnd}},t._l(t.slides,(function(n,o){return e("div",{key:o,ref:"slide",refInFor:!0,staticClass:"slide banner-slide"},[e("img",{staticClass:"image-banner",style:{width:"".concat(t.slideWidth,"px")},attrs:{src:r(446)("./".concat(n.sliderNumber))}})])})),0)]):t._e()}),[],!1,null,"400bd1ca",null);e.default=component.exports},353:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n={STATE_DISABLED:0,STATE_ENABLED:1,LABEL_EARLY_NOVEMBER_PRICE_INCREASE_WARNING:2,LABEL_LATE_NOVEMBER_PRICE_INCREASE_WARNING:3,STATE_SLIDER_UPDATE:4,STATE_MODAL_DED_FIRST_UPDATE_EARLY_DECEMBER:4,LABEL_EARLY_DECEMBER_PRICE_INCREASE_WARNING:5,LABEL_LAST_CHANCE_WARNING:6,STATE_MODAL_DED_SECOND_UPDATE:7,STATE_CHRISTMAS:20,STATE_OLD_NEW_YEAR:30}},715:function(t,e,r){t.exports={}},728:function(t,e,r){t.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.