{"version":3,"file":"REVEALDOM.CyGDlsUo.mjs","names":[],"sources":["https:/framerusercontent.com/modules/F9bQO5A7P747nbpQotMZ/sJsn33zmkiiACNGxoAxV/REVEALDOM.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Usamos um ID fixo para o botão encontrar a seção no canvas\nconst TARGET_ID=\"minha-secao-oculta\";/**\n * 1. OVERRIDE DA SEÇÃO\n * Aplique isso na seção que deve começar escondida\n */export function withHiddenSection(Component){return props=>{useEffect(()=>{// Assim que a página carrega, escondemos a seção usando a sua lógica\nconst node=document.getElementById(TARGET_ID);if(node){node.style.display=\"none\";node.style.opacity=\"0\";node.style.visibility=\"hidden\";node.setAttribute(\"aria-hidden\",\"true\");}},[]);// Injetamos o ID na seção desenhada no canvas\nreturn /*#__PURE__*/_jsx(Component,{...props,id:TARGET_ID});};}/**\n * 2. OVERRIDE DO BOTÃO\n * Aplique isso em qualquer botão, texto ou frame no canvas\n */export function withRevealButton(Component){return props=>{const handleReveal=()=>{const node=document.getElementById(TARGET_ID);if(!node){console.warn(\"Se\\xe7\\xe3o alvo n\\xe3o encontrada na p\\xe1gina.\");return;}// Sua lógica perfeita: limpa o display para restaurar o layout do Framer\nnode.style.display=\"\";node.style.transition=\"opacity 0.6s ease\";requestAnimationFrame(()=>{node.style.opacity=\"1\";node.style.visibility=\"visible\";node.removeAttribute(\"aria-hidden\");// Calcula o scroll suave\nsetTimeout(()=>{const rect=node.getBoundingClientRect();if(rect.height>0){const top=rect.top+window.scrollY-20// -20px de respiro\n;window.scrollTo({top,behavior:\"smooth\"});}},50);});};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleReveal,onTap:handleReveal,style:{...props.style,cursor:\"pointer\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRevealButton\":{\"type\":\"reactHoc\",\"name\":\"withRevealButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHiddenSection\":{\"type\":\"reactHoc\",\"name\":\"withHiddenSection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./REVEALDOM.map"],"mappings":"2HAIG,SAAgB,EAAkB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAC7E,IAAM,EAAK,SAAS,eAAe,EAAU,CAAI,IAAM,EAAK,MAAM,QAAQ,OAAO,EAAK,MAAM,QAAQ,IAAI,EAAK,MAAM,WAAW,SAAS,EAAK,aAAa,cAAc,OAAO,GAAI,EAAE,CAAC,CACjK,EAAK,EAAU,CAAC,GAAG,EAAM,GAAG,EAAU,CAAC,EAGxD,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,MAAiB,CAAC,IAAM,EAAK,SAAS,eAAe,EAAU,CAAC,GAAG,CAAC,EAAK,CAAC,QAAQ,KAAK,uCAAmD,CAAC,OAC/M,EAAK,MAAM,QAAQ,GAAG,EAAK,MAAM,WAAW,oBAAoB,0BAA0B,CAAC,EAAK,MAAM,QAAQ,IAAI,EAAK,MAAM,WAAW,UAAU,EAAK,gBAAgB,cAAc,CACrL,eAAe,CAAC,IAAM,EAAK,EAAK,uBAAuB,CAAC,GAAG,EAAK,OAAO,EAAE,CAAC,IAAM,EAAI,EAAK,IAAI,EAAO,QAAQ,GAC3G,EAAO,SAAS,CAAC,MAAI,SAAS,SAAS,CAAC,GAAI,GAAG,EAAG,EAAG,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAa,MAAM,EAAa,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,UAAU,CAAC,CAAC,yBAZzI,IAA6B,CAClE,EAAU"}