1/* empty css */import{g as i}from"./gsap-DYCeNrut.js";import{t as E}from"./team-BlCHZ-bJ.js";import{t as j,m as C,r as R}from"./member-rock-DvwrC2Ce.js";import"./three-core-RN1XkXoj.js";import"./team-models-Bh3CuYuF.js";import"./asset-cache-BWOQNrb8.js";import"./loaders-CP6wG4Mq.js";import"./three-addons-B1nadU96.js";let d=null,p=null,m=null;function x(){p?.kill(),p=null,m?.kill(),m=null,d?.(),d=null}function $(r){const t=(r.dataset.slug??"").toLowerCase();return t?E.find(o=>o.slug.toLowerCase()===t)??null:null}const W={build(r){x();const t=r.querySelector("#page-team-profile");if(!t)return;i.set(t,{autoAlpha:0}),document.documentElement.style.visibility="visible";const o=$(t);if(!o)return;const a=r.querySelector(".team-gradient-layer");a&&(a.style.backgroundImage=j(o.slug),i.set(a,{autoAlpha:0}));const e=r.querySelector("#team-bio");e&&i.set(e,{"--bio-rule-opacity":0});const n=r.querySelector(".team-portrait");n&&o.photo?.url&&n.style.setProperty("--team-portrait-image",`url("${o.photo.url}")`);const l=r.querySelector(".u-department-rock");l&&(d=C(l,R(o)))},enter(r){document.documentElement.style.visibility="visible",p?.kill();const t=r.next.container,o=t.querySelector("#page-team-profile"),a=t.querySelector(".page-space-team-inner"),e=i.timeline({defaults:{ease:"power2.out"}});if(!o||!a)return e;const n=[...t.querySelectorAll(".u-department-row, .team-name, .team-title, .team-linkedin, .team-summary, .team-portrait, .team-portrait-bottom, .team-name-rule, .profile-projects-label, .profile-project[data-cms-generated]")];n.length>0&&i.set(n,{clearProps:"opacity,visibility,transform,filter"});const l={clearProps:"opacity,visibility,transform"};e.to(o,{autoAlpha:1,duration:.5},0);const c=y=>a.querySelector(`:scope > i:nth-of-type(${y})`),[b,h,g,S]=[c(1),c(2),c(3),c(4)];b&&e.from(b,{top:"50%",autoAlpha:0,duration:.5},0),h&&e.from(h,{bottom:"50%",autoAlpha:0,duration:.5},"<"),g&&e.from(g,{left:"50%",autoAlpha:0,duration:.5},"<"),S&&e.from(S,{right:"50%",autoAlpha:0,duration:.5},"<");const q=a.querySelector(":scope > .back-button");q&&e.from(q,{autoAlpha:0,duration:.2},.4);const u=t.querySelector(".team-portrait"),A=t.querySelector(".team-portrait-bottom");u&&(e.set(u,{filter:"saturate(0)"},0),e.fromTo(u,{autoAlpha:0},{autoAlpha:1,duration:.5,ease:"bounce.out",clearProps:"opacity,visibility"},.35)),A&&e.fromTo(A,{autoAlpha:0},{autoAlpha:1,duration:.5,ease:"bounce.out",...l},.35);const f=[t.querySelector(".u-department-row"),t.querySelector(".team-name"),t.querySelector(".team-title"),t.querySelector(".team-linkedin[href]"),t.querySelector(".team-summary")].filter(y=>y!==null),s=.75;f.length>0&&e.fromTo(f,{autoAlpha:0},{autoAlpha:1,duration:.5,ease:"bounce.out",stagger:.15,...l},s);const k=t.querySelector("#team-bio > .team-name-rule");k&&e.fromTo(k,{autoAlpha:0},{autoAlpha:1,duration:.5,...l},s);const v=t.querySelector("#team-bio");v&&e.fromTo(v,{"--bio-rule-opacity":0},{"--bio-rule-opacity":1,duration:.5,clearProps:"--bio-rule-opacity"},.5);const T=t.querySelector("#profile-projects"),L=[...t.querySelectorAll(".profile-project[data-cms-generated]")];T&&L.length>0&&(e.fromTo(T.querySelector(".profile-projects-label"),{autoAlpha:0},{autoAlpha:.6,duration:.4,clearProps:"visibility"},s),e.fromTo(L,{autoAlpha:0},{autoAlpha:1,duration:.5,ease:"bounce.out",stagger:.05,...l},s+.15));const P=s+.5+Math.max(0,f.length-1)*.15,w=t.querySelector(".team-gradient-layer");return w&&e.to(w,{autoAlpha:1,duration:.6},P),u&&e.to(u,{filter:"saturate(1)",duration:.6,clearProps:"filter"},P),p=e,e},leave(r){m?.kill();const t=r.current.container,o=i.timeline();return o.set(t,{pointerEvents:"none"},0),o.to(t.querySelector("#page-team-profile"),{autoAlpha:0,duration:.35,ease:"power2.in"},0),m=o,o},destroy(){x()}};export{W 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.