PageSourceSearch

https://odkryjpomorze.pl/build/assets/UpdateProfileInformationForm-1400ceba.js

js odkryjpomorze.pl collected 2026-10-02 13:03:45 UTC 2,480 bytes, 1 lines download raw bytes

1import{d as n,h as m,j as s,m as a,u as e,t as r,f as u,s as g,x,l as f,T as k,y as v}from"./config.esm-c9724f4e.js";import{_ as p}from"./InputError-4be3ca88.js";import{_ as y,a as _}from"./TextInput-ce21f96e.js";import{_ as h}from"./PrimaryButton-34a1104a.js";import{K as V,T as j,i as b}from"./app-31680ac1.js";const T=s("header",null,[s("h2",{class:"text-lg font-medium text-gray-900"},"Dane użytkownika"),s("p",{class:"mt-1 text-sm text-gray-600"}," Możesz zaktualizować swoje dane ")],-1),z={key:0},N={class:"text-sm mt-2"},$={class:"mt-2 font-medium text-sm text-green-600"},B={class:"flex items-center gap-4"},E={key:0,class:"text-sm text-gray-600"},K={__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:Boolean,status:String},setup(w){const d=w,l=V().props.auth.user,t=j({name:l.name,email:l.email});return(c,o)=>(n(),m("section",null,[T,s("form",{onSubmit:o[2]||(o[2]=v(i=>e(t).patch(c.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[s("div",null,[a(y,{for:"name",value:"Twoje dane"}),a(_,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(t).name,"onUpdate:modelValue":o[0]||(o[0]=i=>e(t).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),a(p,{class:"mt-2",message:e(t).errors.name},null,8,["message"])]),s("div",null,[a(y,{for:"email",value:"Email"}),a(_,{id:"email",type:"email",class:"mt-1 block w-full text-slate-400",modelValue:e(t).email,"onUpdate:modelValue":o[1]||(o[1]=i=>e(t).email=i),required:"",autocomplete:"email",disabled:""},null,8,["modelValue"]),a(p,{class:"mt-2",message:e(t).errors.email},null,8,["message"])]),d.mustVerifyEmail&&e(l).email_verified_at===null?(n(),m("div",z,[s("p",N,[r(" Twój email nie jest zweryfikowany "),a(e(b),{href:c.route("verification.send"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:u(()=>[r(" Kliknij aby ponownie wysłać link weryfikacyjny. ")]),_:1},8,["href"])]),g(s("div",$," Nowy link weryfikacyjny został wysłany na Twój adres e-mail. ",512),[[x,d.status==="verification-link-sent"]])])):f("",!0),s("div",B,[a(h,{disabled:e(t).processing},{default:u(()=>[r("Zapisz")]),_:1},8,["disabled"]),a(k,{"enter-from-class":"opacity-0","leave-to-class":"opacity-0",class:"transition ease-in-out"},{default:u(()=>[e(t).recentlySuccessful?(n(),m("p",E,"Zapisano.")):f("",!0)]),_:1})])],32)]))}};export{K 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.