{"version":3,"file":"FormOverride.CLtnIB8X.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/lAxFOJH3wN2om25DprXQ/CofshGobWlBY76X6PXXd/FormOverride.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";// ─── FORM STATE ──────────────────────────────────────────────────────────────\nconst formListeners=new Set;let _formOpen=false;function setFormOpen(v){_formOpen=v;formListeners.forEach(fn=>fn(v));}function useFormOpen(){const[open,setLocal]=useState(_formOpen);useEffect(()=>{formListeners.add(setLocal);return()=>{formListeners.delete(setLocal);};},[]);return open;}export function AbrirForm(Component){return function(props){return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:\"pointer\",userSelect:\"none\"},onClick:e=>{e?.preventDefault?.();e?.stopPropagation?.();props.onClick?.(e);setFormOpen(true);}});};}export function ControleForm(Component){return function(props){const open=useFormOpen();return /*#__PURE__*/_jsx(Component,{...props,open:open,onClose:()=>setFormOpen(false)});};}// ─── QUIZ STATE ───────────────────────────────────────────────────────────────\nconst quizListeners=new Set;let _quizOpen=false;function setQuizOpen(v){_quizOpen=v;quizListeners.forEach(fn=>fn(v));}function useQuizOpen(){const[open,setLocal]=useState(_quizOpen);useEffect(()=>{quizListeners.add(setLocal);return()=>{quizListeners.delete(setLocal);};},[]);return open;}export function AbrirQuiz(Component){return function(props){return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:\"pointer\",userSelect:\"none\"},onClick:e=>{e?.preventDefault?.();e?.stopPropagation?.();props.onClick?.(e);setQuizOpen(true);}});};}export function ControleQuiz(Component){return function(props){const open=useQuizOpen();return /*#__PURE__*/_jsx(Component,{...props,open:open,onClose:()=>setQuizOpen(false)});};}// ─── MENU MOBILE STATE ────────────────────────────────────────────────────────\nconst menuListeners=new Set;let _menuOpen=false;function setMenuOpen(v){_menuOpen=v;menuListeners.forEach(fn=>fn(v));}function useMenuOpen(){const[open,setLocal]=useState(_menuOpen);useEffect(()=>{menuListeners.add(setLocal);return()=>{menuListeners.delete(setLocal);};},[]);return open;}// ─── CONSTANTS ────────────────────────────────────────────────────────────────\nconst LOGO_MARK=\"https://framerusercontent.com/images/tqQKer6DVzB9uD1eF8I4eqqSIo.png\";const LOGO_TEXT=\"https://framerusercontent.com/images/ia5iPKeL7HdmBBPo3FLMqaowhs.png\";const NAV=[{num:\"01\",label:\"Programas\",href:\"/#acompanhamentos\"},{num:\"02\",label:\"Quem sou eu?\",href:\"/#trajetoria\"},{num:\"03\",label:\"Depoimentos\",href:\"/#depoimentos\"}];const PROGRAMS=[{label:\"Start\",href:\"/start\"},{label:\"Ritmo\",href:\"/ritmo\"},{label:\"Liz\",href:\"/liz\"}];const C={bg:\"#FDF8F6\",salmon:\"#C89078\",sage:\"#7E9C7B\",dark:\"#333333\",muted:\"#B0A8A0\",border:\"rgba(176,168,160,0.18)\"};const serif=\"'Libre Baskerville', Georgia, serif\";const sans=\"'Manrope', sans-serif\";// ─── MENU MOBILE OVERRIDE ─────────────────────────────────────────────────────\n/**\n * Apply to any element on canvas (e.g. the desktop nav).\n * On mobile (< 768 px) hides that element and renders a full-screen\n * animated mobile nav. On desktop it's a no-op.\n */export function MenuMobile(Component){return function MenuMobileWrapper(props){const[mobile,setMobile]=useState(()=>typeof window!==\"undefined\"?window.innerWidth<768:false);const open=useMenuOpen();useEffect(()=>{const fn=()=>setMobile(window.innerWidth<768);window.addEventListener(\"resize\",fn);return()=>window.removeEventListener(\"resize\",fn);},[]);// lock body scroll while menu is open\nuseEffect(()=>{if(typeof document===\"undefined\")return;document.body.style.overflow=open&&mobile?\"hidden\":\"\";return()=>{document.body.style.overflow=\"\";};},[open,mobile]);// desktop: render original unchanged\nif(!mobile)return /*#__PURE__*/_jsx(Component,{...props});const bar={position:\"fixed\",top:0,left:0,right:0,zIndex:10001,height:64,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"0 20px\",background:\"rgba(253,248,246,0.94)\",backdropFilter:\"blur(16px)\",WebkitBackdropFilter:\"blur(16px)\",borderBottom:open?\"none\":`1px solid ${C.border}`,transition:\"border-color 0.3s\"};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"none\"}}),/*#__PURE__*/_jsxs(\"div\",{style:bar,children:[/*#__PURE__*/_jsxs(\"a\",{href:\"/\",style:{display:\"flex\",alignItems:\"center\",gap:6,textDecoration:\"none\"},onClick:()=>setMenuOpen(false),children:[/*#__PURE__*/_jsx(\"img\",{src:LOGO_MARK,style:{height:34,width:\"auto\"},alt:\"\"}),/*#__PURE__*/_jsx(\"img\",{src:LOGO_TEXT,style:{height:19,width:\"auto\"},alt:\"Lara Liz\"})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setMenuOpen(!open),\"aria-label\":open?\"Fechar menu\":\"Abrir menu\",style:{background:\"none\",border:\"none\",cursor:\"pointer\",padding:\"10px 8px\",display:\"flex\",flexDirection:\"column\",gap:5,alignItems:\"center\",justifyContent:\"center\",WebkitTapHighlightColor:\"transparent\"},children:[{transform:open?\"translateY(6.5px) rotate(45deg)\":\"translateY(0) rotate(0deg)\"},{opacity:open?0:1,transform:open?\"scaleX(0)\":\"scaleX(1)\"},{transform:open?\"translateY(-6.5px) rotate(-45deg)\":\"translateY(0) rotate(0deg)\"}].map((s,i)=>/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",width:24,height:1.5,borderRadius:2,background:C.dark,transformOrigin:\"center\",transition:\"transform 0.42s cubic-bezier(0.76,0,0.24,1), opacity 0.22s ease\",...s}},i))})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:open&&/*#__PURE__*/_jsxs(motion.div,{initial:{clipPath:\"inset(0 0 100% 0)\"},animate:{clipPath:\"inset(0 0 0% 0)\"},exit:{clipPath:\"inset(0 0 100% 0)\"},transition:{duration:.62,ease:[.76,0,.24,1]},style:{position:\"fixed\",inset:0,zIndex:1e4,background:C.bg,display:\"flex\",flexDirection:\"column\",paddingTop:64,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.38,duration:.45},style:{padding:\"18px 24px 14px\",borderBottom:`1px solid ${C.border}`},children:/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:sans,fontSize:10,letterSpacing:\"0.2em\",textTransform:\"uppercase\",color:C.muted},children:\"Nutri\\xe7\\xe3o que transforma\"})}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,overflowY:\"auto\",WebkitOverflowScrolling:\"touch\"},children:[NAV.map(({num,label,href},i)=>/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,x:-28},animate:{opacity:1,x:0},exit:{opacity:0,x:-14},transition:{delay:.26+i*.08,duration:.52,ease:[.33,1,.68,1]},children:/*#__PURE__*/_jsxs(\"a\",{href:href,onClick:()=>setMenuOpen(false),style:{display:\"flex\",alignItems:\"center\",gap:14,padding:\"20px 24px\",textDecoration:\"none\",borderBottom:`1px solid ${C.border}`,WebkitTapHighlightColor:\"transparent\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:sans,fontSize:10,letterSpacing:\"0.1em\",color:C.muted,minWidth:18},children:num}),/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:serif,fontStyle:\"italic\",fontSize:34,color:C.dark,letterSpacing:\"-0.02em\",lineHeight:1.1,flex:1},children:label}),/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"14\",viewBox:\"0 0 20 14\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M0 7h16M11 2l5 5-5 5\",stroke:C.sage,strokeWidth:\"1.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]})},label)),/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.54,duration:.45},style:{display:\"flex\",gap:8,padding:\"16px 24px\",borderBottom:`1px solid ${C.border}`},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:sans,fontSize:10,letterSpacing:\"0.1em\",color:C.muted,minWidth:18,paddingTop:3},children:\"↳\"}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:8,flexWrap:\"wrap\"},children:PROGRAMS.map(({label,href})=>/*#__PURE__*/_jsx(\"a\",{href:href,onClick:()=>setMenuOpen(false),style:{fontFamily:sans,fontSize:12,fontWeight:500,letterSpacing:\"0.06em\",color:C.salmon,textDecoration:\"none\",padding:\"5px 12px\",border:`1px solid ${C.salmon}`,borderRadius:100,WebkitTapHighlightColor:\"transparent\"},children:label},label))})]})]}),/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.62,duration:.48},style:{padding:\"20px 24px 28px\",borderTop:`1px solid ${C.border}`,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:14},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/#acompanhamentos\",onClick:()=>setMenuOpen(false),style:{display:\"block\",width:\"100%\",textAlign:\"center\",padding:\"15px 24px\",background:C.salmon,borderRadius:100,color:\"#fff\",fontFamily:sans,fontWeight:600,fontSize:15,letterSpacing:\"0.03em\",textDecoration:\"none\",WebkitTapHighlightColor:\"transparent\"},children:\"Agendar Consulta\"}),/*#__PURE__*/_jsxs(\"svg\",{width:\"100\",height:\"16\",viewBox:\"0 0 100 16\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"0\",y1:\"8\",x2:\"32\",y2:\"8\",stroke:C.muted,strokeWidth:\"0.75\",opacity:\"0.45\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M32 8 Q41 2 50 8 Q59 14 68 8\",stroke:C.sage,strokeWidth:\"1.1\",opacity:\"0.55\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"68\",y1:\"8\",x2:\"100\",y2:\"8\",stroke:C.muted,strokeWidth:\"0.75\",opacity:\"0.45\"})]})]})]},\"mob-overlay\")})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"ControleQuiz\":{\"type\":\"reactHoc\",\"name\":\"ControleQuiz\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AbrirForm\":{\"type\":\"reactHoc\",\"name\":\"AbrirForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MenuMobile\":{\"type\":\"reactHoc\",\"name\":\"MenuMobile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ControleForm\":{\"type\":\"reactHoc\",\"name\":\"ControleForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AbrirQuiz\":{\"type\":\"reactHoc\",\"name\":\"AbrirQuiz\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormOverride.map"],"mappings":"qKACgD,SAAS,EAAY,EAAE,CAAC,EAAU,EAAE,EAAc,QAAQ,GAAI,EAAG,EAAE,CAAC,CAAE,SAAS,GAAa,CAAC,GAAK,CAAC,EAAK,GAAUA,EAAS,EAAU,CAA8F,OAA7F,OAAe,EAAc,IAAI,EAAS,KAAW,CAAC,EAAc,OAAO,EAAS,GAAK,EAAE,CAAC,CAAQ,EAAM,SAAgB,EAAU,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,UAAU,WAAW,OAAO,CAAC,QAAQ,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,mBAAmB,CAAC,EAAM,UAAU,EAAE,CAAC,EAAY,GAAK,EAAG,CAAC,EAAI,SAAgB,EAAa,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,IAAM,EAAK,GAAa,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAW,OAAK,YAAY,EAAY,GAAM,CAAC,CAAC,EACvqB,SAAS,EAAY,EAAE,CAAC,EAAU,EAAE,EAAc,QAAQ,GAAI,EAAG,EAAE,CAAC,CAAE,SAAS,GAAa,CAAC,GAAK,CAAC,EAAK,GAAUA,EAAS,EAAU,CAA8F,OAA7F,OAAe,EAAc,IAAI,EAAS,KAAW,CAAC,EAAc,OAAO,EAAS,GAAK,EAAE,CAAC,CAAQ,EAAM,SAAgB,EAAU,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,UAAU,WAAW,OAAO,CAAC,QAAQ,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,mBAAmB,CAAC,EAAM,UAAU,EAAE,CAAC,EAAY,GAAK,EAAG,CAAC,EAAI,SAAgB,EAAa,EAAU,CAAC,OAAO,SAAS,EAAM,CAAC,IAAM,EAAK,GAAa,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAW,OAAK,YAAY,EAAY,GAAM,CAAC,CAAC,+BAF9pB,IAAsC,IAAkD,CAC3I,EAAc,IAAI,IAAQ,EAAU,GACpC,EAAc,IAAI,IAAQ,EAAU"}