(self.webpackChunktoc_theme=self.webpackChunktoc_theme||[]).push([[982,1063],{7961:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});n(1988);var r=n(6241),o=(n(6649),n(1554)),i=n(5562),c=n(4431);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={slidesPerView:2,speed:2e4,spaceBetween:20,breakpoints:{992:{slidesPerView:5,spaceBetween:60},600:{slidesPerView:3,spaceBetween:40}}};function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{slidesPerView:n,spaceBetween:r,breakpoints:o,speed:s}=a(a({},d),t),l=e.querySelector(".autoplay-swiper-cont"),u=e.querySelector(".autoplay-swiper"),p=e.querySelector(".autoplay-swiper-wrapper"),y=document.querySelector(".custom-modal"),f=document.querySelector(".custom-modal-content");if(!u||!l||!p)return;u.addEventListener("click",(function(e){let t=e.target.closest(".play-btn");if(!t)return;document.documentElement.classList.add("modal-opened"),y.classList.add("modal-active"),f.innerHTML="";let n=t.closest(".autoplay-swiper-slide").querySelector(".video-template").content.cloneNode(!0);f.appendChild(n)})),u.style.animationDuration=s/1e3+"s",u.appendChild(p.cloneNode(!0));const m=Object.keys(o).sort(((e,t)=>t-e));let h=r,w=n,v=l.clientWidth;const b=[],g=(0,i.debounce)((()=>{if(m.length){const e=m.find((e=>window.innerWidth>=e));e?(w=o[e].slidesPerView||m.reverse().find((e=>window.innerWidth>=e))?.slidesPerView||n,h=o[e].spaceBetween||m.reverse().find((e=>window.innerWidth>=e))?.spaceBetween||r):(w=n,h=r)}v=l.clientWidth;const t=(v-(w-1)*h)/w;e.querySelectorAll(".autoplay-swiper-slide").forEach(((e,n)=>{e.style.width=`${t}px`,e.style.marginRight=`${h}px`})),(()=>{const e=p.clientWidth;u.style.width=`${e}px`;const t=l.clientWidth,n=Math.floor(t/e);if(n>b.length){const e=n-b.length;[...Array(e)].forEach((()=>{const e=p.cloneNode(!0);b.push(e),u.appendChild(e),e.style.backgroundColor="red",e.querySelectorAll(".play-btn").forEach((e=>{e.addEventListener("click",(function(){document.documentElement.classList.add("modal-opened"),y.classList.add("modal-active");let t=e.closest(".autoplay-swiper-slide").querySelector(".video-template").content.cloneNode(!0);f.appendChild(t)}))}))}))}})()}),200);g();const P=()=>v!==u.clientWidth&&g();window.addEventListener("resize",P),c.s.push((()=>window.removeEventListener("resize",P)))}var p=async e=>{const t=e.querySelectorAll(".video-player");e.querySelector(".videos-wrapper");for(let e of t)if(e){const t=e.dataset.videoType,r=e.dataset.videoUrl;n(5666)(`./${t}-player`).then((n=>n?.[`${t}Player`]?.(e,r)))}const i=e.querySelector(".autoplay-swiper");i?.addEventListener("mouseover",(()=>{i.style.animationPlayState="paused"})),i?.addEventListener("mouseout",(()=>{i.style.animationPlayState="running"})),u(e,{slidesPerView:3.46,spaceBetween:20,speed:4e4,breakpoints:{600:{slidesPerView:4.5,spaceBetween:30},992:{slidesPerView:3.72,spaceBetween:100}}}),(0,o.W)(e),(0,r.q)(e)}},6649:function(e,t,n){"use strict";n.d(t,{J:function(){return o},T:function(){return i}});var r=n(5880);n(6975);function o(e){0!==e.length&&e.forEach((t=>{const n=t.querySelector(".accordion-head"),o=t.querySelector(".accordion-body");n?.addEventListener("click",(n=>{if(!o)return;const i=t?.classList.toggle("accordion-active");i?(r.Ay.to(Array.from(e).map((e=>{const n=e.querySelector(".accordion-body");return n&&t!==e&&(e?.classList.remove("accordion-active"),r.Ay.set(e,{zIndex:1})),n})),{height:0}),r.Ay.set(t,{zIndex:2}),r.Ay.to(o,{height:"auto"})):r.Ay.to(o,{height:0})}))}))}function i(e,t){if(!e&&!t)return;const n=e.parentNode;e?.addEventListener("click",(e=>{const o=n?.classList.toggle("accordion-active");o?r.Ay.to(t,{height:"auto"}):r.Ay.to(t,{height:0})}))}},6975:function(e,t,n){"use strict";n.d(t,{v:function(){return c}});var r=n(5880),o=n(6575),i=n(3768);function c(e){const t=(0,i.L)(e,".price[data-number]");for(let e of t)e.innerHTML="0";o.u.batch(t,{onEnter:e=>{r.os.fromTo(e,{innerHTML:0},{innerHTML:(e,t)=>+t.dataset.number,duration:3,ease:"power2.out",modifiers:{innerHTML:(e,t)=>{const n=+t.dataset.number;return n===+n.toFixed(0)?e.toFixed(0):e.toFixed(1)}},stagger:.2,immediateRender:!0,clearProps:"transform"})},start:"top 80%",once:!0})}},1988:function(){},5666:function(e,t,n){var r={"./vimeo-player":[7817,2273,7817],"./youtube-player":[4030,2474,4030]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id=5666,e.exports=o}}]);