1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7579],{3415:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(7876);t(4232);var r=t(4587),i=t.n(r);let n=e=>{let{children:s,widthClass:t,noBackground:r=!1}=e;return(0,a.jsxs)("div",{className:"relative py-2 px-1 min-h-[80vh] flex justify-center items-center",children:[!r&&(0,a.jsx)("div",{className:"absolute inset-0",children:(0,a.jsx)(i(),{src:"/bcg-cadastre.jpg",alt:"KsiÄgi Wieczyste - widok poziomy",fill:!0,priority:!0,className:"object-cover object-center",quality:75,sizes:"100vw"})}),!r&&(0,a.jsx)("div",{className:"absolute inset-0 bg-white/70 backdrop-blur-sm z-0 rounded-lg"}),(0,a.jsx)("div",{className:"bg-white rounded-lg shadow-lg rounded-lg w-full md:w-3/4 xl:w-1/2 mx-1 max-w-3xl bg-white relative z-10",children:s})]})}},6258:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/op/ustaw-nowe-haslo/[newPasswordToken]",function(){return t(6354)}])},6354:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>m,default:()=>u});var a=t(7876),r=t(223),i=t(3415),n=t(31),d=t(2044),l=t(9099),o=t(6875),c=t(8612),m=!0;let u=e=>{let{token:s,tokenValidationResult:t}=e,{setFlashMessage:m}=(0,n.J)(),{callSetNewPassword:u}=(0,c.gf)(),{t:x}=(0,d.B)("common","SetNewPasswordPage"),h=(0,l.useRouter)();if("tokenNotFoundOrExpired"===t)return(0,a.jsx)(i.A,{children:(0,a.jsx)("div",{className:"centered-layout-pading",children:(0,a.jsx)("div",{className:"text-center text-red-600 font-bold",children:x("tokenNotFoundOrExpired")})})});let w=(0,r.Wx)({initialValues:{password:"",passwordConfirmation:""},validationSchema:(0,o.C)(x),onSubmit:async e=>{try{await u(s,e.password),m({type:"success",message:x("passwordUpdatedSuccessfully")}),h.push("/op/logowanie")}catch(e){m({type:"error",message:x("failedToUpdatePassword")})}}});return(0,a.jsx)(i.A,{children:(0,a.jsxs)("div",{className:"centered-layout-pading",children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 mb-6 text-center",children:x("setNewPassword")}),(0,a.jsx)("hr",{className:"mb-8"}),(0,a.jsxs)("form",{onSubmit:w.handleSubmit,className:"space-y-6",children:[(0,a.jsx)(o.P,{...w}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("button",{type:"submit",disabled:w.isSubmitting,className:"theButton",children:w.isSubmitting?x("updating"):x("setNewPasswordNow")})})]})]})})}},6875:(e,s,t)=>{"use strict";t.d(s,{P:()=>d,C:()=>l});var a=t(7876);t(4232);var r=t(1408),i=t(2044);let n={minPassLength:Number("6")};n.minPassLength||console.error("SEVERE const error: minPassLength:",n.minPassLength);let d=e=>{let{values:s,touched:t,errors:r,handleChange:n,handleBlur:d,passwordField:l="password",confirmationField:o="passwordConfirmation"}=e,{t:c}=(0,i.B)("common","PasswordFields");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{htmlFor:l,className:"block text-sm font-medium text-gray-700",children:c("newPassword")}),(0,a.jsx)("input",{type:"password",id:l,name:l,value:s[l],onChange:n,onBlur:d,className:"inputText"}),t[l]&&r[l]&&(0,a.jsx)("div",{className:"text-red-500 text-sm mt-1",children:r[l]})]}),(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("label",{htmlFor:o,className:"block text-sm font-medium text-gray-700",children:c("confirmPassword")}),(0,a.jsx)("input",{type:"password",id:o,name:o,value:s[o],onChange:n,onBlur:d,className:"inputText"}),t[o]&&r[o]&&(0,a.jsx)("div",{className:"text-red-500 text-sm mt-1",children:r[o]})]})]})},l=e=>{let s={};return s.password=r.Yj().min(n.minPassLength,e("passwordMinLength",n.minPassLength)).required(e("passwordRequired")),s.passwordConfirmation=r.Yj().oneOf([r.KR("password")],e("passwordsMustMatch")).required(e("passwordConfirmationRequired")),r.Ik(s)}}},e=>{e.O(0,[4587,223,1408,636,6593,8792],()=>e(e.s=6258)),_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.