{"version":3,"file":"shared-lib.DCAD-TfY.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","_e","c","J","ce","RenderTarget","init_framer_CN96F41L","waitsForPreloader","make","onCanvas","go","setGo","done","setDone","DUR","delay","t","start","raf","Component","props","cached","m","cache","w","withRise","init_Rise","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/OyJmqgsVWdZZi0onRGkt/ezvmh8DcvpOM8DSalwjI/Rise.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";import{RenderTarget}from\"framer\";const DIST=55;const DUR=1;const EASE=\"cubic-bezier(0.215, 0.61, 0.355, 1)\";function waitsForPreloader(){try{const home=window.location.pathname.replace(/\\/+$/,\"\")===\"\";return home&&!sessionStorage.getItem(\"preloader-done\");}catch(e){return false;}}function make(delay){return Component=>/*#__PURE__*/forwardRef((props,ref)=>{const onCanvas=RenderTarget.current()===RenderTarget.canvas;const[go,setGo]=useState(onCanvas);const[done,setDone]=useState(onCanvas);useEffect(()=>{if(!go||onCanvas)return;const t=window.setTimeout(()=>setDone(true),(DUR+delay)*1e3+100);return()=>clearTimeout(t);},[go]);useEffect(()=>{if(onCanvas)return;let t=0;const start=()=>setGo(true);if(waitsForPreloader()){window.addEventListener(\"preloader:done\",start,{once:true});t=window.setTimeout(start,8e3);return()=>{window.removeEventListener(\"preloader:done\",start);clearTimeout(t);};}const raf=requestAnimationFrame(()=>requestAnimationFrame(start));return()=>cancelAnimationFrame(raf);},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:done?props.style:{...props.style,transform:go?\"translateY(0px)\":\"translateY(\"+DIST+\"px)\",transition:go?\"transform \"+DUR+\"s \"+EASE+\" \"+delay+\"s\":\"none\"}});});}// Entrada: sube ~55 px con ease-out (como en la web de referencia)\nconst cache=new Map;function cached(delay,Component){let m=cache.get(delay);if(!m){m=new WeakMap;cache.set(delay,m);}let w=m.get(Component);if(!w){w=make(delay)(Component);m.set(Component,w);}return w;}export function withRise(Component){return cached(0,Component);}export function withRiseLate(Component){return cached(.12,Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"withRiseLate\":{\"type\":\"reactHoc\",\"name\":\"withRiseLate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRise\":{\"type\":\"reactHoc\",\"name\":\"withRise\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Rise.map"],"mappings":"A,2LAAwM,SAASW,GAAmB,CAAC,GAAG,CAA6D,OAAjDP,EAAO,SAAS,SAAS,QAAQ,OAAO,EAAE,IAAI,IAAgB,CAAC,eAAe,QAAQ,gBAAgB,CAAE,MAAS,CAAC,MAAO,EAAM,CAAC,CAAC,SAASQ,EAAK,EAAM,CAAC,MAAO,IAAwB,iBAAY,EAAM,IAAM,CAAC,IAAMC,EAASJ,EAAa,QAAQ,IAAIA,EAAa,OAAY,CAACK,EAAGC,GAAOf,EAASa,CAAQ,EAAO,CAACG,EAAKC,GAASjB,EAASa,CAAQ,EAAkgB,OAAhgBL,MAAc,CAAC,GAAG,CAACM,GAAID,EAAS,OAAO,IAAM,EAAET,EAAO,eAAea,EAAQ,EAAI,GAAGC,EAAIC,GAAO,IAAI,GAAG,EAAE,UAAU,aAAa,CAAC,CAAE,EAAE,CAACL,CAAE,CAAC,EAAEN,MAAc,CAAC,GAAGK,EAAS,OAAO,IAAIO,EAAE,EAAQC,MAAUN,EAAM,EAAI,EAAE,GAAGJ,EAAkB,EAA8F,OAA3FP,EAAO,iBAAiB,iBAAiBiB,EAAM,CAAC,KAAK,EAAI,CAAC,EAAE,EAAEjB,EAAO,WAAWiB,EAAM,GAAG,MAAY,CAACjB,EAAO,oBAAoB,iBAAiBiB,CAAK,EAAE,aAAaD,CAAC,CAAE,EAAG,IAAME,EAAI,0BAA0B,sBAAsBD,CAAK,CAAC,EAAE,UAAU,qBAAqBC,CAAG,CAAE,EAAE,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