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-CE6BE0Xl.js

import{X as p,G as h,j as e,S as x}from"./app-B4bpcw8t.js";import{A as j}from"./AdminLayout-BmrKwe2O.js";import{B as u}from"./Combination-Cl8jHAtF.js";import{C as f,a as g,b as w,c as N}from"./card-DeYcDJAz.js";import{I as t}from"./input-CRYBtCGU.js";import{L as r}from"./label-CF7AfwK7.js";import{S as b,a as C,b as v,c as y,d as m}from"./select-BNr4ESih.js";import{I as i}from"./InputError-ChFYVwBU.js";import{L as S}from"./loader-circle-DnKkuYFe.js";import"./utils-CytzSlOG.js";import"./dropdown-menu-DZPOdbMp.js";import"./index-sg5kJuQ0.js";import"./toaster-BaiGH9md.js";import"./index-DbynPVM6.js";import"./x-DNbg0Tu3.js";import"./createLucideIcon-wJ_EE_ks.js";import"./chevron-right-DYxmcBOj.js";import"./users-B9dSq1yZ.js";import"./graduation-cap-CwVe3POh.js";import"./index-DokDpAic.js";import"./index-BnyjZpqT.js";function K(){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{K as default};

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