{"version":3,"file":"GoogleAnalyticsTag.CQFdsgKA.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/keCDcXtX9FeA53jBv00N/UGNVXafTVl3TR5AMIp6D/GoogleAnalyticsTag.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useEffect,useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function GoogleAnalyticsTag(props){const isStaticRenderer=useIsStaticRenderer();const measurementId=useMemo(()=>{return(props.measurementId||\"G-LK7CWY7FLS\").trim()||\"G-LK7CWY7FLS\";},[props.measurementId]);useEffect(()=>{if(isStaticRenderer)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(!measurementId)return;if(!window.__gaScriptIds)window.__gaScriptIds={};if(!window.__gaConfiguredIds)window.__gaConfiguredIds={};const scriptSrc=`https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(measurementId)}`;const existingScript=document.querySelector(`script[src=\"${scriptSrc}\"]`);if(!existingScript&&!window.__gaScriptIds[measurementId]){const script=document.createElement(\"script\");script.async=true;script.src=scriptSrc;document.head.appendChild(script);window.__gaScriptIds[measurementId]=true;}else{window.__gaScriptIds[measurementId]=true;}if(!window.dataLayer)window.dataLayer=[];if(!window.gtag){window.gtag=function gtag(...args){window.dataLayer?.push(args);};}if(!window.__gaConfiguredIds[measurementId]&&typeof window.gtag===\"function\"){window.gtag(\"js\",new Date);window.gtag(\"config\",measurementId);window.__gaConfiguredIds[measurementId]=true;}},[isStaticRenderer,measurementId]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\"});}addPropertyControls(GoogleAnalyticsTag,{measurementId:{type:ControlType.String,title:\"Measurement ID\",defaultValue:\"G-LK7CWY7FLS\",placeholder:\"G-XXXXXXXXXX\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleAnalyticsTag\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoogleAnalyticsTag.map"],"mappings":"sMAGG,SAAwB,EAAmB,EAAM,CAAC,IAAM,EAAiB,EAAoB,EAAQ,EAAcA,OAAoB,EAAM,eAAe,eAAA,CAAgB,KAAK,GAAG,eAAiB,CAAC,EAAM,aAAa,CAAC,EAAugC,OAArgC,MAAc,CAAiG,GAA7F,GAAkC,IAAS,QAAa,OAAO,SAAW,KAAsB,CAAC,EAAc,OAAO,AAAyB,EAAO,gBAAc,CAAC,EAAE,AAA6B,EAAO,oBAAkB,CAAC,EAAE,IAAM,EAAU,+CAA+C,mBAAmB,CAAa,IAA8E,GAAG,CAAxD,SAAS,cAAc,eAAe,EAAU,GAAsB,GAAG,CAAC,EAAO,cAAc,GAAe,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,MAAM,GAAK,EAAO,IAAI,EAAU,SAAS,KAAK,YAAY,CAAM,EAAE,EAAO,cAAc,GAAe,EAAK,KAAM,GAAO,cAAc,GAAe,GAAM,AAAqB,EAAO,YAAU,CAAC,EAAE,AAAiB,EAAO,OAAK,SAAc,GAAG,EAAK,CAAC,EAAO,WAAW,KAAK,CAAI,CAAE,EAAM,CAAC,EAAO,kBAAkB,IAAgB,OAAO,EAAO,MAAO,aAAY,EAAO,KAAK,KAAK,IAAI,IAAI,EAAE,EAAO,KAAK,SAAS,CAAa,EAAE,EAAO,kBAAkB,GAAe,GAAM,EAAE,CAAC,EAAiB,CAAa,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,cAAc,MAAM,EAAE,cAAc,MAAM,CAAC,CAAE,qBAHr0C,IAAwE,IAAqC,EAGytC,EAAoB,EAAmB,CAAC,cAAc,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,aAAa,eAAe,YAAY,cAAc,CAAC,CAAC"}