PageSourceSearch

https://lingopie.com/_nuxt/BCGkniLV.js

js lingopie.com collected 2026-09-24 09:25:30 UTC 8,984 bytes, 1 lines download raw bytes

1import{H as se}from"./CbU2LrsF.js";import{B as W}from"./CfSGoBI8.js";import{g as ae}from"./B4xoU7OY.js";import{u as b,a as P}from"./CYcgUxAl.js";import{_ as $,r as E,k as I,o as V,Y as ie,x as m,y as u,L as w,G as O,E as q,e as K,z as r,Z as N,C as B,I as G,D,A as _,J as X,a as re,F as de,B as s,H as le,$ as ue,q as ce}from"./DsKae3Mh.js";import{h as pe,L as fe,S as ve,a as me,H as he,b as Se,C as Te,c as ge,B as _e,d as Re,e as we,U as ye,f as Ee,F as Oe,g as Ae}from"./DYaz9_Dl.js";import{S as ke}from"./3rsqbgMD.js";import{u as Ie}from"./CXZV8HU2.js";import"./vQbAx6NM.js";const Ce={class:"header-video-block"},De=["src"],Pe={__name:"VideoPart",setup(C){const{isScreenLessThan600:d}=b(),l=P(),i=E(null),c=E(!1),v=I(()=>ae()),R=I(()=>l.isVideoAnimated),A=I(()=>d.value?`${v.value}/assets/homepage/homepage_video_m.mp4`:`${v.value}/assets/homepage/homepage_video.mp4`),n=()=>{i.value&&i.value.play()},T=()=>{c.value=!0};return V(()=>{typeof window<"u"&&(document.readyState==="complete"?T():window.addEventListener("load",T))}),ie(R,g=>{g&&i.value&&(i.value.currentTime=.7,i.value.play())}),(g,y)=>(u(),m("div",Ce,[c.value&&!O(d)?(u(),m("video",{key:0,ref_key:"videoRef",ref:i,src:A.value,muted:"",loop:"",playsinline:"",preload:"none",alt:"Video Placeholder",class:"header-video-element",onLoadeddata:n,onCanplay:n,onLoadstart:n},null,40,De)):w("",!0)]))}},$e=$(Pe,[["__scopeId","data-v-9c7b26e5"]]),Le={class:"hero-title-container"},He={key:1,class:"word-popup word-popup-1"},Ne={key:0,class:"word-popup word-popup-2"},Be={class:"hero-title-container"},be={key:0,class:"word-popup bottom word-popup-3"},Ve={key:0,class:"word-popup bottom word-popup-4"},xe={__name:"HeroTitle",setup(C){const{isScreenLessThan600:d,isScreenLessThan1024:l,isScreenLessThan1440:i}=b(),c=E(!1),v=P(),R=E(null),{locale:A}=q(),n=E({1:!1,2:!1,3:!1,4:!1});function T(a){c.value=!1,!d.value&&(n.value[a]=!0,v.setIsWordHovered(!0))}function g(a){c.value=!1,!d.value&&(n.value[a]=!1,v.setIsWordHovered(!1))}function y(a){if(c.value=!1,!!d.value){for(const e in n.value)e!=a&&(n.value[e]=!1);n.value[a]=!n.value[a]}}function h(a){if(d.value&&R.value&&!R.value.contains(a.target))for(const e in n.value)n.value[e]=!1}return V(()=>{(!i.value||d.value)&&setTimeout(()=>{c.value=!0},1e3),document.addEventListener("click",h)}),K(()=>{document.removeEventListener("click",h)}),(a,e)=>(u(),m("h2",{ref_key:"heroTitleRef",ref:R,class:X(["hero-title video-title",{[O(A)]:!0}])},[r("div",Le,[r("span",{class:"first-word-container",onMouseenter:e[1]||(e[1]=p=>T(1)),onMouseleave:e[2]||(e[2]=p=>g(1)),onClick:e[3]||(e[3]=p=>y(1))},[c.value?(u(),N(pe,{key:0,class:"header-tooltip","arrow-position":"bottom","background-color":O(l)?"#B2B2B2":"#D9F078","text-color":"#000000","bounce-direction":"top","show-bounce-animation":!0,"icon-color":"#000000",onHideTooltip:e[0]||(e[0]=p=>c.value=!1),width:"160px"},{default:B(()=>[O(i)?(u(),m(G,{key:0},[D(_(a.$t("hero.title.tooltipTap")),1)],64)):(u(),m(G,{key:1},[D(_(a.$t("hero.title.tooltipHover")),1)],64))]),_:1},8,["background-color"])):w("",!0),n.value[1]?(u(),m("div",He,e[13]||(e[13]=[r("div",{class:"word-popup-content"},null,-1)]))):w("",!0),r("span",null,_(a.$t("hero.title.word1")),1)],32),r("span",{class:"second-word-container",onMouseenter:e[4]||(e[4]=p=>T(2)),onMouseleave:e[5]||(e[5]=p=>g(2)),onClick:e[6]||(e[6]=p=>y(2))},[n.value[2]?(u(),m("div",Ne,e[14]||(e[14]=[r("div",{class:"word-popup-content"},null,-1)]))):w("",!0),r("span",null,_(a.$t("hero.title.word2")),1)],32)]),r("div",Be,[r("span",{class:"third-word-container",onMouseenter:e[7]||(e[7]=p=>T(3)),onMouseleave:e[8]||(e[8]=p=>g(3)),onClick:e[9]||(e[9]=p=>y(3))},[n.value[3]?(u(),m("div",be,e[15]||(e[15]=[r("div",{class:"word-popup-content"},null,-1)]))):w("",!0),r("span",null,_(a.$t("hero.title.word3")),1)],32),r("span",{class:"fourth-word-container",onMouseenter:e[10]||(e[10]=p=>T(4)),onMouseleave:e[11]||(e[11]=p=>g(4)),onClick:e[12]||(e[12]=p=>y(4))},[n.value[4]?(u(),m("div",Ve,e[16]||(e[16]=[r("div",{class:"word-popup-content"},null,-1)]))):w("",!0),r("span",null,_(a.$t("hero.title.word4")),1)],32)])],2))}},Me=$(xe,[["__scopeId","data-v-c3411d2e"]]),Ue={class:"header-center"},Ye={class:"hero-subtitle"},Fe={class:"header-video"},ze={__name:"VideoContent",setup(C){const{$gsap:d,$ScrollTrigger:l}=re(),i=le(),{t:c}=q(),v=P(),{isScreenLessThan600:R,isScreenLessThan1440:A,isScreenLessThan1920:n,isScreenMoreThan2560:T}=b(),g=E(null),y=E({top:630,yPercent:0,xPercent:0});let h=null;const a=()=>{var F,z;const o=document.querySelector(".shows-slider");if(!o)return{top:M.value,yPercent:0,xPercent:0};const t=l.getById("VIDEO-SCROLL"),f=n.value?620:660,S=((z=(F=t==null?void 0:t.pin)==null?void 0:F.spacer)==null?void 0:z.offsetHeight)||f;if(!((window.scrollY||window.pageYOffset)<1e3))return{top:M.value,yPercent:0,xPercent:0};const L=o.getBoundingClientRect();let k=o.offsetParent;k||(k=document.body);const H=k.getBoundingClientRect();return{top:L.top-H.top+S,yPercent:0,xPercent:0}},e={PROGRESS_THRESHOLD:.1,KEY_PROGRESS_POINTS:[.25,.5,.75,1],DURATIONS:{FADE:1,BORDER_RADIUS:1,CONTENT_TRANSFORM:20,SLIDER_FADE:20,EMPTY_TIME:40,CONTENT_HIDE:1},BORDER_RADIUS:{START:"0px",END:"90px"}};function p(){!d||!l||(ne(),J(),l.config({autoRefreshEvents:"resize"}))}function J(){l.create({id:"VIDEO-SCROLL",trigger:".header-content",start:"top top",end:"+=1200vh",pin:!0,pinSpacing:!0,scrub:.1,normalizeScroll:!0,anticipatePin:1,animation:h,onUpdate:o=>{const t=o.progress;t>0&&t<1?v.setTopVideoHidden(!1):t>=1&&v.setTopVideoHidden(!0),y.value=a()},onRefresh:()=>{var S;const o=window.scrollY||window.pageYOffset,t=((S=g.value)==null?void 0:S.offsetHeight)||0,f=o>t;v.setTopVideoHidden(f)}})}function Q(){let o=0;return{updateProgress(t){t>e.PROGRESS_THRESHOLD&&!v.isVideoAnimated?v.setIsVideoAnimated(!0):t<=e.PROGRESS_THRESHOLD&&v.isVideoAnimated&&v.setIsVideoAnimated(!1),e.KEY_PROGRESS_POINTS.some(S=>o<S&&t>=S||o>S&&t<=S)&&window.dispatchEvent(new CustomEvent("videoContentAnimationComplete")),o=t}}}function Z(o){return o.fromTo([".header-center",".language-slider"],{opacity:1},{opacity:0,duration:e.DURATIONS.FADE})}function j(o){return o.fromTo([".header-video-block"],{borderRadius:e.BORDER_RADIUS.START,immediateRender:!0,overwrite:"auto"},{borderRadius:e.BORDER_RADIUS.END,duration:e.DURATIONS.BORDER_RADIUS},"<")}function ee(o){const t=document.querySelector(".show-slide"),f=document.querySelector(".header-content"),S=t.offsetWidth,U=t.offsetHeight,Y=f.offsetWidth,L=f.offsetHeight,k=S/Y,H=U/L;return o.to(".header-content",{position:"fixed",zIndex:-1,top:n.value?"30%":"50%",left:"50%",xPercent:-50,yPercent:-50,scaleX:k,scaleY:H,duration:e.DURATIONS.CONTENT_TRANSFORM},"<"),o.to(".header-content",{opacity:0,zIndex:-1,display:"none",duration:e.DURATIONS.CONTENT_HIDE},">"),o}function oe(o){return o.fromTo(".shows-slider",{position:"fixed",top:n.value?"50%":"70%",yPercent:-50},{position:"fixed",top:n.value?"30%":"50%",yPercent:-50,duration:e.DURATIONS.CONTENT_TRANSFORM,zIndex:1e3,cursor:"pointer"}),o.fromTo(".shows-slider",{opacity:0}
1,{opacity:1,duration:e.DURATIONS.SLIDER_FADE},"<"),o}function te(o){const t=document.querySelector(".shows-slider");let f;return T.value?f="-200px":n.value?f="-600px":f="-250px",o.to(t,{top:f,duration:e.DURATIONS.EMPTY_TIME,ease:"none"}),o.fromTo(".stream-global-wrapper",{opacity:0},{opacity:1,duration:3,zIndex:1e4},"<"),o}function ne(){const o=Q();h=d.timeline({onUpdate:()=>{o.updateProgress(h.progress())}}),Z(h),j(h),oe(h),ee(h),te(h)}const x=()=>{i.trackEvent({event:"hero_cta_click",action:c("common.ctaButton")}),Ie.navigateTo(`${ke}/registration`)},M=I(()=>T.value?1e3:n.value?640:820);return V(()=>{A.value||de(()=>{p()})}),K(()=>{var t;l&&((t=l.getById("VIDEO-SCROLL"))==null||t.kill());const o=f=>f.preventDefault();window.removeEventListener("wheel",o)}),(o,t)=>(u(),m("div",{class:"header-content",ref_key:"headerContentRef",ref:g},[r("div",Ue,[s(Me),r("h1",Ye,_(o.$t("hero.subtitle")),1),O(R)?w("",!0):(u(),N(W,{key:0,class:"header-button header-button-desktop",onClick:x,size:"extra-big"},{default:B(()=>[D(_(o.$t("common.ctaButton")),1)]),_:1}))]),s(fe),O(R)?(u(),N(W,{key:0,class:"header-button",onClick:x,size:"extra-big"},{default:B(()=>[D(_(o.$t("common.ctaButton")),1)]),_:1})):w("",!0),r("div",Fe,[s($e)])],512))}},We=$(ze,[["__scopeId","data-v-b802af0d"]]),Ge={__name:"VideoBlock",setup(C){const d=P(),l=I(()=>d.isTopVideoHidden);return(i,c)=>(u(),m("section",{class:X(["video-block",{animated:O(l)}])},[s(We)],2))}},qe=$(Ge,[["__scopeId","data-v-f66ff179"]]),Ke={class:"lingopie-app",id:"lingopie-app"},ao={__name:"preview-videoblock",async setup(C){let d,l;{const i=window.location.hostname;i.includes("staging")||i.includes("localhost")||i.includes("127.0.0.1")||([d,l]=ue(()=>ce("/",{})),await d,l())}return(i,c)=>(u(),m("div",Ke,[s(se,{"is-video-page":!0}),s(qe),s(ve,{"is-video-page":!0}),s(me,{"is-video-page":!0}),s(he),s(Se),s(Te),s(ge),s(_e),s(Re),s(we),s(ye),s(Ee),s(Oe),s(Ae)]))}};export{ao as default};

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.