{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/Canvas-OhxN.js", "ssg:https://framer.com/m/PostHog-rnMD.js", "ssg:https://framerusercontent.com/modules/w9cIGibYYzwMpEWJvJCA/q0Rj8eYxvj4uhVbQV2tE/templates.js"],
  "sourcesContent": ["/**\n * --------------------------------------------------------------------\n * Helpers: Canvas\n * --------------------------------------------------------------------\n * Distributed under the VIAL License:\n * https://www.abruptive.com/policies/vial\n *\n * Unauthorized access or use of this code will result in prosecution\n * according to the furthest extent of the law.\n *\n * \u00A9 Abruptive LLC \u00B7 All Rights Reserved\n * --------------------------------------------------------------------\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{RenderTarget}from\"framer\";/**\n * --------------------------------------------------------------------\n * Functions\n * --------------------------------------------------------------------\n *//**\n * Get the text from a React node.\n *\n * @param node\n * @returns\n */export const getNodeText=node=>{if(node==null)return\"\";switch(typeof node){case\"string\":case\"number\":return node.toString();case\"boolean\":return\"\";case\"object\":{if(node instanceof Array)return node.map(getNodeText).join(\"\");if(\"props\"in node)return getNodeText(node.props.children);}default:console.warn(\"Unresolved `node` of type:\",typeof node,node);return\"\";}};/**\n * Check if we're viewing the canvas.\n */export const isCanvas=RenderTarget.current()===RenderTarget.canvas;/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n * @framerDisableUnlink\n */export default function Canvas(Component){return({children,...props})=>{return /*#__PURE__*/_jsx(Component,{...props,children:children});};}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Canvas\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"getNodeText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isCanvas\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Canvas.map", "/**\n * --------------------------------------------------------------------\n * Apps: PostHog\n * --------------------------------------------------------------------\n * Distributed under the VIAL License:\n * https://www.abruptive.com/policies/vial\n *\n * Unauthorized access or use of this code will result in prosecution\n * according to the furthest extent of the law.\n *\n * \u00A9 Abruptive LLC \u00B7 All Rights Reserved\n * --------------------------------------------------------------------\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{usePathname,useSearchParams}from\"https://framer.com/m/Router-vdQr.js\";/**\n * --------------------------------------------------------------------\n * Overrides\n * --------------------------------------------------------------------\n *//**\n * Create the PageView component used to track views via PostHog.\n */export function PageView(Component,config){return props=>{const pathname=usePathname();const searchParams=useSearchParams();/**\n         * Set up the dependencies used to track page views.\n         */// Get the globals and referrer from the props.\nconst{globals,referrer:{isLoadingReferrer,...referrer}}=props;// Get the globals.\nconst{isLoading,isLoggedIn,user}=globals;// Get the private status from the config.\nconst{isPrivate=false}=config||{};// Use a ref to track the last captured URL to prevent duplicate pageview captures\nconst lastCapturedUrl=useRef(\"\");/**\n         * Capture page views when the pathname changes.\n         *\n         * @note isLoadingReferrer already waits for the user to be loaded.\n         */useEffect(()=>{if(typeof window!==\"undefined\"&&!isLoadingReferrer&&pathname){const posthog=window.posthog;if(posthog){let $current_url=window.origin+pathname;// Add the search params if they exist.\nif(searchParams.toString()){$current_url=$current_url+`?${searchParams.toString()}`;}// Only track the pageview if the URL hasn't been captured before\nif(lastCapturedUrl.current!==$current_url){// Get the event.\nconst event={$current_url};// // If the route is considered private (non-public), mark it as such.\n// Note: Deprecated March 31st, 2025 in favor of isLoggedIn to handle mixed auth routes better.\n// if (isPrivate) {\n//     event[\"$destacked_members:isPrivate\"] = true\n// Track whether the user is logged in or not.\nevent[\"$destacked_members:isLoggedIn\"]=isLoggedIn;// If the route is considered private (non-public), mark it as such.\nif(isLoggedIn){event[\"$destacked_members:isPrivate\"]=true;}else{// Attach the referrer ID to the click.\nif(referrer?.affiliateUuid){event[\"$destacked_affiliates:referrer_id\"]=referrer.affiliateUuid;// Note: Added March 31st, 2025\nevent[\"$destacked_affiliates:referrer_uuid\"]=referrer.affiliateUuid;}}// Capture the page view.\nposthog.capture(\"$pageview\",event);// Update the last captured URL to prevent future triggers for the same URL\nlastCapturedUrl.current=$current_url;}}}},[pathname,searchParams,isLoadingReferrer,isLoggedIn,referrer?.uuid]);/**\n         * Identify in PostHog when the user changes.\n         */useEffect(()=>{if(!isLoading&&typeof window!==\"undefined\"){const posthog=window.posthog;if(posthog){if(!isLoggedIn||!user)return;// Get the user properties.\nconst{username,email}=user;// Identify the user.\nposthog.identify(user.id,{username,email});}}},[isLoading,isLoggedIn,user]);/**\n         * Return an empty component.\n         */return /*#__PURE__*/_jsx(Component,{...props});};}/**\n * Track views across private pages using PostHog.\n */export function PageViewPrivate(Component){return PageView(Component,{isPrivate:true});}/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n * @framerDisableUnlink\n */export default function PostHog(Component){return({children,...props})=>{return /*#__PURE__*/_jsx(Component,{...props,children:children});};}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PostHog\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"PageViewPrivate\":{\"type\":\"reactHoc\",\"name\":\"PageViewPrivate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PageView\":{\"type\":\"reactHoc\",\"name\":\"PageView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PostHog.map", "/**\n * --------------------------------------------------------------------\n * Templates\n * --------------------------------------------------------------------\n * Distributed under the VIAL License:\n * https://www.abruptive.com/policies/vial\n *\n * Unauthorized access or use of this code will result in prosecution\n * according to the furthest extent of the law.\n *\n * \u00A9 Abruptive LLC \u00B7 All Rights Reserved\n * --------------------------------------------------------------------\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import clsx from\"https://ga.jspm.io/npm:clsx@2.1.1/dist/clsx.mjs\";/**\n * --------------------------------------------------------------------\n * Templates\n * --------------------------------------------------------------------\n */import{isCanvas}from\"https://framer.com/m/Canvas-OhxN.js\";import{compose}from\"https://framer.com/m/Development-7oqH.js\";import{PageView}from\"https://framer.com/m/PostHog-rnMD.js\";import{AffiliateProvider,requireAffiliateExists,requireAffiliateMissing,ReferrerProvider}from\"https://framerusercontent.com/modules/GUpqlGhtCQnSE7iqb9Iq/T6jK8QGG3nu8jpm40bwa/affiliates.js\";import{Globals,App}from\"https://framerusercontent.com/modules/xbyJH4uSP5O2i9iSVF4l/GX9UVOXYmpmM5iRc7XjC/core.js\";import{MemberRedirect,ProfileProvider,requirePlanFree,requirePlanPlus,requireSetupComplete,requireSetupIncomplete}from\"https://framerusercontent.com/modules/vF0buUnOASZw4Wp6mgq5/c1VmtRqyqF3cs7DAewRz/members.js\";/**\n * --------------------------------------------------------------------\n * Styles\n * --------------------------------------------------------------------\n */const styles={dashboard:/*#__PURE__*/_jsx(\"style\",{children:`\n                .dashboard {\n                    display: flex !important;\n                    height: 100vh !important;\n                }\n\n                .dashboard__component {\n                    width: 100% !important;\n                    height: initial !important;\n                    min-height: auto !important;\n                }\n\n                .dashboard-page {\n                    width: 100%;\n                    height: 100%;\n                    display: flex;\n                    overflow: hidden;\n                }\n\n                .dashboard-page__component {\n                    height: initial !important;\n                }\n\n                @media (min-width: 768px) {\n                    .dashboard {\n                        padding: 8px;\n                    }\n\n                    .dashboard__component {\n                        border: 1px solid var(--token-4ee600e9-b261-4d58-ac71-46221076960e);\n                        border-radius: 8px;\n                    }\n                }\n            `})};/**\n * --------------------------------------------------------------------\n * Markup\n * --------------------------------------------------------------------\n */function withDashboardPage(Component){return props=>{return /*#__PURE__*/_jsx(\"div\",{className:\"dashboard-page\",children:/*#__PURE__*/_jsx(Component,{...props,className:clsx(props.className,\"dashboard-page__component\")})});};}/**\n * --------------------------------------------------------------------\n * Templates \u00BB Page\n * --------------------------------------------------------------------\n *//**\n * Template root used on public pages by the main Framer component.\n *\n * @todo Restructure this for clarity. Currently doesn't require the ReferrerProvider\n * because it's getting it from App, but naming is too ambiguous. This is a Dashboard-level\n * layout, not a page like DashboardPage.\n */export function Page(Component){return compose(App,PageView)(props=>{return /*#__PURE__*/_jsx(Component,{...props});});}/**\n * Override that loads up the user to the current page for public marketing pages.\n */export function PageCommon(Component){return compose(Globals,ProfileProvider)(props=>{return /*#__PURE__*/_jsx(Component,{...props});});}/**\n * --------------------------------------------------------------------\n * Templates \u00BB Screen\n * --------------------------------------------------------------------\n *//**\n * Root template used on screen pages (like login, signup, setup, etc).\n */export function Screen(Component){return compose(App,PageView)(props=>{return /*#__PURE__*/_jsx(Component,{...props});});}/**\n * Root screen template used on the setup page.\n *\n * @todo Move to the Page system instead of keeping it at a template-level.\n */export function ScreenSetup(Component){return compose(App,MemberRedirect,ProfileProvider,requireSetupIncomplete,PageView)(props=>{return /*#__PURE__*/_jsx(Component,{...props});});}/**\n * Root screen template used on the affiliate setup page.\n *\n * @todo Move to the Page system instead of keeping it at a template-level.\n */export function ScreenSetupAffiliate(Component){return compose(App,MemberRedirect,AffiliateProvider,requireAffiliateMissing,PageView)(props=>{return /*#__PURE__*/_jsx(Component,{...props});});}/**\n * --------------------------------------------------------------------\n * Templates \u00BB Dashboard\n * --------------------------------------------------------------------\n *//**\n * Root template used to create a dashboard page.\n */export function Dashboard(Component){return App(props=>{return /*#__PURE__*/_jsxs(\"div\",{className:!isCanvas?\"dashboard\":props.className,children:[styles.dashboard,/*#__PURE__*/_jsx(Component,{...props,className:clsx(props.className,!isCanvas&&\"dashboard__component\")})]});});}/**\n * --------------------------------------------------------------------\n * Templates \u00BB Dashboard \u00BB Pages\n * --------------------------------------------------------------------\n *//**\n * Create a public dashboard page.\n *\n * @todo Streamline the dependencies.\n *\n * - Globals: Needed by children wrappers.\n * - ProfileProvider: Needed by components on-page that use the useProfile hook.\n * - ReferrerProvider: Needed by PageView\n * - PageView: Needed to track views with support for referrals.\n */export function DashboardPagePublic(Component){return withDashboardPage(compose(Globals,ProfileProvider,ReferrerProvider,PageView)(Component));}/**\n * Create a private dashboard page.\n *\n * @todo Streamline the dependencies.\n *\n * - Globals: Needed by children wrappers.\n * - MemberRedirect: Checks for member status and redirects guests.\n * - ProfileProvider: Needed by components on-page that use the useProfile hook.\n * - requireSetupComplete: Checks if the setup is complete.\n * - ReferrerProvider: Needed by PageView\n * - PageView: Needed to track views with support for referrals.\n */export function DashboardPagePrivate(Component){return withDashboardPage(compose(Globals,MemberRedirect,ProfileProvider,requireSetupComplete,ReferrerProvider,PageView)(Component));}/**\n * Create a private dashboard page that requires a Free account.\n */export function DashboardPagePrivateFree(Component){return compose(DashboardPagePrivate,requirePlanFree)(Component);}/**\n * Create a private dashboard page that requires a Plus account.\n */export function DashboardPagePrivatePlus(Component){return compose(DashboardPagePrivate,requirePlanPlus)(Component);}/**\n * Create a private dashboard page that requires the member to be an active affiliate.\n *\n * @todo Restructure the logic so that PageVie triggers after validation (using a config flag?).\n */export function DashboardPagePrivateAffiliate(Component){return compose(DashboardPagePrivate,AffiliateProvider,requireAffiliateExists)(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"ScreenSetupAffiliate\":{\"type\":\"reactHoc\",\"name\":\"ScreenSetupAffiliate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DashboardPagePrivatePlus\":{\"type\":\"reactHoc\",\"name\":\"DashboardPagePrivatePlus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PageCommon\":{\"type\":\"reactHoc\",\"name\":\"PageCommon\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ScreenSetup\":{\"type\":\"reactHoc\",\"name\":\"ScreenSetup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Screen\":{\"type\":\"reactHoc\",\"name\":\"Screen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Page\":{\"type\":\"reactHoc\",\"name\":\"Page\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DashboardPagePublic\":{\"type\":\"reactHoc\",\"name\":\"DashboardPagePublic\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DashboardPagePrivateAffiliate\":{\"type\":\"reactHoc\",\"name\":\"DashboardPagePrivateAffiliate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DashboardPagePrivate\":{\"type\":\"reactHoc\",\"name\":\"DashboardPagePrivate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DashboardPagePrivateFree\":{\"type\":\"reactHoc\",\"name\":\"DashboardPagePrivateFree\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Dashboard\":{\"type\":\"reactHoc\",\"name\":\"Dashboard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "oUAuBU,IAAMA,EAASC,EAAa,QAAQ,IAAIA,EAAa,OCLrD,SAASC,EAASC,EAAUC,EAAO,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAASC,EAAY,EAAQC,EAAaC,EAAgB,EAGxH,CAAC,QAAAC,EAAQ,SAAS,CAAC,kBAAAC,EAAkB,GAAGC,CAAQ,CAAC,EAAEP,EACnD,CAAC,UAAAQ,EAAU,WAAAC,EAAW,KAAAC,CAAI,EAAEL,EAC5B,CAAC,UAAAM,EAAU,EAAK,EAAEZ,GAAQ,CAAC,EAC1Ba,EAAgBC,EAAO,EAAE,EAIpB,OAAAC,EAAU,IAAI,CAAC,GAAG,OAAOC,EAAS,KAAa,CAACT,GAAmBL,EAAS,CAAC,IAAMe,EAAQD,EAAO,QAAQ,GAAGC,EAAQ,CAAC,IAAIC,EAAaF,EAAO,OAAOd,EAEhK,GADGE,EAAa,SAAS,IAAGc,EAAaA,EAAa,IAAId,EAAa,SAAS,CAAC,IAC9ES,EAAgB,UAAUK,EAAa,CAC1C,IAAMC,EAAM,CAAC,aAAAD,CAAY,EAKzBC,EAAM,+BAA+B,EAAET,EACpCA,EAAYS,EAAM,8BAA8B,EAAE,GAClDX,GAAU,gBAAeW,EAAM,mCAAm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AAQkB,EAAqBP,EAAkBc,CAAsB,EAAE7B,CAAS,CAAE",
  "names": ["isCanvas", "RenderTarget", "PageView", "Component", "config", "props", "pathname", "usePathname", "searchParams", "useSearchParams", "globals", "isLoadingReferrer", "referrer", "isLoading", "isLoggedIn", "user", "isPrivate", "lastCapturedUrl", "pe", "ue", "window", "posthog", "$current_url", "event", "username", "email", "p", "styles", "p", "withDashboardPage", "Component", "props", "clsx", "Page", "compose", "App", "PageView", "PageCommon", "Globals", "ProfileProvider", "Screen", "ScreenSetup", "MemberRedirect", "requireSetupIncomplete", "ScreenSetupAffiliate", "AffiliateProvider", "requireAffiliateMissing", "Dashboard", "u", "isCanvas", "DashboardPagePublic", "ReferrerProvider", "DashboardPagePrivate", "requireSetupComplete", "DashboardPagePrivateFree", "requirePlanFree", "DashboardPagePrivatePlus", "requirePlanPlus", "DashboardPagePrivateAffiliate", "requireAffiliateExists"]
}
