1import{al as a,j as t}from"./ui-vendor-DcqczWg0.js";import{P as i}from"./PageContainer-DiteYYY8.js";import{P as o}from"./PageHeader-B0LYd5lH.js";import{S as m}from"./SectionCard-PGQhGUKZ.js";import{u as n}from"./usePageTitle-BFPEsb51.js";import{U as d}from"./UserForm-Dde9rEg1.js";import{u as p}from"./useAdmin-2XEEzruz.js";import"./form-vendor-DByqpEq1.js";import"./FormTextField-d7YI4Qa_.js";import"./index-BTzz-bOt.js";import"./query-vendor-DdVZ69Gq.js";import"./mui-icons-DlWpn-C2.js";function C(){n("New User");const s=a(),e=p();return t.jsxs(i,{maxWidth:"lg",children:[t.jsx(o,{title:"Create user",subtitle:"Add a new system user."}),t.jsx(m,{title:"User details",children:t.jsx(d,{isSubmitting:e.isPending,onSubmit:async r=>{await e.mutateAsync({...r,role:r.roles[0],password:r.password??"",defaultBranchId:r.defaultBranchId||null,branchIds:r.branchIds??[]}),s("/admin/users")}})})]})}export{C as UserCreatePage};
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.