PageSourceSearch

https://truery.com/assets/Go-CynbAd-H.js

js truery.com collected 2026-10-09 22:18:47 UTC 9,934 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GoGlassScene-CegBTXMC.js","assets/react-CTZ9aCdL.js","assets/logomarkMark3D-D5mQtOtr.js","assets/index-BRnJkMj8.js","assets/gsap-B1NRR3nH.js","assets/motion-CY9dSX8Y.js","assets/index-CKQULwGg.css","assets/TrueryMarkStatic-Bqt1M5Fr.js"])))=>i.map(i=>d[i]);
2import{r as l,j as e,L as T,d as G}from"./react-CTZ9aCdL.js";import{u as E,b as C,_ as L,S as M,s as D}from"./index-BRnJkMj8.js";import{T as O}from"./TrueryMarkStatic-Bqt1M5Fr.js";import{m as U}from"./motion-CY9dSX8Y.js";const S=9e-4,R=.0042,z=1,j=(t,n,s)=>Math.max(n,Math.min(s,t));function I(t,n){let{target:s,over:r}=t;return n>0?s>=1?r=j(r+n*R,0,1):s=j(s+n*S,0,1):n<0&&(r>0?r=j(r+n*R,0,1):s=j(s+n*S,0,1)),{target:s,over:r}}function P(t){return t>=z}const d=[.06,.28,.5,.72,.94],g=[{yaw:-.2,pitch:.15,roll:.06,scale:1,x:0,y:0,goldv:.55},{yaw:.98,pitch:-.2,roll:.15,scale:.85,x:.27,y:-.05,goldv:.26},{yaw:0,pitch:0,roll:0,scale:1.13,x:0,y:0,goldv:1},{yaw:-.58,pitch:.12,roll:-.1,scale:1.02,x:-.07,y:.02,goldv:.55},{yaw:0,pitch:.03,roll:0,scale:.95,x:0,y:.05,goldv:.62}],W=[{yaw:.55,pitch:-.32,roll:.1,scale:-.07,y:0},{yaw:-.45,pitch:.8,roll:-.2,scale:.06,y:.12},{yaw:-.38,pitch:.06,roll:1.55,scale:0,y:-.06},{yaw:.46,pitch:-.24,roll:.4,scale:-.05,y:.05}],x=(t,n,s)=>t+(n-t)*s,B=t=>t*t*t*(t*(t*6-15)+10);function se(t){if(t<=d[0])return{...g[0]};if(t>=d[d.length-1])return{...g[g.length-1]};let n=0;for(;n<d.length-1&&t>d[n+1];)n++;const s=(t-d[n])/(d[n+1]-d[n]),r=B(s),a=g[n],c=g[n+1],u=W[n],h=Math.sin(Math.PI*s);return{yaw:x(a.yaw,c.yaw,r)+u.yaw*h,pitch:x(a.pitch,c.pitch,r)+u.pitch*h,roll:x(a.roll,c.roll,r)+u.roll*h,scale:x(a.scale,c.scale,r)+u.scale*h,x:x(a.x,c.x,r),y:x(a.y,c.y,r)+u.y*h,goldv:x(a.goldv,c.goldv,r)}}const k="/scorecard",w=[{id:"s1",text:"Your product is excellent."},{id:"s2",text:"Your story sounds like everyone else."},{id:"s3",pre:"We find the one ",goldWord:"true",post:" thing only you can say."},{id:"s4",text:"And turn it into why they choose you."}],v={line:"Find the line only you can own.",cta:"Get your Story Gap Score",sub:"90 seconds · Free"},_="/logo-type.png";function Y({reduced:t,cores:n,isMobile:s,saveData:r,webgl:a}){return!t&&a&&n>=4&&!s&&!r}function V(){const t=E(),[n]=l.useState(()=>{if(typeof window>"u")return{cores:0,isMobile:!0,saveData:!0,webgl:!1};let s=!1;try{s=!!document.createElement("canvas").getContext("webgl2")}catch{s=!1}return{cores:navigator.hardwareConcurrency||2,isMobile:window.matchMedia("(max-width: 768px)").matches,saveData:!!navigator.connection?.saveData,webgl:s}});return Y({reduced:t,...n})}function N({size:t="min(42vh,360px)"}){const n=E();return e.jsx(U.div,{className:"pointer-events-none",style:{width:t,height:t,filter:"drop-shadow(0 24px 60px rgba(245,166,35,0.10))"},animate:n?void 0:{y:[0,-10,0]},transition:n?void 0:{duration:7,repeat:1/0,ease:"easeInOut"},children:e.jsx(O,{size:"100%",className:"h-full w-full"})})}function q({active:t,onCta:n}){return e.jsxs("div",{className:"flex flex-col items-center gap-7 text-center transition-opacity duration-700",style:{opacity:t?1:0},"aria-hidden":!t,children:[e.jsx("h2",{className:"font-drama text-[clamp(1.75rem,5vw,3.75rem)] font-light leading-[1.05] max-w-[15ch] text-[#FAF8F5]",children:v.line}),e.jsx("button",{type:"button",onClick:n,tabIndex:t?0:-1,disabled:!t,className:"rounded-full bg-[#F5A623] px-9 py-4 font-mono text-sm uppercase tracking-[0.14em] text-[#0A0A0B] shadow-[0_0_40px_rgba(245,166,35,0.25)] transition-transform duration-200 hover:-translate-y-0.5 hover:bg-[#FFBA33] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#F5A623]",children:v.cta}),e.jsx("p",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-[#6b6b73]",children:v.sub})]})}function K({activeBeat:t,onCta:n}){return e.jsxs("div",{className:"pointer-events-none fixed inset-0 z-10",children:[e.jsx(T,{to:"/",className:"pointer-events-auto absolute left-1/2 top-6 -translate-x-1/2 opacity-80 transition-opacity hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#F5A623]","aria-label":"TRUERY home",children:e.jsx("img",{src:_,alt:"TRUERY",width:95,height:16,className:"h-4 w-auto"})}),e.jsxs("div",{className:"absolute inset-0 flex items-center justify-center px-[8vw] text-center",children:[e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(closest-side at 50% 50%, rgba(10,10,11,0.6), rgba(10,10,11,0.28) 45%, transparent 72%)"}}),w.map((s,r)=>e.jsx("h2",{className:"absolute max-w-[17ch] font-drama text-[clamp(1.875rem,6.2vw,5.125rem)] font-light leading-[1.1] tracking-[-0.015em] text-[#FAF8F5] transition-opacity duration-700",style:{opacity:t===r?1:0}
2,"aria-hidden":t!==r,children:s.text??e.jsxs(e.Fragment,{children:[s.pre,e.jsx("em",{className:"italic text-[#F5A623]",children:s.goldWord}),s.post]})},s.id)),e.jsx("div",{className:`absolute ${t===w.length?"pointer-events-auto":"pointer-events-none"}`,children:e.jsx(q,{active:t===w.length,onCta:n})})]}),e.jsxs("div",{className:"absolute bottom-[7vh] left-1/2 flex -translate-x-1/2 flex-col items-center gap-2",style:{opacity:t>=w.length?0:.8},children:[e.jsx("span",{className:"h-10 w-px animate-pulse bg-gradient-to-b from-[#6b6b73] to-transparent"}),e.jsx("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-[#6b6b73]",children:"scroll"})]})]})}const Q=l.lazy(()=>L(()=>import("./GoGlassScene-CegBTXMC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])));class $ extends l.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n,s){console.error("[GlassErrorBoundary] glass scene failed, degrading to static mark:",n,s)}render(){return this.state.hasError?this.props.fallback:this.props.children}}function Z(t){const n=d.length;let s=0,r=1/0;for(let a=0;a<n;a++){const c=Math.abs(t-d[a]);c<r&&(r=c,s=a)}return s}function H(){const t=G(),n=V(),s=E(),r=l.useRef({current:0,target:0,over:0}),[a,c]=l.useState(0),u=l.useRef(0),h=l.useRef(!1),b=l.useCallback(()=>{h.current||(h.current=!0,C("Get your Story Gap Score","/go",k),t(k))},[t]);return l.useEffect(()=>{if(!n||s)return;const i=o=>{const p=I(r.current,o);r.current.target=p.target,r.current.over=p.over,P(p.over)&&b()},m=o=>{o.preventDefault(),i(o.deltaY)};let f=0;const y=o=>{f=o.touches[0].clientY},F=o=>{const p=o.touches[0].clientY;i((f-p)*2.1),f=p},A=o=>{o.code==="Space"&&document.activeElement?.tagName==="BUTTON"||(["ArrowDown","Space","PageDown"].includes(o.code)?(o.preventDefault(),i(150)):["ArrowUp","PageUp"].includes(o.code)&&(o.preventDefault(),i(-150)))};return window.addEventListener("wheel",m,{passive:!1}),window.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("touchmove",F,{passive:!0}),window.addEventListener("keydown",A),()=>{window.removeEventListener("wheel",m),window.removeEventListener("touchstart",y),window.removeEventListener("touchmove",F),window.removeEventListener("keydown",A)}},[n,s,b]),l.useEffect(()=>{if(!n||s)return;const i=()=>{const m=r.current;m.current+=(m.target-m.current)*.07;const f=Z(m.current);c(y=>y===f?y:f),u.current=requestAnimationFrame(i)};return u.current=requestAnimationFrame(i),()=>cancelAnimationFrame(u.current)},[n,s]),!n||s?e.jsxs("div",{className:"relative",children:[e.jsx(T,{to:"/","aria-label":"TRUERY home",className:"fixed left-1/2 top-6 z-20 -translate-x-1/2 opacity-80 hover:opacity-100",children:e.jsx("img",{src:_,alt:"TRUERY",width:95,height:16,className:"h-4 w-auto"})}),e.jsx("div",{className:"pointer-events-none fixed inset-0 flex items-center justify-center opacity-40",children:e.jsx(N,{})}),e.jsxs("div",{className:"relative z-10",children:[w.map(i=>e.jsx("section",{className:"flex min-h-[80svh] items-center justify-center px-[8vw] text-center",children:e.jsx("h2",{className:"max-w-[17ch] font-drama text-[clamp(1.875rem,6vw,4rem)] font-light leading-[1.1] text-[#FAF8F5]",children:i.text??e.jsxs(e.Fragment,{children:[i.pre,e.jsx("em",{className:"italic text-[#F5A623]",children:i.goldWord}),i.post]})})},i.id)),e.jsxs("section",{className:"flex min-h-[80svh] flex-col items-center justify-center gap-7 px-[8vw] text-center",children:[e.jsx("h2",{className:"font-drama text-[clamp(1.75rem,5vw,3.5rem)] font-light text-[#FAF8F5]",children:v.line}),e.jsx("button",{type:"button",onClick:b,className:"rounded-full bg-[#F5A623] px-9 py-4 font-mono text-sm uppercase tracking-[0.14em] text-[#0A0A0B]",children:v.cta}),e.jsx("p",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-[#6b6b73]",children:v.sub})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-0",children:e.jsx($,{fallback:e.jsx("div",{className:"flex h-full w-full items-center justify-center",children:e.jsx(N,{})}),children:e.jsx(l.Suspense,{fallback:e.jsx("div",{className:"flex h-full w-full items-center justify-center",children:e.jsx(N,{})}),children:e.jsx(Q,{progressRef:r})})})}),e.jsx(K,{activeBeat:a,onCta:b})]})}function J(){return e.jsxs("main",{id:"main",className:"relative min-h-[100svh] w-full overflow-x-hidden bg-[#0A0A0B] text-[#FAF8F5]",children:[e.jsx(M,{...D("/go")}),e.jsx("h1",{className:"sr-only",children:"TRUERY. We find the one true thing only you can say, and turn it into why they choose you."}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 z-0",style:{background:"radial-gradient(85% 82% at 50% 44%, rgba(245,166,35,0.075), rgba(245,166,35,0.012) 58%, transparent 100%)"}}),e.jsx(H,{}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 z-0",style:{background:"radial-gradient(ellipse at center, transparent 45%, rgba(5,5,6,0.55) 100%)"}})]})}const re=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"}));
2export{re as G,se as p};

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.