{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/Auth-warf.js", "ssg:https://framer.com/m/Permissions-WwEH.js", "ssg:https://framer.com/m/Profile-rodA.js@ZPH0YSrWNq2NoveVgRc7", "ssg:https://framerusercontent.com/modules/vF0buUnOASZw4Wp6mgq5/3FYAEdX4fGrR1qWUBv7j/members.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,useMemo}from\"react\";import{Form as FormComponent}from\"https://framer.com/m/Forms-9VLJ.js\";import{isFramer}from\"https://framer.com/m/Capsule-oSSG.js\";import{getError}from\"https://framer.com/m/Development-7oqH.js\";import{toast}from\"https://framer.com/m/Sonner-2W7J.js\";/**\n * --------------------------------------------------------------------\n * Helpers\n * --------------------------------------------------------------------\n *//**\n * Extracts and validates `redirect_url` from the current URL.\n *\n * Ensures URL is on the same domain (`example.com`) or its subdomains (`*.example.com`).\n */const getRedirectUrl=()=>{try{const urlParams=new URLSearchParams(window.location.search);const redirectUrl=urlParams.get(\"redirect_url\");if(redirectUrl){const decodedUrl=decodeURIComponent(redirectUrl);// Validate if it's a proper URL\nconst url=new URL(decodedUrl);// Get the current hostname and root domain\nconst currentHostname=window.location.hostname;// Extracts \"example.com\" from \"sub.example.com\"\nconst baseDomain=currentHostname.split(\".\").slice(-2).join(\".\");// Ensure the redirect URL is on the same domain or a subdomain\nif(url.hostname===currentHostname||// Exact match\nurl.hostname.endsWith(`.${baseDomain}`)||// Subdomain match\nurl.hostname===baseDomain// Root domain match\n){return decodedUrl;}}}catch(error){console.error(\"Invalid redirect URL:\",error);}return null;};/**\n * Handler that fires when authentication changes.\n */const onAuth=({user_id,email})=>{const posthog=window.posthog;// Identify the user on PostHog.\nif(posthog){posthog.identify(user_id,{email});}// Remove the affiliates:referrer key from localStorage.\nlocalStorage.removeItem(\"affiliates:referrer\");};/**\n * Handler for when the user logs out.\n */const onLogout=async()=>{const posthog=window.posthog;// Remove the affiliates:referrer key from localStorage.\nlocalStorage.removeItem(\"affiliates:referrer\");// Reset the Posthog User and Analytics Person object.\nposthog.reset();};/**\n * --------------------------------------------------------------------\n * Overrides\n * --------------------------------------------------------------------\n *//**\n * Override used to turn a component into a login form using Clerk.\n */export const LoginForm=(Component,config)=>{if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});if(!config.paths){throw new Error('LoginForm requires the \"config.paths\" to be explicitly set.');}else{if(!config.paths.home){throw new Error('LoginForm requires the \"config.paths.home\" to be explicitly set.');}}return({globals,...props})=>{const{isLoading,isLoggedIn}=globals;const[variant,setVariant]=useState(\"Email\");const Form=FormComponent(Component);// Get the Clerk instance.\nconst clerk=useMemo(()=>{if(!isLoading){return window.Clerk;}},[isLoading]);/**\n         * Config\n         */const{paths}=config;/**\n         * Step 1: Send a Verification Email\n         */const loginViaEmail=async function({email}){try{const{client:{signIn}}=clerk;// Create a new signIn object.\nconst signInAttempt=await signIn.create({identifier:email});// Prepare and send the email verification.\nconst{emailAddressId}=signInAttempt.supportedFirstFactors.find(factor=>factor.strategy===\"email_code\"&&factor.safeIdentifier===email);// Run the first factor authentication.\nawait signInAttempt.prepareFirstFactor({strategy:\"email_code\",emailAddressId});// Set the component to the next step.\nsetVariant(\"Code\");}catch(e){toast.error(getError(e));}};/**\n         * Step 2: Confirm the Verification Code\n         */const confirmCode=async function({code}){try{const{client:{signIn},setActive}=clerk;// Attempt a code verification via email.\nconst{status,createdSessionId:session}=await signIn.attemptFirstFactor({strategy:\"email_code\",code});// If the verification is successful, continue.\nif(status===\"complete\"){await setActive({session,beforeEmit:({user})=>{onAuth({user_id:user.id,email:user.primaryEmailAddress.emailAddress});// Set the component to the next step.\nsetVariant(\"Redirecting\");// Set the redirect URL.\nconst redirect=getRedirectUrl()||paths.home;// Redirect the user after login.\nsetTimeout(()=>{window.location.href=redirect;},3e3);}});}}catch(e){toast.error(getError(e));}};/**\n         * Cancel the current email request and go back.\n         */const cancelEmail=function(){setVariant(\"Email\");};/**\n         * Resend the Verification Code\n         */const resendCode=async function(){try{const{client:{signIn}}=clerk;const emailCodeFactor=signIn.supportedFirstFactors.find(factor=>factor.strategy===\"email_code\");await signIn.prepareFirstFactor({strategy:\"email_code\",emailAddressId:emailCodeFactor.emailAddressId});alert(\"Your verification code has been re-sent. Please check your email inbox & spam.\");}catch(e){toast.error(getError(e));}};/**\n         * Component form submission handler.\n         */const onSubmit=async({email,code})=>{switch(variant){case\"Email\":{return await loginViaEmail({email});}case\"Code\":{return await confirmCode({code});}}};/**\n         * Redirect if already logged in.\n         */useEffect(()=>{if(!isLoading&&isLoggedIn){window.location.href=paths.home;}},[isLoading,isLoggedIn]);/**\n         * Render the loading state.\n         */if(isLoading||isLoggedIn){return /*#__PURE__*/_jsx(Form,{...props,variant:\"Loading\"});}/**\n         * Render the component.\n         */// @ts-ignore\nreturn /*#__PURE__*/_jsx(Form,{...props,onSubmit:onSubmit,resend:resendCode,variant:variant,cancel:cancelEmail});};};/**\n * Override used to turn a component into a sign up form using Clerk.\n */export const SignupForm=(Component,config)=>{if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});if(!config.paths){throw new Error('SignupForm requires the \"config.paths\" to be explicitly set.');}else{if(!config.paths.home){throw new Error('SignupForm requires the \"config.paths.home\" to be explicitly set.');}if(!config.paths.setup){throw new Error('SignupForm requires the \"config.paths.setup\" to be explicitly set.');}}return({globals,referrer,...props})=>{const{isLoading,isLoggedIn}=globals;const[variant,setVariant]=useState(\"Email\");const Form=FormComponent(Component);// Get the Clerk instance.\nconst clerk=useMemo(()=>{if(!isLoading){return window.Clerk;}},[isLoading]);/**\n         * Config\n         */const{paths}=config;/**\n         * Step 1: Send a Verification Email\n         */const signUpViaEmail=async function({email}){try{const{client:{signUp}}=clerk;// Create a new signup object.\nconst signUpAttempt=await signUp.create({emailAddress:email,unsafeMetadata:referrer?{referrer:referrer.affiliateUuid}:undefined});// Prepare and send the email verification.\nawait signUpAttempt.prepareEmailAddressVerification();// Set the component to the next step.\nsetVariant(\"Code\");}catch(e){toast.error(getError(e));}};/**\n         * Step 2: Confirm the Verification Code\n         */const confirmCode=async function({code}){try{const{client:{signUp},setActive}=clerk;// Attempt a code verification via email.\nconst{verifications,createdSessionId:session}=await signUp.attemptEmailAddressVerification({code});// If the verification is successful, continue.\nif(verifications.emailAddress.status===\"verified\"){setActive({session,beforeEmit:({user})=>{const posthog=window.posthog;// Run the auth callback.\nonAuth({user_id:user.id,email:user.primaryEmailAddress.emailAddress});// Capture the signup event in PostHog.\nif(posthog){posthog.capture(\"Signed Up\");}// Set the component to the next step.\nsetVariant(\"Redirecting\");// Set the redirect URL.\nconst redirect=paths.setup||paths.home;// Redirect the user after login.\nsetTimeout(()=>{window.location.href=redirect;},3e3);}});}}catch(e){toast.error(getError(e));}};/**\n         * Cancel the current email request and go back.\n         */const cancelEmail=function(){setVariant(\"Email\");};/**\n         * Resend the Verification Code\n         */const resendCode=async function(){try{const{client:{signUp}}=clerk;await signUp.prepareEmailAddressVerification();alert(\"Your verification code has been re-sent. Please check your email inbox & spam.\");}catch(e){toast.error(getError(e));}};/**\n         * Component form submission handler.\n         */const onSubmit=async({email,code})=>{switch(variant){case\"Email\":{return await signUpViaEmail({email});}case\"Code\":{return await confirmCode({code});}}};/**\n         * Redirect if already logged in.\n         */useEffect(()=>{if(!isLoading&&isLoggedIn){window.location.href=paths.home;}},[isLoading,isLoggedIn]);/**\n         * Render the loading state.\n         */if(isLoading||isLoggedIn){return /*#__PURE__*/_jsx(Form,{...props,variant:\"Loading\"});}/**\n         * Render the component.\n         */// @ts-ignore\nreturn /*#__PURE__*/_jsx(Form,{...props,onSubmit:onSubmit,resend:resendCode,cancel:cancelEmail,variant:variant,email:clerk.client.signUp.emailAddress});};};/**\n * Override used to log out the user on click.\n */export const Logout=(Component,config)=>{if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});if(!config.paths){throw new Error('Logout requires the \"config.paths\" to be explicitly set.');}else{if(!config.paths.login){throw new Error('Logout requires the \"config.paths.login\" to be explicitly set.');}}return({globals,...props})=>{const{isLoading,isLoggedIn}=globals;const[isLoggingOut,setIsLoggingOut]=useState(false);// Get the Clerk instance.\nconst clerk=useMemo(()=>{if(!isLoading){return window.Clerk;}},[isLoading]);/**\n         * Config\n         */const{paths}=config;/**\n         * Step 1: Send a Verification Email\n         */const logout=async function(e){e.preventDefault();try{setIsLoggingOut(true);// Callback that runs when logging out.\nawait onLogout();// Remove the Clerk session.\nawait clerk.signOut();// Redirect to the login page.\nwindow.location.href=paths.login+`?redirect_url=`+encodeURIComponent(window.location.href);}catch(e){toast.error(getError(e));setIsLoggingOut(false);}return false;};/**\n         * Render the loading state.\n         */if(isLoading||!isLoggedIn||isLoggingOut){return /*#__PURE__*/_jsx(Component,{...props,variant:\"Loading\"});}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(\"span\",{onClick:logout,children:/*#__PURE__*/_jsx(Component,{...props})});};};/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n */export default function Auth(Component){return({children,...props})=>{return /*#__PURE__*/_jsx(Component,{...props,children:children});};}\nexport const __FramerMetadata__ = {\"exports\":{\"Logout\":{\"type\":\"reactHoc\",\"name\":\"Logout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Auth\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SignupForm\":{\"type\":\"reactHoc\",\"name\":\"SignupForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LoginForm\":{\"type\":\"reactHoc\",\"name\":\"LoginForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Auth.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{isFramer}from\"https://framer.com/m/Capsule-oSSG.js\";/**\n * --------------------------------------------------------------------\n * Helpers\n * --------------------------------------------------------------------\n *//**\n * Build the redirect URL.\n */function getAuthRedirect(basePath){const currentUrl=window.location.href;// Remove 'https://' and an optional 'www.' from the beginning.\nconst strippedUrl=currentUrl.replace(/^https:\\/\\/(www\\.)?/,\"\");// Determine whether to use '?' or '&' if basePath already contains query parameters.\nconst separator=basePath.includes(\"?\")?\"&\":\"?\";// Return the complete URL with the encoded redirect_url parameter.\nreturn`${basePath}${separator}redirect_url=${encodeURIComponent(strippedUrl)}`;}/**\n * --------------------------------------------------------------------\n * Overrides\n * --------------------------------------------------------------------\n *//**\n * An override used to display components only to guests.\n */export function Guest(Component){if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});return props=>{const{globals}=props;const{isLoading,isLoggedIn}=globals;// Hide the content while loading.\nif(isLoading||isLoggedIn){return null;}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props});};}/**\n * Wrapper that checks if the user is a guest.\n */export function GuestRedirect(Component,config){if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});if(!config.path){throw new Error('GuestRedirect requires the \"config.path\" to be explicitly set.');}return props=>{const{globals}=props;const{isLoading,isLoggedIn,user}=globals;// Redirect the user if they're already logged in.\nuseEffect(()=>{if(!isLoading&&isLoggedIn){window.location.href=getAuthRedirect(config.path);}},[isLoading,isLoggedIn]);// Hide the content while loading.\nif(isLoading||!isLoggedIn){return config.loader;}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props});};}/**\n * An override used to display components only to members.\n */export function Member(Component){if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});return props=>{const{globals}=props;const{isLoading,isLoggedIn}=globals;// Hide the content while loading.\nif(isLoading||!isLoggedIn){return null;}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props});};}/**\n * Wrapper that checks if the user is logged in.\n */export function MemberRedirect(Component,config){if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});if(!config.path){throw new Error('MemberRedirect requires the \"config.path\" to be explicitly set.');}return props=>{const{globals}=props;const{isLoading,isLoggedIn,user}=globals;// Redirect the user if they're already logged in.\nuseEffect(()=>{if(!isLoading&&!isLoggedIn){window.location.href=getAuthRedirect(config.path);}},[isLoading,isLoggedIn]);// Hide the content until we finished loading.\nif(isLoading||!isLoggedIn){return config.loader;}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props});};}/**\n * An override used to switch the variant between user states.\n */export function Variant(Component){if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});return props=>{const{globals}=props;const{isLoading,isLoggedIn}=globals;// Hide the content while loading.\nif(isLoading){return null;}// Show the member variant if logged in.\nif(isLoggedIn){return /*#__PURE__*/_jsx(Component,{...props,variant:\"Member\"});}// Show the guest variant if not logged in.\nreturn /*#__PURE__*/_jsx(Component,{...props,variant:\"Guest\"});};}/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n */export default function Permissions(Component){return({children,...props})=>{return /*#__PURE__*/_jsx(Component,{...props,children:children});};}\nexport const __FramerMetadata__ = {\"exports\":{\"Guest\":{\"type\":\"reactHoc\",\"name\":\"Guest\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Permissions\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"Member\":{\"type\":\"reactHoc\",\"name\":\"Member\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GuestRedirect\":{\"type\":\"reactHoc\",\"name\":\"GuestRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Variant\":{\"type\":\"reactHoc\",\"name\":\"Variant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MemberRedirect\":{\"type\":\"reactHoc\",\"name\":\"MemberRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Permissions.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,useMemo}from\"react\";import{isFramer}from\"https://framer.com/m/Capsule-oSSG.js\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{getError,propify}from\"https://framer.com/m/Development-7oqH.js\";import{Form as FormComponent}from\"https://framer.com/m/Forms-9VLJ.js\";import{toUpperCaseFirst}from\"https://framer.com/m/Strings-XPcz.js\";import{toast}from\"https://framer.com/m/Sonner-2W7J.js\";/**\n * --------------------------------------------------------------------\n * Store\n * --------------------------------------------------------------------\n */export const useProfile=createStore({isLoadingProfile:true,profile:undefined});/**\n * --------------------------------------------------------------------\n * Callbacks\n * --------------------------------------------------------------------\n *//**\n * Callback that fires when the profile was updated.\n */const onProfileUpdated=async(user_id,{username})=>{if(username){const posthog=window.posthog;if(posthog){posthog.identify(user_id,{username});}}};/**\n * --------------------------------------------------------------------\n * Functions\n * --------------------------------------------------------------------\n *//**\n * Update a member's profile with new data.\n */export async function updateProfile(graph,user_id,object){try{const{data,error,...other}=await graph.query({gql:`\n                mutation UpdateMemberProfile($user_id: String!, $object: members_profiles_set_input!) {\n                    update_members_profiles(where: {user_id: {_eq: $user_id}}, _set: $object) {\n                        returning {\n                            uuid\n                            username\n                        }\n                    }\n                }\n            `,variables:{user_id,object}});// Return empty if an error occurs.\nif(error){if(error==='Uniqueness violation. duplicate key value violates unique constraint \"profiles_username_key\"'){throw\"This username already exists. Choose another one and try again.\";}throw\"Unable to update your profile. Please refresh and try again.\";}// Get the updated member.\nconst{update_members_profiles:{returning}}=data||{};const[member]=returning||[];// If no member found, return empty.\nif(!member){return null;}// Run the callback.\nawait onProfileUpdated(user_id,member);// @todo: Update the profile data store using a caching system.\n// setStore({\n//     ...store,\n//     profile: {\n//         ...store.profile,\n//         ...member,\n//     },\n// })\n// Return the affiliate referrer.\nreturn propify(member);}catch(e){toast.error(getError(e));console.error(getError(e));return null;}}/**\n * Helper used to get the member profile.\n */export async function getProfile(args){const{endpoint,token,user_id}=args;// Prepare the query params.\nconst params=new URLSearchParams({token,user_id}).toString();// Run the query.\nconst res=await fetch(`${endpoint}?${params}`);// If an error occurs, return null.\nif(!res.ok){console.error(res.statusText);return null;}// Get the data.\nconst data=await res.json();// Return the data.\nreturn data;}/**\n * --------------------------------------------------------------------\n * Overrides\n * --------------------------------------------------------------------\n *//**\n * Pass the values of the profile hook to the component.\n */export function withProfile(Component){if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});return props=>{const[{isLoadingProfile,profile}]=useProfile();/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props,variant:isLoadingProfile?\"Loading\":props.variant,...profile});};}/**\n * Override for the profile form used to update a user's profile details.\n */export const ProfileForm=(Component,config)=>{if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});if(!config?.endpoint){throw new Error('ProfileForm requires the \"config.endpoint\" to be explicitly set.');}else{if(!config?.defaults?.avatar){throw new Error('ProfileForm requires the \"config.defaults.avatar\" to be explicitly set.');}}return({firstName,lastName,avatar,username,...props})=>{const{globals,graph}=props;const Form=FormComponent(Component);const{isLoading,isLoggedIn,user,token}=globals;const[store,setStore]=useProfile();const[isUploading,setIsUploading]=useState(false);/**\n         * Set the avatar variant.\n         */const avatarVariant=useMemo(()=>!avatar||config.defaults.avatar===avatar.src?\"Empty\":\"Existing\",[avatar,config.defaults.avatar]);/**\n         * Handler used to update the current user's profile.\n         */const onSubmit=async({firstName,lastName,avatar,username})=>{try{const user_id=user.id;// Prepare the update payload.\nconst payload={first_name:firstName&&toUpperCaseFirst(firstName),last_name:lastName&&toUpperCaseFirst(lastName),avatar:undefined,username};// If an avatar exists, replace the user avatar.\nif(avatar){setIsUploading(true);const{publicUrl}=await user.setProfileImage({file:avatar});payload.avatar=publicUrl;}// Update the profile.\nconst member=await updateProfile(graph,user_id,payload);// If the member was updated, reload the window.\nif(member){window.location.reload();}}catch(e){toast.error(getError(e));}};/**\n         * Render the component\n         */return /*#__PURE__*/_jsx(Form,{...props,defaultValues:{firstName,lastName,username},avatar:avatar,avatarVariant:avatarVariant,onSubmit:onSubmit,variant:isUploading?\"Uploading\":props.variant});};};/**\n * Override used to remove the user avatar.\n */export const ProfileAvatarRemove=Component=>{if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});return props=>{const{globals,graph}=props;const{user}=globals;/**\n         * States used to show component interactivity.\n         */const[isRemoving,setIsRemoving]=useState(false);/**\n         * Handler used to update the current user's profile.\n         */const onClick=async()=>{try{setIsRemoving(true);await user.setProfileImage({file:null});// Update the profile.\nconst member=await updateProfile(graph,user.id,{avatar:null});// If the member was updated, reload the window.\nif(member){window.location.reload();}}catch(e){toast.error(getError(e));}};/**\n         * Render the component\n         */return /*#__PURE__*/_jsx(Component,{...props,onClick:onClick,variant:isRemoving?\"Loading\":props.variant,title:isRemoving?\"Removing...\":props.title});};};/**\n * --------------------------------------------------------------------\n * Wrappers\n * --------------------------------------------------------------------\n *//**\n * Helper used to create a setup redirect.\n */function withRedirect(Component,config){if(isFramer)return props=>/*#__PURE__*/_jsx(Component,{...props});return props=>{const{condition,loader}=config;const[{isLoadingProfile:isLoading,profile:data}]=useProfile();// Set the redirect flag if applicable.\nconst redirect=!isLoading&&data?condition(data):undefined;// Redirect the user.\nuseEffect(()=>{if(!isLoading&&redirect){window.location.href=config.redirect;}},[isLoading,redirect]);// Render the loader.\nif(isLoading||redirect===undefined||redirect){return loader;}// Render the component.\nreturn /*#__PURE__*/_jsx(Component,{...props});};}/**\n * Redirect members to the home page if they completed their setup.\n */export const requireSetupIncomplete=(Component,config)=>{return withRedirect(Component,{loader:config.loader,condition:profile=>profile.member.setup===true,redirect:config.paths.home});};/**\n * Redirect members to the setup page if they didn't complete their setup.\n */export const requireSetupComplete=(Component,config)=>{return withRedirect(Component,{loader:config.loader,condition:profile=>profile.member.setup!==true,redirect:config.paths.setup});};/**\n * Redirect members to the membership page if they are on a free plan.\n */export const requirePlanFree=(Component,config)=>{return withRedirect(Component,{loader:config.loader,condition:profile=>profile.membership.plan!==\"Agent Free\",redirect:config.paths.membership});};/**\n * Redirect members to the upgrade page if they are not on a Plus plan.\n */export const requirePlanPlus=(Component,config)=>{return withRedirect(Component,{loader:config.loader,condition:profile=>profile.membership.plan!==\"Agent Plus\",redirect:config.paths.upgrade});};/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n */export default function Profile(Component,config){return props=>{const{isLoading,token,user}=props.globals;const[store,setStore]=useProfile();/**\n         * Set the member profile object.\n         */useEffect(()=>{if(!isLoading){if(token&&user){getProfile({endpoint:config.endpoint,user_id:user.id,token}).then(profile=>{return setStore({...store,profile,isLoadingProfile:false});});}else{setStore({...store,profile:null,isLoadingProfile:false});}}},[isLoading,user,token,config]);/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"updateProfile\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileForm\":{\"type\":\"reactHoc\",\"name\":\"ProfileForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requirePlanFree\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requireSetupIncomplete\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useProfile\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getProfile\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Profile\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"requirePlanPlus\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withProfile\":{\"type\":\"reactHoc\",\"name\":\"withProfile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileAvatarRemove\":{\"type\":\"reactHoc\",\"name\":\"ProfileAvatarRemove\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requireSetupComplete\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Profile.map", "import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * --------------------------------------------------------------------\n * Members\n * --------------------------------------------------------------------\n */import Loader from\"https://framer.com/m/Loader-2mfM.js\";import*as DSMembersAuth from\"https://framer.com/m/Auth-warf.js\";import*as DSMembersPermissions from\"https://framer.com/m/Permissions-WwEH.js\";import*as DSMembersProfile from\"https://framer.com/m/Profile-rodA.js@ZPH0YSrWNq2NoveVgRc7\";import{ReferrerProvider}from\"https://framerusercontent.com/modules/GUpqlGhtCQnSE7iqb9Iq/kuPBxVsuSEu0RzPeDzgY/affiliates.js\";import{config}from\"https://framerusercontent.com/modules/jX5EYy75jVj4TMlbqJdO/ZNyVdLwu4XRXsi3mdylt/_capsule.js\";import{Globals}from\"https://framerusercontent.com/modules/xbyJH4uSP5O2i9iSVF4l/fygiY4oI49kqISnRvGPq/core.js\";import{Graph}from\"https://framerusercontent.com/modules/t0XIpNUB7kXlqmpgm2YO/lUVeJIzDLW5g78KEcrYm/database.js\";import{compose}from\"https://framerusercontent.com/modules/o2lrVtDYB74hKk6KjXma/JX49OH6fvg3mTmyJG3n0/helpers.js\";/**\n * --------------------------------------------------------------------\n * Members \u00BB Auth\n * --------------------------------------------------------------------\n *//**\n * Overrides\n */export const LoginForm=Component=>{return Globals(DSMembersAuth.LoginForm(Component,{paths:{home:config.members.paths.home}}));};export const SignupForm=Component=>{return Globals(ReferrerProvider(DSMembersAuth.SignupForm(Component,{paths:{home:config.members.paths.home,setup:config.members.paths.setup}})));};export const Logout=Component=>{return Globals(DSMembersAuth.Logout(Component,{paths:{login:config.members.paths.login}}));};/**\n * --------------------------------------------------------------------\n * Members \u00BB Permissions\n * --------------------------------------------------------------------\n *//**\n * Overrides\n */export const Guest=Component=>{return Globals(DSMembersPermissions.Guest(Component));};export const Member=Component=>{return Globals(DSMembersPermissions.Member(Component));};export const Variant=Component=>{return Globals(DSMembersPermissions.Variant(Component));};/**\n * Redirects\n */export const GuestRedirect=Component=>{return Globals(DSMembersPermissions.GuestRedirect(Component,{path:config.members.paths.home,loader:/*#__PURE__*/_jsx(Loader,{})}));};export const MemberRedirect=Component=>{return Globals(DSMembersPermissions.MemberRedirect(Component,{path:config.members.paths.login,loader:/*#__PURE__*/_jsx(Loader,{})}));};/**\n * --------------------------------------------------------------------\n * Members \u00BB Profile\n * --------------------------------------------------------------------\n *//**\n * Dependencies\n */export const{ProfileProvider,useProfile}={ProfileProvider:Component=>{return Globals(DSMembersProfile.default(Component,{endpoint:config.members.endpoint}));},useProfile:DSMembersProfile.useProfile};/**\n * Overrides\n */export const withProfile=Component=>{return DSMembersProfile.withProfile(Component);};export const ProfileForm=Component=>{return compose(Globals,Graph,DSMembersProfile.ProfileForm)(Component,{endpoint:config.members.endpoint,defaults:{avatar:config.members.defaults.avatar}});};export const ProfileAvatarRemove=Component=>{return compose(Globals,Graph,DSMembersProfile.ProfileAvatarRemove)(Component);};/**\n * --------------------------------------------------------------------\n * Members \u00BB Profile \u00BB Setup\n * --------------------------------------------------------------------\n *//**\n * Redirects\n */export const requireSetupIncomplete=Component=>{return DSMembersProfile.requireSetupIncomplete(Component,{paths:{home:config.members.paths.home},loader:/*#__PURE__*/_jsx(Loader,{status:\"Connecting to Nexus\"})});};export const requireSetupComplete=Component=>{return DSMembersProfile.requireSetupComplete(Component,{paths:{setup:config.members.paths.setup},loader:/*#__PURE__*/_jsx(Loader,{status:\"Connecting to Nexus\"})});};export const requirePlanFree=Component=>{return DSMembersProfile.requirePlanFree(Component,{paths:{membership:config.members.paths.membership},loader:/*#__PURE__*/_jsx(Loader,{status:\"Connecting to Nexus\"})});};export const requirePlanPlus=Component=>{return DSMembersProfile.requirePlanPlus(Component,{paths:{upgrade:config.members.paths.upgrade},loader:/*#__PURE__*/_jsx(Loader,{status:\"Connecting to Nexus\"})});};\nexport const __FramerMetadata__ = {\"exports\":{\"withProfile\":{\"type\":\"reactHoc\",\"name\":\"withProfile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useProfile\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileProvider\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MemberRedirect\":{\"type\":\"reactHoc\",\"name\":\"MemberRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileAvatarRemove\":{\"type\":\"reactHoc\",\"name\":\"ProfileAvatarRemove\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Logout\":{\"type\":\"reactHoc\",\"name\":\"Logout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requirePlanPlus\":{\"type\":\"reactHoc\",\"name\":\"requirePlanPlus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileForm\":{\"type\":\"reactHoc\",\"name\":\"ProfileForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requireSetupIncomplete\":{\"type\":\"reactHoc\",\"name\":\"requireSetupIncomplete\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GuestRedirect\":{\"type\":\"reactHoc\",\"name\":\"GuestRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Variant\":{\"type\":\"reactHoc\",\"name\":\"Variant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Guest\":{\"type\":\"reactHoc\",\"name\":\"Guest\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SignupForm\":{\"type\":\"reactHoc\",\"name\":\"SignupForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Member\":{\"type\":\"reactHoc\",\"name\":\"Member\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requireSetupComplete\":{\"type\":\"reactHoc\",\"name\":\"requireSetupComplete\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LoginForm\":{\"type\":\"reactHoc\",\"name\":\"LoginForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requirePlanFree\":{\"type\":\"reactHoc\",\"name\":\"requirePlanFree\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "oOAQG,IAAMA,GAAe,IAAI,CAAC,GAAG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,gBAAgBN,GAAmBC,EAAyBM,EAAQP,EAAU,CAAC,SAASE,EAAO,QAAQ,QAAQ,CAAC,CAAC,EAAI,WAA4BI,CAAU,EAExG,IAAME,GAAYC,GAAmBC,EAAQC,EAAQC,EAAuBJ,EAAW,EAAEC,EAAU,CAAC,SAASI,EAAO,QAAQ,SAAS,SAAS,CAAC,OAAOA,EAAO,QAAQ,SAAS,MAAM,CAAC,CAAC,EAAiBC,GAAoBL,GAAmBC,EAAQC,EAAQC,EAAuBE,EAAmB,EAAEL,CAAS,EAMnYM,GAAuBN,GAAoCM,GAAuBN,EAAU,CAAC,MAAM,CAAC,KAAKI,EAAO,QAAQ,MAAM,IAAI,EAAE,OAAoBG,EAAKC,EAAO,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,EAAiBC,GAAqBT,GAAoCS,GAAqBT,EAAU,CAAC,MAAM,CAAC,MAAMI,EAAO,QAAQ,MAAM,KAAK,EAAE,OAAoBG,EAAKC,EAAO,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,EAAiBE,GAAgBV,GAAoCU,GAAgBV,EAAU,CAAC,MAAM,CAAC,WAAWI,EAAO,QAAQ,MAAM,UAAU,EAAE,OAAoBG,EAAKC,EAAO,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,EAAiBG,GAAgBX,GAAoCW,GAAgBX,EAAU,CAAC,MAAM,CAAC,QAAQI,EAAO,QAAQ,MAAM,OAAO,EAAE,OAAoBG,EAAKC,EAAO,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC",
  "names": ["getRedirectUrl", "redirectUrl", "window", "decodedUrl", "url", "currentHostname", "baseDomain", "error", "onAuth", "user_id", "email", "posthog", "onLogout", "LoginForm", "Component", "config", "isFramer", "props", "p", "globals", "isLoading", "isLoggedIn", "variant", "setVariant", "ye", "Form", "clerk", "se", "paths", "loginViaEmail", "signIn", "signInAttempt", "emailAddressId", "factor", "e", "v", "getError", "confirmCode", "code", "setActive", "status", "session", "user", "redirect", "cancelEmail", "resendCode", "emailCodeFactor", "onSubmit", "ue", "SignupForm", "referrer", "signUpViaEmail", "signUp", "verifications", "Logout", "isLoggingOut", "setIsLoggingOut", "logout", "getAuthRedirect", "basePath", "strippedUrl", "window", "separator", "Guest", "Component", "isFramer", "props", "p", "globals", "isLoading", "isLoggedIn", "Member", "Component", "isFramer", "props", "p", "globals", "isLoading", "isLoggedIn", "MemberRedirect", "config", "user", "ue", "window", "getAuthRedirect", "useProfile", "createStore", "onProfileUpdated", "user_id", "username", "posthog", "window", "updateProfile", "graph", "object", "data", "error", "other", "returning", "member", "propify", "e", "v", "getError", "getProfile", "args", "endpoint", "token", "params", "res", "ProfileForm", "Component", "config", "isFramer", "props", "p", "firstName", "lastName", "avatar", "username", "globals", "graph", "Form", "isLoading", "isLoggedIn", "user", "token", "store", "setStore", "useProfile", "isUploading", "setIsUploading", "ye", "avatarVariant", "se", "user_id", "payload", "toUpperCaseFirst", "publicUrl", "updateProfile", "window", "e", "v", "getError", "ProfileAvatarRemove", "isRemoving", "setIsRemoving", "withRedirect", "condition", "loader", "data", "redirect", "ue", "requireSetupIncomplete", "profile", "requireSetupComplete", "requirePlanFree", "requirePlanPlus", "Profile", "getProfile", "LoginForm", "Component", "Globals", "config", "SignupForm", "ReferrerProvider", "Logout", "Guest", "Member", "MemberRedirect", "Component", "Globals", "config", "p", "Loader_2mfM_default", "ProfileProvider", "useProfile", "Profile", "ProfileForm", "Component", "compose", "Globals", "Graph", "config", "ProfileAvatarRemove", "requireSetupIncomplete", "p", "Loader_2mfM_default", "requireSetupComplete", "requirePlanFree", "requirePlanPlus"]
}
