{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/VTAMS3r6ZIGZZvNCyDzu/f05praKG3c77CFafiHbx/TrackPageViewed.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{trackEvent,PageTypes}from\"https://framerusercontent.com/modules/RwrIIaMipdOCDebC8aCX/TFbaSqoRIoHWLFhx66vJ/AnalyticsUtils.js\";export default function TrackPageViewed({pageType,blogName,experienceName}){useEffect(()=>{const eventPayload={eventName:\"Affiliate Page Viewed\",\"Collection ID\":\"220\",\"Page Type\":pageType};if(blogName){eventPayload[\"Blog Name\"]=blogName;}if(experienceName){eventPayload[\"Experience Name\"]=experienceName;}trackEvent(eventPayload);},[]);return /*#__PURE__*/_jsx(\"div\",{});}addPropertyControls(TrackPageViewed,{pageType:{type:ControlType.Enum,title:\"Page Type\",defaultValue:PageTypes.LandingPage,displaySegmentedControl:true,segmentedControlDirection:\"vertical\",options:Object.values(PageTypes),optionTitles:Object.keys(PageTypes)},blogName:{type:ControlType.String,title:\"Blog Name\",hidden(props){return props.pageType!==PageTypes.BlogPage;}},experienceName:{type:ControlType.String,title:\"Experience Name\",hidden(props){return props.pageType!==PageTypes.ExperiencePage;}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TrackPageViewed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "gJAA+Q,SAARA,EAAiC,CAAC,SAAAC,EAAS,SAAAC,EAAS,eAAAC,CAAc,EAAE,CAAC,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAa,CAAC,UAAU,wBAAwB,gBAAgB,MAAM,YAAYJ,CAAQ,EAAKC,IAAUG,EAAa,WAAW,EAAEH,GAAaC,IAAgBE,EAAa,iBAAiB,EAAEF,GAAgBG,EAAWD,CAAY,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,CAAC,CAAE,CAACE,EAAoBP,EAAgB,CAAC,SAAS,CAAC,KAAKQ,EAAY,KAAK,MAAM,YAAY,aAAaC,EAAU,YAAY,wBAAwB,GAAK,0BAA0B,WAAW,QAAQ,OAAO,OAAOA,CAAS,EAAE,aAAa,OAAO,KAAKA,CAAS,CAAC,EAAE,SAAS,CAAC,KAAKD,EAAY,OAAO,MAAM,YAAY,OAAOE,EAAM,CAAC,OAAOA,EAAM,WAAWD,EAAU,QAAS,CAAC,EAAE,eAAe,CAAC,KAAKD,EAAY,OAAO,MAAM,kBAAkB,OAAOE,EAAM,CAAC,OAAOA,EAAM,WAAWD,EAAU,cAAe,CAAC,CAAC,CAAC",
  "names": ["TrackPageViewed", "pageType", "blogName", "experienceName", "ue", "eventPayload", "trackEvent", "addPropertyControls", "ControlType", "PageTypes", "props"]
}
