{"version":3,"file":"ImageDisplacementTransition.Brm8tc7K.mjs","names":["Phosphor","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","sharedStyle.css","sharedStyle.fonts","n","useRef","useState","startTransition","__esmMin","x","init_ssg_sandbox_shims","pe","te","init_npm_react_18_3_1","_e","oe","p","c","J","init_jsx_runtime","ce","ie","de","window","MotionConfigContext","LayoutGroup","init_framer_motion_DhsWWWsN","motion","addFonts","RichText","getFonts","useVariantState","SmartComponentScopedContainer","cx","withCSS","getFontsFromSharedStyle","RenderTarget","init_framer_Bf4_tcb2","ComponentViewportProvider","useComponentViewport","ControlType","Link","useLocaleInfo","Icon","init_Phosphor","init_qSYOezdqc","css$1","fonts","className","addPropertyOverrides","variants","nextOverrides","variant","overrides","PhosphorFonts","enabledGestures","cycleOrder","serializationHash","variantClassNames","transition1","Transition","Variants","humanReadableVariantMap","getProps","createLayoutDependency","Component","css","FramerdKLbOtMBN","init_dKLbOtMBN","config","transition","value","contextValue","props","colorContent","colorBackground","link","symbol","buttonContent","newTab","fallbackRef","refBinding","ref","defaultLayoutId","className$1","restProps","layoutDependency","scopingClassNames","layoutId","lPWmFdPBx","yAgR0XtoQ","gestureHandlers","classNames","FrgDd2DsR","style","baseVariant","gestureVariant","byDc0Qwfg","PNXvZtdME","n6rKqvkAE","addPropertyControls","velocityPerSecond","e","t","clamp","noopReturn","init_index_es","steps","init_index_es$1","i","o","Grain","keyframesX","keyframesY","isCanvas","containerStyle","init_Grain","loadImage","img","resolve","reject","src","createShader","shader","gl","type","source","createProgram","vs","vsSource","fs","fsSource","program","setTriangle","setTriangleUV","createTexture","tex","easeFn","easing","ImageDisplacementTransitionCanvas","canvasRef","hovered","setHovered","loaded","setLoaded","size","setSize","dispFactorRef","animatingRef","animationFrame","glRef","programRef","texsRef","uniformLocs","handleResize","cancelled","setup","vertexShaderSource","fragmentShaderSource","posLoc","uvLoc","posBuf","uvBuf","img1","img2","disp","image1","image2","dispMap","img1Width","img1Height","draw","dispFactor","effectFactor","from","to","start","ease","animate","ts","elapsed","duration","eased","ImageDisplacementTransition","init_ImageDisplacementTransition"],"sources":["https:/framerusercontent.com/modules/porIIdjvelMvBrlcK1Ia/VkNfxqvZPIUxaBYV4yE4/dKLbOtMBN.js","https:/ga.jspm.io/npm:@motionone/utils@10.14.0/dist/index.es.js","https:/ga.jspm.io/npm:@motionone/easing@10.13.1/dist/index.es.js","https:/framerusercontent.com/modules/cKGD16u2MGB7MfqfVXFp/wiztTCbXokZrMicHAmZc/Grain.js","https:/framerusercontent.com/modules/YC5KhfquHIO20Jd2kn4f/d3qyumw0pDA5naEAlWi9/ImageDisplacementTransition.js"],"sourcesContent":["// Generated by Framer (5f2272d)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,getFontsFromSharedStyle,Link,RichText,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{Icon as Phosphor}from\"https://framerusercontent.com/modules/YfwwZhGT9ocGMiekybux/l0Am7AESxtUFLHNo41Ta/Phosphor.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/4FPfyMyclYVYiyPxw2WU/BbbpPspXuHyMkxUIHh3Z/qSYOezdqc.js\";const PhosphorFonts=getFonts(Phosphor);const enabledGestures={sDZTSUGXM:{hover:true}};const cycleOrder=[\"sDZTSUGXM\",\"FdJ6nWyLa\"];const serializationHash=\"framer-dz6ub\";const variantClassNames={FdJ6nWyLa:\"framer-v-12111zm\",sDZTSUGXM:\"framer-v-9dd3u1\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.35,ease:[.82,.11,.37,.82],type:\"tween\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={L:\"sDZTSUGXM\",M:\"FdJ6nWyLa\"};const getProps=({buttonContent,colorBackground,colorContent,height,id,link,newTab,symbol,width,...props})=>{return{...props,byDc0Qwfg:colorContent??props.byDc0Qwfg??\"var(--token-28ccc123-9961-4ac2-9973-df9b60e95bfd, rgb(255, 252, 243))\",FrgDd2DsR:colorBackground??props.FrgDd2DsR??\"var(--token-8bee45cf-366e-4ffe-9dee-d17e953a2156, rgb(37, 35, 36))\",lPWmFdPBx:link??props.lPWmFdPBx,n6rKqvkAE:symbol??props.n6rKqvkAE??true,PNXvZtdME:buttonContent??props.PNXvZtdME??\"Button Content\",variant:humanReadableVariantMap[props.variant]??props.variant??\"sDZTSUGXM\",yAgR0XtoQ:newTab??props.yAgR0XtoQ};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,PNXvZtdME,byDc0Qwfg,FrgDd2DsR,n6rKqvkAE,lPWmFdPBx,yAgR0XtoQ,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"sDZTSUGXM\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:lPWmFdPBx,motionChild:true,nodeId:\"sDZTSUGXM\",openInNewTab:yAgR0XtoQ,scopeId:\"dKLbOtMBN\",smoothScroll:true,children:/*#__PURE__*/_jsxs(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-9dd3u1\",className,classNames)} framer-lw8rcc`,\"data-framer-name\":\"L\",layoutDependency:layoutDependency,layoutId:\"sDZTSUGXM\",ref:refBinding,style:{backgroundColor:FrgDd2DsR,borderBottomLeftRadius:80,borderBottomRightRadius:80,borderTopLeftRadius:80,borderTopRightRadius:80,...style},...addPropertyOverrides({\"sDZTSUGXM-hover\":{\"data-framer-name\":undefined},FdJ6nWyLa:{\"data-framer-name\":\"M\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-cchlho\",\"data-styles-preset\":\"qSYOezdqc\",style:{\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-byDc0Qwfg-dKLbOtMBN))\"},children:\"Button Content\"})}),className:\"framer-uidzfo\",\"data-framer-name\":\"Text\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"W8pgXv1eI\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-byDc0Qwfg-dKLbOtMBN)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--variable-reference-byDc0Qwfg-dKLbOtMBN\":byDc0Qwfg},text:PNXvZtdME,verticalAlignment:\"top\",withExternalLayout:true}),n6rKqvkAE&&/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1ba6unm\",\"data-framer-name\":\"Icon Wrapper\",layoutDependency:layoutDependency,layoutId:\"mDg2T_8o_\",children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1ixttmf-container\",isAuthoredByUser:true,layoutDependency:layoutDependency,layoutId:\"AXZ6iAZTn-container\",nodeId:\"AXZ6iAZTn\",rendersWithMotion:true,scopeId:\"dKLbOtMBN\",children:/*#__PURE__*/_jsx(Phosphor,{color:byDc0Qwfg,height:\"100%\",iconSearch:\"arrow-right\",iconSelection:\"House\",id:\"AXZ6iAZTn\",layoutId:\"AXZ6iAZTn\",mirrored:false,selectByList:false,style:{height:\"100%\",width:\"100%\"},weight:\"regular\",width:\"100%\"})})}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-4shgzg-container\",isAuthoredByUser:true,layoutDependency:layoutDependency,layoutId:\"Ze7I7VMGU-container\",nodeId:\"Ze7I7VMGU\",rendersWithMotion:true,scopeId:\"dKLbOtMBN\",children:/*#__PURE__*/_jsx(Phosphor,{color:byDc0Qwfg,height:\"100%\",iconSearch:\"arrow-right\",iconSelection:\"House\",id:\"Ze7I7VMGU\",layoutId:\"Ze7I7VMGU\",mirrored:false,selectByList:false,style:{height:\"100%\",width:\"100%\"},weight:\"regular\",width:\"100%\"})})})]})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-dz6ub.framer-lw8rcc, .framer-dz6ub .framer-lw8rcc { display: block; }\",\".framer-dz6ub.framer-9dd3u1 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 15px 24px 15px 24px; position: relative; text-decoration: none; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-dz6ub .framer-uidzfo { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-dz6ub .framer-1ba6unm { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: flex-end; overflow: hidden; padding: 0px; position: relative; width: 18px; }\",\".framer-dz6ub .framer-1ixttmf-container, .framer-dz6ub .framer-4shgzg-container { flex: none; height: 18px; position: relative; width: 18px; }\",\".framer-dz6ub.framer-v-12111zm.framer-9dd3u1 { cursor: unset; gap: 8px; height: 40px; padding: 10px 16px 10px 18px; }\",\".framer-dz6ub.framer-v-12111zm .framer-1ixttmf-container, .framer-dz6ub.framer-v-12111zm .framer-4shgzg-container { height: 16px; width: 16px; }\",\".framer-dz6ub.framer-v-9dd3u1.hover .framer-1ba6unm { justify-content: flex-start; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 48\n * @framerIntrinsicWidth 173\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"FdJ6nWyLa\":{\"layout\":[\"auto\",\"fixed\"]},\"larVE1UAK\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"PNXvZtdME\":\"buttonContent\",\"byDc0Qwfg\":\"colorContent\",\"FrgDd2DsR\":\"colorBackground\",\"n6rKqvkAE\":\"symbol\",\"lPWmFdPBx\":\"link\",\"yAgR0XtoQ\":\"newTab\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerdKLbOtMBN=withCSS(Component,css,\"framer-dz6ub\");export default FramerdKLbOtMBN;FramerdKLbOtMBN.displayName=\"Primary Button\";FramerdKLbOtMBN.defaultProps={height:48,width:173};addPropertyControls(FramerdKLbOtMBN,{variant:{options:[\"sDZTSUGXM\",\"FdJ6nWyLa\"],optionTitles:[\"L\",\"M\"],title:\"Variant\",type:ControlType.Enum},PNXvZtdME:{defaultValue:\"Button Content\",title:\"Button Content\",type:ControlType.String},byDc0Qwfg:{defaultValue:'var(--token-28ccc123-9961-4ac2-9973-df9b60e95bfd, rgb(255, 252, 243)) /* {\"name\":\"L-100\"} */',title:\"Color Content\",type:ControlType.Color},FrgDd2DsR:{defaultValue:'var(--token-8bee45cf-366e-4ffe-9dee-d17e953a2156, rgb(37, 35, 36)) /* {\"name\":\"D-100\"} */',title:\"Color Background\",type:ControlType.Color},n6rKqvkAE:{defaultValue:true,title:\"Symbol\",type:ControlType.Boolean},lPWmFdPBx:{title:\"Link\",type:ControlType.Link},yAgR0XtoQ:{defaultValue:false,title:\"New Tab\",type:ControlType.Boolean}});addFonts(FramerdKLbOtMBN,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...PhosphorFonts,...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerdKLbOtMBN\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"48\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"173\",\"framerColorSyntax\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"PNXvZtdME\\\":\\\"buttonContent\\\",\\\"byDc0Qwfg\\\":\\\"colorContent\\\",\\\"FrgDd2DsR\\\":\\\"colorBackground\\\",\\\"n6rKqvkAE\\\":\\\"symbol\\\",\\\"lPWmFdPBx\\\":\\\"link\\\",\\\"yAgR0XtoQ\\\":\\\"newTab\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"FdJ6nWyLa\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"larVE1UAK\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const clamp=(t,e,n)=>Math.min(Math.max(n,t),e);const t={duration:.3,delay:0,endDelay:0,repeat:0,easing:\"ease\"};const isNumber=t=>\"number\"===typeof t;const isEasingList=t=>Array.isArray(t)&&!isNumber(t[0]);const wrap=(t,e,n)=>{const o=e-t;return((n-t)%o+o)%o+t};function getEasingForSegment(t,e){return isEasingList(t)?t[wrap(0,t.length,e)]:t}const mix=(t,e,n)=>-n*t+n*e+t;const noop=()=>{};const noopReturn=t=>t;const progress=(t,e,n)=>e-t===0?1:(n-t)/(e-t);function fillOffset(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const s=progress(0,e,o);t.push(mix(n,1,s))}}function defaultOffset(t){const e=[0];fillOffset(e,t-1);return e}function interpolate(t,e=defaultOffset(t.length),n=noopReturn){const o=t.length;const s=o-e.length;s>0&&fillOffset(e,s);return s=>{let f=0;for(;f<o-2;f++)if(s<e[f+1])break;let r=clamp(0,1,progress(e[f],e[f+1],s));const c=getEasingForSegment(n,f);r=c(r);return mix(t[f],t[f+1],r)}}const isCubicBezier=t=>Array.isArray(t)&&isNumber(t[0]);const isEasingGenerator=t=>\"object\"===typeof t&&Boolean(t.createAnimation);const isFunction=t=>\"function\"===typeof t;const isString=t=>\"string\"===typeof t;const e={ms:t=>1e3*t,s:t=>t/1e3};\n/*\n  Convert velocity into velocity per second\n\n  @param [number]: Unit per frame\n  @param [number]: Frame duration in ms\n*/function velocityPerSecond(t,e){return e?t*(1e3/e):0}export{addUniqueItem,clamp,defaultOffset,t as defaults,fillOffset,getEasingForSegment,interpolate,isCubicBezier,isEasingGenerator,isEasingList,isFunction,isNumber,isString,mix,noop,noopReturn,progress,removeItem,e as time,velocityPerSecond,wrap};\n\n//# sourceMappingURL=index.es.js.map","import{noopReturn as t,clamp as n}from\"@motionone/utils\";const calcBezier=(t,n,e)=>(((1-3*e+3*n)*t+(3*e-6*n))*t+3*n)*t;const e=1e-7;const i=12;function binarySubdivide(t,n,o,r,c){let u;let a;let s=0;do{a=n+(o-n)/2;u=calcBezier(a,r,c)-t;u>0?o=a:n=a}while(Math.abs(u)>e&&++s<i);return a}function cubicBezier(n,e,i,o){if(n===e&&i===o)return t;const getTForX=t=>binarySubdivide(t,0,1,n,i);return t=>0===t||1===t?t:calcBezier(getTForX(t),e,o)}const steps=(t,e=\"end\")=>i=>{i=\"end\"===e?Math.min(i,.999):Math.max(i,.001);const o=i*t;const r=\"end\"===e?Math.floor(o):Math.ceil(o);return n(0,1,r/t)};export{cubicBezier,steps};\n\n//# sourceMappingURL=index.es.js.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion}from\"framer-motion\";import{steps}from\"@motionone/easing\";/**\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function Grain(props){const{opacity,style}=props;const keyframesX=[\"0%\",\"-5%\",\"-15%\",\"7%\",\"-5%\",\"-15%\",\"15%\",\"0%\",\"3%\",\"-10%\",];const keyframesY=[\"0%\",\"-10%\",\"5%\",\"-25%\",\"25%\",\"10%\",\"0%\",\"15%\",\"35%\",\"10%\",];const isCanvas=RenderTarget.current()===RenderTarget.canvas;return /*#__PURE__*/ _jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/ _jsx(motion.div,{style:{...containerStyle,opacity:opacity,inset:isCanvas?0:\"-200%\",width:isCanvas?\"100%\":\"400%\",height:isCanvas?\"100%\":\"400%\",position:\"absolute\"},animate:!isCanvas&&{x:keyframesX,y:keyframesY},transition:{ease:steps(10,\"start\"),repeat:Infinity,duration:8}})});};Grain.defaultProps={opacity:.5};addPropertyControls(Grain,{opacity:{title:\"Opacity\",type:ControlType.Number,step:.1,displayStepper:true,max:1,min:0}});const containerStyle={backgroundSize:\"256px 256px\",backgroundRepeat:\"repeat\",background:\"url('https://framerusercontent.com/images/rR6HYXBrMmX4cRpXfXUOvpvpB0.png')\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Grain\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"100\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"100\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Grain.map","// Displacement map image transition between two images using WebGL <canvas>, with hover, easing, and duration controls\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const vertexShaderSource=`\n    attribute vec2 position;\n    attribute vec2 uv;\n    varying vec2 vUv;\n    uniform vec2 uResolution;\n    uniform vec2 uImageResolution;\n    void main() {\n        // Calculate aspect ratios\n        float canvasAspect = uResolution.x / uResolution.y;\n        float imageAspect = uImageResolution.x / uImageResolution.y;\n        vec2 scale = vec2(1.0);\n        if (canvasAspect > imageAspect) {\n            scale.y = imageAspect / canvasAspect;\n        } else {\n            scale.x = canvasAspect / imageAspect;\n        }\n        vUv = uv * scale + 0.5 * (1.0 - scale);\n        gl_Position = vec4(position, 0.0, 1.0);\n    }\n`;const fragmentShaderSource=`\n    precision mediump float;\n    varying vec2 vUv;\n    uniform sampler2D tex;\n    uniform sampler2D tex2;\n    uniform sampler2D disp;\n    uniform float dispFactor;\n    uniform float effectFactor;\n    void main() {\n        vec2 uv = vUv;\n        vec4 disp = texture2D(disp, uv);\n        vec2 distortedPosition = vec2(uv.x + dispFactor * (disp.r*effectFactor), uv.y);\n        vec2 distortedPosition2 = vec2(uv.x - (1.0 - dispFactor) * (disp.r*effectFactor), uv.y);\n        vec4 _texture = texture2D(tex, distortedPosition);\n        vec4 _texture2 = texture2D(tex2, distortedPosition2);\n        vec4 finalTexture = mix(_texture, _texture2, dispFactor);\n        gl_FragColor = finalTexture;\n    }\n`;function loadImage(src){return new Promise((resolve,reject)=>{const img=new window.Image;img.crossOrigin=\"anonymous\";img.onload=()=>resolve(img);img.onerror=reject;img.src=src;});}function createShader(gl,type,source){const shader=gl.createShader(type);gl.shaderSource(shader,source);gl.compileShader(shader);if(!gl.getShaderParameter(shader,gl.COMPILE_STATUS)){throw new Error(gl.getShaderInfoLog(shader));}return shader;}function createProgram(gl,vsSource,fsSource){const vs=createShader(gl,gl.VERTEX_SHADER,vsSource);const fs=createShader(gl,gl.FRAGMENT_SHADER,fsSource);const program=gl.createProgram();gl.attachShader(program,vs);gl.attachShader(program,fs);gl.linkProgram(program);if(!gl.getProgramParameter(program,gl.LINK_STATUS)){throw new Error(gl.getProgramInfoLog(program));}return program;}function setTriangle(gl){gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),gl.STATIC_DRAW);}function setTriangleUV(gl){gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([0,0,2,0,0,2]),gl.STATIC_DRAW);}function createTexture(gl,img){const tex=gl.createTexture();gl.bindTexture(gl.TEXTURE_2D,tex);gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL,true)// Flip Y so images are not upside down\n;gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.LINEAR);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MAG_FILTER,gl.LINEAR);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,img);return tex;}function easeFn(easing){return({linear:t=>t,easeIn:t=>t*t,easeOut:t=>t*(2-t),easeInOut:t=>t<.5?2*t*t:-1+(4-2*t)*t,expoOut:t=>t===1?1:1-Math.pow(2,-10*t)})[easing]||(t=>t);}function ImageDisplacementTransitionCanvas({image1,image2,dispMap,duration,easing,effectFactor,style}){const canvasRef=useRef(null);const[hovered,setHovered]=useState(false);const[loaded,setLoaded]=useState(false);const[size,setSize]=useState({width:400,height:300});const dispFactorRef=useRef(0);const animatingRef=useRef(false);const animationFrame=useRef(undefined);const glRef=useRef(null);const programRef=useRef(null);// Explicitly type the texture and uniform refs\nconst texsRef=useRef({tex1:null,tex2:null,dispTex:null,img1Size:[1,1]});const uniformLocs=useRef({tex:null,tex2:null,disp:null,dispFactor:null,effectFactor:null,uResolution:null,uImageResolution:null});useEffect(()=>{function handleResize(){if(!canvasRef.current)return;setSize({width:canvasRef.current.offsetWidth,height:canvasRef.current.offsetHeight});}handleResize();window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[]);useEffect(()=>{let cancelled=false;async function setup(){if(!canvasRef.current)return;const gl=canvasRef.current.getContext(\"webgl\",{preserveDrawingBuffer:true});if(!gl)return;glRef.current=gl;// Compile shaders\nconst program=createProgram(gl,vertexShaderSource,fragmentShaderSource);programRef.current=program;gl.useProgram(program);// Attributes\nconst posLoc=gl.getAttribLocation(program,\"position\");const uvLoc=gl.getAttribLocation(program,\"uv\");// Buffers\nconst posBuf=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,posBuf);setTriangle(gl);gl.enableVertexAttribArray(posLoc);gl.vertexAttribPointer(posLoc,2,gl.FLOAT,false,0,0);// UVs\nconst uvBuf=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,uvBuf);setTriangleUV(gl);gl.enableVertexAttribArray(uvLoc);gl.vertexAttribPointer(uvLoc,2,gl.FLOAT,false,0,0);// Load images\nconst[img1,img2,disp]=await Promise.all([loadImage(image1.src),loadImage(image2.src),loadImage(dispMap.src)]);if(cancelled)return;texsRef.current.tex1=createTexture(gl,img1);texsRef.current.tex2=createTexture(gl,img2);texsRef.current.dispTex=createTexture(gl,disp);// Uniforms\nuniformLocs.current.tex=gl.getUniformLocation(program,\"tex\");uniformLocs.current.tex2=gl.getUniformLocation(program,\"tex2\");uniformLocs.current.disp=gl.getUniformLocation(program,\"disp\");uniformLocs.current.dispFactor=gl.getUniformLocation(program,\"dispFactor\");uniformLocs.current.effectFactor=gl.getUniformLocation(program,\"effectFactor\");// New: set up uniforms for resolution and image resolution\nuniformLocs.current.uResolution=gl.getUniformLocation(program,\"uResolution\");uniformLocs.current.uImageResolution=gl.getUniformLocation(program,\"uImageResolution\");// Save image sizes for later\nconst img1Width=img1&&typeof img1===\"object\"&&\"width\"in img1?img1.width:1;const img1Height=img1&&typeof img1===\"object\"&&\"height\"in img1?img1.height:1;texsRef.current.img1Size=[img1Width,img1Height];setLoaded(true);}setup();return()=>{cancelled=true;};},[image1,image2,dispMap]);// Draw function\nfunction draw(dispFactor){const gl=glRef.current;const program=programRef.current;if(!gl||!program)return;gl.viewport(0,0,gl.drawingBufferWidth,gl.drawingBufferHeight);gl.clear(gl.COLOR_BUFFER_BIT);// Set uniforms\ngl.useProgram(program);gl.activeTexture(gl.TEXTURE0);gl.bindTexture(gl.TEXTURE_2D,texsRef.current.tex1);gl.uniform1i(uniformLocs.current.tex,0);gl.activeTexture(gl.TEXTURE1);gl.bindTexture(gl.TEXTURE_2D,texsRef.current.tex2);gl.uniform1i(uniformLocs.current.tex2,1);gl.activeTexture(gl.TEXTURE2);gl.bindTexture(gl.TEXTURE_2D,texsRef.current.dispTex);gl.uniform1i(uniformLocs.current.disp,2);gl.uniform1f(uniformLocs.current.dispFactor,dispFactor);gl.uniform1f(uniformLocs.current.effectFactor,effectFactor);// Set resolution uniforms for cover effect\nif(uniformLocs.current.uResolution&&uniformLocs.current.uImageResolution&&texsRef.current.img1Size){gl.uniform2f(uniformLocs.current.uResolution,gl.drawingBufferWidth,gl.drawingBufferHeight);gl.uniform2f(uniformLocs.current.uImageResolution,texsRef.current.img1Size[0],texsRef.current.img1Size[1]);}gl.drawArrays(gl.TRIANGLES,0,3);}// Animate dispFactor\nuseEffect(()=>{if(!loaded)return;let from=dispFactorRef.current;let to=hovered?1:0;if(from===to)return;let start;const ease=easeFn(easing);animatingRef.current=true;function animate(ts){if(!start)start=ts;let elapsed=(ts-start)/1e3;let t=Math.min(elapsed/duration,1);let eased=ease(t);let value=from+(to-from)*eased;dispFactorRef.current=value;draw(value);if(t<1&&animatingRef.current){animationFrame.current=window.requestAnimationFrame(animate);}else{dispFactorRef.current=to;draw(to);animatingRef.current=false;}}animationFrame.current=window.requestAnimationFrame(animate);return()=>{animatingRef.current=false;if(animationFrame.current!==undefined)window.cancelAnimationFrame(animationFrame.current);};},[hovered,loaded,duration,easing,effectFactor]);// Redraw on resize or effectFactor\nuseEffect(()=>{if(loaded)draw(dispFactorRef.current);},[size.width,size.height,loaded,effectFactor]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",...style,position:\"relative\",overflow:\"hidden\",cursor:\"pointer\"},onMouseEnter:()=>startTransition(()=>setHovered(true)),onMouseLeave:()=>startTransition(()=>setHovered(false)),tabIndex:0,\"aria-label\":\"Displacement image transition\",children:/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,width:size.width,height:size.height,style:{width:\"100%\",height:\"100%\",display:\"block\"}})});}/**\n * Displacement Image Transition (WebGL)\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ImageDisplacementTransition(props){// Default images\nconst{image1={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},image2={src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"},dispMap={src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Displacement Map\"},duration=1,easing=\"expoOut\",effectFactor=.75,style}=props;return /*#__PURE__*/_jsx(ImageDisplacementTransitionCanvas,{image1:image1,image2:image2,dispMap:dispMap,duration:duration,easing:easing,effectFactor:effectFactor,style:style});}addPropertyControls(ImageDisplacementTransition,{image1:{type:ControlType.ResponsiveImage,title:\"Image 1\"},image2:{type:ControlType.ResponsiveImage,title:\"Image 2\"},dispMap:{type:ControlType.ResponsiveImage,title:\"Displacement Map\"},duration:{type:ControlType.Number,title:\"Duration (s)\",defaultValue:1,min:.1,max:5,step:.05,displayStepper:true},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"expoOut\",\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\"],optionTitles:[\"Expo Out\",\"Linear\",\"Ease In\",\"Ease Out\",\"Ease InOut\"],defaultValue:\"expoOut\",displaySegmentedControl:false},effectFactor:{type:ControlType.Number,title:\"Effect Strength\",defaultValue:.75,min:0,max:2,step:.01,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageDisplacementTransition\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageDisplacementTransition.map"],"mappings":"A,ohBACi4B,SAASuD,GAAqB,EAAU,GAAGC,EAAS,CAAC,IAAMC,EAAc,CAAC,EAAuF,OAArFD,GAAU,QAAQ,GAASE,GAAS,OAAO,OAAOD,EAAcE,EAAUD,EAAQ,CAAC,EAASD,CAAc,C,0FAA3a,EAA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