Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/
Upload File :
Current File : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/Create-DxNG1iGx.js

import{X as p,G as h,j as e,S as x}from"./app-BmTP6guc.js";import{A as j}from"./AdminLayout-CjMXxslN.js";import{B as u}from"./button-BhHYkeOd.js";import{C as f,a as g,b as w,c as N}from"./card-C3x-ZG5W.js";import{I as t}from"./input-DyGHWNup.js";import{L as r}from"./label-BBvpekrf.js";import{S as b,a as C,b as v,c as y,d as m}from"./select-CTwvNAAL.js";import{I as i}from"./InputError-CHi-rcQD.js";import{L as S}from"./loader-circle-CgPpndr6.js";import"./utils-CytzSlOG.js";import"./dropdown-menu-DrXrYVxe.js";import"./index-BbEmxga1.js";import"./index-7efeotKz.js";import"./index-yBHduGbc.js";import"./toaster-BXPkgPoE.js";import"./x-CHODR9tn.js";import"./createLucideIcon-Clz6RkwZ.js";import"./Combination-Bxy8jxZP.js";import"./index-COLjj0g8.js";import"./chevron-right-3Fz0pDkz.js";import"./users-yydILNK1.js";import"./graduation-cap-BVe7kfFE.js";import"./index-SEQZ8Sgb.js";function Q(){const n=p().props.auth.user,{setData:a,post:d,processing:l,errors:o}=h({kabupaten_kota_id:"",nama:"",email:"",role:"admin",password:"",password_confirmation:""}),c=s=>{s.preventDefault(),d(route("admin.user.store"),{onFinish:()=>console.log("okoc")})};return e.jsxs(j,{user:n,header:e.jsx("h2",{className:"text-xl font-semibold leading-tight text-gray-800",children:"Tambah User"}),children:[e.jsx(x,{title:"Tambah User"}),e.jsx("div",{className:"flex items-center justify-between mb-2",children:e.jsx("h1",{className:"text-lg font-bold md:text-2xl",children:"Tambah User"})}),e.jsxs(f,{className:"max-w-2xl shadow-xl",children:[e.jsx(g,{children:e.jsx(w,{children:"Tambah User"})}),e.jsx(N,{children:e.jsxs("form",{onSubmit:c,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"email",children:"Email*"}),e.jsx(t,{type:"email",onChange:s=>{a("email",s.target.value)},id:"email",placeholder:"[email protected]",required:!0}),e.jsx(i,{message:o.email,className:"mt-2"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"nama",children:"Nama*"}),e.jsx(t,{onChange:s=>{a("nama",s.target.value)},id:"nama",placeholder:"Nama User",required:!0}),e.jsx(i,{message:o.nama,className:"mt-2"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"role",children:"Role*"}),e.jsxs(b,{required:!0,onValueChange:s=>{a("role",s)},children:[e.jsx(C,{className:"w-full",children:e.jsx(v,{placeholder:"Pilih Role"})}),e.jsxs(y,{children:[e.jsx(m,{value:"admin",children:"Admin"}),e.jsx(m,{value:"operator",children:"Operator"})]})]}),e.jsx(i,{message:o.role,className:"mt-2"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"password",children:"Password*"}),e.jsx(t,{onChange:s=>{a("password",s.target.value)},id:"password",placeholder:"Password",type:"password",required:!0}),e.jsx(i,{message:o.password,className:"mt-2"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{htmlFor:"password_confirmation",children:"Password Confirm*"}),e.jsx(t,{onChange:s=>{a("password_confirmation",s.target.value)},id:"password_confirmation",placeholder:"password_confirmation",type:"password",required:!0})]}),e.jsxs(u,{disabled:l,children:[l&&e.jsx(S,{className:"animate-spin"})," Tambah"]})]})})]})]})}export{Q as default};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]