PageSourceSearch

https://driveberry.fr/wp-content/themes/drive-berry/dist/assets/js/block-2-12-contact-anim-hMnSL3zg.js

js driveberry.fr collected 2026-10-06 13:36:07 UTC 7,910 bytes, 9 lines download raw bytes

vendor: 7,910 bytes, lines 1-9
1import{g as nt}from"./gsap-core-ogJG83vu.js";/*!
2 * SplitText 3.15.0
3 * https://gsap.com
4 *
5 * @license Copyright 2026, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
6 * @author: Jack Doyle
7 */let D,P,Z=typeof Symbol=="function"?Symbol():"_split",K,dt=()=>K||X.register(window.gsap),$=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter:0,M=t=>t?typeof t=="string"?M(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((e,i)=>(typeof i=="string"?e.push(...M(i)):e.push(i),e),[]):[t]:[],tt=t=>M(t).filter(e=>e&&e.nodeType===1),Q=[],J=function(){},ht={add:t=>t()},pt=/\s+/g,et=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),G={left:0,top:0,width:0,height:0},ut=(t,e)=>{for(;++e<t.length&&t[e]===G;);return t[e]||G},it=({element:t,html:e,ariaL:i,ariaH:s})=>{t.innerHTML=e,i?t.setAttribute("aria-label",i):t.removeAttribute("aria-label"),s?t.setAttribute("aria-hidden",s):t.removeAttribute("aria-hidden")},st=(t,e)=>{if(e){let i=new Set(t.join("").match(e)||Q),s=t.length,l,f,r,a;if(i.size)for(;--s>-1;){f=t[s];for(r of i)if(r.startsWith(f)&&r.length>f.length){for(l=0,a=f;r.startsWith(a+=t[s+ ++l])&&a.length<r.length;);if(l&&a.length===r.length){t[s]=r,t.splice(s+1,l);break}}}}return t},rt=t=>window.getComputedStyle(t).display==="inline"&&(t.style.display="inline-block"),F=(t,e,i)=>e.insertBefore(typeof t=="string"?document.createTextNode(t):t,i),U=(t,e,i)=>{let s=e[t+"sClass"]||"",{tag:l="div",aria:f="auto",propIndex:r=!1}=e,a=t==="line"?"block":"inline-block",h=s.indexOf("++")>-1,N=y=>{let g=document.createElement(l),v=i.length+1;return s&&(g.className=s+(h?" "+s+v:"")),r&&g.style.setProperty("--"+t,v+""),f!=="none"&&g.setAttribute("aria-hidden","true"),l!=="span"&&(g.style.position="relative",g.style.display=a),g.textContent=y,i.push(g),g};return h&&(s=s.replace("++","")),N.collection=i,N},ct=(t,e,i,s)=>{let l=U("line",i,s),f=window.getComputedStyle(t).textAlign||"left";return(r,a)=>{let h=l("");for(h.style.textAlign=f,t.insertBefore(h,e[r]);r<a;r++)h.appendChild(e[r]);h.normalize()}},ot=(t,e,i,s,l,f,r,a,h,N)=>{var y;let g=Array.from(t.childNodes),v=0,{wordDelimiter:A,reduceWhiteSpace:k=!0,prepareText:H}=e,V=t.getBoundingClientRect(),R=V,q=!k&&window.getComputedStyle(t).whiteSpace.substring(0,3)==="pre",x=0,S=i.collection,o,c,B,n,m,_,L,d,p,W,C,E,T,j,w,u,I,b;for(typeof A=="object"?(B=A.delimiter||A,c=A.replaceWith||""):c=A===""?"":A||" ",o=c!==" ";v<g.length;v++)if(n=g[v],n.nodeType===3){for(w=n.textContent||"",k?w=w.replace(pt," "):q&&(w=w.replace(/\n/g,c+`
8`)),H&&(w=H(w,t)),n.textContent=w,m=c||B?w.split(B||c):w.match(a)||Q,I=m[m.length-1],d=o?I.slice(-1)===" ":!I,I||m.pop(),R=V,L=o?m[0].charAt(0)===" ":!m[0],L&&F(" ",t,n),m[0]||m.shift(),st(m,h),f&&N||(n.textContent=""),p=1;p<=m.length;p++)if(u=m[p-1],!k&&q&&u.charAt(0)===`
9`&&((y=n.previousSibling)==null||y.remove(),F(document.createElement("br"),t,n),u=u.slice(1)),!k&&u==="")F(c,t,n);else if(u===" ")t.insertBefore(document.createTextNode(" "),n);else{if(o&&u.charAt(0)===" "&&F(" ",t,n),x&&p===1&&!L&&S.indexOf(x.parentNode)>-1?(_=S[S.length-1],_.appendChild(document.createTextNode(s?"":u))):(_=i(s?"":u),F(_,t,n),x&&p===1&&!L&&_.insertBefore(x,_.firstChild)),s)for(C=$?st([...$.segment(u)].map(O=>O.segment),h):u.match(a)||Q,b=0;b<C.length;b++)_.appendChild(C[b]===" "?document.createTextNode(" "):s(C[b]));if(f&&N){if(w=n.textContent=w.substring(u.length+1,w.length),W=_.getBoundingClientRect(),W.top>R.top&&W.left<=R.left){for(E=t.cloneNode(),T=t.childNodes[0];T&&T!==_;)j=T,T=T.nextSibling,E.appendChild(j);t.parentNode.insertBefore(E,t),l&&rt(E)}R=W}(p<m.length||d)&&F(p>=m.length?" ":o&&u.slice(-1)===" "?" "+c:c,t,n)}t.removeChild(n),x=0}else n.nodeType===1&&(r&&r.indexOf(n)>-1?(S.indexOf(n.previousSibling)>-1&&S[S.length-1].appendChild(n),x=n):(ot(n,e,i,s,l,f,r,a,h,!0),x=0),l&&rt(n))};const lt=class at{constructor(e,i){this.isSplit=!1,dt(),this.elements=tt(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=i,this.elements.forEach(r=>{var a;i.overwrite!==!1&&((a=r[Z])==null||a._data.orig.filter(({element:h})=>h===r).forEach(it)),r[Z]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let s=[],l,f=()=>{let r=s.length,a;for(;r--;){a=s[r];let h=a.element.offsetWidth;if(h!==a.width){a.width=h,this._split();return}}};this._data={orig:s,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(l),l=setTimeout(f,200)})},J(this),this.split(i)}split(e){return(this._ctx||ht).add(()=>{this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:i="chars,words,lines",aria:s="auto",deepSlice:l=!0,smartWrap:f,onSplit:r,autoSplit:a=!1,specialChars:h,mask:N}=this.vars,y=i.indexOf("lines")>-1,g=i.indexOf("chars")>-1,v=i.indexOf("words")>-1,A=g&&!v&&!y,k=h&&("push"in h?new RegExp("(?:"+h.join("|")+")","gu"):h),H=k?new RegExp(k.source+"|"+et.source,"gu"):et,V=!!e.ignore&&tt(e.ignore),{orig:R,animTime:q,obs:x}=this._data,S;(g||v||y)&&(this.elements.forEach((o,c)=>{R[c]={element:o,html:o.innerHTML,ariaL:o.getAttribute("aria-label"),ariaH:o.getAttribute("aria-hidden")},s==="auto"?o.setAttribute("aria-label",(o.textContent||"").trim()):s==="hidden"&&o.setAttribute("aria-hidden","true");let B=[],n=[],m=[],_=g?U("char",e,B):null,L=U("word",e,n),d,p,W,C;if(ot(o,e,L,_,A,l&&(y||A),V,H,k,!1),y){let E=M(o.childNodes),T=ct(o,E,e,m),j,w=[],u=0,I=E.map(z=>z.nodeType===1?z.getBoundingClientRect():G),b=G,O;for(d=0;d<E.length;d++)j=E[d],j.nodeType===1&&(j.nodeName==="BR"?((!d||E[d-1].nodeName!=="BR")&&(w.push(j),T(u,d+1)),u=d+1,b=ut(I,d)):(O=I[d],d&&O.top>b.top&&O.left<b.left+b.width-1&&(T(u,d),u=d),b=O));u<d&&T(u,d),w.forEach(z=>{var Y;return(Y=z.parentNode)==null?void 0:Y.removeChild(z)})}if(!v){for(d=0;d<n.length;d++)if(p=n[d],g||!p.nextSibling||p.nextSibling.nodeType!==3)if(f&&!y){for(W=document.createElement("span"),W.style.whiteSpace="nowrap";p.firstChild;)W.appendChild(p.firstChild);p.replaceWith(W)}else p.replaceWith(...p.childNodes);else C=p.nextSibling,C&&C.nodeType===3&&(C.textContent=(p.textContent||"")+(C.textContent||""),p.remove());n.length=0,o.normalize()}this.lines.push(...m),this.words.push(...n),this.chars.push(...B)}),N&&this[N]&&this.masks.push(...this[N].map(o=>{let c=o.cloneNode();return o.replaceWith(c),c.appendChild(o),o.className&&(c.className=o.className.trim().split(" ").map(B=>B+"-mask").join(" ")),c.style.overflow="clip",c}))),this.isSplit=!0,P&&y&&a&&P.addEventListener("loadingdone",this._split),(S=r&&r(this))&&S.totalTime&&(this._data.anim=q?S.totalTime(q):S),y&&a&&this.elements.forEach((o,c)=>{R[c].width=o.offsetWidth,x&&x.observe(o)})}),this}kill(){let{obs:e}=this._data;e&&e.disconnect(),P==null||P.removeEventListener("loadingdone",this._split)}revert(){var e,i;if(this.isSplit){let{orig:s,anim:l}=this._data;this.kill(),s.forEach(it),this.chars.length=this.words.length=this.lines.length=s.length=this.masks.length=0,this.isSplit=!1,l&&(this._data.animTime=l.totalTime(),l.revert()),(i=(e=this.vars).onRevert)==null||i.call(e,this)}return this}static create(e,i){return new at(e,i)}static register(e){D=D||e||window.gsap,D&&(M=D.utils.toArray,J=D.core.context||J),!K&&window.innerWidth>0&&(P=document.fonts,K=!0)}};lt.version="3.15.0";let X=lt;nt.registerPlugin(X);function gt(t){const e=t.querySelector(".block-contact-us__title"),i=t.querySelector(".block-contact-us__description"),s=t.querySelectorAll(".block-contact-us__detail-item"),l=t.querySelector(".block-contact-us__form"),f=nt.timeline({scrollTrigger:{trigger:t,start:"top 80%"}}),r=new X(e,{type:"words, chars"});f.from(r.chars,{opacity:0,y:20,duration:.5,stagger:.02}).from(i,{opacity:0,y:20,duration:.5},"-=0.4").from(s,{opacity:0,y:20,duration:.5,stagger:.1},"-=0.4").from(l,{opacity:0,y:20,duration:.5},"-=0.4")}export{gt as init};

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.