"use strict";(self.webpackChunkkcc_gem_theme=self.webpackChunkkcc_gem_theme||[]).push([[303],{303:function(e,t,l){l.r(t);const n=".hero-slider__slider",o="slickNext",s="Pause";function a(){$(n).slick({dots:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:4e3,prevArrow:'',nextArrow:''})}function i(e,t,l){return e.setAttribute(t,l)}function c(e,t,l){const a=l===s;$(n).slick(t),i(e,"aria-label",l),e.classList.toggle("hero-slider__button--play"),e.innerHTML=l,a&&$(n).slick(o)}t.default=function(){var e;document.querySelector(n)&&(e=a,$(n).on("init",(function(e,t){!function(){const e=document.querySelector(n),t=document.createElement("button");var l;i(t,"role","button"),i(t,"type","button"),i(t,"aria-label","Pause"),i(t,"style","display: block;"),t.innerHTML="Pause",t.classList.add("hero-slider__button--toggle"),e.appendChild(t),(l=t).addEventListener("click",(function(e){"Pause"===l.innerHTML?c(l,"slickPause","Play"):c(l,"slickPlay",s)}))}()})),e())}}}]);