{"version":3,"file":"Code_overrides.BT86WD21.mjs","names":["useState","useRef","useMemo"],"sources":["https:/framerusercontent.com/modules/w9IRQGFDdKbwYIXgYg5o/8554C2CekT4AZ8emS1sz/Code_overrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,startTransition,useEffect,useMemo,useRef,useState}from\"react\";function usePrefersReducedMotion(){const[reducedMotion,setReducedMotion]=useState(false);useEffect(()=>{if(typeof window!==\"undefined\"&&\"matchMedia\"in window){const mediaQuery=window.matchMedia(\"(prefers-reduced-motion: reduce)\");startTransition(()=>setReducedMotion(mediaQuery.matches));const handleChange=event=>{startTransition(()=>setReducedMotion(event.matches));};mediaQuery.addEventListener(\"change\",handleChange);return()=>mediaQuery.removeEventListener(\"change\",handleChange);}},[]);return reducedMotion;}export function ArtistHeaderScrollReveal(Component){return /*#__PURE__*/forwardRef(function ArtistHeaderScrollRevealOverride(props,ref){const prefersReducedMotion=usePrefersReducedMotion();const[isVisible,setIsVisible]=useState(true);const lastYRef=useRef(0);const visibleRef=useRef(true);useEffect(()=>{if(typeof window!==\"undefined\"){lastYRef.current=window.scrollY||0;visibleRef.current=true;const onScroll=()=>{const currentY=window.scrollY||0;const delta=currentY-lastYRef.current;const nearTop=currentY<=24;let nextVisible=visibleRef.current;if(nearTop){nextVisible=true;}else if(delta>0){nextVisible=false;}else if(delta<0){nextVisible=true;}if(nextVisible!==visibleRef.current){visibleRef.current=nextVisible;startTransition(()=>setIsVisible(nextVisible));}lastYRef.current=currentY;};window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);}},[]);const style=useMemo(()=>{const baseTransition=prefersReducedMotion?\"opacity 180ms ease\":\"clip-path 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease\";return{...props.style,willChange:prefersReducedMotion?\"opacity\":\"clip-path, opacity\",transition:baseTransition,opacity:isVisible?1:0,clipPath:prefersReducedMotion?\"inset(0 0 0 0)\":isVisible?\"inset(0 0 0 0)\":\"inset(0 100% 0 0)\",WebkitClipPath:prefersReducedMotion?\"inset(0 0 0 0)\":isVisible?\"inset(0 0 0 0)\":\"inset(0 100% 0 0)\",pointerEvents:isVisible?\"auto\":\"none\"};},[isVisible,prefersReducedMotion,props.style]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:style});});}export function WordHoverWave(Component){return /*#__PURE__*/forwardRef(function WordHoverWaveOverride(props,ref){const hostRef=useRef(null);const waveId=useMemo(()=>`word-hover-wave-${Math.random().toString(36).slice(2,10)}`,[]);useEffect(()=>{if(typeof document===\"undefined\")return;const styleId=\"word-hover-wave-override-style\";if(document.getElementById(styleId))return;const styleTag=document.createElement(\"style\");styleTag.id=styleId;styleTag.textContent=`\n                [data-word-hover-wave] [data-word-hover-wave-word] {\n                    display: inline-block;\n                    transform: translateY(0px);\n                    color: inherit;\n                    text-shadow: none;\n                    transition-property: transform, color, text-shadow;\n                    transition-duration: 260ms;\n                    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);\n                    will-change: transform, color, text-shadow;\n                }\n\n                [data-word-hover-wave][data-reduced-motion=\"true\"] [data-word-hover-wave-word] {\n                    transition-duration: 120ms;\n                }\n\n                [data-word-hover-wave] [data-word-hover-wave-word].whw-active {\n                    transform: translateY(-4px);\n                    color: rgba(42, 165, 255, 1);\n                    text-shadow:\n                        0 0 8px rgba(42, 165, 255, 0.85),\n                        0 0 18px rgba(0, 190, 255, 0.65),\n                        0 0 30px rgba(0, 120, 255, 0.45);\n                    transition-delay: 0ms;\n                }\n\n                [data-word-hover-wave] [data-word-hover-wave-word].whw-near {\n                    transform: translateY(-2px);\n                    color: rgba(36, 148, 245, 1);\n                    text-shadow:\n                        0 0 6px rgba(36, 148, 245, 0.7),\n                        0 0 14px rgba(0, 176, 255, 0.38);\n                    transition-delay: 30ms;\n                }\n\n                [data-word-hover-wave] [data-word-hover-wave-word].whw-far {\n                    transform: translateY(-1px);\n                    color: rgba(28, 132, 230, 1);\n                    text-shadow:\n                        0 0 4px rgba(28, 132, 230, 0.52),\n                        0 0 10px rgba(0, 164, 255, 0.28);\n                    transition-delay: 55ms;\n                }\n\n                [data-word-hover-wave][data-reduced-motion=\"true\"] [data-word-hover-wave-word].whw-active,\n                [data-word-hover-wave][data-reduced-motion=\"true\"] [data-word-hover-wave-word].whw-near,\n                [data-word-hover-wave][data-reduced-motion=\"true\"] [data-word-hover-wave-word].whw-far {\n                    transform: translateY(0px);\n                    text-shadow: none;\n                    transition-delay: 0ms;\n                }\n            `;document.head.appendChild(styleTag);},[]);useEffect(()=>{if(typeof window===\"undefined\")return;const host=hostRef.current;if(!host)return;const mediaQuery=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const setReducedMotionAttr=()=>{host.setAttribute(\"data-reduced-motion\",mediaQuery.matches?\"true\":\"false\");};setReducedMotionAttr();const splitTextNodes=()=>{const walker=document.createTreeWalker(host,NodeFilter.SHOW_TEXT);const targets=[];let current=walker.nextNode();while(current){const textNode=current;const value=textNode.nodeValue??\"\";const parent=textNode.parentElement;const alreadyWrapped=parent?.hasAttribute(\"data-word-hover-wave-word\");if(!alreadyWrapped&&value.trim().length>0){targets.push(textNode);}current=walker.nextNode();}targets.forEach(textNode=>{const value=textNode.nodeValue??\"\";const parent=textNode.parentNode;if(!parent)return;const parts=value.split(/(\\s+)/);if(parts.length<=1)return;const fragment=document.createDocumentFragment();parts.forEach(part=>{if(part.length===0)return;if(/^\\s+$/.test(part)){fragment.appendChild(document.createTextNode(part));return;}const span=document.createElement(\"span\");span.setAttribute(\"data-word-hover-wave-word\",\"true\");span.textContent=part;fragment.appendChild(span);});parent.replaceChild(fragment,textNode);});};const clearWave=()=>{const words=Array.from(host.querySelectorAll(\"[data-word-hover-wave-word]\"));words.forEach(word=>{word.classList.remove(\"whw-active\",\"whw-near\",\"whw-far\");});};const applyWave=target=>{const words=Array.from(host.querySelectorAll(\"[data-word-hover-wave-word]\"));const activeIndex=words.indexOf(target);if(activeIndex<0)return;clearWave();words.forEach((word,index)=>{const distance=Math.abs(index-activeIndex);if(distance===0)word.classList.add(\"whw-active\");if(distance===1)word.classList.add(\"whw-near\");if(distance===2)word.classList.add(\"whw-far\");});};splitTextNodes();const observer=new MutationObserver(()=>{splitTextNodes();});observer.observe(host,{childList:true,subtree:true,characterData:true});const onPointerOver=event=>{const target=event.target?.closest?.(\"[data-word-hover-wave-word]\");if(!target||!host.contains(target))return;applyWave(target);};const onPointerLeave=()=>{clearWave();};const onReducedMotionChange=()=>{setReducedMotionAttr();};host.addEventListener(\"pointerover\",onPointerOver);host.addEventListener(\"pointerleave\",onPointerLeave);mediaQuery.addEventListener(\"change\",onReducedMotionChange);return()=>{observer.disconnect();host.removeEventListener(\"pointerover\",onPointerOver);host.removeEventListener(\"pointerleave\",onPointerLeave);mediaQuery.removeEventListener(\"change\",onReducedMotionChange);};},[props.children,props.text]);const style=useMemo(()=>({...props.style,position:\"relative\",whiteSpace:\"pre-wrap\",wordBreak:\"normal\"}),[props.style]);return /*#__PURE__*/_jsx(Component,{ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref&&typeof ref===\"object\"){ref.current=node;}},...props,style:style,\"data-word-hover-wave\":waveId});});}export function ScaleDownPlayer(Component){return /*#__PURE__*/forwardRef(function ScaleDownPlayerOverride(props,ref){const style=useMemo(()=>{const existingTransform=typeof props.style?.transform===\"string\"?props.style.transform.trim():\"\";return{...props.style,transform:existingTransform?`${existingTransform} scale(0.6)`:\"scale(0.6)\",transformOrigin:\"center center\"};},[props.style]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:style});});}\nexport const __FramerMetadata__ = {\"exports\":{\"ArtistHeaderScrollReveal\":{\"type\":\"reactHoc\",\"name\":\"ArtistHeaderScrollReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WordHoverWave\":{\"type\":\"reactHoc\",\"name\":\"WordHoverWave\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ScaleDownPlayer\":{\"type\":\"reactHoc\",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