{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/mSg0CrdBR7ckfETJ7pLL/oiGeYmAqtbZpvvHxA4xt/PostHogCustomEvent.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";// @ts-ignore\nimport*as faCore from\"https://cdn.framerauth.com/packages/overrides/core/live/latest/core.js\";// Learn more: https://www.framer.com/developers/overrides/\nexport function CaptureApplyButton(Component){const WrappedComponent=props=>{const{store}=faCore.useStore();const user_data={id:store.user?.id,email:store.user?.email,name:store.user?.first_name,linkedin:store.user?.last_name};const handleClick=event=>{if(typeof props.onClick===\"function\"){props.onClick(event);}const button_title=\"apply\";const event_data={button_title,toggle_status:null,user_data};window.posthog.capture(`clicked-${button_title}`,event_data);console.log(\"PostHog fired:\",event_data);};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};return WrappedComponent;}export function IndetifyUserSuccessfullLogin(Component){const WrappedComponent=props=>{const{store}=faCore.useStore();const user_data={id:store.user?.id,email:store.user?.email,name:store.user?.first_name,linkedin:store.user?.last_name};console.log(\"succes login user_data:\",user_data);window.posthog.identify(store.user?.email,user_data// optional: set additional person properties\n);return /*#__PURE__*/_jsx(Component,{...props});};return WrappedComponent;}\nexport const __FramerMetadata__ = {\"exports\":{\"IndetifyUserSuccessfullLogin\":{\"type\":\"reactHoc\",\"name\":\"IndetifyUserSuccessfullLogin\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CaptureApplyButton\":{\"type\":\"reactHoc\",\"name\":\"CaptureApplyButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PostHogCustomEvent.map"],
  "mappings": "2HAEO,SAASA,EAAmBC,EAAU,CAAihB,OAAzfC,GAAO,CAAC,GAAK,CAAC,MAAAC,CAAK,EAASC,EAAS,EAAQC,EAAU,CAAC,GAAGF,EAAM,MAAM,GAAG,MAAMA,EAAM,MAAM,MAAM,KAAKA,EAAM,MAAM,WAAW,SAASA,EAAM,MAAM,SAAS,EAAwR,OAAoBG,EAAKL,EAAU,CAAC,GAAGC,EAAM,QAAjTK,GAAO,CAAI,OAAOL,EAAM,SAAU,YAAYA,EAAM,QAAQK,CAAK,EAAG,IAAMC,EAAa,QAAcC,EAAW,CAAC,aAAAD,EAAa,cAAc,KAAK,UAAAH,CAAS,EAAEK,EAAO,QAAQ,QAAQ,WAAWF,CAAY,GAAGC,CAAU,EAAE,QAAQ,IAAI,iBAAiBA,CAAU,CAAE,CAAkE,CAAC,CAAE,CAA0B,CAAQ,SAASE,EAA6BV,EAAU,CAC3lB,OADmnBC,GAAO,CAAC,GAAK,CAAC,MAAAC,CAAK,EAASC,EAAS,EAAQC,EAAU,CAAC,GAAGF,EAAM,MAAM,GAAG,MAAMA,EAAM,MAAM,MAAM,KAAKA,EAAM,MAAM,WAAW,SAASA,EAAM,MAAM,SAAS,EAAE,eAAQ,IAAI,0BAA0BE,CAAS,EAAEK,EAAO,QAAQ,SAASP,EAAM,MAAM,MAAME,CAC/5B,EAAsBC,EAAKL,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAE,CAA0B",
  "names": ["CaptureApplyButton", "Component", "props", "store", "f", "user_data", "p", "event", "button_title", "event_data", "window", "IndetifyUserSuccessfullLogin"]
}
