{"version":3,"file":"MenzzoPixel.DimAtSH6.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fDzCOHChPo2uUb487xc1/RBTwyBe3bFedLbd4NUaz/MenzzoPixel.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * @framerIntrinsicWidth 0\n * @framerIntrinsicHeight 0\n * @framerDisableUnlink\n */export default function MenzzoPixel(props){const{pixelId,style}=props;useEffect(()=>{if(!pixelId)return;// Adiciona o código base do Pixel do Facebook\nconst script=document.createElement(\"script\");script.innerHTML=`\n            !function(f,b,e,v,n,t,s)\n            {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n            n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n            if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n            n.queue=[];t=b.createElement(e);t.async=!0;\n            t.src=v;s=b.getElementsByTagName(e)[0];\n            s.parentNode.insertBefore(t,s)}(window, document,'script',\n            'https://connect.facebook.net/en_US/fbevents.js');\n            fbq('init', '${pixelId}');\n            fbq('track', 'PageView');\n        `;document.head.appendChild(script);// Adiciona o noscript fallback\nconst noscript=document.createElement(\"noscript\");const img=document.createElement(\"img\");img.height=1;img.width=1;img.style.display=\"none\";img.src=`https://www.facebook.com/tr?id=${pixelId}&ev=PageView&noscript=1`;noscript.appendChild(img);document.head.appendChild(noscript);// Cleanup ao desmontar\nreturn()=>{document.head.removeChild(script);document.head.removeChild(noscript);};},[pixelId]);// Retorna um div invisível\nreturn /*#__PURE__*/_jsx(\"div\",{style:{...style,width:0,height:0,display:\"none\"}});}MenzzoPixel.defaultProps={pixelId:\"\"};addPropertyControls(MenzzoPixel,{pixelId:{type:ControlType.String,title:\"Pixel ID\",description:\"Digite o ID do seu Pixel do Facebook (apenas n\\xfameros)\",placeholder:\"Ex: 123456789\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MenzzoPixel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerIntrinsicHeight\":\"0\",\"framerIntrinsicWidth\":\"0\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MenzzoPixel.map"],"mappings":"kQAIG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,QAAM,CAAC,EAenE,OAfyE,MAAc,CAAC,GAAG,CAAC,EAAQ,OACpG,IAAM,EAAO,SAAS,cAAc,UAAU,EAAO,UAAU;;;;;;;;;2BASpC,EAAQ;;UAEzB,SAAS,KAAK,YAAY,GACpC,IAAM,EAAS,SAAS,cAAc,YAAkB,EAAI,SAAS,cAAc,OACnF,MAD0F,GAAI,OAAO,EAAE,EAAI,MAAM,EAAE,EAAI,MAAM,QAAQ,OAAO,EAAI,IAAI,kCAAkC,EAAQ,yBAAyB,EAAS,YAAY,GAAK,SAAS,KAAK,YAAY,OACjQ,CAAC,SAAS,KAAK,YAAY,GAAQ,SAAS,KAAK,YAAY,EAAW,CAAE,EAAC,CAAC,EAAQ,EAC1E,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,EAAE,OAAO,EAAE,QAAQ,OAAO,CAAC,CAAG,6BAAY,aAAa,CAAC,QAAQ,GAAG,CAAC,EAAoB,EAAY,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,YAAY,wDAA2D,YAAY,gBAAgB,CAAC"}