{"version":3,"file":"TextMagnifier.4M3Pwlcc.mjs","names":["i","a","r","l","n","s","t","u","c"],"sources":["https:/framerusercontent.com/modules/2Swf4FUUNlAQOpEhx8tM/NyAwdFNclmcc8Vo1GtWR/TextMagnifier.js"],"sourcesContent":["import{jsx as e}from\"react/jsx-runtime\";import{motion as t,useMotionTemplate as o,useSpring as r,useTransform as l,useMotionValue as i,useMotionValueEvent as n,transform as s}from\"framer-motion\";import{useRef as a}from\"react\";import{addPropertyControls as u,ControlType as c}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function f(t){let o=i(0);return /*#__PURE__*/e(\"div\",{style:{fontSize:36,...t.font,position:\"relative\",cursor:\"default\",color:t.color,whiteSpace:\"pre-wrap\",overflow:\"visible\"},onMouseLeave:()=>{o.set(1/0);},onMouseMove:e=>{o.set(e.clientX);},children:t.text.split(\"\").map((t,r)=>/*#__PURE__*/e(p,{c:t,mouseX:o},r))});}function p({c:i,mouseX:u}){let c=a(null),f=[1,1.2],p=r(1,{stiffness:350,damping:40}),d=l(p,f,[0,.07]),m=l(p,f,[0,.05]),x=l(p,f,[1,.95]);return n(u,\"change\",e=>{if(c.current){let{left:t,width:o}=c.current.getBoundingClientRect();p.set(s(Math.abs(t+o/2-e),[70,0],f));}}),/*#__PURE__*/e(t.span,{ref:c,style:{display:\"inline-block\",scaleX:p,scaleY:x,WebkitTextStrokeColor:\"currentColor\",WebkitTextStrokeWidth:o`${d}em`,paddingInline:o`${m}em`},children:i});}f.displayName=\"MagText\",f.defaultProps={text:\"Colorless green ideas sleep furiously\",color:\"black\"},u(f,{text:{type:c.String,title:\"Text\",defaultValue:\"Colorless green ideas sleep furiously\",displayTextArea:!0},color:{type:c.Color,defaultValue:\"#000\"},font:{type:c.Font,title:\"Font\",controls:\"extended\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MagText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextMagnifier.map"],"mappings":"sQAOG,SAAwB,EAAE,EAAE,CAAC,IAAI,EAAEA,EAAE,CAAC,EAAE,OAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE,KAAK,SAAS,WAAW,OAAO,UAAU,MAAM,EAAE,MAAM,WAAW,WAAW,SAAS,SAAS,EAAE,iBAAiB,CAAC,EAAE,IAAI,GAAG,CAAE,EAAE,YAAY,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,CAAE,EAAE,SAAS,EAAE,KAAK,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,IAAiB,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,OAAO,GAAG,CAAC,IAAI,EAAEC,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,EAAEC,EAAE,EAAE,CAAC,UAAU,IAAI,QAAQ,EAAE,CAAC,EAAE,EAAEC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,EAAEA,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,EAAEA,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,OAAOC,EAAE,EAAE,SAAS,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,EAAE,QAAQ,sBAAsB,EAAE,EAAE,IAAIC,EAAE,KAAK,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CA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