{"version":3,"file":"Tracking.DQtUExCA.mjs","names":["__esmMin","window","init_ssg_sandbox_shims","analyticsAllowed","layer","state","i","entry","settings","track","event","properties","init_Tracking"],"sources":["https:/framerusercontent.com/modules/DOGdXzIyLyPtSlDNy0Q1/C8YJwTh0NIM3sz6yGB0G/Tracking.js"],"sourcesContent":["/**\n * Website tracking for PostHog: the events the site sends by hand (PostHog records page views by itself).\n *\n * - video_played: a visitor pressed \"Watch video\" (StoryVideo.tsx, on template pages and customer stories).\n *   Properties: video_title, video_kind.\n * - video_progress: a visitor has watched 25, 50, 75 or 100 percent of a video file. Property: percent\n *   (plus video_title and video_kind). It counts what was really played, so skipping ahead does not count,\n *   and 100 is sent once 95 percent has played, because people close a film during its end card.\n * - example_opened: a visitor opened an example chat (ExampleChat.tsx). Properties: source (\"row\" for a click on an\n *   example on the page, \"pill\" for the \"See examples\" button), example, company, category.\n * - setup_prompt_copied: a visitor clicked \"Copy setup prompt\" and the prompt was copied (ResolutionSetup.tsx).\n *\n * PostHog adds the page to every event by itself ($pathname), which is how the dashboard tells template pages from\n * customer stories.\n *\n * PostHog is loaded by Google Tag Manager once a visitor has consented. These calls also stop as soon as a visitor\n * turns analytics off in the cookie settings, because PostHog itself keeps running until the next page load.\n * Each event is also pushed to the dataLayer, so it can be used in GTM later. The early access events work the same\n * way and live in EarlyAccessTracking.tsx.\n *//** The visitor's latest analytics choice, from the cookie banner's consent commands in the dataLayer */function analyticsAllowed(){const layer=window.dataLayer;let state;if(layer&&typeof layer.length===\"number\"){for(let i=0;i<layer.length;i++){const entry=layer[i];const settings=entry&&entry[0]===\"consent\"?entry[2]:null;if(settings&&typeof settings===\"object\"&&\"analytics_storage\"in settings)state=settings.analytics_storage;}}return state!==\"denied\";}/** Sends one event. It never throws, so tracking can't break the page. */export function track(event,properties={}){if(typeof window===\"undefined\")return;try{if(analyticsAllowed())window.posthog?.capture?.(event,properties);}catch{}try{window.dataLayer?.push?.({event,...properties});}catch{}}\nexport const __FramerMetadata__ = {\"exports\":{\"track\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Tracking.map"],"mappings":"A,oGAmB2G,SAASG,GAAkB,CAAC,IAAMC,EAAMH,EAAO,UAAcI,EAAM,GAAGD,GAAO,OAAOA,EAAM,QAAS,SAAU,IAAI,IAAIE,EAAE,EAAEA,EAAEF,EAAM,OAAO,IAAI,CAAC,IAAMG,EAAMH,EAAME,GAASE,EAASD,GAAOA,EAAM,KAAK,UAAUA,EAAM,GAAG,KAAQC,GAAU,OAAOA,GAAW,UAAU,sBAAsBA,IAAS,EAAMA,EAAS,kBAAkB,CAAE,OAAOH,IAAQ,QAAS,CAA2E,SAAgBI,EAAM,EAAM,EAAW,CAAC,EAAE,CAAC,GAAUR,IAAS,OAAmB,IAAG,CAAIE,EAAiB,GAAEF,EAAO,SAAS,UAAUS,EAAMC,CAAU,CAAE,MAAM,CAAC,CAAC,GAAG,CAACV,EAAO,WAAW,OAAO,CAAC,QAAM,GAAGU,CAAU,CAAC,CAAE,MAAM,CAAC,CAA5D,CAA6D,C"}