{"version":3,"file":"use_pendo_track_event-Dr19Pgmm.js","sources":["../../app/javascript/components/shared/use_pendo_track_event.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { AppContext, Environment } from \"../app\";\n\nexport default function usePendoTrackEvent() {\n const { environment } = useContext(AppContext);\n return (name: string) => {\n if (environment === Environment.Production && typeof pendo !== \"undefined\" && pendo.isReady) {\n return pendo.track(name);\n }\n };\n}\n"],"names":["usePendoTrackEvent","environment","useContext","AppContext","name","Environment"],"mappings":"8dAGA,SAAwBA,GAAqB,CAC3C,KAAM,CAAE,YAAAC,CAAA,EAAgBC,EAAA,WAAWC,CAAU,EAC7C,OAAQC,GAAiB,CACvB,GAAIH,IAAgBI,EAAY,YAAc,OAAO,MAAU,KAAe,MAAM,QAC3E,OAAA,MAAM,MAAMD,CAAI,CAE3B,CACF"}