1"use strict";(self.webpackChunknourish=self.webpackChunknourish||[]).push([[330],{285:(e,t,i)=>{var s=i(236),n=i(738),o=i(692);class h{$el=o("section.app-information-swiper");selected=0;swipers=[];constructor(){this.$el.length&&this.init()}init(){this.createPhone(),this.createSwiper(),this.handleButtonClick(),this.alignTheLine(),this.update(),o(window).on("resize",(()=>{this.onWindowResize()}))}onWindowResize(){this.alignTheLine()}update(){this.setActiveButton(),this.goToActiveSlide(),this.transformLine()}createPhone(){this.$el.find(".phone-template").clone().appendTo(this.$el.find(".phone"))}createSwiper(){o(this.$el.find(".swiper")).each(((e,t)=>{this.swipers.push(new s.A(t,{grabCursor:!1,allowTouchMove:!1}))}))}pinElement(){n.Ay.to(this.$el.find(".button-wrapper"),{scrollTrigger:{trigger:this.$el,start:"40% 80%",end:"50% top",markers:!0,scrub:!0,pin:!0},y:0})}handleButtonClick(){this.$el.find("button").on("click, mouseenter",(e=>{const t=o(e.currentTarget).data("index");this.setSelected(t)}))}setSelected(e){this.selected=e,this.update()}setActiveButton(){this.$el.find("button").removeClass("bg-white"),this.$el.find(`.button-${this.selected} button`).addClass("bg-white")}goToActiveSlide(){this.swipers.forEach((e=>{e.slideTo(this.selected)}))}alignTheLine(){const e=this.$el.find("button").get(0).getBoundingClientRect().left,t=this.$el.find(".line-connector svg"),i=t.width(),s=e-(t.position().left+i+10);return t.css({transform:`translateX(${s}px)`}),s}transformLine(){const e=this.$el.find(".line-connector svg"),t=e.height()/2,i=this.$el.find(`.button-${this.selected}`),s=i.position().top,o=i.outerHeight(),h=e.width(),r=s+o/2;n.Ay.to(e.find("circle"),{duration:.5,attr:{cy:r,cx:h-10}}),n.Ay.to(e.find("path"),{duration:.5,attr:{d:`M0,${t} h${h/2} V${r} H${h-10}`}})}}o((function(){new h}))},738:(e,t,i)=>{i.d(t,{Ay:()=>o,os:()=>o});var s=i(607),n=i(650),o=s.os.registerPlugin(n.H0)||s.os;o.core.Tween}},e=>{e.O(0,[804,634],(()=>e(e.s=285))),e.O()}]);
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.