PageSourceSearch

https://chors.pl/_next/static/chunks/pages/user/register-af4f64a1c12f1a8c.js

js chors.pl collected 2026-10-06 09:25:34 UTC 6,531 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[319],{1345:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/register",function(){return s(5089)}])},9932:function(e,r,s){"use strict";s.d(r,{H:function(){return t}});var a=s(7297),n=s(5444),o=s(2173);function i(){let e=(0,a.Z)(["\n    @media (min-width: 768px) {\n        max-width: 450px;\n    }\n"]);return i=function(){return e},e}let t=(0,n.ZP)(o.C4).withConfig({componentId:"sc-f84bbced-0"})(()=>(0,n.iv)(i()))},5089:function(e,r,s){"use strict";s.r(r),s.d(r,{__N_SSP:function(){return v},default:function(){return q}});var a=s(5893),n=s(5698),o=s(2173),i=s(8856),t=s(897),l=s(9932),d=s(6310),c=s(7536),u=s(7533),m=s(7294),p=s(7201),b=s(1664),h=s.n(b),f=s(6486),x=s(5431);let _=e=>{var r,s,n,o,b,_,g,j,y,v,q,w,k;let{locale:R,onSubmit:C}=e,{t:S}=(0,i.$G)("user"),[P,N]=(0,m.useState)(!1),[Z,E]=(0,m.useState)(!1),O=(0,m.useMemo)(()=>({first_name:d.Z_().required(S("First name cannot be blank.")),last_name:d.Z_().required(S("Last name cannot be blank.")),company_name:d.Z_().required(S("Company name cannot be blank.")),country:d.Z_().required(),nip:d.Z_().required(S("Tax number cannot be blank.")),phone:d.Z_().required(S("Phone cannot be blank.")),agree_2:d.O7().required(S("Consent is required to complete the registration process."))}),[S]),z=(0,m.useMemo)(()=>d.Ry().shape({email:d.Z_().required(S("Email address cannot be blank.")),username:d.Z_().required(S('Repeat email address must be equal to "Email address".')).oneOf([d.iH("email")],S("Email and confirm password do not match")),password:d.Z_().required(S("Password cannot be blank.")),repeat_password:d.Z_().required("Repeat password cannot be blank.").oneOf([d.iH("password")],S("Passwords do not match.")),agree_0:d.O7().required(S("Consent is required to complete the registration process.")),agree_1:d.O7().required(S("Consent is required to complete the registration process.")),...P?O:{}}),[S,P]),{register:I,handleSubmit:T,formState:{errors:F},setError:X,reset:U,watch:A,getValues:H}=(0,c.cI)({mode:"onTouched",resolver:(0,u.X)(z)}),B=e=>{E(!0),fetch("/api/user/register",{method:"POST",headers:{"Content-Type":"application/json",language:R},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({data:e})}).then(e=>e.json()).then(e=>{e.info&&C(e.info),e.error&&"object"==typeof e.error&&(0,f.forEach)(e.error,(e,r)=>{X(r,{message:e})})}).finally(()=>E(!1))};return(0,a.jsxs)(l.H,{size:12,children:[(0,a.jsx)("h1",{children:S("Sign Up")}),(0,a.jsxs)("form",{onSubmit:T(B),children:[(0,a.jsx)(t.n,{label:S("Email Address"),type:"email",isRequired:!0,locale:R,placeholder:S("[email protected]"),refs:I("email"),error:null===(r=F.email)||void 0===r?void 0:r.message}),(0,a.jsx)(t.n,{label:S("Repeat email address"),type:"email",isRequired:!0,locale:R,placeholder:S("[email protected]"),refs:I("username"),error:null===(s=F.username)||void 0===s?void 0:s.message}),(0,a.jsx)(t.n,{label:S("Password"),type:"password",isRequired:!0,locale:R,placeholder:"************",refs:I("password"),error:null===(n=F.password)||void 0===n?void 0:n.message}),(0,a.jsx)(t.n,{label:S("Repeat password"),type:"password",isRequired:!0,locale:R,placeholder:"************",refs:I("repeat_password"),error:null===(o=F.repeat_password)||void 0===o?void 0:o.message}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("a",{href:"#b2b-form",onClick:()=>N(e=>!e),className:"btn btn-default btn-block text-left",children:S("I want to register as B2B client")}),P&&(0,a.jsxs)("div",{id:"b2b-form",children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(t.n,{label:S("First name"),isRequired:!0,locale:R,refs:I("first_name"),error:null===(b=F.first_name)||void 0===b?void 0:b.message}),(0,a.jsx)(t.n,{label:S("Last name"),isRequired:!0,locale:R,refs:I("last_name"),error:null===(_=F.last_name)||void 0===_?void 0:_.message}),(0,a.jsx)(t.n,{label:S("Company name"),isRequired:!0,locale:R,refs:I("company_name"),error:null===(g=F.company_name)||void 0===g?void 0:g.message}),(0,a.jsx)(x.O,{label:S("Country"),isRequired:!0,refs:I("country"),error:null===(j=F.country)||void 0===j?void 0:j.message}),(0,a.jsx)(t.n,{label:S("Tax number"),isRequired:!0,locale:R,refs:I("nip"),error:null===(y=F.nip)||void 0===y?void 0:y.message}),(0,a.jsx)(t.n,{label:S("Phone"),isRequired:!0,locale:R,refs:I("phone"),error:null===(v=F.phone)||void 0===v?void 0:v.message})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)("h2",{children:S("Consents and statements")}),(0,a.jsx)(p.X,{label:(0,a.jsxs)(a.Fragment,{children:[S("I hereby declare that I have read and accept the content of")," ",(0,a.jsx)(h(),{href:S("privacyPolicyUrl"),children:S("the Privacy Policy")})," ",S("and")," ",(0,a.jsx)(h(),{href:S("cookiePolicyUrl"),children:S("Cookies Policy")})," Fabryka Artystyczna Sp. z o.o."]}),name:"agree_0",isRequired:!0,refs:I("agree_0"),error:null===(q=F.agree_0
1)||void 0===q?void 0:q.message}),(0,a.jsx)(p.X,{label:S("I accept that the administrator of personal data is Fabryka Artystyczna Sp. z o.o."),name:"agree_1",isRequired:!0,refs:I("agree_1"),error:null===(w=F.agree_1)||void 0===w?void 0:w.message}),P&&(0,a.jsx)(p.X,{label:S("I agree to the processing by Fabryka Artystyczna Sp. z o.o. with headquarters in Wrocław, as the administrator of personal data, my personal data provided during the registration of the user account, as well as in connection with contact or implementation of concluded contracts for the purpose and scope necessary to perform them."),name:"agree_2",isRequired:!0,refs:I("agree_2"),error:null===(k=F.agree_2)||void 0===k?void 0:k.message}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsx)("button",{type:"submit",className:"btn btn-black btn-block",disabled:Z,children:S("Sign Up")}),"\xa0\xa0\xa0",(0,a.jsx)(h(),{href:"/",className:"btn btn-default",children:S("Cancel")})]})]})]})};var g=s(9008),j=s.n(g);let y=e=>{let{locale:r}=e,{t:s}=(0,i.$G)("user"),[t,l]=(0,m.useState)(null);return(0,a.jsxs)(n.m,{isBlack:!!t,children:[(0,a.jsx)(j(),{children:(0,a.jsxs)("title",{children:[s("Sign Up")," - Chors"]})}),(0,a.jsx)("div",{className:"row",children:t?(0,a.jsxs)(o.C4,{size:6,onlyLarge:!0,children:[(0,a.jsx)("h1",{children:t}),(0,a.jsx)("br",{}),(0,a.jsx)(h(),{href:"/".concat(r),className:"btn btn-black",children:s("Return to homepage")})]}):(0,a.jsx)(_,{locale:r,onSubmit:l})})]})};var v=!0,q=y}},function(e){e.O(0,[678,171,885,44,961,774,888,179],function(){return e(e.s=1345)}),_N_E=e.O()}]);

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.