PageSourceSearch

https://c-patex.com/_nuxt/da4a022.js

js c-patex.com collected 2026-10-06 08:55:57 UTC 13,167 bytes, 3 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1440:function(t,e,n){"use strict";n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return $}));var r=n(5);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function c(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(t,e,n){return Math.max(Math.min(t,n),e)}function f(){return Date.now()}function m(t,e){this.create=function(){return window.setTimeout(t,e)},this.stop=function(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)},this.start=function(){this.timer||(this.timer=this.create())},this.set=function(n){var r=n||e;this.timer=window.setTimeout(t,r)},this.timer=this.create()}function v(t,e){var n;return(n=t<0?(t+e)%e:t%e)!=n?0:n}function y(t,e){var n=e.children||e.componentOptions.children||e.text;return t(e.componentOptions.Ctor,e.data,n)}var S=Object.assign||function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n){n=Object(n);for(var r=Object.keys(Object(n)),o=0,h=r.length;o<h;o++){var l=r[o],desc=Object.getOwnPropertyDescriptor(n,l);void 0!==desc&&desc.enumerable&&(e[l]=n[l])}}}return e};var w=Math.sign||function(t){return t<0?-1:t>0?1:0};function T(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.$scopedSlots.default?t.$scopedSlots.default(e)||[]:t.$slots.default||[]}var x=new r.default,D={name:"Hooper",provide:function(){return{$hooper:this}},props:{itemsToShow:{default:1,type:Number},itemsToSlide:{default:1,type:Number},initialSlide:{default:0,type:Number},infiniteScroll:{default:!1,type:Boolean},centerMode:{default:!1,type:Boolean},vertical:{default:!1,type:Boolean},rtl:{default:null,type:Boolean},autoPlay:{default:!1,type:Boolean},playSpeed:{default:2e3,type:Number},mouseDrag:{default:!0,type:Boolean},touchDrag:{default:!0,type:Boolean},wheelControl:{default:!0,type:Boolean},keysControl:{default:!0,type:Boolean},shortDrag:{default:!0,type:Boolean},transition:{default:300,type:Number},hoverPause:{default:!0,type:Boolean},trimWhiteSpace:{default:!1,type:Boolean},settings:{default:function(){return{}},type:Object},group:{type:String,default:null}},data:function(){return{isDragging:!1,isSliding:!1,isTouch:!1,isHover:!1,isFocus:!1,initialized:!1,slideWidth:0,slideHeight:0,slidesCount:0,trimStart:0,trimEnd:1,currentSlide:null,timer:null,defaults:{},breakpoints:{},delta:{x:0,y:0},config:{}}},computed:{slideBounds:function(){var t=this.config,e=this.currentSlide,n=t.itemsToShow;return{lower:t.centerMode?Math.ceil(e-n/2):e,upper:t.centerMode?Math.floor(e+n/2):Math.floor(e+n-1)}},trackTransform:function(){var t=this.config,e=t.infiniteScroll,n=t.vertical,r=t.rtl,o=t.centerMode,h=r?-1:1,l=n?this.slideHeight:this.slideWidth,c=n?this.containerHeight:this.containerWidth,d=(n?this.delta.y:this.delta.x)+h*((o?(c-l)/2:0)-(e?l*this.slidesCount:0)-this.currentSlide*l);return n?"transform: translate(0, ".concat(d,"px);"):"transform: translate(".concat(d,"px, 0);")},trackTransition:function(){return this.initialized&&this.isSliding?"transition: ".concat(this.config.transition,"ms"):""}},watch:{group:function(t,e){t!==e&&(x.$off("slideGroup:".concat(e),this._groupSlideHandler),this.addGroupListeners())},autoPlay:function(t,e){t!==e&&this.restartTimer()}},methods:{slideTo:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.isSliding&&t!==this.currentSlide){this.$emit("beforeSlide",{currentSlide:this.currentSlide,slideTo:c});var r=this.config,o=r.infiniteScroll,h=r.transition,l=this.currentSlide,c=o?t:d(t,this.trimStart,this.slidesCount-this.trimEnd);this.group&&n&&x.$emit("slideGroup:".concat(this.group),t),this.currentSlide=c,this.isSliding=!0,window.setTimeout((function(){e.isSliding=!1,e.currentSlide=v(c,e.slidesCount)}),h),this.$emit("slide",{currentSlide:this.currentSlide,slideFrom:l})}},slideNext:function(){this.slideTo(this.currentSlide+this.config.itemsToSlide)},slidePrev:function(){this.slideTo(this.currentSlide-this.config.itemsToSlide)},initEvents:function(){null===this.defaults.rtl&&(this.defaults.rtl="rtl"===getComputedStyle(this.$el).direction),this.$props.autoPlay&&this.initAutoPlay(),this.config.mouseDrag&&this.$refs.list.addEventListener("mousedown",this.onDragStart),this.config.touchDrag&&this.$refs.list.addEventListener("touchstart",this.onDragStart,{passive:!0}),this.config.keysControl&&this.$el.addEventListener("keydown",this.onKeypress),this.config.wheelControl&&(this.lastScrollTime=f(),this.$el.addEventListener("wheel",this.onWheel,{passive:!1})),window.addEventListener("resize",this.update)},getCurrentSlideTimeout:function(){var t=v(this.currentSlide,this.slidesCount);return T(this)[t].componentOptions.propsData.duration},initAutoPlay:function(){var t=this;this.timer=new m((function(){if(t.isSliding||t.isDragging||t.isHover&&t.config.hoverPause||t.isFocus||!t.$props.autoPlay)t.timer.set(t.getCurrentSlideTimeout());else{if(t.currentSlide===t.slidesCount-1&&!t.config.infiniteScroll)return t.slideTo(0),void t.timer.set(t.getCurrentSlideTimeout());t.slideNext(),t.timer.set(t.getCurrentSlideTimeout())}}),this.getCurrentSlideTimeout())},initDefaults:function(){this.breakpoints=this.settings.breakpoints,this.defaults=S({},this.$props,this.settings),this.config=S({},this.defaults)},update:function(){this.breakpoints&&this.updateConfig(),this.updateWidth(),this.updateTrim(),this.$emit("updated",{containerWidth:this.containerWidth,containerHeight:this.containerHeight,slideWidth:this.slideWidth,slideHeight:this.slideHeight,settings:this.config})},updateTrim:function(){var t=this.config,e=t.trimWhiteSpace,n=t.itemsToShow,r=t.centerMode,o=t.infiniteScroll;if(!e||o)return this.trimStart=0,void(this.trimEnd=1);this.trimStart=r?Math.floor((n-1)/2):0,this.trimEnd=r?Math.ceil(n/2):n},updateWidth:function(){var rect=this.$el.getBoundingClientRect();this.containerWidth=rect.width,this.containerHeight=rect.height,this.config.vertical?this.slideHeight=this.containerHeight/this.config.itemsToShow:this.slideWidth=this.containerWidth/this.config.itemsToShow},updateConfig:function(){var t,e=this;
2Object.keys(this.breakpoints).sort((function(a,b){return b-a})).some((function(n){if(t=window.matchMedia("(min-width: ".concat(n,"px)")).matches)return e.config=S({},e.config,e.defaults,e.breakpoints[n]),!0})),t||(this.config=S(this.config,this.defaults))},restartTimer:function(){var t=this;this.$nextTick((function(){null===t.timer&&t.$props.autoPlay?t.initAutoPlay():t.timer&&(t.timer.stop(),t.$props.autoPlay&&(t.timer.set(t.getCurrentSlideTimeout()),t.timer.start()))}))},restart:function(){var t=this;this.$nextTick((function(){t.update()}))},onDragStart:function(t){this.isTouch="touchstart"===t.type,(this.isTouch||0===t.button)&&(this.startPosition={x:0,y:0},this.endPosition={x:0,y:0},this.isDragging=!0,this.startPosition.x=this.isTouch?t.touches[0].clientX:t.clientX,this.startPosition.y=this.isTouch?t.touches[0].clientY:t.clientY,document.addEventListener(this.isTouch?"touchmove":"mousemove",this.onDrag),document.addEventListener(this.isTouch?"touchend":"mouseup",this.onDragEnd))},isInvalidDirection:function(t,e){return this.config.vertical?!!this.config.vertical&&Math.abs(e)<=Math.abs(t):Math.abs(t)<=Math.abs(e)},onDrag:function(t){if(!this.isSliding){this.endPosition.x=this.isTouch?t.touches[0].clientX:t.clientX,this.endPosition.y=this.isTouch?t.touches[0].clientY:t.clientY;var e=this.endPosition.x-this.startPosition.x,n=this.endPosition.y-this.startPosition.y;this.isInvalidDirection(e,n)||(this.delta.y=n,this.delta.x=e,this.isTouch||t.preventDefault())}},onDragEnd:function(){var t=this.config.shortDrag?.5:.15;if(this.isDragging=!1,this.config.vertical){var e=Math.round(Math.abs(this.delta.y/this.slideHeight)+t);this.slideTo(this.currentSlide-w(this.delta.y)*e)}if(!this.config.vertical){var n=(this.config.rtl?-1:1)*w(this.delta.x),r=Math.round(Math.abs(this.delta.x/this.slideWidth)+t);this.slideTo(this.currentSlide-n*r)}this.delta.x=0,this.delta.y=0,document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.onDrag),document.removeEventListener(this.isTouch?"touchend":"mouseup",this.onDragEnd),this.restartTimer()},onTransitionend:function(){this.isSliding=!1,this.$emit("afterSlide",{currentSlide:this.currentSlide})},onKeypress:function(t){var e=t.key;return e.startsWith("Arrow")&&t.preventDefault(),this.config.vertical?("ArrowUp"===e&&this.slidePrev(),void("ArrowDown"===e&&this.slideNext())):this.config.rtl?("ArrowRight"===e&&this.slidePrev(),void("ArrowLeft"===e&&this.slideNext())):("ArrowRight"===e&&this.slideNext(),void("ArrowLeft"===e&&this.slidePrev()))},onWheel:function(t){if(t.preventDefault(),!(f()-this.lastScrollTime<200)){this.lastScrollTime=f();var e=t.wheelDelta||-t.deltaY,n=w(e);-1===n&&this.slideNext(),1===n&&this.slidePrev()}},addGroupListeners:function(){var t=this;this.group&&(this._groupSlideHandler=function(e){t.slideTo(e,!1)},x.$on("slideGroup:".concat(this.group),this._groupSlideHandler))}},created:function(){this.initDefaults()},mounted:function(){var t=this;this.initEvents(),this.addGroupListeners(),this.$nextTick((function(){t.update(),t.slideTo(t.config.initialSlide||0),setTimeout((function(){t.$emit("loaded"),t.initialized=!0}),t.transition)}))},beforeDestroy:function(){window.removeEventListener("resize",this.update),this.group&&x.$off("slideGroup:".concat(this.group),this._groupSlideHandler),this.timer&&this.timer.stop()},render:function(t){var e=this,body=O.call(this,t);return t("section",{class:{hooper:!0,"is-vertical":this.config.vertical,"is-rtl":this.config.rtl},attrs:{tabindex:"0"},on:{focusin:function(){return e.isFocus=!0},focusout:function(){return e.isFocus=!1},mouseover:function(){return e.isHover=!0},mouseleave:function(){return e.isHover=!1}}},body)}};function P(t){for(var e=T(this,this.$data),n=e.length,r=0,o=[],i=0;i<n;i++){var h=e[i],d=h.componentOptions&&h.componentOptions.Ctor;d&&"HooperSlide"===d.options.name&&(h.componentOptions.propsData.index=r,h.data.key=r,h.key=r,h.data.props=l({},h.data.props||{},{isClone:!1,index:r++}),o.push(h))}return this.slidesCount=o.length,this.config.infiniteScroll&&(o=function(t,e){for(var n=[],r=[],o=e.length,i=0;i<o;i++){var h=e[i],l=y(t,h),d=i-o;l.data.key="before_".concat(i),l.key=l.data.key,l.componentOptions.propsData.index=d,l.data.props={index:d,isClone:!0},n.push(l);var f=y(t,h);d=i+o,f.data.key="after_".concat(d),f.componentOptions.propsData.index=d,f.key=f.data.key,f.data.props={index:d,isClone:!0},r.push(f)}return[].concat(n,c(e),r)}(t,o)),t("ul",{class:{"hooper-track":!0,"is-dragging":this.isDragging},style:this.trackTransform+this.trackTransition,ref:"track",on:{transitionend:this.onTransitionend}},o)}function O(t){var e=P.call(this,t),n=this.$slots["hooper-addons"]||[],r=t("div",{class:"hooper-liveregion hooper-sr-only",attrs:{"aria-live":"polite","aria-atomic":"true"}},"Item ".concat(this.currentSlide+1," of ").concat(this.slidesCount));return[t("div",{class:"hooper-list",ref:"list"},[e].concat(c(n),[r]))]}var $={name:"HooperSlide",inject:["$hooper"],props:{isClone:{type:Boolean,default:!1},index:{type:Number,required:!0},duration:{type:Number,default:null}},computed:{style:function(){var t=this.$hooper||{},e=t.config,n=t.slideHeight,r=t.slideWidth;return"undefined"==typeof window?"":e.vertical?"height: ".concat(n,"px"):"width: ".concat(r,"px")},isActive:function(){var t=this.$hooper.slideBounds,e=t.upper,n=t.lower;return this.index>=n&&this.index<=e},isPrev:function(){var t=this.$hooper.slideBounds.lower,e=this.$hooper.config.itemsToSlide;return this.index<t&&this.index>=t-e},isNext:function(){var t=this.$hooper.slideBounds.upper,e=this.$hooper.config.itemsToSlide;return this.index>t&&this.index<=t+e},isCurrent:function(){return this.index===this.$hooper.currentSlide}},render:function(t){var e={"hooper-slide":!0,"is-clone":this.isClone,"is-active":this.isActive,"is-prev":this.isPrev,"is-next":this.isNext,"is-current":this.isCurrent},n=T(this);return t("li",{class:e,style:this.style,attrs:{"aria-hidden":!this.isActive}},n)}}}}]);
3//# sourceMappingURL=da4a022.js.map

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.