{"version":3,"file":"DynamicLandingPageTracker.Dha7o7pB.mjs","names":["p"],"sources":["https:/framerusercontent.com/modules/4DYWI7quZmIKv8B7N5j6/wsAsI0eaKm0AEejLd8EC/DynamicLandingPageTracker.js"],"sourcesContent":["// =========================================================================\n//  DynamicLandingPageTracker.tsx\n//  Componente invisível. Coloque UMA INSTÂNCIA no topo de toda LP.\n//  Dispara trackLead.pageView() no mount, definindo o contexto que\n//  os demais eventos da página vão herdar (formSubmitAttempt, formSuccess, etc.)\n//\n//  Configuração recomendada: bind ao CMS collection \"Campaigns\" no canvas.\n//  IMPORTANTE: ajuste os imports para as URLs reais do Framer.\n// =========================================================================\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect}from\"react\";import{trackLead,getLeadTypeConfig,LEAD_TYPE_OPTIONS,LEAD_TYPE_OPTION_TITLES}from\"https://framerusercontent.com/modules/aLVfzjOzG2tfskBIvFbG/FUErh4P9xmNYWB6rpLDC/Tracking.js\";function buildContext(p){const{scenario,funnelStage}=getLeadTypeConfig(p.leadType);const base={slug:p.slug,leadType:p.leadType,funnelStage};if(scenario===\"content\"){return{...base,scenario,contentName:p.contentName??\"\",contentId:p.contentId};}if(scenario===\"commercial\"){return{...base,scenario,contentName:p.contentName,contentId:p.contentId};}return{...base,scenario};}export default function DynamicLandingPageTracker(props){useEffect(()=>{const standard={institution:props.institution,career:props.career,role:props.role};trackLead.pageView({name:props.name,context:buildContext(props),standard});// eslint-disable-next-line react-hooks/exhaustive-deps\n},[]);if(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:40,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,background:\"rgba(99, 102, 241, 0.08)\",border:\"1px dashed rgba(99, 102, 241, 0.4)\",borderRadius:6,fontSize:12,color:\"#6366f1\",fontFamily:\"sans-serif\"},children:[/*#__PURE__*/_jsx(\"span\",{children:\"📊\"}),/*#__PURE__*/_jsxs(\"span\",{children:[\"LandingPage Tracker — \",props.name||\"n\\xe3o configurado\",\" \\xb7\",\" \",props.leadType||\"sem tipo\"]})]});}return null;}DynamicLandingPageTracker.defaultProps={name:\"lp-untitled\",slug:\"untitled\",leadType:\"ebook_download\"};const hideContentFields=p=>{const scenario=getLeadTypeConfig(p.leadType).scenario;return scenario!==\"content\"&&scenario!==\"commercial\";};addPropertyControls(DynamicLandingPageTracker,{name:{type:ControlType.String,title:\"Nome\",placeholder:\"Ebook Mapas Mentais Out 2026\"},slug:{type:ControlType.String,title:\"Slug\",placeholder:\"ebook-mapas-mentais-out-2026\"},leadType:{type:ControlType.Enum,title:\"Lead Type\",options:LEAD_TYPE_OPTIONS,optionTitles:LEAD_TYPE_OPTION_TITLES,defaultValue:\"ebook_download\"},// Standard\ninstitution:{type:ControlType.String,title:\"Institui\\xe7\\xe3o\"},career:{type:ControlType.String,title:\"Carreira\"},role:{type:ControlType.String,title:\"Cargo\"},// content\ncontentName:{type:ControlType.String,title:\"Content Name\",hidden:hideContentFields},contentId:{type:ControlType.String,title:\"Content ID / URL\",hidden:hideContentFields}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DynamicLandingPageTracker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2QASsU,SAAS,EAAa,EAAE,CAAC,GAAK,CAAC,WAAS,eAAa,EAAkBA,EAAE,SAAS,CAAO,EAAK,CAAC,KAAKA,EAAE,KAAK,SAASA,EAAE,SAAS,cAAY,CAA8M,OAA1M,IAAW,UAAiB,CAAC,GAAG,EAAK,WAAS,YAAYA,EAAE,aAAa,GAAG,UAAUA,EAAE,UAAU,CAAK,IAAW,aAAoB,CAAC,GAAG,EAAK,WAAS,YAAYA,EAAE,YAAY,UAAUA,EAAE,UAAU,CAAQ,CAAC,GAAG,EAAK,WAAS,CAAE,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