{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/Example.js@^1.0.0", "ssg:https://framerusercontent.com/modules/SqMTTzdvOEOrokYo0umn/QFHLxGqeYP7TuGu82cJd/Intercom_Brand_Update.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\n/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export default function Example(props){const{tint,style}=props;const[active,setActive]=useState(false);return(/*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyle},children:/*#__PURE__*/ _jsx(motion.div,{onTap:()=>setActive(!active),style:{margin:50,padding:75,borderRadius:30,backgroundColor:tint},whileHover:{rotate:90},animate:{scale:active?1.25:1}})}));};Example.defaultProps={tint:\"#09F\"};addPropertyControls(Example,{tint:{title:\"Tint\",type:ControlType.Color}});const containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Example\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Example.map", "// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import Example from\"https://framer.com/m/framer/Example.js@^1.0.0\";import{useEffect}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function IntercomBrandUpdate(props){const checkIntercomLoaded=()=>{const isIntercomLoaded=typeof window.Intercom!==\"undefined\";if(isIntercomLoaded){console.log(\"Intercom is loaded.\");return true;}else{console.log(\"Intercom is not loaded.\");return false;}};useEffect(()=>{const getVisitorIdWithDelay=(attempt=1)=>{if(typeof window.Intercom===\"function\"){window.intercomSettings={app_id:\"e1vwykjc\",session_duration:24*60*60*1e3};const visitorId=window.Intercom(\"getVisitorId\");if(visitorId){console.log(`Visitor ID: ${visitorId}`);fetch(\"https://api.reached.co/api/intercom/update-lead-brand\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({id:visitorId,brand:\"reached\"})}).then(respone=>respone.json()).then(data=>data).catch(error=>console.log(error.response.data));}else if(attempt<=10){setTimeout(()=>getVisitorIdWithDelay(attempt+1),500);}}};const checkIntercomWithDelay=(attempt=1)=>{if(checkIntercomLoaded()){getVisitorIdWithDelay();}else if(attempt<=10){setTimeout(()=>checkIntercomWithDelay(attempt+1),500);}};checkIntercomWithDelay();},[]);return null// This component does not render anything\n;// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\nreturn /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(Example,{})});}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={display:\"hidden\",height:0,width:0};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IntercomBrandUpdate\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Intercom_Brand_Update.map"],
  "mappings": "sHAQmB,SAARA,EAAyBC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,MAAAC,CAAK,EAAEF,EAAW,CAACG,EAAOC,CAAS,EAAEC,EAAS,EAAK,EAAE,OAAqBC,EAAKC,EAAO,I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EAAQK,EAAuB,CAACL,EAAQ,IAAI,CAAIJ,EAAoB,EAAGG,EAAsB,EAAWC,GAAS,IAAI,WAAW,IAAIK,EAAuBL,EAAQ,CAAC,EAAE,GAAG,CAAG,EAAEK,EAAuB,CAAE,EAAE,CAAC,CAAC,EAAS,KAIjlC,OAAoBC,EAAK,MAAM,CAAC,MAAMC,EAAe,SAAsBD,EAAKE,EAAQ,CAAC,CAAC,CAAC,CAAC,CAAE,CAE9F,IAAMD,EAAe,CAAC,QAAQ,SAAS,OAAO,EAAE,MAAM,CAAC",
  "names": ["Example", "props", "tint", "style", "active", "setActive", "ye", "p", "motion", "containerStyle", "addPropertyControls", "ControlType", "IntercomBrandUpdate", "props", "checkIntercomLoaded", "window", "ue", "getVisitorIdWithDelay", "attempt", "visitorId", "respone", "data", "error", "checkIntercomWithDelay", "p", "containerStyle", "Example"]
}
