{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/Auth-warf.js", "ssg:https://framer.com/m/Balances-HSYV.js", "ssg:https://framer.com/m/Memberships-Laow.js", "ssg:https://framer.com/m/Member-gNBX.js", "ssg:https://framer.com/m/Permissions-WwEH.js", "ssg:https://framerusercontent.com/modules/vF0buUnOASZw4Wp6mgq5/Ld5OOLvQiWDIDQ82KpYe/members.js"],
  "sourcesContent": ["/**\n * --------------------------------------------------------------------\n * Members: Auth\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{useState,useEffect,useMemo,useCallback}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 * Functions\n * --------------------------------------------------------------------\n *//**\n * Get the login redirect link.\n */const getLoginRedirectUrl=defaultRedirect=>{try{const urlParams=new URLSearchParams(window.location.search);const redirectUrl=urlParams.get(\"redirect_url\");if(redirectUrl){const decodedUrl=decodeURIComponent(redirectUrl).trim();// If it starts with a protocol, treat as absolute URL\nconst hasProtocol=/^https?:\\/\\//i.test(decodedUrl);let url;if(hasProtocol){url=new URL(decodedUrl);}else{// If it starts with '/', treat as root-relative\nlet path=decodedUrl;// If it looks like \"agent.so/ambassador\", take only the path part\nif(!path.startsWith(\"/\")){const slashIndex=path.indexOf(\"/\");path=slashIndex!==-1?path.slice(slashIndex):\"/\";}url=new URL(path,window.location.origin);}// Get the current hostname and root domain\nconst currentHostname=window.location.hostname;const 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){// Force https for absolute URLs\nif(url.protocol!==\"https:\"){url.protocol=\"https:\";}// Always return absolute path + query + hash\nreturn url.pathname+url.search+url.hash;}}return defaultRedirect;}catch(error){console.error(\"Invalid redirect URL:\",error);return defaultRedirect;}};/**\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=()=>{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.');}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=useCallback(FormComponent(Component),[variant]);// 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({email},{complete,reject})=>{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\");// Complete the form request.\ncomplete();}catch(error){reject(error);}};/**\n         * Step 2: Confirm the Verification Code\n         */const confirmCode=async({code},{reject})=>{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})=>{const posthog=window.posthog;onAuth({user_id:user.id,email:user.primaryEmailAddress.emailAddress});if(posthog){posthog.capture(\"Logged In\");}setVariant(\"Redirecting\");}});}}catch(error){reject(error);}};/**\n         * Cancel the current email request and go back.\n         */const cancelEmail=()=>{setVariant(\"Email\");};/**\n         * Resend the Verification Code\n         */const resendCode=async()=>{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=({email,code},handlers)=>{switch(variant){case\"Email\":{return loginViaEmail({email},handlers);}case\"Code\":{return confirmCode({code},handlers);}}};/**\n         * Redirect if already logged in.\n         */useEffect(()=>{if(!isLoading&&isLoggedIn){const redirect=getLoginRedirectUrl(paths.home);// Wait for 3 seconds for the animation and redirect.\nif(variant===\"Redirecting\"){setTimeout(()=>{window.location.href=redirect;},3e3);}else{// ...or just redirect if not in the auth flow.\nwindow.location.href=redirect;}}},[isLoading,isLoggedIn,variant]);/**\n         * Prioritize the redirecting animation.\n         */if(variant===\"Redirecting\"){return /*#__PURE__*/_jsx(Form,{...props,variant:\"Redirecting\"});}/**\n         * Render the loading state.\n         */if(isLoading||isLoggedIn){return /*#__PURE__*/_jsx(Form,{...props,variant:\"Loading\"});}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Form,{...props,onSubmit:onSubmit,resend:resendCode,variant:variant,cancel:cancelEmail,email:clerk.client.signIn.identifier});};};/**\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.');}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=useCallback(FormComponent(Component),[variant]);// 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({email},{complete,reject})=>{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\");// Complete the form request.\ncomplete();}catch(error){reject(error);}};/**\n         * Step 2: Confirm the Verification Code\n         */const confirmCode=async({code},{reject})=>{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;onAuth({user_id:user.id,email:user.primaryEmailAddress.emailAddress});if(posthog){posthog.capture(\"Signed Up\");}setVariant(\"Redirecting\");}});}}catch(error){reject(error);}};/**\n         * Cancel the current email request and go back.\n         */const cancelEmail=()=>{setVariant(\"Email\");};/**\n         * Resend the Verification Code\n         */const resendCode=async()=>{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=({email,code},handlers)=>{switch(variant){case\"Email\":{return signUpViaEmail({email},handlers);}case\"Code\":{return confirmCode({code},handlers);}}};/**\n         * Redirect if already logged in.\n         */useEffect(()=>{if(!isLoading&&isLoggedIn){const redirect=paths.setup||paths.home;// Wait for 3 seconds for the animation and redirect.\nif(variant===\"Redirecting\"){setTimeout(()=>{window.location.href=redirect;},3e3);}else{// ...or just redirect if not in the auth flow.\nwindow.location.href=redirect;}}},[isLoading,isLoggedIn,variant]);/**\n         * Prioritize the redirecting animation.\n         */if(variant===\"Redirecting\"){return /*#__PURE__*/_jsx(Form,{...props,variant:\"Redirecting\"});}/**\n         * Render the loading state.\n         */if(isLoading||isLoggedIn){return /*#__PURE__*/_jsx(Form,{...props,variant:\"Loading\"});}/**\n         * Render the component.\n         */return /*#__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.');}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 e=>{e.preventDefault();try{setIsLoggingOut(true);// Callback that runs when logging out.\nonLogout();// 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\",{role:\"button\",onClick:logout,children:/*#__PURE__*/_jsx(Component,{...props})});};};/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n * @framerDisableUnlink\n */export default function Auth(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"LoginForm\":{\"type\":\"reactHoc\",\"name\":\"LoginForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Auth\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"SignupForm\":{\"type\":\"reactHoc\",\"name\":\"SignupForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Logout\":{\"type\":\"reactHoc\",\"name\":\"Logout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Auth.map", "/**\n * --------------------------------------------------------------------\n * Pay: Balances\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 *//**\n * --------------------------------------------------------------------\n * Functions\n * --------------------------------------------------------------------\n *//**\n * Formats a numeric balance into a string with abbreviations for thousands (K),\n * millions (M), or billions (B). For numbers less than 1,000, it uses locale-specific\n * comma separators.\n */import{jsx as _jsx}from\"react/jsx-runtime\";export function formatBalance(value){if(value>=1e9){// Format billions\nreturn`${(value/1e9).toFixed(1).replace(/\\.0$/,\"\")}B`;}if(value>=1e6){// Format millions\nreturn`${(value/1e6).toFixed(1).replace(/\\.0$/,\"\")}M`;}if(value>=1e3){// Format thousands\nreturn`${(value/1e3).toFixed(1).replace(/\\.0$/,\"\")}K`;}// For numbers less than 1000, use locale formatting for commas.\nreturn value.toLocaleString();}/**\n * Get a balance by UUID.\n */export const getBalanceByUUID=(balance_uuid,currencies=null)=>{const shardCurrency=currencies?.find(c=>c.uuid===balance_uuid);// Get the raw balance value (expected to be a number).\nconst rawBalance=shardCurrency?.balances_aggregate?.aggregate?.sum?.value;// Format the balance.\nreturn typeof rawBalance===\"number\"?formatBalance(rawBalance):null;};/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n * @framerDisableUnlink\n */export default function Balances(Component){return props=>/*#__PURE__*/_jsx(Component,{...props});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Balances\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"getBalanceByUUID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatBalance\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Balances.map", "/**\n * --------------------------------------------------------------------\n * Members: Memberships\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{isFramer}from\"https://framer.com/m/Capsule-oSSG.js\";/**\n * --------------------------------------------------------------------\n * Functions\n * --------------------------------------------------------------------\n *//**\n * Formats a membership interval.\n */export const formatMembershipInterval=membership=>{const subscription=membership?.subscription;if(membership?.status===\"active\"){if(subscription){const interval=subscription?.price?.interval;switch(interval){case\"month\":return\"Monthly\";case\"year\":return\"Annual\";default:return\"Unknown\";}}return\"Lifetime\";}return\"None\";};/**\n * --------------------------------------------------------------------\n * Overrides\n * --------------------------------------------------------------------\n *//**\n * Creates an override component with a custom condition.\n */const createOverrideComponent=(Component,dependencies,condition)=>{const{useProfile}=dependencies;return({globals:{isLoading,isLoggedIn},...props})=>{const[{profile,isLoadingProfile}]=useProfile();const{membership={}}=profile||{};if(isLoading||isLoadingProfile){return null;}else if(isFramer){return /*#__PURE__*/_jsx(Component,{...props});}else if(isLoggedIn&&condition(membership)){return /*#__PURE__*/_jsx(Component,{...props});}return null;};};/**\n * Override used to show components only to free members.\n */export const Free=(Component,options)=>{const{dependencies}=options;const condition=membership=>membership.status!==\"active\";return createOverrideComponent(Component,dependencies,condition);};/**\n * Override used to show components only to paid members.\n */export const Paid=(Component,options)=>{const{dependencies,condition:extraCondition}=options;const baseCondition=membership=>membership.status===\"active\";const finalCondition=extraCondition?membership=>baseCondition(membership)&&extraCondition(membership):baseCondition;return createOverrideComponent(Component,dependencies,finalCondition);};/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n * @framerDisableUnlink\n */export default function Memberships(Component){return({children,...props})=>{return /*#__PURE__*/_jsx(Component,{...props,children:children});};}\nexport const __FramerMetadata__ = {\"exports\":{\"Paid\":{\"type\":\"reactHoc\",\"name\":\"Paid\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Memberships\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"Free\":{\"type\":\"reactHoc\",\"name\":\"Free\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatMembershipInterval\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Memberships.map", "/**\n * --------------------------------------------------------------------\n * Members: Member\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,useMemo,useState}from\"react\";import{getBalanceByUUID}from\"https://framer.com/m/Balances-HSYV.js\";import{isFramer}from\"https://framer.com/m/Capsule-oSSG.js\";import{getSession}from\"https://framer.com/m/Clerk-47om.js\";import{getLoadingVariant}from\"https://framer.com/m/Development-7oqH.js\";import{Form as FormComponent}from\"https://framer.com/m/Forms-9VLJ.js\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{formatMembershipInterval}from\"https://framer.com/m/Memberships-Laow.js\";import{updateProfile}from\"https://framer.com/m/Profile-rodA.js\";import{toUpperCaseFirst}from\"https://framer.com/m/Strings-XPcz.js\";/**\n * --------------------------------------------------------------------\n * Constants\n * --------------------------------------------------------------------\n */const CONFIG_DEFAULT_AVATAR_URL=\"https://common-cdn.agent.so/avatars/default.png\";const CONFIG_PLUS_PLAN_UUID=\"69b7bcd4-6047-46bb-bf69-6a3030b3ac28\";const CONFIG_SHARDS_BALANCE_UUID=\"a0301b1b-0696-4511-8d88-8bd77f74c93f\";/**\n * --------------------------------------------------------------------\n * Store\n * --------------------------------------------------------------------\n */export const useMember=createStore({isLoadingMember:true,member:undefined,balance:undefined,membership:undefined});/**\n * --------------------------------------------------------------------\n * Queries\n * --------------------------------------------------------------------\n */const MEMBER_QUERY=`\n    query MEMBER_QUERY($user_id: String!) {\n\t\tmembers_profiles(where: {user_id: {_eq: $user_id}}) {\n            uuid\n            username\n            first_name\n            last_name\n            avatar\n            email\n            setup\n            memberships(where: {status: {_eq: \"active\"}}) {\n                plan {\n                    uuid\n                    title\n                }\n                status\n                subscription {\n                    price {\n                        interval\n                    }\n                    cancel_at\n                    cancel_at_period_end\n                    canceled_at\n                    cycle_end\n                    cycle_start\n                    ended_at\n                }\n            }\n        }\n        pay_currencies {\n            uuid\n            title\n            balances_aggregate(where: {member: {user_id: {_eq: $user_id}}}) {\n                aggregate {\n                    sum {\n                        value\n                    }\n                }\n            }\n        }\n\t}\n`;/**\n * --------------------------------------------------------------------\n * Functions\n * --------------------------------------------------------------------\n *//**\n * Map a member.\n */function mapMember(member){return{...member,avatar:member.avatar||CONFIG_DEFAULT_AVATAR_URL,username:member.username||\"\",first_name:member.first_name||\"\",last_name:member.last_name||\"\"};}function mapMemberProps(store){const{member,membership,balance}=store;return{isLoggedIn:member?.uuid,firstName:member?.first_name,lastName:member?.last_name,username:member?.username,avatar:member?.avatar||CONFIG_DEFAULT_AVATAR_URL,membershipPlanTitle:membership?.title,membershipPlanInterval:membership?.interval,balanceShardsValue:balance?.shards};}/**\n * Map the memberships for a member.\n */function mapMemberMemberships(member=null){const membership=member?.memberships?.find(m=>m?.plan?.uuid===CONFIG_PLUS_PLAN_UUID);return{title:membership?membership?.plan?.title:\"Agent Free\",status:membership?membership?.status:\"None\",interval:formatMembershipInterval(membership),cancel:membership?.subscription?.cancel_at||\"None\",cancelled:membership?.subscription?.canceled_at||\"None\",ended:membership?.subscription?.ended_at||\"None\",cycle:{start:membership?.subscription?.cycle_start||\"None\",end:membership?.subscription?.cycle_end||\"None\"},isActive:Boolean(membership?.status===\"active\"),isCancelling:Boolean(membership?.subscription?.cancel_at_period_end)};}/**\n * --------------------------------------------------------------------\n * Overrides\n * --------------------------------------------------------------------\n *//**\n * Override that passes member data as props to components.\n */export const withMemberProps=Component=>{if(isFramer){return props=>/*#__PURE__*/_jsx(Component,{...props});}return props=>{const[store]=useMember();/**\n         * If the member is loading, show the loader variant.\n         */if(store.isLoadingMember){return /*#__PURE__*/_jsx(Component,{...props,variant:getLoadingVariant({Component,variant:props?.variant})});}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props,...mapMemberProps(store)});};};/**\n * Override that supports the member update functionality.\n */export const withMemberUpdateForm=(Component,config={})=>{return config.withMemberProps(props=>{const{firstName,lastName,username,avatar}=props;/**\n         * Prepare the local state.\n         */const[isUploading,setIsUploading]=useState(false);/**\n         * Set the avatar variant.\n         */const avatarVariant=useMemo(()=>!avatar||CONFIG_DEFAULT_AVATAR_URL===avatar?.src?\"Empty\":\"Existing\",[avatar,CONFIG_DEFAULT_AVATAR_URL]);/**\n         * Handler used to update the current user's profile.\n         */const onSubmit=async({firstName,lastName,avatar,username},{complete,reject})=>{try{const{user,token}=await getSession();// 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 updated=await updateProfile(props.graph,user.id,payload);// If the member was updated, reload the window.\nif(updated){window.location.reload();}else{complete();}}catch(e){reject(e);}};/**\n         * Render the component.\n         */const Form=FormComponent(props=>/*#__PURE__*/_jsx(Component,{...props,firstName:firstName,lastName:lastName,username:username,avatar:avatar,variant:isUploading?\"Uploading\":props.variant,avatarVariant:avatarVariant}));return /*#__PURE__*/_jsx(Form,{...props,onSubmit:onSubmit});});};/**\n * --------------------------------------------------------------------\n * Root\n * --------------------------------------------------------------------\n * @framerDisableUnlink\n */export default function Member(Component){if(isFramer){return props=>/*#__PURE__*/_jsx(Component,{...props});}return props=>{const[store,setStore]=useMember();/**\n         * Set the member object.\n         */useEffect(()=>{if(props.graph&&store.member===undefined&&store.isLoadingMember===true){const initializeMember=async()=>{try{const{user,token}=await getSession();// Helper to set the session to guest.\nconst markAsGuest=()=>{setStore({...store,isLoadingMember:false,member:null,balance:null,membership:null});};// Check if the member is logged in.\nif(!(user&&token)){return markAsGuest();}// Get the member data.\nconst{data,error}=await props.graph.query({gql:MEMBER_QUERY,variables:{user_id:user.id}});// Check for errors.\nif(error){throw new Error(`Failed to initialize your profile. Please refresh and try again or contact support.`);}// Extract the profile.\nconst{members_profiles}=data||{};const[member]=members_profiles||[];// If the member cannot be found, mark as guest.\nif(!member){return markAsGuest();}// Update the store.\nreturn setStore({...store,isLoadingMember:false,member:mapMember(member),balance:{shards:getBalanceByUUID(CONFIG_SHARDS_BALANCE_UUID,data.pay_currencies)},membership:mapMemberMemberships(member)});}catch(error){console.error(error);}};initializeMember();}},[props.graph,store.member,store.isLoadingMember]);/**\n         * If the member is loading, show the loader variant.\n         */if(store.isLoadingMember){return /*#__PURE__*/_jsx(Component,{...props,variant:getLoadingVariant({Component,variant:props?.variant})});}/**\n         * Render the component.\n         */return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withMemberProps\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMember\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMemberUpdateForm\":{\"type\":\"reactHoc\",\"name\":\"withMemberUpdateForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Member\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Member.map", "/**\n * --------------------------------------------------------------------\n * Members: Permissions\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}from\"react\";import{isFramer}from\"https://framer.com/m/Capsule-oSSG.js\";import{usePathname,useRouter}from\"https://framer.com/m/Router-vdQr.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;const pathname=usePathname();// Redirect the user if they're already logged in.\nuseEffect(()=>{if(!isLoading&&isLoggedIn){window.location.href=getAuthRedirect(config.path);}},[isLoading,isLoggedIn,pathname]);// 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;const pathname=usePathname();const router=useRouter();// Redirect the user if they're already logged in.\nuseEffect(()=>{if(!isLoading&&!isLoggedIn){const redirect=getAuthRedirect(config.path);window.location.href=getAuthRedirect(config.path);}},[isLoading,isLoggedIn,pathname]);// 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 * @framerDisableUnlink\n */export default function Permissions(Component){return({children,...props})=>{return /*#__PURE__*/_jsx(Component,{...props,children:children});};}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Permissions\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"Guest\":{\"type\":\"reactHoc\",\"name\":\"Guest\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MemberRedirect\":{\"type\":\"reactHoc\",\"name\":\"MemberRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GuestRedirect\":{\"type\":\"reactHoc\",\"name\":\"GuestRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Variant\":{\"type\":\"reactHoc\",\"name\":\"Variant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Member\":{\"type\":\"reactHoc\",\"name\":\"Member\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Permissions.map", "/**\n * --------------------------------------------------------------------\n * Members\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*as DSMembersAuth from\"https://framer.com/m/Auth-warf.js\";import{compose}from\"https://framer.com/m/Development-7oqH.js\";import*as DSMembersMember from\"https://framer.com/m/Member-gNBX.js\";import*as DSMembersMemberships from\"https://framer.com/m/Memberships-Laow.js\";import*as DSMembersPermissions from\"https://framer.com/m/Permissions-WwEH.js\";import*as DSMembersProfile from\"https://framer.com/m/Profile-rodA.js\";import{config}from\"https://framerusercontent.com/modules/jX5EYy75jVj4TMlbqJdO/G9QM3fvgHWPinkN6k7A1/_capsule.js\";import{ReferrerProvider}from\"https://framerusercontent.com/modules/GUpqlGhtCQnSE7iqb9Iq/Lh4BmmWuJpUDDGHzPdjb/affiliates.js\";import{Globals}from\"https://framerusercontent.com/modules/xbyJH4uSP5O2i9iSVF4l/f5WPGKnvEZbEpCLTZvrK/core.js\";import{Graph}from\"https://framerusercontent.com/modules/t0XIpNUB7kXlqmpgm2YO/ACmwF6JSPSr5tu4PPaAF/database.js\";import{Loader}from\"https://framerusercontent.com/modules/2cBpFZJqxLrlRI0OkzD9/yta6bed7YeENxnofm4oZ/interface.js\";/**\n * --------------------------------------------------------------------\n * Members \u00BB Member\n * --------------------------------------------------------------------\n *//**\n * Hook from the useMember store.\n */export const useMember=DSMembersMember.useMember;/**\n * Override used to initialize the Member store & system.\n */export const withMember=Component=>{return DSMembersMember.default(Component);};/**\n * Override used the pass the props from \"withMember\".\n */export const withMemberProps=Component=>{return DSMembersMember.withMemberProps(Component);};/**\n * Override used to update member data (passes withMemberProps for context preservation).\n */export const withMemberUpdateForm=Component=>{return compose(Globals,Graph,DSMembersMember.withMemberUpdateForm)(Component,{withMemberProps});};/**\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 DSMembersProfile.default(Component,{endpoint:config.members.endpoint,tier:({isPaid})=>isPaid?\"plus\":\"free\"});},useProfile:DSMembersProfile.useProfile};/**\n * --------------------------------------------------------------------\n * Members \u00BB Profile \u00BB Overrides\n * --------------------------------------------------------------------\n */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 Overrides (Legacy)\n * --------------------------------------------------------------------\n */export const withProfile=Component=>{return DSMembersProfile.withProfile(Component);};/**\n * --------------------------------------------------------------------\n * Members \u00BB Memberships\n * --------------------------------------------------------------------\n *//**\n * Override used to show components only to free members.\n */export const showIfFree=Component=>{return Globals(DSMembersMemberships.Free(Component,{dependencies:{useProfile}}));};/**\n * Override used to show components only to paid members.\n */export const showIfPaid=Component=>{return Globals(DSMembersMemberships.Paid(Component,{dependencies:{useProfile}}));};/**\n * Override used to show components only to annual monthly members.\n */export const showIfPaidMonthly=Component=>{return Globals(DSMembersMemberships.Paid(Component,{dependencies:{useProfile},condition:membership=>membership.interval===\"Monthly\"}));};/**\n * Override used to show components only to annual paid members.\n */export const showIfPaidAnnual=Component=>{return Globals(DSMembersMemberships.Paid(Component,{dependencies:{useProfile},condition:membership=>membership.interval===\"Annual\"}));};/**\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,{// @ts-expect-error\nstatus:\"Connecting to Nexus\"})});};export const requireSetupComplete=Component=>{return DSMembersProfile.requireSetupComplete(Component,{paths:{setup:config.members.paths.setup},loader:/*#__PURE__*/_jsx(Loader,{// @ts-expect-error\nstatus:\"Connecting to Nexus\"})});};export const requirePlanFree=Component=>{return DSMembersProfile.requirePlanFree(Component,{paths:{membership:config.members.paths.membership},loader:/*#__PURE__*/_jsx(Loader,{// @ts-expect-error\nstatus:\"Connecting to Nexus\"})});};export const requirePlanPlus=Component=>{return DSMembersProfile.requirePlanPlus(Component,{paths:{upgrade:config.members.paths.upgrade},loader:/*#__PURE__*/_jsx(Loader,{// @ts-expect-error\nstatus:\"Connecting to Nexus\"})});};\nexport const __FramerMetadata__ = {\"exports\":{\"Guest\":{\"type\":\"reactHoc\",\"name\":\"Guest\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requirePlanFree\":{\"type\":\"reactHoc\",\"name\":\"requirePlanFree\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GuestRedirect\":{\"type\":\"reactHoc\",\"name\":\"GuestRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SignupForm\":{\"type\":\"reactHoc\",\"name\":\"SignupForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requireSetupComplete\":{\"type\":\"reactHoc\",\"name\":\"requireSetupComplete\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIfFree\":{\"type\":\"reactHoc\",\"name\":\"showIfFree\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIfPaidMonthly\":{\"type\":\"reactHoc\",\"name\":\"showIfPaidMonthly\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LoginForm\":{\"type\":\"reactHoc\",\"name\":\"LoginForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withProfile\":{\"type\":\"reactHoc\",\"name\":\"withProfile\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIfPaid\":{\"type\":\"reactHoc\",\"name\":\"showIfPaid\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMember\":{\"type\":\"reactHoc\",\"name\":\"withMember\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileForm\":{\"type\":\"reactHoc\",\"name\":\"ProfileForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIfPaidAnnual\":{\"type\":\"reactHoc\",\"name\":\"showIfPaidAnnual\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requireSetupIncomplete\":{\"type\":\"reactHoc\",\"name\":\"requireSetupIncomplete\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMemberUpdateForm\":{\"type\":\"reactHoc\",\"name\":\"withMemberUpdateForm\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Member\":{\"type\":\"reactHoc\",\"name\":\"Member\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileProvider\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMember\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Logout\":{\"type\":\"reactHoc\",\"name\":\"Logout\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMemberProps\":{\"type\":\"reactHoc\",\"name\":\"withMemberProps\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Variant\":{\"type\":\"reactHoc\",\"name\":\"Variant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"requirePlanPlus\":{\"type\":\"reactHoc\",\"name\":\"requirePlanPlus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MemberRedirect\":{\"type\":\"reactHoc\",\"name\":\"MemberRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProfileAvatarRemove\":{\"type\":\"reactHoc\",\"name\":\"ProfileAvatarRemove\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useProfile\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./members.map"],
  "mappings": "0WAkBG,IAAMA,GAAoBC,GAAiB,CAAC,GAAG,CAA6D,IAAMC,EAAlD,IAAI,gBAAgBC,EAAO,SAAS,MAAM,EAA8B,IAAI,cAAc,EAAE,GAAGD,EAAY,CAAC,IAAME,EAAW,mBAAmBF,CAAW,EAAE,KAAK,EAC/NG,EAAY,gBAAgB,KAAKD,CAAU,EAAME,EAAI,GAAGD,EAAaC,EAAI,IAAI,IAAIF,CAAU,MAAO,CACxG,IAAIG,EAAKH,EACT,GAAG,CAACG,EAAK,WAAW,GAAG,EAAE,CAAC,IAAMC,EAAWD,EAAK,QAAQ,GAAG,EAAEA,EAAKC,IAAa,GAAGD,EAAK,MAAMC,CAAU,EAAE,GAAI,CAACF,EAAI,IAAI,IAAIC,EAAKJ,EAAO,SAAS,MAAM,CAAE,CACvJ,IAAMM,EAAgBN,EAAO,SAAS,SAAeO,EAAWD,EAAgB,MAAM,GAAG,EAAE,MAAM,EAAE,EAAE,KAAK,GAAG,EAC7G,GAAGH,EAAI,WAAWG,GAClBH,EAAI,SAAS,SAAS,IAAII,CAAU,EAAE,GACtCJ,EAAI,WAAWI,EAEf,OAAGJ,EAAI,WAAW,WAAUA,EAAI,SAAS,UAClCA,EAAI,SAASA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,CAAC,QAAQC,EAAO,QAAQ,MAAM,OAAO,EAAE,OAAoBC,EAAKC,EAAO,CAC5M,OAAO,qBAAqB,CAAC,CAAC,CAAC",
  "names": ["getLoginRedirectUrl", "defaultRedirect", "redirectUrl", "window", "decodedUrl", "hasProtocol", "url", "path", "slashIndex", "currentHostname", "baseDomain", "error", "onAuth", "user_id", "email", "posthog", "onLogout", "LoginForm", "Component", "config", "isFramer", "props", "p", "globals", "isLoading", "isLoggedIn", "variant", "setVariant", "ye", "Form", "te", "clerk", "se", "paths", "loginViaEmail", "complete", "reject", "signIn", "signInAttempt", "emailAddressId", "factor", "confirmCode", "code", "setActive", "status", "session", "user", "cancelEmail", "resendCode", "emailCodeFactor", "e", "v", "getError", "onSubmit", "handlers", "ue", "redirect", "SignupForm", "referrer", "signUpViaEmail", "signUp", "verifications", "Logout", "isLoggingOut", "setIsLoggingOut", "logout", "formatBalance", "value", "getBalanceByUUID", "balance_uuid", "currencies", "rawBalance", "c", "formatMembershipInterval", "membership", "subscription", "createOverrideComponent", "Component", "dependencies", "condition", "useProfile", "isLoading", "isLoggedIn", "props", "profile", "isLoadingProfile", "isFramer", "p", "Free", "options", "Paid", "extraCondition", "baseCondition", "CONFIG_DEFAULT_AVATAR_URL", "CONFIG_PLUS_PLAN_UUID", "CONFIG_SHARDS_BALANCE_UUID", "useMember", "createStore", "MEMBER_QUERY", "mapMember", "member", "mapMemberProps", "store", "membership", "balance", "mapMemberMemberships", "m", "formatMembershipInterval", "withMemberProps", "Component", "isFramer", "props", "p", "getLoadingVariant", "withMemberUpdateForm", "config", "firstName", "lastName", "username", "avatar", "isUploading", "setIsUploading", "ye", "avatarVariant", "se", "onSubmit", "complete", "reject", "user", "token", "getSession", "payload", "toUpperCaseFirst", "publicUrl", "updateProfile", "window", "e", "Form", "Member", "setStore", "ue", "markAsGuest", "data", "error", "members_profiles", "getBalanceByUUID", "getAuthRedirect", "basePath", "strippedUrl", "window", "separator", "Guest", "Component", "isFramer", "props", "p", "globals", "isLoading", "isLoggedIn", "Member", "Component", "isFramer", "props", "p", "globals", "isLoading", "isLoggedIn", "MemberRedirect", "config", "user", "pathname", "usePathname", "router", "useRouter", "ue", "redirect", "getAuthRedirect", "window", "useMember", "withMember", "Component", "Member", "withMemberProps", "withMemberUpdateForm", "compose", "Globals", "Graph", "LoginForm", "config", "SignupForm", "ReferrerProvider", "Logout", "Guest", "MemberRedirect", "Component", "Globals", "config", "p", "Loader", "ProfileProvider", "useProfile", "Profile", "isPaid", "ProfileForm", "compose", "Graph", "ProfileAvatarRemove", "showIfFree", "Component", "Globals", "Free", "useProfile", "showIfPaid", "Paid", "requireSetupIncomplete", "Component", "config", "p", "Loader", "requireSetupComplete", "requirePlanFree", "requirePlanPlus"]
}
