PageSourceSearch

https://hsl.co.in/build/assets/UpdateProfileInformationForm-Dd0VLWf1.js

js hsl.co.in collected 2026-10-09 22:41:07 UTC 6,846 bytes, 1 lines download raw bytes

1import{X as x,G as u,j as e,x as h}from"./app-Mnt2IEGe.js";import{I as o,T as p}from"./TextInput-DZZVw8So.js";import{I as l}from"./InputLabel-BswbtwQH.js";import{q as f}from"./transition-caWIvkel.js";function C({mustVerifyEmail:m,status:d,className:g=""}){const t=x().props.auth.user,{data:i,setData:s,post:y,errors:a,processing:n,recentlySuccessful:c,setDefaults:b}=u({_method:"patch",name:t.name||"",email:t.email||"",phone:t.phone||"",address:t.address||"",city:t.city||"",state:t.state||"",pincode:t.pincode||"",photo:null});return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx(l,{value:"Profile Photo",className:"mb-2 text-sm font-semibold text-gray-700"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("img",{src:t.profile_photo_path?`/storage/${t.profile_photo_path}`:"/img/default-avatar.png",alt:"Profile",className:"h-16 w-16 rounded-full object-cover border-2 border-gray-200"}),e.jsxs("div",{children:[e.jsx("input",{type:"file",onChange:r=>s("photo",r.target.files[0]),accept:"image/*",className:"block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-primary-light file:text-blue-700 hover:file:bg-blue-100"}),e.jsx(o,{message:a.photo,className:"mt-1"})]})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(p,{id:"name",value:i.name,onChange:r=>s("name",r.target.value),required:!0,autoComplete:"name",className:"peer w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-gray-900 transition focus:border-primary focus:ring-4 focus:ring-primary-light",placeholder:" "}),e.jsx(l,{htmlFor:"name",value:"Name",className:"absolute left-3 -top-2 bg-white px-1 text-sm font-semibold text-primary transition-all peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-top-2 peer-focus:text-sm peer-focus:text-primary"}),e.jsx(o,{message:a.name,className:"mt-1"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(p,{id:"email",type:"email",value:i.email,onChange:r=>s("email",r.target.value),required:!0,autoComplete:"username",className:"peer w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-gray-900 transition focus:border-primary focus:ring-4 focus:ring-primary-light",placeholder:" "}),e.jsx(l,{htmlFor:"email",value:"Email Address",className:"absolute left-3 -top-2 bg-white px-1 text-sm font-semibold text-primary transition-all peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-top-2 peer-focus:text-sm peer-focus:text-primary"}),e.jsx(o,{message:a.email,className:"mt-1"}),m&&t.email_verified_at===null&&e.jsxs("div",{className:"mt-2 text-sm",children:[e.jsxs("p",{className:"text-gray-800",children:["Your email address is unverified.",e.jsx(h,{href:route("verification.send"),method:"post",as:"button",className:"ml-1 underline text-primary hover:text-blue-700",children:"Click here to re-send the verification email."})]}),d==="verification-link-sent"&&e.jsx("div",{className:"mt-1 font-medium text-sm text-green-600",children:"A new verification link has been sent to your email address."})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(p,{id:"phone",value:i.phone,onChange:r=>s("phone",r.target.value),autoComplete:"tel",className:"peer w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-gray-900 transition focus:border-primary focus:ring-4 focus:ring-primary-light",placeholder:" "}),e.jsx(l,{htmlFor:"phone",value:"Phone Number",className:"absolute left-3 -top-2 bg-white px-1 text-sm font-semibold text-primary transition-all peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-top-2 peer-focus:text-sm peer-focus:text-primary"}),e.jsx(o,{message:a.phone,className:"mt-1"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"address",value:"Address",className:"mb-2 text-sm font-semibold text-gray-700"}),e.jsx("textarea",{id:"address",value:i.address,onChange:r=>s("address",r.target.value),rows:"3",className:"w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-gray-900 transition focus:border-primary focus:ring-4 focus:ring-primary-light"}),e.jsx(o,{message:a.address,className:"mt-1"})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(p,{id:"city",value:i.city,onChange:r=>s("city",r.target.value),className:"peer w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-gray-900 transition focus:border-primary focus:ring-4 focus:ring-primary-light",placeholder:" "}),e.jsx(l,{htmlFor:"city",value:"City",className:"absolute left-3 -top-2 bg-white px-1 text-sm font-semibold text-primary transition-all peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-top-2 peer-focus:text-sm peer-focus:text-primary"}),e.jsx(o,{message:a.city,className:"mt-1"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(p,{id:"state",value:i.state,onChange:r=>s("state",r.target.value),className:"peer w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-gray-900 transition focus:border-primary focus:ring-4 focus:ring-primary-light",placeholder:" "}),e.jsx(l,{htmlFor:"state",value:"State",className:"absolute left-3 -top-2 bg-white px-1 text-sm font-semibold text-primary transition-all peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-top-2 peer-focus:text-sm peer-focus:text-primary"}),e.jsx(o,{message:a.state,className:"mt-1"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(p,{id:"pincode",value:i.pincode,onChange:r=>s("pincode",r.target.value),className:"peer w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-gray-900 transition focus:border-primary focus:ring-4 focus:ring-primary-light",placeholder:" "}),e.jsx(l,{htmlFor:"pincode",value:"Pincode",className:"absolute left-3 -top-2 bg-white px-1 text-sm font-semibold text-primary transition-all peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-top-2 peer-focus:text-sm peer-focus:text-primary"}),e.jsx(o,{message:a.pincode,className:"mt-1"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[e.jsx("button",{type:"submit",disabled:n,className:"inline-flex items-center px-6 py-2.5 bg-gradient-to-r from-primary to-primary text-white font-semibold rounded-lg shadow hover:from-primary hover:to-primary transition-all disabled:opacity-50",children:n?"Saving...":"Save Changes"}
1),e.jsx(f,{show:c,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:e.jsx("p",{className:"text-sm text-green-600 font-medium",children:"Saved successfully!"})})]})]})}export{C as default};

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.