1import{u as _,c as j,j as e,L as v}from"./app-D7bY3VIr.js";import i from"./InputError-JpchlQzo.js";import o from"./InputLabel-dvjxXfr8.js";import g from"./PrimaryButton-BEsfaPUo.js";import l from"./TextInput-BIQ_0JaE.js";import{u as N}from"./useTranslation-tvhqZ2qh.js";import{e as y}from"./transition-DG5evRMa.js";function L({mustVerifyEmail:c,status:u,className:d=""}){const a=_().props.auth.user,{t}=N(),{data:m,setData:r,patch:f,errors:n,processing:x,recentlySuccessful:p}=j({first_name:a.first_name,last_name:a.last_name,email:a.email}),h=s=>{s.preventDefault(),f(route("profile.update"))};return e.jsxs("section",{className:d,children:[e.jsxs("header",{children:[e.jsx("h2",{className:"text-lg font-medium text-gray-900",children:t("common.profile_information")}),e.jsx("p",{className:"mt-1 text-sm text-gray-600",children:t("common.profile_information_description")})]}),e.jsxs("form",{onSubmit:h,className:"mt-6 space-y-6",children:[e.jsxs("div",{children:[e.jsx(o,{htmlFor:"first_name",value:t("common.first_name")}),e.jsx(l,{id:"first_name",className:"mt-1 block w-full",value:m.first_name,onChange:s=>r("first_name",s.target.value),required:!0,isFocused:!0,autoComplete:"given-name"}),e.jsx(i,{className:"mt-2",message:n.first_name})]}),e.jsxs("div",{children:[e.jsx(o,{htmlFor:"last_name",value:t("common.last_name")}),e.jsx(l,{id:"last_name",className:"mt-1 block w-full",value:m.last_name,onChange:s=>r("last_name",s.target.value),required:!0,autoComplete:"family-name"}),e.jsx(i,{className:"mt-2",message:n.last_name})]}),e.jsxs("div",{children:[e.jsx(o,{htmlFor:"email",value:t("common.email")}),e.jsx(l,{id:"email",type:"email",className:"mt-1 block w-full",value:m.email,onChange:s=>r("email",s.target.value),required:!0,autoComplete:"username"}),e.jsx(i,{className:"mt-2",message:n.email})]}),c&&a.email_verified_at===null&&e.jsxs("div",{children:[e.jsxs("p",{className:"mt-2 text-sm text-gray-800",children:[t("common.email_unverified")," ",e.jsx(v,{href:route("verification.send"),method:"post",as:"button",className:"rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",children:t("common.click_here_to_resend")})]}),u==="verification-link-sent"&&e.jsx("div",{className:"mt-2 text-sm font-medium text-green-600",children:t("common.verification_link_sent")})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(g,{disabled:x,children:t("common.save")}),e.jsx(y,{show:p,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:e.jsx("p",{className:"text-sm text-gray-600",children:t("common.saved")})})]})]})]})}export{L 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.