vendor: 5,769 bytes, lines 1-15
1 2; /* Start:"a:4:{s:4:"full";s:71:"/local/templates/ezetek/js/swiper/swiper-bundle.min.js?1766590344154008";s:6:"source";s:54:"/local/templates/ezetek/js/swiper/swiper-bundle.min.js";s:3:"min";s:54:"/local/templates/ezetek/js/swiper/swiper-bundle.min.js";s:3:"map";s:58:"/local/templates/ezetek/js/swiper/swiper-bundle.min.js.map";}"*/ 3/** 4 * Swiper 11.2.6 5 * Most modern mobile touch slider and framework with hardware accelerated transitions 6 * https://swiperjs.com 7 * 8 * Copyright 2014-2025 Vladimir Kharlampidi 9 * 10 * Released under the MIT License 11 * 12 * Released on: March 19, 2025 13 */ 14 15var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={});const i=["__proto__","constructor","prototype"];Object.keys(a).filter((e=>i.indexOf(e)<0)).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let a=1;a<arguments.length;a+=1){const i=a<0||arguments.length<=a?void 0:arguments[a];if(null!=i&&(s=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,a=s.length;t<a;t+=1){const a=s[t],r=Object.getOwnPropertyDescriptor(i,a);void 0!==r&&r.enumerable&&(c(e[a])&&c(i[a])?i[a].__swiper__?e[a]=i[a]:p(e[a],i[a]):!c(e[a])&&c(i[a])?(e[a]={},i[a].__swiper__?e[a]=i[a]:p(e[a],i[a])):e[a]=i[a])}}}var s;return e}function u(e,t,s){e.style.setProperty(t,s)}function m(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){void 0===t&&(t="");const s=r(),a=[...e.children];return s.HTMLSlotElement&&e instanceof HTMLSlotElement&&a.push(...e.assignedElements()),t?a.filter((e=>e.matches(t))):a}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function E(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function x(e,t){t&&e.addEventListener("transitionend",(function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const a=r();
vendor: 4,120 bytes, line 15
15return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function T(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function M(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let C,P,L;function I(){return C||(C=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),C}function z(e){return void 0===e&&(e={}),P||(P=function(e){let{userAgent:t}=void 0===e?{}:e;const s=I(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),m=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!h&&(l.os="android",l.android=!0),(p||m||u)&&(l.os="ios",l.ios=!0),l}(e)),P}function A(){return L||(L=function(){const e=r(),t=z();let s=!1;function a(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,a]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));s=e<16||16===e&&a<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=a();return{isSafari:s||n,needPerspectiveFix:s,need3dFix:n||i&&t.ios,isWebView:i}}()),L}var $={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(a,r)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),a=e):(t=r[0].events,s=r[0].data,a=r[0].context||e),s.unshift(a);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};const k=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const O=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const D=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);
vendor: 3,160 bytes, line 15
15if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},G=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},X=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,r=[s-t];return r.push(...Array.from({length:t}).map(((e,t)=>s+a+t))),void e.slides.forEach(((t,s)=>{r.includes(t.column)&&G(e,s)}))}const r=i+a-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=r+t;a+=1){const t=(a%s+s)%s;(t<i||t>r)&&G(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(r+t,s-1);a+=1)a!==i&&(a>r||a<i)&&G(e,a)};var H={updateSize:function(){const e=this;let t,s;const a=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a.clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a.clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(b(a,"padding-left")||0,10)-parseInt(b(a,"padding-right")||0,10),s=s-parseInt(b(a,"padding-top")||0,10)-parseInt(b(a,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t,s){return parseFloat(t.getPropertyValue(e.getDirectionLabel(s))||0)}const s=e.params,{wrapperEl:a,slidesEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&s.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=f(i,`.${e.params.slideClass}, swiper-slide`),p=o?e.virtual.slides.length:c.length;let m=[];const h=[],g=[];let v=s.slidesOffsetBefore;"function"==typeof v&&(v=s.slidesOffsetBefore.call(e));let w=s.slidesOffsetAfter;"function"==typeof w&&(w=s.slidesOffsetAfter.call(e));const y=e.snapGrid.length,E=e.slidesGrid.length;let x=s.spaceBetween,T=-v,M=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*r:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,c.forEach((e=>{n?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(u(a,"--swiper-centered-offset-before",""),u(a,"--swiper-centered-offset-after",""));const P=s.grid&&s.grid.rows>1&&e.grid;let L;P?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const I="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let a=0;a<p;a+=1){let i;if(L=0,c[a]&&(i=c[a]),P&&e.grid.updateSlide(a,i,c),!c[a]||"none"!==b(i,"display")){if("auto"===s.slidesPerView){I&&(c[a].style[e.getDirectionLabel("width")]="");const r=getComputedStyle(i),n=i.style.transform,l=i.style.webkitTransform;if(n&&(i.style.transform="none"),l&&(i.style.webkitTransform="none"),s.roun
vendor: 19,503 bytes, line 15
15dLengths)L=e.isHorizontal()?S(i,"width",!0):S(i,"height",!0);else{const e=t(r,"width"),s=t(r,"padding-left"),a=t(r,"padding-right"),n=t(r,"margin-left"),l=t(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)L=e+n+l;else{const{clientWidth:t,offsetWidth:r}=i;L=e+s+a+n+l+(r-t)}}n&&(i.style.transform=n),l&&(i.style.webkitTransform=l),s.roundLengths&&(L=Math.floor(L))}else L=(r-(s.slidesPerView-1)*x)/s.slidesPerView,s.roundLengths&&(L=Math.floor(L)),c[a]&&(c[a].style[e.getDirectionLabel("width")]=`${L}px`);c[a]&&(c[a].swiperSlideSize=L),g.push(L),s.centeredSlides?(T=T+L/2+M/2+x,0===M&&0!==a&&(T=T-r/2-x),0===a&&(T=T-r/2-x),Math.abs(T)<.001&&(T=0),s.roundLengths&&(T=Math.floor(T)),C%s.slidesPerGroup==0&&m.push(T),h.push(T)):(s.roundLengths&&(T=Math.floor(T)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&m.push(T),h.push(T),T=T+L+x),e.virtualSize+=L+x,M=L,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+w,n&&l&&("slide"===s.effect||"coverflow"===s.effect)&&(a.style.width=`${e.virtualSize+x}px`),s.setWrapperSize&&(a.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),P&&e.grid.updateWrapperSize(L,m),!s.centeredSlides){const t=[];for(let a=0;a<m.length;a+=1){let i=m[a];s.roundLengths&&(i=Math.floor(i)),m[a]<=e.virtualSize-r&&t.push(i)}m=t,Math.floor(e.virtualSize-r)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-r)}if(o&&s.loop){const t=g[0]+x;if(s.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),i=t*s.slidesPerGroup;for(let e=0;e<a;e+=1)m.push(m[m.length-1]+i)}for(let a=0;a<e.virtual.slidesBefore+e.virtual.slidesAfter;a+=1)1===s.slidesPerGroup&&m.push(m[m.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===m.length&&(m=[0]),0!==x){const t=e.isHorizontal()&&n?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(s.cssMode&&!s.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${x}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=e>r?e-r:0;m=m.map((e=>e<=0?-v:e>t?t+w:e))}if(s.centerInsufficientSlides){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=(s.slidesOffsetBefore||0)+(s.slidesOffsetAfter||0);if(e+t<r){const s=(r-e-t)/2;m.forEach(((e,t)=>{m[t]=e-s})),h.forEach(((e,t)=>{h[t]=e+s}))}}if(Object.assign(e,{slides:c,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){u(a,"--swiper-centered-offset-before",-m[0]+"px"),u(a,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),m.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==E&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(o||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);p<=s.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a<t.length;a+=1)t[a].swiperSlideOffset=(e.isHorizontal()?t[a].offsetLeft:t[a].offsetTop)-s-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<a.length;e+=1){const o=a[e];let d=o.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(d-=a[0].swiperSlideOffset);const c=(n+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),p=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),u=-(n-d),m=u+t.slidesSizesGrid[e],h=u>=0&&u<=t.size-t.slidesSizesGrid[e],f=u>=0&&u<t.size-1||m>1&&m<=t.size||u<=0&&m>=t.size;f&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e)),k(o,f,s.slideVisibleClass),k(o,h,s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>f(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.find((e=>e.column===i)),c=t.find((e=>e.column===i+1)),d=t.find((e=>e.column===i-1))):o=t[i];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach((e=>{O(e,e===o,s.slideActiveClass),O(e,e===c,s.slideNextClass),O(e,e===d,s.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?a>=t[e]&&a<t[e+1]-(t[e+1]-t[e])/2?i=e:a>=t[e]&&a<t[e+1]&&(i=e+1):a>=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled&&i.loop)u=c(d);else if(p){const e=t.slides.find((e=>e.column===d));let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&X(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)}));let r,n=!1;if(i)for(let e=0;e<s.slides.length;e+=1)if(s.slides[e]===i){n=!0,r=e;break}if(!i||!n)return s.clickedSlide=void 0,void(s.clickedIndex=void 0);s.clickedSlide=i,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=r,a.slideToClickedSlide&&void 0!==s.clickedIndex&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}};var Y={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:a,wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=d(i,e);return r+=this.cssOverflowAdjustment(),s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,wrapperEl:r,progress:n}=s;let l,o=0,d=0;s.isHorizontal()?o=a?-e:e:d=e,i.roundLengths&&(o=Math.floor(o),d=Math.floor(d)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:d,i.cssMode?r[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-d:i.virtualTranslate||(s.isHorizontal()?o-=s.cssOverflowAdjustment():d-=s.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${d}px, 0px)`);const c=s.maxTranslate()-s.minTranslate();l=0===c?0:(e-s.minTranslate())/c,l!==n&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===a&&(a=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,s&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function B(e){let{swiper:t,runCallbacks:s,direction:a,step:i}=e;const{activeIndex:r,previousIndex:n}=t;let l=a;if(l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${i}`),s&&r!==n){if("reset"===l)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var N={slideTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:f}=r;if(!f&&!a&&!i||r.destroyed||r.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,n);let v=g+Math.floor((n-g)/r.params.slidesPerGroup);v>=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*w),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(u?w>r.translate&&w>r.minTranslate():w<r.translate&&w<r.minTranslate()))return!1;if(!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n<p?"prev":"reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&i)&&(u&&-w===r.translate||!u&&w===r.translate))return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(w),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?w:-w;if(0===t)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=s}))):h[e?"scrollLeft":"scrollTop"]=s,y&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}));else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}const E=A().isSafari;return y&&!i&&E&&r.isElement&&r.virtual.update(!1,!1,n),r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const r=i.grid&&i.params.grid&&i.params.grid.rows>1;let n=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)n+=i.virtual.slidesBefore;else{let e;if(r){const t=n*i.params.grid.rows;e=i.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=i.getSlideIndexByData(n);const t=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:s}=i.params;let l=i.params.slidesPerView;"auto"===l?l=i.slidesPerViewDynamic():(l=Math.ceil(parseFloat(i.params.slidesPerView,10)),s&&l%2==0&&(l+=1));let o=t-e<l;if(s&&(o=o||e<Math.ceil(l/2)),a&&s&&"auto"!==i.params.slidesPerView&&!r&&(o=!1),o){const a=s?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:a,slideTo:!0,activeSlideIndex:"next"===a?e+1:e-t+1,slideRealIndex:"next"===a?i.realIndex:void 0})}if(r){const e=n*i.params.grid.rows;n=i.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else n=i.getSlideIndexByData(n)}return requestAnimationFrame((()=>{i.slideTo(n,t,s,a)})),i},slideNext:function(e,t,s){void 0===t&&(t=!0);const a=this,{enabled:i,params:r,animating:n}=a;if(!i||a.destroyed)return a;void 0===e&&(e=a.params.speed);let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<r.slidesPerGroupSkip?1:l,d=a.virtual&&r.virtual.enabled;if(r.loop){if(n&&!d&&r.loopPreventsSliding)return!1;if(a.loopFix({direction:"next"}),a._clientLeft=a.wrapperEl.clientLeft,a.activeIndex===a.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{a.slideTo(a.activeIndex+o,e,t,s)})),!0}return r.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===t&&(t=!0);const a=this,{params:i,snapGrid:r,slidesGrid:n,rtlTranslate:l,enabled:o,animating:d}=a;if(!o||a.destroyed)return a;void 0===e&&(e=a.params.speed);const c=a.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(l?a.translate:-a.translate),m=r.map((e=>p(e))),h=i.freeMode&&i.freeMode.enabled;let f=r[m.indexOf(u)-1];if(void 0===f&&(i.cssMode||h)){let e;r.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(f=h?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=n.indexOf(f),g<0&&(g=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-a.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return i.loop&&0===a.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{a.slideTo(g,e,t,s)})),!0):a.slideTo(g,e,t,s)},slideReset:function(e,t,s){void 0===t&&(t=!0);const a=this;if(!a.destroyed)return void 0===e&&(e=a.params.speed),a.slideTo(a.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;const n=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var R={loopCreate:function(e,t){const s=this,{params:a,slidesEl:i}=s;if(!a.loop||s.virtual&&s.params.virtual.enabled)return;const r=()=>{f(i,`.${a.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},n=s.grid&&a.grid&&a.grid.rows>1,l=a.slidesPerGroup*(n?a.grid.rows:1),o=s.slides.length%l!=0,d=n&&s.slides.length%a.grid.rows!=0,c=e=>{for(let t=0;t<e;t+=1){const e=s.isElement?v("swiper-slide",[a.slideBlankClass]):v("div",[a.slideClass,a.slideBlankClass]);s.slidesEl.append(e)}};if(o){if(a.loopAddBlankSlides){c(l-s.slides.length%l),s.recalcSlides(),s.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
15not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(d){if(a.loopAddBlankSlides){c(a.grid.rows-s.slides.length%a.grid.rows),s.recalcSlides(),s.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();s.loopFix({slideRealIndex:e,direction:a.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:s=!0,direction:a,setTranslate:i,activeSlideIndex:r,initial:n,byController:l,byMousewheel:o}=void 0===e?{}:e;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:c,allowSlidePrev:p,allowSlideNext:u,slidesEl:m,params:h}=d,{centeredSlides:f,initialSlide:v}=h;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&h.virtual.enabled)return s&&(h.centeredSlides||0!==d.snapIndex?h.centeredSlides&&d.snapIndex<h.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0):d.slideTo(d.virtual.slides.length,0,!1,!0)),d.allowSlidePrev=p,d.allowSlideNext=u,void d.emit("loopFix");let w=h.slidesPerView;"auto"===w?w=d.slidesPerViewDynamic():(w=Math.ceil(parseFloat(h.slidesPerView,10)),f&&w%2==0&&(w+=1));const b=h.slidesPerGroupAuto?w:h.slidesPerGroup;let y=b;y%b!=0&&(y+=b-y%b),y+=h.loopAdditionalSlides,d.loopedSlides=y;const E=d.grid&&h.grid&&h.grid.rows>1;c.length<w+y||"cards"===d.params.effect&&c.length<w+2*y?g("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):E&&"row"===h.grid.fill&&g("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const x=[],S=[],T=E?Math.ceil(c.length/h.grid.rows):c.length,M=n&&T-v<w&&!f;let C=M?v:d.activeIndex;void 0===r?r=d.getSlideIndex(c.find((e=>e.classList.contains(h.slideActiveClass)))):C=r;const P="next"===a||!a,L="prev"===a||!a;let I=0,z=0;const A=(E?c[r].column:r)+(f&&void 0===i?-w/2+.5:0);if(A<y){I=Math.max(y-A,b);for(let e=0;e<y-A;e+=1){const t=e-Math.floor(e/T)*T;if(E){const e=T-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&x.push(t)}else x.push(T-t-1)}}else if(A+w>T-y){z=Math.max(A-(T-2*y),b),M&&(z=Math.max(z,w-T+v+1));for(let e=0;e<z;e+=1){const t=e-Math.floor(e/T)*T;E?c.forEach(((e,s)=>{e.column===t&&S.push(s)})):S.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame((()=>{d.__preventObserver__=!1})),"cards"===d.params.effect&&c.length<w+2*y&&(S.includes(r)&&S.splice(S.indexOf(r),1),x.includes(r)&&x.splice(x.indexOf(r),1)),L&&x.forEach((e=>{c[e].swiperLoopMoveDOM=!0,m.prepend(c[e]),c[e].swiperLoopMoveDOM=!1})),P&&S.forEach((e=>{c[e].swiperLoopMoveDOM=!0,m.append(c[e]),c[e].swiperLoopMoveDOM=!1})),d.recalcSlides(),"auto"===h.slidesPerView?d.updateSlides():E&&(x.length>0&&L||S.length>0&&P)&&d.slides.forEach(((e,t)=>{d.grid.updateSlide(t,e,d.slides)})),h.watchSlidesProgress&&d.updateSlidesOffset(),s)if(x.length>0&&L){if(void 0===t){const e=d.slidesGrid[C],t=d.slidesGrid[C+I]-e;o?d.setTranslate(d.translate-t):(d.slideTo(C+Math.ceil(I),0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(i){const e=E?x.length/h.grid.rows:x.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(S.length>0&&P)if(void 0===t){const e=d.slidesGrid[C],t=d.slidesGrid[C-z]-e;o?d.setTranslate(d.translate-t):(d.slideTo(C-z,0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=E?S.length/h.grid.rows:S.length;d.slideTo(d.activeIndex-e,0,!1,!0)}if(d.allowSlidePrev=p,d.allowSlideNext=u,d.controller&&d.controller.control&&!l){const e={slideRealIndex:t,direction:a,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&s})})):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...e,slideTo:d.controller.control.params.slidesPerView===h.slidesPerView&&s})}d.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||!s||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const a=[];
vendor: 3,381 bytes, line 15
15e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),a.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function q(e,t,s){const a=r(),{params:i}=e,n=i.edgeSwipeDetection,l=i.edgeSwipeThreshold;return!n||!(s<=l||s>=a.innerWidth-l)||"prevent"===n&&(t.preventDefault(),!0)}function _(e){const t=this,s=a();let i=e;i.originalEvent&&(i=i.originalEvent);const n=t.touchEventsData;if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void q(t,i,i.targetTouches[0].pageX);const{params:l,touches:d,enabled:c}=t;if(!c)return;if(!l.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=i.target;if("wrapper"===l.touchEventsTarget&&!function(e,t){const s=r();let a=t.contains(e);!a&&s.HTMLSlotElement&&t instanceof HTMLSlotElement&&(a=[...t.assignedElements()].includes(e),a||(a=function(e,t){const s=[t];for(;s.length>0;){const t=s.shift();if(e===t)return!0;s.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return a}(p,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!l.noSwipingClass&&""!==l.noSwipingClass,m=i.composedPath?i.composedPath():i.path;u&&i.target&&i.target.shadowRoot&&m&&(p=m[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!(!i.target||!i.target.shadowRoot);if(l.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(h,p):p.closest(h)))return void(t.allowClick=!0);if(l.swipeHandler&&!p.closest(l.swipeHandler))return;d.currentX=i.pageX,d.currentY=i.pageY;const g=d.currentX,v=d.currentY;if(!q(t,i,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,n.touchStartTime=o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1);let w=!0;p.matches(n.focusableElements)&&(w=!1,"SELECT"===p.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==p&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!p.matches(n.focusableElements))&&s.activeElement.blur();const b=w&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!b||p.isContentEditable||i.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function F(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:d}=s;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==i.touchId)return;if(p.pointerId!==i.pointerId)return}if("touchmove"===p.type){if(c=[...p.changedTouches].find((e=>e.identifier===i.touchId)
vendor: 5,269 bytes, line 15
15),!c||c.identifier!==i.touchId)return}else c=p;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",p));const u=c.pageX,m=c.pageY;if(p.preventedByNestedSwiper)return n.startX=u,void(n.startY=m);if(!s.allowTouchMove)return p.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m}),i.touchStartTime=o()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(l&&(u>n.startX&&-s.translate<=s.maxTranslate()||u<n.startX&&-s.translate>=s.minTranslate()))return;if(!l&&(u<n.startX&&s.translate<=s.maxTranslate()||u>n.startX&&s.translate>=s.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==p.target&&"mouse"!==p.pointerType&&t.activeElement.blur(),t.activeElement&&p.target===t.activeElement&&p.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",p),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=m;const h=n.currentX-n.startX,f=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(h**2+f**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:h*h+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",p),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===p.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation();let g=s.isHorizontal()?h:f,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),n.diff=g,g*=r.touchRatio,l&&(g=-g,v=-v);const w=s.touchesDirection;s.swipeDirection=g>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const b=s.params.loop&&!r.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(b&&y&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});s.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",p)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&w!==s.touchesDirection&&b&&y&&Math.abs(g)>=1)return Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",p),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let E=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),g>0?(b&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+g)**x))):g<0&&(b&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-g)**x))),E&&(p.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function
vendor: 4,379 bytes, line 15
15V(e){const t=this,s=t.touchEventsData;let a,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(a=[...i.changedTouches].find((e=>e.identifier===s.touchId)),!a||a.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(i.pointerId!==s.pointerId)return;a=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:n,rtlTranslate:d,slidesGrid:c,enabled:p}=t;if(!p)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=o(),m=u-s.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),m<300&&u-s.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(s.lastClickTime=o(),l((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===n.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=r.followFinger?d?t.translate:-t.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const f=h>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==c[e+t]?(f||h>=c[e]&&h<c[e+t])&&(g=e,v=c[e+t]-c[e]):(f||h>=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let w=null,b=null;r.rewind&&(t.isBeginning?b=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const y=(h-c[g])/v,E=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(m>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?w:g+E):t.slideTo(g)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(g+E):null!==b&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(g+E):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==w?w:g+E),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g))}}function W(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=n&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function j(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function U(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function K(e){const t=this;D(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 5,574 bytes, line 15
15)}function Z(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Q=(e,t)=>{const s=a(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(s[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),s[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[d]("touchend",e.onTouchEnd,{passive:!0}),s[d]("pointerup",e.onTouchEnd,{passive:!0}),s[d]("pointercancel",e.onTouchEnd,{passive:!0}),s[d]("touchcancel",e.onTouchEnd,{passive:!0}),s[d]("pointerout",e.onTouchEnd,{passive:!0}),s[d]("pointerleave",e.onTouchEnd,{passive:!0}),s[d]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[d]("click",e.onClick,!0),i.cssMode&&n[d]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",W,!0):e[c]("observerUpdate",W,!0),r[d]("load",e.onLoad,{capture:!0}))};const J=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ee={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function te(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(!0===e[a]&&(e[a]={enabled:!0}),"navigation"===a&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),a in e&&"enabled"in i?("object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),p(t,s)):p(t,s)):p(t,s)}}const se={eventsEmitter:$,update:H,translate:Y,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),B({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),B({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:N,loop:R,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=_.bind(e),e.onTouchMove=F.bind(e),e.onTouchEnd=V.bind(e),e.onDocumentTouchStart=Z.bind(e),t.cssMode&&(e.onScroll=U.bind(e)),e.onClick=j.bind(e),e.onLoad=K.bind(e),Q(e,"on")},detachEvents:function(){Q(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:i,el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const l=a(),o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,d=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:l.querySelector(i.breakpointsBase),c=e.getBreakp
vendor: 3,979 bytes, line 15
15oint(n,o,d);if(!c||e.currentBreakpoint===c)return;const u=(c in n?n[c]:void 0)||e.originalParams,m=J(e,i),h=J(e,u),f=e.params.grabCursor,g=u.grabCursor,v=i.enabled;m&&!h?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&h&&(r.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!g?e.unsetGrabCursor():!f&&g&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===u[t])return;const s=i[t]&&i[t].enabled,a=u[t]&&u[t].enabled;s&&!a&&e[t].disable(),!s&&a&&e[t].enable()}));const w=u.direction&&u.direction!==i.direction,b=i.loop&&(u.slidesPerView!==i.slidesPerView||w),y=i.loop;w&&s&&e.changeDirection(),p(e.params,u);const E=e.params.enabled,x=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!E?e.disable():!v&&E&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),s&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&x?(e.loopCreate(t),e.updateSlides()):y&&!x&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,el:i,device:r}=e,n=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ae={};class ie{constructor(){let e,t;for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=p({},t),e&&!t.el&&(t.el=e);const n=a();if(t.el&&"string"==typeof t.el&&n.querySelectorAll(t.el).length>1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const a=p({},t,{el:s});e.push(new ie(a))})),e}const l=this;l.__swiper__=!0,l.support=I(),l.device=z({userAgent:t.userAgent}),l.browser=A(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const o={};l.modules.forEach((e=>{e({params:t,swiper:l,extendParams:te(t,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const d=p({},ee,o);return l.params=p({},d,ae,t),l.originalParams=p({},l.params),l.passedParams=p({}
vendor: 4,599 bytes, line 15
15,t),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,a=y(f(t,`.${s.slideClass}, swiper-slide`)[0]);return y(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=f(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=a[l]?Math.ceil(a[l].swiperSlideSize):0;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=Math.ceil(a[s].swiperSlideSize),o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&D(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||a()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEac
vendor: 4,516 bytes, line 15
15h((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const a=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(a())}return f(s,a())[0]})();return!i&&t.params.createElements&&(i=v("div",t.params.wrapperClass),s.append(i),f(s,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:s,wrapperEl:i,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:i,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction")),wrongRTL:"-webkit-box"===b(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?D(t,e):e.addEventListener("load",(e=>{D(t,e.target)}))})),X(t),t.initialized=!0,X(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,el:i,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),r&&r.removeAttribute("style"),n&&n.length&&n.forEach((e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el&&"string"!=typeof s.el&&(s.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){p(ae,e)}static get extendedDefaults(){return ae}static get defaults(){return ee}static installModule(e){ie.prototype.__modules__||(ie.prototype.__modules__=[]);const t=ie.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ie.installModule(e))),ie):(ie.installModule(e),ie)}}function re(e,t,s,a){return e.params.createElements&&Object.keys(a).forEach((i=>{if(!s[i]&&!0===s.auto){let r=f(e.el,`.${a[i]}`)[0];r||(r=v("div",a[i]),r.className=a[i],e.el.append(r)),s[i]=r,t[i]=r}})),s}function ne(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function le(e){const t=this,{params:s,slidesEl:a}=t;s.loop&&t.loopDestroy();const i=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,a.append(t.children[0]),t.innerHTML=""}else a.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update()}function oe(e){const t=this,{params:s,activeIndex:a,slidesEl:i}=t;s.loop&&t.loopDestroy();let r=a+1;const n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,i.prepend(t.children[0]),t.innerHTML=""}else i.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n(e[t]);r=a+e.length}else n(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(
vendor: 7,243 bytes, line 15
15),t.slideTo(r,0,!1)}function de(e,t){const s=this,{params:a,activeIndex:i,slidesEl:r}=s;let n=i;a.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.recalcSlides());const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.append(t[e]);o=n>e?n+t.length:n}else r.append(t);for(let e=0;e<d.length;e+=1)r.append(d[e]);s.recalcSlides(),a.loop&&s.loopCreate(),a.observer&&!s.isElement||s.update(),a.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function ce(e){const t=this,{params:s,activeIndex:a}=t;let i=a;s.loop&&(i-=t.loopedSlides,t.loopDestroy());let r,n=i;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1);n=Math.max(n,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1),n=Math.max(n,0);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(),s.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)}function pe(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function ue(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function me(e,t){const s=h(t);return s!==t&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function he(e){let{swiper:t,duration:s,transformElements:a,allSlides:i}=e;const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a:a.filter((e=>{const s=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode));return e.parentElement})(e):e;return t.getSlideIndex(s)===r})),e.forEach((e=>{x(e,(()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function fe(e,t,s){const a=`swiper-slide-shadow${s?`-${s}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=h(t);let r=i.querySelector(`.${a.split(" ").join(".")}`);return r||(r=v("div",a.split(" ")),i.append(r)),r}Object.keys(se).forEach((e=>{Object.keys(se[e]).forEach((t=>{ie.prototype[t]=se[e][t]}))})),ie.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,s){void 0===s&&(s={});const a=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const s=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(s):l.setTimeout(s,0)}));a.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:t.isElement||(void 0===s.childList||s).childList,characterData:void 0===s.characterData||s.characterData}),n.push(a)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=E(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),a("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const ge=[function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const l=a();s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=l.createElement("div");function d(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];let i;return a.renderSlide?(i=a.renderSlide.call(s,e,t),"string"==typeof i&&(o.innerHTML=i,i=o.children[0])):i=s.isElement?v("swiper-slide"):v("div",s.params.slideClass),i.setAttribute("data-swiper-slide-index",t),a.renderSlide||(i.innerHTML=e),a.cache&&(s.virtual.cache[t]=i),i}function c(e,t,a){const{slidesPerView:i,slidesPerGroup:r,centeredSlides:l,loop:o,initialSlide:c}=s.params;if(t&&!o&&c>0)return;const{addSlidesBefore:p,addSlidesAfter:u}=s.params.virtual,{from:m,to:h,slides:g,slidesGrid:v,offset:w}=s.virtual;s.params.cssMode||s.updateActiveIndex();const b=void 0===a?s.activeIndex||0:a;let y,E,x;y=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",l?(E=Math.floor(i/2)+r+u,x=Math.floor(i/2)+r+p):(E=i+(r-1)+u,x=(o?i:r)+p);let S=b-x,T=b+E;o||(S=Math.max(S,0),T=Math.min(T,g.length-1));let M=(s.slidesGrid[S]||0)-(s.slidesGrid[0]||0);function C(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),n("virtualUpdate")}if(o&&b>=x?(S-=x,l||(M+=s.slidesGrid[0])):o&&b<x&&(S=-x,l&&(M+=s.slidesGrid[0])),Object.assign(s.virtual,{from:S,to:T,offset:M,slidesGrid:s.slidesGrid,slidesBefore:x,slidesAfter:E}),m===S&&h===T&&!e)return s.slidesGrid!==v&&M!==w&&s.slides.forEach((e=>{e.style[y]=M-Math.abs(s.cssOverflowAdjustment())+"px"})),s.updateProgress(),void n("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:M,from:S,to:T,slides:function(){const e=[];for(let t=S;t<=T;t+=1)e.push(g[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?C():n("virtualUpdate"));const P=[],L=[],I=e=>{let t=e;return e<0?t=g.length+e:t>=g.length&&(t-=g.length),t};if(e)s.slides.filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=m;e<=h;e+=1)if(e<S||e>T){const t=I(e);s.slides.filter((e=>e.matches(`.${s.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}
15"]`))).forEach((e=>{e.remove()}))}const z=o?-g.length:0,A=o?2*g.length:g.length;for(let t=z;t<A;t+=1)if(t>=S&&t<=T){const s=I(t);void 0===h||e?L.push(s):(t>h&&L.push(s),t<m&&P.push(s))}if(L.forEach((e=>{s.slidesEl.append(d(g[e],e))})),o)for(let e=P.length-1;e>=0;e-=1){const t=P[e];s.slidesEl.prepend(d(g[t],t))}else P.sort(((e,t)=>t-e)),P.forEach((e=>{s.slidesEl.prepend(d(g[e],e))}));f(s.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[y]=M-Math.abs(s.cssOverflowAdjustment())+"px"})),C()}r("beforeInit",(()=>{if(!s.params.virtual.enabled)return;let e;if(void 0===s.passedParams.virtual.slides){const t=[...s.slidesEl.children].filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`)));t&&t.length&&(s.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),s.virtual.cache[t]=e,e.remove()})))}e||(s.virtual.slides=s.params.virtual.slides),s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,c(!1,!0)})),r("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),r("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&u(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.push(e[t]);else s.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=s.activeIndex;let a=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.unshift(e[t]);a=t+e.length,i=e.length}else s.virtual.slides.unshift(e);if(s.params.virtual.cache){const e=s.virtual.cache,t={};Object.keys(e).forEach((s=>{const a=e[s],r=a.getAttribute("data-swiper-slide-index");r&&a.setAttribute("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}c(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.params.virtual.cache&&(delete s.virtual.cache[e[a]],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e[a],1),e[a]<t&&(t-=1),t=Math.max(t,0);else s.params.virtual.cache&&(delete s.virtual.cache[e],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),s.slideTo(t,0)},removeAllSlides:function(){s.virtual.slides=[],s.params.virtual.cache&&(s.virtual.cache={}),c(!0),s.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:s,on:i,emit:n}=e;const l=a(),o=r();function d(e){if(!t.enabled)return;const{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode,r=t.params.keyboard.pageUpDown,d=r&&33===i,c=r&&34===i,p=37===i,u=39===i,m=38===i,h=40===i;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&h||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&p||t.isVertical()&&m||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||l.activeElement&&l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(d||c||p||u||m||h)){let e=!1;if(E(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===E(t.el,`.${t.params.slideActiveClass}`).length)return;const a=t.el,i=a.clientWidth,r=a.clientHeight,n=o.innerWidth,l=o.innerHeight,d=w(a);s&&(d.left-=a.scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t<c.length;t+=1){const s=c[t];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||m||h)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||h)&&t.slideNext(),(d||m)&&t.slidePrev()),n("keyPress",i)}}function c(){t.keyboard.enabled||(l.addEventListener("keydown",d),t.keyboard.enabled=!0)}function p(){t.keyboard.enabled&&(l.removeEventListener("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&c()})),i("destroy",(()=>{t.keyboard.enabled&&p()})),Object.assign(t.keyboard,{enable:c,disable:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let d;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let c,p=o();const u=[];function m(){t.enabled&&(t.mouseEntered=!0)}function h(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&o()-p<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&o()-p<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),p=(new n.Date).getTime(),!1)))}function g(e){let s=e,a=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget));const p=n&&n.contains(s.target);if(!t.mouseEntered&&!p&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let m=0;const h=t.rtlTranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120
vendor: 4,794 bytes, line 15
15),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*h}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*h:-g.pixelY;if(0===m)return!0;r.invert&&(m=-m);let v=t.getTranslate()+m*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:o(),delta:Math.abs(m),direction:Math.sign(m)},a=c&&e.time<c.time+500&&e.delta<=c.delta&&e.direction===c.direction;if(!a){c=void 0;let n=t.getTranslate()+m*r.sensitivity;const o=t.isBeginning,p=t.isEnd;if(n>=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!o&&t.isBeginning||!p&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(d),d=void 0,u.length>=15&&u.shift();const s=u.length?u[u.length-1]:void 0,a=u[0];if(u.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))u.splice(0);else if(u.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=m>0?.8:.2;c=e,u.splice(0),d=l((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}d||(d=l((()=>{if(t.destroyed||!t.params)return;c=e,u.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(n===t.minTranslate()||n===t.maxTranslate()))return!0}}else{const s={time:o(),delta:Math.abs(m),direction:Math.sign(m),raw:e};u.length>=2&&u.shift();const a=u.length?u[u.length-1]:void 0;if(u.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&f(s):f(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function v(e){let s=t.el;"container"!==t.params.mousewheel.eventsTarget&&(s=document.querySelector(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",h),s[e]("wheel",g)}function w(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&w()})),a("destroy",(()=>{t.params.cssMode&&w(),t.mousewheel.enabled&&b()})),Object.assign(t.mousewheel,{enable:w,disable:b})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;function r(e){let s;return e&&"string"==typeof e&&t.isElement&&(s=t.el.querySelector(e)||t.hostEl.querySelector(e),s)?s:(e&&("string"==typeof e&&(s=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&s&&s.length>1&&1===t.el.querySelectorAll(e).length?s=t.el.querySelector(e):s&&1===s.length&&(s=s[0])),e&&!s?e:s)}function n(e,s){const a=t.params.navigation;(e=T(e)).forEach((e=>{e&&(e.classList[s?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=s),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](a.lockClass))}))}function l(){const{nextEl:e,prevEl:s}=t.navigation;if(t.params.loop)return n(s,!1),void n(e,!1);n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=re(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let s=r(e.nextEl),a=r(e.prevEl);Object.assign(t.navigation,{nextEl:s,prevEl:a}),s=T(s),a=T(a);const i=(s,a)=>{s&&s.addEventListener("click","next"===a?d:o),!t.enabled&&s&&s.classList.add(...e.lockClass.split(" "))};
vendor: 4,373 bytes, line 15
15s.forEach((e=>i(e,"next"))),a.forEach((e=>i(e,"prev")))}function p(){let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s);const a=(e,s)=>{e.removeEventListener("click","next"===s?d:o),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>a(e,"next"))),s.forEach((e=>a(e,"prev")))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},a("init",(()=>{!1===t.params.navigation.enabled?u():(c(),l())})),a("toEdge fromEdge lock unlock",(()=>{l()})),a("destroy",(()=>{p()})),a("enable disable",(()=>{let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s),t.enabled?l():[...e,...s].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),a("click",((e,s)=>{let{nextEl:a,prevEl:r}=t.navigation;a=T(a),r=T(r);const n=s.target;let l=r.includes(n)||a.includes(n);if(t.isElement&&!l){const e=s.path||s.composedPath&&s.composedPath();e&&(l=e.find((e=>a.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!l){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;a.length?e=a[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...a,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),l()},disable:u,update:l,init:c,destroy:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,s){const{bulletActiveClass:a}=t.params.pagination;e&&(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${a}-${s}`),(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&e.classList.add(`${a}-${s}-${s}`))}function c(e){const s=e.target.closest(ne(t.params.pagination.bulletClass));if(!s)return;e.preventDefault();const a=y(s)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===a)return;const e=(i=t.realIndex,r=a,n=t.slides.length,(r%=n)==1+(i%=n)?"next":r===i-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(a)}else t.slideTo(a);var i,r,n}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;let a,r,c=t.pagination.el;c=T(c);const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,u=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,a=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(a=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,a=t.activeIndex||0),"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let o,p,u;if(s.dynamicBullets&&(n=S(i[0],t.isHorizontal()?"width":"height",!0),c.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=n*(s.dynamicMainBullets+4)+"px"})),s.dynamicMainBullets>1&&void 0!==r&&(l+=a-(r||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),o=Math.max(a-l,0),p=o+(Math.min(i.length,s.dynamicMainBullets)-1),u=(p+o)/2),i.forEac
vendor: 9,772 bytes, line 15
15h((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),c.length>1)i.forEach((e=>{const i=y(e);i===a?e.classList.add(...s.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),s.dynamicBullets&&(i>=o&&i<=p&&e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),i===o&&d(e,"prev"),i===p&&d(e,"next"))}));else{const e=i[a];if(e&&e.classList.add(...s.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")})),s.dynamicBullets){const e=i[o],t=i[p];for(let e=o;e<=p;e+=1)i[e]&&i[e].classList.add(...`${s.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(s.dynamicBullets){const a=Math.min(i.length,s.dynamicMainBullets+4),r=(n*a-n)/2-u*n,l=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?l:"top"]=`${r}px`}))}}c.forEach(((e,r)=>{if("fraction"===s.type&&(e.querySelectorAll(ne(s.currentClass)).forEach((e=>{e.textContent=s.formatFractionCurrent(a+1)})),e.querySelectorAll(ne(s.totalClass)).forEach((e=>{e.textContent=s.formatFractionTotal(u)}))),"progressbar"===s.type){let i;i=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(a+1)/u;let n=1,l=1;"horizontal"===i?n=r:l=r,e.querySelectorAll(ne(s.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${l})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===s.type&&s.renderCustom?(e.innerHTML=s.renderCustom(t,a+1,u),0===r&&i("paginationRender",e)):(0===r&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass)}))}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let a=t.pagination.el;a=T(a);let r="";if("bullets"===e.type){let a=t.params.loop?Math.ceil(s/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&a>s&&(a=s);for(let s=0;s<a;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],a.forEach((s=>{"custom"!==e.type&&(s.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...s.querySelectorAll(ne(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",a[0])}function m(){t.params.pagination=re(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s;"string"==typeof e.el&&t.isElement&&(s=t.el.querySelector(e.el)),s||"string"!=typeof e.el||(s=[...document.querySelectorAll(e.el)]),s||(s=e.el),s&&0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(s)&&s.length>1&&(s=[...t.el.querySelectorAll(e.el)],s.length>1&&(s=s.find((e=>E(e,".swiper")[0]===t.el)))),Array.isArray(s)&&1===s.length&&(s=s[0]),Object.assign(t.pagination,{el:s}),s=T(s),s.forEach((s=>{"bullets"===e.type&&e.clickable&&s.classList.add(...(e.clickableClass||"").split(" ")),s.classList.add(e.modifierClass+e.type),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.classList.add(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.classList.add(e.progressbarOppositeClass),e.clickable&&s.addEventListener("click",c),t.enabled||s.classList.add(e.lockClass)})))}function h(){const e=t.params.pagination;if(o())return;let s=t.pagination.el;s&&(s=T(s),s.forEach((s=>{s.classList.remove(e.hiddenClass),s.classList.remove(e.modifierClass+e.type),s.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(s.classList.remove(...(e.clickableClass||"").split(" ")),s.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}a("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:s}=t.pagination;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),a("init",(()=>{!1===t.params.pagination.enabled?f():(m(),u(),p())})),a("activeIndexChange",(()=>{void 0===t.snapIndex&&p()})),a("snapIndexChange",(()=>{p()})),a("snapGridLengthChange",(()=>{u(),p()})),a("destroy",(()=>{h()})),a("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),a("lock unlock",(()=>{p()})),a("click",((e,s)=>{const a=s.target,r=T(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!a.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const f=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),m(),u(),p()},disable:f,render:u,update:p,init:m,destroy:h})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const o=a();let d,c,p,u,m=!1,h=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s}=t,{dragEl:a,el:i}=e,r=t.params.scrollbar,n=t.params.loop?t.progressLoop:t.progress;let l=c,o=(p-c)*n;s?(o=-o,o>0?(l=c-o,o=0):-o+c>p&&(l=p+o)):o<0?(l=c+o,o=0):o+c>p&&(l=p-o),t.isHorizontal()?(a.style.transform=`translate3d(${o}px, 0, 0)`,a.style.width=`${l}px`):(a.style.transform=`translate3d(0px, ${o}px, 0)`,a.style.height=`${l}px`),r.hide&&(clearTimeout(h),i.style.opacity=1,h=setTimeout((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3))}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:s,el:a}=e;s.style.width="",s.style.height="",p=t.isHorizontal()?a.offsetWidth:a.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?p*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s.style.width=`${c}px`:s.style.height=`${c}px`,a.style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?e.clientX:e.clientY}function E(e){const{scrollbar:s,rtlTranslate:a}=t,{el:i}=s;let r;r=(y(e)-w(i)[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(p-c),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n,dragEl:l}=a;m=!0,d=e.target===l?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.style.transitionDuration="100ms",l.style.transitionDuration="100ms",E(e),clearTimeout(f),n.style.transitionDuration="0ms",s.hide&&(n.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function S(e){const{scrollbar:s,wrapperEl:a}=t,{el:i,dragEl:n}=s;m&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,E(e),a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",n.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function M(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n}=a;m&&(m=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",i.style.transitionDuration=""),s.hide&&(clearTimeout(f),f=l((()=>{n.style.opacity=0,n.style.transitionDuration="400ms"}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:s,params:a}=t,i=s.el;if(!i)return;const r=i,n=!!a.passiveListeners&&{passive:!1,capture:!1},l=!!a.passiveListeners&&{passive:!0,capture:!1};if(!r)return;const d="on"===e?"addEventListener":"removeEventListener";r[d]("pointerdown",x,n),o[d]("pointermove",S,n),o[d]("pointerup",M,l)}function P(){const{scrollbar:e,el:s}=t;t.params.scrollbar=re(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i,r;if("string"==typeof a.el&&t.isElement&&(i=t.el.querySelector(a.el)),i||"string"!=typeof a.el)i||(i=a.el);else if(i=o.querySelectorAll(a.el),!i.length)return;t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.querySelectorAll(a.el).length&&(i=s.querySelector(a.el)),i.length>0&&(i=i[0]),i.classList.add(t.isHorizontal()?a.horizontalClass:a.verticalClass),i&&(r=i.querySelector(n
vendor: 3,921 bytes, line 15
15e(t.params.scrollbar.dragClass)),r||(r=v("div",t.params.scrollbar.dragClass),i.append(r))),Object.assign(e,{el:i,dragEl:r}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),i&&i.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))}function L(){const e=t.params.scrollbar,s=t.scrollbar.el;s&&s.classList.remove(...n(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:s}=t.scrollbar;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.scrollbar.enabled?I():(P(),b(),g())})),i("update resize observerUpdate lock unlock changeDirection",(()=>{b()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(s)})),i("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))})),i("destroy",(()=>{L()}));const I=()=>{t.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),L()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),P(),b(),g()},disable:I,updateSize:b,setTranslate:g,init:P,destroy:L})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,s)=>{const{rtl:a}=t,i=a?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let n=e.getAttribute("data-swiper-parallax-x"),l=e.getAttribute("data-swiper-parallax-y");const o=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):t.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*i+"%":n*s*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const t=d-(d-1)*(1-Math.abs(s));e.style.opacity=t}let p=`translate3d(${n}, ${l}, 0px)`;if(null!=o){p+=` scale(${o-(o-1)*(1-Math.abs(s))})`}if(c&&null!=c){p+=` rotate(${c*s*-1}deg)`}e.style.transform=p},n=()=>{const{el:e,slides:s,progress:a,snapGrid:n,isElement:l}=t,o=f(e,i);t.isElement&&o.push(...f(t.hostEl,i)),o.forEach((e=>{r(e,a)})),s.forEach(((e,s)=>{let l=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(l+=Math.ceil(s/2)-a*(n.length-1)),l=Math.min(Math.max(l,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,l)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&n()})),a("setTranslate",(()=>{t.params.parallax.enabled&&n()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:s,hostEl:a}=t,r=[...s.querySelectorAll(i)];t.isElement&&r.push(...a.querySelectorAll(i)),r.forEach((t=>{let s=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.style.transitionDuration=`${s}ms`}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,
vendor: 5,985 bytes, line 15
15limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l=1,o=!1,c=!1,p={x:0,y:0};const u=-3;let m,h;const g=[],v={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},b={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},y={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let x,S=1;function T(){if(g.length<2)return 1;const e=g[0].pageX,t=g[0].pageY,s=g[1].pageX,a=g[1].pageY;return Math.sqrt((s-e)**2+(a-t)**2)}function M(){const e=t.params.zoom,s=v.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&v.imageEl&&v.imageEl.naturalWidth){const e=v.imageEl.naturalWidth/v.imageEl.offsetWidth;return Math.min(e,s)}return s}function C(e){const s=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(s)||t.slides.filter((t=>t.contains(e.target))).length>0}function P(e){const s=`.${t.params.zoom.containerClass}`;return!!e.target.matches(s)||[...t.hostEl.querySelectorAll(s)].filter((t=>t.contains(e.target))).length>0}function L(e){if("mouse"===e.pointerType&&g.splice(0,g.length),!C(e))return;const s=t.params.zoom;if(m=!1,h=!1,g.push(e),!(g.length<2)){if(m=!0,v.scaleStart=T(),!v.slideEl){v.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),v.slideEl||(v.slideEl=t.slides[t.activeIndex]);let a=v.slideEl.querySelector(`.${s.containerClass}`);if(a&&(a=a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=a,v.imageWrapEl=a?E(v.imageEl,`.${s.containerClass}`)[0]:void 0,!v.imageWrapEl)return void(v.imageEl=void 0);v.maxRatio=M()}if(v.imageEl){const[e,t]=function(){if(g.length<2)return{x:null,y:null};const e=v.imageEl.getBoundingClientRect();return[(g[0].pageX+(g[1].pageX-g[0].pageX)/2-e.x-n.scrollX)/l,(g[0].pageY+(g[1].pageY-g[0].pageY)/2-e.y-n.scrollY)/l]}();v.originX=e,v.originY=t,v.imageEl.style.transitionDuration="0ms"}o=!0}}function I(e){if(!C(e))return;const s=t.params.zoom,a=t.zoom,i=g.findIndex((t=>t.pointerId===e.pointerId));i>=0&&(g[i]=e),g.length<2||(h=!0,v.scaleMove=T(),v.imageEl&&(a.scale=v.scaleMove/v.scaleStart*l,a.scale>v.maxRatio&&(a.scale=v.maxRatio-1+(a.scale-v.maxRatio+1)**.5),a.scale<s.minRatio&&(a.scale=s.minRatio+1-(s.minRatio-a.scale+1)**.5),v.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`))}function z(e){if(!C(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const s=t.params.zoom,a=t.zoom,i=g.findIndex((t=>t.pointerId===e.pointerId));i>=0&&g.splice(i,1),m&&h&&(m=!1,h=!1,v.imageEl&&(a.scale=Math.max(Math.min(a.scale,v.maxRatio),s.minRatio),v.imageEl.style.transitionDuration=`${t.params.speed}ms`,v.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`,l=a.scale,o=!1,a.scale>1&&v.slideEl?v.slideEl.classList.add(`${s.zoomedSlideClass}`):a.scale<=1&&v.slideEl&&v.slideEl.classList.remove(`${s.zoomedSlideClass}`),1===a.scale&&(v.originX=0,v.originY=0,v.slideEl=void 0)))}function A(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function $(e){const s="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!C(e)||!P(e))return;const a=t.zoom;if(!v.imageEl)return;if(!b.isTouched||!v.slideEl)return void(s&&O(e));if(s)return void O(e);b.isMoved||(b.width=v.imageEl.offsetWidth||v.imageEl.clientWidth,b.height=v.imageEl.offsetHeight||v.imageEl.clientHeight,b.startX=d(v.imageWrapEl,"x")||0,b.startY=d(v.imageWrapEl,"y")||0,v.slideWidth=v.slideEl.offsetWidth,v.slideHeight=v.slideEl.offsetHeight,v.imageWrapEl.style.transitionDuration="0ms");const i=b.width*a.scale,r=b.height*a.scale;b.minX=Math.min(v.slideWidth/2-i/2,0),b.maxX=-b.minX,b.minY=Math.min(v.slideHeight/2-r/2,0),b.maxY=-b.minY,b.touchesCurrent.x=g.length>0?g[0].pageX:e.pageX,b.touchesCurrent.y=g.length>0?g[0].pageY:e.pageY;if(Math.max(Math.abs(b.touchesCurrent.x-b.touchesStart.x),Math.abs(b.touchesCurrent.y-b.touchesStart.y))>5&&(t.allowClick=!1),!b.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(b.minX)===Math.floor(b.startX)&&b.touchesCurrent.x<b.touchesStart.x||Math.floor(b.maxX)===Math.floor(b.startX)&&b.touchesCurrent.x>b.touchesStart.x))return b.isTouched=!1,void A();if(!t.isHorizontal()&&(Math.floor(b.minY)===Math.floor(b.startY)&&b.touchesCurrent.y<b.touchesStart.y||Math.floor(b.maxY)===Math.floor(b.startY)&&b.touchesCurrent.y>b.touchesStart.y))return b.isTouched=!1,void A()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(x),t.touchEventsData.preventTouchMoveFromPointerMove=!0,x=setTimeout((()=>{t.destroyed||A()})),b.isMoved=!0;const n=(a.scale-l)/(v.maxRatio-t.params.zoom.minRatio),{originX:c,originY:p}=v;b.currentX=b.touchesCurrent.x-b.touchesStart.x+b.startX+n*(b.width-2*c),b.currentY=b.touchesCurrent.y-b.touchesStart.y+b.startY+n*(b.height-2*p),b.currentX<b.minX&&(b.currentX=b.minX+1-(b.minX-b.currentX+1)**.8),b.currentX>b.maxX&&(b.currentX=b.maxX-1+(b.currentX-b.maxX+1)**.8),b.currentY<b.minY&&(b.currentY=b.minY+1-(b.minY-b.currentY+1)**.8),b.currentY>b.maxY&&(b.currentY=b.maxY-1+(b.currentY-b.maxY+1)**.8),y.prevPositionX||(y.prevPositionX=b.touchesCurrent.x),y.prevPositionY||(y.prevPositionY=b.touchesCurrent.y),y.prevTime||(y.prevTime=Date.now()),y.x=(b.touchesCurrent.x-y.prevPositionX)/(Date.now()-y.prevTime)/2,y.y=(b.touchesCurrent.y-y.prevPositionY)/(Date.now()-y.prevTime)/2,Math.abs(b.touchesCurrent.x-y.prevPositionX)<2&&(y.x=0),Math.abs(b.touchesCurrent.y-y.prevPositionY)<2&&(y.y=0),y.prevPositionX=b.touchesCurrent.x,y.prevPositionY=b.touchesCurrent.y,y.prevTime=Date.now(),v.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}function k(){const e=t.zoom;v.slideEl&&t.activeIndex!==t.slides.indexOf(v.slideEl)&&(v.imageEl&&(v.imageEl.style.transform="translate3d(0,
150,0) scale(1)"),v.imageWrapEl&&(v.imageWrapEl.style.transform="translate3d(0,0,0)"),v.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,l=1,v.slideEl=void 0,v.imageEl=void 0,v.imageWrapEl=void 0,v.originX=0,v.originY=0)}function O(e){if(l<=1||!v.imageWrapEl)return;if(!C(e)||!P(e))return;const t=n.getComputedStyle(v.imageWrapEl).transform,s=new n.DOMMatrix(t);if(!c)return c=!0,p.x=e.clientX,p.y=e.clientY,b.startX=s.e,b.startY=s.f,b.width=v.imageEl.offsetWidth||v.imageEl.clientWidth,b.height=v.imageEl.offsetHeight||v.imageEl.clientHeight,v.slideWidth=v.slideEl.offsetWidth,void(v.slideHeight=v.slideEl.offsetHeight);const a=(e.clientX-p.x)*u,i=(e.clientY-p.y)*u,r=b.width*l,o=b.height*l,d=v.slideWidth,m=v.slideHeight,h=Math.min(d/2-r/2,0),f=-h,g=Math.min(m/2-o/2,0),w=-g,y=Math.max(Math.min(b.startX+a,f),h),E=Math.max(Math.min(b.startY+i,w),g);v.imageWrapEl.style.transitionDuration="0ms",v.imageWrapEl.style.transform=`translate3d(${y}px, ${E}px, 0)`,p.x=e.clientX,p.y=e.clientY,b.startX=y,b.startY=E,b.currentX=y,b.currentY=E}function D(e){const s=t.zoom,a=t.params.zoom;if(!v.slideEl){e&&e.target&&(v.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),v.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?v.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:v.slideEl=t.slides[t.activeIndex]);let s=v.slideEl.querySelector(`.${a.containerClass}`);s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=s,v.imageWrapEl=s?E(v.imageEl,`.${a.containerClass}`)[0]:void 0}if(!v.imageEl||!v.imageWrapEl)return;let i,r,o,d,c,p,u,m,h,g,y,x,S,T,C,P,L,I;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),v.slideEl.classList.add(`${a.zoomedSlideClass}`),void 0===b.touchesStart.x&&e?(i=e.pageX,r=e.pageY):(i=b.touchesStart.x,r=b.touchesStart.y);const z=l,A="number"==typeof e?e:null;1===l&&A&&(i=void 0,r=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0);const $=M();s.scale=A||$,l=A||$,!e||1===l&&A?(u=0,m=0):(L=v.slideEl.offsetWidth,I=v.slideEl.offsetHeight,o=w(v.slideEl).left+n.scrollX,d=w(v.slideEl).top+n.scrollY,c=o+L/2-i,p=d+I/2-r,h=v.imageEl.offsetWidth||v.imageEl.clientWidth,g=v.imageEl.offsetHeight||v.imageEl.clientHeight,y=h*s.scale,x=g*s.scale,S=Math.min(L/2-y/2,0),T=Math.min(I/2-x/2,0),C=-S,P=-T,z>0&&A&&"number"==typeof b.currentX&&"number"==typeof b.currentY?(u=b.currentX*s.scale/z,m=b.currentY*s.scale/z):(u=c*s.scale,m=p*s.scale),u<S&&(u=S),u>C&&(u=C),m<T&&(m=T),m>P&&(m=P)),A&&1===s.scale&&(v.originX=0,v.originY=0),b.currentX=u,b.currentY=m,v.imageWrapEl.style.transitionDuration="300ms",v.imageWrapEl.style.transform=`translate3d(${u}px, ${m}px,0)`,v.imageEl.style.transitionDuration="300ms",v.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`}function G(){const e=t.zoom,s=t.params.zoom;if(!v.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?v.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:v.slideEl=t.slides[t.activeIndex];let e=v.slideEl.querySelector(`.${s.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=e,v.imageWrapEl=e?E(v.imageEl,`.${s.containerClass}`)[0]:void 0}v.imageEl&&v.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,l=1,b.currentX=void 0,b.currentY=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0,v.imageWrapEl.style.transitionDuration="300ms",v.imageWrapEl.style.transform="translate3d(0,0,0)",v.imageEl.style.transitionDuration="300ms",v.imageEl.style.transform="translate3d(0,0,0) scale(1)",v.slideEl.classList.remove(`${s.zoomedSlideClass}`),v.slideEl=void 0,v.originX=0,v.originY=0,t.params.zoom.panOnMouseMove&&(p={x:0,y:0},c&&(c=!1,b.startX=0,b.startY=0)))}function X(e){const s=t.zoom;s.scale&&1!==s.scale?G():D(e)}function H(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function Y(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:s,activeListenerWithCapture:a}=H();t.wrapperEl.addEventListener("pointerdown",L,s),t.wrapperEl.addEventListener("pointermove",I,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,z,s)})),t.wrapperEl.addEventListener("pointermove",$,a)}function B(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:s,activeListenerWithCapture:a}=H();t.wrapperEl.removeEventListener("pointerdown",L,s),t.wrapperEl.removeEventListener("pointermove",I,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,z,s)})),t.wrapperEl.removeEventListener("pointermove",$,a)}Object.defineProperty(t.zoom,"scale",{get:()=>S,set(e){if(S!==e){const t=v.imageEl,s=v.slideEl;i("zoomChange",e,t,s)}S=e}}),a("init",(()=>{t.params.zoom.enabled&&Y()})),a("destroy",(()=>{B()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;if(!v.imageEl)return;if(b.isTouched)return;s.android&&e.cancelable&&e.preventDefault(),b.isTouched=!0;const a=g.length>0?g[0]:e;b.touchesStart.x=a.pageX,b.touchesStart.y=a.pageY}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(g.length=0,!v.imageEl)return;if(!b.isTouched||!b.isMoved)return b.isTouched=!1,void(b.isMoved=!1);b.isTouched=!1,b.isMoved=!1;let s=300,a=300;const i=y.x*s,r=b.currentX+i,n=y.y*a,l=b.currentY+n;0!==y.x&&(s=Math.abs((r-b.currentX)/y.x)),0!==y.y&&(a=Math.abs((l-b.currentY)/y.y));const o=Math.max(s,a);b.currentX=r,b.currentY=l;const d=b.width*e.scale,c=b.height*e.scale;b.minX=Math.min(v.slideWidth/2-d/2,0),b.maxX=-b.minX,b.minY=Math.min(v.slideHeight/2-c/2,0),b.maxY=-b.minY,b.currentX=Math.max(Math.min(b.currentX,b.maxX),b.minX),b.currentY=Math.max(Math.min(b.currentY,b.maxY),b.minY),v.imageWrapEl.style.transitionDuration=`${o}ms`,v.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&X(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&k()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&k()})),Object.assign(t.zoom,{enable:Y,disable:B,in:D,out:G,toggle:X})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEac
15h((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const s=`${t.params.eventsPrefix}init`,a=i=>{t.controller.control.push(i.detail[0]),t.update(),e.removeEventListener(s,a)};e.addEventListener(s,a)}}))}else t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){if(e.destroyed)return;const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==s&&a[e]instanceof l&&o(a[e]);else a instanceof l&&s!==a&&o(a)},setTransition:function(e,s){const a=t.constructor,i=t.controller.control;let r;function n(s){s.destroyed||(s.setTransition(e,t),0!==e&&(s.transitionStart(),s.params.autoHeight&&l((()=>{s.updateAutoHeight()})),x(s.wrapperEl,(()=>{i&&s.transitionEnd()}))))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,n,l=null,o=(new Date).getTime();function d(e){const t=l;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function p(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function u(e,t){(e=T(e)).forEach((e=>{e.setAttribute("role",t)}))}function m(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function g(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function w(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=e.target;if(!t.pagination||!t.pagination.el||a!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(ne(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=T(t.navigation.prevEl);T(t.navigation.nextEl).includes(a)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?d(s.lastSlideMessage):d(s.nextSlideMessage)),e.includes(a)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?d(s.firstSlideMessage):d(s.prevSlideMessage))}t.pagination&&a.matches(ne(t.params.pagination.bulletClass))&&a.click()}}function b(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function E(){return b()&&t.params.pagination.clickable}const x=(e,t,s)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",w)),h(e,s),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},S=e=>{n&&n!==e.target&&!n.contains(e.target)&&(r=!0),t.a11y.clicked=!0},M=()=>{r=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},C=e=>{o=(new Date).getTime()},P=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!s||!t.slides.includes(s))return;n=s;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{r||(t.params.loop?t.slideToLoop(parseInt(s.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(s),0),r=!1)})))},L=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&m(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const s=t.slides.length;
vendor: 28,283 bytes, line 15
15e.slideLabelMessage&&t.slides.forEach(((a,i)=>{const r=t.params.loop?parseInt(a.getAttribute("data-swiper-slide-index"),10):i;h(a,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,s))}))},I=()=>{const e=t.params.a11y;t.el.append(l);const s=t.el;e.containerRoleDescriptionMessage&&m(s,e.containerRoleDescriptionMessage),e.containerMessage&&h(s,e.containerMessage),e.containerRole&&u(s,e.containerRole);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=r,T(i).forEach((e=>{e.setAttribute("id",d)})),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,o),L();let{nextEl:c,prevEl:p}=t.navigation?t.navigation:{};if(c=T(c),p=T(p),c&&c.forEach((t=>x(t,r,e.nextSlideMessage))),p&&p.forEach((t=>x(t,r,e.prevSlideMessage))),E()){T(t.pagination.el).forEach((e=>{e.addEventListener("keydown",w)}))}a().addEventListener("visibilitychange",C),t.el.addEventListener("focus",P,!0),t.el.addEventListener("focus",P,!0),t.el.addEventListener("pointerdown",S,!0),t.el.addEventListener("pointerup",M,!0)};i("beforeInit",(()=>{l=v("span",t.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&I()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&L()})),i("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:s}=t.navigation;s&&(t.isBeginning?(f(s),p(s)):(g(s),c(s))),e&&(t.isEnd?(f(e),p(e)):(g(e),c(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;b()&&t.pagination.bullets.forEach((s=>{t.params.pagination.clickable&&(c(s),t.params.pagination.renderBullet||(u(s,"button"),h(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,y(s)+1)))),s.matches(ne(t.params.pagination.bulletActiveClass))?s.setAttribute("aria-current","true"):s.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){l&&l.remove();let{nextEl:e,prevEl:s}=t.navigation?t.navigation:{};e=T(e),s=T(s),e&&e.forEach((e=>e.removeEventListener("keydown",w))),s&&s.forEach((e=>e.removeEventListener("keydown",w))),E()&&T(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",w)}));a().removeEventListener("visibilitychange",C),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",P,!0),t.el.removeEventListener("pointerdown",S,!0),t.el.removeEventListener("pointerup",M,!0))}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${s}"]`):t.slides[s];let d=l(o.getAttribute("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e?`${e}/`:""}${d}`}else n.pathname.includes(e)||(d=`${e?`${e}/`:""}${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides[i];if(l(r.getAttribute("data-history"))===s){const s=t.getSlideIndex(r);t.slideTo(s,e,a)}}else t.slideTo(0,e,a)},p=()=>{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),n.key||n.value?(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p)):t.params.history.replaceState||e.addEventListener("popstate",p)}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),d=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,s){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((e=>e.getAttribute("data-hash")===s));if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(f(t.slidesEl,`.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0])}}});const c=()=>{i("hashChange");const e=o.location.hash.replace("#",""),s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(s?s.getAttribute("data-hash"):"")){const s=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===s||Number.isNaN(s))return;t.slideTo(s)}},p=()=>{if(!l||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],s=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState?(d.history.replaceState(null,null,`#${s}`||""),i("hashSet")):(o.location.hash=s||"",i("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0,a=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(a||0,s,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&d.addEventListener("hashchange",c)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d.removeEventListener("hashchange",c)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&p()})),n("slideChange",(()=>{l&&t.params.cssMode&&p()}))},function(e){let t,s,{swiper:i,extendParams:r,on:n,emit:l,params:o}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,c,p,u,m,h,f,g,v=o&&o.autoplay?o.autoplay.delay:3e3,w=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function y(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",y),g||e.detail&&e.detail.bySwiperTouchMove||C())}const E=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(w=d,c=!1);const e=i.autoplay.paused?d:b+w-(new Date).getTime();i.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/v),s=requestAnimationFrame((()=>{E()}))},x=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(s),E();let a=void 0===e?i.params.autoplay.delay:e;v=i.params.autoplay.delay,w=i.params.autoplay.delay;const r=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.find((e=>e.classList.contains("swiper-slide-active"))):i.slides[i.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(a=r,v=r,w=r),d=a;const n=i.params.speed,o=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,n,!0,!0),l("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,n,!0,!0),l("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return a>0?(clearTimeout(t),t=setTimeout((()=>{o()}),a)):requestAnimationFrame((()=>{o()})),a},S=()=>{b=(new Date).getTime(),i.autoplay.running=!0,x(),l("autoplayStart")},T=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(s),l("autoplayStop")},M=(e,s)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(f=!0);const a=()=>{l("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",y):C()};if(i.autoplay.paused=!0,s)return h&&(d=i.params.autoplay.delay),h=!1,void a();const r=d||i.params.autoplay.delay;d=r-((new Date).getTime()-b),i.isEnd&&d<0&&!i.params.loop||(d<0&&(d=0),a())},C=()=>{i.isEnd&&d<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(d)):x(),i.autoplay.paused=!1,l("autoplayResume"))},P=()=>{if(i.destroyed||!i.autoplay.running)return;const e=a();"hidden"===e.visibilityState&&(f=!0,M(!0)),"visible"===e.visibilityState&&C()},L=e=>{"mouse"===e.pointerType&&(f=!0,g=!0,i.animating||i.autoplay.paused||M(!0))},I=e=>{"mouse"===e.pointerType&&(g=!1,i.autoplay.paused&&C())};n("init",(()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",L),i.el.addEventListener("pointerleave",I)),a().addEventListener("visibilitychange",P),S())})),n("destroy",(()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",L),i.el.removeEventListener("pointerleave",I)),a().removeEventListener("visibilitychange",P),i.autoplay.running&&T()})),n("_freeModeStaticRelease",(()=>{(u||f)&&C()})),n("_freeModeNoMomentumRelease",(()=>{i.params.autoplay.disableOnInteraction?T():M(!0,!0)})),n("beforeTransitionStart",((e,t,s)=>{!i.destroyed&&i.autoplay.running&&(s||!i.params.autoplay.disableOnInteraction?M(!0,!0):T())})),n("sliderFirstMove",(()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?T():(p=!0,u=!1,f=!1,m=setTimeout((()=>{f=!0,u=!0,M(!0)}),200)))})),n("touchEnd",(()=>{if(!i.destroyed&&i.autoplay.running&&p){if(clearTimeout(m),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&i.params.cssMode&&C(),u=!1,p=!1}})),n("slideChange",(()=>{!i.destroyed&&i.autoplay.running&&(h=!0)})),Object.assign(i.autoplay,{start:S,stop:T,pause:M,resume:C})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function l(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&a.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;i=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):s,t.params.loop?t.slideToLoop(i):t.slideTo(i)}function o(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const s=t.constructor;if(e.swiper instanceof s){if(e.swiper.destroyed)return r=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(c(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),n=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function d(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.forEach((e=>e.classList.remove(r))),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<i;e+=1)f(s.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(r)}));else for(let e=0;e<i;e+=1)s.slides[t.realIndex+e]&&s.slides[t.realIndex+e].classList.add(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){const i=s.activeIndex;let r,o;if(s.params.loop){const e=s.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));r=s.slides.indexOf(e),o=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,o=r>t.previousIndex?"next":"prev";l&&(r+="next"===o?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(r)<0&&(s.params.centeredSlides?r=r>i?r-Math.floor(a/2)+1:r+Math.floor(a/2)-1:r>i&&s.params.slidesPerGroup,s.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const s=a(),i=()=>{const a="string"==typeof e.swiper?s.querySelector(e.swiper):e.swiper;if(a&&a.swiper)e.swiper=a.swiper,o(),d(!0);else if(a){const s=`${t.params.eventsPrefix}init`,i=r=>{e.swiper=r.detail[0],a.removeEventListener(s,i),o(),d(!0),e.swiper.update(),t.update()};a.addEventListener(s,i)}return a},r=()=>{if(t.destroyed)return;i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else o(),d(!0)})),i("slideChange update resize observerUpdate",(()=>{d()})),i("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),i("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:d})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:o()})},onTouchEnd:function(e){let{currentPos:s}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:n,rtlTranslate:l,snapGrid:d,touchEventsData:c}=t,p=o()-c.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),s=c.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(i>150||o()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let p=t.translate+s;l&&(p=-p);let u,m=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(p<t.maxTranslate())r.freeMode.momentumBounce?(p+t.maxTranslate()<-h&&(p=t.maxTranslate()-h),u=t.maxTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.maxTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(p>t.minTranslate())r.freeMode.momentumBounce?(p-t.minTranslate()>h&&(p=t.minTranslate()+h),u=t.minTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<d.length;t+=1)if(d[t]>-p){e=t;break}p=Math.abs(d[e]-p)<Math.abs(d[e-1]-p)||"next"===t.swipeDirection?d[e]:d[e-1],p=-p}if(f&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-p-t.translate)/t.velocity):Math.abs((p-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-p:p)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s<a?r.speed:s<2*a?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&m?(t.updateProgress(u),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating=!0,x(n,(()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(p),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(p),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||p>=r.longSwipesMs)&&(a("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,i,{swiper:r,extendParams:n,on:l}=e;n({grid:{rows:1,fill:"column"}});const o=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};l("init",(()=>{i=r.params.grid&&r.params.grid.rows>1})),l("update",(()=>{const{params:e,el:t}=r,s=e.grid&&e.grid.rows>1;i&&!s?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),a=1,r.emitContainerClasses()):!i&&s&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),i=s})),r.grid={initSlides:e=>{const{slidesPerView:i}=r.params,{rows:n,fill:l}=r.params.grid,o=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;a=Math.floor(o/n),t=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==i&&"row"===l&&(t=Math.max(t,i*n)),s=t/n},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,n)=>{const{slidesPerGroup:l}=r.params,d=o(),{rows:c,fill:p}=r.params.grid,u=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:n.length;let m,h,f;if("row"===p&&l>1){const s=Math.floor(e/(l*c)),a=e-c*l*s,r=0===s?l:Math.min(Math.ceil((u-s*c*l)/c),l);f=Math.floor(a/r),h=a-f*r+s*l,m=h+f*t/c,i.style.order=m}else"column"===p?(h=Math.floor(e/c),f=e-h*c,(h>a||h===a&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/s),h=e-f*s);i.row=f,i.column=h,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,s)=>{const{centeredSlides:a,roundLengths:i}=r.params,n=o(),{rows:l}=r.params.grid;if(r.virtualSize=(e+n)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-n,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+n}px`),a){const e=[];for(let t=0;t<s.length;t+=1){let a=s[t];i&&(a=Math.floor(a)),s[t]<r.virtualSize+s[0]&&e.push(a)}s.splice(0,s.length),s.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:le.bind(t),prependSlide:oe.bind(t),addSlide:de.bind(t),removeSlide:ce.bind(t),removeAllSlides:pe.bind(t)})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({fadeEffect:{crossFade:!1}}),ue({effect:"fade",swiper:t,on:a,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let s=0;s<e.length;s+=1){const e=t.slides[s];let a=-e.swiperSlideOffset;t.params.virtualTranslate||(a-=t.translate);let i=0;t.isHorizontal()||(i=a,a=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),n=me(0,e);n.style.opacity=r,n.style.transform=`translate3d(${a}px, ${i}px, 0px)`}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`})),he({swiper:t,duration:e,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};ue({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{el:e,wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:d}=t,c=M(t),p=t.params.cubeEffect,u=t.isHorizontal(),m=t.virtual&&t.params.virtual.enabled;let h,f=0;p.shadow&&(u?(h=t.wrapperEl.querySelector(".swiper-cube-shadow"),h||(h=v("div","swiper-cube-shadow"),t.wrapperEl.append(h)),h.style.height=`${r}px`):(h=e.querySelector(".swiper-cube-shadow"),h||(h=v("div","swiper-cube-shadow"),e.append(h))));for(let e=0;e<a.length;e+=1){const t=a[e];let s=e;m&&(s=parseInt(t.getAttribute("data-swiper-slide-index"),10));let r=90*s,n=Math.floor(r/360);l&&(r=-r,n=Math.floor(-r/360));const d=Math.max(Math.min(t.progress,1),-1);let h=0,g=0,v=0;s%4==0?(h=4*-n*o,v=0):(s-1)%4==0?(h=0,v=4*-n*o):(s-2)%4==0?(h=o+4*n*o,v=o):(s-3)%4==0&&(h=-o,v=3*o+4*o*n),l&&(h=-h),u||(g=h,h=0);const w=`rotateX(${c(u?0:-r)}deg) rotateY(${c(u?r:0)}deg) translate3d(${h}px, ${g}px, ${v}px)`;d<=1&&d>-1&&(f=90*s+90*d,l&&(f=90*-s-90*d)),t.style.transform=w,p.slideShadows&&i(t,d,u)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,p.shadow)if(u)h.style.transform=`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${p.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=p.shadowScale,a=p.shadowScale/t,i=p.shadowOffset;h.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${g}px) rotateX(${c(t.isHorizontal()?0:f)}deg) rotateY(${c(t.isHorizontal()?-f:0)}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:s,slides:a}=t;if(a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=s.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(t,s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,s)=>{let a=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=fe("flip",e,t.isHorizontal()?"left":"top")),i||(i=fe("flip",e,t.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};ue({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect,r=M(t);for(let n=0;n<e.length;n+=1){const l=e[n];let o=l.progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(l.progress,1),-1));const d=l.swiperSlideOffset;let c=-180*o,p=0,u=t.params.cssMode?-d-t.translate:-d,m=0;t.isHorizontal()?s&&(c=-c):(m=u,u=0,p=-c,c=0),l.style.zIndex=-Math.abs(Math.round(o))+e.length,a.slideShadows&&i(l,o);const h=`translate3d(${u}px, ${m}px, 0px) rotateX(${r(p)}deg) rotateY(${r(c)}deg)`;me(0,l).style.transform=h}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),he({swiper:t,duration:e,transformElements:s})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let s=e.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(e.progress,1),-1)),i(e,s)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),ue({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth,p=M(t);for(let e=0,t=a.length;e<t;e+=1){const t=a[e],s=i[e],l=(o-t.swiperSlideOffset-s/2)/s,u="function"==typeof r.modifier?r.modifier(l):l*r.modifier;let m=n?d*u:0,h=n?0:d*u,f=-c*Math.abs(u),g=r.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*s);let v=n?0:g*u,w=n?g*u:0,b=1-(1-r.scale)*Math.abs(u);Math.abs(w)<.001&&(w=0),Math.abs(v)<.001&&(v=0),Math.abs(f)<.001&&(f=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(b)<.001&&(b=0);const y=`translate3d(${w}px,${v}px,${f}px) rotateX(${p(h)}deg) rotateY(${p(m)}deg) scale(${b})`;if(me(0,t).style.transform=y,t.style.zIndex=1-Math.abs(Math.round(u)),r.slideShadows){let e=n?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),s=n?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=fe("coverflow",t,n?"left":"top")),s||(s=fe("coverflow",t,n?"right":"bottom")),e&&(e.style.opacity=u>0?u:0),s&&(s.style.opacity=-u>0?-u:0)}}},setTransition:e=>{t.slides.map((e=>h(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;ue({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides,o=M(t);if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${e}px))`}for(let s=0;s<e.length;s+=1){const a=e[s],d=a.progress,c=Math.min(Math.max(a.progress,-r.limitProgress),r.limitProgress);let p=c;l||(p=Math.min(Math.max(a.originalProgress,-r.limitProgress),r.limitProgress));const u=a.swiperSlideOffset,m=[t.params.cssMode?-u-t.translate:-u,0,0],h=[0,0,0];let f=!1;t.isHorizontal()||(m[1]=m[0],m[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(g=r.next,f=!0):c>0&&(g=r.prev,f=!0),m.forEach(((e,t)=>{m[t]=`calc(${e}px + (${i(g.translate[t])} * ${Math.abs(c*n)}))`})),h.forEach(((e,t)=>{let s=g.rotate[t]*Math.abs(c*n);h[t]=s})),a.style.zIndex=-Math.abs(Math.round(d))+e.length;const v=m.join(", "),w=`rotateX(${o(h[0])}deg) rotateY(${o(h[1])}deg) rotateZ(${o(h[2])}deg)`,b=p<0?`scale(${1+(1-g.scale)*p*n})`:`scale(${1-(1-g.scale)*p*n}
15)`,y=p<0?1+(1-g.opacity)*p*n:1-(1-g.opacity)*p*n,E=`translate3d(${v}) ${w} ${b}`;if(f&&g.shadow||!f){let e=a.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=fe("creative",a)),e){const t=r.shadowPerProgress?c*(1/r.limitProgress):c;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=me(0,a);x.style.transform=E,x.style.opacity=y,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),he({swiper:t,duration:e,transformElements:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ue({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s,rtlTranslate:a}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:n}=t.touchEventsData,l=a?-t.translate:t.translate;for(let o=0;o<e.length;o+=1){const d=e[o],c=d.progress,p=Math.min(Math.max(c,-4),4);let u=d.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(u-=e[0].swiperSlideOffset);let m=t.params.cssMode?-u-t.translate:-u,h=0;const f=-100*Math.abs(p);let g=1,v=-i.perSlideRotate*p,w=i.perSlideOffset-.75*Math.abs(p);const b=t.virtual&&t.params.virtual.enabled?t.virtual.from+o:o,y=(b===s||b===s-1)&&p>0&&p<1&&(n||t.params.cssMode)&&l<r,E=(b===s||b===s+1)&&p<0&&p>-1&&(n||t.params.cssMode)&&l>r;if(y||E){const e=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*e,g+=-.5*e,w+=96*e,h=-25*e*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!t.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n translate3d(${m}, ${h}, ${f}px)\n rotateZ(${i.rotate?a?-v:v:0}deg)\n scale(${x})\n `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=fe("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length;me(0,d).style.transform=S}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),he({swiper:t,duration:e,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];return ie.use(ge),ie}(); 16/* End */ 17; 18; /* Start:"a:4:{s:4:"full";s:62:"/local/templates/ezetek/libraries/slick.min.js?176659034442863";s:6:"source";s:46:"/local/templates/ezetek/libraries/slick.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 19!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 6,594 bytes, line 19
19sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 19
19ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
19slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
19parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
19,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 19
19,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
19!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
19):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
19o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
19,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}}); 20 21/* End */ 22; 23; /* Start:"a:4:{s:4:"full";s:59:"/local/templates/ezetek/js/js-datepicker.js?177470468616892";s:6:"source";s:43:"/local/templates/ezetek/js/js-datepicker.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 24!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.datepicker=t():e.datepicker=t()}(window,(function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var a=[],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["January","February","March","April","May","June","July","August","September","October","November","December"],o={t:"top",r:"right",b:"bottom",l:"left",c:"centered"};function s(){}var l=["click","focusin","keydown","input"];function d(e){l.forEach((function(t){e.addEventListener(t,e===document?L:Y)}))}function c(e){return Array.isArray(e)?e.map(c):"[object Object]"===x(e)?Object.keys(e).reduce((function(t,n){return t[n]=c(e[n]),t}),{}):e}function u(e,t){var n=e.calendar.querySelector(".qs-overlay"),a=n&&!n.classList.contains("qs-hidden");t=t||new Date(e.currentYear,e.currentMonth),e.calendar.innerHTML=[h(t,e,a),f(t,e,a),v(e,a)].join(""),a&&window.requestAnimationFrame((function(){M(!0,e)}))}function h(e,t,n){return['<div class="qs-controls'+(n?" qs-blur":"")+'">','<div class="qs-arrow qs-left"></div>','<div class="qs-month-year'+(t.disableYearOverlay?" qs-disabled-year-overlay":"")+'">','<span class="qs-month">'+t.months[e.getMonth()]+"</span>",'<span class="qs-year">'+e.getFullYear()+"</span>","</div>",'<div class="qs-arrow qs-right"></div>',"</div>"].join("")}function f(e,t,n){var a=t.currentMonth,r=t.currentYear,i=t.dateSelected,o=t.maxDate,s=t.minDate,l=t.showAllDates,d=t.days,c=t.disabledDates,u=t.startDay,h=t.weekendIndices,f=t.events,v=t.getRange?t.getRange():{},m=+v.start,y=+v.end,p=g(new Date(e).setDate(1)),w=p.getDay()-u,D=w<0?7:0;p.setMonth(p.getMonth()+1),p.setDate(0);var b=p.getDate(),q=[],S=D+7*((w+b)/7|0);S+=(w+b)%7?7:0;for(var M=1;M<=S;M++){var E=(M-1)%7,x=d[E],C=M-(w>=0?w:7+w),L=new Date(r,a,C),Y=f[+L],j=C<1||C>b,O=j?C<1?-1:1:0,P=j&&!l,k=P?"":L.getDate(),N=+L==+i,_=E===h[0]||E===h[1],I=m!==y,A="qs-square "+
vendor: 15,216 bytes, lines 24-46
24x;Y&&!P&&(A+=" qs-event"),j&&(A+=" qs-outside-current-month"),!l&&j||(A+=" qs-num"),N&&(A+=" qs-active"),(c[+L]||t.disabler(L)||_&&t.noWeekends||s&&+L<+s||o&&+L>+o)&&!P&&(A+=" qs-disabled"),+g(new Date)==+L&&(A+=" qs-current"),+L===m&&y&&I&&(A+=" qs-range-start"),+L>m&&+L<y&&(A+=" qs-range-middle"),+L===y&&m&&I&&(A+=" qs-range-end"),P&&(A+=" qs-empty",k=""),q.push('<div class="'+A+'" data-direction="'+O+'">'+k+"</div>")}var R=d.map((function(e){return'<div class="qs-square qs-day">'+e+"</div>"})).concat(q);return R.unshift('<div class="qs-squares'+(n?" qs-blur":"")+'">'),R.push("</div>"),R.join("")}function v(e,t){var n=e.overlayPlaceholder,a=e.overlayButton;return['<div class="qs-overlay'+(t?"":" qs-hidden")+'">',"<div>",'<input class="qs-overlay-year" placeholder="'+n+'" inputmode="numeric" />','<div class="qs-close">✕</div>',"</div>",'<div class="qs-overlay-month-container">'+e.overlayMonths.map((function(e,t){return'<div class="qs-overlay-month" data-month-num="'+t+'">'+e+"</div>"})).join("")+"</div>",'<div class="qs-submit qs-disabled">'+a+"</div>","</div>"].join("")}function m(e,t,n){var a=t.el,r=t.calendar.querySelector(".qs-active"),i=e.textContent,o=t.sibling;(a.disabled||a.readOnly)&&t.respectDisabledReadOnly||(t.dateSelected=n?void 0:new Date(t.currentYear,t.currentMonth,i),r&&r.classList.remove("qs-active"),n||e.classList.add("qs-active"),p(a,t,n),n||q(t),o&&(y({instance:t,deselect:n}),t.first&&!o.dateSelected&&(o.currentYear=t.currentYear,o.currentMonth=t.currentMonth,o.currentMonthName=t.currentMonthName),u(t),u(o)),t.onSelect(t,n?void 0:new Date(t.dateSelected)))}function y(e){var t=e.instance.first?e.instance:e.instance.sibling,n=t.sibling;t===e.instance?e.deselect?(t.minDate=t.originalMinDate,n.minDate=n.originalMinDate):n.minDate=t.dateSelected:e.deselect?(n.maxDate=n.originalMaxDate,t.maxDate=t.originalMaxDate):t.maxDate=n.dateSelected}function p(e,t,n){if(!t.nonInput)return n?e.value="":t.formatter!==s?t.formatter(e,t.dateSelected,t):void(e.value=t.dateSelected.toDateString())}function w(e,t,n,a){n||a?(n&&(t.currentYear=+n),a&&(t.currentMonth=+a)):(t.currentMonth+=e.contains("qs-right")?1:-1,12===t.currentMonth?(t.currentMonth=0,t.currentYear++):-1===t.currentMonth&&(t.currentMonth=11,t.currentYear--)),t.currentMonthName=t.months[t.currentMonth],u(t),t.onMonthChange(t)}function D(e){if(!e.noPosition){var t=e.position.top,n=e.position.right;if(e.position.centered)return e.calendarContainer.classList.add("qs-centered");var a=e.positionedEl.getBoundingClientRect(),r=e.el.getBoundingClientRect(),i=e.calendarContainer.getBoundingClientRect(),o=r.top-a.top+(t?-1*i.height:r.height)+"px",s=r.left-a.left+(n?r.width-i.width:0)+"px";e.calendarContainer.style.setProperty("top",o),e.calendarContainer.style.setProperty("left",s)}}function b(e){return"[object Date]"===x(e)&&"Invalid Date"!==e.toString()}function g(e){if(b(e)||"number"==typeof e&&!isNaN(e)){var t=new Date(+e);return new Date(t.getFullYear(),t.getMonth(),t.getDate())}}function q(e){e.disabled||!e.calendarContainer.classList.contains("qs-hidden")&&!e.alwaysShow&&("overlay"!==e.defaultView&&M(!0,e),e.calendarContainer.classList.add("qs-hidden"),e.onHide(e))}function S(e){e.disabled||(e.calendarContainer.classList.remove("qs-hidden"),"overlay"===e.defaultView&&M(!1,e),D(e),e.onShow(e))}function M(e,t){var n=t.calendar,a=n.querySelector(".qs-overlay"),r=a.querySelector(".qs-overlay-year"),i=n.querySelector(".qs-controls"),o=n.querySelector(".qs-squares");e?(a.classList.add("qs-hidden"),i.classList.remove("qs-blur"),o.classList.remove("qs-blur"),r.value=""):(a.classList.remove("qs-hidden"),i.classList.add("qs-blur"),o.classList.add("qs-blur"),r.focus())}function E(e,t,n,a){var r=isNaN(+(new Date).setFullYear(t.value||void 0)),i=r?null:t.value;if(13===e.which||13===e.keyCode||"click"===e.type)a?w(null,n,i,a):r||t.classList.contains("qs-disabled")||w(null,n,i);else if(n.calendar.contains(t)){n.calendar.querySelector(".qs-submit").classList[r?"add":"remove"]("qs-disabled")}}function x(e){return{}.toString.call(e)}function C(e){a.forEach((function(t){t!==e&&q(t)}))}function L(e){if(!e.__qs_shadow_dom){var t=e.which||e.keyCode,n=e.type,r=e.target,o=r.classList,s=a.filter((function(e){return e.calendar.contains(r)||e.el===r}))[0],l=s&&s.calendar.contains(r);if(!(s&&s.isMobile&&s.disableMobile))if("click"===n){if(!s)return a.forEach(q);if(s.disabled)return;var d=s.calendar,c=s.calendarContainer,h=s.disableYearOverlay,f=s.nonInput,v=d.querySelector(".qs-overlay-year"),y=!!d.querySelector(".qs-hidden"),p=d.querySelector(".qs-month-year").contains(r),D=r.dataset.monthNum;if(s.noPosition&&!l)(c.classList.contains("qs-hidden")?S:q)(s);else if(o.contains("qs-arrow"))w(o,s);else if(p||o.contains("qs-close"))h||M(!y,s);else if(D)E(e,v,s,D);else{if(o.contains("qs-disabled"))return;if(o.contains("qs-num")){var b=r.textContent,g=+r.dataset.direction,x=new Date(s.currentYear,s.currentMonth+g,b);if(g){s.currentYear=x.getFullYear(),s.currentMonth=x.getMonth(),s.currentMonthName=i[s.currentMonth],u(s);for(var L,Y=s.calendar.querySelectorAll('[data-direction="0"]'),j=0;!L;){var O=Y[j];O.textContent===b&&(L=O),j++}r=L}return void(+x==+s.dateSelected?m(r,s,!0):r.classList.contains("qs-disabled")||m(r,s))}o.contains("qs-submit")?E(e,v,s):f&&r===s.el&&(S(s),C(s))}}else if("focusin"===n&&s)S(s),C(s);else if("keydown"===n&&9===t&&s)q(s);else if("keydown"===n&&s&&!s.disabled){var P=!s.calendar.querySelector(".qs-overlay").classList.contains("qs-hidden");13===t&&P&&l?E(e,r,s):27===t&&P&&l&&M(!0,s)}else if("input"===n){if(!s||!s.calendar.contains(r))return;var k=s.calendar.querySelector(".qs-submit"),N=r.value.split("").reduce((function(e,t){return e||"0"!==t?e+(t.match(/[0-9]/)?t:""):""}),"").slice(0,4);r.value=N,k.classList[4===N.length?"remove":"add"]("qs-disabled")}}}function Y(e){L(e),e.__qs_shadow_dom=!0}function j(e,t){l.forEach((function(n){e.removeEventListener(n,t)}))}function O(){S(this)}function P(){q(this)}function k(e,t){var n=g(e),a=this.currentYear,r=this.currentMonth,i=this.sibling;if(null==e)return this.dateSelected=void 0,p(this.el,this,!0),i&&(y({instance:this,deselect:!0}),u(i)),u(this),this;if(!b(e))throw new Error("`setDate` needs a JavaScript Date object.");if(this.disabledDates[+n]||n<this.minDate||n>this.maxDate)throw new Error("You can't manually set a date that's disabled.");this.dateSelected=n,t&&(this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth(),this.currentMonthName=this.months[n.getMonth()]),p(this.el,this),i&&(y({instance:this}),u(i));var o=a===n.getFullYear()&&r===n.getMonth();return o||t?u(this,n):o||u(this,new Date(a,r,1)),this}function N(e){return I(this,e,!0)}function _(e){return I(this,e)}function I(e,t,n){var a=e.dateSelected,r=e.first,i=e.sibling,o=e.minDate,s=e.maxDate,l=g(t),d=n?"Min":"Max";function c(){return"original"+d+"Date"}function h(){return d.toLowerCase()+"Date"}function f(){return"set"+d}function v(){throw new Error("Out-of-range date passed to "+f())}if(null==t)e[c()]=void 0,i?(i[c()]=void 0,n?(r&&!a||!r&&!i.dateSelected)&&(e.minDate=void 0,i.minDate=void 0):(r&&!i.dateSelected||!r&&!a)&&(e.maxDate=void 0,i.maxDate=void 0)):e[h()]=void 0;else{if(!b(t))throw new Error("Invalid date passed to "+f());i?((r&&n&&l>(a||s)||r&&!n&&l<(i.dateSelected||o)||!r&&n&&l>(i.dateSelected||s)||!r&&!n&&l<(a||o))&&v(),e[c()]=l,i[c()]=l,(n&&(r&&!a||!r&&!i.dateSelected)||!n&&(r&&!i.dateSelected||!r&&!a))&&(e[h()]=l,i[h()]=l)):((n&&l>(a||s)||!n&&l<(a||o))&&v(),e[h()]=l)}return i&&u(i),u(e),e}function A(){var e=this.first?this:this.sibling,t=e.sibling;return{start:e.dateSelected,end:t.dateSelected}}function R(){var e=this.shadowDom,t=this.positionedEl,n=this.calendarContainer,r=this.sibling,i=this;this.inlinePosition&&(a.some((function(e){return e!==i&&e.positionedEl===t}))||t.style.setProperty("position",null));n.remove(),a=a.filter((function(e){return e!==i})),r&&delete r.sibling,a.length||j(document,L);var o=a.some((function(t){return t.shadowDom===e}));for(var s in e&&!o&&j(e,Y),this)delete this[s];a.length||l.forEach((function(e){document.removeEventListener(e,L)}))}function F(e,t){var n=new Date(e);if(!b(n))throw new Error("Invalid date passed to `navigate`");this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth(),u(this),t&&this.onMonthChange(this)}function B(){var e=!this.calendarContainer.classList.contains("qs-hidden"),t=!this.calendarContainer.querySelector(".qs-overlay").classList.contains("qs-hidden");e&&M(t,this)}t.default=function(e,t){var n=function(e,t){var n,l,d=function(e){var t=c(e);t.events&&(t.events=t.events.reduce((function(e,t){if(!b(t))throw new Error('"options.events" must only contain valid JavaScript Date objects.');return e[+g(t)]=!0,e}),{}));["startDate","dateSelected","minDate","maxDate"].forEach((function(e){var n=t[e];if(n&&!b(n))throw new Error('"options.'+e+'" needs to be a valid JavaScript Date object.');t[e]=g(n)}));var n=t.position,i=t.maxDate,l=t.minDate,d=t.dateSelected,u=t.overlayPlaceholder,h=t.overlayButton,f=t.startDay,v=t.id;if(t.startDate=g(t.startDate||d||new Date),t.disabledDates=(t.disabledDates||[]).reduce((function(e,t){var n=+g(t);if(!b(t))throw new Error('You supplied an invalid date to "options.disabledDates".');if(n===+g(d))throw new Error('"disabledDates" cannot contain the same date as "dateSelected".');return e[n]=1,e}),{}),t.hasOwnProperty("id")&&null==v)throw new Error("`id` cannot be `null` or `undefined`");if(null!=v){var m=a.filter((function(e){return e.id===v}));if(m.length>1)throw new Error("Only two datepickers can share an id.");m.length?(t.second=!0,t.sibling=m[0]):t.first=!0}var y=["tr","tl","br","bl","c"].some((function(e){return n===e}));if(n&&!y)throw new Error('"options.position" must be one of the following: tl, tr, bl, br, or c.');function p(e){throw new Error('"dateSelected" in options is '+(e?"less":"greater")+' than "'+(e||"max")+'Date".')}if(t.position=function(e){var t=e[0],n=e[1],a={};a[o[t]]=1,n&&(a[o[n]]=1);return a}(n||"bl"),i<l)throw new Error('"maxDate" in options is less than "minDate".');d&&(l>d&&p("min"),i<d&&p());if(["onSelect","onShow","onHide","onMonthChange","formatter","disabler"].forEach((function(e){"function"!=typeof t[e]&&(t[e]=s)})),["customDays","customMonths","customOverlayMonths"].forEach((function(e,n){var a=t[e],r=n?12:7;if(a){if(!Array.isArray(a)||a.length!==r||a.some((function(e){return"string"!=typeof e})))throw new Error('"'+e+'" must be an array with '+r+" strings.");t[n?n<2?"months":"overlayMonths":"days"]=a}})),f&&f>0&&f<7){var w=(t.customDays||r).slice(),D=w.splice(0,f);t.customDays=w.concat(D),t.startDay=+f,t.weekendIndices=[w.length-1,w.length]}else t.startDay=0,t.weekendIndices=[6,0];"string"!=typeof u&&delete t.overlayPlaceholder;"string"!=typeof h&&delete t.overlayButton;var q=t.defaultView;if(q&&"calendar"!==q&&"overlay"!==q)throw new Error('options.defaultView must either be "calendar" or "overlay".');return t.defaultView=q||"calendar",t}(t||{startDate:g(new Date),position:"bl",defaultView:"calendar"}),u=e;if("string"==typeof u)u="#"===u[0]?document.getElementById(u.slice(1)):document.querySelector(u);else{if("[object ShadowRoot]"===x(u))throw new Error("Using a shadow DOM as your selector is not supported.");for(var h,f=u.parentNode;!h;){var v=x(f);"[object HTMLDocument]"===v?h=!0:"[object ShadowRoot]"===v?(h=!0,n=f,l=f.host):f=f.parentNode}}if(!u)throw new Error("No selector / element found.");if(a.some((function(e){return e.el===u})))throw new Error("A datepicker already exists on that element.");var m=u===document.body,y=n?u.parentElement||n:m?document.body:u.parentElement,w=n?u.parentElement||l:y,D=document.createElement("div"),q=document.createElement("div");D.className="qs-datepicker-container qs-hidden",q.className="qs-datepicker";var M={shadowDom:n,customElement:l,positionedEl:w,el:u,parent:y,nonInput:"INPUT"!==u.nodeName,noPosition:m,position:!m&&d.position,startDate:d.startDate,dateSelected:d.dateSelected,disabledDates:d.disabledDates,minDate:d.minDate,maxDate:d.maxDate,noWeekends:!!d.noWeekends,weekendIndices:d.weekendIndices,calendarContainer:D,calendar:q,currentMonth:(d.startDate||d.dateSelected).getMonth(),currentMonthName:(d.months||i)[(d.startDate||d.dateSelected).getMonth()],currentYear:(d.startDate||d.dateSelected).getFullYear(),events:d.events||{},defaultView:d.defaultView,setDate:k,remove:R,setMin:N,setMax:_,show:O,hide:P,navigate:F,toggleOverlay:B,onSelect:d.onSelect,onShow:d.onShow,onHide:d.onHide,onMonthChange:d.onMonthChange,formatter:d.formatter,disabler:d.disabler,months:d.months||i,days:d.customDays||r,startDay:d.startDay,overlayMonths:d.overlayMonths||(d.months||i).map((function(e){return e.slice(0,3)})),overlayPlaceholder:d.overlayPlaceholder||"4-digit year",overlayButton:d.overlayButton||"Submit",disableYearOverlay:!!d.disableYearOverlay,disableMobile:!!d.disableMobile,isMobile:"ontouchstart"in window,alwaysShow:!!d.alwaysShow,id:d.id,showAllDates:!!d.showAllDates,respectDisabledReadOnly:!!d.respectDisabledReadOnly,first:d.first,second:d.second};if(d.sibling){var E=d.sibling,C=M,L=E.minDate||C.minDate,Y=E.maxDate||C.maxDate;C.sibling=E,E.sibling=C,E.minDate=L,E.maxDate=Y,C.minDate=L,C.maxDate=Y,E.originalMinDate=L,E.originalMaxDate=Y,C.originalMinDate=L,C.originalMaxDate=Y,E.getRange=A,C.getRange=A}d.dateSelected&&p(u,M);var j=getComputedStyle(w).position;m||j&&"static"!==j||(M.inlinePosition=!0,w.style.setProperty("position","relative"));var I=a.filter((function(e){return e.positionedEl===M.positionedEl}));I.some((function(e){return e.inlinePosition}))&&(M.inlinePosition=!0,I.forEach((function(e){e.inlinePosition=!0})));D.appendChild(q),y.appendChild(D),M.alwaysShow&&S(M);return M}(e,t);if(a.length||d(document),n.shadowDom&&(a.some((function(e){return e.shadowDom===n.shadowDom}))||d(n.shadowDom)),a.push(n),n.second){var l=n.sibling;y({instance:n,deselect:!n.dateSelected}),y({instance:l,deselect:!l.dateSelected}),u(l)}return u(n,n.startDate||n.dateSelected),n.alwaysShow&&D(n),n}}]).default})); 25/* End */ 26; 27; /* Start:"a:4:{s:4:"full";s:49:"/local/templates/ezetek/js/tabs.js?17665903441034";s:6:"source";s:34:"/local/templates/ezetek/js/tabs.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 28document.addEventListener('DOMContentLoaded', () => { 29 const tabButtons = document.querySelectorAll('.ez-tabs__button[data-tab]'); 30 31 tabButtons.forEach((tabButton) => { 32 tabButton.addEventListener('click', (event) => { 33 event.preventDefault(); 34 35 const tabNumber = tabButton.getAttribute('data-tab'); 36 const tabsGroup = tabButton.closest('.ez-tabs'); 37 const currentTab = tabsGroup.querySelector('.ez-tabs__item--current'); 38 const currentTabButton = tabsGroup.querySelector('.ez-tabs__button--current'); 39 const selectedTab = tabsGroup.querySelector('.ez-tabs__item[data-tab="' + tabNumber + '"]'); 40 const selectedTabButton = tabsGroup.querySelector('.ez-tabs__button[data-tab="' + tabNumber + '"]'); 41 42 currentTabButton.classList.remove('ez-tabs__button--current'); 43 selectedTabButton.classList.add('ez-tabs__button--current'); 44 currentTab.classList.remove('ez-tabs__item--current'); 45 selectedTab.classList.add('ez-tabs__item--current'); 46 });
47 }); 48}); 49 50/* End */ 51; 52; /* Start:"a:4:{s:4:"full";s:55:"/local/templates/ezetek/js/listSlider.js?17665903442720";s:6:"source";s:40:"/local/templates/ezetek/js/listSlider.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 53function initializeList({ 54 sliderContainerSelector, 55 slideSelector, 56 containerSelector 57}) { 58 const slider = document.querySelector(sliderContainerSelector); 59 const listContainer = document.querySelector(containerSelector); 60 61 if (!slider || !listContainer) { 62 console.error('ÐевеÑнÑе ÑелекÑоÑÑ. ÐÑовеÑÑÑе, ÑÑо ÑÐºÐ°Ð·Ð°Ð½Ñ Ð¿ÑавилÑнÑе ÑелекÑоÑÑ Ð´Ð»Ñ ÑлайдеÑа и конÑейнеÑа.'); 63 return; 64 } 65 66 let isDown = false; 67 let startX; 68 let currentTranslate = 0; 69 let prevTranslate = 0; 70 let animationID; 71 let hasMoved = false; 72 73 const sliderWidth = slider.scrollWidth; 74 const containerWidth = listContainer.offsetWidth; 75 76 let totalPadding = 0 77 78 79 if (window.innerWidth < 1600) { 80 totalPadding = 20; 81 } else { 82 totalPadding = 0; 83 return 84 } 85 86 function clamp(value, min, max) { 87 return Math.max(min, Math.min(value, max)); 88 } 89 90 slider.querySelectorAll('a').forEach(link => { 91 link.addEventListener('dragstart', e => e.preventDefault()); 92 93 link.addEventListener('click', e => { 94 if (hasMoved) e.preventDefault(); 95 }); 96 }); 97 98 function startDragging(e) { 99 isDown = true; 100 hasMoved = false; 101 slider.classList.add('active'); 102 startX = e.pageX || e.touches[0].pageX; 103 prevTranslate = currentTranslate; 104 animationID = requestAnimationFrame(animation); 105 } 106 107 function stopDragging() { 108 isDown = false; 109 slider.classList.remove('active'); 110 cancelAnimationFrame(animationID); 111 } 112 113 function moveSlider(e) { 114 if (!isDown) return; 115 const deltaX = (e.pageX || e.touches[0].pageX) - startX; 116 currentTranslate = prevTranslate + deltaX; 117 118 if (Math.abs(deltaX) > 5) { 119 hasMoved = true; 120 } 121 122 const maxTranslate = 0; 123 const minTranslate = containerWidth - sliderWidth - totalPadding; 124 currentTranslate = clamp(currentTranslate, minTranslate, maxTranslate); 125 } 126 127 slider.addEventListener('mousedown', startDragging); 128 slider.addEventListener('mouseleave', stopDragging); 129 slider.addEventListener('mouseup', stopDragging); 130 slider.addEventListener('mousemove', moveSlider); 131 132 slider.addEventListener('touchstart', startDragging); 133 slider.addEventListener('touchend', stopDragging); 134 slider.addEventListener('touchmove', moveSlider); 135 136 function animation() { 137 slider.style.transform = `translateX(${currentTranslate}px)`; 138 if (isDown) requestAnimationFrame(animation); 139 } 140} 141/* End */ 142; 143; /* Start:"a:4:{s:4:"full";s:60:"/local/templates/ezetek/js/price-formatter.js?17665903441576";s:6:"source";s:45:"/local/templates/ezetek/js/price-formatter.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 144/** 145 * ФоÑмаÑиÑование ÑенÑ: еÑли Ñена = 0, возвÑаÑÐ°ÐµÑ "Ðо запÑоÑÑ", инаÑе ÑоÑмаÑиÑованнÑÑ ÑÐµÐ½Ñ 146 */ 147if (typeof BX !== 'undefined' && typeof BX.Currency !== 'undefined') { 148 BX.PriceFormatter = { 149 PRICE_ON_REQUEST: 'Ðо запÑоÑÑ', 150 151 /** 152 * ÐÑовеÑÑеÑ, Ñавна ли Ñена нÑÐ»Ñ 153 * @param {number|string} price 154 * @returns {boolean} 155 */ 156 isPriceZero: function(price) { 157 return parseFloat(price) == 0; 158 }, 159 160 /** 161 * ФоÑмаÑиÑÑÐµÑ ÑенÑ: возвÑаÑÐ°ÐµÑ "Ðо запÑоÑÑ" еÑли Ñена = 0, инаÑе ÑоÑмаÑиÑованнÑÑ ÑÐµÐ½Ñ 162 * @param {number|string} price 163 * @param {string} currency 164 * @param {string|null} formattedPrice Уже оÑÑоÑмаÑиÑÐ¾Ð²Ð°Ð½Ð½Ð°Ñ Ñена (еÑли еÑÑÑ) 165 * @returns {string} 166 */ 167 formatPrice: function(price, currency, formattedPrice) { 168 if (this.isPriceZero(price)) { 169 return this.PRICE_ON_REQUEST; 170 } 171 172 if (formattedPrice !== null && formattedPrice !== undefined) { 173 return formattedPrice; 174 } 175 176 if (typeof BX.Currency.currencyFormat === 'function') { 177 return BX.Currency.currencyFormat(price, currency, true); 178 } 179 180 return String(price); 181 } 182 }; 183} 184 185/* End */ 186; 187; /* Start:"a:4:{s:4:"full";
187s:52:"/local/templates/ezetek/js/scripts.js?17878371015165";s:6:"source";s:37:"/local/templates/ezetek/js/scripts.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 188$('document').ready(function() { 189 // menu mobile 190 $('body').on('click', function (event) { 191 var $target = $(event.target); 192 193 if ($target.closest('.button-round--menu').length) { 194 $('#menu_wr2').toggleClass('active'); 195 return false; 196 } 197 198 if ($target.closest('.mob-menu__close').length) { 199 $('#menu_wr2').removeClass('active'); 200 return false; 201 } 202 203 if ($('#menu_wr2').hasClass('active') && 204 !$target.closest('.mob-menu').length && 205 $target.closest('#menu_wr2').length) { 206 $('#menu_wr2').removeClass('active'); 207 } 208 }); 209 210 211 // menu catalog 212 $('body').on('click', '.bar__catalog .button-brand', function(event) { 213 event.preventDefault(); 214 215 var barCatalog = $(this).closest('.bar__catalog'); 216 var menuCatalog = $('.menu-catalog'); 217 218 barCatalog.toggleClass('bar__catalog--active'); 219 menuCatalog.toggleClass('menu-catalog--active'); 220 }); 221 222 $('body').on('click', '.menu-catalog__main .menu-catalog__link', function(event) { 223 event.preventDefault(); 224 var dataTab = $(this).attr('data-tab'); 225 var catalogTab = $('.menu-catalog__side[data-tab="' + dataTab + '"]'); 226 227 $('.menu-catalog__side--active').removeClass('menu-catalog__side--active'); 228 229 catalogTab.addClass('menu-catalog__side--active'); 230 231 $(this).addClass('menu-catalog__side--active'); 232 console.log(dataTab); 233 }); 234 235 // bar (header) 236 const bar = document.querySelector('.bar'); 237 238 window.addEventListener('scroll', () => { 239 if (window.scrollY >= 100) { 240 bar.classList.add('bar--fixed'); 241 } else { 242 bar.classList.remove('bar--fixed'); 243 } 244 }); 245 246 // hero 247 var sliderCreative = new Swiper('.slider-creative', { 248 grabCursor: true, 249 speed: 900, 250 loop: true, 251 effect: 'creative', 252 creativeEffect: { 253 prev: { 254 shadow: true, 255 translate: ['-20%', 0, -1], 256 }, 257 next: { 258 translate: ['100%', 0, 0], 259 }, 260 shadowPerProgress: true 261 }, 262 navigation: { 263 prevEl: '.slider-btns__item--prev', 264 nextEl: '.slider-btns__item--next', 265 }, 266 }); 267 268 // product cards 269 $('.product-cards').slick({ 270 slidesToShow: 5, 271 responsive: [ 272 { 273 breakpoint: 1440, 274 settings: { 275 slidesToShow: 4, 276 }, 277 }, 278 { 279 breakpoint: 990, 280 settings: { 281 arrows: false, 282 slidesToShow: 3, 283 // dots: true, 284 }, 285 }, 286 { 287 breakpoint: 600, 288 settings: { 289 arrows: false, 290 slidesToShow: 2, 291 // dots: true, 292 }, 293 }, 294 ], 295 }); 296 297 // media list 298 $('.media-list').slick({ 299 autoplay: true, 300 autoplaySpeed: 0, 301 speed: 5000, 302 infinite: true, 303 cssEase: 'linear', 304 pauseOnHover: false, 305 pauseOnFocus: false, 306 pauseOnDotsHover: false, 307 draggable: false, 308 swipe: false, 309 touchMove: false, 310 slidesToShow: 5, 311 arrows: false, 312 responsive: [ 313 { 314 breakpoint: 1720, 315 settings: { 316 slidesToShow: 4, 317 }, 318 }, 319 { 320 breakpoint: 1440, 321 settings: { 322 slidesToShow: 3, 323 }, 324 }, 325 { 326 breakpoint: 1160, 327 settings: { 328 variableWidth: true, 329 slidesToShow: 2, 330 }, 331 }, 332 { 333 breakpoint: 600, 334 settings: { 335 variableWidth: true, 336 slidesToShow: 1, 337 }, 338 }, 339 ], 340 }); 341 342 // cards 343 $('.hp-section .cards').slick({ 344 slidesToShow: 4, 345 infinite: true, 346 responsive: [ 347 { 348 breakpoint: 1160, 349 settings: { 350 arrows: false, 351 slidesToShow: 3, 352 }, 353 }, 354 { 355 breakpoint: 990, 356 settings: {
357 arrows: false, 358 slidesToShow: 2, 359 dots: true, 360 }, 361 }, 362 { 363 breakpoint: 600, 364 settings: { 365 arrows: false, 366 slidesToShow: 1, 367 dots: true, 368 }, 369 }, 370 ], 371 }); 372 373 $('body').on('click', '.ez-tabs__button', function() { 374 $('.hp-section .cards').slick('setPosition'); 375 }); 376 377 // photos 378 $('.photos').slick({ 379 slidesToShow: 5, 380 arrows: false, 381 infinite: false, 382 swipe: false, 383 responsive: [ 384 { 385 breakpoint: 990, 386 settings: { 387 slidesToShow: 3, 388 swipe: true, 389 }, 390 }, 391 { 392 breakpoint: 600, 393 settings: { 394 slidesToShow: 2, 395 swipe: true, 396 }, 397 }, 398 ], 399 }); 400 401 // tiles 402 $('.tiles').slick({ 403 slidesToShow: 4, 404 arrows: false, 405 responsive: [ 406 { 407 breakpoint: 1440, 408 settings: { 409 slidesToShow: 3, 410 }, 411 }, 412 { 413 breakpoint: 990, 414 settings: { 415 slidesToShow: 2, 416 }, 417 }, 418 { 419 breakpoint: 600, 420 settings: { 421 slidesToShow: 1, 422 }, 423 }, 424 ], 425 }); 426}); 427 428/* End */ 429; 430; /* Start:"a:4:{s:4:"full";s:60:"/local/templates/ezetek/js/inputmask.min.js?1766590344120679";s:6:"source";s:43:"/local/templates/ezetek/js/inputmask.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 431/*! 432 * dist/inputmask.min 433 * https://github.com/RobinHerbots/Inputmask 434 * Copyright (c) 2010 - 2024 Robin Herbots 435 * Licensed under the MIT license 436 * Version: 5.0.9 437 */ 438!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={3976:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={9:{validator:"[0-9\uff10-\uff19]",definitionSymbol:"*"},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",definitionSymbol:"*"},"*":{validator:"[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}},3776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=function(e,t){var n,i;u(this[0])&&e&&(n=this[0].eventRegistry,i=this[0],e.split(" ").forEach((function(e){var a=o(e.split("."),2);(function(e,i){var a,r,o=[];if(e.length>0)if(void 0===t)for(a=0,r=n[e][i].length;a<r;a++)o.push({ev:e,namespace:i&&i.length>0?i:"global",handler:n[e][i][a]});else o.push({ev:e,namespace:i&&i.length>0?i:"global",handler:t});else if(i.length>0)for(var l in n)for(var s in n[l])if(s===i)if(void 0===t)for(a=0,r=n[l][s].length;a<r;a++)o.push({ev:l,namespace:s,handler:n[l][s][a]});else o.push({ev:l,namespace:s,handler:t});return o}
vendor: 25,745 bytes, line 438
438)(a[0],a[1]).forEach((function(e){var t=e.ev,a=e.handler;!function(e,t,a){if(e in n==1)if(i.removeEventListener?i.removeEventListener(e,a,!1):i.detachEvent&&i.detachEvent("on".concat(e),a),"global"===t)for(var r in n[e])n[e][r].splice(n[e][r].indexOf(a),1);else n[e][t].splice(n[e][t].indexOf(a),1)}(t,e.namespace,a)}))})));return this},t.on=function(e,t){if(u(this[0])){var n=this[0].eventRegistry,i=this[0];e.split(" ").forEach((function(e){var a=o(e.split("."),2),r=a[0],l=a[1];!function(e,a){i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent&&i.attachEvent("on".concat(e),t),n[e]=n[e]||{},n[e][a]=n[e][a]||[],n[e][a].push(t)}(r,void 0===l?"global":l)}))}return this},t.trigger=function(e){var t=arguments;if(u(this[0]))for(var n=this[0].eventRegistry,i=this[0],o="string"==typeof e?e.split(" "):[e.type],l=0;l<o.length;l++){var s=o[l].split("."),f=s[0],p=s[1]||"global";if(void 0!==c&&"global"===p){var d,h={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(c.createEvent){try{if("input"===f)h.inputType="insertText",d=new InputEvent(f,h);else d=new CustomEvent(f,h)}catch(e){(d=c.createEvent("CustomEvent")).initCustomEvent(f,h.bubbles,h.cancelable,h.detail)}e.type&&(0,a.default)(d,e),i.dispatchEvent(d)}else(d=c.createEventObject()).eventType=f,d.detail=arguments[1],e.type&&(0,a.default)(d,e),i.fireEvent("on"+d.eventType,d)}else if(void 0!==n[f]){arguments[0]=arguments[0].type?arguments[0]:r.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var v=n[f];("global"===p?Object.values(v).flat():v[p]).forEach((function(e){return e.apply(i,t)}))}}return this};var i=s(n(9380)),a=s(n(600)),r=s(n(4963));function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e){return e&&e.__esModule?e:{default:e}}var c=i.default.document;function u(e){return e instanceof Element}var f=t.Event=void 0;"function"==typeof i.default.CustomEvent?t.Event=f=i.default.CustomEvent:i.default.Event&&c&&c.createEvent?(t.Event=f=function(e,t){t=t||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var n=c.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},f.prototype=i.default.Event.prototype):"undefined"!=typeof Event&&(t.Event=f=Event)},600:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(){var t,i,a,r,o,l,s=arguments[0]||{},c=1,u=arguments.length,f=!1;"boolean"==typeof s&&(f=s,s=arguments[c]||{},c++);"object"!==n(s)&&"function"!=typeof s&&(s={});for(;c<u;c++)if(null!=(t=arguments[c]))for(i in t)a=s[i],s!==(r=t[i])&&(f&&r&&("[object Object]"===Object.prototype.toString.call(r)||(o=Array.isArray(r)))?(o?(o=!1,l=a&&Array.isArray(a)?a:[]):l=a&&"[object Object]"===Object.prototype.toString.call(a)?a:{},s[i]=e(f,l,r)):void 0!==r&&(s[i]=r));return s}},4963:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(9380)),a=l(n(253)),r=n(3776),o=l(n(600));function l(e){return e&&e.__esModule?e:{default:e}}var s=i.default.document;function c(e){return e instanceof c?e:this instanceof c?void(null!=e&&e!==i.default&&(this[0]=e.nodeName?e:void 0!==e[0]&&e[0].nodeName?e[0]:s.querySelector(e),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new c(e)}c.prototype={on:r.on,off:r.off,trigger:r.trigger},c.extend=o.default,c.data=a.default,c.Event=r.Event;t.default=c},9845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mobile=t.iphone=t.ie=void 0;var i,a=(i=n(9380))&&i.__esModule?i:{default:i};var r=a.default.navigator&&a.default.navigator.userAgent||"";t.ie=r.indexOf("MSIE ")>0||r.indexOf("Trident/")>0,t.mobile=a.default.navigator&&a.default.navigator.userAgentData&&a.default.navigator.userAgentData.mobile||a.default.navigator&&a.default.navigator.maxTouchPoints||"ontouchstart"in a.default,t.iphone=/iphone/i.test(r)},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var a,r=n(9845),o=(a=n(9380))&&a.__esModule?a:{default:a},l=n(7760),s=n(2839),c=n(8711),u=n(7215),f=n(4713);function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var a=t&&t.prototype instanceof k?t:k,o=Object.create(a.prototype),l=new D(i||[]);return r(o,"_invoke",{value:E(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",v="suspendedYield",m="executing",g="completed",y={};function k(){}function b(){}function x(){}var w={};u(w,l,(function(){return this}));var P=Object.getPrototypeOf,S=P&&P(P(L([])));S&&S!==n&&a.call(S,l)&&(w=S);var O=x.prototype=k.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(r,o,l,s){var c=d(e[r],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==i(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(f).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){n(e,i,t,a)}))}return o=o?o.then(a,a):a()}})}function E(t,n,i){var a=h;return function(r,o){if(a===m)throw new Error("Generator is already running");if(a===g){if("throw"===r)throw o;return{value:e,done:!0}}for(i.method=r,i.arg=o;;){var l=i.delegate;if(l){var s=j(l,i);if(s){if(s===y)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===h)throw a=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;var c=d(t,n,i);if("normal"===c.type){if(a=i.done?g:v,c.arg===y)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=g,i.method="throw",i.arg=c.arg)}}}function j(t,n){var i=n.method,a=t.iterator[i];if(a===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var r=d(a,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(i(t)+" is not iterable")}return b.prototype=x,r(O,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:b,configurable:!0}),b.displayName=u(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},_(M.prototype),u(M.prototype,s,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,i,a,r){void 0===r&&(r=Promise);var o=new M(f(e,n,i,a),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(O),u(O,c,"Generator"),u(O,l,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=L,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(i,a){return l.type="throw",l.arg=t,n.next=i,a&&(n.method="next",n.arg=e),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:L(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),y}},t}function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function v(e,t,n,i,a,r,o){try{var l=e[r](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(i,a)}var m,g,y=t.EventHandlers={keyEvent:function(e,t,n,i,a){var o=this.inputmask,p=o.opts,d=o.dependencyLib,h=o.maskset,v=this,m=d(v),g=e.key,k=c.caret.call(o,v),b=p.onKeyDown.call(this,e,c.getBuffer.call(o),k,p);if(void 0!==b)return b;if(g===s.keys.Backspace||g===s.keys.Delete||r.iphone&&g===s.keys.BACKSPACE_SAFARI||e.ctrlKey&&g===s.keys.x&&!("oncut"in v))e.preventDefault(),u.handleRemove.call(o,v,g,k),(0,l.writeBuffer)(v,c.getBuffer.call(o,!0),h.p,e,v.inputmask._valueGet()!==c.getBuffer.call(o).join(""));else if(g===s.keys.End||g===s.keys.PageDown){e.preventDefault();var x=c.seekNext.call(o,c.getLastValidPosition.call(o));c.caret.call(o,v,e.shiftKey?k.begin:x,x,!0)}else g===s.keys.Home&&!e.shiftKey||g===s.keys.PageUp?(e.preventDefault(),c.caret.call(o,v,0,e.shiftKey?k.begin:0,!0)):p.undoOnEscape&&g===s.keys.Escape&&!0!==e.altKey?((0,l.checkVal)(v,!0,!1,o.undoValue.split("")),m.trigger("click")):g!==s.keys.Insert||e.shiftKey||e.ctrlKey||void 0!==o.userOptions.insertMode?!0===p.tabThrough&&g===s.keys.Tab?!0===e.shiftKey?(k.end=c.seekPrevious.call(o,k.end,!0),!0===f.getTest.call(o,k.end-1).match.static&&k.end--,k.begin=c.seekPrevious.call(o,k.end,!0),k.begin>=0&&k.end>0&&(e.preventDefault(),c.caret.call(o,v,k.begin,k.end))):(k.begin=c.seekNext.call(o,k.begin,!0),k.end=c.seekNext.call(o,k.begin,!0),k.end<h.maskLength&&k.end--,k.begin<=h.maskLength&&(e.preventDefault(),c.caret.call(o,v,k.begin,k.end))):e.shiftKey||(p.insertModeVisual&&!1===p.insertMode?g===s.keys.ArrowRight?setTimeout((function(){var e=c.caret.call(o,v);c.caret.call(o,v,e.begin)}),0):g===s.keys.ArrowLeft&&setTimeout((function(){var e=c.translatePosition.call(o,v.inputmask.caretPos.begin);c.translatePosition.call(o,v.inputmask.caretPos.end);o.isRTL?c.caret.call(o,v,e+(e===h.maskLength?0:1)):c.caret.call(o,v,e-(0===e?0:1))}),0):void 0===o.keyEventHook||o.keyEventHook(e)):u.isSelection.call(o,k)?p.insertMode=!p.insertMode:(p.insertMode=!p.insertMode,c.caret.call(o,v,k.begin,k.begin));return o.isComposing=g==s.keys.Process||g==s.keys.Unidentified,o.ignorable=g.length>1&&!("textarea"===v.tagName.toLowerCase()&&g==s.keys.Enter),y.keypressEvent.call(this,e,t,n,i,a)},keypressEvent:function(e,t,n,i,a){var r=this.inputmask||this,o=r.opts,f=r.dependencyLib,p=r.maskset,d=r.el,h=f(d),v=e.key;if(!0===t||e.ctrlKey&&e.altKey&&!r.ignorable||!(e.ctrlKey||e.metaKey||r.ignorable)){if(v){var m,g=t?{begin:a,end:a}:c.caret.call(r,d);t||(v=o.substitutes[v]||v),p.writeOutBuffer=!0;var y=u.isValid.call(r,g,v,i,void 0,void 0,void 0,t);if(!1!==y&&(c.resetMaskSet.call(r,!0),m=void 0!==y.caret?y.caret:c.seekNext.call(r,y.pos.begin?y.pos.begin:y.pos),p.p=m),m=o.numericInput&&void 0===y.caret?c.seekPrevious.call(r,m):m,!1!==n&&(setTimeout((function(){o.onKeyValidation.call(d,v,y)}),0),p.writeOutBuffer&&!1!==y)){var k=c.getBuffer.call(r);(0,l.writeBuffer)(d,k,m,e,!0!==t)}if(e.preventDefault(),t)return!1!==y&&(y.forwardPosition=m),y}}else v===s.keys.Enter&&r.undoValue!==r._valueGet(!0)&&(r.undoValue=r._valueGet(!0),setTimeout((function(){h.trigger("change")}),0))},pasteEvent:(m=p().mark((function e(t){var n,i,a,r,s,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e,n,i,a,o){var s=c.caret.call(e,n,void 0,void 0,!0),u=i.substr(0,s.begin),f=i.substr(s.end,i.length);if(u==(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).slice(0,s.begin).join("")&&(u=""),f==(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).slice(s.end).join("")&&(f=""),a=u+a+f,e.isRTL&&!0!==r.numericInput){a=a.split("");var p,h=d(c.getBufferTemplate.call(e));try{for(h.s();!(p=h.n()).done;){var v=p.value;a[0]===v&&a.shift()}}catch(e){h.e(e)}finally{h.f()}a=a.reverse().join("")}var m=a;if("function"==typeof o){if(!1===(m=o.call(e,m,r)))return!1;m||(m=i)}(0,l.checkVal)(n,!0,!1,m.toString().split(""),t)},i=this,a=this.inputmask,r=a.opts,s=a._valueGet(!0),a.skipInputEvent=!0,t.clipboardData&&t.clipboardData.getData?u=t.clipboardData.getData("text/plain"):o.default.clipboardData&&o.default.clipboardData.getData&&(u=o.default.clipboardData.getData("Text")),n(a,i,s,u,r.onBeforePaste),t.preventDefault();case 7:case"end":return e.stop()}}),e,this)})),g=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=m.apply(e,t);function r(e){v(a,n,i,r,o,"next",e)}function o(e){v(a,n,i,r,o,"throw",e)}r(void 0)}))},function(e){return g.apply(this,arguments)}),inputFallBackEvent:function(e){var t=this.inputmask,n=t.opts,i=t.dependencyLib;var a,o=this,u=o.inputmask._valueGet(!0),p=(t.isRTL?c.getBuffer.call(t).slice().reverse():c.getBuffer.call(t)).join(""),d=c.caret.call(t,o,void 0,void 0,!0);if(p!==u){if(a=function(e,i,a){for(var r,o,l,s=e.substr(0,a.begin).split(""),u=e.substr(a.begin).split(""),p=i.substr(0,a.begin).split(""),d=i.substr(a.begin).split(""),h=s.length>=p.length?s.length:p.length,v=u.length>=d.length?u.length:d.length,m="",g=[],y="~";s.length<h;)s.push(y);for(;p.length<h;)p.push(y);for(;u.length<v;)u.unshift(y);for(;d.length<v;)d.unshift(y);var k=s.concat(u),b=p.concat(d);for(o=0,r=k.length;o<r;o++)switch(l=f.getPlaceholder.call(t,c.translatePosition.call(t,o)),m){case"insertText":b[o-1]===k[o]&&a.begin==k.length-1&&g.push(k[o]),o=r;break;case"insertReplacementText":case"deleteContentBackward":k[o]===y?a.end++:o=r;break;default:k[o]!==b[o]&&(k[o+1]!==y&&k[o+1]!==l&&void 0!==k[o+1]||(b[o]!==l||b[o+1]!==y)&&b[o]!==y?b[o+1]===y&&b[o]===k[o+1]?(m="insertText",g.push(k[o]),a.begin--,a.end--):k[o]!==l&&k[o]!==y&&(k[o+1]===y||b[o]!==k[o]&&b[o+1]===k[o+1])?(m="insertReplacementText",g.push(k[o]),a.begin--):k[o]===y?(m="deleteContentBackward",(c.isMask.call(t,c.translatePosition.call(t,o),!0)||b[o]===n.radixPoint)&&a.end++):o=r:(m="insertText",g.push(k[o]),a.begin--,a.end--))}return{action:m,data:g,caret:a}}(u,p,d),(o.inputmask.shadowRoot||o.ownerDocument).activeElement!==o&&o.focus(),(0,l.writeBuffer)(o,c.getBuffer.call(t)),c.caret.call(t,o,d.begin,d.end,!0),!r.mobile&&t.skipNextInsert&&"insertText"===e.inputType&&"insertText"===a.action&&t.isComposing)return!1;switch("insertCompositionText"===e.inputType&&"insertText"===a.action&&t.isComposing?t.skipNextInsert=!0:t.skipNextInsert=!1,a.action){case"insertText":case"insertReplacementText":a.data.forEach((function(e,n){var a=new i.Event("keypress");a.key=e,t.ignorable=!1,y.keypressEvent.call(o,a)})),setTimeout((function(){t.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var h=new i.Event("keydown");h.key=s.keys.Backspace,y.keyEvent.call(o,h);break;default:(0,l.applyInputValue)(o,u),c.caret.call(t,o,d.begin,d.end,!0)}e.preventDefault()}},setValueEvent:function(e){var t=this.inputmask,n=t.dependencyLib,i=this,a=e&&e.detail?e.detail[0]:arguments[1];void 0===a&&(a=i.inputmask._valueGet(!0)),(0,l.applyInputValue)(i,a,new n.Event("input")),(e.detail&&void 0!==e.detail[1]||void 0!==arguments[2])&&c.caret.call(t,i,e.detail?e.detail[1]:arguments[2])},focusEvent:function(e){var t=this.inputmask,n=t.opts,i=t&&t._valueGet();n.showMaskOnFocus&&i!==c.getBuffer.call(t).join("")&&(0,l.writeBuffer)(this,c.getBuffer.call(t),c.seekNext.call(t,c.getLastValidPosition.call(t))),!0!==n.positionCaretOnTab||!1!==t.mouseEnter||u.isComplete.call(t,c.getBuffer.call(t))&&-1!==c.getLastValidPosition.call(t)||y.clickEvent.apply(this,[e,!0]),t.undoValue=t&&t._valueGet(!0)},invalidEvent:function(e){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var e=this.inputmask,t=e.opts,n=this;e.mouseEnter=!1,t.clearMaskOnLostFocus&&(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n&&(0,l.HandleNativePlaceholder)(n,e.originalPlaceholder)},clickEvent:function(e,t){var n=this.inputmask;n.clicked++;var i=this;if((i.inputmask.shadowRoot||i.ownerDocument).activeElement===i){var a=c.determineNewCaretPosition.call(n,c.caret.call(n,i),t);void 0!==a&&c.caret.call(n,i,a)}},cutEvent:function(e){var t=this.inputmask,n=t.maskset,i=this,a=c.caret.call(t,i),r=t.isRTL?c.getBuffer.call(t).slice(a.end,a.begin):c.getBuffer.call(t).slice(a.begin,a.end),f=t.isRTL?r.reverse().join(""):r.join("");o.default.navigator&&o.default.navigator.clipboard?o.default.navigator.clipboard.writeText(f):o.default.clipboardData&&o.default.clipboardData.getData&&o.default.clipboardData.setData("Text",f),u.handleRemove.call(t,i,s.keys.Delete,a),(0,l.writeBuffer)(i,c.getBuffer.call(t),n.p,e,t.undoValue!==t._valueGet(!0))},blurEvent:function(e){var t=this.inputmask,n=t.opts,i=t.dependencyLib;t.clicked=0;var a=i(this),r=this;if(r.inputmask){(0,l.HandleNativePlaceholder)(r,t.originalPlaceholder);var o=r.inputmask._valueGet(),s=c.getBuffer.call(t).slice();""!==o&&(n.clearMaskOnLostFocus&&(-1===c.getLastValidPosition.call(t)&&o===c.getBufferTemplate.call(t).join("")?s=[]:l.clearOptionalTail.call(t,s)),!1===u.isComplete.call(t,s)&&(setTimeout((function(){a.trigger("incomplete")}),0),n.clearIncomplete&&(c.resetMaskSet.call(t,!1),s=n.clearMaskOnLostFocus?[]:c.getBufferTemplate.call(t).slice())),(0,l.writeBuffer)(r,s,void 0,e)),o=t._valueGet(!0),t.undoValue!==o&&(""!=o||t.undoValue!=c.getBufferTemplate.call(t).join("")||t.undoValue==c.getBufferTemplate.call(t).join("")&&t.maskset.validPositions.length>0)&&(t.undoValue=o,a.trigger("change"))}},mouseenterEvent:function(){var e=this.inputmask,t=e.opts.showMaskOnHover,n=this;if(e.mouseEnter=!0,(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n){var i=(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).join("");t&&(0,l.HandleNativePlaceholder)(n,i)}},submitEvent:function(){var e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger("change"),-1===c.getLastValidPosition.call(e)&&e._valueGet&&e._valueGet()===c.getBufferTemplate.call(e).join("")&&e._valueSet(""),t.clearIncomplete&&!1===u.isComplete.call(e,c.getBuffer.call(e))&&e._valueSet(""),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout((function(){(0,l.writeBuffer)(e.el,c.getBuffer.call(e))}),0))},resetEvent:function(){var e=this.inputmask;e.refreshValue=!0,setTimeout((function(){(0,l.applyInputValue)(e.el,e._valueGet(!0))}),0)}}},9716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var i,a=n(7760),r=(i=n(2394))&&i.__esModule?i:{default:i},o=n(2839),l=n(8711);t.EventRuler={on:function(e,t,n){var i=e.inputmask.dependencyLib,s=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var s,c=this,u=c.inputmask,f=u?u.opts:void 0;if(void 0===u&&"FORM"!==this.nodeName){var p=i.data(c,"_inputmask_opts");i(c).off(),p&&new r.default(p).mask(c)}else{if(["submit","reset","setvalue"].includes(t.type)||"FORM"===this.nodeName||!(c.disabled||c.readOnly&&!("keydown"===t.type&&t.ctrlKey&&t.key===o.keys.c||!1===f.tabThrough&&t.key===o.keys.Tab))){switch(t.type){case"input":if(!0===u.skipInputEvent)return u.skipInputEvent=!1,t.preventDefault();break;case"click":case"focus":return u.validationEvent?(u.validationEvent=!1,e.blur(),(0,a.HandleNativePlaceholder)(e,(u.isRTL?l.getBufferTemplate.call(u).slice().reverse():l.getBufferTemplate.call(u)).join("")),setTimeout((function(){e.focus()}),f.validationEventTimeOut),!1):(s=arguments,void setTimeout((function(){e.inputmask&&n.apply(c,s)}),0))}var d=n.apply(c,arguments);return!1===d&&(t.preventDefault(),t.stopPropagation()),d}t.preventDefault()}};["submit","reset"].includes(t)?(s=s.bind(e),null!==e.form&&i(e.form).on(t,s)):i(e).on(t,s),e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(s)},off:function(e,t){if(e.inputmask&&e.inputmask.events){var n=e.inputmask.dependencyLib,i=e.inputmask.events;for(var a in t&&((i=[])[t]=e.inputmask.events[t]),i){for(var r=i[a];r.length>0;){var o=r.pop();["submit","reset"].includes(a)?null!==e.form&&n(e.form).off(a,o):n(e).off(a,o)}delete e.inputmask.events[a]}}}}},219:function(e,t,n){var i=p(n(7184)),a=p(n(2394)),r=n(2839),o=n(8711),l=n(4713);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}
vendor: 7,447 bytes, line 438
438finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(a=i.key,r=void 0,r=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"),"symbol"===u(r)?r:String(r)),i)}var a,r}function p(e){return e&&e.__esModule?e:{default:e}}n(1313);var d=a.default.dependencyLib,h=function(){function e(t,n,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mask=t,this.format=n,this.opts=i,this.inputmask=a,this._date=new Date(1,0,1),this.initDateObject(t,this.opts,this.inputmask)}var t,n,i;return t=e,(n=[{key:"date",get:function(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(e,t,n){var i;for(P(t).lastIndex=0;i=P(t).exec(this.format);){var a=/\d+$/.exec(i[0]),r=a?i[0][0]+"x":i[0],o=void 0;if(void 0!==e){if(a){var s=P(t).lastIndex,c=j.call(n,i.index,t,n&&n.maskset);P(t).lastIndex=s,o=e.slice(0,e.indexOf(c.nextMatch[0]))}else{for(var u=i[0][0],f=i.index;n&&(t.placeholder[l.getTest.call(n,f).match.placeholder]||l.getTest.call(n,f).match.placeholder)===u;)f++;var p=f-i.index;o=e.slice(0,p||y[r]&&y[r][4]||r.length)}e=e.slice(o.length)}Object.prototype.hasOwnProperty.call(y,r)&&this.setValue(this,o,r,y[r][2],y[r][1])}}},{key:"setValue",value:function(e,t,n,i,a){if(void 0!==t)switch(i){case"ampm":e[i]=t,e["raw"+i]=t.replace(/\s/g,"_");break;case"month":if("mmm"===n||"mmmm"===n){e[i]=_("mmm"===n?m.monthNames.slice(0,12).findIndex((function(e){return t.toLowerCase()===e.toLowerCase()}))+1:m.monthNames.slice(12,24).findIndex((function(e){return t.toLowerCase()===e.toLowerCase()}))+1,2),e[i]="00"===e[i]?"":e[i].toString(),e["raw"+i]=e[i];break}default:e[i]=t.replace(/[^0-9]/g,"0"),e["raw"+i]=t.replace(/\s/g,"_")}if(void 0!==a){var r=e[i];("day"===i&&29===parseInt(r)||"month"===i&&2===parseInt(r))&&(29!==parseInt(e.day)||2!==parseInt(e.month)||""!==e.year&&void 0!==e.year||e._date.setFullYear(2012,1,29)),"day"===i&&(g=!0,0===parseInt(r)&&(r=1)),"month"===i&&(g=!0),"year"===i&&(g=!0,r.length<y[n][4]&&(r=_(r,y[n][4],!0))),(""!==r&&!isNaN(r)||"ampm"===i)&&a.call(e._date,r)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&f(t.prototype,n),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),v=(new Date).getFullYear(),m=a.default.prototype.i18n,g=!1,y={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return _(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return _(Date.prototype.getMonth.call(this)+1,2)}],mmm:[m.monthNames.slice(0,12).join("|"),function(e){var t=m.monthNames.slice(0,12).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return m.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[m.monthNames.slice(12,24).join("|"),function(e){var t=m.monthNames.slice(12,24).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return m.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(e){var t=(new Date).getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(t).concat(e))},"year",function(){return _(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return _(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return _(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return _(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return _(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return _(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return _(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return _(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return _(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",b,"ampm",x,1],tt:["[ap]m",b,"ampm",x,2],T:["[AP]",b,"ampm",x,1],TT:["[AP]M",b,"ampm",x,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return s(e,1)[0]})).join(""));return e}],o:[""],S:[""]},k={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function b(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function x(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function w(e){var t=/\d+$/.exec(e[0]);if(t&&void 0!==t[0]){var n=y[e[0][0]+"x"].slice("");return n[0]=n[0](t[0]),n[3]=n[3](t[0]),n}if(y[e[0]])return y[e[0]]}function P(e){if(!e.tokenizer){var t=[],n=[];for(var i in y)if(/\.*x$/.test(i)){var a=i[0]+"\\d+";-1===n.indexOf(a)&&n.push(a)}
vendor: 3,493 bytes, line 438
438else-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+(n.length>0?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function S(e,t,n){if(!g)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var i=j.call(this,t.pos,n,this.maskset);if(i.targetMatch&&"yyyy"===i.targetMatch[0]&&t.pos-i.targetMatchIndex==2)return t.remove=t.pos+1,t}else if(2==e.date.getMonth()&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=o.seekNext.call(this,t.pos+1),t;return!1}function O(e,t,n,a){var r,o,l="",s=0,c={};for(P(n).lastIndex=0;r=P(n).exec(e);){if(void 0===t)if(o=w(r))l+="("+o[0]+")",n.placeholder&&""!==n.placeholder?(c[s]=n.placeholder[r.index%n.placeholder.length],c[n.placeholder[r.index%n.placeholder.length]]=r[0].charAt(0)):c[s]=r[0].charAt(0);else switch(r[0]){case"[":l+="(";break;case"]":l+=")?";break;default:l+=(0,i.default)(r[0]),c[s]=r[0].charAt(0)}else if(o=w(r))if(!0!==a&&o[3])l+=o[3].call(t.date);else o[2]?l+=t["raw"+o[2]]:l+=r[0];else l+=r[0];s++}return void 0===t&&(n.placeholder=c),l}function _(e,t,n){for(e=String(e),t=t||2;e.length<t;)e=n?e+"0":"0"+e;return e}function M(e,t,n){return"string"==typeof e?new h(e,t,n,this):e&&"object"===u(e)&&Object.prototype.hasOwnProperty.call(e,"date")?e:void 0}function E(e,t){return O(t.inputFormat,{date:e},t)}function j(e,t,n){var i,a,r=this,o=n&&n.tests[e]?t.placeholder[n.tests[e][0].match.placeholder]||n.tests[e][0].match.placeholder:"",s=0,c=0;for(P(t).lastIndex=0;a=P(t).exec(t.inputFormat);){var u=/\d+$/.exec(a[0]);if(u)c=parseInt(u[0]);else{for(var f=a[0][0],p=s;r&&(t.placeholder[l.getTest.call(r,p).match.placeholder]||l.getTest.call(r,p).match.placeholder)===f;)p++;0===(c=p-s)&&(c=a[0].length)}if(s+=c,-1!=a[0].indexOf(o)||s>=e+1){i=a,a=P(t).exec(t.inputFormat);break}}return{targetMatchIndex:s-c,nextMatch:a,targetMatch:i}}a.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,y.S=m.ordinalSuffix.join("|"),e.inputFormat=k[e.inputFormat]||e.inputFormat,e.displayFormat=k[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=k[e.outputFormat]||e.outputFormat||e.inputFormat,e.regex=O(e.inputFormat,void 0,e),e.min=M(e.min,e.inputFormat,e),e.max=M(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(e,t,n,i,a,r,o,l){if(l)return!0;if(isNaN(n)&&e[t]!==n){var s=j.call(this,t,a,r);if(s.nextMatch&&s.nextMatch[0]===n&&s.targetMatch[0].length>1){var c=w(s.targetMatch)[0];if(new RegExp(c).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,i,a,r,o,s){var c,u,f=this;if(o)return!0;if(!1===i&&(((c=j.call(f,t+1,a,r)).targetMatch&&c.targetMatchIndex===t&&c.targetMatch[0].length>1&&void 0!==y[c.targetMatch[0]]||(c=j.call(f,t+2,a,r)).targetMatch&&c.targetMatchIndex===t+1&&c.targetMatch[0].length>1&&void 0!==y[c.targetMatch[0]])&&(u=w(c.targetMatch)[0]),void 0!==u&&(void 0!==r.validPositions[t+1]&&new RegExp(u).test(n+"0")?(e[t]=n,e[t+1
vendor: 4,210 bytes, line 438
438]="0",i={pos:t+2,caret:t}):new RegExp(u).test("0"+n)&&(e[t]="0",e[t+1]=n,i={pos:t+2})),!1===i))return i;if(i.fuzzy&&(e=i.buffer,t=i.pos),(c=j.call(f,t,a,r)).targetMatch&&c.targetMatch[0]&&void 0!==y[c.targetMatch[0]]){var p=w(c.targetMatch);u=p[0];var d=e.slice(c.targetMatchIndex,c.targetMatchIndex+c.targetMatch[0].length);if(!1===new RegExp(u).test(d.join(""))&&2===c.targetMatch[0].length&&r.validPositions[c.targetMatchIndex]&&r.validPositions[c.targetMatchIndex+1]&&(r.validPositions[c.targetMatchIndex+1].input="0"),"year"==p[2])for(var h=l.getMaskTemplate.call(f,!1,1,void 0,!0),m=t+1;m<e.length;m++)e[m]=h[m],r.validPositions.splice(t+1,1)}var g=i,k=M.call(f,e.join(""),a.inputFormat,a);return g&&!isNaN(k.date.getTime())&&(a.prefillYear&&(g=function(e,t,n){if(e.year!==e.rawyear){var i=v.toString(),a=e.rawyear.replace(/[^0-9]/g,""),r=i.slice(0,a.length),o=i.slice(a.length);if(2===a.length&&a===r){var l=new Date(v,e.month-1,e.day);e.day==l.getDate()&&(!n.max||n.max.date.getTime()>=l.getTime())&&(e.date.setFullYear(v),e.year=i,t.insert=[{pos:t.pos+1,c:o[0]},{pos:t.pos+2,c:o[1]}])}}return t}(k,g,a)),g=function(e,t,n,i,a){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){var r;for(e.reset(),P(n).lastIndex=0;r=P(n).exec(n.inputFormat);){var o;if((o=w(r))&&o[3]){for(var l=o[1],s=e[o[2]],c=n.min[o[2]],u=n.max?n.max[o[2]]:c+1,f=[],p=!1,d=0;d<c.length;d++)void 0!==i.validPositions[d+r.index]||p?(f[d]=s[d],p=p||s[d]>c[d]):(d+r.index==0&&s[d]<c[d]?(f[d]=s[d],p=!0):f[d]=c[d],"year"===o[2]&&s.length-1==d&&c!=u&&(f=(parseInt(f.join(""))+1).toString().split("")),"ampm"===o[2]&&c!=u&&n.min.date.getTime()>e.date.getTime()&&(f[d]=u[d]));l.call(e._date,f.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}(k,g=S.call(f,k,g,a),a,r)),void 0!==t&&g&&i.pos!==t?{buffer:O(a.inputFormat,k,a).split(""),refreshFromBuffer:{start:t,end:i.pos},pos:i.caret||i.pos}:g},onKeyDown:function(e,t,n,i){e.ctrlKey&&e.key===r.keys.ArrowRight&&(this.inputmask._valueSet(E(new Date,i)),d(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?O(n.outputFormat,M.call(this,e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,i){if(0==t.nativeDef.indexOf("[ap]"))return e.toLowerCase();if(0==t.nativeDef.indexOf("[AP]"))return e.toUpperCase();var a=l.getTest.call(this,[n-1]);return 0==a.match.def.indexOf("[AP]")||0===n||a&&a.input===String.fromCharCode(r.keyCode.Space)||a&&a.match.def===String.fromCharCode(r.keyCode.Space)?e.toUpperCase():e.toLowerCase()},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=E(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(e,t,n){var i,a=(i=n(2394))&&i.__esModule?i:{default:i};a.default.dependencyLib.extend(!0,a.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(e,t,n){var i,a=(i=n(2394))&&i.__esModule?i:{default:i},r=n(8711),o=n(4713);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}a.default.extendDefinitions({A:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"up
438per"},"&":{validator:"[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var c=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function u(e,t,n,i,a){if(n-1>-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,a.greedy&&parseInt(e)>255&&c.test("00"+e.charAt(2))){var r=[].concat(l(t.buffer.slice(0,n)),[".",e.charAt(2)]);if(r.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:r,caret:n+2}}return c.test(e)}a.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:u},j:{validator:u},k:{validator:u},l:{validator:u}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t=e.separator,n=e.quantifier,i="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",a=i;if(t)for(var r=0;r<n;r++)a+="[".concat(t).concat(i,"]");return a},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(e,t,n,i,a,l,s){var c=o.getMaskTemplate.call(this,!0,r.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""))}}})},207:function(e,t,n){var i=l(n(7184)),a=l(n(2394)),r=n(2839),o=n(8711);function l(e){return e&&e.__esModule?e:{default:e}}var s=a.default.dependencyLib;function c(e,t){for(var n="",i=0;i<e.length;i++)a.default.prototype.definitions[e.charAt(i)]||t.definitions[e.charAt(i)]||t.optionalmarker[0]===e.charAt(i)||t.optionalmarker[1]===e.charAt(i)||t.quantifiermarker[0]===e.charAt(i)||t.quantifiermarker[1]===e.charAt(i)||t.groupmarker[0]===e.charAt(i)||t.groupmarker[1]===e.charAt(i)||t.alternatormarker===e.charAt(i)?n+="\\"+e.charAt(i):n+=e.charAt(i);return n}function u(e,t,n,i){if(e.length>0&&t>0&&(!n.digitsOptional||i)){var a=e.indexOf(n.radixPoint),r=!1;n.negationSymbol.back===e[e.length-1]&&(r=!0,e.length--),-1===a&&(e.push(n.radixPoint),a=e.length-1);for(var o=1;o<=t;o++)isFinite(e[a+o])||(e[a+o]="0")}return r&&e.push(n.negationSymbol.back),e}function f(e,t){var n=0;for(var i in"+"===e&&(n=o.seekNext.call(this,t.validPositions.length-1)),t.tests)if((i=parseInt(i))>=n)for(var a=0,r=t.tests[i].length;a<r;a++)if((void 0===t.validPositions[i]||"-"===e)&&t.tests[i][a].match.def===e)return i+(void 0!==t.validPositions[i]&&"-"!==e?1:0);return n}function p(e,t){for(var n=-1,i=0,a=t.validPositions.length;i<a;i++){var r=t.validPositions[i];if(r&&r.match.def===e){n=i;break}}return n}function d(e,t,n,i,a){var r=t.buffer?t.buffer.indexOf(a.radixPoint):-1,o=(-1!==r||i&&a.jitMasking)&&new RegExp(a.definitions[9].validator).test(e);return!i&&a._radixDance&&-1!==r&&o&&null==t.validPositions[r]?{insert:{pos:r===n?r+1:r,c:a.radixPoint},pos:n}:o}a.default.extendAliases({numeric:{mask:function(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={}
vendor: 24,393 bytes, line 438
438,e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var a,r="[+]";if(r+=c(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),r+=e._mask(e)):r+="9{+}",void 0!==e.digits&&0!==e.digits){var o=e.digits.toString().split(",");isFinite(o[0])&&o[1]&&isFinite(o[1])?r+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(a=r+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):r+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return r+=c(e.suffix,e),r+="[-]",a&&(r=[a+c(e.suffix,e)+"[-]",r]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,i.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,i.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&e.substituteRadixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),r},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:d},1:{validator:d,definitionSymbol:"9"},9:{validator:"[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",definitionSymbol:"*"},"+":{validator:function(e,t,n,i,a){return a.allowMinus&&("-"===e||e===a.negationSymbol.front)}},"-":{validator:function(e,t,n,i,a){return a.allowMinus&&e===a.negationSymbol.back}}},preValidation:function(e,t,n,i,a,r,o,l){var s=this;if(!1!==a.__financeInput&&n===a.radixPoint)return!1;var c=e.indexOf(a.radixPoint),u=t;if(t=function(e,t,n,i,a){return a._radixDance&&a.numericInput&&t!==a.negationSymbol.back&&e<=n&&(n>0||t==a.radixPoint)&&(void 0===i.validPositions[e-1]||i.validPositions[e-1].input!==a.negationSymbol.back)&&(e-=1),e}(t,n,c,r,a),"-"===n||n===a.negationSymbol.front){if(!0!==a.allowMinus)return!1;var d=!1,h=p("+",r),v=p("-",r);return-1!==h&&(d=[h],-1!==v&&d.push(v)),!1!==d?{remove:d,caret:u-a.negationSymbol.back.length}:{insert:[{pos:f.call(s,"+",r),c:a.negationSymbol.front,fromIsValid:!0},{pos:f.call(s,"-",r),c:a.negationSymbol.back,fromIsValid:void 0}],caret:u+a.negationSymbol.back.length}}if(n===a.groupSeparator)return{caret:u};if(l)return!0;if(-1!==c&&!0===a._radixDance&&!1===i&&n===a.radixPoint&&void 0!==a.digits&&(isNaN(a.digits)||parseInt(a.digits)>0)&&c!==t){var m=f.call(s,a.radixPoint,r);return r.validPositions[m]&&(r.validPositions[m].generatedInput=r.validPositions[m].generated||!1),{caret:a._radixDance&&t===c-1?c+1:c}}if(!1===a.__financeInput)if(i){if(a.digitsOptional)return{rewritePosition:o.end};if(!a.digitsOptional){if(o.begin>c&&o.end<=c)return n===a.radixPoint?{insert:{pos:c+1,c:"0",fromIsValid:!0},rewritePosition:c}:{rewritePosition:c+1};if(o.begin<c)return{rewritePosition:o.begin-1}}}else if(!a.showMaskOnHover&&!a.showMaskOnFocus&&!a.digitsOptional&&a.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:c};return{rewritePosition:t}},postValidation:function(e,t,n,i,a,r,o){if(!1===i)return i;if(o)return!0;if(null!==a.min||null!==a.max){var l=a.onUnMask(e.slice().reverse().join(""),void 0,s.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&l<a.min&&(l.toString().length>a.min.toString().length||l<0))return!1;if(null!==a.max&&l>a.max)return!!a.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(a.max.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()}}return i},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var a=e.replace(n.prefix,"");return a=(a=a.replace(n.suffix,"")).replace(new RegExp((0,i.default)(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(a=a.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==a.indexOf(n.radixPoint)&&(a=a.replace(i.default.call(this,n.radixPoint),".")),a=(a=a.replace(new RegExp("^"+(0,i.default)(n.negationSymbol.front)),"-")).replace(new RegExp((0,i.default)(n.negationSymbol.back)+"$"),""),Number(a)):a},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+(0,i.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,i.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,i.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,i.default)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n;e=null!==(n=e)&&void 0!==n?n:"";var a=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===a||(e=e.toString().replace(".",a));var r="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,o=e.split(a),l=o[0].replace(/[^\-0-9]/g,""),s=o.length>1?o[1].replace(/[^0-9]/g,""):"",c=o.length>1;e=l+(""!==s?a+s:s);var f=0;if(""!==a&&(f=t.digitsOptional?t.digits<s.length?t.digits:s.length:t.digits,""!==s||!t.digitsOptional)){var p=Math.pow(10,f||1);e=e.replace((0,i.default)(a),"."),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*p)/p).toFixed(f)),e=e.toString().replace(".",a)}if(0===t.digits&&-1!==e.indexOf(a)&&(e=e.substring(0,e.indexOf(a))),null!==t.min||null!==t.max){var d=e.toString().replace(a,".");null!==t.min&&d<t.min?e=t.min.toString().replace(".",a):null!==t.max&&d>t.max&&(e=t.max.toString().replace(".",a))}return r&&"-"!==e.charAt(0)&&(e="-"+e),u(e.toString().split(""),f,t,c).join("")},onBeforeWrite:function(e,t,n,a){function r(e,t){if(!1!==a.__financeInput||t){var n=e.indexOf(a.radixPoint);-1!==n&&e.splice(n,1)}if(""!==a.groupSeparator)for(;-1!==(n=e.indexOf(a.groupSeparator));)e.splice(n,1);return e}var o,l;if(a.stripLeadingZeroes&&(l=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,i.default)(t.negationSymbol.front)+"?":"")+(0,i.default)(t.prefix)+")(.*)("+(0,i.default)(t.suffix)+(""!=t.negationSymbol.back?(0,i.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),a=n?n[2]:"",r=!1;return a&&(a=a.split(t.radixPoint.charAt(0))[0],r=new RegExp("^[0"+t.groupSeparator+"]*").exec(a)),!(!r||!(r[0].length>1||r[0].length>0&&r[0].length<a.length))&&r}(t,a)))for(var c=t.join("").lastIndexOf(l[0].split("").reverse().join(""))-(l[0]==l.input?0:1),f=l[0]==l.input?1:0,p=l[0].length-f;p>0;p--)this.maskset.validPositions.splice(c+p,1),delete t[c+p];if(e)switch(e.type){case"blur":case"checkval":if(null!==a.min){var d=a.onUnMask(t.slice().reverse().join(""),void 0,s.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&d<a.min)return{refreshFromBuffer:!0,buffer:u(a.min.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()}}if(t[t.length-1]===a.negationSymbol.front){var h=new RegExp("(^"+(""!=a.negationSymbol.front?(0,i.default)(a.negationSymbol.front)+"?":"")+(0,i.default)(a.prefix)+")(.*)("+(0,i.default)(a.suffix)+(""!=a.negationSymbol.back?(0,i.default)(a.negationSymbol.back)+"?":"")+"$)").exec(r(t.slice(),!0).reverse().join(""));0==(h?h[2]:"")&&(o={refreshFromBuffer:!0,buffer:[0]})}else if(""!==a.radixPoint){t.indexOf(a.radixPoint)===a.suffix.length&&(o&&o.buffer?o.buffer.splice(0,1+a.suffix.length):(t.splice(0,1+a.suffix.length),o={refreshFromBuffer:!0,buffer:r(t)}))}if(a.enforceDigitsOnBlur){var v=(o=o||{})&&o.buffer||t.slice().reverse();o.refreshFromBuffer=!0,o.buffer=u(v,a.digits,a,!0).reverse()}}return o},onKeyDown:function(e,t,n,i){var a,o=s(this);if(3!=e.location){var l,c=e.key;if((l=i.shortcuts&&i.shortcuts[c])&&l.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(l)),o.trigger("setvalue"),!1}if(e.ctrlKey)switch(e.key){case r.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),o.trigger("setvalue"),!1;case r.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),o.trigger("setvalue"),!1}if(!e.shiftKey&&(e.key===r.keys.Delete||e.key===r.keys.Backspace||e.key===r.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===r.keys.Delete?n.begin-1:n.end]===i.negationSymbol.front)return a=t.slice().reverse(),""!==i.negationSymbol.front&&a.shift(),""!==i.negationSymbol.back&&a.pop(),o.trigger("setvalue",[a.join(""),n.begin]),!1;if(!0===i._radixDance){var f,p=t.indexOf(i.radixPoint);if(i.digitsOptional){if(0===p)return(a=t.slice().reverse()).pop(),o.trigger("setvalue",[a.join(""),n.begin>=a.length?a.length:n.begin]),!1}else if(-1!==p&&(n.begin<p||n.end<p||e.key===r.keys.Delete&&(n.begin===p||n.begin-1===p)))return n.begin===n.end&&(e.key===r.keys.Backspace||e.key===r.keys.BACKSPACE_SAFARI?n.begin++:e.key===r.keys.Delete&&n.begin-1===p&&(f=s.extend({},n),n.begin--,n.end--)),(a=t.slice().reverse()).splice(a.length-n.begin,n.begin-n.end+1),a=u(a,i.digits,i).join(""),f&&(n=f),o.trigger("setvalue",[a,n.begin>=a.length?p+1:n.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n?window:{}},7760:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(i.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var a=o.getBuffer.call(n).slice(),r=e.inputmask._valueGet();if(r!==t){var l=o.getLastValidPosition.call(n);-1===l&&r===o.getBufferTemplate.call(n).join("")?a=[]:-1!==l&&u.call(n,a),p(e,a)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=c,t.checkVal=f,t.clearOptionalTail=u,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,i=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&c(e,e.inputmask._valueGet(!0))}for(var a=[],r=i.validPositions,l=0,s=r.length;l<s;l++)r[l]&&r[l].match&&(1!=r[l].match.static||Array.isArray(i.metadata)&&!0!==r[l].generatedInput)&&a.push(r[l].input);var u=0===a.length?"":(t.isRTL?a.reverse():a).join("");if("function"==typeof n.onUnMask){var f=(t.isRTL?o.getBuffer.call(t).slice().reverse():o.getBuffer.call(t)).join("");u=n.onUnMask.call(t,f,u,n)}return u},t.writeBuffer=p;var i=n(9845),a=n(6030),r=n(2839),o=n(8711),l=n(7215),s=n(4713);function c(e,t,n){var i=e?e.inputmask:this,a=i.opts;e.inputmask.refreshValue=!1,"function"==typeof a.onBeforeMask&&(t=a.onBeforeMask.call(i,t,a)||t),f(e,!0,!1,t=(t||"").toString().split(""),n),i.undoValue=i._valueGet(!0),(a.clearMaskOnLostFocus||a.clearIncomplete)&&e.inputmask._valueGet()===o.getBufferTemplate.call(i).join("")&&-1===o.getLastValidPosition.call(i)&&e.inputmask._valueSet("")}function u(e){e.length=0;for(var t,n=s.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(t=n.shift());)e.push(t);return e}function f(e,t,n,i,r){var c,u=e?e.inputmask:this,f=u.maskset,d=u.opts,h=u.dependencyLib,v=i.slice(),m="",g=-1,y=d.skipOptionalPartCharacter;d.skipOptionalPartCharacter="",o.resetMaskSet.call(u,!1),u.clicked=0,g=d.radixPoint?o.determineNewCaretPosition.call(u,{begin:0,end:0},!1,!1===d.__financeInput?"radixFocus":void 0).begin:0,f.p=g,u.caretPos={begin:g};var k=[],b=u.caretPos;if(v.forEach((function(e,t){if(void 0!==e){var i=new h.Event("_checkval");i.key=e,m+=e;var r=o.getLastValidPosition.call(u,void 0,!0);!function(e,t){for(var n=s.getMaskTemplate.call(u,!0,0).slice(e,o.seekNext.call(u,e,!1,!1)).join("").replace(/'/g,""),i=n.indexOf(t);i>0&&" "===n[i-1];)i--;var a=0===i&&!o.isMask.call(u,e)&&(s.getTest.call(u,e).match.nativeDef===t.charAt(0)||!0===s.getTest.call(u,e).match.static&&s.getTest.call(u,e).match.nativeDef==="'"+t.charAt(0)||" "===s.getTest.call(u,e).match.nativeDef&&(s.getTest.call(u,e+1).match.nativeDef===t.charAt(0)||!0===s.getTest.call(u,e+1).match.static&&s.getTest.call(u,e+1).match.nativeDef==="'"+t.charAt(0)));if(!a&&i>0&&!o.isMask.call(u,e,!1,!0)){var r=o.seekNext.call(u,e);u.caretPos.begin<r&&(u.caretPos={begin:r})}return a}(g,m)?(c=a.EventHandlers.keypressEvent.call(u,i,!0,!1,n,u.caretPos.begin))&&(g=u.caretPos.begin+1,m=""):c=a.EventHandlers.keypressEvent.call(u,i,!0,!1,n,r+1),c?(void 0!==c.pos&&f.validPositions[c.pos]&&!0===f.validPositions[c.pos].match.static&&void 0===f.validPositions[c.pos].alternation&&(k.push(c.pos),u.isRTL||(c.forwardPosition=c.pos+1)),p.call(u,void 0,o.getBuffer.call(u),c.forwardPosition,i,!1),u.caretPos={begin:c.forwardPosition,end:c.forwardPosition},b=u.caretPos):void 0===f.validPositions[t]&&v[t]===s.getPlaceholder.call(u,t)&&o.isMask.call(u,t,!0)?u.caretPos.begin++:u.caretPos=b}})),k.length>0){var x,w,P=o.seekNext.call(u,-1,void 0,!1);if(!l.isComplete.call(u,o.getBuffer.call(u))&&k.length<=P||l.isComplete.call(u,o.getBuffer.call(u))&&k.length>0&&k.length!==P&&0===k[0])for(var S=P;void 0!==(x=k.shift());)if(x<S){var O=new h.Event("_checkval");if((w=f.validPositions[x]).generatedInput=!0,O.key=w.input,(c=a.EventHandlers.keypressEvent.call(u,O,!0,!1,n,S))&&void 0!==c.pos&&c.pos!==x&&f.validPositions[c.pos]&&!0===f.validPositions[c.pos].match.static)k.push(c.pos);else if(!c)break;S++}}t&&p.call(u,e,o.getBuffer.call(u),c?c.forwardPosition:u.caretPos.begin,r||new h.Event("checkval"),r&&("input"===r.type&&u.undoValue!==o.getBuffer.call(u).join("")||"paste"===r.type)),d.skipOptionalPartCharacter=y}function p(e,t,n,i,a){var s=e?e.inputmask:this,c=s.opts,u=s.dependencyLib;if(i&&"function"==typeof c.onBeforeWrite){var f=c.onBeforeWrite.call(s,i,t,n,c);if(f){if(f.refreshFromBuffer){var p=f.refreshFromBuffer;l.refreshFromBuffer.call(s,!0===p?p:p.start,p.end,f.buffer||t),t=o.getBuffer.call(s,!0)}void 0!==n&&(n=void 0!==f.caret?f.caret:n)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===n||void 0!==i&&"blur"===i.type||o.caret.call(s,e,n,void 0,void 0,void 0!==i&&"keydown"===i.type&&(i.key===r.keys.Delete||i.key===r.keys.Backspace)),void 0===e.inputmask.writeBufferHook||e.inputmask.writeBufferHook(n),!0===a)){var d=u(e),h=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,d.trigger("input"),setTimeout((function(){h===o.getBufferTemplate.call(s).join("")?d.trigger("cleared"):!0===l.isComplete.call(s,t)&&d.trigger("complete")}),0)}}},2394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=v(n(3976)),a=v(n(7392)),r=v(n(4963)),o=n(9716),l=v(n(9380)),s=n(7760),c=n(157),u=n(2391),f=n(8711),p=n(7215),d=n(4713);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function v(e){return e&&e.__esModule?e:{default:e}}var m=l.default.document,g="_inputmask_opts";function y(e,t,n){if(!(this instanceof y))return new y(e,t,n);this.dependencyLib=r.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==n&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=r.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},k(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function k(e,t,n){var i=y.prototype.aliases[e];return i?(i.alias&&k(i.alias,void 0,n),r.default.extend(!0,n,i),r.default.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}y.prototype={dataAttribute:"data-inputmask",defaults:i.default,definitions:a.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=m.getElementById(e)||m.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:[].slice.call(e)).forEach((function(e,n){var i=r.default.extend(!0,{},t.opts);if(function(e,t,n,i){function a(t,a){var r=""===i?t:i+"-"+t;null!==(a=void 0!==a?a:e.getAttribute(r))&&("string"==typeof a&&(0===t.indexOf("on")?a=l.default[a]:"false"===a?a=!1:"true"===a&&(a=!0)),n[t]=a)}if(!0===t.importDataAttributes){var o,s,c,u,f=e.getAttribute(i);if(f&&""!==f&&(f=f.replace(/'/g,'"'),s=JSON.parse("{"+f+"}")),s)for(u in c=void 0,s)if("alias"===u.toLowerCase()){c=s[u];break}for(o in a("alias",c),n.alias&&k(n.alias,n,t),t){if(s)for(u in c=void 0,s)if(u.toLowerCase()===o.toLowerCase()){c=s[u];break}a(o,c)}}r.default.extend(!0,t,n),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right");("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0);return Object.keys(n).length}(e,i,r.default.extend(!0,{},t.userOptions),t.dataAttribute)){var a=(0,u.generateMaskSet)(i,t.noMasksCache);void 0!==a&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new y(void 0,void 0,!0),e.inputmask.opts=i,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=r.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,r.default)(e),e.inputmask.maskset=a,r.default.data(e,g,t.userOptions),c.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===h(e)?(r.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");s.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,f.getBuffer.call(this),0,this.opts)}return s.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){r.default.data(this.el,g,null);var e=this.opts.autoUnmask?(0,s.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==f.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),o.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):m.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?f.getBufferTemplate.call(this).reverse():f.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),p.isComplete.call(this,f.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=d.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");s.checkVal.call(this,void 0,!0,!1,t)}else e=this.isRTL?f.getBuffer.call(this).slice().reverse().join(""):f.getBuffer.call(this).join("");for(var n=f.getBuffer.call(this),i=f.determineLastRequiredPosition.call(this),a=n.length-1;a>i&&!f.isMask.call(this,a);a--);return n.splice(i,a+1-i),p.isComplete.call(this,n)&&e===(this.isRTL?f.getBuffer.call(this).slice().reverse().join(""):f.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");s.checkVal.call(this,void 0,!0,!1,n);var i=this.isRTL?f.getBuffer.call(this).slice().reverse().join(""):f.getBuffer.call(this).join("");return t?{value:i,metadata:this.getmetadata()}:i},setValue:function(e){this.el&&(0,r.default)(this.el).trigger("setvalue",[e])},analyseMask:u.analyseMask},y.extendDefaults=function(e){r.default.extend(!0,y.prototype.defaults,e)},y.extendDefinitions=function(e){r.default.extend(!0,y.prototype.definitions,e)},y.extendAliases=function(e){r.default.extend(!0,y.prototype.aliases,e)},y.format=function(e,t,n){return y(t).format(e,n)},y.unmask=function(e,t){return y(t).unmaskedvalue(e)},y.isValid=function(e,t){return y(t).isValid(e)},y.remove=function(e){"string"==typeof e&&(e=m.getElementById(e)||m.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},y.setValue=function(e,t){"string"==typeof e&&(e=m.getElementById(e)||m.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,r.default)(e).trigger("setvalue",[t])}))},y.dependencyLib=r.default,l.default.Inputmask=y;t.default=y},5296:function(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=d(n(9380)),r=d(n(2394));function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(r=a.key,o=void 0,o=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===i(o)?o:String(o)),a)}var r,o}function l(e){var t=u();return function(){var n,a=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},s(e)}
vendor: 9,744 bytes, line 438
438function c(e,t,n){return c=u()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&f(a,n.prototype),a},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e){return e&&e.__esModule?e:{default:e}}var h=a.default.document;if(h&&h.head&&h.head.attachShadow&&a.default.customElements&&void 0===a.default.customElements.get("input-mask")){var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(s,e);var t,n,i,a=l(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=(e=a.call(this)).getAttributeNames(),n=e.attachShadow({mode:"closed"});for(var i in e.input=h.createElement("input"),e.input.type="text",n.appendChild(e.input),t)Object.prototype.hasOwnProperty.call(t,i)&&e.input.setAttribute(t[i],e.getAttribute(t[i]));var o=new r.default;return o.dataAttribute="",o.mask(e.input),e.input.inputmask.shadowRoot=n,e}return t=s,(n=[{key:"attributeChangedCallback",value:function(e,t,n){this.input.setAttribute(e,n)}},{key:"value",get:function(){return this.input.value},set:function(e){this.input.value=e}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(s(HTMLElement));a.default.customElements.define("input-mask",v)}},2839:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.keyCode=void 0,t.toKey=function(e,t){return s[e]||(t?String.fromCharCode(e):String.fromCharCode(e).toLowerCase())},t.toKeyCode=function(e){return l[e]};var l=t.keyCode=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),s=Object.entries(l).reduce((function(e,t){var n=i(t,2),a=n[0],r=n[1];return e[r]=void 0===e[r]?a:e[r],e}),{});t.keys=Object.entries(l).reduce((function(e,t){var n=i(t,2),a=n[0];n[1];return e[a]="Space"===a?" ":a,e}),{})},2391:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.analyseMask=function(e,t,n){var i,a,s,c,u,f,p=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,d=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,h=!1,v=new o.default,m=[],g=[],y=!1;function k(e,i,a){a=void 0!==a?a:e.matches.length;var o=e.matches[a-1];if(t){if(0===i.indexOf("[")||h&&/\\d|\\s|\\w|\\p/i.test(i)||"."===i){var s=n.casing?"i":"";/\\p\{.*}/i.test(i)&&(s+="u"),e.matches.splice(a++,0,{fn:new RegExp(i,s),static:!1,optionality:!1,newBlockMarker:void 0===o?"master":o.def!==i,casing:null,def:i,placeholder:"object"===l(n.placeholder)?n.placeholder[v.matches.length]:void 0,nativeDef:i})}else h&&(i=i[i.length-1]),i.split("").forEach((function(t,i){o=e.matches[a-1],e.matches.splice(a++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||t)?new RegExp("["+(n.staticDefinitionSymbol||t)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===o?"master":o.def!==t&&!0!==o.static,casing:null,def:n.staticDefinitionSymbol||t,placeholder:void 0!==n.staticDefinitionSymbol?t:"object"===l(n.placeholder)?n.placeholder[v.matches.length]:void 0,nativeDef:(h?"'":"")+t})}));h=!1}else{var c=n.definitions&&n.definitions[i]||n.usePrototypeDefinitions&&r.default.prototype.definitions[i];c&&!h?e.matches.splice(a++,0,{fn:c.validator?"string"==typeof c.validator?new RegExp(c.validator,n.casing?"i":""):new function(){this.test=c.validator}:/./,static:c.static||!1,optionality:c.optional||!1,defOptionality:c.optional||!1,newBlockMarker:void 0===o||c.optional?"master":o.def!==(c.definitionSymbol||i),casing:c.casing,def:c.definitionSymbol||i,placeholder:c.placeholder,nativeDef:i,generated:c.generated}):(e.matches.splice(a++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||i)?new RegExp("["+(n.staticDefinitionSymbol||i)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===o?"master":o.def!==i&&!0!==o.static,casing:null,def:n.staticDefinitionSymbol||i,placeholder:void 0!==n.staticDefinitionSymbol?i:void 0,nativeDef:(h?"'":"")+i}),h=!1)}}function b(){if(m.length>0){if(k(c=m[m.length-1],a),c.isAlternator){u=m.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup&&(u.matches[e].isGroup=!1);m.length>0?(c=m[m.length-1]).matches.push(u):v.matches.push(u)}}else k(v,a)}function x(e){var t=new o.default(!0);return t.openGroup=!1,t.matches=e,t}function w(){if((s=m.pop()).openGroup=!1,void 0!==s)if(m.length>0){if((c=m[m.length-1]).matches.push(s),c.isAlternator){u=m.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup=!1,u.matches[e].alternatorGroup=!1;m.length>0?(c=m[m.length-1]).matches.push(u):v.matches.push(u)}}else v.matches.push(s);else b()}function P(e){var t=e.pop();return t.isQuantifier&&(t=x([e.pop(),t])),t}t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);for(;i=t?d.exec(e):p.exec(e);){if(a=i[0],t){switch(a.charAt(0)){case"?":a="{0,1}";break;case"+":case"*":a="{"+a+"}";break;case"|":if(0===m.length){var S=x(v.matches);S.openGroup=!0,m.push(S),v.matches=[],y=!0}}switch(a){case"\\d":a="[0-9]";break;case"\\p":a+=d.exec(e)[0],a+=d.exec(e)[0]}}if(h)b();else switch(a.charAt(0)){case"$":case"^":t||b();break;case n.escapeChar:h=!0,t&&b();break;case n.optionalmarker[1]:case n.groupmarker[1]:w();break;case n.optionalmarker[0]:m.push(new o.default(!1,!0));break;case n.groupmarker[0]:m.push(new o.default(!0));break;case n.quantifiermarker[0]:var O=new o.default(!1,!1,!0),_=(a=a.replace(/[{}?]/g,"")).split("|"),M=_[0].split(","),E=isNaN(M[0])?M[0]:parseInt(M[0]),j=1===M.length?E:isNaN(M[1])?M[1]:parseInt(M[1]),T=isNaN(_[1])?_[1]:parseInt(_[1]);"*"!==E&&"+"!==E||(E="*"===j?0:1),O.quantifier={min:E,max:j,jit:T};var A=m.length>0?m[m.length-1].matches:v.matches;(i=A.pop()).isGroup||(i=x([i])),A.push(i),A.push(O);break;case n.alternatormarker:if(m.length>0){var D=(c=m[m.length-1]).matches[c.matches.length-1];f=c.openGroup&&(void 0===D.matches||!1===D.isGroup&&!1===D.isAlternator)?m.pop():P(c.matches)}else f=P(v.matches);if(f.isAlternator)m.push(f);else if(f.alternatorGroup?(u=m.pop(),f.alternatorGroup=!1):u=new o.default(!1,!1,!1,!0),u.matches.push(f),m.push(u),f.openGroup){f.openGroup=!1;var L=new o.default(!0);L.alternatorGroup=!0,m.push(L)}break;default:b()}}y&&w();for(;m.length>0;)s=m.pop(),v.matches.push(s);v.matches.length>
vendor: 36,025 bytes, line 438
4380&&(!function e(i){i&&i.matches&&i.matches.forEach((function(a,r){var o=i.matches[r+1];(void 0===o||void 0===o.matches||!1===o.isQuantifier)&&a&&a.isGroup&&(a.isGroup=!1,t||(k(a,n.groupmarker[0],0),!0!==a.openGroup&&k(a,n.groupmarker[1]))),e(a)}))}(v),g.push(v));(n.numericInput||n.isRTL)&&function e(t){for(var i in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,i)){var a=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[a+1]&&t.matches[a+1].isGroup){var r=t.matches[i];t.matches.splice(i,1),t.matches.splice(a+1,0,r)}void 0!==t.matches[i].matches?t.matches[i]=e(t.matches[i]):t.matches[i]=((o=t.matches[i])===n.optionalmarker[0]?o=n.optionalmarker[1]:o===n.optionalmarker[1]?o=n.optionalmarker[0]:o===n.groupmarker[0]?o=n.groupmarker[1]:o===n.groupmarker[1]&&(o=n.groupmarker[0]),o)}var o;return t}(g[0]);return g},t.generateMaskSet=function(e,t){var n;function o(e,t){var n=t.repeat,i=t.groupmarker,r=t.quantifiermarker,o=t.keepStatic;if(n>0||"*"===n||"+"===n){var l="*"===n?0:"+"===n?1:n;if(l!=n)e=i[0]+e+i[1]+r[0]+l+","+n+r[1];else for(var c=e,u=1;u<l;u++)e+=c}if(!0===o){var f=e.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));f&&f.forEach((function(t,n){var i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split("["),2),r=i[0],o=i[1];o=o.replace("]",""),e=e.replace(new RegExp("".concat((0,a.default)(r),"\\[").concat((0,a.default)(o),"\\]")),r.charAt(0)===o.charAt(0)?"(".concat(r,"|").concat(r).concat(o,")"):"".concat(r,"[").concat(o,"]"))}))}return e}function c(e,n,a){var s,c,u=!1;return null!==e&&""!==e||((u=null!==a.regex)?e=(e=a.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(u=!0,e=".*")),1===e.length&&!1===a.greedy&&0!==a.repeat&&(a.placeholder=""),e=o(e,a),c=u?"regex_"+a.regex:a.numericInput?e.split("").reverse().join(""):e,null!==a.keepStatic&&(c="ks_"+a.keepStatic+c),"object"===l(a.placeholder)&&(c="ph_"+JSON.stringify(a.placeholder)+c),void 0===r.default.prototype.masksCache[c]||!0===t?(s={mask:e,maskToken:r.default.prototype.analyseMask(e,u,a),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},!0!==t&&(r.default.prototype.masksCache[c]=s,s=i.default.extend(!0,{},r.default.prototype.masksCache[c]))):s=i.default.extend(!0,{},r.default.prototype.masksCache[c]),s}"function"==typeof e.mask&&(e.mask=e.mask(e));if(Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var u=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){u.length>1&&(u+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?u+=t.mask:u+=t})),c(u+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}n=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?c(e.mask.mask,e.mask,e):c(e.mask,e.mask,e);null===e.keepStatic&&(e.keepStatic=!1);return n};var i=c(n(4963)),a=c(n(7184)),r=c(n(2394)),o=c(n(9695));function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e){return e&&e.__esModule?e:{default:e}}},157:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=function(){var e=this,t=this.opts,n=this.el,c=this.dependencyLib;r.EventRuler.off(n);var u=function(t,n){var i=t.getAttribute("type"),a="input"===t.tagName.toLowerCase()&&n.supportsInputType.includes(i)||t.isContentEditable||"textarea"===t.tagName.toLowerCase();if(!a)if("input"===t.tagName.toLowerCase()){var s=document.createElement("input");s.setAttribute("type",i),a="text"===s.type,s=null}else a="partial";return!1!==a?function(t){var i,a;function s(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==l.getLastValidPosition.call(e)||!0!==n.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&n.clearMaskOnLostFocus?(e.isRTL?o.clearOptionalTail.call(e,l.getBuffer.call(e).slice()).reverse():o.clearOptionalTail.call(e,l.getBuffer.call(e).slice())).join(""):i.call(this):"":i.call(this)}function u(e){a.call(this,e),this.inputmask&&(0,o.applyInputValue)(this,e)}if(!t.inputmask.__valueGet){if(!0!==n.noValuePatching){if(Object.getOwnPropertyDescriptor){var f=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0;f&&f.get&&f.set?(i=f.get,a=f.set,Object.defineProperty(t,"value",{get:s,set:u,configurable:!0})):"input"!==t.tagName.toLowerCase()&&(i=function(){return this.textContent},a=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:s,set:u,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__("value")&&(i=t.__lookupGetter__("value"),a=t.__lookupSetter__("value"),t.__defineGetter__("value",s),t.__defineSetter__("value",u));t.inputmask.__valueGet=i,t.inputmask.__valueSet=a}t.inputmask._valueGet=function(t){return e.isRTL&&!0!==t?i.call(this.el).split("").reverse().join(""):i.call(this.el)},t.inputmask._valueSet=function(t,n){a.call(this.el,null==t?"":!0!==n&&e.isRTL?t.split("").reverse().join(""):t)},void 0===i&&(i=function(){return this.value},a=function(e){this.value=e},function(t){if(c.valHooks&&(void 0===c.valHooks[t]||!0!==c.valHooks[t].inputmaskpatch)){var i=c.valHooks[t]&&c.valHooks[t].get?c.valHooks[t].get:function(e){return e.value},a=c.valHooks[t]&&c.valHooks[t].set?c.valHooks[t].set:function(e,t){return e.value=t,e};c.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var a=i(t);return-1!==l.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)||!0!==n.nullable?a:""}return i(t)},set:function(e,t){var n=a(e,t);return e.inputmask&&(0,o.applyInputValue)(e,t),n},inputmaskpatch:!0}}}(t.type),function(e){r.EventRuler.on(e,"mouseenter",(function(){var e=this,t=e.inputmask._valueGet(!0);t!=(e.inputmask.isRTL?l.getBuffer.call(e.inputmask).slice().reverse():l.getBuffer.call(e.inputmask)).join("")&&(0,o.applyInputValue)(e,t)}))}(t))}}(t):t.inputmask=void 0,a}(n,t);if(!1!==u){e.originalPlaceholder=n.placeholder,e.maxLength=void 0!==n?n.maxLength:void 0,-1===e.maxLength&&(e.maxLength=void 0),"inputMode"in n&&null===n.getAttribute("inputmode")&&(n.inputMode=t.inputmode,n.setAttribute("inputmode",t.inputmode)),!0===u&&(t.showMaskOnFocus=t.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(n.autocomplete),i.iphone&&(t.insertModeVisual=!1,n.setAttribute("autocorrect","off")),r.EventRuler.on(n,"submit",a.EventHandlers.submitEvent),r.EventRuler.on(n,"reset",a.EventHandlers.resetEvent),r.EventRuler.on(n,"blur",a.EventHandlers.blurEvent),r.EventRuler.on(n,"focus",a.EventHandlers.focusEvent),r.EventRuler.on(n,"invalid",a.EventHandlers.invalidEvent),r.EventRuler.on(n,"click",a.EventHandlers.clickEvent),r.EventRuler.on(n,"mouseleave",a.EventHandlers.mouseleaveEvent),r.EventRuler.on(n,"mouseenter",a.EventHandlers.mouseenterEvent),r.EventRuler.on(n,"paste",a.EventHandlers.pasteEvent),r.EventRuler.on(n,"cut",a.EventHandlers.cutEvent),r.EventRuler.on(n,"complete",t.oncomplete),r.EventRuler.on(n,"incomplete",t.onincomplete),r.EventRuler.on(n,"cleared",t.oncleared),!0!==t.inputEventOnly&&r.EventRuler.on(n,"keydown",a.EventHandlers.keyEvent),(i.mobile||t.inputEventOnly)&&n.removeAttribute("maxLength"),r.EventRuler.on(n,"input",a.EventHandlers.inputFallBackEvent)),r.EventRuler.on(n,"setvalue",a.EventHandlers.setValueEvent),void 0===e.applyMaskHook||e.applyMaskHook(),l.getBufferTemplate.call(e).join(""),e.undoValue=e._valueGet(!0);var f=(n.inputmask.shadowRoot||n.ownerDocument).activeElement;if(""!==n.inputmask._valueGet(!0)||!1===t.clearMaskOnLostFocus||f===n){(0,o.applyInputValue)(n,n.inputmask._valueGet(!0),t);var p=l.getBuffer.call(e).slice();!1===s.isComplete.call(e,p)&&t.clearIncomplete&&l.resetMaskSet.call(e,!1),t.clearMaskOnLostFocus&&f!==n&&(-1===l.getLastValidPosition.call(e)?p=[]:o.clearOptionalTail.call(e,p)),(!1===t.clearMaskOnLostFocus||t.showMaskOnFocus&&f===n||""!==n.inputmask._valueGet(!0))&&(0,o.writeBuffer)(n,p),f===n&&l.caret.call(e,n,l.seekNext.call(e,l.getLastValidPosition.call(e)))}}};var i=n(9845),a=n(6030),r=n(9716),o=n(7760),l=n(8711),s=n(7215)},9695:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;for(var a=0|t,r=Math.max(a>=0?a:i-Math.abs(a),0);r<i;){if(n[r]===e)return!0;r++}return!1}})},9302:function(){var e=Function.bind.call(Function.call,Array.prototype.reduce),t=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),n=Function.bind.call(Function.call,Array.prototype.concat),i=Object.keys;Object.entries||(Object.entries=function(a){return e(i(a),(function(e,i){return n(e,"string"==typeof i&&t(a,i)?[[i,a[i]]]:[])}),[])})},7149:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===e("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},8711:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,n,i,r){var o,l=this,s=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):a.default.getSelection?(o=a.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&o.commonAncestorContainer!==e||(t=o.startOffset,n=o.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(o=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+o.text.length),{begin:i?t:f.call(l,t),end:i?n:f.call(l,n)};if(Array.isArray(t)&&(n=l.isRTL?t[0]:t[1],t=l.isRTL?t[1]:t[0]),void 0!==t.begin&&(n=l.isRTL?t.begin:t.end,t=l.isRTL?t.end:t.begin),"number"==typeof t){t=i?t:f.call(l,t),n="number"==typeof(n=i?n:f.call(l,n))?n:t;var c=parseInt(((e.ownerDocument.defaultView||a.default).getComputedStyle?(e.ownerDocument.defaultView||a.default).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=c>e.scrollWidth?c:0,e.inputmask.caretPos={begin:t,end:n},s.insertModeVisual&&!1===s.insertMode&&t===n&&(r||n++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement){if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(a.default.getSelection){if(o=document.createRange(),void 0===e.firstChild||null===e.firstChild){var u=document.createTextNode("");e.appendChild(u)}o.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),o.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),o.collapse(!0);var p=a.default.getSelection();p.removeAllRanges(),p.addRange(o)}else e.createTextRange&&((o=e.createTextRange()).collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o.select());void 0===e.inputmask.caretHook||e.inputmask.caretHook.call(l,{begin:t,end:n})}}},t.determineLastRequiredPosition=function(e){var t,n,i=this,a=i.maskset,l=i.dependencyLib,c=s.call(i),u={},f=a.validPositions[c],p=o.getMaskTemplate.call(i,!0,s.call(i),!0,!0),d=p.length,h=void 0!==f?f.locator.slice():void 0;for(t=c+1;t<p.length;t++)h=(n=o.getTestTemplate.call(i,t,h,t-1)).locator.slice(),u[t]=l.extend(!0,{},n);var v=f&&void 0!==f.alternation?f.locator[f.alternation]:void 0;for(t=d-1;t>c&&(((n=u[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||v&&(v!==u[t].locator[f.alternation]&&!0!==n.match.static||!0===n.match.static&&n.locator[f.alternation]&&r.checkAlternationMatch.call(i,n.locator[f.alternation].toString().split(","),v.toString().split(","))&&""!==o.getTests.call(i,t)[0].def))&&p[t]===o.getPlaceholder.call(i,t,n.match));t--)d--;return e?{l:d,def:u[d]?u[d].match:void 0}:d},t.determineNewCaretPosition=function(e,t,n){var i,a,r,f=this,p=f.maskset,d=f.opts;t&&(f.isRTL?e.end=e.begin:e.begin=e.end);if(e.begin===e.end){switch(n=n||d.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:l.call(f).length};break;case"ignore":e.end=e.begin=u.call(f,s.call(f));break;case"radixFocus":if(f.clicked>1&&0===p.validPositions.length)break;if(function(e){if(""!==d.radixPoint&&0!==d.digits){var t=p.validPositions;if(void 0===t[e]||void 0===t[e].input){if(e<u.call(f,-1))return!0;var n=l.call(f).indexOf(d.radixPoint);if(-1!==n){for(var i=0,a=t.length;i<a;i++)if(t[i]&&n<i&&t[i].input!==o.getPlaceholder.call(f,i))return!1;return!0}}}return!1}(e.begin)){var h=l.call(f).join("").indexOf(d.radixPoint);e.end=e.begin=d.numericInput?u.call(f,h):h;break}default:if(i=e.begin,a=s.call(f,i,!0),i<=(r=u.call(f,-1!==a||c.call(f,0)?a:-1)))e.end=e.begin=c.call(f,i,!1,!0)?i:u.call(f,i);else{var v=p.validPositions[a],m=o.getTestTemplate.call(f,r,v?v.match.locator:void 0,v),g=o.getPlaceholder.call(f,r,m.match);if(""!==g&&l.call(f)[r]!==g&&!0!==m.match.optionalQuantifier&&!0!==m.match.newBlockMarker||!c.call(f,r,d.keepStatic,!0)&&m.match.def===g){var y=u.call(f,r);(i>=y||i===r)&&(r=y)}e.end=e.begin=r}}return e}},t.getBuffer=l,t.getBufferTemplate=function(){var e=this.maskset;void 0===e._buffer&&(e._buffer=o.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice()));return e._buffer},t.getLastValidPosition=s,t.isMask=c,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions=[],t.p=0);!1===e&&(t.tests={},t.jitOffset={})},t.seekNext=u,t.seekPrevious=function(e,t){var n=this,i=e-1;if(e<=0)return 0;for(;i>0&&(!0===t&&(!0!==o.getTest.call(n,i).match.newBlockMarker||!c.call(n,i,void 0,!0))||!0!==t&&!c.call(n,i,void 0,!0));)i--;return i},t.translatePosition=f;var i,a=(i=n(9380))&&i.__esModule?i:{default:i},r=n(7215),o=n(4713);function l(e){var t=this,n=t.maskset;return void 0!==n.buffer&&!0!==e||(n.buffer=o.getMaskTemplate.call(t,!0,s.call(t),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function s(e,t,n){var i=this.maskset,a=-1,r=-1,o=n||i.validPositions;void 0===e&&(e=-1);for(var l=0,s=o.length;l<s;l++)o[l]&&(t||!0!==o[l].generatedInput)&&(l<=e&&(a=l),l>=e&&(r=l));return-1===a||a===e?r:-1===r||e-a<r-e?a:r}function c(e,t,n){var i=this,a=this.maskset,r=o.getTestTemplate.call(i,e).match;if(""===r.def&&(r=o.getTest.call(i,e).match),!0!==r.static)return r.fn;if(!0===n&&void 0!==a.validPositions[e]&&!0!==a.validPositions[e].generatedInput)return!0;if(!0!==t&&e>-1){if(n){var l=o.getTests.call(i,e);return l.length>1+(""===l[l.length-1].match.def?1:0)}var s=o.determineTestTemplate.call(i,e,o.getTests.call(i,e)),c=o.getPlaceholder.call(i,e,s.match);return s.match.def!==c}return!1}function u(e,t,n){var i=this;void 0===n&&(n=!0);for(var a=e+1;""!==o.getTest.call(i,a).match.def&&(!0===t&&(!0!==o.getTest.call(i,a).match.newBlockMarker||!c.call(i,a,void 0,!0))||!0!==t&&!c.call(i,a,void 0,n));)a++;return a}function f(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=this._valueGet().length-e)<0&&(e=0),e}},4713:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=f,t.getDecisionTaker=s,t.getMaskTemplate=function(e,t,n,i,a){var r=this,o=this.opts,l=this.maskset,s=o.greedy;a&&o.greedy&&(o.greedy=!1,r.maskset.tests={});t=t||0;var p,d,v,m,g=[],y=0;do{if(!0===e&&l.validPositions[y])d=(v=a&&l.validPositions[y].match.optionality&&void 0===l.validPositions[y+1]&&(!0===l.validPositions[y].generatedInput||l.validPositions[y].input==o.skipOptionalPartCharacter&&y>0)?f.call(r,y,h.call(r,y,p,y-1)):l.validPositions[y]).match,p=v.locator.slice(),g.push(!0===n?v.input:!1===n?d.nativeDef:c.call(r,y,d));else{d=(v=u.call(r,y,p,y-1)).match,p=v.locator.slice();var k=!0!==i&&(!1!==o.jitMasking?o.jitMasking:d.jit);(m=(m||l.validPositions[y-1])&&d.static&&d.def!==o.groupSeparator&&null===d.fn)||!1===k||void 0===k||"number"==typeof k&&isFinite(k)&&k>y?g.push(!1===n?d.nativeDef:c.call(r,g.length,d)):m=!1}y++}while(!0!==d.static||""!==d.def||t>y);""===g[g.length-1]&&g.pop();!1===n&&void 0!==l.maskLength||(l.maskLength=y-1);return o.greedy=s,g},t.getPlaceholder=c,t.getTest=p,t.getTestTemplate=u,t.getTests=h,t.isSubsetOf=d;var i,a=(i=n(2394))&&i.__esModule?i:{default:i},r=n(8711);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function l(e,t){var n=(null!=e.alternation?e.mloc[s(e)]:e.locator).join("");if(""!==n)for(n=n.split(":")[0];n.length<t;)n+="0";return n}function s(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function c(e,t,n){var i=this,a=this.opts,l=this.maskset;if(void 0!==(t=t||p.call(i,e).match).placeholder||!0===n){if(""!==t.placeholder&&!0===t.static&&!0!==t.generated){var s=r.getLastValidPosition.call(i,e),c=r.seekNext.call(i,s);return(n?e<=c:e<c)?a.staticDefinitionSymbol&&t.static?t.nativeDef:t.def:"function"==typeof t.placeholder?t.placeholder(a):t.placeholder}return"function"==typeof t.placeholder?t.placeholder(a):t.placeholder}if(!0===t.static){if(e>-1&&void 0===l.validPositions[e]){var u,f=h.call(i,e),d=[];if("string"==typeof a.placeholder&&f.length>1+(""===f[f.length-1].match.def?1:0))for(var v=0;v<f.length;v++)if(""!==f[v].match.def&&!0!==f[v].match.optionality&&!0!==f[v].match.optionalQuantifier&&(!0===f[v].match.static||void 0===u||!1!==f[v].match.fn.test(u.match.def,l,e,!0,a))&&(d.push(f[v]),!0===f[v].match.static&&(u=f[v]),d.length>1&&/[0-9a-bA-Z]/.test(d[0].match.def)))return a.placeholder.charAt(e%a.placeholder.length)}return t.def}return"object"===o(a.placeholder)?t.def:a.placeholder.charAt(e%a.placeholder.length)}function u(e,t,n){return this.maskset.validPositions[e]||f.call(this,e,h.call(this,e,t?t.slice():t,n))}function f(e,t){var n=this.opts,i=0,a=function(e,t){var n=0,i=!1;t.forEach((function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(i=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))})),n&&(0==e||1==t.length?n=0:i||(n=0));return n}(e,t);e=e>0?e-1:0;var r,o,s,c=l(p.call(this,e));n.greedy&&t.length>1&&""===t[t.length-1].match.def&&(i=1);for(var u=0;u<t.length-i;u++){var f=t[u];r=l(f,c.length);var d=Math.abs(r-c);(!0!==f.unMatchedAlternationStopped||t.filter((function(e){return!0!==e.unMatchedAlternationStopped})).length<=1)&&(void 0===o||""!==r&&d<o||s&&!n.greedy&&s.match.optionality&&s.match.optionality-a>0&&"master"===s.match.newBlockMarker&&(!f.match.optionality||f.match.optionality-a<1||!f.match.newBlockMarker)||s&&!n.greedy&&s.match.optionalQuantifier&&!f.match.optionalQuantifier)&&(o=d,s=f)}return s}function p(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||h.call(this,e))[0]}function d(e,t,n){function i(e){for(var t,n=[],i=-1,a=0,r=e.length;a<r;a++)if("-"===e.charAt(a))for(t=e.charCodeAt(a+1);++i<t;)n.push(String.fromCharCode(i));else i=e.charCodeAt(a),n.push(e.charAt(a));return n.join("")}return e.match.def===t.match.nativeDef||!(!(n.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)||!0===e.match.static||!0===t.match.static)&&("."===t.match.fn.source||-1!==i(t.match.fn.source.replace(/[[\]/]/g,"")).indexOf(i(e.match.fn.source.replace(/[[\]/]/g,""))))}function h(e,t,n){var i,r,o=this,l=this.dependencyLib,s=this.maskset,c=this.opts,u=this.el,p=s.maskToken,h=t?n:0,v=t?t.slice():[0],m=[],g=!1,y=t?t.join(""):"",k=!1;function b(t,n,r,l){function f(r,l,p){function v(e,t){var n=0===t.matches.indexOf(e);return n||t.matches.every((function(i,a){return!0===i.isQuantifier?n=v(e,t.matches[a-1]):Object.prototype.hasOwnProperty.call(i,"matches")&&(n=v(e,i)),!n})),n}function w(e,t,n){var i,a;if((s.tests[e]||s.validPositions[e])&&(s.validPositions[e]?[s.validPositions[e]]:s.tests[e]).every((function(e,r){if(e.mloc[t])return i=e,!1;var o=void 0!==n?n:e.alternation,l=void 0!==e.locator[o]?e.locator[o].toString().indexOf(t):-1;return(void 0===a||l<a)&&-1!==l&&(i=e,a=l),!0})),i){var r=i.locator[i.alternation],o=i.mloc[t]||i.mloc[r]||i.locator;if(-1!==o[o.length-1].toString().indexOf(":"))o.pop();return o.slice((void 0!==n?n:i.alternation)+1)}return void 0!==n?w(e,t):void 0}function P(t,n){return!0===t.match.static&&!0!==n.match.static&&n.match.fn.test(t.match.def,s,e,!1,c,!1)}function S(e,t){var n=e.alternation,i=void 0===t||n<=t.alternation&&-1===e.locator[n].toString().indexOf(t.locator[n]);if(!i&&n>t.alternation)for(var a=0;a<n;a++)if(e.locator[a]!==t.locator[a]){n=a,i=!0;break}return!!i&&function(n){e.mloc=e.mloc||{};var i=e.locator[n];if(void 0!==i){if("string"==typeof i&&(i=i.split(",")[0]),void 0===e.mloc[i]&&(e.mloc[i]=e.locator.slice(),e.mloc[i].push(":".concat(e.alternation))),void 0!==t){for(var a in t.mloc)"string"==typeof a&&(a=parseInt(a.split(",")[0])),e.mloc[a+0]=t.mloc[a];e.locator[n]=Object.keys(e.mloc).join(",")}return e.alternation>n&&(e.alternation=n),!0}return e.alternation=void 0,!1}(n)}function O(e,t){if(e.locator.length!==t.locator.length)return!1;for(var n=e.alternation+1;n<e.locator.length;n++)if(e.locator[n]!==t.locator[n])return!1;return!0}if(h>e+c._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(s.mask));if(h===e&&void 0===r.matches){if(m.push({match:r,locator:l.reverse(),cd:y,mloc:{}}),!r.optionality||void 0!==p||!(c.definitions&&c.definitions[r.nativeDef]&&c.definitions[r.nativeDef].optional||a.default.prototype.definitions[r.nativeDef]&&a.default.prototype.definitions[r.nativeDef].optional))return!0;g=!0,h=e}else if(void 0!==r.matches){if(r.isGroup&&p!==r)return function(){if(r=f(t.matches[t.matches.indexOf(r)+1],l,p))return!0}();if(r.isOptional)return function(){var t=r,a=m.length;if(r=b(r,n,l,p),m.length>0){if(m.forEach((function(e,t){t>=a&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),i=m[m.length-1].match,void 0!==p||!v(i,t))return r;g=!0,h=e}}();if(r.isAlternator)return function(){function i(e){for(var t,n=e.matches[0].matches?e.matches[0].matches.length:1,i=0;i<e.matches.length&&n===(t=e.matches[i].matches?e.matches[i].matches.length:1);i++);return n!==t}o.hasAlternator=!0;var a,v=r,y=[],b=m.slice(),x=l.length,_=n.length>0?n.shift():-1;if(-1===_||"string"==typeof _){var M,E=h,j=n.slice(),T=[];if("string"==typeof _)T=_.split(",");else for(M=0;M<v.matches.length;M++)T.push(M.toString());if(void 0!==s.excludes[e]){for(var A=T.slice(),D=0,L=s.excludes[e].length;D<L;D++){var C=s.excludes[e][D].toString().split(":");l.length==C[1]&&T.splice(T.indexOf(C[0]),1)}0===T.length&&(delete s.excludes[e],T=A)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&E>=c.keepStatic)&&(T=T.slice(0,1));for(var B=0;B<T.length;B++){M=parseInt(T[B]),m=[],n="string"==typeof _&&w(h,M,x)||j.slice();var I=v.matches[M];if(I&&f(I,[M].concat(l),p))r=!0;else if(0===B&&(k=i(v)),I&&I.matches&&I.matches.length>v.matches[0].matches.length)break;a=m.slice(),h=E,m=[];for(var R=0;R<a.length;R++){var F=a[R],N=!1;F.alternation=F.alternation||x,S(F);for(var V=0;V<y.length;V++){var G=y[V];if("string"!=typeof _||void 0!==F.alternation&&T.includes(F.locator[F.alternation].toString())){if(F.match.nativeDef===G.match.nativeDef){N=!0,S(G,F);break}if(d(F,G,c)){S(F,G)&&(N=!0,y.splice(y.indexOf(G),0,F));break}if(d(G,F,c)){S(G,F);break}if(P(F,G)){O(F,G)||void 0!==u.inputmask.userOptions.keepStatic?S(F,G)&&(N=!0,y.splice(y.indexOf(G),0,F)):c.keepStatic=!0;break}if(P(G,F)){S(G,F);break}}}N||y.push(F)}}m=b.concat(y),h=e,g=m.length>0&&k,r=y.length>0&&!k,k&&g&&!r&&m.forEach((function(e,t){e.unMatchedAlternationStopped=!0})),n=j.slice()}else r=f(v.matches[_]||t.matches[_],[_].concat(l),p);if(r)return!0}();if(r.isQuantifier&&p!==t.matches[t.matches.indexOf(r)-1])return function(){for(var a=r,o=!1,u=n.length>0?n.shift():0;u<(isNaN(a.quantifier.max)?u+1:a.quantifier.max)&&h<=e;u++){var p=t.matches[t.matches.indexOf(a)-1];if(r=f(p,[u].concat(l),p)){if(m.forEach((function(t,n){(i=x(p,t.match)?t.match:m[m.length-1].match).optionalQuantifier=u>=a.quantifier.min,i.jit=(u+1)*(p.matches.indexOf(i)+1)>a.quantifier.jit,i.optionalQuantifier&&v(i,p)&&(g=!0,h=e,c.greedy&&null==s.validPositions[e-1]&&u>a.quantifier.min&&-1!=["*","+"].indexOf(a.quantifier.max)&&(m.pop(),y=void 0),o=!0,r=!1),!o&&i.jit&&(s.jitOffset[e]=p.matches.length-p.matches.indexOf(i))})),o)break;return!0}}}();if(r=b(r,n,l,p))return!0}else h++}for(var p=n.length>0?n.shift():0;p<t.matches.length;p++)if(!0!==t.matches[p].isQuantifier){var v=f(t.matches[p],[p].concat(r),l);if(v&&h===e)return v;if(h>e)break}}function x(e,t){var n=-1!=e.matches.indexOf(t);return n||e.matches.forEach((function(e,i){void 0===e.matches||n||(n=x(e,t))})),n}if(e>-1){if(void 0===t){for(var w,P=e-1;void 0===(w=s.validPositions[P]||s.tests[P])&&P>-1;)P--;void 0!==w&&P>-1&&(v=function(e,t){var n,i=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===c.keepStatic?0===(i=f.call(o,e,t.slice()).locator.slice()).length&&(i=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===i.length?(n=e.alternation,i=e.locator.slice()):e.locator[n]&&-1===i[n].toString().indexOf(e.locator[n])&&(i[n]+=","+e.locator[n]))}))),i}(P,w),y=v.join(""),h=P)}if(s.tests[e]&&s.tests[e][0].cd===y)return s.tests[e];for(var S=v.shift();S<p.length;S++){if(b(p[S],v,[S])&&h===e||h>e)break}}return(0===m.length||g)&&m.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:k&&0===m.filter((function(e){return!0!==e.unMatchedAlternationStopped})).length?[0]:[],mloc:{},cd:y}),void 0!==t&&s.tests[e]?r=l.extend(!0,[],m):(s.tests[e]=l.extend(!0,[],m),r=s.tests[e]),m.forEach((function(e){e.match.optionality=e.match.defOptionality||!1})),r}},7215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=l,t.checkAlternationMatch=function(e,t,n){for(var i,a=this.opts.greedy?t:t.slice(0,1),r=!1,o=void 0!==n?n.split(","):[],l=0;l<o.length;l++)-1!==(i=e.indexOf(o[l]))&&e.splice(i,1);for(var s=0;s<e.length;s++)if(a.includes(e[s])){r=!0;break}return r},t.handleRemove=function(e,t,n,i,s){var c=this,u=this.maskset,f=this.opts;if((f.numericInput||c.isRTL)&&(t===a.keys.Backspace?t=a.keys.Delete:t===a.keys.Delete&&(t=a.keys.Backspace),c.isRTL)){var p=n.end;n.end=n.begin,n.begin=p}var d,h=r.getLastValidPosition.call(c,void 0,!0);n.end>=r.getBuffer.call(c).length&&h>=n.end&&(n.end=h+1);t===a.keys.Backspace?n.end-n.begin<1&&(n.begin=r.seekPrevious.call(c,n.begin)):t===a.keys.Delete&&n.begin===n.end&&(n.end=r.isMask.call(c,n.end,!0,!0)?n.end+1:r.seekNext.call(c,n.end)+1);!1!==(d=v.call(c,n))&&((!0!==i&&!1!==f.keepStatic||null!==f.regex&&-1!==o.getTest.call(c,n.begin).match.def.indexOf("|"))&&l.call(c,!0),!0!==i&&(u.p=t===a.keys.Delete?n.begin+d:n.begin,u.p=r.determineNewCaretPosition.call(c,{begin:u.p,end:u.p},!1,!1===f.insertMode&&t===a.keys.Backspace?"none":void 0).begin))},t.isComplete=c,t.isSelection=u,t.isValid=f,t.refreshFromBuffer=d,t.revalidateMask=v;var i=n(6030),a=n(2839),r=n(8711),o=n(4713);function l(e,t,n,i,a,s){var c=this,u=this.dependencyLib,p=this.opts,d=c.maskset;if(!c.hasAlternator)return!1;var h,v,m,g,y,k,b,x,w,P,S,O=u.extend(!0,[],d.validPositions),_=u.extend(!0,{},d.tests),M=!1,E=!1,j=void 0!==a?a:r.getLastValidPosition.call(c);if(s&&(P=s.begin,S=s.end,s.begin>s.end&&(P=s.end,S=s.begin)),-1===j&&void 0===a)h=0,v=(g=o.getTest.call(c,h)).alternation;else for(;j>=0;j--)if((m=d.validPositions[j])&&void 0!==m.alternation){if(j<=(e||0)&&g&&g.locator[m.alternation]!==m.locator[m.alternation])break;h=j,v=d.validPositions[h].alternation,g=m}if(void 0!==v){b=parseInt(h),d.excludes[b]=d.excludes[b]||[],!0!==e&&d.excludes[b].push((0,o.getDecisionTaker)(g)+":"+g.alternation);var T=[],A=-1;for(y=b;b<r.getLastValidPosition.call(c,void 0,!0)+1;y++)-1===A&&e<=y&&void 0!==t&&(T.push(t),A=T.length-1),(k=d.validPositions[b])&&!0!==k.generatedInput&&(void 0===s||y<P||y>=S)&&T.push(k.input),d.validPositions.splice(b,1);for(-1===A&&void 0!==t&&(T.push(t),A=T.length-1);void 0!==d.excludes[b]&&d.excludes[b].length<10;){for(d.tests={},r.resetMaskSet.call(c,!0),M=!0,y=0;y<T.length&&(x=M.caret||0==p.insertMode&&null!=x?r.seekNext.call(c,x):r.getLastValidPosition.call(c,void 0,!0)+1,w=T[y],M=f.call(c,x,w,!1,i,!0));y++)y===A&&(E=M),1==e&&M&&(E={caretPos:y});if(M)break;if(r.resetMaskSet.call(c),g=o.getTest.call(c,b),d.validPositions=u.extend(!0,[],O),d.tests=u.extend(!0,{},_),!d.excludes[b]){E=l.call(c,e,t,n,i,b-1,s);break}if(null!=g.alternation){var D=(0,o.getDecisionTaker)(g);if(-1!==d.excludes[b].indexOf(D+":"+g.alternation)){E=l.call(c,e,t,n,i,b-1,s);break}for(d.excludes[b].push(D+":"+g.alternation),y=b;y<r.getLastValidPosition.call(c,void 0,!0)+1;y++)d.validPositions.splice(b)}else delete d.excludes[b]}}return E&&!1===p.keepStatic||delete d.excludes[b],E}function s(e,t,n){var i=this.opts,r=this.maskset;switch(i.casing||t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var o=r.validPositions[n-1];e=0===n||o&&o.input===String.fromCharCode(a.keyCode.Space)?e.toUpperCase():e.toLowerCase();break;default:if("function"==typeof i.casing){var l=Array.prototype.slice.call(arguments);l.push(r.validPositions),e=i.casing.apply(this,l)}}return e}function c(e){var t=this,n=this.opts,i=this.maskset;if("function"==typeof n.isComplete)return n.isComplete(e,n);if("*"!==n.repeat){var a=!1,l=r.determineLastRequiredPosition.call(t,!0),s=l.l;if(void 0===l.def||l.def.newBlockMarker||l.def.optionality||l.def.optionalQuantifier){a=!0;for(var c=0;c<=s;c++){var u=o.getTestTemplate.call(t,c).match;if(!0!==u.static&&void 0===i.validPositions[c]&&(!1===u.optionality||void 0===u.optionality||u.optionality&&0==u.newBlockMarker)&&(!1===u.optionalQuantifier||void 0===u.optionalQuantifier)||!0===u.static&&""!=u.def&&e[c]!==o.getPlaceholder.call(t,c,u)){a=!1;break}}}return a}}function u(e){var t=this.opts.insertMode?0:1;return this.isRTL?e.begin-e.end>t:e.end-e.begin>t}function f(e,t,n,i,a,p,m){var g=this,y=this.dependencyLib,k=this.opts,b=g.maskset;n=!0===n;var x=e;function w(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return g.isRTL?e.pos-t.pos:t.pos-e.pos})).forEach((function(e){v.call(g,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return g.isRTL?t.pos-e.pos:e.pos-t.pos})).forEach((function(e){""!==e.c&&f.call(g,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:i)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;d.call(g,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(x=e.rewritePosition,e=!0)}return e}function P(t,n,a){var l=!1;return o.getTests.call(g,t).every((function(c,f){var p=c.match;if(r.getBuffer.call(g,!0),!1!==(l=(!p.jit||void 0!==b.validPositions[r.seekPrevious.call(g,t)])&&(null!=p.fn?p.fn.test(n,b,t,a,k,u.call(g,e)):(n===p.def||n===k.skipOptionalPartCharacter)&&""!==p.def&&{c:o.getPlaceholder.call(g,t,p,!0)||p.def,pos:t}))){var d=void 0!==l.c?l.c:n,h=t;return d=d===k.skipOptionalPartCharacter&&!0===p.static?o.getPlaceholder.call(g,t,p,!0)||p.def:d,!0!==(l=w(l))&&void 0!==l.pos&&l.pos!==t&&(h=l.pos),!0!==l&&void 0===l.pos&&void 0===l.c?!1:(!1===v.call(g,e,y.extend({},c,{input:s.call(g,d,p,h)}),i,h)&&(l=!1),!1)}return!0})),l}void 0!==e.begin&&(x=g.isRTL?e.end:e.begin);var S=!0,O=y.extend(!0,[],b.validPositions);if(!1===k.keepStatic&&void 0!==b.excludes[x]&&!0!==a&&!0!==i)for(var _=x;_<(g.isRTL?e.begin:e.end);_++)void 0!==b.excludes[_]&&(b.excludes[_]=void 0,delete b.tests[_]);if("function"==typeof k.preValidation&&!0!==i&&!0!==p&&(S=w(S=k.preValidation.call(g,r.getBuffer.call(g),x,t,u.call(g,e),k,b,e,n||a))),!0===S){if(S=P(x,t,n),(!n||!0===i)&&!1===S&&!0!==p){var M=b.validPositions[x];if(!M||!0!==M.match.static||M.match.def!==t&&t!==k.skipOptionalPartCharacter){if(k.insertMode||void 0===b.validPositions[r.seekNext.call(g,x)]||e.end>x){var E=!1;if(b.jitOffset[x]&&void 0===b.validPositions[r.seekNext.call(g,x)]&&!1!==(S=f.call(g,x+b.jitOffset[x],t,!0,!0))&&(!0!==a&&(S.caret=x),E=!0),e.end>x&&(b.validPositions[x]=void 0),!E&&!r.isMask.call(g,x,k.keepStatic&&0===x))for(var j=x+1,T=r.seekNext.call(g,x,!1,0!==x);j<=T;j++)if(!1!==(S=P(j,t,n))){S=h.call(g,x,void 0!==S.pos?S.pos:j)||S,x=j;break}}}else S={caret:r.seekNext.call(g,x)}}g.hasAlternator&&!0!==a&&!n&&(a=!0,!1===S&&k.keepStatic&&(c.call(g,r.getBuffer.call(g))||0===x)?S=l.call(g,x,t,n,i,void 0,e):(u.call(g,e)&&b.tests[x]&&b.tests[x].length>1&&k.keepStatic||1==S&&!0!==k.numericInput&&b.tests[x]&&b.tests[x].length>1&&r.getLastValidPosition.call(g,void 0,!0)>x)&&(S=l.call(g,!0))),!0===S&&(S={pos:x})}if("function"==typeof k.postValidation&&!0!==i&&!0!==p){var A=k.postValidation.call(g,r.getBuffer.call(g,!0),void 0!==e.begin?g.isRTL?e.end:e.begin:e,t,S,k,b,n,m);void 0!==A&&(S=!0===A?S:A)}S&&void 0===S.pos&&(S.pos=x),!1===S||!0===p?(r.resetMaskSet.call(g,!0),b.validPositions=y.extend(!0,[],O)):h.call(g,void 0,x,!0);var D=w(S);void 0!==g.maxLength&&(r.getBuffer.call(g).length>g.maxLength&&!i&&(r.resetMaskSet.call(g,!0),b.validPositions=y.extend(!0,[],O),D=!1));return D}function p(e,t,n){for(var i=this.maskset,a=!1,r=o.getTests.call(this,e),l=0;l<r.length;l++){if(r[l].match&&(r[l].match.nativeDef===t.match[n.shiftPositions?"def":"nativeDef"]&&(!n.shiftPositions||!t.match.static)||r[l].match.nativeDef===t.match.nativeDef||n.regex&&!r[l].match.static&&r[l].match.fn.test(t.input,i,e,!1,n))){a=!0;break}if(r[l].match&&r[l].match.def===t.match.nativeDef){a=void 0;break}}return!1===a&&void 0!==i.jitOffset[e]&&(a=p.call(this,e+i.jitOffset[e],t,n)),a}function d(e,t,n){var a,o,l=this,s=this.maskset,c=this.opts,u=this.dependencyLib,f=c.skipOptionalPartCharacter,p=l.isRTL?n.slice().reverse():n;if(c.skipOptionalPartCharacter="",!0===e)r.resetMaskSet.call(l,!1),e=0,t=n.length,o=r.determineNewCaretPosition.call(l,{begin:0,end:0},!1).begin;else{for(a=e;a<t;a++)s.validPositions.splice(e,0);o=e}var d=new u.Event("keypress");for(a=e;a<t;a++){d.key=p[a].toString(),l.ignorable=!1;var h=i.EventHandlers.keypressEvent.call(l,d,!0,!1,!1,o);!1!==h&&void 0!==h&&(o=h.forwardPosition)}c.skipOptionalPartCharacter=f}function h(e,t,n){var i=this,a=this.maskset,l=this.dependencyLib;if(void 0===e)for(e=t-1;e>0&&!a.validPositions[e];e--);for(var s=e;s<t;
438s++){if(void 0===a.validPositions[s]&&!r.isMask.call(i,s,!1))if(0==s?o.getTest.call(i,s):a.validPositions[s-1]){var c=o.getTests.call(i,s).slice();""===c[c.length-1].match.def&&c.pop();var u,p=o.determineTestTemplate.call(i,s,c);if(p&&(!0!==p.match.jit||"master"===p.match.newBlockMarker&&(u=a.validPositions[s+1])&&!0===u.match.optionalQuantifier)&&((p=l.extend({},p,{input:o.getPlaceholder.call(i,s,p.match,!0)||p.match.def})).generatedInput=!0,v.call(i,s,p,!0),!0!==n)){var d=a.validPositions[t].input;return a.validPositions[t]=void 0,f.call(i,t,d,!0,!0)}}}}function v(e,t,n,i){var a=this,l=this.maskset,s=this.opts,c=this.dependencyLib;function d(e,t,n){var i=t[e];if(void 0!==i&&!0===i.match.static&&!0!==i.match.optionality&&(void 0===t[0]||void 0===t[0].alternation)){var a=n.begin<=e-1?t[e-1]&&!0===t[e-1].match.static&&t[e-1]:t[e-1],r=n.end>e+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return a&&r}return!1}var h=0,v=void 0!==e.begin?e.begin:e,m=void 0!==e.end?e.end:e,g=!0;if(e.begin>e.end&&(v=e.end,m=e.begin),i=void 0!==i?i:v,void 0===n&&(v!==m||s.insertMode&&void 0!==l.validPositions[i]||void 0===t||t.match.optionalQuantifier||t.match.optionality)){var y,k=c.extend(!0,[],l.validPositions),b=r.getLastValidPosition.call(a,void 0,!0);l.p=v;var x=u.call(a,e)?v:i;for(y=b;y>=x;y--)l.validPositions.splice(y,1),void 0===t&&delete l.tests[y+1];var w,P,S=i,O=S;for(t&&(l.validPositions[i]=c.extend(!0,{},t),O++,S++),null==k[m]&&l.jitOffset[m]&&(m+=l.jitOffset[m]+1),y=t?m:m-1;y<=b;y++){if(void 0!==(w=k[y])&&!0!==w.generatedInput&&(y>=m||y>=v&&d(y,k,{begin:v,end:m}))){for(;""!==o.getTest.call(a,O).match.def;){if(!1!==(P=p.call(a,O,w,s))||"+"===w.match.def){"+"===w.match.def&&r.getBuffer.call(a,!0);var _=f.call(a,O,w.input,"+"!==w.match.def,!0);if(g=!1!==_,S=(_.pos||O)+1,!g&&P)break}else g=!1;if(g){void 0===t&&w.match.static&&y===e.begin&&h++;break}if(!g&&r.getBuffer.call(a),O>l.maskLength)break;O++}""==o.getTest.call(a,O).match.def&&(g=!1),O=S}if(!g)break}if(!g)return l.validPositions=c.extend(!0,[],k),r.resetMaskSet.call(a,!0),!1}else t&&o.getTest.call(a,i).match.cd===t.match.cd&&(l.validPositions[i]=c.extend(!0,{},t));return r.resetMaskSet.call(a,!0),h}}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(7149),n(3194),n(9302),n(4013),n(3851),n(219),n(207),n(5296);var t,a=(t=n(2394))&&t.__esModule?t:{default:t};e.default=a.default}(),i}()})); 439/* End */ 440; 441; /* Start:"a:4:{s:4:"full";s:51:"/local/templates/ezetek/js/main.js?1790928304136478";s:6:"source";s:34:"/local/templates/ezetek/js/main.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 442document.addEventListener('DOMContentLoaded', function() { 443const menuCont2 = document.getElementById("menu2"); 444if (!menuCont2) return; 445 446const menuBtn2 = document.getElementById("menu_btn2"); 447const menuClose2 = document.getElementById("menu_close2"); 448const menuBg2 = document.getElementById("menu_wr2"); 449 450 451if (document.querySelector(".cookie")) { 452 document.querySelectorAll('.cookie .close').forEach((element) => { 453 element.addEventListener('click', function (event) { 454 document.querySelector(".cookie").remove(); 455 }); 456 }); 457} 458if (document.querySelector(".cookie")) { 459 document.querySelector(".cookie .accept").addEventListener('click', function (event) { 460 document.querySelector(".cookie").remove(); 461 462 var expirationDate = new Date(); 463 expirationDate.setMonth(expirationDate.getMonth() + 2); 464 465 document.cookie = "cookie_accept=" + encodeURIComponent(new Date().toString()) + 466 "; expires=" + expirationDate.toUTCString() + 467 "; path=/"; 468 }); 469} 470 471 472if(!!menuBtn2){ 473 // ÐÑкÑÑÑие Ð¼ÐµÐ½Ñ Ð¿Ð¾ ÐºÐ»Ð¸ÐºÑ Ð½Ð° ÐºÐ½Ð¾Ð¿ÐºÑ 474 menuBtn2.addEventListener("click", (e) => { 475 menuCont2.classList.toggle('active'); 476 menuBg2.classList.toggle('active'); 477 document.body.classList.toggle('no-scroll'); // ÐобавлÑем/ÑбиÑаем no-scroll 478 }); 479 480// ÐакÑÑÑие Ð¼ÐµÐ½Ñ Ð¿Ð¾ ÐºÐ»Ð¸ÐºÑ Ð·Ð° его пÑеделами 481 document.addEventListener("click", (e) => { 482 if (!menuCont2.contains(e.target) && !menuBtn2.contains(e.target)) { 483 menuCont2.classList.remove('active'); 484 menuBg2.classList.remove('active'); 485 document.body.classList.remove('no-scroll'); // УбиÑаем no-scroll 486 } 487 }); 488 489// ÐакÑÑÑие Ð¼ÐµÐ½Ñ Ð¿Ð¾ ÐºÐ»Ð¸ÐºÑ Ð½Ð° ÐºÐ½Ð¾Ð¿ÐºÑ Ð·Ð°ÐºÑÑÑÐ¸Ñ 490 if(!!menuClose2){ 491 menuClose2.addEventListener("click", (e) => { 492 menuCont2.classList.remove('active'); 493 menuBg2.classList.remove('active'); 494 document.body.classList.remove('no-scroll'); // УбиÑаем no-scroll 495 }); 496 } 497} 498 499 500}); 501 502 503document.addEventListener('DOMContentLoaded', function() { 504 const scrollToTopButton = document.getElementById('scrollToTop'); 505 506 // ÐоказÑваем или ÑкÑÑваем ÐºÐ½Ð¾Ð¿ÐºÑ Ð¿Ñи пÑокÑÑÑке 507 window.addEventListener('scroll', function() { 508 if (window.pageYOffset > 300) { 509 scrollToTopButton.style.display = 'flex'; 510 } else { 511 scrollToTopButton.style.display = 'none'; 512 } 513 }); 514 515 // ÐÐ»Ð°Ð²Ð½Ð°Ñ Ð¿ÑокÑÑÑка ввеÑÑ Ð¿Ñи клике 516 scrollToTopButton.addEventListener('click', function() { 517 window.scrollTo({ 518 top: 0, 519 behavior: 'smooth' 520 }); 521 }); 522}); 523 524 525// document.addEventListener('DOMContentLoaded', function () { 526// function initializeSlider({ 527// sliderContainerSelector, 528// slideSelector, 529// nextButtonSelector = null, 530// prevButtonSelector = null, 531// sliderName = '', 532// paginationBreakpoint = null, // ÐÑÐµÐ¹ÐºÐ¿Ð¾Ð¸Ð½Ñ Ð´Ð»Ñ Ð²ÐºÐ»ÑÑÐµÐ½Ð¸Ñ Ð¿Ð°Ð³Ð¸Ð½Ð°Ñии 533// paginationEnabled = false, // ÐклÑÑиÑÑ Ð¿Ð°Ð³Ð¸Ð½Ð°ÑÐ¸Ñ 534// startIndex = 0, 535// rangeInputSelector = null 536// }) { 537// const sliderContainer = document.querySelector(sliderContainerSelector); 538// if (!sliderContainer) return; 539 540// const slides = document.querySelectorAll(slideSelector); 541// const rangeInput = rangeInputSelector ? document.querySelector(rangeInputSelector) : null; 542// let currentIndex = startIndex; 543// let startX = 0; 544// let isSwiping = false;
545// let isMouseDown = false; 546 547// function getGap() { 548// const gapValue = window.getComputedStyle(sliderContainer).gap; 549// return parseInt(gapValue) || 0; 550// } 551 552// function updateSliderPosition() { 553// const gap = getGap(); 554// const slideWidth = slides[0].offsetWidth; 555// const offset = -(currentIndex * (slideWidth + gap)); 556 557// sliderContainer.style.transform = `translateX(${offset}px)`; 558 559// slides.forEach((slide, index) => { 560// slide.classList.toggle('active', index === currentIndex); 561// }); 562 563// if (rangeInput) { 564// rangeInput.value = currentIndex; 565// rangeInput.dispatchEvent(new Event('change')); 566// } 567 568// if (paginationEnabled) { 569// updatePagination(); 570// } 571// } 572 573// function nextSlide() { 574// currentIndex = (currentIndex + 1) % slides.length; 575// updateSliderPosition(); 576// } 577 578// function prevSlide() { 579// currentIndex = (currentIndex - 1 + slides.length) % slides.length; 580// updateSliderPosition(); 581// } 582 583// if (rangeInput) { 584// rangeInput.max = slides.length - 1; 585// rangeInput.addEventListener('input', function () { 586// currentIndex = parseInt(rangeInput.value); 587// updateSliderPosition(); 588// }); 589// } 590 591// function createPagination() { 592// const paginationContainer = document.createElement('div'); 593// paginationContainer.className = 'slider-pagination'; 594 595// slides.forEach((_, index) => { 596// const dot = document.createElement('button'); 597// dot.className = 'pagination-dot'; 598// dot.dataset.index = index; 599// dot.addEventListener('click', () => { 600// currentIndex = index; 601// updateSliderPosition(); 602// }); 603// paginationContainer.appendChild(dot); 604// }); 605 606// sliderContainer.parentElement.appendChild(paginationContainer); 607 608// // УÑÑановиÑÑ Ð°ÐºÑивнÑÑ ÑоÑÐºÑ Ð¿Ñи Ñоздании пагинаÑии 609// updatePagination(); 610// } 611 612// function updatePagination() { 613// const dots = sliderContainer.parentElement.querySelectorAll('.pagination-dot'); 614// dots.forEach((dot, index) => { 615// dot.classList.toggle('active', index === currentIndex); 616// }); 617// } 618 619// function togglePagination() { 620// const shouldEnable = paginationBreakpoint && window.innerWidth <= paginationBreakpoint; 621// if (shouldEnable && !paginationEnabled) { 622// paginationEnabled = true; 623// createPagination(); 624// } else if (!shouldEnable && paginationEnabled) { 625// paginationEnabled = false; 626// const paginationContainer = sliderContainer.parentElement.querySelector('.slider-pagination'); 627// if (paginationContainer) paginationContainer.remove(); 628// } 629// } 630 631// sliderContainer.addEventListener('touchstart', event => { 632// startX = event.touches[0].clientX; 633// isSwiping = true; 634// }); 635 636// sliderContainer.addEventListener('touchmove', event => { 637// if (!isSwiping) return; 638// const moveX = event.touches[0].clientX - startX; 639 640// if (moveX > 50) { 641// prevSlide(); 642// isSwiping = false; 643// } else if (moveX < -50) { 644// nextSlide(); 645// isSwiping = false; 646// } 647// }); 648 649// sliderContainer.addEventListener('touchend', () => { 650// isSwiping = false; 651// }); 652 653// sliderContainer.addEventListener('mousedown', event => { 654// if (event.button !== 0) return; 655// startX = event.clientX; 656// isMouseDown = true; 657// }); 658 659// sliderContainer.addEventListener('mousemove', event => { 660// if (!isMouseDown) return; 661// const moveX = event.clientX - startX; 662 663// if (moveX > 50) { 664// prevSlide(); 665// isMouseDown = false;
666// } else if (moveX < -50) { 667// nextSlide(); 668// isMouseDown = false; 669// } 670// }); 671 672// sliderContainer.addEventListener('mouseup', () => { 673// isMouseDown = false; 674// }); 675 676// sliderContainer.addEventListener('mouseleave', () => { 677// isMouseDown = false; 678// }); 679 680// if (nextButtonSelector && document.querySelector(nextButtonSelector)) { 681// document.querySelector(nextButtonSelector).addEventListener('click', nextSlide); 682// } 683 684// if (prevButtonSelector && document.querySelector(prevButtonSelector)) { 685// document.querySelector(prevButtonSelector).addEventListener('click', prevSlide); 686// } 687 688// window.addEventListener('resize', togglePagination); 689// window.addEventListener('load', () => { 690// updateSliderPosition(); 691// togglePagination(); 692// }); 693 694// // УÑÑановиÑÑ Ð°ÐºÑивнÑÑ ÑоÑÐºÑ Ð¿Ð¾Ñле пеÑвонаÑалÑной наÑÑÑойки 695// updateSliderPosition(); 696// } 697 698// initializeSlider({ 699// sliderContainerSelector: '.main-first__banner', 700// slideSelector: '.main-first__banner .banner__slide', 701// nextButtonSelector: '.slider-btns__item.next', 702// prevButtonSelector: '.slider-btns__item.back', 703// sliderName: 'main-first__banner', 704// paginationBreakpoint: 768 705// }); 706 707// initializeSlider({ 708// sliderContainerSelector: '.articles__slider', 709// slideSelector: '.articles__slider-item', 710// nextButtonSelector: '.slider-btns__item.next', 711// prevButtonSelector: '.slider-btns__item.back', 712// sliderName: 'articles__slider', 713// startIndex: 0 714// }); 715 716// initializeSlider({ 717// sliderContainerSelector: '.main-second_banner', 718// slideSelector: '.main-second_banner .banner__slide', 719// nextButtonSelector: '.main-second__btns .slider-btns__item.next', 720// prevButtonSelector: '.main-second__btns .slider-btns__item.back', 721// sliderName: 'main-second_banner', 722// startIndex: 1, 723// rangeInputSelector: '#slider-range' 724// }); 725// }); 726 727 728 729 730 document.addEventListener('DOMContentLoaded', function() { 731 function initializeSlider({ 732 sliderContainerSelector, 733 slideSelector, 734 nextButtonSelector = null, 735 prevButtonSelector = null, 736 sliderName = '', 737 pagination = '', 738 startIndex = 0, 739 rangeInputSelector = null // ÐобавлÑем опÑÐ¸Ñ Ð´Ð»Ñ Ð¿Ð¾Ð»Ð·Ñнка 740 }) { 741 const sliderContainer = document.querySelector(sliderContainerSelector); 742 743 // ÐÑовеÑÑем, ÑÑÑеÑÑвÑÐµÑ Ð»Ð¸ конÑÐµÐ¹Ð½ÐµÑ 744 if (!sliderContainer) { 745 return; // ÐÑли не найден, вÑÑ Ð¾Ð´Ð¸Ð¼ из ÑÑнкÑии 746 } 747 748 const slides = document.querySelectorAll(slideSelector); 749 const rangeInput = rangeInputSelector ? document.querySelector(rangeInputSelector) : null; 750 var currentIndex = startIndex; 751 let startX = 0; 752 let isSwiping = false; 753 let isMouseDown = false; 754 755 756 757 function getGap() { 758 const gapValue = window.getComputedStyle(sliderContainer).gap; 759 return parseInt(gapValue) || 0; 760 } 761 762 function updateSliderPosition() { 763 if (!slides || slides.length === 0 || !slides[0]) { 764 return; // ÐÑÑ Ð¾Ð´Ð¸Ð¼, еÑли ÑÐ»Ð°Ð¹Ð´Ñ Ð½Ðµ Ð½Ð°Ð¹Ð´ÐµÐ½Ñ 765 } 766 const gap = getGap(); 767 const slideWidth = slides[0].offsetWidth; 768 const offset = -(currentIndex * (slideWidth + gap)); 769 770 771 772 sliderContainer.style.transform = `translateX(${offset}px)`; 773 774 slides.forEach((slide, index) => { 775 slide.classList.toggle('active', index === currentIndex); 776 }); 777 778 if (rangeInput) { 779 rangeInput.value = currentIndex; // ÐбновлÑем знаÑение ползÑнка 780 rangeInput.dispatchEvent(new Event('change')); 781 } 782 783 if (pagination) { 784 updatePagination(); 785 } 786 } 787 788 function nextSlide() { 789 currentIndex = (currentIndex + 1) % slides.length; 790 updateSliderPosition(); 791 } 792 793 function prevSlide() { 794 currentIndex = (currentIndex - 1 + slides.length) % slides.length; 795 updateSliderPosition(); 796 } 797 798 if (rangeInput) { 799 rangeInput.max = slides.length - 1; // УÑÑанавливаем макÑималÑное знаÑение 800 rangeInput.addEventListener('input', function() { 801 currentIndex = parseInt(rangeInput.value); 802 updateSliderPosition(); 803 }); 804 } 805 806 sliderContainer.addEventListener('touchstart', function(event) { 807 startX = event.touches[0].clientX; 808 isSwiping = true; 809 }); 810 811 sliderContainer.addEventListener('touchmove', function(event) { 812 if (!isSwiping) return; 813 const moveX = event.touches[0].clientX - startX; 814 815 if (moveX > 50) { 816 prevSlide(); 817 isSwiping = false;
818 } else if (moveX < -50) { 819 nextSlide(); 820 isSwiping = false; 821 } 822 }); 823 824 sliderContainer.addEventListener('touchend', function() { 825 isSwiping = false; 826 }); 827 828 sliderContainer.addEventListener('mousedown', function(event) { 829 if (event.button !== 0) return; // ТолÑко Ð»ÐµÐ²Ð°Ñ ÐºÐ½Ð¾Ð¿ÐºÐ° мÑÑи 830 startX = event.clientX; 831 isMouseDown = true; 832 }); 833 834 sliderContainer.addEventListener('mousemove', function(event) { 835 if (!isMouseDown) return; 836 const moveX = event.clientX - startX; 837 838 if (moveX > 50) { 839 prevSlide(); 840 isMouseDown = false; 841 } else if (moveX < -50) { 842 nextSlide(); 843 isMouseDown = false; 844 } 845 }); 846 847 sliderContainer.addEventListener('mouseup', function() { 848 isMouseDown = false; 849 }); 850 851 sliderContainer.addEventListener('mouseleave', function() { 852 isMouseDown = false; 853 }); 854 855 if (nextButtonSelector && document.querySelector(nextButtonSelector)) { 856 document.querySelector(nextButtonSelector).addEventListener('click', nextSlide); 857 } 858 859 if (prevButtonSelector && document.querySelector(prevButtonSelector)) { 860 document.querySelector(prevButtonSelector).addEventListener('click', prevSlide); 861 } 862 863 window.addEventListener('load', () => { 864 updateSliderPosition(); 865 if (pagination) { 866 createPagination(); 867 } 868 }); 869 } 870 871 initializeSlider({ 872 sliderContainerSelector: '.main-first__banner', 873 slideSelector: '.main-first__banner .banner__slide', 874 nextButtonSelector: '.slider-btns__item.next', 875 prevButtonSelector: '.slider-btns__item.back', 876 sliderName: 'main-first__banner', 877 startIndex: 0 878 }); 879 880 initializeSlider({ 881 sliderContainerSelector: '.main-second_banner', 882 slideSelector: '.main-second_banner .banner__slide', 883 nextButtonSelector: '.main-second__btns .slider-btns__item.next', 884 prevButtonSelector: '.main-second__btns .slider-btns__item.back', 885 sliderName: 'main-second_banner', 886 startIndex: 1, 887 rangeInputSelector: '#slider-range' 888 }); 889}); 890 891 892document.addEventListener('DOMContentLoaded', function () { 893 const nav = document.querySelector('.articles__nav'); 894 const panelsRoot = document.querySelector('.articles__slider'); 895 if (!nav || !panelsRoot) { 896 return; 897 } 898 899 const navItems = nav.querySelectorAll('.articles__nav-item'); 900 const panels = panelsRoot.querySelectorAll('.articles__slider-item'); 901 902 navItems.forEach((item, index) => { 903 item.addEventListener('click', () => { 904 navItems.forEach((navItem, i) => { 905 navItem.classList.toggle('active', i === index); 906 }); 907 panels.forEach((panel, i) => { 908 panel.classList.toggle('active', i === index); 909 }); 910 }); 911 }); 912}); 913 914 915 916 917/* 918document.addEventListener("DOMContentLoaded", () => { 919 // ÐÐ°Ñ Ð¾Ð´Ð¸Ð¼ вÑе ÑлеменÑÑ Ñ ÐºÐ»Ð°ÑÑом .mini-cart_btns-item 920 const cartItems = document.querySelectorAll('.mini-cart_btns-item'); 921 922 cartItems.forEach(item => { 923 // ÐÐ°Ñ Ð¾Ð´Ð¸Ð¼ кнопки и инпÑÑ Ð²Ð½ÑÑÑи каждого ÑлеменÑа 924 const minusBtn = item.querySelector('.mini-cart__input:nth-child(1)'); 925 const plusBtn = item.querySelector('.mini-cart__input:nth-child(3)'); 926 const inputField = item.querySelector('.mini-cart__input.num'); 927 928 if (minusBtn && plusBtn && inputField) { 929 // УвелиÑение знаÑÐµÐ½Ð¸Ñ Ð¿Ñи клике на ÐºÐ½Ð¾Ð¿ÐºÑ Ð¿Ð»ÑÑ 930 plusBtn.addEventListener('click', () => { 931 inputField.value = parseInt(inputField.value || 0, 10) + 1; 932 }); 933 934 // УменÑÑение знаÑÐµÐ½Ð¸Ñ Ð¿Ñи клике на ÐºÐ½Ð¾Ð¿ÐºÑ Ð¼Ð¸Ð½ÑÑ 935 minusBtn.addEventListener('click', () => { 936 let currentValue = parseInt(inputField.value || 0, 10); 937 if (currentValue > 0) { 938 inputField.value = currentValue - 1; 939 } 940 }); 941 } 942 }); 943});*/ 944 945 946document.addEventListener("DOMContentLoaded", () => { 947 const rangeInput = document.getElementById("slider-range"); 948 949 if (!rangeInput) return; 950 951 const customSlider = document.getElementById("custom-slider"); 952 const customThumb = document.getElementById("custom-slider-thumb"); 953 const customProgress = document.getElementById("custom-slider-progress"); 954 955 let min = parseFloat(rangeInput.min); 956 let max = parseFloat(rangeInput.max); 957 const step = parseFloat(rangeInput.step); 958 const sliderWidth = customSlider.offsetWidth; 959 960 max += 1; 961 962 let isDragging = false;
963 let isProgrammaticChange = false; 964 let isMouseMoving = false; // Флаг Ð´Ð»Ñ Ð¾ÑÑÐ»ÐµÐ¶Ð¸Ð²Ð°Ð½Ð¸Ñ Ð´Ð²Ð¸Ð¶ÐµÐ½Ð¸Ñ Ð¼ÑÑи 965 966 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð»Ð·Ñнка и пÑогÑеÑÑ-баÑа 967 function updateThumbPosition(value) { 968 const percentage = ((value - min) / (max - min)) * 100; 969 customThumb.style.left = `${percentage}%`; 970 customProgress.style.width = `${percentage}%`; 971 rangeInput.value = value; // Ð¡Ð¸Ð½Ñ ÑонизаÑÐ¸Ñ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ñ ÑкÑÑÑого range 972 rangeInput.dispatchEvent(new Event('input')); 973 } 974 975 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð²ÑÑиÑÐ»ÐµÐ½Ð¸Ñ Ð·Ð½Ð°ÑÐµÐ½Ð¸Ñ ÑлайдеÑа 976 function calculateValue(clientX) { 977 const rect = customSlider.getBoundingClientRect(); 978 const offsetX = Math.min(Math.max(clientX - rect.left, 0), sliderWidth); 979 const rawValue = (offsetX / sliderWidth) * (max - min) + min; 980 return Math.round(rawValue / step) * step; // УÑиÑÑваем Ñаг 981 } 982 983 // ÐбÑабоÑка кликов на ÑлайдеÑе 984 customSlider.addEventListener("click", (e) => { 985 const value = calculateValue(e.clientX); 986 updateThumbPosition(value); 987 }); 988 989 // ÐбÑабоÑка наÑала пеÑеÑаÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ (Ð´Ð»Ñ Ð¼ÑÑи) 990 customThumb.addEventListener("mousedown", (e) => { 991 e.preventDefault(); // ÐÑÑанавливаем ÑÑандаÑÑное поведение 992 isDragging = true; 993 document.body.style.userSelect = "none"; // ÐÑклÑÑаем вÑделение ÑекÑÑа пÑи пеÑеÑаÑкивании 994 }); 995 996 // ÐпÑимизиÑÐ¾Ð²Ð°Ð½Ð½Ð°Ñ Ð¾Ð±ÑабоÑка Ð´Ð²Ð¸Ð¶ÐµÐ½Ð¸Ñ Ð¼ÑÑи 997 function onMouseMove(e) { 998 if (!isDragging) return; 999 const value = calculateValue(e.clientX); 1000 updateThumbPosition(value); 1001 } 1002 1003 // ÐÑполÑзÑем requestAnimationFrame Ð´Ð»Ñ Ð¿Ð»Ð°Ð²Ð½Ð¾Ð³Ð¾ Ð´Ð²Ð¸Ð¶ÐµÐ½Ð¸Ñ 1004 function smoothMouseMove(e) { 1005 if (!isMouseMoving) { 1006 isMouseMoving = true; 1007 requestAnimationFrame(() => { 1008 onMouseMove(e); 1009 isMouseMoving = false; 1010 }); 1011 } 1012 } 1013 1014 // ÐбÑабоÑка Ð´Ð²Ð¸Ð¶ÐµÐ½Ð¸Ñ Ð¼ÑÑи 1015 document.addEventListener("mousemove", smoothMouseMove); 1016 1017 // ÐавеÑÑение пеÑеÑаÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ 1018 document.addEventListener("mouseup", () => { 1019 if (isDragging) { 1020 isDragging = false; 1021 document.body.style.userSelect = "auto"; // ÐклÑÑаем вÑделение ÑекÑÑа обÑаÑно 1022 } 1023 }); 1024 1025 // ÐбÑабоÑка наÑала пеÑеÑаÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ (Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑнÑÑ ÑÑÑÑойÑÑв) 1026 customThumb.addEventListener("touchstart", (e) => { 1027 e.preventDefault(); // ÐÑÑанавливаем ÑÑандаÑÑное поведение 1028 isDragging = true; 1029 document.body.style.userSelect = "none"; // ÐÑклÑÑаем вÑделение ÑекÑÑа пÑи пеÑеÑаÑкивании 1030 }); 1031 1032 // ÐбÑабоÑка Ð´Ð²Ð¸Ð¶ÐµÐ½Ð¸Ñ ÐºÐ°ÑÐ°Ð½Ð¸Ñ (Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑнÑÑ ÑÑÑÑойÑÑв) 1033 document.addEventListener("touchmove", (e) => { 1034 if (!isDragging) return; 1035 const touch = e.touches[0]; // ÐолÑÑаем пеÑвое каÑание 1036 const value = calculateValue(touch.clientX); 1037 updateThumbPosition(value); 1038 }); 1039 1040 // ÐавеÑÑение пеÑеÑаÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ (Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑнÑÑ ÑÑÑÑойÑÑв) 1041 document.addEventListener("touchend", () => { 1042 if (isDragging) { 1043 isDragging = false; 1044 document.body.style.userSelect = "auto"; // ÐклÑÑаем вÑделение ÑекÑÑа обÑаÑно 1045 } 1046 }); 1047 1048 // Ð¡Ð¸Ð½Ñ ÑонизаÑÐ¸Ñ Ð·Ð½Ð°Ñений пÑи изменении ÑÑандаÑÑного ÑлайдеÑа 1049 rangeInput.addEventListener("input", () => { 1050 if (!isProgrammaticChange) { 1051 isProgrammaticChange = true; 1052 updateThumbPosition(rangeInput.value); // ÐбновлÑем каÑÑомнÑй ÑÐ»Ð°Ð¹Ð´ÐµÑ Ð¿Ñи изменении оÑигиналÑного 1053 isProgrammaticChange = false;
1054 } 1055 }); 1056 1057 rangeInput.addEventListener("change", () => { 1058 if (!isProgrammaticChange) { 1059 isProgrammaticChange = true; 1060 updateThumbPosition(rangeInput.value); // ÐбновлÑем каÑÑомнÑй ÑÐ»Ð°Ð¹Ð´ÐµÑ Ð¿Ñи изменении оÑигиналÑного 1061 isProgrammaticChange = false; 1062 } 1063 }); 1064 1065 // ÐниÑиализаÑÐ¸Ñ 1066 updateThumbPosition(rangeInput.value); 1067 1068 // Ðобавление плавноÑÑи ÑеÑез CSS 1069 customThumb.style.transition = "left 0.1s ease-out"; // Ðлавное движение thumb 1070 customProgress.style.transition = "width 0.1s ease-out"; // Ðлавное обновление пÑогÑеÑÑа 1071 1072}); 1073 1074// document.addEventListener("DOMContentLoaded", () => { 1075// const items = document.querySelectorAll('.cart-info__akk-item'); 1076 1077// if (!items) return; 1078// const content = document.querySelector('.cart-info__akk-content'); 1079 1080// const defaultActiveIndex = 0; 1081// const defaultActiveItem = items[defaultActiveIndex]; 1082 1083// if (!defaultActiveItem) return; 1084 1085// defaultActiveItem.classList.add('active'); 1086// const defaultItemContent = defaultActiveItem.querySelector('.cart-info__akk-item-text').innerHTML; 1087// content.innerText = defaultItemContent; 1088 1089// items.forEach((item) => { 1090// item.addEventListener('click', () => { 1091// items.forEach((i) => i.classList.remove('active')); 1092 1093// item.classList.add('active'); 1094 1095// const itemContent = item.querySelector('.cart-info__akk-item-text'); 1096// const itemContentText = itemContent.innerHTML; 1097 1098// content.style.opacity = 0; 1099// setTimeout(() => { 1100// content.innerText = itemContentText; 1101// content.style.opacity = 1; 1102// }, 300); 1103 1104// }); 1105// }); 1106// }); 1107 1108document.addEventListener("DOMContentLoaded", () => { 1109 const items = document.querySelectorAll('.cart-info__akk-item'); 1110 1111 if (!items) return; 1112 1113 const descContent = document.querySelector('.cart-info__akk-content-desc'); 1114 const charContent = document.querySelector('.cart-info__akk-content-char'); 1115 1116 if (!descContent || !charContent) return; 1117 1118 const defaultActiveIndex = 0; 1119 const defaultActiveItem = items[defaultActiveIndex]; 1120 1121 if (!defaultActiveItem) return; 1122 1123 defaultActiveItem.classList.add('active'); 1124 updateContent(defaultActiveItem); 1125 1126 const targetContent = 1127 defaultActiveItem.querySelector('.cart-info__akk-item-name').textContent.trim() === 'ÐпиÑание' 1128 ? descContent 1129 : charContent; 1130 1131 targetContent.classList.add('active'); 1132 1133 items.forEach((item) => { 1134 item.addEventListener('click', () => { 1135 items.forEach((i) => i.classList.remove('active')); 1136 item.classList.add('active'); 1137 1138 descContent.classList.remove('active'); 1139 charContent.classList.remove('active'); 1140 1141 setTimeout(() => { 1142 updateContent(item); 1143 const targetContent = 1144 item.querySelector('.cart-info__akk-item-name').textContent.trim() === 'ÐпиÑание' 1145 ? descContent 1146 : charContent; 1147 targetContent.classList.add('active'); 1148 }, 300); 1149 }); 1150 }); 1151 1152 function updateContent(item) { 1153 const itemName = item.querySelector('.cart-info__akk-item-name'); 1154 const itemTexts = item.querySelectorAll('.cart-info__akk-item-text'); 1155 1156 if (!itemName || !itemTexts.length) return; 1157 1158 descContent.innerHTML = ''; 1159 charContent.innerHTML = ''; 1160 1161 const targetContent = 1162 itemName.textContent.trim() === 'ÐпиÑание' 1163 ? descContent 1164 : charContent; 1165
1166 itemTexts.forEach((text) => { 1167 const p = document.createElement('p'); 1168 p.textContent = text.textContent.trim(); 1169 targetContent.appendChild(p); 1170 }); 1171 } 1172}); 1173 1174 1175 1176 1177document.addEventListener("DOMContentLoaded", () => { 1178 const mainImage = document.querySelector('.cart-img__main .cart-img__img'); 1179 const mainLink = document.querySelector('.cart-img__main .cart-img__link'); 1180 if (!mainImage) return; 1181 1182 1183 const thumbnailsContainer = document.querySelector('.cart-img__other'); 1184 const thumbnails = document.querySelectorAll('.cart-img__other .cart-img__img2'); 1185 const nextButton = document.querySelector('.cart-img__next'); 1186 const prevButton = document.querySelector('.cart-img__prev'); 1187 1188 let currentIndex = 0; 1189 const visibleCount = 4; // ÐолиÑеÑÑво видимÑÑ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑ 1190 let totalThumbnails = thumbnails.length; 1191 1192 // ÐбÑабоÑÑик на миниаÑÑÑÑ 1193 thumbnails.forEach((thumbnail, index) => { 1194 thumbnail.addEventListener('click', () => { 1195 const newSrc = thumbnail.getAttribute('src'); 1196 const newLink = thumbnail.getAttribute('data-link'); 1197 mainImage.style.opacity = 0; 1198 setTimeout(() => { 1199 mainImage.setAttribute('src', newSrc); 1200 mainLink.setAttribute('href', newLink); 1201 mainImage.style.opacity = 1; 1202 }, 300); 1203 1204 // УдалÑем акÑивнÑй клаÑÑ Ñо вÑÐµÑ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑ 1205 thumbnails.forEach(img => img.classList.remove('active')); 1206 1207 // ÐобавлÑем акÑивнÑй клаÑÑ Ð½Ð° нажаÑÑÑ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑÑ 1208 thumbnail.classList.add('active'); 1209 }); 1210 }); 1211 1212 // ÐниÑиализаÑиÑ: добавлÑем акÑивнÑй клаÑÑ Ðº пеÑÐ²Ð¾Ð¼Ñ ÑлеменÑÑ 1213 thumbnails[0].classList.add('active'); 1214 mainImage.setAttribute('src', thumbnails[0].getAttribute('src')); 1215 1216 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ñдвига миниаÑÑÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ translateX 1217 function shiftThumbnails() { 1218 const thumbnailWidth = thumbnails[0].offsetWidth + 14; // ШиÑина миниаÑÑÑÑ Ñ ÑÑÑÑом пÑомежÑÑка 1219 const newTranslateX = -(currentIndex * thumbnailWidth); // ÐеÑемеÑение на ÑиÑÐ¸Ð½Ñ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑÑ 1220 1221 if (window.innerWidth < 1000) { 1222 thumbnailsContainer.style.transform = `translateX(${newTranslateX}px)`; 1223 } else { 1224 thumbnailsContainer.style.transform = `translateY(${newTranslateX}px)`; 1225 1226 } 1227 1228 // УдалÑем клаÑÑ 'active-thumb' Ñ Ð²ÑÐµÑ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑ 1229 thumbnails.forEach(thumbnail => thumbnail.classList.remove('active-thumb')); 1230 1231 // ÐобавлÑем клаÑÑ 'active-thumb' Ð´Ð»Ñ 4 видимÑÑ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑ 1232 for (let i = currentIndex; i < currentIndex + visibleCount && i < totalThumbnails; i++) { 1233 thumbnails[i].classList.add('active-thumb'); 1234 } 1235 } 1236 1237 1238 if(totalThumbnails <= visibleCount) { 1239 nextButton.remove(); 1240 prevButton.remove(); 1241 } 1242 1243 1244 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð¿ÐµÑеклÑÑÐµÐ½Ð¸Ñ Ð½Ð° ÑледÑÑÑÑÑ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑÑ 1245 function nextThumbnail() { 1246 if(totalThumbnails <= visibleCount) { 1247 return false; 1248 } 1249 1250 if (currentIndex < totalThumbnails - visibleCount) { 1251 currentIndex++; // ÐеÑÐµÑ Ð¾Ð´ к ÑледÑÑÑей миниаÑÑÑе 1252 } else { 1253 currentIndex = 0; // ÐÑли доÑÑигнÑÑ ÐºÐ¾Ð½ÐµÑ, возвÑаÑаемÑÑ Ðº пеÑÐ²Ð¾Ð¼Ñ 1254 } 1255 shiftThumbnails(); 1256 } 1257 1258 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð¿ÐµÑеклÑÑÐµÐ½Ð¸Ñ Ð½Ð° пÑедÑдÑÑÑÑ Ð¼Ð¸Ð½Ð¸Ð°ÑÑÑÑ 1259 function prevThumbnail() { 1260 if(totalThumbnails <= visibleCount) { 1261 return false;
1262 } 1263 if (currentIndex > 0) { 1264 currentIndex--; // ÐеÑÐµÑ Ð¾Ð´ к пÑедÑдÑÑей миниаÑÑÑе 1265 } else { 1266 currentIndex = totalThumbnails - visibleCount; // ÐÑли на пеÑвой, возвÑаÑаемÑÑ Ðº поÑледней 1267 } 1268 shiftThumbnails(); 1269 } 1270 1271 // ÐбÑабоÑÑик кнопки "Next" 1272 nextButton.addEventListener('click', nextThumbnail); 1273 1274 // ÐбÑабоÑÑик кнопки "Prev" 1275 prevButton.addEventListener('click', prevThumbnail); 1276 1277 // ÐниÑиализиÑÑем ÑÐ»Ð°Ð¹Ð´ÐµÑ 1278 shiftThumbnails(); 1279}); 1280 1281 1282document.addEventListener("DOMContentLoaded", function() { 1283 function moveElements() { 1284 const cartTitle = document.querySelector(".cart-title"); 1285 const cartDesc = document.querySelector(".cart-desc"); 1286 const cartImg = document.querySelector(".cart-img_desc"); 1287 1288 if (window.innerWidth > 1000) { 1289 if (cartTitle && cartImg && !cartImg.contains(cartTitle)) { 1290 cartImg.appendChild(cartTitle); // ÐеÑемеÑаем .cart-title внÑÑÑÑ .cart-img 1291 } 1292 if (cartDesc && cartImg && !cartImg.contains(cartDesc)) { 1293 cartImg.appendChild(cartDesc); // ÐеÑемеÑаем .cart-desc внÑÑÑÑ .cart-img 1294 } 1295 1296 // УбедимÑÑ, ÑÑо .cart-title Ð½Ð°Ñ Ð¾Ð´Ð¸ÑÑÑ Ð¿ÐµÑед .cart-desc 1297 if (cartTitle && cartDesc && cartImg.contains(cartTitle) && cartImg.contains(cartDesc)) { 1298 cartImg.insertBefore(cartTitle, cartDesc); 1299 } 1300 } 1301 } 1302 1303 // ÐÑовеÑка пÑи загÑÑзке ÑÑÑаниÑÑ 1304 moveElements(); 1305 1306 // ÐÑовеÑка пÑи изменении ÑазмеÑа окна 1307 window.addEventListener("resize", moveElements); 1308 }); 1309 1310 1311document.addEventListener("DOMContentLoaded", () => { 1312 const menuCont = document.getElementById("menu"); 1313 const menuBtn = document.getElementById("menu_btn"); 1314 const menuClose = document.getElementById("menu_close"); 1315 const menuBg = document.getElementById("menu_wr"); 1316 1317 if (!menuBtn) return; 1318 if (!menuCont) return; 1319 1320 // ÐÑкÑÑÑие Ð¼ÐµÐ½Ñ Ð¿Ð¾ ÐºÐ»Ð¸ÐºÑ Ð½Ð° ÐºÐ½Ð¾Ð¿ÐºÑ 1321 menuBtn.addEventListener("click", (e) => { 1322 menuCont.classList.toggle('active'); 1323 menuBg.classList.toggle('active'); 1324 document.body.classList.toggle('no-scroll'); // ÐобавлÑем/ÑбиÑаем no-scroll 1325 }); 1326 1327 // ÐакÑÑÑие Ð¼ÐµÐ½Ñ Ð¿Ð¾ ÐºÐ»Ð¸ÐºÑ Ð·Ð° его пÑеделами 1328 document.addEventListener("click", (e) => { 1329 if (!menuCont.contains(e.target) && !menuBtn.contains(e.target)) { 1330 menuCont.classList.remove('active'); 1331 if(menuBg && menuBg.classList.contains('active')) menuBg.classList.remove('active'); 1332 document.body.classList.remove('no-scroll'); // УбиÑаем no-scroll 1333 } 1334 }); 1335 1336 // ÐакÑÑÑие Ð¼ÐµÐ½Ñ Ð¿Ð¾ ÐºÐ»Ð¸ÐºÑ Ð½Ð° ÐºÐ½Ð¾Ð¿ÐºÑ Ð·Ð°ÐºÑÑÑÐ¸Ñ 1337 if(!!menuClose){ 1338 menuClose.addEventListener("click", (e) => { 1339 menuCont.classList.remove('active'); 1340 if(menuBg && menuBg.classList.contains('active')) menuBg.classList.remove('active'); 1341 document.body.classList.remove('no-scroll'); // УбиÑаем no-scroll 1342 }); 1343 } 1344 1345}); 1346 1347document.addEventListener("DOMContentLoaded", () => { 1348 function initializeResponsiveSlider(options) { 1349 const { sliderContainerSelector, slideSelector, containerSelector, nextButtonSelector, prevButtonSelector } = options; 1350 1351 function initializeSmallScreenSlider() { 1352 const slider = document.querySelector(sliderContainerSelector); 1353 const listContainer = document.querySelector(containerSelector); 1354 1355 if (!slider || !listContainer) { 1356 return; 1357 } 1358 1359 let isDown = false;
1360 let startX; 1361 let currentTranslate = 0; 1362 let prevTranslate = 0; 1363 let animationID; 1364 let hasMoved = false; 1365 1366 const sliderWidth = slider.scrollWidth; 1367 const containerWidth = listContainer.offsetWidth; 1368 1369 let totalPadding = window.innerWidth < 1600 ? 30 : 0; 1370 1371 function clamp(value, min, max) { 1372 return Math.max(min, Math.min(value, max)); 1373 } 1374 1375 slider.querySelectorAll('a').forEach(link => { 1376 link.addEventListener('dragstart', e => e.preventDefault()); 1377 1378 link.addEventListener('click', e => { 1379 if (hasMoved) e.preventDefault(); 1380 }); 1381 }); 1382 1383 function startDragging(e) { 1384 isDown = true; 1385 hasMoved = false; 1386 slider.classList.add('active'); 1387 startX = e.pageX || e.touches[0].pageX; 1388 prevTranslate = currentTranslate; 1389 animationID = requestAnimationFrame(animation); 1390 } 1391 1392 function stopDragging() { 1393 isDown = false; 1394 slider.classList.remove('active'); 1395 cancelAnimationFrame(animationID); 1396 } 1397 1398 function moveSlider(e) { 1399 if (!isDown) return; 1400 const deltaX = (e.pageX || e.touches[0].pageX) - startX; 1401 currentTranslate = prevTranslate + deltaX; 1402 1403 if (Math.abs(deltaX) > 5) { 1404 hasMoved = true; 1405 } 1406 1407 const maxTranslate = 0; 1408 const minTranslate = containerWidth - sliderWidth - totalPadding; 1409 currentTranslate = clamp(currentTranslate, minTranslate, maxTranslate); 1410 } 1411 1412 slider.addEventListener('mousedown', startDragging); 1413 slider.addEventListener('mouseleave', stopDragging); 1414 slider.addEventListener('mouseup', stopDragging); 1415 slider.addEventListener('mousemove', moveSlider); 1416 1417 slider.addEventListener('touchstart', startDragging); 1418 slider.addEventListener('touchend', stopDragging); 1419 slider.addEventListener('touchmove', moveSlider); 1420 1421 function animation() { 1422 slider.style.transform = `translateX(${currentTranslate}px)`; 1423 if (isDown) requestAnimationFrame(animation); 1424 } 1425 } 1426 1427 function initializeLargeScreenSlider() { 1428 const slider = document.querySelector(sliderContainerSelector); 1429 if (!slider) { 1430 return; 1431 } 1432 1433 const slides = slider.querySelectorAll(slideSelector); 1434 const listContainer = document.querySelector(containerSelector); 1435 1436 if (!slides.length || !listContainer) { 1437 console.error('ÐевеÑнÑе ÑелекÑоÑÑ Ð¸Ð»Ð¸ оÑÑÑÑÑÑвÑÑÑ ÑлеменÑÑ.'); 1438 return; 1439 } 1440 1441 const nextButton = document.querySelector(nextButtonSelector); 1442 const prevButton = document.querySelector(prevButtonSelector); 1443 1444 if (!nextButton || !prevButton) { 1445 console.error('Ðе Ð½Ð°Ð¹Ð´ÐµÐ½Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ пеÑеклÑÑениÑ. УбедиÑеÑÑ, ÑÑо ÑелекÑоÑÑ ÐºÐ½Ð¾Ð¿Ð¾Ðº ÑÐºÐ°Ð·Ð°Ð½Ñ Ð²ÐµÑно.'); 1446 return; 1447 } 1448 1449 const visibleSlides = 5; // ÐолиÑеÑÑво оÑобÑажаемÑÑ Ñлайдов 1450 let currentIndex = 0; // ТекÑÑий пеÑвÑй видимÑй Ñлайд 1451 1452 // УÑÑанавливаем ÑиÑÐ¸Ð½Ñ Ð¾Ð´Ð½Ð¾Ð³Ð¾ Ñлайда и наÑалÑнÑе позиÑии 1453 const slideWidth = slides[0].offsetWidth; 1454 const gap = parseInt(window.getComputedStyle(slider).gap) || 0; // УÑиÑÑваем `gap`, еÑли он еÑÑÑ 1455 const slideStep = slideWidth + gap; 1456 1457 // ФÑнкÑÐ¸Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ ÑлайдеÑа 1458 function updateSliderPosition() { 1459 const offset = -(currentIndex * slideStep); 1460 slider.style.transform = `translateX(${offset}px)`; 1461 } 1462 1463 // ÐбÑабоÑÑик Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ "ÐпеÑÑд" 1464 nextButton.addEventListener('click', () => { 1465 if (currentIndex < slides.length - visibleSlides) { 1466 currentIndex++; 1467 } else { 1468 currentIndex = 0; // ÐозвÑÐ°Ñ Ðº пеÑÐ²Ð¾Ð¼Ñ ÑÐ»Ð°Ð¹Ð´Ñ 1469 } 1470 updateSliderPosition(); 1471 }); 1472 1473 // ÐбÑабоÑÑик Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ "Ðазад" 1474 prevButton.addEventListener('click', () => { 1475 if (currentIndex > 0) { 1476 currentIndex--; 1477 } else { 1478 currentIndex = slides.length - visibleSlides; // ÐеÑÐµÑ Ð¾Ð´ к поÑледним видимÑм Ñлайдам 1479 } 1480 updateSliderPosition(); 1481 }); 1482 1483 // ÐниÑиализаÑÐ¸Ñ 1484 updateSliderPosition(); 1485 } 1486 1487 if (window.innerWidth <= 1600) { 1488 initializeSmallScreenSlider(); 1489 } else { 1490 initializeLargeScreenSlider(); 1491 } 1492 } 1493 1494 initializeResponsiveSlider({ 1495 sliderContainerSelector: '.category-list__cont', 1496 slideSelector: '.category-list__item', 1497 containerSelector: '.category-list', 1498 nextButtonSelector: '.next-button', 1499 prevButtonSelector: '.prev-button' 1500 }); 1501}); 1502 1503 1504 1505// document.addEventListener("DOMContentLoaded", function () { 1506// const container = document.querySelector("#listContainer"); 1507// const list = document.querySelector("#list"); 1508// const items = document.querySelectorAll(".list-item"); 1509 1510// // ÐаÑÑÑойки ÑлайдеÑа 1511// const slideWidth = items[0].offsetWidth; // ШиÑина одного Ñлайда 1512// const slideGap = 24; // РаÑÑÑоÑние Ð¼ÐµÐ¶Ð´Ñ Ñлайдами 1513// const visibleSlides = 3; // ÐолиÑеÑÑво видимÑÑ Ñлайдов 1514// const totalSlides = items.length; 1515// let currentIndex = 0; 1516 1517// // УÑÑанавливаем ÑиÑÐ¸Ð½Ñ ÑпиÑка 1518// list.style.width = `${(slideWidth + slideGap) * totalSlides - slideGap}
1518px`; 1519 1520// // Создаем кнопки навигаÑии 1521// const prevButton = document.createElement("button"); 1522// const nextButton = document.createElement("button"); 1523// prevButton.textContent = "â"; 1524// nextButton.textContent = "â"; 1525// prevButton.classList.add("slider-btn", "slider-btn--prev"); 1526// nextButton.classList.add("slider-btn", "slider-btn--next"); 1527 1528// container.appendChild(prevButton); 1529// container.appendChild(nextButton); 1530 1531// // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð¿ÐµÑемеÑÐµÐ½Ð¸Ñ Ñлайдов 1532// const updateSliderPosition = () => { 1533// const offset = -(slideWidth + slideGap) * currentIndex; 1534// list.style.transform = `translateX(${offset}px)`; 1535// }; 1536 1537// // ÐбÑабоÑÑики ÑобÑÑий Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿Ð¾Ðº 1538// prevButton.addEventListener("click", () => { 1539// if (currentIndex > 0) { 1540// currentIndex--; 1541// updateSliderPosition(); 1542// } 1543// }); 1544 1545// nextButton.addEventListener("click", () => { 1546// if (currentIndex < totalSlides - visibleSlides) { 1547// currentIndex++; 1548// updateSliderPosition(); 1549// } 1550// }); 1551 1552// // ÐобавлÑем ÑеÑайз обÑабоÑÑик Ð´Ð»Ñ Ð°Ð´Ð°Ð¿ÑивноÑÑи 1553// window.addEventListener("resize", () => { 1554// // ÐеÑеÑÑиÑÑваем ÑиÑÐ¸Ð½Ñ Ñлайдов пÑи изменении ÑазмеÑа окна 1555// list.style.transition = "none"; 1556// currentIndex = 0; // СбÑаÑÑваем позиÑÐ¸Ñ Ð½Ð° наÑало 1557// updateSliderPosition(); 1558// setTimeout(() => { 1559// list.style.transition = "transform 0.3s ease"; 1560// }); 1561// }); 1562// }); 1563 1564 1565document.addEventListener('DOMContentLoaded', () => { 1566 const sliders = document.querySelectorAll('.list-containerr'); 1567 1568 if (sliders.length > 0) { 1569 sliders.forEach((slider) => { 1570 new Swiper(slider, { 1571 preventClicks: true, 1572 preventClicksPropagation: true, 1573 slidesPerView: 5, 1574 spaceBetween: 55, 1575 breakpoints: { 1576 120: { 1577 slidesPerView: 1.05, 1578 spaceBetween: 20, 1579 loop: true, 1580 }, 1581 370: { 1582 slidesPerView: 1.1, 1583 spaceBetween: 20, 1584 loop: true, 1585 }, 1586 430: { 1587 slidesPerView: 1.3, 1588 spaceBetween: 20, 1589 loop: true, 1590 }, 1591 620: { 1592 slidesPerView: 1.8, 1593 spaceBetween: 20, 1594 loop: true, 1595 }, 1596 767: { 1597 slidesPerView: 2.2, 1598 spaceBetween: 20, 1599 loop: true, 1600 }, 1601 992: { 1602 slidesPerView: 3, 1603 spaceBetween: 25, 1604 }, 1605 1250: { 1606 slidesPerView: 4, 1607 spaceBetween: 35, 1608 }, 1609 1650: { 1610 slidesPerView: 5, 1611 spaceBetween: 55, 1612 }, 1613 }, 1614 }); 1615 }); 1616 } 1617}); 1618 1619 1620// document.addEventListener("DOMContentLoaded", () => { 1621// function initializeList({ 1622// sliderContainerSelector, 1623// slideSelector, 1624// containerSelector 1625// }) { 1626// const slider = document.querySelector(sliderContainerSelector); 1627// const listContainer = document.querySelector(containerSelector); 1628 1629// if (!slider || !listContainer) { 1630// return; 1631// } 1632 1633// let isDown = false; 1634// let startX; 1635// let currentTranslate = 0; 1636// let prevTranslate = 0; 1637// let animationID; 1638// let hasMoved = false; 1639 1640// const sliderWidth = slider.scrollWidth; 1641// const containerWidth = listContainer.offsetWidth; 1642 1643// let totalPadding = 0 1644 1645 1646// if (window.innerWidth < 1600) { 1647// totalPadding = 20; 1648// } else { 1649// totalPadding = 0; 1650// return 1651// } 1652 1653// function clamp(value, min, max) {
1654// return Math.max(min, Math.min(value, max)); 1655// } 1656 1657// slider.querySelectorAll('a').forEach(link => { 1658// link.addEventListener('dragstart', e => e.preventDefault()); 1659 1660// link.addEventListener('click', e => { 1661// if (hasMoved) e.preventDefault(); 1662// }); 1663// }); 1664 1665// function startDragging(e) { 1666// isDown = true; 1667// hasMoved = false; 1668// slider.classList.add('active'); 1669// startX = e.pageX || e.touches[0].pageX; 1670// prevTranslate = currentTranslate; 1671// animationID = requestAnimationFrame(animation); 1672// } 1673 1674// function stopDragging() { 1675// isDown = false; 1676// slider.classList.remove('active'); 1677// cancelAnimationFrame(animationID); 1678// } 1679 1680// function moveSlider(e) { 1681// if (!isDown) return; 1682// const deltaX = (e.pageX || e.touches[0].pageX) - startX; 1683// currentTranslate = prevTranslate + deltaX; 1684 1685// if (Math.abs(deltaX) > 5) { 1686// hasMoved = true; 1687// } 1688 1689// const maxTranslate = 0; 1690// const minTranslate = containerWidth - sliderWidth - totalPadding; 1691// currentTranslate = clamp(currentTranslate, minTranslate, maxTranslate); 1692// } 1693 1694// slider.addEventListener('mousedown', startDragging); 1695// slider.addEventListener('mouseleave', stopDragging); 1696// slider.addEventListener('mouseup', stopDragging); 1697// slider.addEventListener('mousemove', moveSlider); 1698 1699// slider.addEventListener('touchstart', startDragging); 1700// slider.addEventListener('touchend', stopDragging); 1701// slider.addEventListener('touchmove', moveSlider); 1702 1703// function animation() { 1704// slider.style.transform = `translateX(${currentTranslate}px)`; 1705// if (isDown) requestAnimationFrame(animation); 1706// } 1707// } 1708 1709// initializeList({ 1710// sliderContainerSelector: '#list', 1711// slideSelector: '.list-item', 1712// containerSelector: '.list-container' 1713// }); 1714 1715// }); 1716 1717//=========== Slider-info ============================================================================================================================================ 1718 1719document.addEventListener('DOMContentLoaded', function () { 1720 const sliders = document.querySelectorAll('.info-slider__slider'); 1721 1722 if (sliders.length > 0) {
1723 sliders.forEach(slider => { 1724 new Swiper(slider, { 1725 initialSlide: 1, 1726 autoHeight: true, 1727 pagination: { 1728 el: '.swiper-pagination', 1729 clickable: true, 1730 }, 1731 slidesPerView: 1, 1732 spaceBetween: 10, 1733 speed: 700, 1734 }); 1735 }); 1736 } 1737}); 1738 1739// Slider-items 1740 1741document.addEventListener('DOMContentLoaded', function () { 1742 const sliders = document.querySelectorAll('.items-electroplating__slider'); 1743 1744 if (sliders.length > 0) { 1745 sliders.forEach(slider => { 1746 const swiper = new Swiper(slider, { 1747 initialSlide: 1, 1748 autoHeight: true, 1749 pagination: { 1750 el: '.swiper-pagination', 1751 clickable: true, 1752 }, 1753 slidesPerView: 7, 1754 spaceBetween: 53, 1755 speed: 700, 1756 breakpoints: { 1757 320: { 1758 slidesPerView: 1.35, 1759 spaceBetween: 20, 1760 loop: true, 1761 }, 1762 360: { 1763 slidesPerView: 1.5, 1764 spaceBetween: 20, 1765 loop: true, 1766 }, 1767 400: { 1768 slidesPerView: 1.8, 1769 spaceBetween: 20, 1770 loop: true, 1771 }, 1772 576: { 1773 slidesPerView: 2.2, 1774 spaceBetween: 20, 1775 loop: true, 1776 }, 1777 768: { 1778 slidesPerView: 3.2, 1779 spaceBetween: 20, 1780 loop: false, 1781 }, 1782 992: { 1783 slidesPerView: 4.7, 1784 spaceBetween: 20, 1785 }, 1786 1150: { 1787 slidesPerView: 5.2, 1788 spaceBetween: 20, 1789 }, 1790 1350: { 1791 slidesPerView: 6.2, 1792 spaceBetween: 30, 1793 }, 1794 1600: { 1795 slidesPerView: 7, 1796 spaceBetween: 40, 1797 }, 1798 1650: { 1799 slidesPerView: 7, 1800 spaceBetween: 53, 1801 }, 1802 }, 1803 on: { 1804 slideChangeTransitionEnd: function () { 1805 const screenWidth = window.innerWidth; 1806 1807 if (screenWidth <= 768) { 1808 this.params.centeredSlides = true; 1809 this.update(); 1810 this.slideTo(this.activeIndex, 700, true); 1811 } 1812 }, 1813 }, 1814 }); 1815 }); 1816 } 1817}); 1818 1819// electroplating-slider 1820 1821document.addEventListener('DOMContentLoaded', function () { 1822 const sliders = document.querySelectorAll('[data-electroplating-slider]'); 1823 1824 if (sliders.length > 0) {
1825 sliders.forEach(slider => { 1826 const swiper = new Swiper(slider, { 1827 initialSlide: 1, 1828 autoHeight: true, 1829 pagination: { 1830 el: '.swiper-pagination', 1831 clickable: true, 1832 }, 1833 navigation: { 1834 nextEl: '.arrow-slider-next', 1835 prevEl: '.arrow-slider-prev', 1836 }, 1837 slidesPerView: 5, 1838 spaceBetween: 53, 1839 speed: 700, 1840 //centeredSlides: true, 1841 loop: false, 1842 breakpoints: { 1843 100: { 1844 slidesPerView: 1.1, 1845 spaceBetween: 20, 1846 centeredSlides: false, 1847 }, 1848 320: { 1849 slidesPerView: 1.2, 1850 spaceBetween: 20, 1851 centeredSlides: false, 1852 }, 1853 360: { 1854 slidesPerView: 1.2, 1855 spaceBetween: 20, 1856 centeredSlides: false, 1857 }, 1858 576: { 1859 slidesPerView: 2.1, 1860 spaceBetween: 20, 1861 centeredSlides: false, 1862 }, 1863 768: { 1864 slidesPerView: 2.5, 1865 spaceBetween: 20, 1866 }, 1867 1150: { 1868 slidesPerView: 3.5, 1869 spaceBetween: 20, 1870 }, 1871 1350: { 1872 slidesPerView: 3.5, 1873 spaceBetween: 30, 1874 }, 1875 1600: { 1876 slidesPerView: 4, 1877 spaceBetween: 80, 1878 }, 1879 1650: { 1880 slidesPerView: 4, 1881 spaceBetween: 80, 1882 }, 1883 }, 1884 }); 1885 }); 1886 } 1887}); 1888 1889// article-news-slider 1890 1891document.addEventListener('DOMContentLoaded', function () { 1892 const sliders = document.querySelectorAll('[data-article-news-slider]'); 1893 1894 if (sliders.length > 0) {
1895 sliders.forEach(slider => { 1896 const swiper = new Swiper(slider, { 1897 //initialSlide: 1, 1898 autoHeight: false, 1899 pagination: { 1900 el: '.swiper-pagination', 1901 clickable: true, 1902 }, 1903 navigation: { 1904 nextEl: '.arrow-slider-next', 1905 prevEl: '.arrow-slider-prev', 1906 }, 1907 slidesPerView: 3, 1908 spaceBetween: 53, 1909 speed: 700, 1910 // centeredSlides: true, 1911 loop: false, 1912 breakpoints: { 1913 100: { 1914 slidesPerView: 1, 1915 spaceBetween: 20, 1916 centeredSlides: false, 1917 }, 1918 320: { 1919 slidesPerView: 1, 1920 spaceBetween: 20, 1921 centeredSlides: false, 1922 }, 1923 360: { 1924 slidesPerView: 1, 1925 spaceBetween: 20, 1926 centeredSlides: false, 1927 }, 1928 576: { 1929 slidesPerView: 1, 1930 spaceBetween: 20, 1931 centeredSlides: false, 1932 }, 1933 768: { 1934 slidesPerView: 1.7, 1935 spaceBetween: 20, 1936 }, 1937 1938 992: { 1939 slidesPerView: 1.99, 1940 spaceBetween: 20, 1941 }, 1942 // 1150: { 1943 // slidesPerView: 2.2, 1944 // spaceBetween: 43, 1945 // }, 1946 1350: { 1947 slidesPerView: 1.99, 1948 spaceBetween: 20, 1949 }, 1950 1600: { 1951 slidesPerView: 2.95, 1952 spaceBetween: 43, 1953 }, 1954 1650: { 1955 slidesPerView: 2.95, 1956 spaceBetween: 43, 1957 }, 1958 }, 1959 }); 1960 }); 1961 } 1962}); 1963 1964 1965// article-slider-mob 1966 1967document.addEventListener('DOMContentLoaded', function () { 1968 const sliders = document.querySelectorAll('[data-article-slider-mob]'); 1969 1970 if (sliders.length > 0) {
1971 sliders.forEach(slider => { 1972 const swiper = new Swiper(slider, { 1973 //initialSlide: 1, 1974 autoHeight: false, 1975 pagination: { 1976 el: '.swiper-pagination', 1977 clickable: true, 1978 }, 1979 slidesPerView: 3, 1980 spaceBetween: 53, 1981 speed: 700, 1982 // centeredSlides: true, 1983 loop: false, 1984 breakpoints: { 1985 100: { 1986 slidesPerView: 1, 1987 spaceBetween: 20, 1988 centeredSlides: false, 1989 }, 1990 320: { 1991 slidesPerView: 1, 1992 spaceBetween: 20, 1993 centeredSlides: false, 1994 }, 1995 360: { 1996 slidesPerView: 1, 1997 spaceBetween: 20, 1998 centeredSlides: false, 1999 }, 2000 576: { 2001 slidesPerView: 1, 2002 spaceBetween: 20, 2003 centeredSlides: false, 2004 }, 2005 768: { 2006 slidesPerView: 2, 2007 spaceBetween: 20, 2008 }, 2009 2010 992: { 2011 slidesPerView: 2, 2012 spaceBetween: 43, 2013 }, 2014 // 1150: { 2015 // slidesPerView: 2.2, 2016 // spaceBetween: 43, 2017 // }, 2018 1350: { 2019 slidesPerView: 1.99, 2020 spaceBetween: 43, 2021 }, 2022 1600: { 2023 slidesPerView: 2.95, 2024 spaceBetween: 43, 2025 }, 2026 1650: { 2027 slidesPerView: 2.95, 2028 spaceBetween: 43, 2029 }, 2030 }, 2031 }); 2032 }); 2033 } 2034}); 2035 2036 2037//======= select ================================================================================================================================================= 2038 2039let selects = document.getElementsByTagName('select'); 2040if (selects.length > 0) { 2041 selects_init(); 2042} 2043function selects_init() { 2044 for (let index = 0; index < selects.length; index++) { 2045 const select = selects[index]; 2046 if (select.matches('[data-native-select]')) { 2047 continue; 2048 } 2049 select_init(select); 2050 } 2051 //select_callback(); 2052 document.addEventListener('click', function (e) { 2053 selects_close(e); 2054 }); 2055 document.addEventListener('keydown', function (e) { 2056 if (e.which == 27) { 2057 selects_close(e); 2058 } 2059 }); 2060} 2061function selects_close(e) { 2062 const selects = document.querySelectorAll('.select'); 2063 if (!e.target.closest('.select')) { 2064 for (let index = 0; index < selects.length; index++) { 2065 const select = selects[index]; 2066 const select_body_options = select.querySelector('.select__options'); 2067 select.classList.remove('_active'); 2068 _slideUp(select_body_options, 100); 2069 } 2070 } 2071} 2072function select_init(select) { 2073 const select_parent = select.parentElement; 2074 const select_modifikator = select.getAttribute('class'); 2075 const select_selected_option = select.querySelector('option:checked'); 2076 select.setAttribute('data-default', select_selected_option.value); 2077 select.style.display = 'none'; 2078 2079 select_parent.insertAdjacentHTML('beforeend', '<div class="select select_' + select_modifikator + '"></div>'); 2080 2081 let new_select = select.parentElement.querySelector('.select'); 2082 new_select.appendChild(select); 2083 select_item(select); 2084} 2085function select_item(select) { 2086 const select_parent = select.parentElement; 2087 const select_items = select_parent.querySelector('.select__item'); 2088 const select_options = select.querySelectorAll('option'); 2089 const select_selected_option = select.querySelector('option:checked'); 2090 const select_selected_text = select_selected_option.text; 2091 const select_type = select.getAttribute('data-type'); 2092 2093 if (select_items) { 2094 select_items.remove(); 2095 } 2096 2097 let select_type_content = ''; 2098 if (select_type == 'input') { 2099 select_type_content = '<div class="select__value"><input autocomplete="off" type="text" name="form[]" value="' + select_selected_text + '" data-error="ÐÑибка" data-value="' + select_selected_text + '" class="select__input"></div>'; 2100 } else { 2101 select_type_content = '<div class="select__value"><span>' + select_selected_text + '</span></div>'; 2102 } 2103 2104 select_parent.insertAdjacentHTML('beforeend', 2105 '<div class="select__item">' + 2106 '<div class="select__title">' + select_type_content + '</div>' + 2107 '<div class="select__options">' + select_get_options(select_options) + '</div>' + 2108 '</div></div>'); 2109 2110 select_actions(select, select_parent); 2111} 2112function select_actions(original, select) { 2113 const select_item = select.querySelector('.select__item'); 2114 const select_body_options = select.querySelector('.select__options'); 2115 const select_options = select.querySelectorAll('.select__option'); 2116 const select_type = original.getAttribute('data-type'); 2117 const select_input = select.querySelector('.select__input'); 2118 2119 select_item.addEventListener('click', function () { 2120 let selects = document.querySelectorAll('.select'); 2121 for (let index = 0; index < selects.length; index++) { 2122 const select = selects[index]; 2123 const select_body_options = select.querySelector('.select__options'); 2124 if (select != select_item.closest('.select')) { 2125 select.classList.remove('_active'); 2126 _slideUp(select_body_options, 100); 2127 } 2128 } 2129 _slideToggle(select_body_options, 100); 2130 select.classList.toggle('_active'); 2131 }); 2132 2133 for (let index = 0; index < select_options.length; index++) { 2134 const select_option = select_options[index]; 2135 const select_option_value = select_option.getAttribute('data-value'); 2136 const select_option_text = select_option.innerHTML; 2137 2138 if (select_type == 'input') { 2139 select_input.addEventListener('keyup', select_search); 2140 } else { 2141 if (select_option.getAttribute('data-value') == original.value) { 2142 select_option.style.display = 'none'; 2143 } 2144 } 2145 select_option.addEventListener('click', function () { 2146 const originalForm = original.closest('form'); 2147 if(originalForm && originalForm.getAttribute('data-submit')) { 2148 resetFormFields(originalForm); 2149 } 2150 2151 for (let index = 0; index < select_options.length; index++) { 2152 const el = select_options[index]; 2153 el.style.display = 'block'; 2154 } 2155 if (select_type == 'input') { 2156 select_input.value = select_option_text; 2157 original.value = select_option_value; 2158 } else { 2159 select.querySelector('.select__value').innerHTML = '<span>' + select_option_text + '</span>'; 2160 original.value = select_option_value; 2161 select_option.style.display = 'none'; 2162 } 2163 2164 original.dispatchEvent(new Event('change', { bubbles: true })); 2165 2166 if(originalForm && originalForm.getAttribute('data-submit')) { 2167 originalForm.dispatchEvent(new Event('submit')); 2168 } 2169 }); 2170 } 2171} 2172function select_get_options(select_options) { 2173 if (select_options) { 2174 let select_options_content = ''; 2175 for (let index = 0; index < select_options.length; index++) { 2176 const select_option = select_options[index]; 2177 const select_option_value = select_option.value; 2178 if (select_option_value != '') { 2179 const select_option_text = select_option.text; 2180 select_options_content = select_options_content + '<div data-value="' + select_option_value + '" class="select__option">' + select_option_text + '</div>'; 2181 } 2182 } 2183 return select_options_content; 2184 } 2185} 2186function select_search(e) { 2187 let select_block = e.target.closest('.select ').querySelector('.select__options'); 2188 let select_options = e.target.closest('.select ').querySelectorAll('.select__option'); 2189 let select_search_text = e.target.value.toUpperCase(); 2190 2191 for (let i = 0; i < select_options.length; i++) { 2192 let select_option = select_options[i]; 2193 let select_txt_value = select_option.textContent || select_option.innerText; 2194 if (select_txt_value.toUpperCase().indexOf(select_search_text) > -1) { 2195 select_option.style.display = ""; 2196 } else { 2197 select_option.style.display = "none"; 2198 } 2199 } 2200} 2201function selects_update_all() { 2202 let selects = document.querySelectorAll('select:not([data-native-select])'); 2203 if (selects) { 2204 for (let index = 0; index < selects.length; index++) { 2205 const select = selects[index]; 2206 select_item(select); 2207 } 2208 } 2209} 2210 2211 2212let _slideUp = (target, duration = 500) => { 2213 target.style.transitionProperty = 'height, margin, padding'; 2214 target.style.transitionDuration = duration + 'ms'; 2215 target.style.height = target.offsetHeight + 'px'; 2216 target.offsetHeight; 2217 target.style.overflow = 'hidden'; 2218 target.style.height = 0; 2219 target.style.paddingTop = 0; 2220 target.style.paddingBottom = 0; 2221 target.style.marginTop = 0; 2222 target.style.marginBottom = 0; 2223 window.setTimeout(() => { 2224 target.style.display = 'none'; 2225 target.style.removeProperty('height'); 2226 target.style.removeProperty('padding-top'); 2227 target.style.removeProperty('padding-bottom'); 2228 target.style.removeProperty('margin-top'); 2229 target.style.removeProperty('margin-bottom'); 2230 target.style.removeProperty('overflow'); 2231 target.style.removeProperty('transition-duration'); 2232 target.style.removeProperty('transition-property'); 2233 target.classList.remove('_slide'); 2234 }, duration); 2235} 2236let _slideDown = (target, duration = 500) => { 2237 target.style.removeProperty('display'); 2238 let display = window.getComputedStyle(target).display; 2239 if (display === 'none') 2240 display = 'block'; 2241 2242 target.style.display = display; 2243 let height = target.offsetHeight; 2244 target.style.overflow = 'hidden'; 2245 target.style.height = 0; 2246 target.style.paddingTop = 0; 2247 target.style.paddingBottom = 0; 2248 target.style.marginTop = 0; 2249 target.style.marginBottom = 0; 2250 target.offsetHeight; 2251 target.style.transitionProperty = "height, margin, padding"; 2252 target.style.transitionDuration = duration + 'ms'; 2253 target.style.height = height + 'px'; 2254 target.style.removeProperty('padding-top'); 2255 target.style.removeProperty('padding-bottom'); 2256 target.style.removeProperty('margin-top'); 2257 target.style.removeProperty('margin-bottom'); 2258 window.setTimeout(() => { 2259 target.style.removeProperty('height'); 2260 target.style.removeProperty('overflow'); 2261 target.style.removeProperty('transition-duration'); 2262 target.style.removeProperty('transition-property'); 2263 target.classList.remove('_slide'); 2264 }, duration); 2265} 2266let _slideToggle = (target, duration = 500) => { 2267 if (!target.classList.contains('_slide')) { 2268 target.classList.add('_slide'); 2269 if (window.getComputedStyle(target).display === 'none') { 2270 return _slideDown(target, duration); 2271 } else { 2272 return _slideUp(target, duration); 2273 } 2274 } 2275} 2276 2277//===== tabs =================================================================================================================================================== 2278 2279 function tabs() { 2280 const tabs = document.querySelectorAll('[data-tabs]'); 2281 let tabsActiveHash = []; 2282 2283 if (tabs.length > 0) {
2284 tabs.forEach((tabsBlock, index) => { 2285 tabsBlock.classList.add('_tab-init'); 2286 tabsBlock.setAttribute('data-tabs-index', index); 2287 tabsBlock.addEventListener("click", setTabsAction); 2288 initTabs(tabsBlock); 2289 }); 2290 2291 let mdQueriesArray = dataMediaQueries(tabs, "tabs"); 2292 if (mdQueriesArray && mdQueriesArray.length) { 2293 mdQueriesArray.forEach(mdQueriesItem => { 2294 mdQueriesItem.matchMedia.addEventListener("change", function () { 2295 setTitlePosition(mdQueriesItem.itemsArray, mdQueriesItem.matchMedia); 2296 }); 2297 setTitlePosition(mdQueriesItem.itemsArray, mdQueriesItem.matchMedia); 2298 }); 2299 } 2300 } 2301 2302 function setTitlePosition(tabsMediaArray, matchMedia) { 2303 tabsMediaArray.forEach(tabsMediaItem => { 2304 tabsMediaItem = tabsMediaItem.item; 2305 let tabsTitles = tabsMediaItem.querySelector('[data-tabs-titles]'); 2306 let tabsTitleItems = tabsMediaItem.querySelectorAll('[data-tabs-title]'); 2307 let tabsContent = tabsMediaItem.querySelector('[data-tabs-body]'); 2308 let tabsContentItems = tabsMediaItem.querySelectorAll('[data-tabs-item]'); 2309 tabsTitleItems = Array.from(tabsTitleItems).filter(item => item.closest('[data-tabs]') === tabsMediaItem); 2310 tabsContentItems = Array.from(tabsContentItems).filter(item => item.closest('[data-tabs]') === tabsMediaItem); 2311 tabsContentItems.forEach((tabsContentItem, index) => { 2312 if (matchMedia.matches) { 2313 tabsContent.append(tabsTitleItems[index]); 2314 tabsContent.append(tabsContentItem); 2315 tabsMediaItem.classList.add('_tab-spoller'); 2316 } else { 2317 tabsTitles.append(tabsTitleItems[index]); 2318 tabsMediaItem.classList.remove('_tab-spoller'); 2319 } 2320 }); 2321 }); 2322 } 2323 2324 function initTabs(tabsBlock) { 2325 let tabsTitles = tabsBlock.querySelectorAll('[data-tabs-titles]>*'); 2326 let tabsContent = tabsBlock.querySelectorAll('[data-tabs-body]>*'); 2327 const tabsBlockIndex = tabsBlock.dataset.tabsIndex; 2328 const tabsActiveHashBlock = tabsActiveHash[0] == tabsBlockIndex; 2329 2330 if (tabsActiveHashBlock) { 2331 const tabsActiveTitle = tabsBlock.querySelector('[data-tabs-titles]>._tab-active'); 2332 tabsActiveTitle ? tabsActiveTitle.classList.remove('_tab-active') : null; 2333 } 2334 if (tabsContent.length) { 2335 tabsContent = Array.from(tabsContent).filter(item => item.closest('[data-tabs]') === tabsBlock); 2336 tabsTitles = Array.from(tabsTitles).filter(item => item.closest('[data-tabs]') === tabsBlock); 2337 tabsContent.forEach((tabsContentItem, index) => { 2338 tabsTitles[index].setAttribute('data-tabs-title', ''); 2339 tabsContentItem.setAttribute('data-tabs-item', ''); 2340 2341 if (tabsActiveHashBlock && index == tabsActiveHash[1]) { 2342 tabsTitles[index].classList.add('_tab-active'); 2343 } 2344 tabsContentItem.hidden = !tabsTitles[index].classList.contains('_tab-active'); 2345 }); 2346 } 2347 } 2348 function setTabsStatus(tabsBlock) { 2349 let tabsTitles = tabsBlock.querySelectorAll('[data-tabs-title]'); 2350 let tabsContent = tabsBlock.querySelectorAll('[data-tabs-item]'); 2351 const tabsBlockIndex = tabsBlock.dataset.tabsIndex; 2352 function isTabsAnamate(tabsBlock) { 2353 if (tabsBlock.hasAttribute('data-tabs-animate')) { 2354 return tabsBlock.dataset.tabsAnimate > 0 ? Number(tabsBlock.dataset.tabsAnimate) : 500; 2355 } 2356 } 2357 const tabsBlockAnimate = isTabsAnamate(tabsBlock); 2358 if (tabsContent.length > 0) { 2359 const isHash = tabsBlock.hasAttribute('data-tabs-hash'); 2360 tabsContent = Array.from(tabsContent).filter(item => item.closest('[data-tabs]') === tabsBlock); 2361 tabsTitles = Array.from(tabsTitles).filter(item => item.closest('[data-tabs]') === tabsBlock); 2362 tabsContent.forEach((tabsContentItem, index) => { 2363 if (tabsTitles[index].classList.contains('_tab-active')) { 2364 if (tabsBlockAnimate) { 2365 _slideDown(tabsContentItem, tabsBlockAnimate); 2366 } else { 2367 tabsContentItem.hidden = false; 2368 } 2369 if (isHash && !tabsContentItem.closest('.popup')) { 2370 setHash(`tab-${tabsBlockIndex}-${index}`); 2371 } 2372 } else { 2373 if (tabsBlockAnimate) { 2374 _slideUp(tabsContentItem, tabsBlockAnimate); 2375 } else { 2376 tabsContentItem.hidden = true; 2377 } 2378 } 2379 }); 2380 } 2381 } 2382 function setTabsAction(e) { 2383 const el = e.target; 2384 if (el.closest('[data-tabs-title]')) { 2385 const tabTitle = el.closest('[data-tabs-title]'); 2386 const tabsBlock = tabTitle.closest('[data-tabs]'); 2387 if (!tabTitle.classList.contains('_tab-active') && !tabsBlock.querySelector('._slide')) { 2388 let tabActiveTitle = tabsBlock.querySelectorAll('[data-tabs-title]._tab-active'); 2389 tabActiveTitle.length ? tabActiveTitle = Array.from(tabActiveTitle).filter(item => item.closest('[data-tabs]') === tabsBlock) : null; 2390 tabActiveTitle.length ? tabActiveTitle[0].classList.remove('_tab-active') : null; 2391 tabTitle.classList.add('_tab-active'); 2392 setTabsStatus(tabsBlock); 2393 } 2394 e.preventDefault(); 2395 } 2396 } 2397} 2398 2399tabs(); 2400 2401 2402 function dataMediaQueries(array, dataSetValue) { 2403 const media = Array.from(array).filter(function (item, index, self) { 2404 if (item.dataset[dataSetValue]) { 2405 return item.dataset[dataSetValue].split(",")[0]; 2406 } 2407 }); 2408 if (media.length) { 2409 const breakpointsArray = [];
2410 media.forEach(item => { 2411 const params = item.dataset[dataSetValue]; 2412 const breakpoint = {}; 2413 const paramsArray = params.split(","); 2414 breakpoint.value = paramsArray[0]; 2415 breakpoint.type = paramsArray[1] ? paramsArray[1].trim() : "max"; 2416 breakpoint.item = item; 2417 breakpointsArray.push(breakpoint); 2418 }); 2419 let mdQueries = breakpointsArray.map(function (item) { 2420 return '(' + item.type + "-width: " + item.value + "px)," + item.value + ',' + item.type; 2421 }); 2422 mdQueries = uniqArray(mdQueries); 2423 const mdQueriesArray = []; 2424 2425 if (mdQueries.length) { 2426 mdQueries.forEach(breakpoint => { 2427 const paramsArray = breakpoint.split(","); 2428 const mediaBreakpoint = paramsArray[1]; 2429 const mediaType = paramsArray[2]; 2430 const matchMedia = window.matchMedia(paramsArray[0]); 2431 const itemsArray = breakpointsArray.filter(function (item) { 2432 if (item.value === mediaBreakpoint && item.type === mediaType) { 2433 return true; 2434 } 2435 }); 2436 mdQueriesArray.push({ 2437 itemsArray, 2438 matchMedia 2439 }) 2440 }); 2441 return mdQueriesArray; 2442 } 2443 } 2444} 2445function uniqArray(array) { 2446 return array.filter(function (item, index, self) { 2447 return self.indexOf(item) === index; 2448 }); 2449} 2450 2451//========= ÐеÑаÑÑ =============================================================================================================================================== 2452 2453document.addEventListener("DOMContentLoaded", () => { 2454 const printButtons = document.querySelectorAll("[data-print]"); 2455 2456 if (printButtons.length > 0) { 2457 printButtons.forEach((button) => { 2458 button.addEventListener("click", (e) => { 2459 e.preventDefault(); 2460 window.print(); 2461 }); 2462 }); 2463 } 2464}); 2465 2466 2467//====== Ðамена ÑекÑÑа ================================================================================================================================================== 2468 2469document.addEventListener('DOMContentLoaded', () => { 2470 2471 function checkAndReplaceText() { 2472 const elements = document.querySelectorAll('[data-text-replacement][data-media-replacement]'); 2473 elements.forEach(element => { 2474 const replacementText = element.getAttribute('data-text-replacement'); 2475 const mediaWidth = parseFloat(element.getAttribute('data-media-replacement')); 2476 const originalText = element.dataset.originalText || element.textContent; 2477 2478 if (window.innerWidth <= mediaWidth) { 2479 if (element.textContent !== replacementText) { 2480 element.textContent = replacementText; 2481 } 2482 } else { 2483 if (element.textContent !== originalText) { 2484 element.textContent = originalText; 2485 } 2486 } 2487 2488 if (!element.dataset.originalText) { 2489 element.dataset.originalText = originalText; 2490 } 2491 }); 2492 } 2493 2494 checkAndReplaceText(); 2495 2496 window.addEventListener('resize', checkAndReplaceText); 2497}); 2498 2499//======================================================================================================================================================== 2500 2501let bodyLockStatus = true; 2502let bodyLockToggle = (delay = 500) => { 2503 if (document.documentElement.classList.contains('lock')) { 2504 bodyUnlock(delay); 2505 } else { 2506 bodyLock(delay); 2507 } 2508} 2509let getLockPaddingValue = () => { 2510 return (window.innerWidth - document.documentElement.clientWidth) + 'px'; 2511} 2512let bodyUnlock = (delay = 500) => { 2513 let body = document.querySelector("body"); 2514 if (bodyLockStatus) { 2515 let lock_padding = document.querySelectorAll("[data-lp]"); 2516 setTimeout(() => { 2517 for (let index = 0; index < lock_padding.length; index++) { 2518 const el = lock_padding[index]; 2519 el.style.paddingRight = ''; 2520 } 2521 body.style.paddingRight = ''; 2522 document.documentElement.classList.remove("lock"); 2523 }, delay); 2524 bodyLockStatus = false; 2525 setTimeout(function () { 2526 bodyLockStatus = true; 2527 }, delay); 2528 } 2529} 2530let bodyLock = (delay = 500) => { 2531 let body = document.querySelector("body"); 2532 if (bodyLockStatus) { 2533 let lockPaddingValue = getLockPaddingValue(); 2534 let lock_padding = document.querySelectorAll("[data-lp]"); 2535 for (let index = 0; index < lock_padding.length; index++) { 2536 const el = lock_padding[index]; 2537 el.style.paddingRight = lockPaddingValue; 2538 } 2539 body.style.paddingRight = lockPaddingValue; 2540 document.documentElement.classList.add("lock"); 2541 2542 bodyLockStatus = false;
2543 setTimeout(function () { 2544 bodyLockStatus = true; 2545 }, delay); 2546 } 2547} 2548 2549//====== Popup ================================================================================================================================================== 2550 2551class Popup { 2552 constructor(options = {}) { 2553 this.vkAttribute = 'data-popup-vk'; 2554 this.vkPlaceAttribute = 'data-popup-vk-place'; 2555 const defaultConfig = { 2556 logging: true, 2557 init: true, 2558 attributeOpenButton: 'data-popup', 2559 attributeCloseButton: 'data-close', 2560 fixElementSelector: '[data-lp]', 2561 youtubeAttribute: 'data-popup-youtube', 2562 youtubePlaceAttribute: 'data-popup-youtube-place', 2563 setAutoplayYoutube: true, 2564 classes: { 2565 popup: 'popup', 2566 popupContent: 'popup__content', 2567 popupActive: 'popup_show', 2568 bodyActive: 'popup-show', 2569 thanksLock: 'popup-thanks-lock' 2570 }, 2571 focusCatch: true, 2572 closeEsc: true, 2573 bodyLock: true, 2574 hashSettings: { 2575 location: true, 2576 goHash: true, 2577 }, 2578 on: { 2579 beforeOpen: () => {}, 2580 afterOpen: () => {}, 2581 beforeClose: () => {}, 2582 afterClose: () => {}, 2583 }, 2584 }; 2585 2586 this.options = { 2587 ...defaultConfig, 2588 ...options, 2589 classes: { ...defaultConfig.classes, ...options?.classes }, 2590 hashSettings: { ...defaultConfig.hashSettings, ...options?.hashSettings }, 2591 }; 2592 2593 this.isOpen = false; 2594 this.targetOpen = { selector: false, element: null }; 2595 this.previousOpen = { selector: false, element: null }; 2596 this.lastClosed = { selector: false, element: null }; 2597 this.lastFocusEl = null; 2598 this.bodyLock = false; 2599 2600 this._focusEl = [ 2601 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 2602 'textarea:not([disabled])', 'select:not([disabled])', '[tabindex]:not([tabindex^="-"])' 2603 ]; 2604 2605 if (this.options.init) this.initPopups(); 2606 } 2607 2608 initPopups() { 2609 this.eventsPopup(); 2610 } 2611 2612 eventsPopup() { 2613 document.addEventListener("click", (e) => { 2614 const openButton = e.target.closest(`[${this.options.attributeOpenButton}]`); 2615 if (openButton) { 2616 e.preventDefault(); 2617 const popupSelector = openButton.getAttribute(this.options.attributeOpenButton); 2618 const vkId = openButton.getAttribute(this.vkAttribute); 2619 2620 if (popupSelector) { 2621 this.targetOpen.selector = popupSelector; 2622 this.targetOpen.element = document.querySelector(this.targetOpen.selector); 2623 2624 if (this.targetOpen.element) { 2625 this._updateVkContent(vkId); 2626 this.open(); 2627 } 2628 } 2629 return; 2630 } 2631 2632 const closeButton = e.target.closest(`[${this.options.attributeCloseButton}]`); 2633 if (closeButton || (!e.target.closest(`.${this.options.classes.popupContent}`) && this.isOpen)) { 2634 e.preventDefault(); 2635 this.close(); 2636 } 2637 }); 2638 2639 document.addEventListener("keydown", (e) => { 2640 if (this.options.closeEsc && e.key === "Escape" && this.isOpen) { 2641 e.preventDefault(); 2642 this.close(); 2643 } 2644 if (this.options.focusCatch && e.key === "Tab" && this.isOpen) { 2645 this._focusCatch(e); 2646 } 2647 }); 2648 } 2649 2650 _updateVkContent(vkId) { 2651 const vkPlace = this.targetOpen.element.querySelector(`[${this.vkPlaceAttribute}]`); 2652 if (vkPlace) { 2653 vkPlace.innerHTML = ''; 2654 if (vkId) { 2655 const [oid, id] = vkId.split('_'); 2656 const iframe = document.createElement('iframe'); 2657 iframe.src = `https://vk.com/video_ext.php?oid=${oid}&id=${id}&autoplay=1`; 2658 iframe.width = "640"; 2659 iframe.height = "360"; 2660 iframe.frameBorder = "0"; 2661 iframe.allow = "autoplay; encrypted-media"; 2662 iframe.allowFullscreen = true; 2663 vkPlace.appendChild(iframe); 2664 } 2665 } 2666 } 2667 2668 open() { 2669 this.options.on.beforeOpen(this); 2670 this.targetOpen.element.classList.add(this.options.classes.popupActive); 2671 document.documentElement.classList.add(this.options.classes.bodyActive); 2672 2673 if (this.targetOpen.selector && this.targetOpen.selector.includes('thanks')) { 2674 document.documentElement.classList.add(this.options.classes.thanksLock); 2675 } 2676 2677 if (this.options.bodyLock) { 2678 bodyLock(); 2679 } 2680 2681 this.isOpen = true; 2682 2683 setTimeout(() => { 2684 this._focusTrap(); 2685 }, 50); 2686 2687 this.options.on.afterOpen(this); 2688 } 2689 2690 close() { 2691 this.options.on.beforeClose(this); 2692 if (this.targetOpen.element) { 2693 this.targetOpen.element.classList.remove(this.options.classes.popupActive); 2694 } 2695 2696 document.documentElement.classList.remove(this.options.classes.bodyActive); 2697 2698 if (this.targetOpen.selector && this.targetOpen.selector.includes('thanks')) { 2699 document.documentElement.classList.remove(this.options.classes.thanksLock); 2700 } 2701 2702 if (this.options.bodyLock) { 2703 bodyUnlock(); 2704 } 2705 2706 const vkPlace = this.targetOpen.element?.querySelector(`[${this.vkPlaceAttribute}]`); 2707 if (vkPlace) { 2708 vkPlace.innerHTML = ''; 2709 } 2710 2711 this.isOpen = false;
2712 this.options.on.afterClose(this); 2713 } 2714 2715 _focusCatch(e) { 2716 const focusable = this.targetOpen.element.querySelectorAll(this._focusEl); 2717 const index = Array.prototype.indexOf.call(focusable, document.activeElement); 2718 2719 if (e.shiftKey && index === 0) { 2720 focusable[focusable.length - 1].focus(); 2721 e.preventDefault(); 2722 } else if (!e.shiftKey && index === focusable.length - 1) { 2723 focusable[0].focus(); 2724 e.preventDefault(); 2725 } 2726 } 2727 2728 _focusTrap() { 2729 const focusable = this.targetOpen.element.querySelectorAll(this._focusEl); 2730 if (focusable.length) focusable[0].focus(); 2731 } 2732} 2733 2734function setFormSending(form, on) { 2735 const btn = form.querySelector('[type="submit"]'); 2736 if (!btn) { 2737 return; 2738 } 2739 btn.classList.toggle('_sending', !!on); 2740 btn.disabled = !!on; 2741} 2742 2743function showFormAjaxError(form, message) { 2744 let box = form.querySelector('[data-form-error]'); 2745 if (!box) { 2746 box = document.createElement('div'); 2747 box.setAttribute('data-form-error', ''); 2748 box.className = 'order__left-form-error'; 2749 const submitBtn = form.querySelector('[type="submit"]'); 2750 submitBtn ? submitBtn.before(box) : form.appendChild(box); 2751 } 2752 box.textContent = message || ''; 2753 box.hidden = !message; 2754} 2755 2756async function parseAjaxJson(response) { 2757 const text = await response.text(); 2758 try { 2759 return JSON.parse(text); 2760 } catch (e) { 2761 const match = text.match(/\{[\s\S]*\}/); 2762 if (match) { 2763 try { 2764 return JSON.parse(match[0]); 2765 } catch (e2) {} 2766 } 2767 return null; 2768 } 2769} 2770 2771function formSubmit() { 2772 const forms = document.forms; 2773 if (forms.length) { 2774 for (const form of forms) { 2775 // ÐÑклÑÑаем ÑоÑÐ¼Ñ Ñ Ð¿Ð¾Ð»ÐµÐ¼ WEB_FORM_ID (Bitrix ÑоÑмÑ) 2776 if (form.querySelector('input[name="WEB_FORM_ID"]')) { 2777 continue; 2778 } 2779 2780 // ÐÑклÑÑаем Bitrix ÑоÑÐ¼Ñ Ð¿Ð¾ клаÑÑÑ 2781 if (form.classList.contains('product__modal-form')) { 2782 continue; 2783 } 2784 2785 if (!form.classList.contains('notajax')) { 2786 form.addEventListener('submit', function (e) { 2787 e.preventDefault(); 2788 if (formValidate(form)) { 2789 formSubmitAction(form); 2790 } else { 2791 showFormAjaxError(form, 'ÐаполниÑе обÑзаÑелÑнÑе Ð¿Ð¾Ð»Ñ Ð¸ подÑвеÑдиÑе ÑоглаÑие.'); 2792 } 2793 }); 2794 } 2795 } 2796 } 2797 2798 async function formSubmitAction(form) { 2799 const popupContent = form.closest('.popup')?.querySelector('.popup__content'); 2800 popupContent?.classList.add('_sending'); 2801 showFormAjaxError(form, ''); 2802 2803 const ajax = form.hasAttribute('data-ajax'); 2804 if (ajax) { 2805 setFormSending(form, true); 2806 // ÐолÑÑаем Ñокен reCAPTCHA пеÑед оÑпÑавкой 2807 const recaptchaField = form.querySelector('input[name="g-recaptcha-response"]'); 2808 2809 if (recaptchaField && typeof grecaptcha !== 'undefined') { 2810 try { 2811 const publicKey = window.GOOGLE_RECAPTCHA_PUBLIC_KEY || ''; 2812 const tokenPromise = new Promise((resolve, reject) => { 2813 grecaptcha.ready(() => { 2814 if (!publicKey) { 2815 resolve(''); 2816 return; 2817 } 2818 grecaptcha.execute(publicKey, { action: 'submit' }).then(resolve).catch(reject); 2819 }); 2820 }); 2821 const recaptchaToken = await Promise.race([ 2822 tokenPromise, 2823 new Promise((_, reject) => setTimeout(() => reject(new Error('timeout')), 8000)) 2824 ]); 2825 if (recaptchaToken) { 2826 recaptchaField.value = recaptchaToken; 2827 } 2828 } catch (error) { 2829 console.warn('ÐÑибка полÑÑÐµÐ½Ð¸Ñ Ñокена reCAPTCHA:', error); 2830 showFormAjaxError(form, 'Ðе ÑдалоÑÑ Ð¿ÑойÑи пÑовеÑÐºÑ reCAPTCHA. ÐбновиÑе ÑÑÑаниÑÑ Ð¸ попÑобÑйÑе Ñнова.'); 2831 popupContent?.classList.remove('_sending'); 2832 setFormSending(form, false); 2833 return; 2834 } 2835 } 2836 2837 const formAction = form.getAttribute('action') ? form.getAttribute('action').trim() : '#'; 2838 const formMethod = form.getAttribute('method') ? form.getAttribute('method').trim() : 'GET'; 2839 const formData = new FormData(form); 2840 2841 try { 2842 const response = await fetch(formAction, { 2843 method: formMethod, 2844 body: formData 2845 }); 2846 const responseData = await parseAjaxJson(response); 2847 2848 if (response.ok && responseData && responseData.status !== 'error') { 2849 popupContent?.classList.remove('_sending'); 2850 setFormSending(form, false); 2851 form.reset(); 2852 formSent(form); 2853 return; 2854 } 2855 2856 showFormAjaxError(form, (responseData && responseData.message) || 'ÐÑибка оÑпÑавки даннÑÑ .'); 2857 popupContent?.classList.remove('_sending'); 2858 setFormSending(form, false); 2859 } catch (error) { 2860 showFormAjaxError(form, 'ÐÑибка оÑпÑавки даннÑÑ .'); 2861 popupContent?.classList.remove('_sending'); 2862 setFormSending(form, false); 2863 } 2864 } else if (form.hasAttribute('data-dev')) { 2865 popupContent?.classList.remove('_sending'); 2866 formSent(form); 2867 } else if (form.hasAttribute('data-no_ajax')) { 2868 form.submit(); 2869 } 2870 } 2871 2872 function formSent(form) { 2873 document.dispatchEvent(new CustomEvent("formSent", { 2874 detail: { 2875 form: form 2876 } 2877 })); 2878 2879 const popupSelector = form.dataset.popupMessage; 2880 2881 if (popupSelector) { 2882 if (popup.isOpen) { 2883 popup.close(); 2884 } 2885 2886 popup.targetOpen.selector = popupSelector; 2887 popup.targetOpen.element = document.querySelector(popupSelector); 2888 popup.open(); 2889 } 2890 2891 form.reset(); 2892 } 2893 2894 document.addEventListener('formSent', (event) => { 2895 const form = event.detail.form; 2896 if (form) { 2897 const fileNameDisplays = form.querySelectorAll('[data-name-file]'); 2898 fileNameDisplays.forEach(fileNameDisplay => { 2899 fileNameDisplay.innerHTML = ''; 2900 fileNameDisplay.classList.remove('_with-content'); 2901 }); 2902 2903 const fileInputs = form.querySelectorAll('[data-btn-download]');
2904 fileInputs.forEach(fileInput => { 2905 fileInput.value = ''; // СбÑÐ¾Ñ Ð¿Ð¾Ð»Ñ Ð²Ð²Ð¾Ð´Ð° Ñайла 2906 }); 2907 } 2908 }); 2909} 2910 2911function formValidate(form) { 2912 let isValid = true; 2913 2914 const requiredInputs = form.querySelectorAll('input[data-required], textarea[data-required]'); 2915 requiredInputs?.forEach(input => { 2916 if (!input.value.trim()) { 2917 input.classList.add('_error'); 2918 isValid = false; 2919 } else { 2920 input.classList.remove('_error'); 2921 } 2922 }); 2923 2924 const checkboxes = form.querySelectorAll('[data-agreement-checkbox], .product__modal-checkbox input[type="checkbox"]'); 2925 checkboxes?.forEach(checkbox => { 2926 if (!checkbox.checked) { 2927 checkbox.classList.add('_error'); 2928 isValid = false; 2929 } else { 2930 checkbox.classList.remove('_error'); 2931 } 2932 }); 2933 2934 return isValid; 2935} 2936 2937document.addEventListener('submit', (event) => { 2938 const form = event.target; 2939 if (!form || form.tagName !== 'FORM') { 2940 return; 2941 } 2942 const checkboxes = form.querySelectorAll('[data-agreement-checkbox], .product__modal-checkbox input[type="checkbox"]'); 2943 let invalid = false; 2944 checkboxes.forEach((checkbox) => { 2945 checkbox.required = false; 2946 if (!checkbox.checked) { 2947 checkbox.classList.add('_error'); 2948 invalid = true; 2949 } else { 2950 checkbox.classList.remove('_error'); 2951 } 2952 }); 2953 if (invalid) { 2954 event.preventDefault(); 2955 event.stopImmediatePropagation(); 2956 showFormAjaxError(form, 'ÐодÑвеÑдиÑе ÑоглаÑие на обÑабоÑÐºÑ Ð¿ÐµÑÑоналÑнÑÑ Ð´Ð°Ð½Ð½ÑÑ .'); 2957 } 2958}, true); 2959 2960document.addEventListener('change', (event) => { 2961 const checkbox = event.target; 2962 if (checkbox && checkbox.matches('[data-agreement-checkbox], .product__modal-checkbox input[type="checkbox"]') && checkbox.checked) { 2963 checkbox.classList.remove('_error'); 2964 } 2965}); 2966 2967document.addEventListener('DOMContentLoaded', () => { 2968 const inputs = document.querySelectorAll('input[data-required], textarea[data-required]'); 2969 inputs?.forEach(input => { 2970 input.addEventListener('input', () => { 2971 if (input.value.trim()) { 2972 input.classList.remove('_error'); 2973 } 2974 }); 2975 }); 2976 2977 const checkboxes = document.querySelectorAll('[data-agreement-checkbox]'); 2978 checkboxes?.forEach(checkbox => { 2979 checkbox.addEventListener('change', () => { 2980 if (checkbox.checked) { 2981 checkbox.classList.remove('_error'); 2982 } 2983 }); 2984 }); 2985 2986 if (document.forms.length > 0) { 2987 formSubmit(); 2988 } 2989}); 2990 2991const popup = new Popup(); 2992window.popup = popup; 2993 2994 2995// class Popup { 2996// constructor(options = {}) { 2997// this.vkAttribute = 'data-popup-vk'; 2998// this.vkPlaceAttribute = 'data-popup-vk-place'; 2999// const defaultConfig = { 3000// logging: true, 3001// init: true, 3002// attributeOpenButton: 'data-popup', 3003// attributeCloseButton: 'data-close', 3004// fixElementSelector: '[data-lp]', 3005// youtubeAttribute: 'data-popup-youtube', 3006// youtubePlaceAttribute: 'data-popup-youtube-place', 3007// setAutoplayYoutube: true, 3008// classes: { 3009// popup: 'popup', 3010// popupContent: 'popup__content', 3011// popupActive: 'popup_show', 3012// bodyActive: 'popup-show', 3013// }, 3014// focusCatch: true, 3015// closeEsc: true, 3016// bodyLock: true, 3017// hashSettings: { 3018// location: true, 3019// goHash: true, 3020// }, 3021// on: { 3022// beforeOpen: () => {}, 3023// afterOpen: () => {}, 3024// beforeClose: () => {}, 3025// afterClose: () => {}, 3026// }, 3027// }; 3028 3029// this.options = { 3030// ...defaultConfig, 3031// ...options, 3032// classes: { ...defaultConfig.classes, ...options?.classes }, 3033// hashSettings: { ...defaultConfig.hashSettings, ...options?.hashSettings }, 3034// }; 3035 3036// this.isOpen = false;
3037// this.targetOpen = { selector: false, element: null }; 3038// this.previousOpen = { selector: false, element: null }; 3039// this.lastClosed = { selector: false, element: null }; 3040// this.lastFocusEl = null; 3041// this.bodyLock = false; 3042 3043// this._focusEl = [ 3044// 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 3045// 'textarea:not([disabled])', 'select:not([disabled])', '[tabindex]:not([tabindex^="-"])' 3046// ]; 3047 3048// if (this.options.init) this.initPopups(); 3049// } 3050 3051// initPopups() { 3052// this.eventsPopup(); 3053// } 3054 3055// eventsPopup() { 3056// document.addEventListener("click", (e) => { 3057// const openButton = e.target.closest(`[${this.options.attributeOpenButton}]`); 3058// if (openButton) { 3059// e.preventDefault(); 3060// const popupSelector = openButton.getAttribute(this.options.attributeOpenButton); 3061// const vkId = openButton.getAttribute(this.vkAttribute); // ÐолÑÑаем VK ID 3062 3063// if (popupSelector) { 3064// this.targetOpen.selector = popupSelector; 3065// this.targetOpen.element = document.querySelector(this.targetOpen.selector); 3066 3067// if (this.targetOpen.element) { 3068// this._updateVkContent(vkId); // ÐбновлÑем ÑодеÑжимое попапа пеÑед оÑкÑÑÑием 3069// this.open(); 3070// } 3071// } 3072// return; 3073// } 3074 3075// const closeButton = e.target.closest(`[${this.options.attributeCloseButton}]`); 3076// if (closeButton || (!e.target.closest(`.${this.options.classes.popupContent}`) && this.isOpen)) { 3077// e.preventDefault(); 3078// this.close(); 3079// } 3080// }); 3081 3082// document.addEventListener("keydown", (e) => { 3083// if (this.options.closeEsc && e.key === "Escape" && this.isOpen) { 3084// e.preventDefault(); 3085// this.close(); 3086// } 3087// if (this.options.focusCatch && e.key === "Tab" && this.isOpen) { 3088// this._focusCatch(e); 3089// } 3090// }); 3091// } 3092 3093// _updateVkContent(vkId) { 3094// const vkPlace = this.targetOpen.element.querySelector(`[${this.vkPlaceAttribute}]`); 3095// if (vkPlace) { 3096// vkPlace.innerHTML = ''; 3097// if (vkId) { 3098// const [oid, id] = vkId.split('_'); 3099// const iframe = document.createElement('iframe'); 3100// iframe.src = `https://vk.com/video_ext.php?oid=${oid}&id=${id}&autoplay=1`; 3101// iframe.width = "640"; 3102// iframe.height = "360"; 3103// iframe.frameBorder = "0"; 3104// iframe.allow = "autoplay; encrypted-media"; 3105// iframe.allowFullscreen = true; 3106// vkPlace.appendChild(iframe); 3107// } 3108// } 3109// } 3110 3111// open() { 3112// this.options.on.beforeOpen(this); 3113// this.targetOpen.element.classList.add(this.options.classes.popupActive); 3114// document.documentElement.classList.add(this.options.classes.bodyActive); 3115 3116// if (this.options.bodyLock) { 3117// bodyLock(); 3118// } 3119 3120// this.isOpen = true; 3121 3122// setTimeout(() => { 3123// this._focusTrap(); 3124// }, 50); 3125 3126// this.options.on.afterOpen(this); 3127// } 3128 3129// close() { 3130// this.options.on.beforeClose(this); 3131// this.targetOpen.element.classList.remove(this.options.classes.popupActive); 3132// document.documentElement.classList.remove(this.options.classes.bodyActive); 3133 3134// if (this.options.bodyLock) { 3135// bodyUnlock(); 3136// } 3137 3138// const vkPlace = this.targetOpen.element.querySelector(`[${this.vkPlaceAttribute}]`); 3139// if (vkPlace) { 3140// vkPlace.innerHTML = ''; 3141// } 3142 3143// this.isOpen = false; 3144// this.options.on.afterClose(this); 3145// } 3146 3147// _focusCatch(e) { 3148// const focusable = this.targetOpen.element.querySelectorAll(this._focusEl); 3149// const index = Array.prototype.indexOf.call(focusable, document.activeElement); 3150 3151// if (e.shiftKey && index === 0) {
3152// focusable[focusable.length - 1].focus(); 3153// e.preventDefault(); 3154// } else if (!e.shiftKey && index === focusable.length - 1) { 3155// focusable[0].focus(); 3156// e.preventDefault(); 3157// } 3158// } 3159 3160// _focusTrap() { 3161// const focusable = this.targetOpen.element.querySelectorAll(this._focusEl); 3162// if (focusable.length) focusable[0].focus(); 3163// } 3164// } 3165 3166// const popup = new Popup(); 3167 3168 3169 3170//====== СбÑÐ¾Ñ ÑлеменÑов ÑоÑм ================================================================================================================================================== 3171 3172function resetFormFields(form) { 3173 if (!form) return; 3174 3175 const inputs = form.querySelectorAll('input'); 3176 inputs.forEach(input => { 3177 if (input.matches('[data-agreement-checkbox], .product__modal-checkbox input[type="checkbox"]')) { 3178 input.checked = false; 3179 } else if (input.type === 'checkbox' || input.type === 'radio') { 3180 const group = form.querySelectorAll(`input[name="${input.name}"]`); 3181 if (group.length > 0) { 3182 group[0].checked = true; 3183 } 3184 } else { 3185 input.value = ''; 3186 } 3187 }); 3188 3189 const selects = form.querySelectorAll('select'); 3190 selects.forEach(select => { 3191 select.selectedIndex = 0; 3192 const defaultValue = select.dataset.default || ''; 3193 3194 const customSelect = select.nextElementSibling; 3195 if (customSelect && customSelect.classList.contains('select__item')) { 3196 const valueElement = customSelect.querySelector('.select__value span'); 3197 const options = customSelect.querySelectorAll('.select__option'); 3198 3199 valueElement.textContent = select.options[0].textContent; 3200 3201 options.forEach(option => { 3202 option.style.display = option.dataset.value === '' ? 'none' : 'grid'; 3203 }); 3204 } 3205 }); 3206 3207 const errorFields = form.querySelectorAll('.error'); 3208 errorFields.forEach(field => field.classList.remove('error')); 3209} 3210 3211document.addEventListener('click', event => { 3212 const button = event.target.closest('[data-reset-fields]'); 3213 if (button) { 3214 const form = button.closest('form'); 3215 resetFormFields(form); 3216 } 3217}); 3218 3219 3220 3221//===== da ================================================================================================================================================== 3222 3223class DynamicAdapt { 3224 constructor(type) { 3225 this.type = type 3226 } 3227 init() { 3228 // маÑÑив обÑекÑов 3229 this.оbjects = [] 3230 this.daClassname = '_dynamic_adapt_' 3231 // маÑÑив ÑлеменÑов DOM 3232 this.nodes = [...document.querySelectorAll('[data-da]')] 3233 3234 // наполнение objects обÑекÑами 3235 this.nodes.forEach((node) => { 3236 const data = node.dataset.da.trim() 3237 const dataArray = data.split(',') 3238 const оbject = {} 3239 оbject.element = node 3240 оbject.parent = node.parentNode 3241 оbject.destination = document.querySelector(`${dataArray[0].trim()}`) 3242 оbject.breakpoint = dataArray[1] ? dataArray[1].trim() : '767' 3243 оbject.place = dataArray[2] ? dataArray[2].trim() : 'last' 3244 оbject.index = this.indexInParent(оbject.parent, оbject.element) 3245 this.оbjects.push(оbject) 3246 }) 3247 3248 this.arraySort(this.оbjects) 3249 3250 // маÑÑив ÑникалÑнÑÑ Ð¼ÐµÐ´Ð¸Ð°-запÑоÑов 3251 this.mediaQueries = this.оbjects 3252 .map(({ breakpoint }) => `(${this.type}-width: ${breakpoint}px),${breakpoint}`) 3253 .filter((item, index, self) => self.indexOf(item) === index) 3254 3255 // навеÑивание ÑлÑÑаÑÐµÐ»Ñ Ð½Ð° медиа-запÑÐ¾Ñ 3256 // и вÑзов обÑабоÑÑика пÑи пеÑвом запÑÑке 3257 this.mediaQueries.forEach((media) => { 3258 const mediaSplit = media.split(',') 3259 const matchMedia = window.matchMedia(mediaSplit[0]) 3260 const mediaBreakpoint = mediaSplit[1] 3261 3262 // маÑÑив обÑекÑов Ñ ÑооÑвеÑÑÑвÑÑÑим бÑейкпоинÑом 3263 const оbjectsFilter = this.оbjects.filter(({ breakpoint }) => breakpoint === mediaBreakpoint) 3264 matchMedia.addEventListener('change', () => { 3265 this.mediaHandler(matchMedia, оbjectsFilter) 3266 }) 3267 this.mediaHandler(matchMedia, оbjectsFilter) 3268 }) 3269 } 3270 // ÐÑÐ½Ð¾Ð²Ð½Ð°Ñ ÑÑнкÑÐ¸Ñ 3271 mediaHandler(matchMedia, оbjects) { 3272 if (matchMedia.matches) {
3273 оbjects.forEach((оbject) => { 3274 // оbject.index = this.indexInParent(оbject.parent, оbject.element); 3275 this.moveTo(оbject.place, оbject.element, оbject.destination) 3276 }) 3277 } else { 3278 оbjects.forEach(({ parent, element, index }) => { 3279 if (element.classList.contains(this.daClassname)) { 3280 this.moveBack(parent, element, index) 3281 } 3282 }) 3283 } 3284 } 3285 // ФÑнкÑÐ¸Ñ Ð¿ÐµÑемеÑÐµÐ½Ð¸Ñ 3286 moveTo(place, element, destination) { 3287 element.classList.add(this.daClassname) 3288 if (place === 'last' || place >= destination.children.length) { 3289 destination.append(element) 3290 return 3291 } 3292 if (place === 'first') { 3293 destination.prepend(element) 3294 return 3295 } 3296 destination.children[place].before(element) 3297 } 3298 // ФÑнкÑÐ¸Ñ Ð²Ð¾Ð·Ð²ÑаÑа 3299 moveBack(parent, element, index) { 3300 element.classList.remove(this.daClassname) 3301 if (parent.children[index] !== undefined) { 3302 parent.children[index].before(element) 3303 } else { 3304 parent.append(element) 3305 } 3306 } 3307 // ФÑнкÑÐ¸Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ Ð¸Ð½Ð´ÐµÐºÑа внÑÑÑи ÑодиÑелÑÑкого ÑлеменÑа 3308 indexInParent(parent, element) { 3309 return [...parent.children].indexOf(element) 3310 } 3311 // ФÑнкÑÐ¸Ñ ÑоÑÑиÑовки маÑÑива по breakpoint и place 3312 // по возÑаÑÑÐ°Ð½Ð¸Ñ Ð´Ð»Ñ this.type = min 3313 // по ÑбÑÐ²Ð°Ð½Ð¸Ñ Ð´Ð»Ñ this.type = max 3314 arraySort(arr) { 3315 if (this.type === 'min') { 3316 arr.sort((a, b) => { 3317 if (a.breakpoint === b.breakpoint) { 3318 if (a.place === b.place) { 3319 return 0 3320 } 3321 if (a.place === 'first' || b.place === 'last') { 3322 return -1 3323 } 3324 if (a.place === 'last' || b.place === 'first') { 3325 return 1 3326 } 3327 return 0 3328 } 3329 return a.breakpoint - b.breakpoint 3330 }) 3331 } else { 3332 arr.sort((a, b) => { 3333 if (a.breakpoint === b.breakpoint) { 3334 if (a.place === b.place) { 3335 return 0 3336 } 3337 if (a.place === 'first' || b.place === 'last') { 3338 return 1 3339 } 3340 if (a.place === 'last' || b.place === 'first') { 3341 return -1 3342 } 3343 return 0 3344 } 3345 return b.breakpoint - a.breakpoint 3346 }) 3347 return 3348 } 3349 } 3350} 3351const da = new DynamicAdapt("max"); 3352da.init(); 3353 3354//==== quantity ==================================================================================================================================================== 3355 3356document.addEventListener('DOMContentLoaded', () => { 3357 const quantityElements = document.querySelectorAll('[data-quantity]'); 3358 3359 quantityElements.forEach(quantity => { 3360 const prevButton = quantity.querySelector('[data-quantity-prev]'); 3361 const nextButton = quantity.querySelector('[data-quantity-next]'); 3362 const numberDisplay = quantity.querySelector('[data-quantity-number]'); 3363
3364 if (!prevButton || !nextButton || !numberDisplay) { 3365 console.warn('ÐекоÑоÑÑе ÑлеменÑÑ Ð´Ð»Ñ Ð±Ð»Ð¾ÐºÐ° quantity оÑÑÑÑÑÑвÑÑÑ'); 3366 return; 3367 } 3368 3369 let currentValue = parseInt(numberDisplay.textContent, 10) || 1; 3370 3371 prevButton.addEventListener('click', () => { 3372 if (currentValue > 1) { 3373 currentValue--; 3374 numberDisplay.textContent = currentValue; 3375 } 3376 }); 3377 3378 nextButton.addEventListener('click', () => { 3379 if (currentValue < 9) { 3380 currentValue++; 3381 numberDisplay.textContent = currentValue; 3382 } 3383 }); 3384 }); 3385}); 3386 3387//==== open table ==================================================================================================================================================== 3388 3389document.addEventListener('DOMContentLoaded', () => { 3390 const searchAnalogueElements = document.querySelectorAll('[data-search-analogue]'); 3391 3392 if (searchAnalogueElements.length > 0) { 3393 searchAnalogueElements.forEach(element => { 3394 element.addEventListener('click', () => { 3395 const parentBlock = element.closest('[data-search-analogue-block]'); 3396 3397 if (parentBlock) { 3398 parentBlock.classList.add('_open-table'); 3399 } 3400 }); 3401 }); 3402 } 3403}); 3404 3405 3406//======= ÐобавиÑÑ ÑÑаÑÑника ================================================================================================================================================= 3407 3408const addParticipantButtons = document.querySelectorAll('[data-add-participant]'); 3409const participantBlocks = document.querySelectorAll('[data-participant-block]'); 3410 3411function activate_participant() { 3412 document.addEventListener('DOMContentLoaded', function() { 3413 // ÐÑполÑзÑем делегиÑование ÑобÑÑий Ð´Ð»Ñ Ð´Ð¸Ð½Ð°Ð¼Ð¸ÑеÑÐºÐ¸Ñ ÑлеменÑов 3414 document.addEventListener('click', function(e) { 3415 // ÐÑовеÑÑем, ÑÑо клик бÑл по наÑÐµÐ¼Ñ Ð±Ð»Ð¾ÐºÑ Ð¸Ð»Ð¸ его ÑодеÑÐ¶Ð¸Ð¼Ð¾Ð¼Ñ 3416 const removeBlock = e.target.closest('.remove_participant'); 3417 3418 if (removeBlock) { 3419 // ÐÐ°Ñ Ð¾Ð´Ð¸Ð¼ два пÑедÑдÑÑÐ¸Ñ ÑлеменÑа 3420 const prevElement1 = removeBlock.previousElementSibling; 3421 const prevElement2 = prevElement1 ? prevElement1.previousElementSibling : null; 3422 3423 // УдалÑем ÑлеменÑÑ, еÑли они ÑÑÑеÑÑвÑÑÑ 3424 if (prevElement2) prevElement2.remove(); 3425 if (prevElement1) prevElement1.remove(); 3426 3427 // УдалÑем Ñам блок 3428 removeBlock.remove(); 3429 } 3430 }); 3431 }); 3432} 3433 3434if (addParticipantButtons.length > 0 && participantBlocks.length > 0) { 3435 activate_participant(); 3436 addParticipantButtons.forEach((button) => { 3437 button.addEventListener('click', (event) => { 3438 const participantBlock = button.closest('.form-training__line-top')?.querySelector('[data-participant-block]'); 3439 3440 if (participantBlock) { 3441 if (event.target.closest('[data-add-participant]')) { 3442 3443 const nameBlock = document.createElement('div'); 3444 nameBlock.className = 'form-training__item item-params-calc'; 3445 nameBlock.setAttribute('data-participant-name', ''); 3446 nameBlock.innerHTML = ` 3447 <div class="item-params-calc__name">ФÐÐ</div> 3448 <div class="item-params-calc__input-wrap"> 3449 <input data-required autocomplete="off" type="text" name="full-name" placeholder="ÐведиÑе знаÑение" class="item-params-calc__input input"> 3450 </div>`; 3451 3452 const postBlock = document.createElement('div'); 3453 postBlock.className = 'form-training__item item-params-calc'; 3454 postBlock.setAttribute('data-participant-post', ''); 3455 postBlock.innerHTML = ` 3456 <div class="item-params-calc__name">ÐолжноÑÑÑ</div> 3457 <div class="item-params-calc__input-wrap"> 3458 <input data-required autocomplete="off" type="text" name="post" placeholder="ÐведиÑе знаÑение" class="item-params-calc__input input"> 3459 </div>`; 3460 3461 const closeBlock = document.createElement('div'); 3462 closeBlock.className = 'form-training__item item-params-calc remove_participant'; 3463 closeBlock.innerHTML = `
3464 <svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"> 3465 <circle cx="13.5" cy="13.5" r="13.5" fill="#D3D3D3"/> 3466 <path d="M9 9L18 18M18 9L9 18" stroke="white" stroke-linecap="round"/> 3467 </svg>`; 3468 3469 participantBlock.appendChild(nameBlock); 3470 participantBlock.appendChild(postBlock); 3471 participantBlock.appendChild(closeBlock); 3472 3473 3474 /*document.querySelectorAll('.remove_participant:not(.active)').forEach(element => { 3475 element.classList.add('active'); 3476 element.addEventListener("click", (event) => { 3477 event.preventDefault(); 3478 3479 nameBlock.remove(); 3480 postBlock.remove(); 3481 closeBlock.remove(); 3482 }); 3483 });*/ 3484 3485 } 3486 } 3487 }); 3488 }); 3489} 3490 3491//====== ÐаÑка tel ================================================================================================================================================== 3492 3493document.addEventListener('DOMContentLoaded', () => { 3494 const phoneInputs = document.querySelectorAll('input[name="tel"]'); 3495 const form = document.querySelector('form'); 3496 3497 if (phoneInputs.length > 0) { 3498 phoneInputs.forEach(input => { 3499 Inputmask({ 3500 mask: '+7 (999) 999-99-99', 3501 placeholder: '_', 3502 clearMaskOnLostFocus: true, 3503 }).mask(input); 3504 3505 input.addEventListener('input', () => { 3506 if (input.inputmask && input.inputmask.unmaskedvalue().length === 10) { 3507 input.setCustomValidity(''); 3508 } else { 3509 input.setCustomValidity('ÐведиÑе Ð½Ð¾Ð¼ÐµÑ ÑелеÑона полноÑÑÑÑ'); 3510 } 3511 }); 3512 }); 3513 } 3514 3515 if (form) { 3516 form.addEventListener('submit', (event) => { 3517 const invalidInputs = document.querySelectorAll('input[name="tel"]:invalid'); 3518 if (invalidInputs.length > 0) { 3519 event.preventDefault(); 3520 alert('ÐожалÑйÑÑа, иÑпÑавÑÑе оÑибки в ÑоÑме.'); 3521 } 3522 }); 3523 } 3524}); 3525 3526//========== ÐалендаÑÑ ============================================================================================================================================== 3527 3528if (document.querySelector('[data-datepicker]')) { 3529 const picker = datepicker('[data-datepicker]', { 3530 customDays: ["Ðн", "ÐÑ", "СÑ", "ЧÑ", "ÐÑ", "Сб", "ÐÑ"], 3531 customMonths: ["Янв", "Фев", "ÐаÑÑ", "ÐпÑ", "Ðай", "ÐÑнÑ", "ÐÑлÑ", "Ðвг", "СенÑ", "ÐкÑ", "ÐоÑ", "Ðек"], 3532 overlayButton: 'ÐÑименÑÑÑ', 3533 overlayPlaceholder: 'Ðод (4 ÑиÑÑÑ)', 3534 startDay: 1, 3535 formatter: (input, date, instance) => { 3536 const value = date.toLocaleDateString() 3537 input.value = value; 3538 }, 3539 onSelect: function (input, instance, date) { 3540 } 3541 }); 3542} 3543 3544//===== Ðазвание загÑÑженного Ñайла =================================================================================================================================================== 3545 3546document.addEventListener('DOMContentLoaded', () => { 3547 const fileInputs = document.querySelectorAll('[data-btn-download]'); 3548 3549 if (fileInputs.length > 0) { 3550 fileInputs.forEach((fileInput) => { 3551 const fileNameDisplay = document.querySelector(`[data-name-file="${fileInput.dataset.btnDownload}"]`); 3552 3553 if (fileNameDisplay) { 3554 const updateContentClass = () => { 3555 if (fileNameDisplay.children.length > 0) { 3556 fileNameDisplay.classList.add('_with-content'); 3557 } else { 3558 fileNameDisplay.classList.remove('_with-content'); 3559 } 3560 }; 3561 3562 fileInput.addEventListener('change', (event) => { 3563 const files = event.target.files; 3564 fileNameDisplay.innerHTML = ''; 3565 3566 if (files.length > 0) {
3567 Array.from(files).forEach((file) => { 3568 const fileNameSpan = document.createElement('span'); 3569 fileNameSpan.textContent = `${file.name}`; 3570 fileNameDisplay.appendChild(fileNameSpan); 3571 }); 3572 } 3573 3574 updateContentClass(); 3575 }); 3576 3577 updateContentClass(); 3578 } 3579 }); 3580 } 3581}); 3582 3583 3584//=========== ÐÑпÑавка ÑоÑÐ¼Ñ ============================================================================================================================================= 3585 3586// function formSubmit() { 3587// const forms = document.forms; 3588 3589// if (forms.length) { 3590// for (const form of forms) { 3591// form.addEventListener('submit', function (e) { 3592// e.preventDefault(); 3593// if (formValidate(form)) { 3594// formSubmitAction(form); 3595// } 3596// }); 3597// } 3598// } 3599 3600// async function formSubmitAction(form) { 3601// const popupContent = form.closest('.popup')?.querySelector('.popup__content'); 3602// popupContent?.classList.add('_sending'); 3603 3604// const ajax = form.hasAttribute('data-ajax'); 3605// if (ajax) { 3606// const formAction = form.getAttribute('action') ? form.getAttribute('action').trim() : '#'; 3607// const formMethod = form.getAttribute('method') ? form.getAttribute('method').trim() : 'GET'; 3608// const formData = new FormData(form); 3609 3610// try { 3611// const response = await fetch(formAction, { 3612// method: formMethod, 3613// body: formData 3614// }); 3615 3616// if (response.ok) { 3617// popupContent?.classList.remove('_sending'); 3618// form.reset(); 3619// formSent(form); 3620// } 3621// } catch (error) { 3622// alert('ÐÑибка оÑпÑавки даннÑÑ .'); 3623// } 3624// } else if (form.hasAttribute('data-dev')) { 3625// popupContent?.classList.remove('_sending'); 3626// formSent(form); 3627// } 3628// } 3629 3630// function formSent(form) { 3631// document.dispatchEvent(new CustomEvent("formSent", { 3632// detail: { 3633// form: form 3634// } 3635// })); 3636 3637// const popupSelector = form.dataset.popupMessage; 3638// const currentPopup = form.closest('.popup'); 3639 3640// if (popupSelector) { 3641// if (currentPopup && typeof popup?.close === 'function') { 3642// popup.close(currentPopup); // ÐакÑÑваем ÑекÑÑий попап 3643// } 3644// if (typeof popup?.open === 'function') { 3645// popup.open(popupSelector); // ÐÑкÑÑваем вÑоÑой попап 3646// } 3647// } 3648 3649// form.reset(); 3650// } 3651// } 3652 3653// function formValidate(form) { 3654// let isValid = true; 3655 3656// // ÐÑовеÑка вÑÐµÑ Ð¾Ð±ÑзаÑелÑнÑÑ Ð¸Ð½Ð¿ÑÑов внÑÑÑи ÑоÑÐ¼Ñ 3657// const requiredInputs = form.querySelectorAll('input[data-required], textarea[data-required]'); 3658// requiredInputs?.forEach(input => { 3659// if (!input.value.trim()) { 3660// input.classList.add('_error'); 3661// isValid = false; 3662// } else { 3663// input.classList.remove('_error'); 3664// } 3665// }); 3666 3667// // ÐÑовеÑка вÑÐµÑ ÑекбокÑов data-agreement-checkbox внÑÑÑи ÑоÑÐ¼Ñ 3668// const checkboxes = form.querySelectorAll('[data-agreement-checkbox]'); 3669// checkboxes?.forEach(checkbox => { 3670// if (!checkbox.checked) { 3671// checkbox.classList.add('_error'); 3672// isValid = false; 3673// } else { 3674// checkbox.classList.remove('_error'); 3675// } 3676// }); 3677 3678// return isValid; 3679// } 3680 3681// document.addEventListener('DOMContentLoaded', () => { 3682// // УдалÑем оÑÐ¸Ð±ÐºÑ Ð¿Ñи вводе ÑекÑÑа в обÑзаÑелÑнÑе Ð¿Ð¾Ð»Ñ 3683// const inputs = document.querySelectorAll('input[data-required], textarea[data-required]'); 3684// inputs?.forEach(input => { 3685// input.addEventListener('input', () => { 3686// if (input.value.trim()) { 3687// input.classList.remove('_error'); 3688// } 3689// }); 3690// }); 3691 3692// // УдалÑем оÑÐ¸Ð±ÐºÑ Ð¿Ñи изменении ÑоÑÑоÑÐ½Ð¸Ñ ÑекбокÑов 3693// const checkboxes = document.querySelectorAll('[data-agreement-checkbox]'); 3694// checkboxes?.forEach(checkbox => { 3695// checkbox.addEventListener('change', () => { 3696// if (checkbox.checked) { 3697// checkbox.classList.remove('_error'); 3698// } 3699// }); 3700// }); 3701 3702// // ÐниÑиализаÑÐ¸Ñ ÑоÑм 3703// const formsExist = document.forms.length > 0; 3704// if (formsExist) { 3705// formSubmit(); 3706// } 3707// }); 3708 3709 3710 3711 3712//======= Ðидео из VK ================================================================================================================================================= 3713 3714document.addEventListener("DOMContentLoaded", () => {
3715 const videoButtons = document.querySelectorAll("[data-video-btn]"); 3716 3717 if (!videoButtons.length) { 3718 return; 3719 } 3720 3721 videoButtons.forEach((button) => { 3722 button.addEventListener("click", () => { 3723 const videoLink = button.getAttribute("data-video-link"); 3724 if (!videoLink) { 3725 return; 3726 } 3727 3728 const videoContainer = button.closest("[data-video-inner]"); 3729 const videoBlock = button.closest("[data-video]"); 3730 3731 if (!videoContainer) { 3732 return; 3733 } 3734 3735 if (!videoBlock) { 3736 return; 3737 } 3738 3739 if (videoContainer.querySelector("iframe")) { 3740 return; 3741 } 3742 3743 const iframe = document.createElement("iframe"); 3744 iframe.src = videoLink; 3745 iframe.allow = "autoplay; encrypted-media"; 3746 iframe.allowFullscreen = true; 3747 iframe.style.width = "100%"; 3748 iframe.style.height = "100%"; 3749 3750 videoContainer.innerHTML = ""; 3751 3752 videoBlock.classList.add("_video-playing"); 3753 3754 videoContainer.appendChild(iframe); 3755 }); 3756 }); 3757}); 3758 3759//========== ÐÐ¾Ð´Ð¼ÐµÐ½Ñ ============================================================================================================================================== 3760 3761document.addEventListener("DOMContentLoaded", () => { 3762 const titleMenu = document.querySelectorAll("[data-menu-title]"); 3763 const submenu = document.querySelectorAll("[data-submenu]"); 3764 const submenuChangeCity = document.querySelector("[data-submenu-change-city]"); 3765 3766 if (titleMenu.length === 0 || submenu.length === 0) { 3767 return; 3768 } 3769 3770 // Ðогика Ð´Ð»Ñ Ð¾ÑкÑÑÑиÑ/закÑÑÑÐ¸Ñ submenu 3771 titleMenu.forEach((cityBlock, index) => { 3772 const textBlock = submenu[index]; 3773 if (!textBlock) { 3774 return; 3775 } 3776 3777 cityBlock.addEventListener("click", (event) => { 3778 event.stopPropagation(); 3779 3780 // ÐÑовеÑÑем, еÑÑÑ Ð»Ð¸ оÑкÑÑÑÑе submenu или submenuChangeCity 3781 const anySubmenuOpen = Array.from(submenu).some((block) => block.classList.contains("_visible")) || 3782 (submenuChangeCity && submenuChangeCity.classList.contains("_visible")); 3783 if (anySubmenuOpen) { 3784 return; // Ðе оÑкÑÑваем новое submenu, еÑли какое-либо Ñже оÑкÑÑÑо 3785 } 3786 3787 textBlock.classList.toggle("_visible"); 3788 }); 3789 }); 3790 3791 // Ðогика Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿Ð¾Ðº внÑÑÑи submenu 3792 submenu.forEach((textBlock) => { 3793 const yesButton = textBlock.querySelector("[data-submenu-yes]"); 3794 const noButton = textBlock.querySelector("[data-submenu-no]"); 3795 3796 if (yesButton) { 3797 yesButton.addEventListener("click", (event) => { 3798 event.stopPropagation(); 3799 textBlock.classList.remove("_visible"); 3800 }); 3801 } 3802 3803 if (noButton) { 3804 noButton.addEventListener("click", (event) => { 3805 event.stopPropagation(); 3806 textBlock.classList.remove("_visible"); 3807 if (submenuChangeCity) { 3808 submenuChangeCity.classList.add("_visible"); 3809 } 3810 }); 3811 } 3812 }); 3813 3814 // ÐакÑÑÑие submenu и submenuChangeCity пÑи клике вне Ð¸Ñ Ð¾Ð±Ð»Ð°ÑÑи 3815 document.addEventListener("click", (event) => { 3816 submenu.forEach((textBlock) => { 3817 if (textBlock.classList.contains("_visible") && !textBlock.contains(event.target)) { 3818 textBlock.classList.remove("_visible"); 3819 } 3820 }); 3821 3822 if ( 3823 submenuChangeCity && 3824 submenuChangeCity.classList.contains("_visible") && 3825 !submenuChangeCity.contains(event.target) 3826 ) { 3827 submenuChangeCity.classList.remove("_visible"); 3828 } 3829 }); 3830}); 3831 3832 3833//=========== ФилÑÑÑÑ Ð² каÑалоге ============================================================================================================================================= 3834 3835/* 3836document.addEventListener('DOMContentLoaded', () => { 3837 const checkboxes = document.querySelectorAll('.category__filter-item input[type="checkbox"]'); 3838
3839 checkboxes.forEach(checkbox => { 3840 checkbox.addEventListener('change', handleFilterChange); 3841 }); 3842 3843 function handleFilterChange() { 3844 const selectedFilters = Array.from(checkboxes) 3845 .filter(checkbox => checkbox.checked) 3846 .map(checkbox => checkbox.id); 3847 3848 fetch('/your-api-endpoint', { 3849 method: 'POST', 3850 headers: { 3851 'Content-Type': 'application/json', 3852 }, 3853 body: JSON.stringify({ filters: selectedFilters }), 3854 }) 3855 .then(response => response.json()) 3856 .then(data => { 3857 updateContent(data); 3858 }) 3859 .catch(error => { 3860 console.error('ÐÑибка пÑи обÑабоÑке ÑилÑÑÑов:', error); 3861 }); 3862 } 3863 3864 function updateContent(data) { 3865 const contentContainer = document.querySelector('#content-container'); 3866 if (contentContainer) { 3867 contentContainer.innerHTML = ''; 3868 data.forEach(item => { 3869 const itemElement = document.createElement('div'); 3870 itemElement.className = 'content-item'; 3871 itemElement.textContent = item.name; 3872 contentContainer.appendChild(itemElement); 3873 }); 3874 } 3875 } 3876}); 3877 3878*/ 3879//========= ÐоказаÑÑ ÐµÑе =============================================================================================================================================== 3880 3881document.addEventListener("DOMContentLoaded", () => { 3882 const container = document.getElementById("category-container");
3883 const loadMoreButton = document.getElementById("load-more"); 3884 3885 // ÐÑовеÑÑем налиÑие конÑейнеÑа и кнопки пеÑед вÑполнением опеÑаÑий 3886 if (!container || !loadMoreButton) { 3887 return; 3888 } 3889 3890 let currentIndex = 0; 3891 const initialLoad = 8; // ÐолиÑеÑÑво каÑÑоÑек Ð´Ð»Ñ Ð½Ð°ÑалÑной загÑÑзки 3892 const itemsPerPage = 4; // ÐолиÑеÑÑво каÑÑоÑек Ð´Ð»Ñ Ð¿Ð¾ÑледÑÑÑÐ¸Ñ Ð·Ð°Ð³ÑÑзок 3893 3894 function createCard(item) { 3895 let cardTemplate = ""; 3896 3897 cardTemplate += `<div class="list-item mini-cart category-item">`; 3898 3899 // Тег 3900 if (item.tag) { 3901 cardTemplate += `<span class="item-tag">${item.tag}</span>`; 3902 } 3903 3904 // ÐзобÑажение 3905 if (item.image) { 3906 cardTemplate += ` 3907 <a href="#" class="mini-cart__image"> 3908 <img class="mini-cart__img" src="${item.image}" alt=""> 3909 </a> 3910 `; 3911 } 3912 3913 // Ðазвание 3914 if (item.name) { 3915 cardTemplate += `<a href="#" class="mini-cart__name font16-700-mob">${item.name}</a>`; 3916 } 3917 3918 // Ðлок ÑÐµÐ½Ñ Ð¸ аÑÑикÑла 3919 cardTemplate += `<div class="mini-cart__bot">`; 3920 if (item.price) { 3921 cardTemplate += `<p class="mini-cart__price">${item.price}</p>`; 3922 } 3923 if (item.art) { 3924 cardTemplate += `<p class="mini-cart__art">ÐÑÑикÑл: ${item.art}</p>`; 3925 } 3926 cardTemplate += `</div>`; 3927 3928 // Ðнопки 3929 cardTemplate += `<div class="mini-cart__btns">`; 3930 3931 // СÑеÑÑики 3932 cardTemplate += `<div class="mini-cart_btns-item">`; 3933 cardTemplate += ` 3934 <button class="mini-cart__input btn btn-decrement"> 3935 <svg width="16" height="2" viewBox="0 0 16 2" fill="none" xmlns="http://www.w3.org/2000/svg"> 3936 <line x1="0" y1="1.1" x2="16" y2="1.1" stroke="#354E9E" stroke-width="1.8"></line> 3937 </svg> 3938 </button> 3939 `; 3940 cardTemplate += `<input type="number" class="mini-cart__input num" value="1" min="1">`; 3941 cardTemplate += ` 3942 <button class="mini-cart__input btn btn-increment"> 3943 <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 3944 <line x1="0" y1="7.5" x2="16" y2="7.5" stroke="#354E9E" stroke-width="1.8"></line> 3945 <line x1="8.5" y1="0" x2="8.5" y2="16" stroke="#354E9E" stroke-width="1.8"></line> 3946 </svg> 3947 </button> 3948 `; 3949 cardTemplate += `</div>`; 3950 3951 // Ðнопка Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð² коÑÐ·Ð¸Ð½Ñ 3952 cardTemplate += `<div class="mini-cart_btns-add-cart">`; 3953 cardTemplate += ` 3954 <button type="button" class="mini-cart__add-cart bg-blue"> 3955 <svg width="22" height="23" viewBox="0 0 22 23" fill="none" xmlns="http://www.w3.org/2000/svg"> 3956 <path d="M10.7534 8.80602H12.8377V5.6268H15.966V3.5061H12.8377V0.323242H10.7534V3.50246H7.62506V5.62316H10.7534M6.58472 18.3437C5.43889 18.3437 4.5004 19.2967 4.5004 20.4644C4.5004 21.632 5.43889 22.5851 6.58472 22.5851C7.73055 22.5851 8.66904 21.632 8.66904 20.4644C8.66904 19.2967 7.73055 18.3437 6.58472 18.3437ZM17.0099 18.3437C15.8641 18.3437 14.9256 19.2967 14.9256 20.4644C14.9256 21.632 15.8641 22.5851 17.0099 22.5851C18.1558 22.5851 19.0943 21.632 19.0943 20.4644C19.0943 19.2967 18.1558 18.3437 17.0099 18.3437ZM6.79206 14.9498V14.8444L7.73055 13.0438H15.4458C16.1769 13.0438 16.9045 12.6182 17.2173 11.9852L21.2841 4.56463L19.5126 3.5061L15.4458 10.9267H8.14887L3.76925 1.38177H0.328125V3.50246H2.41244L6.1664 11.5596L4.70774 14.1023C4.60225 14.4188 4.5004 14.7389 4.5004 15.1608C4.5004 16.3285 5.43889 17.2815 6.58472 17.2815H19.0943V15.1608H6.9994C6.89391 15.1608 6.79206 15.0553 6.79206 14.9498Z" fill="white"></path> 3957 </svg> 3958 </button> 3959 `; 3960 cardTemplate += `</div>`; 3961 3962 cardTemplate += `</div></div>`; // ÐакÑÑваем кнопки и каÑÑоÑÐºÑ 3963 return cardTemplate; 3964 } 3965 3966 async function loadCards(loadCount = itemsPerPage) { 3967 try { 3968 const response = await fetch("data.json"); 3969 const data = await response.json(); 3970 const itemsToShow = data.slice(currentIndex, currentIndex + loadCount); 3971 3972 itemsToShow.forEach(item => { 3973 container.insertAdjacentHTML("beforeend", createCard(item)); 3974 }); 3975 3976 currentIndex += loadCount; 3977 3978 if (currentIndex >= data.length) {
3979 loadMoreButton.style.display = "none"; 3980 } 3981 3982 initializeCounters(); 3983 } catch (error) { 3984 console.error("ÐÑибка загÑÑзки даннÑÑ :", error); 3985 } 3986 } 3987 3988 function initializeCounters() { 3989 const newDecrementButtons = container.querySelectorAll(".btn-decrement:not(.initialized)"); 3990 const newIncrementButtons = container.querySelectorAll(".btn-increment:not(.initialized)"); 3991 3992 newDecrementButtons.forEach(button => { 3993 button.classList.add("initialized"); 3994 button.addEventListener("click", (e) => { 3995 const input = e.target.closest(".mini-cart_btns-item").querySelector(".num"); 3996 const currentValue = parseInt(input.value, 10) || 0; 3997 if (currentValue > 1) { 3998 //input.value = currentValue - 1; 3999 } 4000 }); 4001 }); 4002 4003 newIncrementButtons.forEach(button => { 4004 button.classList.add("initialized"); 4005 button.addEventListener("click", (e) => { 4006 const input = e.target.closest(".mini-cart_btns-item").querySelector(".num"); 4007 const currentValue = parseInt(input.value, 10) || 0; 4008 //input.value = currentValue + 1; 4009 }); 4010 }); 4011 } 4012 4013 loadMoreButton.addEventListener("click", () => loadCards()); 4014 loadCards(initialLoad); 4015}); 4016 4017 4018//======================================================================================================================================================== 4019 4020document.addEventListener('DOMContentLoaded', function () { 4021 // Ð²Ð¸Ð´Ð¶ÐµÑ "ÐеловÑе линии" 4022 const businessLinesWidgets = document.querySelectorAll('.widget-business-lines'); 4023 if (businessLinesWidgets.length > 0) { 4024 businessLinesWidgets.forEach(widget => { 4025 const iframeBusinessLines = document.createElement('iframe'); 4026 iframeBusinessLines.align = "left"; 4027 iframeBusinessLines.src = "https://widgets.dellin.ru/calculator/?derival_to_door=on&arrival_to_door=off&disabled_calculation=off&insurance=0&package=1"; 4028 iframeBusinessLines.width = "100%"; 4029 iframeBusinessLines.height = "390"; 4030 iframeBusinessLines.scrolling = "no"; 4031 iframeBusinessLines.frameBorder = "0"; 4032 4033 const updateHeight = () => { 4034 if (window.innerWidth <= 991.98) { 4035 iframeBusinessLines.height = "365"; 4036 } else { 4037 iframeBusinessLines.height = "390"; 4038 } 4039 }; 4040 4041 updateHeight(); 4042 4043 window.addEventListener('resize', updateHeight); 4044 4045 widget.appendChild(iframeBusinessLines); 4046 }); 4047 } 4048 4049 // Ð²Ð¸Ð´Ð¶ÐµÑ "ÐÐÐ" 4050 const pekWidgets = document.querySelectorAll('.widget-pek'); 4051 if (pekWidgets.length > 0) { 4052 pekWidgets.forEach(widget => { 4053 const iframePek = document.createElement('iframe'); 4054 iframePek.allowTransparency = "true"; 4055 iframePek.frameBorder = "0"; 4056 iframePek.width = "250px"; 4057 iframePek.height = "345"; 4058 iframePek.scrolling = "no"; 4059 iframePek.style.border = "1px solid #ededed"; 4060 iframePek.src = "https://pecom.ru/ru/newcalc/"; 4061 widget.appendChild(iframePek); 4062 }); 4063 } 4064 4065 // Ð²Ð¸Ð´Ð¶ÐµÑ "CDEK" 4066 const cdekWidgets = document.querySelectorAll('.cdek'); 4067 if (cdekWidgets.length > 0) { 4068 cdekWidgets.forEach(widget => { 4069 const iframeCdek = document.createElement('iframe'); 4070 iframeCdek.id = "cdek-calc"; 4071 iframeCdek.src = "https://cdek-online.ru/construct_form.php"; 4072 iframeCdek.scrolling = "no"; 4073 iframeCdek.frameBorder = "0"; 4074 iframeCdek.height = "375"; 4075 iframeCdek.width = "300"; 4076 widget.appendChild(iframeCdek); 4077 }); 4078 } 4079}); 4080 4081 4082 4083//======================================================================================================================================================== 4084 4085document.addEventListener("DOMContentLoaded", () => { 4086 const dropdowns = document.querySelectorAll("[data-dropdown-toggle]"); 4087 4088 dropdowns.forEach((dropdown) => { 4089 const dropdownToggle = dropdown; 4090 const dropdownContainer = dropdown.closest(".dropdown"); 4091 const dropdownList = dropdownContainer?.querySelector("[data-dropdown-list]"); 4092 const dropdownArrow = dropdownContainer?.querySelector("[data-dropdown-arrow]"); 4093 const dropdownItems = dropdownContainer?.querySelectorAll(".dropdown-item"); 4094 const tabs = document.querySelectorAll(".tabs-info-cart__body"); 4095 4096 if (!dropdownList || !dropdownItems || !dropdownArrow || !tabs) return; 4097 4098 const activeItem = dropdownContainer.querySelector(".dropdown-item[data-active]"); 4099 if (activeItem) { 4100 activateItem(activeItem.dataset.value); 4101 dropdownToggle.textContent = activeItem.textContent; 4102 dropdownToggle.appendChild(dropdownArrow); 4103 } 4104 4105 function activateItem(value) {
4106 dropdownItems.forEach((item) => { 4107 item.classList.toggle("active", item.dataset.value === value); 4108 }); 4109 4110 tabs.forEach((tab) => { 4111 tab.classList.toggle("active", tab.dataset.dropdown === value); 4112 }); 4113 } 4114 4115 dropdownToggle.addEventListener("click", () => { 4116 dropdownList.classList.toggle("active"); 4117 }); 4118 4119 dropdownItems.forEach((item) => { 4120 item.addEventListener("click", (event) => { 4121 const value = event.target.dataset.value; 4122 activateItem(value); 4123 dropdownToggle.textContent = event.target.textContent; 4124 dropdownToggle.appendChild(dropdownArrow); 4125 dropdownList.classList.remove("active"); 4126 }); 4127 }); 4128 4129 document.addEventListener("click", (event) => { 4130 if (!event.target.closest(".dropdown")) { 4131 dropdownList.classList.remove("active"); 4132 } 4133 }); 4134 }); 4135 }); 4136 4137 4138 4139/* End */ 4140; 4141; /* Start:"a:4:{s:4:"full";s:52:"/local/templates/ezetek/js/custom.js?178842119013489";s:6:"source";s:36:"/local/templates/ezetek/js/custom.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 4142$(document).ready(function() { 4143 function refreshHeaderBasketCounter() { 4144 if (window.BX && BX.onCustomEvent) { 4145 BX.onCustomEvent(window, 'OnBasketChange'); 4146 } 4147 for (var key in window) { 4148 if (!Object.prototype.hasOwnProperty.call(window, key)) continue; 4149 if (!/^bx_basket/.test(key)) continue; 4150 var basket = window[key]; 4151 if (basket && typeof basket.refreshCart === 'function') { 4152 basket.refreshCart({}); 4153 } 4154 } 4155 } 4156 4157 // ÐобавлÑем обÑабоÑÑик ÑобÑÑÐ¸Ñ ÐºÐ»Ð¸ÐºÐ° на ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ ÐºÐ»Ð°ÑÑом custom-label 4158 $('.custom-label').on('click', function() { 4159 // УÑÑанавливаем задеÑÐ¶ÐºÑ Ð² 1,5 ÑекÑÐ½Ð´Ñ (1500 миллиÑекÑнд) 4160 setTimeout(function() { 4161 // ÐмиÑиÑÑем клик по ÑлеменÑÑ Ñ id set_filter 4162 $('#set_filter').click(); 4163 }, 1500); // 1500 миллиÑекÑнд 4164 }); 4165 function refreshBasketHeaderFromPage() { 4166 refreshHeaderBasketCounter(); 4167 $.ajax({ 4168 type: 'get', 4169 url: location.pathname, 4170 dataType: 'html', 4171 success: function(data){ 4172 var $doc = $(data); 4173 $('.bx-basket').each(function (i) { 4174 var $src = $doc.find('.bx-basket').eq(i); 4175 var h = $src.find('.header__btn-count').html(); 4176 if (h !== undefined) { 4177 $(this).find('.header__btn-count').html(h); 4178 } 4179 var dc = $src.find('.button-round[data-count]').attr('data-count'); 4180 if (dc !== undefined) { 4181 $(this).find('.button-round[data-count]').attr('data-count', dc); 4182 } 4183 }); 4184 setTimeout(refreshHeaderBasketCounter, 120); 4185 setTimeout(refreshHeaderBasketCounter, 450); 4186 } 4187 }); 4188 } 4189 4190 $(document).on('click', '.body-selection__custom-table .circle-cart',function(e) { 4191 e.preventDefault(); 4192 var quantity = $(this).parents('tr').find('[data-quantity-number]').text(); 4193 var id = $(this).parents('tr').attr('data-id'); 4194 var url = $(this).parents('tr').find('a[href]').attr('href'); 4195 $.ajax({ 4196 type: 'POST', 4197 url: url + '?action=ADD2BASKET&id='+id, 4198 data: { 4199 ajax_basket: 'Y', 4200 quantity: quantity, 4201 "prop[0]": '0' 4202 } 4203 }).done(refreshBasketHeaderFromPage); 4204 }); 4205 4206 function syncProductOfferTitle($root) { 4207 var name = $root.find('.product-offers__select option:selected').text(); 4208 if (!name) { 4209 return; 4210 } 4211 $root.closest('.mini-cart, .list-item, .card-product, .product__item, [data-entity="item"]') 4212 .find('.mini-cart__name, .card-product-title, .product__item-title') 4213 .first() 4214 .text(name); 4215 } 4216 4217 function initProductOffersSelects(root) { 4218 if (typeof select_init !== 'function') { 4219 return; 4220 } 4221 var nodes = (root || document).querySelectorAll('.product-offers__select'); 4222 for (var i = 0; i < nodes.length; i++) { 4223 if (nodes[i].closest('.select')) { 4224 continue; 4225 } 4226 select_init(nodes[i]); 4227 } 4228 $(root || document).find('.product-offers').each(function() { 4229 syncProductOfferTitle($(this)); 4230 }); 4231 } 4232 4233 initProductOffersSelects(); 4234 if (window.BX && BX.addCustomEvent) { 4235 BX.addCustomEvent('onAjaxSuccess', function() { 4236 initProductOffersSelects(); 4237 }); 4238 } 4239 4240 $(document).on('change', '.product-offers__select', function() { 4241 var $select = $(this); 4242 var $root = $select.closest('.product-offers'); 4243 var $option = $select.find('option:selected'); 4244 var article = $option.attr('data-article') || ''; 4245 var price = $option.attr('data-price') || ''; 4246 var minQty = parseFloat($option.attr('data-min-qty')) || 1; 4247 var canBuy = $option.attr('data-can-buy') === '1'; 4248 var id = $option.val(); 4249 4250 var $article = $root.find('.product-offers__article'); 4251 if (article) { 4252 $article.text('ÐÑÑ.: ' + article).prop('hidden', false); 4253 } else { 4254 $article.text('').prop('hidden', true); 4255 } 4256 4257 syncProductOfferTitle($root); 4258 4259 var status = $option.attr('data-status') || ''; 4260 var statusIcon = $option.attr('data-status-icon') || ''; 4261 $root.find('.product-offers__status-text').text(status); 4262 if (statusIcon) { 4263 $root.find('.product-offers__status-icon').attr('src', statusIcon); 4264 } 4265 4266 $root.find('.product-offers__price').html($root.hasClass('product-offers--discontinued') ? ' ' : price); 4267 $root.find('.product-offers__controls').attr('data-id', id); 4268 4269 var $input = $root.find('.product-offers__counter-input'); 4270 $input.attr('min', minQty).val(minQty); 4271 4272 var $cart = $root.find('[data-pcard-offer-basket]'); 4273 if (canBuy) { 4274 $cart.prop('hidden', false); 4275 } else { 4276 $cart.prop('hidden', true); 4277 } 4278 }); 4279 4280 $(document).on('click', '.pcard__buy-option [data-pcard-qty], .product-offers [data-
4280pcard-qty]', function(e) { 4281 e.preventDefault(); 4282 var $option = $(this).closest('.pcard__buy-option, .product-offers'); 4283 var $input = $option.find('.pcard__buy-counter-input, .product-offers__counter-input'); 4284 var min = parseFloat($input.attr('min')) || 1; 4285 var delta = parseInt($(this).attr('data-pcard-qty'), 10) || 0; 4286 var value = (parseFloat($input.val()) || min) + delta; 4287 if (value < min) { 4288 value = min; 4289 } 4290 $input.val(value); 4291 }); 4292 4293 $(document).on('click', '[data-pcard-offer-basket]', function(e) { 4294 e.preventDefault(); 4295 var $root = $(this).closest('.pcard__buy-option, .product-offers'); 4296 var id = $root.find('.product-offers__controls').attr('data-id') || $root.attr('data-id'); 4297 if (!id) { 4298 return; 4299 } 4300 var quantity = $root.find('.pcard__buy-counter-input, .product-offers__counter-input').val() || 1; 4301 var basketUrl = $root.attr('data-url') || location.pathname; 4302 $.ajax({ 4303 type: 'POST', 4304 url: basketUrl + (basketUrl.indexOf('?') >= 0 ? '&' : '?') + 'action=ADD2BASKET&id=' + id, 4305 data: { 4306 ajax_basket: 'Y', 4307 quantity: quantity, 4308 'prop[0]': '0' 4309 } 4310 }).done(refreshBasketHeaderFromPage); 4311 }); 4312 4313 $('.bim-search__input').on('keyup', function() { 4314 var value = $(this).val().toLowerCase(); // ÐолÑÑаем знаÑение из Ð¿Ð¾Ð»Ñ Ð²Ð²Ð¾Ð´Ð° 4315 $('.bim-items .bim-item').filter(function() { 4316 // ФилÑÑÑÑем ÑлеменÑÑ Ð¿Ð¾ имени и аÑÑикÑÐ»Ñ 4317 var name = $(this).data('name').toLowerCase(); 4318 var artikul = $(this).data('artikul').toString(); 4319 $(this).toggle(name.includes(value) || artikul.includes(value)); 4320 }); 4321 }); 4322 4323 $('.mod_search').on('click',function(e) { 4324 e.preventDefault(); 4325 $('.show_search').show(); 4326 }); 4327 4328 // СкÑÑваем блок поиÑка пÑи клике вне его, но не пÑи клике на вÑпадаÑÑий ÑпиÑок 4329 $(document).on('click', function(e) { 4330 var $target = $(e.target); 4331 var $showSearch = $('.show_search'); 4332 var $searchDrop = $('.header__search-drop'); 4333 4334 // Ðе ÑкÑÑваем еÑли клик по кнопке оÑкÑÑÑÐ¸Ñ Ð¿Ð¾Ð¸Ñка 4335 if ($target.closest('.mod_search').length > 0) { 4336 return; 4337 } 4338 4339 // Ðе ÑкÑÑваем еÑли клик по ÑÐ°Ð¼Ð¾Ð¼Ñ Ð±Ð»Ð¾ÐºÑ Ð¿Ð¾Ð¸Ñка или его ÑодеÑÐ¶Ð¸Ð¼Ð¾Ð¼Ñ 4340 if ($target.closest('.show_search').length > 0) { 4341 return; 4342 } 4343 4344 // Ðе ÑкÑÑваем еÑли клик по вÑпадаÑÑÐµÐ¼Ñ ÑпиÑÐºÑ ÑезÑлÑÑаÑов 4345 if ($target.closest('.header__search-drop').length > 0) { 4346 return; 4347 } 4348 4349 // СкÑÑваем блок поиÑка 4350 $showSearch.hide(); 4351 }); 4352 4353 $('.has-sub').on('click',function(e) { 4354 if($(this).hasClass('active')) { 4355 return true; 4356 } 4357 4358 e.preventDefault(); 4359 4360 $('.mob-menu__wrapper .sub').removeClass('show'); 4361 $(this).next().toggleClass('show'); 4362 4363 $('.has-sub').removeClass('active'); 4364 $(this).addClass('active'); 4365 4366 if($(this).next().hasClass('show')) { 4367 $('.mob-menu__wrapper').addClass('clicked'); 4368 } 4369 }); 4370 4371 // ФÑнкÑÐ¸Ñ Ð¿ÑовеÑки Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ÑÑи кнопки "ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ" 4372 function checkCollapseButton() { 4373 $('.collapse-toggle').each(function() { 4374 var $button = $(this); 4375 var $textCollapse = $button.siblings('.text-collapse'); 4376 var $textCollapseContent = $textCollapse.find('.text-collapse-content'); 4377 4378 // ÐÑеменно ÑбиÑаем огÑаниÑÐµÐ½Ð¸Ñ Ð´Ð»Ñ Ð¸Ð·Ð¼ÐµÑÐµÐ½Ð¸Ñ Ð¿Ð¾Ð»Ð½Ð¾Ð¹ вÑÑоÑÑ 4379 $textCollapse.removeClass('collapsed'); 4380 $textCollapse.css('height', 'auto'); 4381 4382 var contentHeight = $textCollapseContent[0].scrollHeight; 4383 4384 if (contentHeight <= 182) { 4385 // ÐонÑÐµÐ½Ñ Ð¿Ð¾Ð¼ÐµÑаеÑÑÑ Ð² 182px - ÑкÑÑваем ÐºÐ½Ð¾Ð¿ÐºÑ 4386 $button.hide(); 4387 $textCollapse.removeClass('collapsed'); 4388 $textCollapse.css('height', 'auto'); 4389 } else { 4390 // ÐонÑÐµÐ½Ñ Ð±Ð¾Ð»ÑÑе 182px - показÑваем ÐºÐ½Ð¾Ð¿ÐºÑ Ð¸ ÑвоÑаÑиваем 4391 $button.show(); 4392 $textCollapse.addClass('collapsed'); 4393 $textCollapse.css('height', '182px'); 4394 } 4395 }); 4396 } 4397 4398 // ÐÑовеÑÑем пÑи загÑÑзке ÑÑÑаниÑÑ 4399 checkCollapseButton(); 4400 4401 // ÐбÑабоÑÑик Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ "ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ" 4402 $('.collapse-toggle').on('click', function(e) { 4403 e.preventDefault(); 4404 4405 var $button = $(this); 4406 var $textCollapse = $button.siblings('.text-collapse'); 4407 var $span = $button.find('span'); 4408 4409 if ($textCollapse.hasClass('collapsed')) { 4410 // РаÑкÑÑваем ÑекÑÑ 4411 $textCollapse.removeClass('collapsed'); 4412 var fullHeight = $textCollapse[0].scrollHeight; 4413 $textCollapse.css('height', fullHeight + 'px'); 4414 4415 setTimeout(function() { 4416 $textCollapse.css('height', 'auto'); 4417 }, 300); 4418 4419 $button.removeClass('collapsed'); 4420 $span.text('СвеÑнÑÑÑ'); 4421 } else { 4422 // СвоÑаÑиваем ÑекÑÑ 4423 $textCollapse.css('height', '182px'); 4424 4425 setTimeout(function() { 4426 $textCollapse.addClass('collapsed'); 4427 }, 10); 4428 4429 $button.addClass('collapsed'); 4430 $span.text('ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ'); 4431 } 4432 }); 4433 4434 4435 // new homepage slider 4436 var sliderCreative = new Swiper('.slider-creative', { 4437 grabCursor: true, 4438 speed: 900, 4439 loop: true, 4440 effect: 'creative', 4441 creativeEffect: { 4442 prev: { 4443 shadow: true, 4444 translate: ['-20%', 0, -1], 4445 }, 4446 next: { 4447 translate: ['100%', 0, 0], 4448 }, 4449 shadowPerProgress: true 4450 }, 4451 navigation: { 4452 prevEl: '.slider-btns__item--prev', 4453 nextEl: '.slider-btns__item--next', 4454 }, 4455 }); 4456 4457 4458 // add to cart effect
4459 function addToCartEffect(event) { 4460 var clickCoords = { x: event.clientX, y: event.clientY }; 4461 var dot = document.createElement('div'); 4462 var cart = $('.bx-basket')[0]; 4463 var cartCoords = cart.getBoundingClientRect(); 4464 console.log(cartCoords); 4465 4466 dot.className = 'cart-dot'; 4467 4468 dot.style.left = clickCoords.x + 'px'; 4469 dot.style.top = clickCoords.y + 'px'; 4470 4471 document.body.appendChild(dot); 4472 4473 requestAnimationFrame(function() { 4474 dot.style.left = cartCoords.left + cartCoords.width / 2 + 'px'; 4475 dot.style.top = cartCoords.top + cartCoords.height / 2 + 'px'; 4476 }); 4477 4478 dot.addEventListener('transitionend', () => { 4479 dot.remove(); 4480 }, { once: true }); 4481 } 4482 4483 $(document).on( 4484 'click', 4485 '.mini-cart__add-cart, .product-item-detail-buy-button, .product__item-cart, .body-selection__custom-table .circle-cart', 4486 addToCartEffect 4487 ); 4488 4489 $('.academy-events__list').slick({ 4490 slidesToShow: 3, 4491 responsive: [ 4492 { 4493 breakpoint: 1280, 4494 settings: { 4495 slidesToShow: 2, 4496 }, 4497 }, 4498 { 4499 breakpoint: 768, 4500 settings: { 4501 slidesToShow: 1, 4502 }, 4503 }, 4504 ] 4505 }); 4506 4507 $('body').on('click', '.ez-tabs__button', function() { 4508 $('.academy-events__list').slick('setPosition'); 4509 }); 4510 4511 $('.cards__item-media-slider').slick({ 4512 arrows: false, 4513 dots: true, 4514 }); 4515}); 4516 4517/* End */ 4518; 4519; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/components/arturgolubev/search.title/script.js?17665903309674";s:6:"source";s:54:"/bitrix/components/arturgolubev/search.title/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 4520function JCTitleSearch(arParams) 4521{ 4522 var _this = this; 4523 4524 this.arParams = {
4525 'AJAX_PAGE': arParams.AJAX_PAGE, 4526 'CONTAINER_ID': arParams.CONTAINER_ID, 4527 'INPUT_ID': arParams.INPUT_ID, 4528 'MIN_QUERY_LEN': parseInt(arParams.MIN_QUERY_LEN) 4529 }; 4530 if(arParams.WAIT_IMAGE) 4531 this.arParams.WAIT_IMAGE = arParams.WAIT_IMAGE; 4532 if(arParams.MIN_QUERY_LEN <= 0) 4533 arParams.MIN_QUERY_LEN = 1; 4534 4535 this.cache = []; 4536 this.cache_key = null; 4537 4538 this.startText = ''; 4539 this.running = false; 4540 this.currentRow = -1; 4541 this.RESULT = null; 4542 this.CONTAINER = null; 4543 this.INPUT = null; 4544 this.WAIT = null; 4545 4546 this.ShowResult = function(result) 4547 { 4548 if(BX.type.isString(result)) 4549 { 4550 _this.RESULT.innerHTML = result; 4551 } 4552 4553 _this.RESULT.style.display = _this.RESULT.innerHTML !== '' ? 'block' : 'none'; 4554 var pos = _this.adjustResultNode(); 4555 4556 //adjust left column to be an outline 4557 var res_pos; 4558 var th; 4559 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'title-search-result'}, true); 4560 if(tbl) 4561 { 4562 th = BX.findChild(tbl, {'tag':'th'}, true); 4563 } 4564 4565 if(th) 4566 { 4567 var tbl_pos = BX.pos(tbl); 4568 tbl_pos.width = tbl_pos.right - tbl_pos.left; 4569 4570 var th_pos = BX.pos(th); 4571 th_pos.width = th_pos.right - th_pos.left; 4572 th.style.width = th_pos.width + 'px'; 4573 4574 _this.RESULT.style.width = (pos.width + th_pos.width) + 'px'; 4575 4576 //Move table to left by width of the first column 4577 _this.RESULT.style.left = (pos.left - th_pos.width - 1)+ 'px'; 4578 4579 //Shrink table when it's too wide 4580 if((tbl_pos.width - th_pos.width) > pos.width) 4581 _this.RESULT.style.width = (pos.width + th_pos.width -1) + 'px'; 4582 4583 //Check if table is too wide and shrink result div to it's width 4584 tbl_pos = BX.pos(tbl); 4585 res_pos = BX.pos(_this.RESULT); 4586 if(res_pos.right > tbl_pos.right) 4587 { 4588 _this.RESULT.style.width = (tbl_pos.right - tbl_pos.left) + 'px'; 4589 } 4590 } 4591 4592 var fade; 4593 if(tbl) fade = BX.findChild(_this.RESULT, {'class':'title-search-fader'}, true); 4594 if(fade && th) 4595 { 4596 res_pos = BX.pos(_this.RESULT); 4597 fade.style.left = (res_pos.right - res_pos.left - 18) + 'px'; 4598 fade.style.width = 18 + 'px'; 4599 fade.style.top = 0 + 'px'; 4600 fade.style.height = (res_pos.bottom - res_pos.top) + 'px'; 4601 fade.style.display = 'block'; 4602 } 4603 }; 4604 4605 this.onKeyPress = function(keyCode) 4606 { 4607 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'title-search-result'}, true); 4608 if(!tbl) 4609 return false; 4610 4611 var i; 4612 var cnt = tbl.rows.length; 4613 4614 switch (keyCode) 4615 { 4616 case 27: // escape key - close search div 4617 _this.RESULT.style.display = 'none'; 4618 _this.currentRow = -1; 4619 _this.UnSelectAll(); 4620 return true; 4621 4622 case 40: // down key - navigate down on search results 4623 if(_this.RESULT.style.display == 'none') 4624 _this.RESULT.style.display = 'block'; 4625 4626 var first = -1; 4627 for(i = 0; i < cnt; i++) 4628 { 4629 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 4630 { 4631 if(first == -1) 4632 first = i; 4633 4634 if(_this.currentRow < i) 4635 { 4636 _this.currentRow = i; 4637 break; 4638 } 4639 else if(tbl.rows[i].className == 'title-search-selected') 4640 { 4641 tbl.rows[i].className = ''; 4642 } 4643 } 4644 } 4645 4646 if(i == cnt && _this.currentRow != i) 4647 _this.currentRow = first; 4648 4649 tbl.rows[_this.currentRow].className = 'title-search-selected'; 4650 return true; 4651 4652 case 38: // up key - navigate up on search results 4653 if(_this.RESULT.style.display == 'none') 4654 _this.RESULT.style.display = 'block'; 4655 4656 var last = -1; 4657 for(i = cnt-1; i >= 0; i--) 4658 { 4659 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 4660 { 4661 if(last == -1) 4662 last = i; 4663 4664 if(_this.currentRow > i) 4665 { 4666 _this.currentRow = i; 4667 break; 4668 } 4669 else if(tbl.rows[i].className == 'title-search-selected') 4670 { 4671 tbl.rows[i].className = ''; 4672 } 4673 } 4674 } 4675 4676 if(i < 0 && _this.currentRow != i) 4677 _this.currentRow = last; 4678 4679 tbl.rows[_this.currentRow].className = 'title-search-selected'; 4680 return true; 4681 4682 case 13: // enter key - choose current search result 4683 if(_this.RESULT.style.display == 'block') 4684 { 4685 for(i = 0; i < cnt; i++) 4686 { 4687 if(_this.currentRow == i) 4688 { 4689 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 4690 { 4691 var a = BX.findChild(tbl.rows[i], {'tag':'a'}, true); 4692 if(a) 4693 { 4694 window.location = a.href; 4695 return true; 4696 } 4697 } 4698 } 4699 } 4700 } 4701 return false;
4702 } 4703 4704 return false; 4705 }; 4706 4707 this.onTimeout = function() 4708 { 4709 _this.onChange(function(){ 4710 setTimeout(_this.onTimeout, 500); 4711 }); 4712 }; 4713 4714 this.onChange = function(callback) 4715 { 4716 if (_this.running) 4717 return; 4718 _this.running = true; 4719 4720 if(_this.INPUT.value != _this.oldValue && _this.INPUT.value != _this.startText) 4721 { 4722 _this.oldValue = _this.INPUT.value; 4723 if(_this.INPUT.value.length >= _this.arParams.MIN_QUERY_LEN) 4724 { 4725 _this.cache_key = _this.arParams.INPUT_ID + '|' + _this.INPUT.value; 4726 if(_this.cache[_this.cache_key] == null) 4727 { 4728 if(_this.WAIT) 4729 { 4730 var pos = BX.pos(_this.INPUT); 4731 var height = (pos.bottom - pos.top)-2; 4732 _this.WAIT.style.top = (pos.top+1) + 'px'; 4733 _this.WAIT.style.height = height + 'px'; 4734 _this.WAIT.style.width = height + 'px'; 4735 _this.WAIT.style.left = (pos.right - height + 2) + 'px'; 4736 _this.WAIT.style.display = 'block'; 4737 } 4738 4739 BX.ajax.post( 4740 _this.arParams.AJAX_PAGE, 4741 { 4742 'ajax_call':'y', 4743 'INPUT_ID':_this.arParams.INPUT_ID, 4744 'q':_this.INPUT.value, 4745 'l':_this.arParams.MIN_QUERY_LEN 4746 }, 4747 function(result) 4748 { 4749 _this.cache[_this.cache_key] = result; 4750 _this.ShowResult(result); 4751 _this.currentRow = -1; 4752 _this.EnableMouseEvents(); 4753 if(_this.WAIT) 4754 _this.WAIT.style.display = 'none'; 4755 if (!!callback) 4756 callback(); 4757 _this.running = false; 4758 } 4759 ); 4760 return; 4761 } 4762 else 4763 { 4764 _this.ShowResult(_this.cache[_this.cache_key]); 4765 _this.currentRow = -1; 4766 _this.EnableMouseEvents(); 4767 } 4768 } 4769 else 4770 { 4771 _this.RESULT.style.display = 'none'; 4772 _this.currentRow = -1; 4773 _this.UnSelectAll(); 4774 } 4775 } 4776 if (!!callback) 4777 callback(); 4778 _this.running = false; 4779 }; 4780 4781 this.onScroll = function () 4782 { 4783 if(BX.type.isElementNode(_this.RESULT) 4784 && _this.RESULT.style.display !== "none" 4785 && _this.RESULT.innerHTML !== '' 4786 ) 4787 { 4788 _this.adjustResultNode(); 4789 } 4790 }; 4791 4792 this.UnSelectAll = function() 4793 { 4794 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'title-search-result'}, true); 4795 if(tbl) 4796 { 4797 var cnt = tbl.rows.length; 4798 for(var i = 0; i < cnt; i++) 4799 tbl.rows[i].className = ''; 4800 } 4801 }; 4802 4803 this.EnableMouseEvents = function() 4804 { 4805 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'title-search-result'}, true); 4806 if(tbl) 4807 { 4808 var cnt = tbl.rows.length; 4809 for(var i = 0; i < cnt; i++) 4810 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 4811 { 4812 tbl.rows[i].id = 'row_' + i; 4813 tbl.rows[i].onmouseover = function (e) { 4814 if(_this.currentRow != this.id.substr(4)) 4815 { 4816 _this.UnSelectAll(); 4817 this.className = 'title-search-selected'; 4818 _this.currentRow = this.id.substr(4); 4819 } 4820 }; 4821 tbl.rows[i].onmouseout = function (e) { 4822 this.className = ''; 4823 _this.currentRow = -1; 4824 }; 4825 } 4826 } 4827 }; 4828 4829 this.onFocusLost = function(hide) 4830 { 4831 setTimeout(function(){_this.RESULT.style.display = 'none';}, 250); 4832 }; 4833 4834 this.onFocusGain = function() 4835 { 4836 if(_this.RESULT.innerHTML.length) 4837 _this.ShowResult(); 4838 }; 4839 4840 this.onKeyDown = function(e) 4841 { 4842 if(!e) 4843 e = window.event; 4844 4845 if (_this.RESULT.style.display == 'block') 4846 { 4847 if(_this.onKeyPress(e.keyCode)) 4848 return BX.PreventDefault(e); 4849 } 4850 }; 4851 4852 this.adjustResultNode = function() 4853 { 4854 if(!(BX.type.isElementNode(_this.RESULT) 4855 && BX.type.isElementNode(_this.CONTAINER)) 4856 ) 4857 { 4858 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 4859 } 4860 4861 var pos = BX.pos(_this.CONTAINER); 4862 4863 _this.RESULT.style.position = 'absolute'; 4864 _this.RESULT.style.top = (pos.bottom + 2) + 'px'; 4865 _this.RESULT.style.left = pos.left + 'px'; 4866 _this.RESULT.style.width = pos.width + 'px'; 4867 4868 return pos; 4869 }; 4870 4871 this._onContainerLayoutChange = function() 4872 { 4873 if(BX.type.isElementNode(_this.RESULT) 4874 && _this.RESULT.style.display !== "none" 4875 && _this.RESULT.innerHTML !== '' 4876 ) 4877 { 4878 _this.adjustResultNode(); 4879 } 4880 }; 4881 this.Init = function() 4882 { 4883 this.CONTAINER = document.getElementById(this.arParams.CONTAINER_ID); 4884 BX.addCustomEvent(this.CONTAINER, "OnNodeLayoutChange", this._onContainerLayoutChange); 4885 4886 this.RESULT = document.body.appendChild(document.createElement("DIV")); 4887 this.RESULT.className = 'title-search-result'; 4888 this.INPUT = document.getElementById(this.arParams.INPUT_ID); 4889 this.startText = this.oldValue = this.INPUT.value; 4890 BX.bind(this.INPUT, 'focus', function() {_this.onFocusGain()}); 4891 BX.bind(this.INPUT, 'blur', function() {_this.onFocusLost()}); 4892 this.INPUT.onkeydown = this.onKeyDown; 4893 4894 if(this.arParams.WAIT_IMAGE) 4895 { 4896 this.WAIT = document.body.appendChild(document.createElement("DIV")); 4897 this.WAIT.style.backgroundImage = "url('" + this.arParams.WAIT_IMAGE + "')"; 4898 if(!BX.browser.IsIE()) 4899 this.WAIT.style.backgroundRepeat = 'none'; 4900 this.WAIT.style.display = 'none'; 4901 this.WAIT.style.position = 'absolute'; 4902 this.WAIT.style.zIndex = '1100'; 4903 } 4904 4905 BX.bind(this.INPUT, 'bxchange', function() {_this.onChange()}); 4906 4907 var fixedParent = BX.findParent(this.CONTAINER, BX.is_fixed); 4908 if(BX.type.isElementNode(fixedParent)) 4909 { 4910 BX.bind(window, 'scroll', BX.throttle(this.onScroll, 100, this)); 4911 } 4912 }; 4913 BX.ready(function (){_this.Init(arParams)}); 4914} 4915 4916/* End */ 4917; 4918; /* Start:"a:4:{s:4:"full";
4918s:103:"/local/templates/ezetek/components/arturgolubev/search.title/ws.header.search/script.js?177204504925217";s:6:"source";s:87:"/local/templates/ezetek/components/arturgolubev/search.title/ws.header.search/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 4919function JCTitleSearchAG(arParams) 4920{ 4921 var _this = this; 4922 4923 if(!arParams.POPUP_HISTORY) 4924 arParams.POPUP_HISTORY = 'N'; 4925 4926 if(!arParams.BX_COOKIE_PREFIX) 4927 arParams.BX_COOKIE_PREFIX = 'BITRIX_SM'; 4928 4929 this.arParams = { 4930 'AJAX_PAGE': arParams.AJAX_PAGE, 4931 'CONTAINER_ID': arParams.CONTAINER_ID, 4932 'INPUT_ID': arParams.INPUT_ID, 4933 'POPUP_HISTORY': arParams.POPUP_HISTORY, 4934 'POPUP_HISTORY_TITLE': arParams.POPUP_HISTORY_TITLE, 4935 'PAGE': arParams.PAGE, 4936 'MIN_QUERY_LEN': parseInt(arParams.MIN_QUERY_LEN), 4937 'TRANSLATE_LAYOUT': arParams.TRANSLATE_LAYOUT !== 'N', // Ðо ÑмолÑÐ°Ð½Ð¸Ñ Ð²ÐºÐ»ÑÑено 4938 'SEARCH_MODE_SELECT_ID': arParams.SEARCH_MODE_SELECT_ID || '' 4939 }; 4940 if(arParams.WAIT_IMAGE) 4941 this.arParams.WAIT_IMAGE = arParams.WAIT_IMAGE; 4942 4943 this.elements = { 4944 'clear': null, 4945 'preloader': null, 4946 }; 4947 4948 if(arParams.PRELODER_ID){ 4949 this.elements.preloader = BX(arParams.PRELODER_ID); 4950 } 4951 if(arParams.CLEAR_ID){ 4952 this.elements.clear = BX(arParams.CLEAR_ID); 4953 } 4954 if(arParams.VOICE_ID){ 4955 this.elements.voice = BX(arParams.VOICE_ID); 4956 } 4957 4958 if(arParams.MIN_QUERY_LEN <= 0) 4959 arParams.MIN_QUERY_LEN = 1; 4960 4961 this.cache = []; 4962 this.cache_key = null; 4963 4964 this.startText = ''; 4965 this.running = false; 4966 4967 this.currentRow = -1; 4968 this.RESULT = null; 4969 this.CONTAINER = null; 4970 this.INPUT = null; 4971 this.WAIT = null; 4972 4973 this.ShowResult = function(result) 4974 { 4975 if(BX.type.isString(result)) 4976 { 4977 _this.RESULT.innerHTML = result; 4978 } 4979 4980 _this.RESULT.style.display = _this.RESULT.innerHTML !== '' ? 'flex' : 'none'; 4981 var pos = _this.adjustResultNode(); 4982 4983 // ÐниÑиализиÑÑем Ñеги в ÑезÑлÑÑаÑÐ°Ñ Ð¿Ð¾Ð¸Ñка 4984 _this.initResultTags(); 4985 4986 //adjust left column to be an outline 4987 var res_pos; 4988 var th; 4989 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'header__search-drop'}, true); 4990 if(tbl) 4991 { 4992 th = BX.findChild(tbl, {'tag':'th'}, true); 4993 } 4994 4995 if(th) 4996 { 4997 var tbl_pos = BX.pos(tbl); 4998 tbl_pos.width = tbl_pos.right - tbl_pos.left; 4999 5000 var th_pos = BX.pos(th); 5001 th_pos.width = th_pos.right - th_pos.left; 5002 th.style.width = th_pos.width + 'px'; 5003 5004 _this.RESULT.style.width = (pos.width + th_pos.width) + 'px'; 5005 5006 //Move table to left by width of the first column 5007 _this.RESULT.style.left = (pos.left - th_pos.width - 1)+ 'px'; 5008 5009 //Shrink table when it's too wide 5010 if((tbl_pos.width - th_pos.width) > pos.width) 5011 _this.RESULT.style.width = (pos.width + th_pos.width -1) + 'px'; 5012 5013 //Check if table is too wide and shrink result div to it's width 5014 tbl_pos = BX.pos(tbl); 5015 res_pos = BX.pos(_this.RESULT); 5016 if(res_pos.right > tbl_pos.right) 5017 { 5018 _this.RESULT.style.width = (tbl_pos.right - tbl_pos.left) + 'px'; 5019 } 5020 } 5021 5022 var fade; 5023 if(tbl) fade = BX.findChild(_this.RESULT, {'class':'title-search-fader'}, true); 5024 if(fade && th) 5025 { 5026 res_pos = BX.pos(_this.RESULT); 5027 fade.style.left = (res_pos.right - res_pos.left - 18) + 'px'; 5028 fade.style.width = 18 + 'px'; 5029 fade.style.top = 0 + 'px'; 5030 fade.style.height = (res_pos.bottom - res_pos.top) + 'px'; 5031 fade.style.display = 'block'; 5032 } 5033 }; 5034 5035 this.onKeyPress = function(keyCode) 5036 { 5037 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'header__search-drop'}, true); 5038 if(!tbl) 5039 return false; 5040 5041 var i; 5042 var cnt = tbl.rows.length; 5043 5044 switch (keyCode) 5045 { 5046 case 27: // escape key - close search div 5047 _this.RESULT.style.display = 'none'; 5048 _this.currentRow = -1; 5049 _this.UnSelectAll(); 5050 return true; 5051 5052 case 40: // down key - navigate down on search results 5053 if(_this.RESULT.style.display == 'none') 5054 _this.RESULT.style.display = 'flex'; 5055 5056 var first = -1; 5057 for(i = 0; i < cnt; i++) 5058 { 5059 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 5060 { 5061 if(first == -1) 5062 first = i; 5063 5064 if(_this.currentRow < i) 5065 { 5066 _this.currentRow = i; 5067 break; 5068 } 5069 else if(tbl.rows[i].className == 'title-search-selected') 5070 { 5071 tbl.rows[i].className = ''; 5072 } 5073 } 5074 } 5075 5076 if(i == cnt && _this.currentRow != i) 5077 _this.currentRow = first; 5078 5079 tbl.rows[_this.currentRow].className = 'title-search-selected'; 5080 return true; 5081 5082 case 38: // up key - navigate up on search results 5083 if(_this.RESULT.style.display == 'none') 5084 _this.RESULT.style.display = 'flex'; 5085 5086 var last = -1; 5087 for(i = cnt-1; i >= 0; i--) 5088 { 5089 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 5090 { 5091 if(last == -1) 5092 last = i; 5093 5094 if(_this.currentRow > i) 5095 { 5096 _this.currentRow = i; 5097 break; 5098 } 5099 else if(tbl.rows[i].className == 'title-search-selected') 5100 { 5101 tbl.rows[i].className = ''; 5102 } 5103 } 5104 } 5105 5106 if(i < 0 && _this.currentRow != i) 5107 _this.currentRow = last; 5108 5109 tbl.rows[_this.currentRow].className = 'title-search-selected'; 5110 return true; 5111 5112 case 13: // enter key - choose current search result 5113 if(_this.RESULT.style.display == 'flex') 5114 { 5115 for(i = 0; i < cnt; i++) 5116 { 5117 if(_this.currentRow == i) 5118 { 5119 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 5120 { 5121 var a = BX.findChild(tbl.rows[i], {'tag':'a'}, true); 5122 if(a) 5123 { 5124 window.location = a.href; 5125 return true; 5126 } 5127 } 5128 } 5129 } 5130 } 5131 return false;
5132 } 5133 5134 return false; 5135 }; 5136 5137 this.onTimeout = function() 5138 { 5139 _this.onChange(function(){ 5140 setTimeout(_this.onTimeout, 500); 5141 }); 5142 }; 5143 5144 this.onChange = function(callback) 5145 { 5146 if (_this.running) 5147 return; 5148 if (_this.getSearchMode && _this.getSearchMode() === 'site') 5149 { 5150 if (_this.RESULT) _this.RESULT.style.display = 'none'; 5151 if (!!callback) callback(); 5152 return; 5153 } 5154 5155 _this.checkButtonsVisible(); 5156 5157 _this.running = true; 5158 5159 if(_this.INPUT.value != _this.oldValue && _this.INPUT.value != _this.startText) 5160 { 5161 _this.oldValue = _this.INPUT.value; 5162 if(_this.INPUT.value.length >= _this.arParams.MIN_QUERY_LEN) 5163 { 5164 _this.cache_key = _this.arParams.INPUT_ID + '|' + _this.INPUT.value; 5165 if(_this.cache[_this.cache_key] == null) 5166 { 5167 if(_this.WAIT) 5168 { 5169 var pos = BX.pos(_this.INPUT); 5170 var height = (pos.bottom - pos.top)-2; 5171 _this.WAIT.style.top = (pos.top+1) + 'px'; 5172 _this.WAIT.style.height = height + 'px'; 5173 _this.WAIT.style.width = height + 'px'; 5174 _this.WAIT.style.left = (pos.right - height + 2) + 'px'; 5175 _this.WAIT.style.display = 'block'; 5176 } 5177 5178 if(_this.elements.preloader){ 5179 BX.show(_this.elements.preloader); 5180 } 5181 5182 // console.log('ajax call ' + _this.INPUT.value); 5183 5184 BX.ajax.post( 5185 _this.arParams.AJAX_PAGE, 5186 { 5187 'ajax_call':'y', 5188 'INPUT_ID':_this.arParams.INPUT_ID, 5189 'q':_this.INPUT.value, 5190 'l':_this.arParams.MIN_QUERY_LEN 5191 }, 5192 function(result) 5193 { 5194 _this.cache[_this.cache_key] = result; 5195 _this.ShowResult(result); 5196 _this.currentRow = -1; 5197 _this.EnableMouseEvents(); 5198 if(_this.WAIT) 5199 _this.WAIT.style.display = 'none'; 5200 5201 if(_this.elements.preloader){ 5202 BX.hide(_this.elements.preloader); 5203 } 5204 5205 if (!!callback) 5206 callback(); 5207 _this.running = false; 5208 5209 if(_this.INPUT.value != _this.oldValue) 5210 { 5211 _this.onChange(); 5212 } 5213 } 5214 ); 5215 return; 5216 } 5217 else 5218 { 5219 _this.ShowResult(_this.cache[_this.cache_key]); 5220 _this.currentRow = -1; 5221 _this.EnableMouseEvents(); 5222 } 5223 } 5224 else 5225 { 5226 _this.RESULT.style.display = 'none'; 5227 _this.currentRow = -1; 5228 _this.UnSelectAll(); 5229 } 5230 } 5231 if (!!callback) 5232 callback(); 5233 _this.running = false; 5234 }; 5235 5236 this.onScroll = function () 5237 { 5238 if(BX.type.isElementNode(_this.RESULT) 5239 && _this.RESULT.style.display !== "none" 5240 && _this.RESULT.innerHTML !== '' 5241 ) 5242 { 5243 _this.adjustResultNode(); 5244 } 5245 }; 5246 5247 this.UnSelectAll = function() 5248 { 5249 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'header__search-drop'}, true); 5250 if(tbl) 5251 { 5252 var cnt = tbl.rows.length; 5253 for(var i = 0; i < cnt; i++) 5254 tbl.rows[i].className = ''; 5255 } 5256 }; 5257 5258 this.EnableMouseEvents = function() 5259 { 5260 var tbl = BX.findChild(_this.RESULT, {'tag':'table','class':'header__search-drop'}, true); 5261 if(tbl) 5262 { 5263 var cnt = tbl.rows.length; 5264 for(var i = 0; i < cnt; i++) 5265 if(!BX.findChild(tbl.rows[i], {'class':'title-search-separator'}, true)) 5266 { 5267 tbl.rows[i].id = 'row_' + i; 5268 tbl.rows[i].onmouseover = function (e) { 5269 if(_this.currentRow != this.id.substr(4)) 5270 { 5271 _this.UnSelectAll(); 5272 this.className = 'title-search-selected'; 5273 _this.currentRow = this.id.substr(4); 5274 } 5275 }; 5276 tbl.rows[i].onmouseout = function (e) { 5277 this.className = ''; 5278 _this.currentRow = -1; 5279 }; 5280 } 5281 } 5282 }; 5283 5284 this.onFocusLost = function(hide) 5285 { 5286 setTimeout(function(){_this.RESULT.style.display = 'none';}, 250); 5287 }; 5288 5289 this.onFocusGain = function() 5290 { 5291 if(_this.RESULT.innerHTML.length && _this.INPUT.value.length >= _this.arParams.MIN_QUERY_LEN) 5292 _this.ShowResult(); 5293 else if(_this.arParams.POPUP_HISTORY == 'Y'){ 5294 _this.ShowResult(_this.getHistoryHtml()); 5295 } 5296 }; 5297 5298 this.onKeyDown = function(e) 5299 { 5300 if(!e) 5301 e = window.event; 5302 5303 if (_this.RESULT.style.display == 'flex') 5304 { 5305 if(_this.onKeyPress(e.keyCode)) 5306 return BX.PreventDefault(e); 5307 } 5308 }; 5309 5310 this.adjustResultNode = function() 5311 { 5312 if(!(BX.type.isElementNode(_this.RESULT) 5313 && BX.type.isElementNode(_this.CONTAINER)) 5314 ) 5315 { 5316 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 5317 } 5318 5319 var pos = BX.pos(_this.CONTAINER); 5320 5321 _this.RESULT.style.position = 'absolute'; 5322 _this.RESULT.style.top = (pos.bottom + 2) + 'px'; 5323 _this.RESULT.style.left = pos.left + 'px'; 5324 _this.RESULT.style.width = pos.width + 'px'; 5325 5326 return pos; 5327 }; 5328 5329 this._onContainerLayoutChange = function() 5330 { 5331 if(BX.type.isElementNode(_this.RESULT) 5332 && _this.RESULT.style.display !== "none" 5333 && _this.RESULT.innerHTML !== '' 5334 ) 5335 { 5336 _this.adjustResultNode(); 5337 } 5338 }; 5339 5340 // voice input 5341 this.initVoiceInput = function(){ 5342 if(_this.elements.voice){ 5343 window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition; 5344 if (window.SpeechRecognition) { 5345 _this.elements.voice.classList.add('voice-show'); 5346 5347 _this.voiceRecorderActive = 0; 5348 5349 _this.voiceRecorder = new SpeechRecognition(); 5350 _this.voiceRecorder.interimResults = true; 5351 _this.voiceRecorder.lang = 'ru-RU'; 5352 5353 _this.voiceRecorder.addEventListener("start", function(){ 5354 _this.voiceRecorderActive = 1; 5355 _this.elements.voice.classList.add('active'); 5356 }); 5357 5358 _this.voiceRecorder.addEventListener("end", function(){ 5359 _this.voiceRecorderActive = 0; 5360 _this.elements.voice.classList.remove('active'); 5361 }); 5362 5363 _this.voiceRecorder.addEventListener("result", function(e){ 5364 _this.INPUT.value = e.results[0][0].transcript; 5365 if(e.results[0].isFinal){ 5366 _this.onChange(); 5367 } 5368 }); 5369 5370 _this.voiceRecorder.addEventListener("error", function(e){ 5371 _this.voiceRecorderActive = 0; 5372 _this.elements.voice.classList.remove('active'); 5373 5374 // e.error == 'no-speech' 5375 }); 5376 5377 _this.elements.voice.addEventListener('click', function(){ 5378 if(!_this.voiceRecorderActive){ 5379 _this.voiceRecorder.start(); 5380 }else{ 5381 _this.voiceRecorder.stop(); 5382 } 5383 }); 5384 } 5385 } 5386 }; 5387 5388 // clear 5389 this.initClear = function(){ 5390 if(this.elements.clear){ 5391 this.elements.clear.addEventListener('click', function(){ 5392 _this.INPUT.value = ''; 5393 _this.onChange(); 5394 }); 5395 } 5396 }; 5397
5398 this.getSearchMode = function(){ 5399 var sel = _this.CONTAINER ? _this.CONTAINER.querySelector('select.bar__search-mode') : null; 5400 return (sel && sel.value) ? sel.value : 'catalog'; 5401 }; 5402 5403 this.initSearchModeSwitch = function(){ 5404 if(!_this.CONTAINER) return; 5405 var sel = _this.CONTAINER.querySelector('select.bar__search-mode'); 5406 var form = _this.CONTAINER.querySelector('form.search_form'); 5407 if(!sel || !form) return; 5408 var storageKey = 'ws_header_search_mode'; 5409 var mobileWrap = _this.CONTAINER.querySelector('.bar__search-mode-mobile'); 5410 var mobileOptions = mobileWrap ? mobileWrap.querySelectorAll('.bar__search-mode-mobile-option') : []; 5411 var setActiveMobile = function(value){ 5412 mobileOptions.forEach(function(opt){ 5413 var on = opt.getAttribute('data-value') === value; 5414 opt.classList.toggle('is-active', on); 5415 opt.setAttribute('aria-pressed', on ? 'true' : 'false'); 5416 }); 5417 }; 5418 var applyMode = function(value){ 5419 sel.value = value; 5420 var url = form.getAttribute(value === 'catalog' ? 'data-catalog-url' : 'data-site-url'); 5421 if(url) form.setAttribute('action', url); 5422 if(_this.RESULT) _this.RESULT.style.display = 'none'; 5423 setActiveMobile(value); 5424 }; 5425 try { 5426 var saved = localStorage.getItem(storageKey); 5427 if(saved === 'catalog' || saved === 'site'){ 5428 applyMode(saved); 5429 } else {
5430 setActiveMobile(sel.value); 5431 } 5432 } catch(e) { 5433 setActiveMobile(sel.value); 5434 } 5435 sel.addEventListener('change', function(){ 5436 var value = this.value; 5437 try { localStorage.setItem(storageKey, value); } catch(e) {} 5438 applyMode(value); 5439 }); 5440 mobileOptions.forEach(function(opt){ 5441 opt.addEventListener('click', function(){ 5442 var value = this.getAttribute('data-value'); 5443 try { localStorage.setItem(storageKey, value); } catch(e) {} 5444 applyMode(value); 5445 }); 5446 }); 5447 }; 5448 5449 this.initMobileModeToggle = function(){ 5450 if(!_this.CONTAINER || !_this.INPUT) return; 5451 var blurTimer = null; 5452 _this.INPUT.addEventListener('focus', function(){ 5453 _this.CONTAINER.classList.add('bar__search--mode-open'); 5454 if(blurTimer){ clearTimeout(blurTimer); blurTimer = null; } 5455 }); 5456 _this.INPUT.addEventListener('blur', function(){ 5457 blurTimer = setTimeout(function(){ 5458 if(!_this.CONTAINER.contains(document.activeElement)) 5459 _this.CONTAINER.classList.remove('bar__search--mode-open'); 5460 blurTimer = null; 5461 }, 150); 5462 }); 5463 }; 5464 5465 // ÐниÑиализаÑÐ¸Ñ Ñегов в ÑезÑлÑÑаÑÐ°Ñ Ð¿Ð¾Ð¸Ñка (AJAX) 5466 this.initResultTags = function(){ 5467 var resultTags = _this.RESULT.querySelectorAll('.header__search-tag.js_search_href'); 5468 5469 resultTags.forEach(function(tag){ 5470 // УдалÑем ÑÑаÑÑе обÑабоÑÑики, еÑли они еÑÑÑ 5471 BX.unbindAll(tag); 5472 5473 BX.bind(tag, 'mousedown', function(e){ 5474 e.preventDefault(); 5475 e.stopPropagation(); 5476 }); 5477 5478 BX.bind(tag, 'click', function(e){ 5479 e.preventDefault(); 5480 e.stopPropagation(); 5481 5482 // ÐÑполÑзÑем ÑнивеÑÑалÑнÑÑ ÑÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñега 5483 var tagText = tag.textContent.trim(); 5484 _this.addTagToSearch(tagText); 5485 5486 // ÐозвÑаÑаем ÑокÑÑ Ð½Ð° поле ввода Ñ Ð·Ð°Ð´ÐµÑжкой 5487 setTimeout(function(){ 5488 _this.INPUT.focus(); 5489 // ÐапÑÑкаем поиÑк Ð´Ð»Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ ÑезÑлÑÑаÑов 5490 _this.onChange(); 5491 }, 50); 5492 }); 5493 }); 5494 }; 5495 5496 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð·Ð°Ð¼ÐµÐ½Ñ ÑаÑкладки клавиаÑÑÑÑ 5497 this.translateLayout = function(text) { 5498 var ru = 'йÑÑкенгÑÑÐ·Ñ ÑÑÑвапÑолджÑÑÑÑмиÑÑбÑÑ'; 5499 var en = 'qwertyuiop[]asdfghjkl;\'zxcvbnm,./'; 5500 5501 // ÐополниÑелÑнÑе ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ 5502 var ruSymbols = '!"â;%:?*()_+'; 5503 var enSymbols = '!@#$%^&*()_+'; 5504 5505 var result = ''; 5506 for (var i = 0; i < text.length; i++) { 5507 var char = text[i]; 5508 var lowerChar = char.toLowerCase(); 5509 5510 // ÐÑовеÑÑем, еÑÑÑ Ð»Ð¸ Ñимвол в ÑÑÑÑкой ÑаÑкладке 5511 var ruIndex = ru.indexOf(lowerChar); 5512 if (ruIndex !== -1) { 5513 // ÐаменÑем на английÑкÑÑ ÑаÑÐºÐ»Ð°Ð´ÐºÑ 5514 result += char === char.toUpperCase() ? en[ruIndex].toUpperCase() : en[ruIndex]; 5515 } else { 5516 // ÐÑовеÑÑем, еÑÑÑ Ð»Ð¸ Ñимвол в английÑкой ÑаÑкладке 5517 var enIndex = en.indexOf(lowerChar); 5518 if (enIndex !== -1) { 5519 // ÐаменÑем на ÑÑÑÑкÑÑ ÑаÑÐºÐ»Ð°Ð´ÐºÑ 5520 result += char === char.toUpperCase() ? ru[enIndex].toUpperCase() : ru[enIndex]; 5521 } else { 5522 // ÐÑовеÑÑем ÑпеÑиалÑнÑе ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ 5523 var ruSymbolIndex = ruSymbols.indexOf(char); 5524 if (ruSymbolIndex !== -1) { 5525 result += enSymbols[ruSymbolIndex]; 5526 } else { 5527 var enSymbolIndex = enSymbols.indexOf(char); 5528 if (enSymbolIndex !== -1) { 5529 result += ruSymbols[enSymbolIndex]; 5530 } else { 5531 // ÐÑÑавлÑем Ñимвол как еÑÑÑ (ÑиÑÑÑ, пÑÐ¾Ð±ÐµÐ»Ñ Ð¸ Ñ.д.) 5532 result += char; 5533 } 5534 } 5535 } 5536 } 5537 } 5538 5539 return result; 5540 }; 5541 5542 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ñмной Ð·Ð°Ð¼ÐµÐ½Ñ ÑаÑкладки - пеÑÐµÐ²Ð¾Ð´Ð¸Ñ ÑолÑко английÑкие Ñлова в ÑÑÑÑкие 5543 this.smartTranslateLayout = function(text) { 5544 var ru = 'йÑÑкенгÑÑÐ·Ñ ÑÑÑвапÑолджÑÑÑÑмиÑÑбÑÑ'; 5545 var en = 'qwertyuiop[]asdfghjkl;\'zxcvbnm,./'; 5546 5547 // Разбиваем на Ñлова 5548 var words = text.split(/(\s+)/); 5549 var result = ''; 5550 5551 for (var i = 0; i < words.length; i++) { 5552 var word = words[i]; 5553 5554 // ÐÑли ÑÑо пÑÐ¾Ð±ÐµÐ»Ñ - оÑÑавлÑем как еÑÑÑ 5555 if (/^\s+$/.test(word)) { 5556 result += word; 5557 continue; 5558 } 5559 5560 // ÐÑовеÑÑем, нÑжно ли пеÑеводиÑÑ Ñлово 5561 var needsTranslation = false;
5562 var hasRu = false; 5563 var hasEn = false; 5564 5565 for (var j = 0; j < word.length; j++) { 5566 var char = word[j].toLowerCase(); 5567 if (ru.indexOf(char) !== -1) hasRu = true; 5568 if (en.indexOf(char) !== -1) hasEn = true; 5569 } 5570 5571 // ÐÑли еÑÑÑ ÑолÑко английÑкие ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ Ð¸ Ð½ÐµÑ ÑÑÑÑÐºÐ¸Ñ - пеÑеводим 5572 if (hasEn && !hasRu) { 5573 needsTranslation = true; 5574 } 5575 5576 if (needsTranslation) { 5577 // ÐеÑеводим Ñлово 5578 var translatedWord = ''; 5579 for (var k = 0; k < word.length; k++) { 5580 var char = word[k]; 5581 var lowerChar = char.toLowerCase(); 5582 var enIndex = en.indexOf(lowerChar); 5583 5584 if (enIndex !== -1) { 5585 translatedWord += char === char.toUpperCase() ? ru[enIndex].toUpperCase() : ru[enIndex]; 5586 } else { 5587 translatedWord += char; 5588 } 5589 } 5590 result += translatedWord; 5591 } else { 5592 result += word; 5593 } 5594 } 5595 5596 return result; 5597 }; 5598 5599 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка и Ð·Ð°Ð¼ÐµÐ½Ñ ÑаÑÑиÑнÑÑ Ñовпадений 5600 this.findAndReplacePartialMatch = function(text, tagText) { 5601 var words = text.split(/(\s+)/); 5602 var result = ''; 5603 var tagLower = tagText.toLowerCase(); 5604 5605 for (var i = 0; i < words.length; i++) { 5606 var word = words[i]; 5607 5608 // ÐÑли ÑÑо пÑÐ¾Ð±ÐµÐ»Ñ - оÑÑавлÑем как еÑÑÑ 5609 if (/^\s+$/.test(word)) { 5610 result += word; 5611 continue; 5612 } 5613 5614 var wordLower = word.toLowerCase(); 5615 5616 // ÐÑовеÑÑем, ÑвлÑеÑÑÑ Ð»Ð¸ Ñлово наÑалом Ñега 5617 if (tagLower.indexOf(wordLower) === 0 && word.length < tagText.length) { 5618 // ÐаменÑем на полнÑй Ñег 5619 result += tagText; 5620 } else if (tagLower.indexOf(wordLower) !== -1 && word.length < tagText.length) { 5621 // ÐÑли Ñег ÑодеÑÐ¶Ð¸Ñ ÑÑо Ñлово как ÑаÑÑÑ - заменÑем на полнÑй Ñег 5622 result += tagText; 5623 } else { 5624 result += word; 5625 } 5626 } 5627 5628 return result; 5629 }; 5630 5631 // ФÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð¾Ð¿ÑеделениÑ, нÑжно ли пеÑеводиÑÑ ÑаÑÐºÐ»Ð°Ð´ÐºÑ 5632 this.needsTranslation = function(text) { 5633 // ÐÑовеÑÑем, еÑÑÑ Ð»Ð¸ в ÑекÑÑе ÑмеÑаннÑе ÑаÑкладки 5634 var ru = 'йÑÑкенгÑÑÐ·Ñ ÑÑÑвапÑолджÑÑÑÑмиÑÑбÑÑ'; 5635 var en = 'qwertyuiop[]asdfghjkl;\'zxcvbnm,./'; 5636 5637 var hasRu = false; 5638 var hasEn = false; 5639 5640 for (var i = 0; i < text.length; i++) { 5641 var char = text[i].toLowerCase(); 5642 if (ru.indexOf(char) !== -1) hasRu = true; 5643 if (en.indexOf(char) !== -1) hasEn = true; 5644 } 5645 5646 // ÐÑли еÑÑÑ Ð¸ ÑÑÑÑкие, и английÑкие ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ - нÑжен пеÑевод 5647 return hasRu && hasEn; 5648 }; 5649 5650 // УнивеÑÑалÑÐ½Ð°Ñ ÑÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñега к поиÑÐºÐ¾Ð²Ð¾Ð¼Ñ Ð·Ð°Ð¿ÑоÑÑ 5651 this.addTagToSearch = function(tagText){ 5652 var currentValue = _this.INPUT.value.trim(); 5653 5654 // ÐоÑмализÑем пÑÐ¾Ð±ÐµÐ»Ñ Ð² ÑекÑÑем знаÑении 5655 currentValue = currentValue.replace(/\s+/g, ' '); 5656 5657 // ÐÑклÑÑили авÑопеÑевод ÑаÑкладки по пÑоÑÑбе: ÑÐ¾Ñ ÑанÑем введеннÑй ÑекÑÑ ÐºÐ°Ðº еÑÑÑ 5658 5659 // ТепеÑÑ Ð¸Ñем и заменÑем ÑаÑÑиÑнÑе ÑÐ¾Ð²Ð¿Ð°Ð´ÐµÐ½Ð¸Ñ 5660 var result = _this.findAndReplacePartialMatch(currentValue, tagText); 5661 5662 // ÐÑли не бÑло найдено Ñовпадений, добавлÑем Ñег в ÐºÐ¾Ð½ÐµÑ 5663 if (result === currentValue) { 5664 result = currentValue + ' ' + tagText; 5665 } 5666 5667 _this.INPUT.value = result; 5668 5669 // ÐозвÑаÑаем ÑокÑÑ Ð½Ð° поле ввода 5670 _this.INPUT.focus(); 5671 5672 // ÐапÑÑкаем поиÑк Ñ Ð½ÐµÐ±Ð¾Ð»ÑÑой задеÑжкой 5673 setTimeout(function(){ 5674 _this.onChange(); 5675 }, 50); 5676 }; 5677 this.checkButtonsVisible = function(){ 5678 if(_this.elements.clear){ 5679 if(_this.INPUT.value){ 5680 _this.elements.clear.style.display = 'block'; 5681 }else{ 5682 _this.elements.clear.style.display = 'none'; 5683 } 5684 } 5685 5686 if(_this.elements.voice && window.SpeechRecognition){ 5687 if(_this.INPUT.value){ 5688 _this.elements.voice.style.display = 'none'; 5689 }else{ 5690 _this.elements.voice.style.display = 'block'; 5691 } 5692 } 5693 }; 5694 5695 // history 5696 this.getCookie = function(name) { 5697 const value = `; ${document.cookie}`; 5698 const parts = value.split(`; ${name}=`); 5699 if (parts.length === 2) return parts.pop().split(';').shift(); 5700 }; 5701 5702 this.getHistoryHtml = function(){ 5703 var html = '', history = _this.getCookie(arParams.BX_COOKIE_PREFIX+'_AG_SMSE_H'); 5704 5705 if(history){ 5706 history = decodeURI(history).replace('+', ' '); 5707 5708 var arHistory = history.split('|'); 5709 if(arHistory.length){ 5710 html = html + '<div class="bx_smart_searche bx_searche"><div class="bx-searchtitle-popup-history">'; 5711 html = html + '<div class="bx-searchtitle-popup-history-title">'+_this.arParams.POPUP_HISTORY_TITLE+'</div>';
5712 arHistory.reverse().forEach(function(item){ 5713 item = decodeURIComponent(item); 5714 5715 html = html + '<div class="bx-searchtitle-popup-history-item"><a class="js_search_href" href="'+_this.arParams.PAGE+'?q='+item+'">'+item+'</a></div>'; 5716 }); 5717 html = html + '</div></div>'; 5718 } 5719 } 5720 5721 return html; 5722 }; 5723 5724 // init 5725 this.Init = function() 5726 { 5727 this.CONTAINER = document.getElementById(this.arParams.CONTAINER_ID); 5728 BX.addCustomEvent(this.CONTAINER, "OnNodeLayoutChange", this._onContainerLayoutChange); 5729 5730 this.RESULT = document.body.appendChild(document.createElement("DIV")); 5731 this.RESULT.className = 'header__search-drop'; 5732 5733 this.INPUT = document.getElementById(this.arParams.INPUT_ID); 5734 BX.bind(this.INPUT, 'focus', function() {_this.onFocusGain()}); 5735 BX.bind(this.INPUT, 'blur', function(e) { 5736 // ÐобавлÑем неболÑÑÑÑ Ð·Ð°Ð´ÐµÑÐ¶ÐºÑ Ð´Ð»Ñ Ð¾Ð±ÑабоÑки клика на Ñег 5737 setTimeout(function() { 5738 // ÐÑовеÑÑем, еÑÑÑ Ð»Ð¸ акÑивнÑй ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ð¸ ÑвлÑеÑÑÑ Ð»Ð¸ он Ñегом 5739 var activeElement = document.activeElement; 5740 var isSearchTag = false; 5741 5742 if (activeElement) { 5743 isSearchTag = BX.hasClass(activeElement, 'js_search_href') || 5744 BX.hasClass(activeElement, 'header__search-tag') || 5745 activeElement.closest('.header__search-tag') || 5746 activeElement.closest('.header__search-drop'); 5747 } 5748 5749 // Также пÑовеÑÑем relatedTarget 5750 if (e.relatedTarget) { 5751 isSearchTag = isSearchTag || 5752 BX.hasClass(BX(e.relatedTarget), 'js_search_href') || 5753 BX.hasClass(BX(e.relatedTarget), 'header__search-tag') || 5754 BX(e.relatedTarget).closest('.header__search-tag') || 5755 BX(e.relatedTarget).closest('.header__search-drop'); 5756 } 5757 5758 if (!isSearchTag) { 5759 _this.onFocusLost(); 5760 } 5761 }, 100); 5762 }); 5763 this.INPUT.onkeydown = this.onKeyDown; 5764 5765 this.startText = this.oldValue = this.INPUT.value; 5766 5767 if(this.arParams.WAIT_IMAGE) 5768 { 5769 this.WAIT = document.body.appendChild(document.createElement("DIV")); 5770 this.WAIT.style.backgroundImage = "url('" + this.arParams.WAIT_IMAGE + "')"; 5771 if(!BX.browser.IsIE()) 5772 this.WAIT.style.backgroundRepeat = 'none'; 5773 this.WAIT.style.display = 'none'; 5774 this.WAIT.style.position = 'absolute'; 5775 this.WAIT.style.zIndex = '1100'; 5776 } 5777 5778 BX.bind(this.INPUT, 'bxchange', function() {_this.onChange()}); 5779 BX.bind(this.INPUT, 'paste', function(e) {setTimeout(function(){_this.onChange();}, 200);}); 5780 5781 this.initClear(); 5782 this.initVoiceInput(); 5783 this.initSearchModeSwitch(); 5784 this.initMobileModeToggle(); 5785 5786 /* var fixedParent = BX.findParent(this.CONTAINER, BX.is_fixed); 5787 if(BX.type.isElementNode(fixedParent)){ 5788 BX.bind(window, 'scroll', BX.throttle(this.onScroll, 100, this)); 5789 } */ 5790 5791 BX.bind(window, 'scroll', BX.throttle(this.onScroll, 100, this)); 5792 BX.bind(window, 'resize', BX.throttle(this.onScroll, 100, this)); 5793 }; 5794 BX.ready(function (){_this.Init(arParams)}); 5795} 5796/* End */ 5797; 5798; /* Start:"a:4:{s:4:"full";s:80:"/local/components/ws/favorites.counter/templates/header/script.js?17667558342423";s:6:"source";s:65:"/local/components/ws/favorites.counter/templates/header/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 5799(function(window) { 5800 'use strict'; 5801 5802 if (window.WSFavoritesCounter) { 5803 return; 5804 } 5805 5806 window.WSFavoritesCounter = function(params) { 5807 this.counterId = params.COUNTER_ID || 'favorite-counter'; 5808 this.buttonSelector = params.BUTTON_SELECTOR || 'a.button-round[href="' + (params.LINK_URL || '/favorites/') + '"]'; 5809 this.showZero = params.SHOW_ZERO !== false; 5810 this.counterClass = params.COUNTER_CLASS || 'button-round__count'; 5811 this.linkUrl = params.LINK_URL || '/favorites/'; 5812 5813 BX.ready(BX.proxy(this.init, this)); 5814 }; 5815 5816 window.WSFavoritesCounter.prototype = { 5817 init: function() { 5818 // СлÑÑаем ÑобÑÑÐ¸Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð¸Ð·Ð±Ñанного 5819 if (typeof BX !== 'undefined' && BX.addCustomEvent) { 5820 BX.addCustomEvent('onFavoriteCounterUpdate', BX.proxy(this.update, this)); 5821 } 5822 }, 5823 5824 update: function(count) { 5825 count = parseInt(count) || 0; 5826 5827 // ÐбновлÑем ÑÑеÑÑик в header 5828 const counterElement = document.getElementById(this.counterId); 5829 const favoriteButton = document.querySelector(this.buttonSelector); 5830 5831 if (counterElement) { 5832 counterElement.textContent = count; 5833 } 5834 5835 if (favoriteButton) { 5836 if (count > 0) { 5837 favoriteButton.setAttribute('data-count', count); 5838 // ÐоказÑваем ÑÑеÑÑик, еÑли он ÑкÑÑÑ 5839 if (counterElement && counterElement.style.display === 'none') { 5840 counterElement.style.display = ''; 5841 } 5842 } else { 5843 favoriteButton.removeAttribute('data-count'); 5844 // СкÑÑваем ÑÑеÑÑик, еÑли он еÑÑÑ Ð¸ SHOW_ZERO = false 5845 if (counterElement && !this.showZero) { 5846 counterElement.style.display = 'none'; 5847 } 5848 } 5849 } 5850 } 5851 }; 5852
5853 // ÐлобалÑÐ½Ð°Ñ ÑÑнкÑÐ¸Ñ Ð´Ð»Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ ÑÑеÑÑика 5854 window.updateFavoriteCounter = function(count) { 5855 if (window.favoritesCounterInstance) { 5856 window.favoritesCounterInstance.update(count); 5857 } 5858 }; 5859})(window); 5860/* End */ 5861; 5862; /* Start:"a:4:{s:4:"full";s:101:"/local/templates/ezetek/components/sotbit/regions.choose/ws.header.location/script.js?176659034512427";s:6:"source";s:85:"/local/templates/ezetek/components/sotbit/regions.choose/ws.header.location/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 5863class RegionsChoose { 5864 5865 constructor() { 5866 5867 this.getRegion(); 5868 5869 this.rootId = 'regions_choose_component'; 5870 this.rootDropDownId = 'regions_choose_component_dropdown'; 5871 this.selectRegionID = 'regon_choose_select-city__modal'; 5872 this.selectRegionOverlayID = 'regon_choose_modal__overlay'; 5873 5874 this.questionRegionId = null; 5875 this.currentRegionId = null; 5876 this.loctionList = null; 5877 5878 this.bigCityList = null; 5879 this.countryList = null; 5880 this.activCountry = null; 5881 this.defoultExampleRegion = null; 5882 5883 5884 this.root = document.getElementById(this.rootId); 5885 this.rootDropDown = document.getElementById(this.rootDropDownId); 5886 this.selectRegion = document.getElementById(this.selectRegionID); 5887 5888 this.setEvents(); 5889 } 5890 5891 getEntity(parent, entity, all=false) { 5892 if (!parent || !entity) { 5893 return null; 5894 } 5895 if (all) { 5896 return parent.querySelectorAll('[data-entity="' + entity + '"]'); 5897 } 5898 return parent.querySelector('[data-entity="' + entity + '"]'); 5899 } 5900 5901 setEvents() { 5902 const yesBtn = this.getEntity(this.rootDropDown, 'select-city__dropdown__choose__yes'); 5903 const notBnt = this.getEntity(this.rootDropDown, 'select-city__dropdown__choose__no'); 5904 const cityName = this.getEntity(this.root, 'select-city__block__text-city'); 5905 const selectRegionClose = this.getEntity(this.selectRegion, 'select-city__close'); 5906 const searchLine = this.getEntity(this.selectRegion, 'select-city__modal__submit__input'); 5907 5908 this.defoultExampleRegion = this.getEntity(this.selectRegion, 'select-city__input__example').cloneNode(true); 5909 5910 yesBtn.addEventListener('click', () => this.onSetRegion(this.questionRegionId)); 5911 notBnt.addEventListener('click', () => { 5912 this.onShowALLRegions(); 5913 this.dropDownShow(false); 5914 }); 5915 cityName.addEventListener('click', () => this.onShowALLRegions()); 5916 5917 // ÐополниÑелÑнÑй обÑабоÑÑик Ð´Ð»Ñ ÑлеменÑа в bar__contacts-link 5918 const barContactsElement = document.querySelector('.bar__contacts-link [data-entity="select-city__block__text-city"]'); 5919 if (barContactsElement) { 5920 barContactsElement.addEventListener('click', () => this.onShowALLRegions()); 5921 } 5922 5923 5924 selectRegionClose.addEventListener('click', () => this.onSelectRegionShow(false)); 5925 searchLine.addEventListener('input', e => this.onInputSearch(e)); 5926 5927 } 5928 5929 onSetRegion(regionId) { 5930 BX.ajax.runAction('sotbit:regions.ChooseComponentController.setRegion', { 5931 data: {regionId: regionId}, 5932 }).then( 5933 (res) => res.data.actions.forEach(i => this[i](res.data)), 5934 (err) => {console.log(err)}, 5935 ) 5936 } 5937 5938 dropDownShow(action) { 5939 if (action) { 5940 this.rootDropDown.setAttribute('style', 'display: block;'); 5941 } else { 5942 this.rootDropDown.setAttribute('style', 'display: none;'); 5943 } 5944 } 5945 5946 onShowALLRegions(countryId=Number.MAX_SAFE_INTEGER) { 5947 5948 if (this.loctionList !== null && countryId === Number.MAX_SAFE_INTEGER) { 5949 return this.SHOW_SELECT_REGIONS({ 5950 allRegionsNew: this.loctionList, 5951 locationTemplateData: {activ: this.activCountry} 5952 }); 5953 } 5954 BX.ajax.runAction('sotbit:regions.ChooseComponentController.showLocations', { 5955 data: {countryId} 5956 }) 5957 .then( 5958 (res) => res.data.actions.forEach(i => this[i](res.data)), 5959 (err) => console.log(err), 5960 ) 5961 } 5962 5963 getRegion(deleteCookies=false) { 5964 5965 const query = new URLSearchParams(window.location.search); 5966 5967 const params = deleteCookies 5968 ? {deletCookies: 1} 5969 : {redirectRegionId: query.get('redirectRegionId')} 5970 5971 this.removeRegionGetParams(query); 5972 5973 BX.ajax.runAction('sotbit:regions.ChooseComponentController.getRegion', { 5974 data: params, 5975 }) 5976 .then( 5977 (res) => res.data.actions.forEach(i => this[i](res.data)), 5978 (err) => console.log(err), 5979 ) 5980 5981 } 5982 5983 onSelectRegionShow(action) { 5984 if (action) { 5985 this.selectRegion.setAttribute('style', 'display: block;'); 5986 } else { 5987 this.selectRegion.setAttribute('style', 'display: none;'); 5988 } 5989 } 5990 5991 SHOW_REGION_NAME ({currentRegionName}) { 5992 const element = this.getEntity(this.root, 'select-city__block__text-city'); 5993 if (element) { 5994 element.innerText = currentRegionName; 5995 } 5996 } 5997 5998 SHOW_QUESTION ({currentRegionName, currentRegionId}) { 5999 this.questionRegionId = currentRegionId; 6000 this.dropDownShow(true); 6001 const element = this.getEntity(this.rootDropDown, 'select-city__dropdown__title'); 6002 element.innerText = element.textContent.replace('###', currentRegionName).trim(); 6003 } 6004 6005 CONFIRM_DOMAIN ({currentRegionName}) { 6006 this.dropDownShow(false); 6007 const element = this.getEntity(this.root, 'select-city__block__text-city'); 6008 if (element) { 6009 element.innerText = currentRegionName; 6010 } 6011 const selectRegionElement = this.getEntity(this.selectRegion, 'select-city__js'); 6012 if (selectRegionElement) { 6013 selectRegionElement.innerText = currentRegionName; 6014 } 6015 } 6016 6017 SHOW_SELECT_REGIONS ({allRegionsNew, locationTemplateData}) { 6018 6019 this.onSelectRegionShow(true); 6020 if (locationTemplateData === null) { 6021 locationTemplateData = { 6022 bigCityNew: allRegionsNew, 6023 country: {}, 6024 activ: 0, 6025 keysCity: [], 6026 }; 6027 } 6028 6029 if (this.activCountry === locationTemplateData['activ']) { 6030 return; 6031 } 6032 6033 this.loctionList = allRegionsNew; 6034 this.countryList = locationTemplateData['country']; 6035 this.activCountry = locationTemplateData['activ']; 6036 this.bigCityList = locationTemplateData['bigCityNew']; 6037 this.keysCity = Object.keys(locationTemplateData['keysCity']).length !== 0 ? locationTemplateData['keysCity'] : allRegionsNew; 6038 6039 this.citiesRender(); 6040 this.renderCountryTabs(); 6041 } 6042 6043 REDIRECT_TO_SUBDOMAIN ({currentRegionCode, currentRegionId}) { 6044 const hostName = window.location.hostname; 6045 const protocol = window.location.protocol; 6046 const newUrl = window.location.href.replace(hostName, currentRegionCode); 6047 const url = new URL(newUrl, `${protocol}${currentRegionCode}`); 6048 url.searchParams.set('redirectRegionId', currentRegionId); 6049 window.location.href = url.toString(); 6050 } 6051 6052 onInputSearch(e) { 6053 this.searchLine = e.currentTarget.value; 6054 this.citiesRender(); 6055 } 6056 6057 citiesRender() { 6058
6059 const bitCityWraper = this.getEntity( 6060 this.getEntity(this.selectRegion, 'select-city__list_wrapper_favorites'), 6061 'select-city__list', 6062 ); 6063 const litersWrapper = this.getEntity(this.selectRegion, 'select-city__list_wrapper_cities'); 6064 const exapmleRegions = this.getEntity(this.selectRegion, 'select-city__input__example'); 6065 6066 Array.from(bitCityWraper.childNodes).forEach(i => i.remove()); 6067 Array.from(litersWrapper.childNodes).forEach(i => i.remove()); 6068 Array.from(exapmleRegions.childNodes).forEach(i => i.remove()); 6069 exapmleRegions.innerHTML = this.defoultExampleRegion.innerHTML; 6070 6071 if (!!this.bigCityList && Object.keys(this.bigCityList).length !== 0) { 6072 this.getEntity(this.selectRegion, 'select-city__tab_name_content__big_city') 6073 .setAttribute('style', 'display: block;'); 6074 } else { 6075 this.getEntity(this.selectRegion, 'select-city__tab_name_content__big_city') 6076 .setAttribute('style', 'display: none;'); 6077 } 6078 6079 this.bigCityList 6080 .filter(i => new RegExp(this.searchLine, 'i').test(i['CITY_NAME'])) 6081 .forEach(i => { 6082 const element = document.createElement('p'); 6083 element.setAttribute('class', 'select-city__list_item'); 6084 element.innerText = i['CITY_NAME']; 6085 element.addEventListener('click', () => { 6086 this.onSetRegion(i['ID']); 6087 }); 6088 bitCityWraper.append(element); 6089 }); 6090 6091 const liters = new Set( 6092 this.loctionList 6093 .filter(i => new RegExp(this.searchLine, 'i').test(i['CITY_NAME'])) 6094 .map(i => i['CITY_NAME'][0]) 6095 ); 6096 6097 Array.from(Array.from(liters).sort()).forEach(i => { 6098 const oneliterWrapper = document.createElement('div') 6099 oneliterWrapper.setAttribute('class', 'select-city__list_letter_wrapper'); 6100 6101 const literElem = document.createElement('div'); 6102 literElem.setAttribute('class', 'select-city__list_letter'); 6103 literElem.innerText = i; 6104 oneliterWrapper.append(literElem); 6105 6106 const citysWrapper = document.createElement('div'); 6107 citysWrapper.setAttribute('class', 'select-city__list'); 6108 this.loctionList 6109 .filter(j => i === j['CITY_NAME'][0]) 6110 .filter(i => new RegExp(this.searchLine, 'i').test(i['CITY_NAME'])) 6111 .forEach(cityId => { 6112 const cityElem = document.createElement('p'); 6113 cityElem.setAttribute('class', 'select-city__list_item'); 6114 cityElem.addEventListener('click', () => { 6115 this.onSetRegion(cityId['ID']); 6116 }); 6117 cityElem.innerText = cityId['CITY_NAME']; 6118 citysWrapper.append(cityElem); 6119 }); 6120 6121 oneliterWrapper.append(citysWrapper); 6122 litersWrapper.append(oneliterWrapper); 6123 }) 6124 6125 Array.from(exapmleRegions.querySelectorAll('span')).forEach((item, index) => { 6126 item.innerText = this.keysCity[index]['CITY_NAME']; 6127 item.addEventListener('click', () => { 6128 this.onSetRegion(this.keysCity[index]['ID']); 6129 }); 6130 }); 6131 6132 } 6133 6134 renderCountryTabs() { 6135 const countryWrap = this.getEntity(this.selectRegion, 'sotbit-regions-tabs'); 6136 6137 if (Array.from(countryWrap.childNodes).filter(i => i instanceof HTMLLIElement).length > 0) { 6138 return; 6139 } 6140 6141 const activClass = 'active'; 6142 6143 Object.keys(this.countryList).forEach(i => { 6144 6145 const element = document.createElement('li'); 6146 if (this.activCountry === i) { 6147 element.setAttribute('class', `select-city__tab ${activClass}`); 6148 } else { 6149 element.setAttribute('class', 'select-city__tab'); 6150 } 6151 6152 element.innerText = this.countryList[i]; 6153 6154 element.addEventListener('click', () => { 6155 if (element.classList.contains(activClass)) { 6156 return; 6157 } 6158 6159 const newCountryWrap = this.getEntity(this.selectRegion, 'sotbit-regions-tabs');
6160 Array.from(newCountryWrap.childNodes).forEach(j => { 6161 if (j instanceof HTMLLIElement) { 6162 j.classList.remove(activClass) 6163 } 6164 }); 6165 6166 element.classList.add(activClass); 6167 this.onShowALLRegions(i); 6168 6169 }) 6170 6171 countryWrap.append(element); 6172 6173 countryWrap.childNodes.forEach(i => { 6174 if (!(i instanceof HTMLLIElement)) { 6175 return; 6176 } 6177 }) 6178 6179 }); 6180 } 6181 6182 removeRegionGetParams(query) { 6183 if (query.has('redirectRegionId')) { 6184 const url = new URL(window.location.href, window.location.href); 6185 url.searchParams.delete('redirectRegionId'); 6186 window.history.replaceState(null, '', url) 6187 } 6188 } 6189} 6190 6191/* End */ 6192; 6193; /* Start:"a:4:{s:4:"full";s:79:"/local/templates/ezetek/components/bitrix/menu/top_menu/script.js?1766590345508";s:6:"source";s:65:"/local/templates/ezetek/components/bitrix/menu/top_menu/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 6194var jsvhover = function() 6195{ 6196 var menuDiv = document.getElementById("vertical-multilevel-menu"); 6197 if (!menuDiv) 6198 return; 6199 6200 var nodes = menuDiv.getElementsByTagName("li"); 6201 for (var i=0; i<nodes.length; i++) 6202 { 6203 nodes[i].onmouseover = function() 6204 { 6205 this.className += " jsvhover"; 6206 } 6207 6208 nodes[i].onmouseout = function() 6209 { 6210 this.className = this.className.replace(new RegExp(" jsvhover\\b"), ""); 6211 } 6212 } 6213} 6214 6215if (window.attachEvent) 6216 window.attachEvent("onload", jsvhover); 6217 6218/* End */ 6219;; /* /local/templates/ezetek/js/swiper/swiper-bundle.min.js?1766590344154008*/ 6220; /* /local/templates/ezetek/libraries/slick.min.js?176659034442863*/ 6221; /* /local/templates/ezetek/js/js-datepicker.js?177470468616892*/ 6222; /* /local/templates/ezetek/js/tabs.js?17665903441034*/ 6223; /* /local/templates/ezetek/js/listSlider.js?17665903442720*/ 6224; /* /local/templates/ezetek/js/price-formatter.js?17665903441576*/ 6225; /* /local/templates/ezetek/js/scripts.js?17878371015165*/ 6226; /* /local/templates/ezetek/js/inputmask.min.js?1766590344120679*/ 6227; /* /local/templates/ezetek/js/main.js?1790928304136478*/ 6228; /* /local/templates/ezetek/js/custom.js?178842119013489*/ 6229; /* /bitrix/components/arturgolubev/search.title/script.js?17665903309674*/ 6230; /* /local/templates/ezetek/components/arturgolubev/search.title/ws.header.search/script.js?177204504925217*/ 6231; /* /local/components/ws/favorites.counter/templates/header/script.js?17667558342423*/ 6232; /* /local/templates/ezetek/components/sotbit/regions.choose/ws.header.location/script.js?176659034512427*/ 6233; /* /local/templates/ezetek/components/bitrix/menu/top_menu/script.js?1766590345508*/ 6234 6235//# sourceMappingURL=template_9c7c8253df24e9e766073ff9c991b389.map.js
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.