{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/gwhAkx1gnK2KpLFuFNJd/FK3s9oSUfjJ4Gz1bWOKq/TableOfContent.js", "ssg:https://framerusercontent.com/modules/JgwFciDBLMOGu8eiAQln/vjO5Kb1X84YSXadGIIeH/gtT3t5Crz.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useEffect,useState}from\"react\";export function EnviarWaitlist(){return{onClick:()=>{console.log(\"\uD83D\uDFE1 [WAITLIST] Clique no bot\\xe3o de envio detectado\");const nomeInput=document.querySelector('input[name=\"Nome\"]');const telefoneInput=document.querySelector('input[name=\"WhatsApp\"]');const nome=nomeInput?.value?.trim()||\"Sem Nome\";const telefone=telefoneInput?.value?.replace(/\\D/g,\"\");if(!telefone){console.log(\"\u26A0\uFE0F Telefone n\\xe3o preenchido.\");return;}const appId=\"jxljj6zs\";const telefoneFormatado=\"+55\"+telefone;const fakeEmail=`tel${telefone}@fake.simpleonemed.com`;console.log(\"\uD83D\uDCDE Telefone formatado:\",telefoneFormatado);console.log(\"\uD83D\uDCE7 Email fake gerado:\",fakeEmail);const visitorId=window.Intercom(\"getVisitorId\");const identificacao={app_id:appId,name:nome,email:fakeEmail,phone:telefoneFormatado,role:\"lead\",custom_attributes:{telefone_lead:telefoneFormatado,tipo_contato:\"lead\"}};if(!visitorId){console.log(\"\uD83D\uDE80 Fazendo boot com:\",identificacao);window.Intercom(\"boot\",identificacao);}else{console.log(\"\uD83D\uDD04 Fazendo update com:\",identificacao);window.Intercom(\"update\",identificacao);}setTimeout(()=>{console.log(\"\uD83D\uDCE9 Enviando evento inscreveu_na_waitlist\");window.Intercom(\"trackEvent\",\"inscreveu_na_waitlist\",{origem:\"form_lista_espera\",tipo_lead:\"novo\"});},300);}};}// Made with love by Cl\u00E9ment. https://lionneclement.com/\n// Full tutorial: https://lionneclement.com/tutorial/how-to-create-table-of-contents-cms-collections-framer\n//UPDATE:\n//This is a modified version in collaboration with Tay Rush. https://twitter.com/taylorrushmore\n// https://www.youtube.com/@taylorrushmore/\nconst HEADING_TO_DISPLAY=[\"h1\",\"h2\"];const SCROLL_MARGIN_TOP=100;const useStore=createStore({headings:[]});export function withTableOfContent(Component){return props=>{const[store]=useStore();const[activeSection,setActiveSection]=useState(\"\");const scrollToId=id=>{const element=document.getElementById(id);if(element){element.scrollIntoView({behavior:\"smooth\"});}};useEffect(()=>{const handleScroll=()=>{const sections=store.headings.map(heading=>document.getElementById(heading.id));const scrollPosition=window.scrollY-500;for(let i=sections.length-1;i>=0;i--){if(sections[i].offsetTop<=scrollPosition){setActiveSection(store.headings[i].id);break;}}};window.addEventListener(\"scroll\",handleScroll);return()=>{window.removeEventListener(\"scroll\",handleScroll);};},[store.headings]);return /*#__PURE__*/_jsx(_Fragment,{children:store.headings.length>0&&window?store.headings.sort((a,b)=>a.originalIndex-b.originalIndex).filter(({type})=>HEADING_TO_DISPLAY.includes(type)).map(({id,heading,type},index)=>/*#__PURE__*/_jsx(Component,{...props,variant:activeSection===id?`${type}-active`:type,title:heading,onClick:()=>scrollToId(id)})):/*#__PURE__*/_jsx(Component,{...props})});};}export function withContent(Component){return props=>{const[store,setStore]=useStore();const[newProps,setNewProps]=useState(props);useEffect(()=>{setStore({headings:formatTableOfContent(newProps.children.props.children)});},[newProps]);useEffect(()=>{const formatHeadings=()=>{const newChildren=[];props.children.props.children.length>0&&props.children.props.children.forEach((item,index)=>{const children=item.props.children;if([\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"].includes(item.type)){const{formattedId}=formatHeading(children,index);// Create a new object for the modified item\nconst newItem={...item,props:{...item.props,id:formattedId}};newChildren.push(newItem);}else{newChildren.push(item);}});// Return a new props object with the modified children\nreturn{...props,children:{...props.children,props:{...props.children.props,children:newChildren}}};};setNewProps(formatHeadings());},[props]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`.framer-text {\n                    scroll-margin-top: ${SCROLL_MARGIN_TOP}px;\n                }`}),/*#__PURE__*/_jsx(Component,{...newProps})]});};}const formatTableOfContent=children=>{const result=[];children.length>0&&children.filter(({type})=>[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"].includes(type)).map((item,index)=>{const children=item.props.children;const{formattedId,formattedHeading}=formatHeading(children,index);result.push({id:formattedId,heading:formattedHeading,type:item.type,originalIndex:index});});return result;};const formatHeading=(children,index)=>{let formattedHeading=\"\";let formattedId=\"\";if(typeof children===\"string\"){formattedHeading=children;}else if(Array.isArray(children)){formattedHeading=children.map(item=>{console.log(\"item\",item);if(typeof item===\"string\")return item.trim();if(item.type===\"br\")return\"\";return item.props.children.trim();}).join(\" \");}else if(typeof children===\"object\"){if(typeof children.props.children===\"string\"){formattedHeading=children.props.children;}}else{formattedHeading=index.toString();}formattedId=formattedHeading.trim().toLowerCase().replace(/[^a-z]+/g,\"-\").replace(/^-+|-+$/g,\"\");return{formattedId,formattedHeading};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withEnviarWaitlist(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...EnviarWaitlist(props)});};}withEnviarWaitlist.displayName=\"EnviarWaitlist\";\nexport const __FramerMetadata__ = {\"exports\":{\"withTableOfContent\":{\"type\":\"reactHoc\",\"name\":\"withTableOfContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withContent\":{\"type\":\"reactHoc\",\"name\":\"withContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEnviarWaitlist\":{\"type\":\"reactHoc\",\"name\":\"withEnviarWaitlist\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EnviarWaitlist\":{\"type\":\"override\",\"name\":\"EnviarWaitlist\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TableOfContent.map", "// Generated by Framer (4d22d44)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Comfortaa-regular\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Comfortaa\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/comfortaa/v45/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMPrEVIT9c2c8.woff2\",weight:\"400\"}]}];export const css=[\".framer-TYYhK .framer-styles-preset-gkp4l3:not(.rich-text-wrapper), .framer-TYYhK .framer-styles-preset-gkp4l3.rich-text-wrapper h5 { --framer-font-family: \\\"Comfortaa\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 32px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.212em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\",\"@media (max-width: 1199px) and (min-width: 810px) { .framer-TYYhK .framer-styles-preset-gkp4l3:not(.rich-text-wrapper), .framer-TYYhK .framer-styles-preset-gkp4l3.rich-text-wrapper h5 { --framer-font-family: \\\"Comfortaa\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 24px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.212em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\",\"@media (max-width: 809px) and (min-width: 0px) { .framer-TYYhK .framer-styles-preset-gkp4l3:not(.rich-text-wrapper), .framer-TYYhK .framer-styles-preset-gkp4l3.rich-text-wrapper h5 { --framer-font-family: \\\"Comfortaa\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv09' on, 'cv03' on, 'cv04' on, 'cv11' on; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.212em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\"];export const className=\"framer-TYYhK\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "+MAAiM,SAASA,GAAgB,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,4DAAqD,EAAE,IAAMC,EAAU,SAAS,cAAc,oBAAoB,EAAQC,EAAc,SAAS,cAAc,wBAAwB,EAAQC,EAAKF,GAAW,OAAO,KAAK,GAAG,WAAiBG,EAASF,GAAe,OAAO,QAAQ,MAAM,EAAE,EAAE,GAAG,CAACE,EAAS,CAAC,QAAQ,IAAI,0CAAgC,EAAE,MAAO,CAAC,IAAMC,EAAM,WAAiBC,EAAkB,MAAMF,EAAeG,EAAU,MAAMH,CAAQ,yBAAyB,QAAQ,IAAI,gCAAyBE,CAAiB,EAAE,QAAQ,IAAI,+BAAwBC,CAAS,EAAE,IAAMC,EAAUC,EAAO,SAAS,cAAc,EAAQC,EAAc,CAAC,OAAOL,EAAM,KAAKF,EAAK,MAAMI,EAAU,MAAMD,EAAkB,KAAK,OAAO,kBAAkB,CAAC,cAAcA,EAAkB,aAAa,MAAM,CAAC,EAAME,GAAyG,QAAQ,IAAI,gCA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E,EAA4J,SAASC,EAAmBC,EAAE,CAAC,OAAOnC,IAAQoC,EAA+BC,CAAuC,EAASvB,EAAKqB,EAAE,CAAC,GAAGnC,EAAM,GAAGjB,EAAeiB,CAAK,CAAC,CAAC,EAAI,CAACkC,EAAmB,YAAY,iBCRv5CI,EAAU,UAAU,CAAC,sBAAsB,CAAC,EAAS,IAAMC,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,YAAY,OAAO,SAAS,MAAM,SAAS,IAAI,kGAAkG,OAAO,KAAK,CAAC,CAAC,CAAC,EAAeC,EAAI,CAAC,+qBAAirB,quBAAuuB,iuBAAmuB,EAAeC,EAAU",
  "names": ["EnviarWaitlist", "nomeInput", "telefoneInput", "nome", "telefone", "appId", "telefoneFormatado", "fakeEmail", "visitorId", "window", "identificacao", "HEADING_TO_DISPLAY", "SCROLL_MARGIN_TOP", "useStore", "createStore", "withTableOfContent", "Component", "props", "store", "activeSection", "setActiveSection", "ye", "scrollToId", "id", "element", "ue", "handleScroll", "sections", "heading", "scrollPosition", "i", "p", "l", "a", "b", "type", "index", "withContent", "setStore", "newProps", "setNewProps", "formatTableOfContent", "newChildren", "item", "children", "formattedId", "formatHeading", "newItem", "u", "result", "formattedHeading", "withEnviarWaitlist", "C", "re", "DataObserverContext", "fontStore", "fonts", "css", "className"]
}
