{"version":3,"file":"shared-lib.DrRzzoDt.mjs","names":["useRef","useState","useCallback","metadata","metadata","siteMetadata","metadataVersion","__FramerMetadata__","siteMetadata"],"sources":["https:/framerusercontent.com/modules/AD7Uw4YI5gyvgBcoxAZD/e1dSlrRa54qjcgNFUOXe/RainbowBrandNameOverride.js","https:/framerusercontent.com/modules/bcNHwWqYr1rEkigyMLCc/F4JrJ7E3UwmeP191H7nf/pQUdnWbUI.js","https:/framerusercontent.com/modules/2urNfe6qN95IV4xN8nId/zf76t5U32JVOHnZuLkmZ/siteMetadata.js","https:/framerusercontent.com/modules/jvwEnMyJ602gjWwzMbSV/8Lem14xg8lUdrsGdffsQ/augiA20Il.js","https:/framerusercontent.com/modules/wXt3OKC2tm5UarbfVwYX/S1GOda0hB74HQaX34F4m/n5gW6SCps.js"],"sourcesContent":["// Implement a full-wordmark neon rainbow hover overlay with glyph-region activation, keeping the original black title as the base.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";export function withRainbowBrandNameReveal(Component){return /*#__PURE__*/forwardRef(function RainbowBrandNameReveal(props,ref){const isStatic=useIsStaticRenderer();const wrapperRef=useRef(null);const baseRef=useRef(null);const frameRef=useRef(null);const glyphRectsRef=useRef([]);const targetField=useRef({x:50,y:50,angle:140});const smoothField=useRef({x:50,y:50,angle:140});const[isHovering,setIsHovering]=useState(false);const[gradientField,setGradientField]=useState({x:50,y:50,angle:140});const measureGlyphRects=useCallback(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const wrapper=wrapperRef.current;const base=baseRef.current;if(!wrapper||!base)return;const hostRect=wrapper.getBoundingClientRect();const walker=document.createTreeWalker(base,window.NodeFilter.SHOW_TEXT);const measured=[];let node=walker.nextNode();while(node){const textNode=node;const value=textNode.textContent??\"\";for(let i=0;i<value.length;i++){const char=value[i];if(!char||/\\s/.test(char))continue;const range=document.createRange();range.setStart(textNode,i);range.setEnd(textNode,i+1);const rects=Array.from(range.getClientRects());for(const rect of rects){if(rect.width<=0||rect.height<=0)continue;measured.push({left:rect.left-hostRect.left,top:rect.top-hostRect.top,right:rect.right-hostRect.left,bottom:rect.bottom-hostRect.top});}range.detach?.();}node=walker.nextNode();}glyphRectsRef.current=measured;},[]);const isPointNearGlyph=useCallback((x,y)=>{const glyphRects=glyphRectsRef.current;if(glyphRects.length===0)return false;const threshold=6;for(const rect of glyphRects){if(x>=rect.left-threshold&&x<=rect.right+threshold&&y>=rect.top-threshold&&y<=rect.bottom+threshold){return true;}}return false;},[]);useEffect(()=>{const tick=()=>{const nextX=smoothField.current.x+(targetField.current.x-smoothField.current.x)*.38;const nextY=smoothField.current.y+(targetField.current.y-smoothField.current.y)*.38;const nextAngle=smoothField.current.angle+(targetField.current.angle-smoothField.current.angle)*.3;const next={x:nextX,y:nextY,angle:nextAngle};smoothField.current=next;startTransition(()=>setGradientField(next));frameRef.current=requestAnimationFrame(tick);};frameRef.current=requestAnimationFrame(tick);return()=>{if(frameRef.current!==null)cancelAnimationFrame(frameRef.current);};},[]);useEffect(()=>{if(typeof window===\"undefined\")return;measureGlyphRects();const wrapper=wrapperRef.current;if(!wrapper||typeof ResizeObserver===\"undefined\")return;const observer=new ResizeObserver(()=>measureGlyphRects());observer.observe(wrapper);return()=>observer.disconnect();},[measureGlyphRects]);const onPointerEnter=useCallback(event=>{measureGlyphRects();const rect=event.currentTarget.getBoundingClientRect();const x=event.clientX-rect.left;const y=event.clientY-rect.top;const ratioX=Math.max(0,Math.min(1,x/Math.max(rect.width,1)));const ratioY=Math.max(0,Math.min(1,y/Math.max(rect.height,1)));targetField.current={x:50+(ratioX-.5)*120,y:50+(ratioY-.5)*120,angle:140+(ratioX-.5)*180+(ratioY-.5)*110};startTransition(()=>setIsHovering(isPointNearGlyph(x,y)));},[isPointNearGlyph,measureGlyphRects]);const onPointerMove=useCallback(event=>{const rect=event.currentTarget.getBoundingClientRect();const x=event.clientX-rect.left;const y=event.clientY-rect.top;const ratioX=Math.max(0,Math.min(1,x/Math.max(rect.width,1)));const ratioY=Math.max(0,Math.min(1,y/Math.max(rect.height,1)));targetField.current={x:50+(ratioX-.5)*120,y:50+(ratioY-.5)*120,angle:140+(ratioX-.5)*180+(ratioY-.5)*110};startTransition(()=>setIsHovering(isPointNearGlyph(x,y)));},[isPointNearGlyph]);const onPointerLeave=useCallback(()=>{startTransition(()=>setIsHovering(false));},[]);if(isStatic){return /*#__PURE__*/_jsx(Component,{ref:ref,...props});}const rainbowGradient=`conic-gradient(from ${gradientField.angle}deg at ${gradientField.x}% ${gradientField.y}%, #ff00cc 0deg, #ff2bd6 45deg, #ff6b00 95deg, #ffe600 140deg, #7dff00 190deg, #00f5ff 245deg, #2f6bff 300deg, #8a2bff 345deg, #ff00cc 360deg), radial-gradient(circle at ${100-gradientField.x}% ${100-gradientField.y}%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%)`;return /*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,style:{...props.style,position:\"relative\",overflow:\"visible\",cursor:\"default\"},onPointerEnter:onPointerEnter,onPointerMove:onPointerMove,onPointerLeave:onPointerLeave,children:[/*#__PURE__*/_jsx(\"div\",{ref:baseRef,children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})}),/*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":true,className:\"rbnr-rainbow-overlay\",style:{position:\"absolute\",inset:0,pointerEvents:\"none\",opacity:isHovering?1:0,transition:\"opacity 140ms ease\",background:\"transparent\",backgroundColor:\"transparent\",backgroundImage:\"none\",boxShadow:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                            .rbnr-rainbow-overlay,\n                            .rbnr-rainbow-overlay > *,\n                            .rbnr-rainbow-overlay [data-framer-name],\n                            .rbnr-rainbow-overlay [data-framer-component-type]:not([data-framer-component-type=\"RichText\"]) {\n                                background: transparent !important;\n                                background-color: transparent !important;\n                                background-image: none !important;\n                                box-shadow: none !important;\n                            }\n                            .rbnr-rainbow-overlay [data-framer-component-type=\"RichText\"],\n                            .rbnr-rainbow-overlay [data-framer-component-type=\"RichText\"] :is(span, p, a, strong, em, b, i, u, s, small, mark, li, h1, h2, h3, h4, h5, h6, label, blockquote, code),\n                            .rbnr-rainbow-overlay :is(span, p, a, strong, em, b, i, u, s, small, mark, li, h1, h2, h3, h4, h5, h6, label, blockquote, code) {\n                                color: transparent !important;\n                                -webkit-text-fill-color: transparent !important;\n                                background-image: ${rainbowGradient} !important;\n                                -webkit-background-clip: text !important;\n                                background-clip: text !important;\n                                background-size: 175% 175%, 140% 140% !important;\n                                background-position: center center, center center !important;\n                            }\n                        `}),/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,background:\"transparent\",backgroundColor:\"transparent\",backgroundImage:\"none\",boxShadow:\"none\",color:\"transparent\",WebkitTextFillColor:\"transparent\"}})]})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRainbowBrandNameReveal\":{\"type\":\"reactHoc\",\"name\":\"withRainbowBrandNameReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RainbowBrandNameOverride.map","// Generated by Framer (69e7cf7)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-PxDOi .framer-styles-preset-11mh06y:not(.rich-text-wrapper), .framer-PxDOi .framer-styles-preset-11mh06y.rich-text-wrapper a { --framer-link-hover-text-color: #1a1a1a; --framer-link-hover-text-decoration: underline; --framer-link-text-color: #1a1a1a; --framer-link-text-decoration: none; transition-delay: 0s; transition-duration: 0.2s; transition-property: color; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }\"];export const className=\"framer-PxDOi\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (1a21bd5)\nexport default function metadata(params,activeLocale){return{description:\"Chameleon Robotics connects workers to robotics companies for a better future. \",favicon:\"https://framerusercontent.com/assets/UWbr3Xp8jauH1Y5FUof6cLKIbA.png\",robots:\"max-image-preview:large\",title:\"Chameleon Robotics\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (69e7cf7)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"27hjhl\",mediaQuery:\"(max-width: 1199.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-Z7OdG\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (3f060d6)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"8l8fo4\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1ehtnto\",mediaQuery:\"(max-width: 1199.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-MP5o7\",title:siteMetadata(params,activeLocale).title||\"About\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"kOACqL,SAAgB,EAA2B,EAAU,CAAC,OAAoB,EAAW,SAAgC,EAAM,EAAI,CAAC,IAAM,EAAS,EAAoB,EAAQ,EAAWA,EAAO,IAAI,EAAQ,EAAQA,EAAO,IAAI,EAAQ,EAASA,EAAO,IAAI,EAAQ,EAAcA,EAAO,CAAC,CAAC,EAAQ,EAAYA,EAAO,CAAC,EAAE,GAAG,EAAE,GAAG,MAAM,GAAG,CAAC,EAAQ,EAAYA,EAAO,CAAC,EAAE,GAAG,EAAE,GAAG,MAAM,GAAG,CAAC,EAAO,CAAC,EAAW,GAAeC,EAAS,EAAK,EAAO,CAAC,EAAc,GAAkBA,EAAS,CAAC,EAAE,GAAG,EAAE,GAAG,MAAM,GAAG,CAAC,EAAQ,EAAkBC,MAAgB,CAAC,GAAU,IAAS,QAAa,OAAO,SAAW,IAAY,OAAO,IAAM,EAAQ,EAAW,QAAc,EAAK,EAAQ,QAAQ,GAAG,CAAC,GAAS,CAAC,EAAK,OAAO,IAAM,EAAS,EAAQ,sBAAsB,EAAQ,EAAO,SAAS,iBAAiB,EAAK,EAAO,WAAW,SAAS,EAAQ,EAAS,CAAC,EAAM,EAAK,EAAO,SAAS,EAAE,KAAM,GAAK,CAAC,IAAM,EAAS,EAAW,EAAM,EAAS,aAAa,GAAG,IAAI,IAAI,EAAE,EAAE,EAAE,EAAM,OAAO,IAAI,CAAC,IAAM,EAAK,EAAM,GAAG,GAAG,CAAC,GAAM,KAAK,KAAK,CAAI,EAAE,SAAS,IAAM,EAAM,SAAS,YAAY,EAAE,EAAM,SAAS,EAAS,CAAC,EAAE,EAAM,OAAO,EAAS,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