1import{d as n,f as p,r as u,j as e}from"./vendor-react-DRK79Gaz.js";import{i as c,P as m,V as f}from"./index-BWQpCDFv.js";import{b as d,A as x,f as l}from"./AvatarEditorExperience-DhgWfFmt.js";import"./vendor-analytics-CklxdG1N.js";import"./vendor-radix-mdAiauQ4.js";import"./vendor-motion-DbqhOaXF.js";import"./skeleton-DB3chOkc.js";import"./StepAIName-D8U99DC-.js";import"./use-enter-to-send-CM0TEJ-M.js";import"./icons-BBhgCQEQ.js";import"./textarea-B2qfct41.js";import"./alert-dialog-Dtj6rpbP.js";import"./undo-2-CuFMMDYH.js";import"./arrow-left-CTcqwonv.js";import"./ContinueButton-CaDuJwSl.js";function S(){var i;const{user:t,isLoading:r}=c(),{redirectToLogin:a}=m(),o=n(),s=((i=p({queryKey:["/api/xp"],queryFn:l,enabled:!!t&&!t.isParent}).data)==null?void 0:i.balance)??0;return u.useEffect(()=>{!r&&!t&&a()},[r,t,a]),r?e.jsx(d,{}):t?t.isParent?e.jsx("div",{className:"flex min-h-[50vh] items-center justify-center p-8 text-center text-muted-foreground",children:"Avatar customization is available for child accounts."}):e.jsx(x,{xpBalance:s,onSaveComplete:()=>o("/chat")}):e.jsx(f,{})}export{S as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.