{"release_id":"01a2309f-d47d-0000-29bc-a17a97e31fa5","chunk_id":"01a2309f-d492-7002-9513-759b91ef3ccc","file":"B7mYvNx8.mjs","mappings":"qTAGA,MAAMA,EAAmC,CACxC,gBAAiB,4BACjB,cAAe,sCACf,YAAa,sCACb,aAAc,gCACd,UAAW,oCACX,oBAAqB,qBACrB,UAAW,kBACX,WAAY,oCACZ,UAAW,wCACX,UAAW,qBACX,YAAa,4BACb,kBAAmB,sCACnB,oBAAqB,qCACrB,sBAAuB,qCACvB,eAAgB,wBAChB,aAAc,yBACd,gBAAiB,mCACjB,aAAc,oCACf,EAIO,SAASC,EAAiBC,EAAkCC,EAA2B,CAC7F,OAAI,OAAOA,GAAY,UAAYA,EAAgBA,EAC9CD,EACEF,EAASE,CAAK,GAAK,wBADP,uBAEpB","names":["MESSAGES","clanErrorMessage","error","message"],"sources":["../../../../../../src/lib/clan-errors.ts"],"sourcesContent":["// Human-readable copy for the ClanError codes returned by $lib/server/clan.ts.\n// Client-safe (plain string map) so form pages can render action errors.\n\nconst MESSAGES: Record<string, string> = {\n\talready_in_clan: \"you're already in a clan.\",\n\tlevel_too_low: 'you need a higher level to do this.',\n\tinvalid_tag: 'tag must be 2–6 letters or numbers.',\n\tinvalid_name: 'name must be 2–40 characters.',\n\ttag_taken: 'that tag is taken — pick another.',\n\tinsufficient_tokens: 'not enough tokens.',\n\tnot_found: 'clan not found.',\n\tnot_member: \"you're not a member of this clan.\",\n\tforbidden: \"you don't have permission to do that.\",\n\tclan_full: 'this clan is full.',\n\tinvite_only: 'this clan is invite-only.',\n\talready_requested: 'you already have a pending request.',\n\towner_must_transfer: 'transfer ownership before leaving.',\n\tinsufficient_treasury: 'not enough tokens in the treasury.',\n\tinvalid_amount: 'enter a valid amount.',\n\tinvalid_body: 'write something first.',\n\tinvalid_request: 'that request is no longer valid.',\n\tlink_blocked: \"Links to that site aren't allowed.\"\n};\n\n/** `message` is the server's own user-facing reason when it has one (the link\n *  guard's explanation) and wins over the code's generic copy. */\nexport function clanErrorMessage(error: string | null | undefined, message?: unknown): string {\n\tif (typeof message === 'string' && message) return message;\n\tif (!error) return 'something went wrong.';\n\treturn MESSAGES[error] ?? 'something went wrong.';\n}\n"],"version":3}