1"use strict";(self.webpackChunk_hero_digital_zoom=self.webpackChunk_hero_digital_zoom||[]).push([[1563],{1563(e,i,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 r(e,i){for(var t=0;t<i.length;t++){var n=i[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function s(e,i,t){return(i=a(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function a(e){var i=function(e){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var t=i.call(e,"string");if("object"!=n(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(i)?i:i+""}t.r(i),t.d(i,{default:()=>l});var o=function(){function e(i){var t,n=this;!function(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=i,this.$swiper=i.querySelector(".card-swiper-container.swiper"),this.$cards=i.querySelectorAll(".service-card"),this.currentFlippedCard=null,this.isInitializing=!0,this.el.classList.add("is-initializing"),null===(t=this.$swiper)||void 0===t||t.classList.add("swiper-initializing"),this.mq=window.matchMedia(e.DYNAMIC_BULLETS_QUERY),this.desktopMq=window.matchMedia(e.DESKTOP_QUERY),this.onBreakpointChange=function(){return n.handleResize()},this.onResize=this.debounce(function(){return n.handleResize()},250),this.mq.addEventListener("change",this.onBreakpointChange),this.desktopMq.addEventListener("change",this.onBreakpointChange),window.addEventListener("resize",this.onResize),window.addEventListener("orientationchange",this.onResize);var r=!1,s=function(){r||(r=!0,n.initSwiper(),n.initFlipCards(),n.hideSkeletons())},a=setTimeout(function(){n.isInitializing&&s()},3e3);this.waitForImages().then(function(){clearTimeout(a),s()})}return i=e,t=[{key:"waitForImages",value:function(){var e=Array.from(this.el.querySelectorAll(".service-card__image"));if(0===e.length)return Promise.resolve();var i=e.map(function(e,i){return new Promise(function(i){if(e.complete&&0!==e.naturalHeight)i();else{var t=setTimeout(function(){return i()},2e3);e.addEventListener("load",function(){clearTimeout(t),i()},{once:!0}),e.addEventListener("error",function(){clearTimeout(t),i()},{once:!0})}})});return Promise.all(i)}},{key:"hideSkeletons",value:function(){var e=this;setTimeout(function(){e.$cards.forEach(function(e){e.classList.add("is-loaded")}),e.el.classList.remove("is-initializing"),e.isInitializing=!1},150)}},{key:"initSwiper",value:function(){var i,t=this;if(null===(i=this.swiper)||void 0===i||i.destroy(!0,!0),this.resetPagination(),window.innerWidth>=1025)return this.$swiper.classList.add("swiper-disabled"),this.$swiper.classList.remove("swiper-initializing"),void this.el.classList.remove("is-initializing");this.$swiper.classList.remove("swiper-disabled");var n="true"===this.$swiper.getAttribute("data-hide-arrows"),r=this.$swiper.querySelectorAll(".swiper-slide").length,s=this.mq.matches?r>=7:r>15,a={slidesPerView:1.2,spaceBetween:16,centeredSlides:!0,loop:!1,watchOverflow:!0,observer:!0,observeParents:!0,breakpoints:{600:{slidesPerView:1.5,spaceBetween:20,centeredSlides:!0,centeredSlidesBounds:!0},768:{slidesPerView:3,centeredSlides:!1,spaceBetween:20}},pagination:{el:this.$swiper.querySelector(".swiper-pagination"),clickable:!0,dynamicBullets:s,dynamicMainBullets:5},on:{paginationUpdate:function(i,t){if(i.params.pagination.dynamicBullets){var n=window.innerWidth>=768?e.ACTIVE_BULLET_GAP_MD:e.ACTIVE_BULLET_GAP,r=!1;t.querySelectorAll(".swiper-pagination-bullet").forEach(function(e){if(e.classList.contains("swiper-pagination-bullet-active"))r=!0;else{var i=parseFloat(e.style.left)||0,t=r?n:-n;e.style.left="".concat(i+t,"px")}})}}}};n||(a.navigation={nextEl:this.$swiper.querySelector(".swiper-button-forward"),prevEl:this.$swiper.querySelector(".swiper-button-previous")}),this.swiper=new Swiper(this.$swiper,a),setTimeout(function(){var e,i,n;null===(e=t.$swiper)||void 0===e||e.classList.remove("swiper-initializing"),null===(i=t.$swiper)||void 0===i||i.classList.add("swiper-ready"),null===(n=t.swiper)||void 0===n||n.update()},100)}},{key:"resetPagination",value:function(){var e=this.$swiper.querySelector(".swiper-pagination");e&&(e.classList.remove("swiper-pagination-bullets-dynamic"),e.removeAttribute("style"),e.innerHTML="")}},{key:"initFlipCards",value:function(){var e=this;this.$cards.forEach(function(i){var t=i.querySelector(".service-card__inner");e.desktopMq.matches?(i.addEventListener("mouseenter",function(){e.flipCard(t,!0),e.currentFlippedCard=t}),i.addEventListener("mouseleave",function(){e.flipCard(t,!1),e.currentFlippedCard===t&&(e.currentFlippedCard=null)})):i.addEventListener("click",function(){return e.handleCardClick(t)}),i.addEventListener("keydown",function(i){"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),e.handleCardClick(t))}),i.hasAttribute("tabindex")||i.setAttribute("tabindex","0")})}},{key:"handleResize",value:function(){this.initSwiper(),this.updateCardInteractions(),this.isInitializing||this.$cards.forEach(function(e){e.classList.add("is-loaded")})}},{key:"updateCardInteractions",value:function(){this.currentFlippedCard&&this.flipCard(this.currentFlippedCard,!1),this.$cards.forEach(function(e){var i=e.cloneNode(!0);e.parentNode.replaceChild(i,e)}),this.currentFlippedCard=null,this.$cards=this.el.querySelectorAll(".service-card"),this.initFlipCards()}},{key:"flipCard",value:function(e,i){i?e.classList.add("is-flipped"):e.classList.remove("is-flipped")}},{key:"handleCardClick",value:function(e){this.currentFlippedCard===e?(this.flipCard(e,!1),this.currentFlippedCard=null):(this.currentFlippedCard&&this.flipCard(this.currentFlippedCard,!1),this.flipCard(e,!0),this.currentFlippedCard=e)}},{key:"debounce",value:function(e,i){var t;return function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];clearTimeout(t),t=setTimeout(function(){clearTimeout(t),e.apply(void 0,r)},i)}}},{key:"destroy",value:function(){var e,i,t;null===(e=this.mq)||void 0===e||e.removeEventListener("change",this.onBreakpointChange),null===(i=this.desktopMq)||void 0===i||i.removeEventListener("change",this.onBreakpointChange),window.removeEventListener("resize",this.onResize),window.removeEventListener("orientationchange",this.onResize),null===(t=this.swiper)||void 0===t||t.destroy()}}],t&&r(i.prototype,t),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,t}();s(o,"ACTIVE_BULLET_GAP",20),s(o,"ACTIVE_BULLET_GAP_MD",20),s(o,"DYNAMIC_BULLETS_QUERY","(max-width: 1024px)"),s(o,"DESKTOP_QUERY","(min-width: 1025px)");const l=o}}]); 2//# sourceMappingURL=zoom.v1.1563.min.js.map?t=898b33f5fe533ddbecca
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.