{"version":3,"file":"NavFlower.MXCS3rMY.mjs","names":["useRef","useCallback","useRef","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","c","J","ce","de","init_framer_DxfB3JJo","RenderTarget","withHoverDarken","hostRef","mediaRef","zoomTargetsRef","findMedia","candidates","eventTarget","candidate","roots","root","labeled","prepareMedia","match","child","media","inner","setHovered","hovered","DARKEN_BRIGHTNESS","ZOOM_SCALE","Component","props","node","ref","event","init_HoverDarken","init_jsx_runtime","ensureFont","FONT_ID","link","FONT_URL","normalize","path","linkPath","isCurrentLink","linkLabel","glimmer","head","i","odd","GLIMMER_MAP","ch","assignRef","withNavFlower","elRef","el","pillStyle","reduceMotion","color","FLOWERS","DEFAULT_FLOWER","flower","FLOWER_TOP","FONT_SIZE","RISE","FADE","current","hovering","timer","show","on","OPACITY","sparkle","SPARKLE_MS","onEnter","onLeave","watch","next","init_NavFlower"],"sources":["https:/framerusercontent.com/modules/gR72Meet5S1Q65QAVdOc/jqhSExYbTx3iEytO5JGk/HoverDarken.js","https:/framerusercontent.com/modules/efSqJo3utkhSTOmM6l30/es4fPhYuc14ZrDTJsjjA/NavFlower.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useRef}from\"react\";const ZOOM_SCALE=1.05;const DARKEN_BRIGHTNESS=.85;const MEDIA_LABEL=\"image-media-frame\";export function withHoverDarken(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const mediaRef=useRef(null);const zoomTargetsRef=useRef([]);const findMedia=useCallback(eventTarget=>{const candidates=[eventTarget,hostRef.current].filter(Boolean);for(const candidate of candidates){const roots=[candidate,candidate.parentElement,candidate.closest(\"a\")].filter(Boolean);for(const root of roots){const labeled=root.querySelector('[aria-label=\"'+MEDIA_LABEL+'\"]');if(labeled)return{root,media:labeled};}}return null;},[]);const prepareMedia=useCallback(eventTarget=>{const match=findMedia(eventTarget);if(!match)return false;const{root,media}=match;// Framer hover effects can otherwise dim the card wrapper and all copy.\nroot.style.setProperty(\"opacity\",\"1\",\"important\");root.style.setProperty(\"filter\",\"none\",\"important\");Array.from(root.children).forEach(child=>{if(child!==media&&child instanceof HTMLElement){child.style.setProperty(\"opacity\",\"1\",\"important\");child.style.setProperty(\"filter\",\"none\",\"important\");}});media.style.overflow=\"hidden\";media.style.transition=\"filter 0.3s ease\";mediaRef.current=media;const inner=Array.from(media.querySelectorAll(\"video, img, canvas, iframe\"));zoomTargetsRef.current=inner.length>0?inner:media.firstElementChild instanceof HTMLElement?[media.firstElementChild]:[media];zoomTargetsRef.current.forEach(node=>{node.style.transition=\"transform 0.5s ease\";node.style.willChange=\"transform\";});return true;},[findMedia]);const setHovered=useCallback((hovered,eventTarget)=>{if(!prepareMedia(eventTarget))return;mediaRef.current?.style.setProperty(\"filter\",hovered?`brightness(${DARKEN_BRIGHTNESS})`:\"brightness(1)\",\"important\");zoomTargetsRef.current.forEach(node=>{node.style.transform=hovered?`scale(${ZOOM_SCALE})`:\"scale(1)\";});},[prepareMedia]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{hostRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;},onMouseEnter:event=>{props.onMouseEnter?.(event);setHovered(true,event.currentTarget);},onMouseLeave:event=>{props.onMouseLeave?.(event);setHovered(false,event.currentTarget);}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withHoverDarken\":{\"type\":\"reactHoc\",\"name\":\"withHoverDarken\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HoverDarken.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";import{RenderTarget}from\"framer\";const FLOWERS={work:[\"@@()@@\",\"rgb(150, 110, 190)\"],play:[\"wWWWw\",\"rgb(90, 140, 160)\"],about:[\"(_)@(_)\",\"rgb(196, 120, 90)\"]};const DEFAULT_FLOWER=[\"(_)@(_)\",\"#6B825A\"];const GLIMMER_MAP={_:\".\",\"(\":\":\",\")\":\":\",\"@\":\"*\",w:\"~\",W:\"~\"};const OPACITY=1;const FONT_SIZE=11;const RISE=3;const FADE=.18;const SPARKLE_MS=260;const FLOWER_TOP=\"calc(100% - 12px)\";const FONT_ID=\"nav-flower-geist-mono\";const FONT_URL=\"https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&display=swap\";function ensureFont(){if(document.getElementById(FONT_ID))return;const link=document.createElement(\"link\");link.id=FONT_ID;link.rel=\"stylesheet\";link.href=FONT_URL;document.head.appendChild(link);}function normalize(path){return path.replace(/\\/+$/,\"\")||\"/\";}function linkPath(link){try{return normalize(new URL(link.href,window.location.href).pathname);}catch{return\"\";}}function isCurrentLink(link){return link.hasAttribute(\"data-framer-page-link-current\")||linkPath(link)===normalize(window.location.pathname);}function linkLabel(link){return(link.textContent||\"\").trim().toLowerCase();}function glimmer(head,odd){return[...head].map((ch,i)=>i%2===1===odd?GLIMMER_MAP[ch]??ch:ch).join(\"\");}function assignRef(ref,node){if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;}export function withNavFlower(Component){return /*#__PURE__*/forwardRef(function NavFlower(props,ref){const elRef=useRef(null);useEffect(()=>{const el=elRef.current;if(!el||RenderTarget.current()===RenderTarget.canvas)return;const link=el.matches(\"a\")?el:el.querySelector(\"a\");if(!link)return;ensureFont();const pillStyle=document.createElement(\"style\");pillStyle.textContent=`\n                [data-nav-ascii-link] {\n                    background: transparent !important;\n                }\n\n                @media (hover: hover) {\n                    [data-nav-ascii-box]:hover {\n                        padding-top: 0px !important;\n                    }\n                }\n            `;document.head.appendChild(pillStyle);link.setAttribute(\"data-nav-ascii-link\",\"\");el.setAttribute(\"data-nav-ascii-box\",\"\");const reduceMotion=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const[head,color]=FLOWERS[linkLabel(link)]??DEFAULT_FLOWER;const flower=document.createElement(\"span\");flower.setAttribute(\"aria-hidden\",\"true\");flower.textContent=head;Object.assign(flower.style,{position:\"absolute\",top:FLOWER_TOP,left:\"50%\",font:`500 ${FONT_SIZE}px/1.4 'Geist Mono', Consolas, monospace`,display:\"block\",width:\"max-content\",minWidth:\"max-content\",maxWidth:\"none\",height:\"auto\",overflow:\"visible\",padding:\"0 2px 3px\",boxSizing:\"content-box\",textOverflow:\"clip\",letterSpacing:\"0\",whiteSpace:\"pre\",color,opacity:\"0\",transform:`translate(-50%, ${RISE}px)`,pointerEvents:\"none\",transition:reduceMotion?\"none\":`opacity ${FADE}s ease, transform ${FADE}s ease`});el.appendChild(flower);let current=isCurrentLink(link);let hovering=false;let timer;const show=on=>{flower.style.opacity=on?String(OPACITY):\"0\";flower.style.transform=`translate(-50%, ${on?0:RISE}px)`;};const sparkle=on=>{clearInterval(timer);flower.textContent=head;if(!on||reduceMotion)return;let odd=false;timer=setInterval(()=>{odd=!odd;flower.textContent=glimmer(head,odd);},SPARKLE_MS);};const onEnter=()=>{hovering=true;show(true);sparkle(true);};const onLeave=()=>{hovering=false;sparkle(false);if(!current)show(false);};show(current);const watch=new MutationObserver(()=>{const next=isCurrentLink(link);if(next!==current){current=next;show(current||hovering);}});watch.observe(link,{attributes:true,attributeFilter:[\"data-framer-page-link-current\",\"href\"]});el.addEventListener(\"mouseenter\",onEnter);el.addEventListener(\"mouseleave\",onLeave);return()=>{clearInterval(timer);watch.disconnect();pillStyle.remove();link.removeAttribute(\"data-nav-ascii-link\");el.removeAttribute(\"data-nav-ascii-box\");el.removeEventListener(\"mouseenter\",onEnter);el.removeEventListener(\"mouseleave\",onLeave);flower.remove();};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{elRef.current=node;assignRef(ref,node);},style:{...props.style,position:\"relative\",overflow:\"visible\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withNavFlower\":{\"type\":\"reactHoc\",\"name\":\"withNavFlower\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# source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