PageSourceSearch

https://pspd.org.pl/_next/static/chunks/31cixyqcayob-.js

js pspd.org.pl collected 2026-10-02 03:19:26 UTC 29,218 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,735627,e=>{"use strict";var r=e.i(843476),s=e.i(271645),t=e.i(618566),a=e.i(815207),i=e.i(970065),n=e.i(167881),d=e.i(23750),o=e.i(10708),l=e.i(820783),c=e.i(30030),m=e.i(607194),p=e.i(369340),u=e.i(635804),f=e.i(296626),x=e.i(248425),h=Object.defineProperty,j=(e,r)=>h(e,"name",{value:r,configurable:!0}),y="Checkbox",[g,b]=(0,c.createContextScope)(y),[v,N]=g(y);function w(e){let{__scopeCheckbox:t,checked:a,children:i,defaultChecked:n,disabled:d,form:o,name:l,onCheckedChange:c,required:m,value:u="on",internal_do_not_use_render:f}=e,[x,h]=(0,p.useControllableState)({prop:a,defaultProp:n??!1,onChange:c,caller:y}),[j,g]=s.useState(null),[b,N]=s.useState(null),w=s.useRef(!1),[k,S]=s.useReducer(e=>e+1,0),C=!j||!!o||!!j.closest("form"),L={checked:x,disabled:d,setChecked:h,control:j,setControl:g,name:l,form:o,value:u,hasConsumerStoppedPropagationRef:w,userInteractionCount:k,onUserInteraction:S,required:m,defaultChecked:!I(n)&&n,isFormControl:C,bubbleInput:b,setBubbleInput:N};return(0,r.jsx)(v,{scope:t,...L,children:R(f)?f(L):i})}j(w,"CheckboxProvider");var k=s.forwardRef(j(function({__scopeCheckbox:e,onKeyDown:t,onClick:a,...i},n){let{control:d,value:o,disabled:c,checked:p,required:u,setControl:f,setChecked:h,hasConsumerStoppedPropagationRef:y,onUserInteraction:g,isFormControl:b,bubbleInput:v}=N("CheckboxTrigger",e),w=(0,l.useComposedRefs)(n,f),k=s.useRef(p);return s.useEffect(()=>{let e=d?.form;if(e){let r=j(()=>h(k.current),"reset");return e.addEventListener("reset",r),()=>e.removeEventListener("reset",r)}},[d,h]),(0,r.jsx)(x.Primitive.button,{type:"button",role:"checkbox","aria-checked":I(p)?"mixed":p,"aria-required":u,"data-state":_(p),"data-disabled":c?"":void 0,disabled:c,value:o,...i,ref:w,onKeyDown:(0,m.composeEventHandlers)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,m.composeEventHandlers)(a,e=>{g(),h(e=>!!I(e)||!e),v&&b&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})},"CheckboxTrigger")),S=s.forwardRef(j(function(e,s){let{__scopeCheckbox:t,name:a,checked:i,defaultChecked:n,required:d,disabled:o,value:l,onCheckedChange:c,form:m,...p}=e;return(0,r.jsx)(w,{__scopeCheckbox:t,checked:i,defaultChecked:n,disabled:o,required:d,onCheckedChange:c,name:a,form:m,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{...p,ref:s,__scopeCheckbox:t}),e&&(0,r.jsx)(L,{__scopeCheckbox:t})]})})},"Checkbox")),C=s.forwardRef(j(function(e,s){let{__scopeCheckbox:t,forceMount:a,...i}=e,n=N("CheckboxIndicator",t);return(0,r.jsx)(f.Presence,{present:a||I(n.checked)||!0===n.checked,children:(0,r.jsx)(x.Primitive.span,{"data-state":_(n.checked),"data-disabled":n.disabled?"":void 0,...i,ref:s,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),L=s.forwardRef(j(function({__scopeCheckbox:e,onClick:t,...a},i){let{control:n,hasConsumerStoppedPropagationRef:d,userInteractionCount:o,checked:c,defaultChecked:p,required:f,disabled:h,name:j,value:y,form:g,bubbleInput:b,setBubbleInput:v}=N("CheckboxBubbleInput",e),w=(0,l.useComposedRefs)(i,v),k=(0,u.useSize)(n),S=s.useRef(!1),C=s.useRef(c),L=s.useRef(o);s.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,r=o!==L.current;L.current=o;let s=C.current!==c;C.current=c;let t=!(r&&d.current);if(s&&e){S.current=!r;let s=new Event("click",{bubbles:t});b.indeterminate=I(c),e.call(b,!I(c)&&c),b.dispatchEvent(s),S.current=!1}},[b,c,d,o]);let R=s.useRef(!I(c)&&c);return(0,r.jsx)(x.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??R.current,required:f,disabled:h,name:j,value:y,form:g,...a,tabIndex:-1,ref:w,onClick:(0,m.composeEventHandlers)(t,e=>{S.current&&e.stopPropagation()}),style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function R(e){return"function"==typeof e}function I(e){return"indeterminate"===e}function _(e){return I(e)?"indeterminate":e?"checked":"unchecked"}j(R,"isFunction"),j(I,"isIndeterminate"),j(_,"getState");var E=e.i(643531),P=e.i(647163);let T=s.forwardRef(({className:e,...s},t)=>(0,r.jsx)(S,{ref:t,className:(0,P.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...s,children:(0,r.jsx)(C,{className:(0,P.cn)("flex items-center justify-center text-current"),children:(0,r.jsx)(E.Check,{className:"h-4 w-4"})})}));T.displayName=S.displayName;var A=e.i(653145),F=e.i(994814),D=e.i(362201),z=e.i(62870),B=e.i(539320),K=e.i(761911),O=e.i(664030);let V=(0,e.i(475254).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);var G=e.i(463059),H=e.i(373375),M=e.i(531278),X=e.i(587817),U=e.i(846696),q=e.i(842727),$=e.i(586318),W=Object.defineProperty,J=(e,r)=>W(e,"name",{value:r,configurable:!0}),Q="Radio",[Y,Z]=(0,c.createContextScope)(Q),[ee,er]=Y(Q);function es(e){let{__scopeRadio:t,checked:a=!1,children:i,disabled:n,form:d,name:o,onCheck:l,required:c,value:m="on",internal_do_not_use_render:p}=e,[u,f]=s.useState(null),[x,h]=s.useState(null),j=s.useRef(!1),[y,g]=s.useReducer(e=>e+1,0),b=!u||!!d||!!u.closest("form"),v={checked:a,disabled:n,required:c,name:o,form:d,value:m,control:u,setControl:f,hasConsumerStoppedPropagationRef:j,userInteractionCount:y,onUserInteraction:g,isFormControl:b,bubbleInput:x,setBubbleInput:h,onCheck:J(()=>l?.(),"onCheck")};return(0,r.jsx)(ee,{scope:t,...v,children:en(p)?p(v):i})}J(es,"RadioProvider");var et=s.forwardRef(J(function({__scopeRadio:e,onClick:s,...t},a){let{checked:i,disabled:n,value:d,setControl:o,onCheck:c,hasConsumerStoppedPropagationRef:p,onUserInteraction:u,isFormControl:f,bubbleInput:h}=er("RadioTrigger",e),j=(0,l.useComposedRefs)(a,o);return(0,r.jsx)(x.Primitive.button,{type:"button",role:"radio","aria-checked":i,"data-state":ed(i),"data-disabled":n?"":void 0,disabled:n,value:d,...t,ref:j,onClick:(0,m.composeEventHandlers)(s,e=>{i||(u(),c()),h&&f&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})},"RadioTrigger")),ea=s.forwardRef(J(function(e,s){let{__scopeRadio:t,forceMount:a,...i}=e,n=er("RadioIndicator",t);return(0,r.jsx)(f.Presence,{present:a||n.checked,children:(0,r.jsx)(x.Primitive.span,{"data-state":ed(n.checked),"data-disabled":n.disabled?"":void 0,...i,ref:s})})},"RadioIndicator")),ei=s.forwardRef(J(function({__scopeRadio:e,onClick:t,...a},i){let{control:n,checked:d,required:o,disabled:c,name:p,value:f,form:h,bubbleInput:j,setBubbleInput:y,hasConsumerStoppedPropagationRef:g,userInteractionCount:b}=er("RadioBubbleInput",e),v=(0,l.useComposedRefs)(i,y),N=(0,u.useSize)(n),w=s.useRef(!1),k=s.useRef(d),S=s.useRef(b);s.useEffect(()=>{if(!j)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,r=b!==S.current;S.current=b;let s=k.current!==d;k.current=d;let t=!(r&&g.current);if(s&&e){w.current=!r;let s=new Event("click",{bubbles:t});e.call(j,d),j.dispatchEvent(s),w.current=!1}},[j,d,g,b]);let C=s.useRef(d);return(0,r.jsx)(x.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:C.current,required:o,disabled:c,name:p,value:f,form:h,...a,tabIndex:-1,ref:v,onClick:(0,m.composeEventHandlers)(t,e=>{w.current&&e.stopPropagation()}),style:{...a.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function en(e){return"function"==typeof e}function ed(e){return e?"checked":"unchecked"}J(en,"isFunction"),J(ed,"getState");var eo=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],el="RadioGroup",[ec,em]=(0,c.createContextScope)(el,[q.createRovingFocusGroupScope,Z]),ep=(0,q.createRovingFocusGroupScope)(),eu=Z(),[ef,ex]=ec(el),eh=s.forwardRef(J(function(e,t){let{__scopeRadioGroup:a,name:i,form:n,defaultValue:d,value:o,required:c=!1,disabled:m=!1,orientation:u,dir:f,loop:h=!0,onValueChange:j,...y}=e,g=ep(a),b=(0,$.useDirection)(f),[v,N]=(0,p.useControllableState)({prop:o,defaultProp:d??null,onChange:j,caller:el}),[w,k]=s.useState(null),S=(0,l.useComposedRefs)(t,k),C=s.useRef(v);return s.useEffect(()=>{let e=n?w?.ownerDocument.getElementById(n):w?.closest("form");if(e instanceof HTMLFormElement){let r=J(()=>N(C.current),"reset");return e.addEventListener("reset",r),()=>e.removeEventListener("reset",r)}},[w,n,N]),(0,r.jsx)(ef,{scope:a,name:i,form:n,required:c,disabled:m,value:v,onValueChange:N,children:(0,r.jsx)(q.Root,{asChild:!0,...g,orientation:u,dir:b,loop:h,children:(0,r.jsx)(x.Primitive.div,{role:"radiogroup","aria-required":c,"aria-orientation":u,"data-disabled":m?"":void 0,dir:b,...y,ref:S})})})},"RadioGroup"));function ej(e){let{__scopeRadioGroup:s,value:t,disabled:a,children:i,internal_do_not_use_render:n}=e,d=ex("RadioGroupItemProvider",s),o=eu(s),l=d.disabled||a;return(0,r.jsx)(es,{...o,checked:d.value===t,disabled:l,required:d.required,name:d.name,form:d.form,value:t,onCheck:()=>d.onValueChange(t),internal_do_not_use_render:n,children:i})}J(ej,"RadioGroupItemProvider");var ey=s.forwardRef(J(function(e,t){let{__scopeRadioGroup:a,...i}=e,n=ep(a),d=eu(a),{checked:o,disabled:c}=er("RadioGroupItemTrigger",d.__scopeRadio),p=s.useRef(null),u=(0,l.useComposedRefs)(t,p),f=s.useRef(!1);return s.useEffect(()=>{let e=J(e=>
1{eo.includes(e.key)&&(f.current=!0)},"handleKeyDown"),r=J(()=>f.current=!1,"handleKeyUp");return document.addEventListener("keydown",e),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",r)}},[]),(0,r.jsx)(q.Item,{asChild:!0,...n,focusable:!c,active:o,children:(0,r.jsx)(et,{...d,...i,ref:u,onKeyDown:(0,m.composeEventHandlers)(i.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,m.composeEventHandlers)(i.onFocus,()=>{f.current&&p.current?.click()})})})},"RadioGroupItemTrigger")),eg=s.forwardRef(J(function(e,s){let{__scopeRadioGroup:t,value:a,disabled:i,...n}=e;return(0,r.jsx)(ej,{__scopeRadioGroup:t,value:a,disabled:i,internal_do_not_use_render:({isFormControl:e})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ey,{...n,ref:s,__scopeRadioGroup:t}),e&&(0,r.jsx)(eb,{__scopeRadioGroup:t})]})})},"RadioGroupItem")),eb=s.forwardRef(J(function(e,s){let{__scopeRadioGroup:t,...a}=e,i=eu(t);return(0,r.jsx)(ei,{...i,...a,ref:s})},"RadioGroupItemBubbleInput")),ev=s.forwardRef(J(function(e,s){let{__scopeRadioGroup:t,...a}=e,i=eu(t);return(0,r.jsx)(ea,{...i,...a,ref:s})},"RadioGroupIndicator")),eN=e.i(114683);let ew=s.forwardRef(({className:e,...s},t)=>(0,r.jsx)(eh,{className:(0,P.cn)("grid gap-2",e),...s,ref:t}));ew.displayName=eh.displayName;let ek=s.forwardRef(({className:e,...s},t)=>(0,r.jsx)(eg,{ref:t,className:(0,P.cn)("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...s,children:(0,r.jsx)(ev,{className:"flex items-center justify-center",children:(0,r.jsx)(eN.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ek.displayName=eg.displayName;var eS=e.i(657688),eC=e.i(266027);e.i(954616);var eL=e.i(799608);let eR=async(e={})=>{let{data:r,meta:s}=await eL.API.request({method:"GET",url:"/field_departments",params:{...e},type:"fieldDepartment"});return{data:r,meta:s}};var eI=e.i(522016),e_=e.i(307126),eE=e.i(870158),eP=e.i(558249);let eT=D.object({email:D.string().email("Nieprawidłowy adres email"),password:D.string().min(8,"Hasło musi mieć minimum 8 znaków"),firstName:D.string().min(2,"Imię jest wymagane"),lastName:D.string().min(2,"Nazwisko jest wymagane"),pesel:D.str
1ing().min(11,"PESEL musi mieć 11 cyfr").max(11,"PESEL musi mieć 11 cyfr").regex(/^\d+$/,"PESEL może zawierać tylko cyfry"),address:D.object({receiver:D.string().min(1,"Imię i nazwisko są wymagane"),addressLine1:D.string().min(1,"Adres jest wymagany"),addressLine2:D.string().optional(),streetNumber:D.string().min(1,"Numer budynku jest wymagany"),unitNumber:D.string().optional(),city:D.string().min(1,"Miasto jest wymagane"),region:D.string().min(1,"Województwo jest wymagane"),postalCode:D.string().min(1,"Kod pocztowy jest wymagany").regex(/^\d{2}-\d{3}$/,"Nieprawidłowy format kodu pocztowego (XX-XXX)"),country:D.string().min(1,"Kraj jest wymagany")}),fieldDepartmentId:D.string().min(1,"Wybierz oddział terenowy"),termsAccepted:D.boolean().refine(e=>!0===e,{message:"Musisz zaakceptować regulamin"}),privacyAccepted:D.boolean().refine(e=>!0===e,{message:"Musisz zaakceptować politykę prywatności"}),paymentProviderTermsAccepted:D.boolean().optional(),paymentType:D.enum(["blik","transfer"],{required_error:"Wybierz metodę płatności"}),blikCode:D.string().optional().refine(e=>!e||/^\d{6}$/.test(e),"Kod BLIK musi mieć 6 cyfr")}),eA=["account","personal","address","department"];e.s(["JoinFormClient",0,function(){let e=(0,a.useDictionary)(),l=(0,t.useRouter)(),[c,m]=(0,s.useState)("account"),{mutateAsync:p,isPending:u}=(0,X.useGrantMembership)(),{data:f}=(0,X.useMembershipCost)(),{data:x}=((e={})=>(0,eC.useQuery)({queryKey:["fieldDepartments",e],queryFn:()=>eR(e)}))(),{data:h}=(0,e_.useListSettings)({filter:{name:"BLIK_0_ENABLED?"}}),j=h?.data?.find(e=>"BLIK_0_ENABLED?"===e.name)?.value==="true",{mixpanel:y}=(0,eE.useMixpanel)(),g=(0,A.useForm)({resolver:(0,F.zodResolver)(eT),defaultValues:{termsAccepted:!1,privacyAccepted:!1,paymentProviderTermsAccepted:!1}});(0,s.useEffect)(()=>{y?.track("membership_form_step_viewed",{step:c,step_index:eA.indexOf(c)+1,total_steps:eA.length})},[c,y]);let b=async r=>{try{if(!await g.trigger()){U.toast.error("Proszę wypełnić poprawnie wszystkie wymagane pola");let e=Object.keys(g.formState.errors)[0];if(e){let r=document.getElementById(e);r&&r.focus()}return}y?.track("membership_form_submitted",{payment_type:r.paymentType,field_department:x?.data?.find(e=>e.id===r.fieldDepartmentId)?.name}),(0,eP.trackUmamiEvent)("Membership Form Submit",{payment_type:r.paymentType});let s=await p({...r,regulationAccept:r.termsAccepted,paymentType:r.paymentType,code:"blik"===r.paymentType?r.blikCode:void 0,authProvider:"pspd.org.pl"});(s.paymentId||s.redirectUrl)&&(y?.track("membership_payment_initiated",{payment_type:r.paymentType,payment_id:s.paymentId}),(0,eP.trackUmamiEvent)("Initiate Checkout",{type:"new_membership",payment_type:r.paymentType}),U.toast.success(e.join.form.success),"transfer"===r.paymentType&&s.redirectUrl?window.location.href=s.redirectUrl:l.push(`/payment/${s.paymentId}?backTo=/login`))}catch(r){y?.track("membership_form_error",{error_message:r.message,step:c}),U.toast.error(r.message||e.join.form.error)}},v=[{icon:(0,r.jsx)(B.Beer,{className:"h-6 w-6"}),title:e.join.benefits.tastings.title,description:e.join.benefits.tastings.description},{icon:(0,r.jsx)(K.Users,{className:"h-6 w-6"}),title:e.join.benefits.community.title,description:e.join.benefits.community.description},{icon:(0,r.jsx)(O.Trophy,{className:"h-6 w-6"}),title:e.join.benefits.competitions.title,description:e.join.benefits.competitions.description},{icon:(0,r.jsx)(V,{className:"h-6 w-6"}),title:e.join.benefits.discounts.title,description:e.join.benefits.discounts.description}];return(0,r.jsx)("div",{className:"container max-w-6xl mx-auto py-36",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[(0,r.jsxs)(i.Card,{className:"h-fit",children:[(0,r.jsxs)(i.CardHeader,{children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold leading-none tracking-tight",children:e.join.form.title}),(0,r.jsx)(i.CardDescription,{children:e.join.form.description})]}),(0,r.jsx)(i.CardContent,{children:(0,r.jsxs)("form",{onSubmit:g.handleSubmit(b),className:"space-y-6",children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsx)("div",{className:"flex justify-between mb-2",children:eA.map((s,t)=>(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{className:`w-8 h-8 rounded-full flex items-center justify-center ${eA.indexOf(c)>=t?"bg-primary text-white":"bg-muted text-muted-foreground"}`,children:t+1}),(0,r.jsx)("span",{className:"text-xs mt-1 text-muted-foreground",children:e.join.form.steps[s]})]},s))}),(0,r.jsx)("div",{className:"relative h-1 bg-muted rounded-full w-full",children:(0,r.jsx)("div",{className:"absolute h-1 bg-primary rounded-full transition-all",style:{width:`${eA.indexOf(c)/(eA.length-1)*100}%`}})})]}),"account"===c&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"email",children:"Email"}),(0,r.jsx)(d.Input,{id:"email",type:"email",disabled:u,className:g.formState.errors.email?"border-error":"",...g.register("email")}),g.formState.errors.email&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.email.message})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"password",children:e.join.form.password}),(0,r.jsx)(d.Input,{id:"password",type:"password",disabled:u,className:g.formState.errors.password?"border-error":"",...g.register("password")}),g.formState.errors.password&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.password.message})]})]}),"personal"===c&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"firstName",children:e.join.form.firstName}),(0,r.jsx)(d.Input,{id:"firstName",disabled:u,className:g.formState.errors.firstName?"border-error":"",...g.register("firstName")}
1),g.formState.errors.firstName&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.firstName.message})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"lastName",children:e.join.form.lastName}),(0,r.jsx)(d.Input,{id:"lastName",disabled:u,className:g.formState.errors.lastName?"border-error":"",...g.register("lastName")}),g.formState.errors.lastName&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.lastName.message})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"pesel",children:e.join.form.pesel}),(0,r.jsx)(d.Input,{id:"pesel",maxLength:11,disabled:u,className:g.formState.errors.pesel?"border-error":"",...g.register("pesel")}),g.formState.errors.pesel&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.pesel.message})]})]}),"address"===c&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"grid grid-cols-1  gap-4",children:(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"receiver",children:e.profile.address.fullName}),(0,r.jsx)(d.Input,{id:"receiver",disabled:u,className:g.formState.errors.address?.receiver?"border-error":"",...g.register("address.receiver")}),g.formState.errors.address?.receiver&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.address.receiver.message})]})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"addressLine1",children:e.profile.address.addressLine1}),(0,r.jsx)(d.Input,{id:"addressLine1",disabled:u,...g.register("address.addressLine1")}),g.formState.errors.address?.addressLine1&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.address.addressLine1.message})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"streetNumber",children:e.profile.address.streetNumber}),(0,r.jsx)(d.Input,{id:"streetNumber",disabled:u,...g.register("address.streetNumber")}),g.formState.errors.address?.streetNumber&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.address.streetNumber.message})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"unitNumber",children:e.profile.address.unitNumber}),(0,r.jsx)(d.Input,{id:"unitNumber",disabled:u,...g.register("address.unitNumber")})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"addressLine2",children:e.profile.address.addressLine2}),(0,r.jsx)(d.Input,{id:"addressLine2",disabled:u,...g.register("address.addressLine2")})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"postalCode",children:e.profile.address.postalCode}),(0,r.jsx)(d.Input,{id:"postalCode",placeholder:"XX-XXX",disabled:u,...g.register("address.postalCode")}),g.formState.errors.address?.postalCode&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.address.postalCode.message})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"city",children:e.profile.address.city}),(0,r.jsx)(d.Input,{id:"city",disabled:u,...g.register("address.city")}),g.formState.errors.address?.city&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.address.city.message})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"region",children:e.profile.address.region}),(0,r.jsx)(d.Input,{id:"region",disabled:u,...g.register("address.region")}),g.formState.errors.address?.region&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.address.region.message})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"country",children:e.profile.address.country}),(0,r.jsx)(d.Input,{id:"country",defaultValue:"Polska",disabled:u,...g.register("address.country")}),g.formState.errors.address?.country&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.address.country.message})]})]})]}),"department"===c&&(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"fieldDepartment",children:e.membership.fieldDepartment.title}),(0,r.jsxs)(z.Select,{disabled:u,onValueChange:e=>g.setValue("fieldDepartmentId",e),children:[(0,r.jsx)(z.SelectTrigger,{className:g.formState.errors.fieldDepartmentId?"border-error":"",children:(0,r.jsx)(z.SelectValue,{placeholder:e.join.form.selectDepartment})}),(0,r.jsx)(z.SelectContent,{children:x?.data.map(e=>(0,r.jsx)(z.SelectItem,{value:e.id,children:e.name},e.id))})]}),g.formState.errors.fieldDepartmentId&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.fieldDepartmentId.message})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(T,{id:"terms",disabled:u,checked:g.watch("termsAccepted"),onCheckedChange:e=>g.setValue("termsAccepted",e),className:g.formState.errors.termsAccepted?"border-error":""}),(0,r.jsx)(o.Label,{htmlFor:"terms",className:`text-sm text-muted-foreground ${g.formState.errors.termsAccepted?"text-error":""}`,children:(0,r.jsx)(eI.default,{target:"_blank",href:"https://minio-api.pspd.org.pl/silo-public/archiwum/STATUT_PSPD_zmiany_20240323.pdf",children:e.join.form.termsAccept})})]}),g.formState.errors.termsAccepted&&(0,r.jsx)("p",{className:"text-sm text-error ml-6",children:g.formState.errors.termsAccepted.message})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(T,{id:"privacy",disabled:u,checked:g.watch("privacyAccepted"),onCheckedChange:e=>g.setValue("privacyAccepted",e),className:g.formState.errors.privacyAccepted?"border-error":""}),(0,r.jsx)(o.Label,{htmlFor:"privacy",className:`text-sm text-muted-foreground ${g.formState.errors.privacyAccepted?"text-error":""}`,children:(0,r.jsx)(eI.default,{target:"_blank",href:"/privacy",children:e.join.form.privacyAccept})})]}),g.formState.errors.privacyAccepted&&(0,r.jsx)("p",{className:"text-sm text-error ml-6",children:g.formState.errors.privacyAccepted.message})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(o.Label,{children:"Metoda płatności"}),(0,r.jsxs)(ew,{disabled:u,onValueChange:e=>{g.setValue("paymentType",e),"blik"===e&&g.setValue("blikCode",void 0)},className:"space-y-4",children:[j&&(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(ek,{value:"blik",id:"blik"}),(0,r.jsxs)(o.Label,{htmlFor:"blik",className:"flex items-center gap-2",children:[(0,r.jsx)(eS.default,{src:"/images/blik_logo.svg",alt:"BLIK",width:40,height:16}),(0,r.jsx)("span",{children:"BLIK"})]})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(ek,{value:"transfer",id:"transfer"}),(0,r.jsxs)(o.Label,{htmlFor:"transfer",className:"flex items-center gap-2",children:[(0,r.jsx)(eS.default,{src:"/images/Przelewy24_logo.svg",alt:"Przelewy24",width:24,height:24}),(0,r.jsx)("span",{children:"Przelewy24"})]})]})]}),g.formState.errors.paymentType&&(0,r.jsx)("p",{className:"text-sm text-error mt-2",children:g.formState.errors.paymentType.message})]}),"blik"===g.watch("paymentType")&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(o.Label,{htmlFor:"blikCode",children:"Kod BLIK"}),(0,r.jsx)(d.Input,{id:"blikCode",maxLength:6,className:`w-32 text-center tracking-wider font-mono ${g.formState.errors.blikCode?"border-error":""}`,placeholder:"------",disabled:u,...g.register("blikCode")}),g.formState.errors.blikCode&&(0,r.jsx)("p",{className:"text-sm text-error",children:g.formState.errors.blikCode.message})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(T,{id:"paymentProviderTerms",disabled:u,checked:g.watch("paymentProviderTermsAccepted"),onCheckedChange:e=>g.setValue("paymentProviderTermsAccepted",e)}),(0,r.jsx)(o.Label,{htmlFor:"paymentProviderTerms",className:"text-sm text-muted-foreground",children:(0,r.jsx)(eI.default,{target:"_blank",href:"https://www.przelewy24.pl/regulamin",children:e.join.form.paymentProviderTermsAccept})})]}),(0,r.jsxs)("div",{className:"p-4 bg-primary/5 rounded-lg space-y-2",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium max-w-xs",children:e.join.form.costInfo}),(0,r.jsxs)("p",{className:"text-lg font-semibold",children:[f?.cost||f?.data?.cost||f?.data?.data?.cost||"159"," PLN"]})]}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:e.join.form.paymentInfo})]})]}),(0,r.jsxs)("div",{className:"flex justify-between pt-4",children:["account"!==c&&(0,r.jsxs)(n.Button,{type:"button",variant:"outline",onClick:()=>{let e=eA.indexOf(c);if(e>0){let r=eA[e-1];m(r),y?.track("membership_form_prev_step",{from_step:c,to_step:r,step_index:e})}},children:[(0,r.jsx)(H.ChevronLeft,{className:"mr-2 h-4 w-4"}),e.join.form.back]}),"department"!==c?(0,r.jsxs)(n.Button,{type:"button",onClick:()=>{let e=eA.indexOf(c);e<eA.length-1&&("account"===c?g.trigger(["email","password"]):"personal"===c?g.trigger(["firstName","lastName","pesel"]):"address"===c?g.trigger(["address.receiver","address.addressLine1","address.streetNumber","address.postalCode","address.city","address.region","address.country"]):"department"===c?g.trigger(["fieldDepartmentId","termsAccepted","privacyAccepted","paymentType"]).then(e=>e&&"blik"===g.getValues("paymentType")?g.trigger(["blikCode"]):e):Promise.resolve(!0)).then(r=>{if(r){let r=eA[e+1];m(r),y?.track("membership_form_next_step",{from_step:c,to_step:r,step_index:e+2})}else{let e=Object.keys(g.formState.errors)[0];if(e){let r=document.getElementById(e);r&&r.focus()}U.toast.error("Proszę wypełnić poprawnie wszystkie wymagane pola"),y?.track("membership_form_validation_error",{step:c,errors:Object.keys(g.formState.errors).join(", ")})}})},className:"ml-auto",children:[e.join.form.next,(0,r.jsx)(G.ChevronRight,{className:"ml-2 h-4 w-4"})]}):(0,r.jsx)(n.Button,{type:"submit",disabled:u,className:"ml-auto",children:u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(M.Lo
1ader2,{className:"mr-2 h-4 w-4 animate-spin"}),e.join.form.processing]}):e.join.form.submit})]})]})})]}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-2xl font-bold",children:e.join.benefits.title}),(0,r.jsx)("p",{className:"text-muted-foreground mt-2",children:e.join.benefits.description})]}),(0,r.jsx)("div",{className:"grid gap-4",children:v.map((e,s)=>(0,r.jsx)(i.Card,{children:(0,r.jsxs)(i.CardContent,{className:"flex items-start space-x-4 p-6",children:[(0,r.jsx)("div",{className:"p-2 bg-primary/10 rounded-lg text-primary",children:e.icon}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-semibold",children:e.title}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:e.description})]})]})},s))})]})]})})}],735627)}]);

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.