1import{i as h,r as j,j as e,H as b,L as f}from"./react-vendor-CZJcMeOp.js";import{B as k,aK as w,aL as N,aM as _,aV as l,T as i,h as o,aW as n,al as z,l as v,b as d,a as y}from"./common-components-Dl_Uf-x5.js";import{G as C}from"./layouts-Ds50GusA.js";import"./inertia-vendor-Bl1LuK12.js";import"./vendor-C07kESPO.js";import"./swiper-vendor-DGRWMYna.js";import"./utils-315QXOB-.js";function M(){const{data:s,setData:r,post:x,processing:m,errors:t,reset:p}=h({first_name:"",last_name:"",email:"",email_confirmation:"",password:"",password_confirmation:"",terms_of_use:"",newsletter:"",newsletter_sms:"",recaptcha_token:""}),u=async a=>{a.preventDefault(),grecaptcha.ready(async()=>{const c=await grecaptcha.execute("6LeeS7oqAAAAABvMdZs9PdGydhIskXhzpYAdYa4t",{action:"submit"});r("recaptcha_token",c)})};j.useEffect(()=>{s.recaptcha_token&&x(route("register"),{onFinish:()=>p("password","password_confirmation")})},[s.recaptcha_token]);const g=a=>{r(c=>({...c,terms_of_use:a?"1":"",newsletter:a?"1":"",newsletter_sms:a?"1":""}))};return e.jsxs(C,{children:[e.jsx(b,{title:"Rejestracja"}),e.jsxs("div",{children:[e.jsx(k,{className:"mt-6 px-0 lg:mb-12 mb-6",links:[{title:"Zaloguj",url:route("login")},{title:"Rejestracja"}]}),e.jsxs("form",{onSubmit:u,className:"lg:max-w-[50%] lg:mb-20 mb-8",children:[e.jsx("h1",{className:"lg:text-[48px] lg:leading-[58px] text-2xl leading-[29px] tracking-[0.96px] font-big-caslon lg:mb-6 mb-4",children:"Zarejestruj siÄ"}),e.jsxs("div",{className:"relative flex items-center mb-4",children:[e.jsx("div",{className:"flex-1 border-t border-[#E6E6E6]"}),e.jsx("span",{className:"px-2 text-base font-semibold uppercase tracking-[1.68px] font-degular-display whitespace-nowrap",children:"przy pomocy konta"}),e.jsx("div",{className:"flex-1 border-t border-[#E6E6E6]"})]}),e.jsxs("div",{className:"flex gap-6 mb-12 justify-center",children:[e.jsx("a",{href:route("auth.social.redirect",{provider:"google"}),className:"border border-black flex items-center justify-center size-10 lg:size-14 transition-all ease-in-out duration-300 hover:bg-gray-100","aria-label":"Zarejestruj przez Google",children:e.jsx(w,{className:"size-6 lg:size-8"})}),e.jsx("a",{href:route("auth.social.redirect",{provider:"facebook"}),className:"border border-black flex items-center justify-center size-10 lg:size-14 transition-all ease-in-out duration-300 hover:bg-gray-100","aria-label":"Zarejestruj przez Facebook",children:e.jsx(N,{className:"size-6 lg:size-8"})}),e.jsx("a",{href:route("auth.social.redirect",{provider:"apple"}),className:"border border-black flex items-center justify-center size-10 lg:size-14 transition-all ease-in-out duration-300 hover:bg-gray-100","aria-label":"Zarejestruj przez Apple",children:e.jsx(_,{className:"size-6 lg:size-8"})})]}),e.jsxs("div",{className:"relative flex items-center mb-4",children:[e.jsx("div",{className:"flex-1 border-t border-[#E6E6E6]"}),e.jsx("span",{className:"px-2 text-base font-semibold uppercase tracking-[1.68px] font-degular-display whitespace-nowrap",children:"przy pomocy e-maila"}),e.jsx("div",{className:"flex-1 border-t border-[#E6E6E6]"})]}),e.jsxs("div",{className:"flex items-center gap-x-4 mb-8",children:[e.jsx("div",{className:"border border-gray-400 size-6 rounded-full flex items-center justify-center text-[14px] leading-[14px] uppercase tracking-[1.68px] font-semibold",children:e.jsx("span",{className:"pl-[2px] pb-[1px]",children:"1"})}),e.jsx("h2",{className:"lg:text-2xl text-xl lg:leading-7 leading-6 font-semibold tracking-[0.96px]",children:"Dane konta"})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-y-6 gap-x-4 lg:mb-12 mb-6",children:[e.jsxs("div",{children:[e.jsx(l,{htmlFor:"first_name",value:"ImiÄ",requiredMark:!0}),e.jsx(i,{id:"first_name",name:"first_name",value:s.first_name,className:"mt-1 block w-full",autoComplete:"first_name",isFocused:!0,onChange:a=>r("first_name",a.target.value),placeholder:"ImiÄ"}),e.jsx(o,{message:t.first_name,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"last_name",value:"Nazwisko",requiredMark:!0}),e.jsx(i,{id:"last_name",name:"last_name",value:s.last_name,className:"mt-1 block w-full",autoComplete:"last_name",onChange:a=>r("last_name",a.target.value),required:!0,placeholder:"Nazwisko"}),e.jsx(o,{message:t.last_name,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"email",value:"Email",requiredMark:!0}),e.jsx(i,{id:"email",name:"email",value:s.email,className:"mt-1 block w-full",autoComplete:"email",onChange:a=>r("email",a.target.value),required:!0,placeholder:"Email (to bÄdzie Twój login)"}),e.jsx(o,{message:t.email,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"email_confirmation",value:"Powtórz email",requiredMark:!0}),e.jsx(i,{id:"email_confirmation",name:"email_confirmation",value:s.email_confirmation,className:"mt-1 block w-full",onCh
1ange:a=>r("email_confirmation",a.target.value),required:!0,placeholder:"Powtórz email"}),e.jsx(o,{message:t.email,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"password",value:"HasÅo",requiredMark:!0}),e.jsx(i,{id:"password",type:"password",name:"password",value:s.password,className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"HasÅo",onChange:a=>r("password",a.target.value),required:!0}),e.jsx("small",{className:"text-xs text-gray-600 leading-2 block mt-1",children:"HasÅo musi zawieraÄ co najmniej 12 znaków, w tym co najmniej jednÄ
wielkÄ
literÄ, jeden znak specjalny (np. !, @, #, $, %, ^, &, *, (, ), _) oraz jednÄ
cyfrÄ."}),e.jsx(o,{message:t.password,className:"mt-2"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"password_confirmation",value:"Powtórz hasÅo",requiredMark:!0}),e.jsx(i,{id:"password_confirmation",type:"password",name:"password_confirmation",value:s.password_confirmation,className:"mt-1 block w-full",autoComplete:"new-password",onChange:a=>r("password_confirmation",a.target.value),required:!0}),e.jsx(o,{message:t.password_confirmation,className:"mt-2"})]})]}),e.jsxs("div",{className:"flex items-center gap-x-4 lg:mb-8 mb-6",children:[e.jsx("div",{className:"border border-gray-400 size-6 rounded-full flex items-center justify-center text-[14px] leading-[14px] uppercase tracking-[1.68px] font-semibold",children:e.jsx("span",{className:"pl-[2px] pb-[1px]",children:"2"})}),e.jsx("h2",{className:"lg:text-2xl text-xl lg:leading-7 leading-6 font-semibold tracking-[0.96px]",children:"Zgody i polityka prywatnoÅci"})]}),e.jsxs("label",{className:"flex items-start gap-2 mb-3",children:[e.jsx(n,{name:"checkbox",className:"checkbox lg:mt-[5px] mt-[2px]",onChange:a=>g(a.target.checked),value:"1"}),e.jsx("span",{className:"text-xs font-medium cursor-pointer tracking-[0.64px]",children:"Zaznacz wszystkie zgody"})]}),e.jsxs("label",{className:"flex items-start gap-2 mb-3",children:[e.jsx(n,{name:"newsletter",className:"checkbox lg:mt-[5px] mt-[2px]",onChange:a=>r("newsletter",a.target.checked?"1":""),value:s.newsletter,checked:!!s.newsletter}),e.jsx("span",{className:"text-xs font-medium cursor-pointer tracking-[0.64px]",children:"(opcjonalnie) Wyrażam zgodÄ na okresowe przesyÅanie drogÄ
ele
1ktronicznÄ
(e-mail) treÅci marketingowych zwiÄ
zanych z ofertami i promocjami Administratora."})]}),t.newsletter&&e.jsx("p",{className:"text-red-600 text-labelS mt-1",children:t.newsletter}),e.jsxs("label",{className:"flex items-start gap-2 mb-3",children:[e.jsx(n,{name:"newsletter_sms",className:"checkbox lg:mt-[5px] mt-[2px]",onChange:a=>r("newsletter_sms",a.target.checked?"1":""),value:s.newsletter_sms,checked:!!s.newsletter_sms}),e.jsx("span",{className:"text-xs font-medium cursor-pointer tracking-[0.64px]",children:"(opcjonalnie) Wyrażam zgodÄ na okresowe przesyÅanie drogÄ
elektronicznÄ
(SMS) treÅci marketingowych wiÄ
zanych z ofertami i promocjami Administratora."})]}),t.newsletter_sms&&e.jsx("p",{className:"text-red-600 text-labelS mt-1",children:t.newsletter_sms}),e.jsxs("label",{className:"flex items-start gap-2",children:[e.jsx(n,{name:"checkbox",className:"checkbox lg:mt-[5px] mt-[2px]",onChange:a=>r("terms_of_use",a.target.checked?"1":""),value:s.terms_of_use,checked:!!s.terms_of_use}),e.jsx("span",{className:"text-red-500 pb-5",children:"*"}),e.jsxs("span",{className:"text-xs font-medium cursor-pointer tracking-[0.64px]",children:["OÅwiadczam, że akceptujÄ ",e.jsx(f,{title:"Zapoznaj siÄ z politykÄ
prywatnoÅci",className:"text-link",href:"/s/4/regulaminy",children:"regulamin portalu adria-art.pl."}),e.jsx("br",{}),e.jsx(z,{})]})]}),t.terms_of_use&&e.jsx("p",{className:"text-red-600 text-labelS mt-1",children:t.terms_of_use}),e.jsx("div",{className:"lg:mb-8 mb-3"}),t.recaptcha_token&&e.jsx("p",{className:"text-red-600 text-labelS mt-1 mb-4",children:t.recaptcha_token}),e.jsxs(v,{color:"red",type:"submit",className:"mb-8 block lg:max-w-[305px] max-w-full w-full !h-10",disabled:m,children:["ZaÅóż konto",e.jsx(d,{})]}),e.jsxs("p",{className:"text-base font-semibold tracking-[0.64px] lg:mb-12 mb-6",children:[e.jsx("span",{className:"text-red-500",children:"*"})," Pola obowiÄ
zkowe"]}),e.jsx("h3",{className:"lg:text-[32px] text-[28px] lg:leading-[38px] leading-7 font-semibold tracking-[0.64px] mb-6",children:"Masz już konto?"}),e.jsxs(y,{color:"black-outline",renderAs:"link",href:route("login"),title:"Przejdź do logowania",className:"group block w-full !h-10 lg:max-w-[305px] max-w-full",disabled:m,children:["Zaloguj siÄ",e.jsx(d,{fill:"black",className:"transition-all ease-in-out duration-300 group-hover:fill-white"})]})]})]})]})}export{M 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.