1"use strict";(self.webpackChunktrux_common=self.webpackChunktrux_common||[]).push([[1744],{11744:function(e,t,i){i.r(t);i(98992),i(54520),i(3949);var s=i(52891);t.default=class extends s.xI{static targets=["main","diff","groupMain","groupDiff","option","slider","slide","checkbox"];state="main";swiper;async connect(){this.options.forEach(function(e,t,i){[...e.querySelectorAll(".td-js-option")].length<1&&e.remove()}),this.options.filter(function(e){return"diff"===e.dataset.option}).forEach(function(e,t,i){let s=[...e.querySelectorAll(".td-js-option")];if(s.length<1)return;let r=s.map(e=>e.innerHTML),o=!1;r.forEach(function(e,t,i){r[0]!==e&&(o=!0)}),o||e.classList.contains("d-none")||e.remove()}),this.groupMain.forEach(this.removeGroup),this.groupDiff.forEach(this.removeGroup),this.groupDiff.length>0&&this.showDiff(),this.createSlider()}removeGroup(e){[...e.querySelectorAll(".td-js-option")].length<1&&e.remove()}createSlider=()=>{const e=this.sliderTargets,t=this.slideTargets;if(e){const i={320:{slidesPerView:"auto"},480:{slidesPerView:"auto"},768:{slidesPerView:"auto"},960:{slidesPerView:"auto"},1200:{slidesPerView:"auto"},1440:{slidesPerView:"auto"}},s=new Swiper(e,{slidesPerView:"auto",allowTouchMove:!1,breakpoints:i,navigation:{nextEl:".td-ttx-table .swiper__arrow--next",prevEl:".td-ttx-table .swiper__arrow--prev"},on:{init:s=>{let r=s.params.breakpoints[s.currentBreakpoint].slidesPerView;t.length/e.length<r?(s.navigation.nextEl.classList.add("swiper-button-lock"),s.navigation.prevEl.classList.add("swiper-button-lock")):this.initShowSlider(s.realIndex,i[s.currentBreakpoint].slidesPerView)}}});s.on("slideChange",e=>{this.initShowSlider(e.realIndex,i[e.currentBreakpoint].slidesPerView)}),this.swiper=s}};initShowSlider(e,t){this.options.forEach(function(i,s,r){let o=[...i.querySelectorAll(".td-js-option")];o.length<1||o.forEach((i,s)=>{s>=e+t||s<e?i.classList.add("d-none"):i.classList.remove("d-none")})})}showDiff(){this.checkboxTarget.style.display="flex"}changeState(){this.state="main"===this.state?"diff":"main",this.main.style.display="main"===this.state?"block":"none",this.diff.style.display="diff"===this.state?"block":"none"}get main(){return this.mainTarget}get diff(){return this.diffTarget}get groupMain(){return this.groupMainTargets}get groupDiff(){return this.groupDiffTargets}get options(){return this.optionTargets}slideNext(){this.swiper?.slideNext(void 0,!1)}slidePrev(){this.swiper?.slidePrev(void 0,!1)}}}}]);
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.