import{c as n}from"./index-BTUEMLf5.js";import{_ as u}from"./index-CpZ4YSWB.js";import{i as d}from"./index-D_xozyFo.js";import{d as o,D as p,u as r,ad as m,E as f,h as i,e as c,b as h}from"./lucide-_oCiFqes.js";import{z as s}from"./external-lSEVpLsY.js";const y=o({__name:"InputGroupButton",props:{variant:{default:"ghost"},size:{default:"xs"},class:{}},setup(e){const a=e;return(t,l)=>(c(),p(r(u),{"data-size":a.size,variant:a.variant,class:m(r(n)(r(d)({size:a.size}),a.class))},{default:f(()=>[i(t.$slots,"default")]),_:3},8,["data-size","variant","class"]))}}),v=o({__name:"FieldDescription",props:{class:{}},setup(e){const a=e;return(t,l)=>(c(),h("p",{"data-slot":"field-description",class:m(r(n)("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",a.class))},[i(t.$slots,"default")],2))}}),z=e=>s.object({newPassword:s.string().max(128,"Password must be at most 128 characters."),confirmPassword:s.string()}).refine(a=>a.newPassword===a.confirmPassword,{message:e("auth.passwords_must_match"),path:["confirmPassword"]}),U=e=>s.object({username:s.string().min(3,e("auth.username_min_length")).max(50,"Username must be at most 50 characters."),displayName:s.string().max(100,"Display name must be at most 100 characters."),avatarUrl:s.string().refine(a=>!a||s.string().url().safeParse(a).success,{message:"Invalid URL format."}),role:s.string()}),g=e=>s.string().min(1,e("auth.field_required")).max(100,"Token name must be at most 100 characters."),S=e=>s.object({tokenName:g(e)}),k=e=>s.object({username:s.string().min(3,e("auth.username_min_length")).max(50,"Username must be at most 50 characters."),displayName:s.string().max(100,"Display name must be at most 100 characters."),password:s.string().min(8,e("auth.password_min_length")).max(128,"Password must be at most 128 characters."),confirmPassword:s.string(),role:s.string(),playerFilter:s.array(s.string()).default([]),providerFilter:s.array(s.string()).default([])}).refine(a=>a.password===a.confirmPassword,{message:e("auth.passwords_must_match"),path:["confirmPassword"]}),j=e=>s.object({username:s.string().min(3,e("auth.username_min_length")).max(50,"Username must be at most 50 characters."),displayName:s.string().max(100,"Display name must be at most 100 characters."),avatarUrl:s.string().refine(a=>!a||s.string().url().safeParse(a).success,{message:"Invalid URL format."}),role:s.string(),password:s.string().max(128,"Password must be at most 128 characters."),confirmPassword:s.string(),playerFilter:s.array(s.string()).default([]),providerFilter:s.array(s.string()).default([])}).refine(a=>!a.password||a.password===a.confirmPassword,{message:e("auth.passwords_must_match"),path:["confirmPassword"]});export{y as _,z as a,v as b,S as c,k as d,j as e,U as p,g as t};
