1"use strict";(globalThis.webpackChunktesa_2016=globalThis.webpackChunktesa_2016||[]).push([[8285],{8285:(e,a,l)=>{l.r(a),l.d(a,{default:()=>_});var t=l(5166),i=l(9238),u=l(7651);const n={key:0,ref:"sliderControls",class:"stage-slider__controls-wrapper"},s={class:"stage-slider__controls container"},o={class:"stage-slider__indicators"},r=["aria-current","onClick","onKeyup"],d=["aria-label"],v=["aria-label"],c=["aria-label"],p=["aria-label"],_=Object.assign({name:"StageSlider"},{__name:"StageSlider",props:{slideCount:{type:Number,required:!0},previousLabel:{type:String,required:!0},pauseLabel:{type:String,required:!0},playLabel:{type:String,required:!0},nextLabel:{type:String,required:!0}},setup(e){var a;const l=window.matchMedia("(prefers-reduced-motion: reduce)").matches,_=null===(a=(0,t.FN)())||void 0===a?void 0:a.proxy,g=(0,t.iH)(null),y=e,b=(0,t.iH)({effect:"fade",speed:600,threshold:10,autoplay:!1,a11y:!0,keyboard:!0,on:{init:function(e){m.value=e,f.value=e.realIndex,e.on("slideChange",H),e.on("autoplayStart",L),e.on("autoplayStop",q),D(),function(){if(l)return;const e=()=>{(0,u.jU)(()=>{S.value=window.setTimeout(()=>{m.value&&(m.value.autoplay.start(),f.value=m.value.realIndex)},2e3)})};"complete"===document.readyState?e():(C.value=e,window.addEventListener("load",C.value,{once:!0}))}()},keyPress:function(e,a){if(37!==a&&39!==a)return;T();const l=e.slides[e.activeIndex].querySelector("a");l&&l.focus()}}}),f=(0,t.iH)(0),w=(0,t.iH)(100),k=(0,t.iH)(!1),h=(0,t.iH)(null),m=(0,t.iH)(null),S=(0,t.iH)(null),C=(0,t.iH)(null),x=(0,t.iH)(null);function H(){f.value=m.value.realIndex,w.value=k.value?0:100,D(),k.value&&I()}function L(){k.value=!0,I()}function q(){k.value=!1,E()}function T(){m.value&&m.value.autoplay.stop()}function U(e){m.value&&e>=0&&e<y.slideCount&&m.value.slideTo(e)}function D(){var e;null!==(e=m.value)&&void 0!==e&&e.slides&&m.value.slides.forEach((e,a)=>{const l=a===f.value;e.tabIndex=l?0:-1,e.dataset.active=String(l)})}function I(){E(),w.value=0,x.value=(0,u.if)({duration:3e3,onUpdate:e=>{w.value=100*e},onComplete:()=>{w.value=100}})}function E(){x.value&&(x.value.stop(),x.value=null)}return(0,t.bv)(()=>{h.value=g.value.querySelector("[data-stage-slider-swiper]"),_.$el.dataset.stageSliderEnhanced="true",h.value&&(Object.assign(h.value,b.value),h.value.initialize())}),(0,t.Jd)(()=>{C.value&&(window.removeEventListener("load",C.value),C.value=null),window.clearTimeout(S.value),E(),m.value&&(m.value.off("slideChange",H),m.value.off("autoplayStart",L),m.value.off("autoplayStop",q),m.value=null)}),(0,t.JJ)("stageSliderState",{getCurrentSlide:()=>f.value}),(a,l)=>((0,t.wg)(),(0,t.iD)("div",{ref_key:"root",ref:g,class:"stage-slider__enhancer","data-stage-slider-enhancer":"",onFocusin:T},[(0,t.WI)(a.$slots,"default"),l[8]||(l[8]=(0,t.Uk)()),e.slideCount>1?((0,t.wg)(),(0,t.iD)("div",n,[(0,t._)("div",s,[(0,t._)("div",null,[(0,t._)("ul",o,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(e.slideCount,a=>{return(0,t.wg)(),(0,t.iD)("li",{key:a,class:(0,t.C_)(["stage-slider__indicator",{"stage-slider__indicator--active":f.value===a-1,"stage-slider__indicator--crowded":e.slideCount>4}]),role:"button",tabindex:"0","aria-current":f.value===a-1?"true":void 0,onClick:e=>U(a-1),onKeyup:[(0,t.D2)(e=>U(a-1),["enter"]),(0,t.D2)((0,t.iM)(e=>U(a-1),["prevent"]),["space"])]},[(0,t._)("div",{class:"stage-slider__indicator__progress",style:(0,t.j5)({width:(l=a-1,l===f.value?`${w.value}%`:"0%")})},null,4)],42,r);var l}),128))]),l[4]||(l[4]=(0,t.Uk)()),(0,t._)("button",{class:"stage-slider__icon stage-slider__icon--previous","aria-label":e.previousLabel,type:"button",onClick:l[0]||(l[0]=e=>{m.value&&(m.value.autoplay.stop(),m.value.isBeginning?m.value.slideTo(m.value.slides.length-1):m.value.slidePrev())})},[(0,t.Wm)(i.Z,{name:"angle-left"})],8,d),l[5]||(l[5]=(0,t.Uk)()),(0,t.wy)((0,t._)("button",{class:"stage-slider__icon stage-slider__icon--pause","aria-label":e.pauseLabel,type:"button",onClick:l[1]||(l[1]=e=>T())},[(0,t.Wm)(i.Z,{name:"pause"})],8,v),[[t.F8,k.value]]),l[6]||(l[6]=(0,t.Uk)()),(0,t.wy)((0,t._)("button",{class:"stage-slider__icon stage-slider__icon--play","aria-label":e.playLabel,type:"button",onClick:l[2]||(l[2]=e=>function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];m.value&&(e&&m.value.slideNext(),m.value.autoplay.start())}())},[(0,t.Wm)(i.Z,{name:"play"})],8,c),[[t.F8,!k.value]]),l[7]||(l[7]=(0,t.Uk)()),(0,t._)("button",{class:"stage-slider__icon stage-slider__icon--next","aria-label":e.nextLabel,type:"button",onClick:l[3]||(l[3]=e=>function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];m.value&&(e&&m.value.autoplay.stop(),m.value.isEnd?m.value.slideTo(0):m.value.slideNext())}())},[(0,t.Wm)(i.Z,{name:"angle-right"})],8,p)])])],512)):(0,t.kq)("v-if",!0)],544))}})}}]);
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.