1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6496,2378],{86746:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/set-password",function(){return n(20025)}])},34677:function(e,t,n){"use strict";n.d(t,{o:function(){return p}});var r=n(85893),o=n(67825),i=n(7824),a=n(67294),s=n(94470),c=n(71257),l=n(68200),u=n(79749),d=n(73539);let f=e=>e?e.trim().endsWith(".")?e:e.trim()+".":"",p=(0,a.forwardRef)((e,t)=>{let{name:n,type:p=c.rC.TEXT,size:h,gutter:b=i.G.NORMAL,icon:m,value:g,error:w,errorMessage:C,onChange:x,placeholder:v="",placeholderDisplay:y=c.JD.LEFT,maxLength:P,disabled:Z,handleClearInput:E,isSearch:S,countryCode:j="+48",handleEnter:I,autoFocus:_=!1,onFocus:A,dataTesting:T,ariaLabel:R,autoComplete:k,insideInputLabel:O,useWideInput:W=!1,noClick:D}=e,[U,N]=(0,a.useState)(_),[B,X]=(0,a.useState)(!1),[G,L]=(0,a.useState)(_),[M,z]=(0,a.useState)(p),[F,J]=(0,a.useState)(!1),[q,H]=(0,a.useState)(""),K=()=>{J(!0),z("password"===M?"text":"password")},V=(0,a.useRef)(null);(0,a.useEffect)(()=>{U||L(!1)},[U]),(0,a.useEffect)(()=>{var e,t;G?null==V||null===(e=V.current)||void 0===e||e.focus():null==V||null===(t=V.current)||void 0===t||t.blur(),X(""===g&&""!==v&&"center"===y)},[G,g,v,y]);let Y="".concat(u.X.TEXT_INPUT,"-").concat(u.X.LABEL,"-").concat(n),Q=G||!!q,$=W?s.Ov:s.SP;return(0,r.jsxs)(s.__,{onClick:()=>{L(!0),X(!1)},gutter:b,size:h,"data-testing":Y,noClick:D,children:[R&&(0,r.jsx)(d.Z,{children:R}),(0,r.jsxs)($,{focus:U,value:g,children:[m&&(0,r.jsxs)(s.CM,{iconPosition:B,children:[(0,r.jsx)(s.a1,{children:(0,r.jsx)(o.JO,{name:m})}),p===c.rC.TEL&&(0,r.jsx)(s.Cv,{children:j})]}),(0,r.jsxs)(s.pj,{type:p,showInsideInputLabel:Q,children:[Q&&(0,r.jsx)(s.Bs,{children:O||v}),(0,r.jsx)(s.II,{focus:U,placeholder:U?"":v,placeholderDisplay:y,type:M,name:n,value:g,onChange:e=>{null==x||x(e),H(e.target.value)},onKeyPress:e=>{"Enter"===e.key&&(null==I||I())},maxLength:P,isSearch:S,disabled:Z,autoComplete:k,ref:e=>{"function"==typeof t&&t(e),V.current=e},onFocus:e=>{L(!0),A&&A(e),F?J(!1):N(!0)},onBlur:()=>{L(!1),F?J(!1):N(!1)},"data-testing":T||"".concat(u.X.TEXT_INPUT,"-").concat(n),"aria-describedby":w?"error":void 0,"aria-invalid":!!C,tabIndex:D?-3:void 0})]}),p===c.rC.PASSWORD&&""!==g&&(0,r.jsx)(s.gq,{error:w,onClick:e=>{e.stopPropagation(),K()},tabIndex:0,type:"button",title:"password"===M?(0,l.Z)("WCAG.aria-label.show-password"):(0,l.Z)("WCAG.aria-label.hide-password"),"aria-label":"password"===M?(0,l.Z)("WCAG.aria-label.show-password"):(0,l.Z)("WCAG.aria-label.hide-password"),"html-on-key-down":e=>{"Enter"===e.key&&K&&K()},"data-testing":"".concat(u.X.BUTTON,"-show-password"),children:(0,r.jsx)(s.KX,{children:(0,r.jsx)(o.JO,{name:o.UZ.SHOW_PASSWORD})})}),E&&""!==g&&(0,r.jsx)(s.l8,{onClick:E,tabIndex:0,title:(0,l.Z)("WCAG.aria-label.clear-search"),"aria-label":(0,l.Z)("WCAG.aria-label.clear-search"),onKeyDown:e=>{"Enter"===e.key&&E&&E()},children:(0,r.jsx)(s.o_,{children:(0,r.jsx)(o.JO,{name:o.UZ.CLOSE})})}),w&&(0,r.jsx)(s.jj,{children:(0,r.jsx)(s.Vx,{"data-testing":"".concat(u.X.WRAPPER,"-").concat(u.X.ERROR),children:(0,r.jsx)(o.JO,{name:o.UZ.ALERT})})})]}),w&&(0,r.jsx)(s.y,{id:"error","aria-live":"assertive",children:f(C)})]})});p.displayName="TextInput"},94470:function(e,t,n){"use strict";n.d(t,{Bs:function(){return m},CM:function(){return C},Cv:function(){return P},II:function(){return g},KX:function(){return l},Ov:function(){return d},SP:function(){return u},Vx:function(){return c},__:function(){return w},a1:function(){return f},gq:function(){return p},jj:function(){return v},l8:function(){return x},o_:function(){return h},pj:function(){return b},y:function(){return y}});var r=n(50661),o=n(33205),i=n(1566),a=n(71257);let s=e=>{let{size:t}=e;if(t&&t===a.vz.BIG)return(0,r.iv)(["","{border-radius:2.9rem;}","{width:1.6rem;height:auto;}","{margin-left:2.2rem;}","{padding-left:1.7rem;}"],u,f,C,b)},c=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-0"})(["fill:",";height:2rem;stroke:transparent;width:2rem;"],e=>{let{theme:t}=e;return t.input.errorBgColor}),l=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-1"}
1)(["height:1.4rem;width:2.2rem;"]),u=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-2"})(["background:",";border:",";border-radius:2.3rem;box-shadow:none;display:flex;flex-grow:1;width:100%;height:4.4rem;"],e=>{let{focus:t,theme:n}=e;return t?n.input.activeFocusBgColor:n.input.nonActiveFocusBgColor},e=>{let{focus:t,theme:n}=e;return t?"1px solid ".concat(n.input.activeBorderColor):"1px solid ".concat(n.input.borderColor)}),d=(0,r.ZP)(u).withConfig({componentId:"sc-b95fcbdb-3"})(["height:5.1rem;"]);r.ZP.div.withConfig({componentId:"sc-b95fcbdb-4"})(["display:flex;flex-direction:column;text-align:left;"]);let f=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-5"})(["fill:",";height:1.8rem;width:1.8rem;stroke:transparent;"],e=>{let{theme:t}=e;return t.input.iconWrapperColor}),p=r.ZP.button.withConfig({componentId:"sc-b95fcbdb-6"})(["align-items:center;cursor:pointer;display:flex;flex:0 auto;height:2.4rem;justify-content:center;align-self:center;margin-right:",";",";width:auto;background:none;border:none;background:transparent;border:transparent;"],e=>e.error?"1rem":"1.7rem",e=>{let{error:t}=e;return t&&"position: relative"}),h=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-7"})(["height:1.4rem;width:2.2rem;fill:",";"],e=>{let{theme:t}=e;return t.text.color.secondary}),b=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-8"})(e=>{let{type:t,showInsideInputLabel:n}=e,o=t===a.rC.PASSWORD?"0":"2",i=t===a.rC.PASSWORD?"0":"1.8";return(0,r.iv)(["display:flex;width:100%;padding:"," ","rem 0.9rem 1rem;margin-right:","rem;position:relative;"],n?"1.8rem":"0.9rem",o,i)}),m=r.ZP.span.withConfig({componentId:"sc-b95fcbdb-9"})(["color:#757a7a;font-size:0.9rem;font-weight:400;text-align:left;position:absolute;top:0.5rem;"]),g=r.ZP.input.withConfig({componentId:"sc-b95fcbdb-10"})(e=>{let{focus:t,type:n,placeholderDisplay:a,theme:s,isSearch:c}=e,l=c&&(0,r.iv)(["",";"],(0,o.a)("font-size",i.Yr.search.input)),u=t?s.input.textColor:s.input.notFocusTextColor;return(0,r.iv)(["background-color:transparent;border:none;color:",";flex-grow:1;outline:none;width:100%;",";-webkit-text-fill-color:",";&::placeholder{font-size:1.4rem;color:",";text-align:",";}&:-webkit-autofill::first-line,&:-webkit-autofill:focus{caret-color:",";}&:-webkit-autofill{-webkit-background-clip:text;}&::-webkit-credentials-auto-fill-button{background-color:",";}&::-ms-reveal{display:none;}"],u,l,u,s.input.placeholderColor,a,u,s.text.color.whiteTone0)}),w=r.ZP.label.withConfig({componentId:"sc-b95fcbdb-11"})(["display:block;margin-bottom:","rem;width:100%;",";pointer-events:",";"],e=>{let{gutter:t}=e;return t},e=>s(e),e=>{let{noClick:t}=e;return t?"none":"auto"}),C=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-12"})(["align-items:center;display:flex;flex:0 auto;height:4.8rem;justify-content:center;left:",";margin-left:",";position:",";width:auto;align-self:center;"],e=>e.iconPosition?"25rem":"0",e=>e.iconPosition?"6.75rem":"1.8rem",e=>e.iconPosition?"relative":""),x=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-13"})(["align-items:center;cursor:pointer;display:flex;flex:0 auto;height:4.8rem;justify-content:center;width:auto;margin-right:2rem;"]),v=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-14"})(["align-items:center;display:flex;flex:0 auto;height:4.8rem;justify-content:center;margin-right:1.5rem;width:auto;"]),y=r.ZP.div.withConfig({componentId:"sc-b95fcbdb-15"})(["color:",";font-size:1.2rem;font-weight:400;margin-top:0.6rem;text-align:center;"],e=>{let{theme:t}=e;return t.input.errorBgColor}),P=r.ZP.span.withConfig({componentId:"sc-b95fcbdb-16"})(["color:",";font-size:1.4rem;margin-left:0.8rem;"],e=>{let{theme:t}=e;return t.input.iconWrapperColor})},71257:function(e,t,n){"use strict";var r,o,i,a,s,c,l;n.d(t,{JD:function(){return a},nG:function(){return i},rC:function(){return r},vz:function(){return o}}),(s=r||(r={})).PASSWORD="password",s.TEXT="text",s.NUMBER="number",s.DATE="date",s.TEL="tel",(o||(o={})).BIG="big",(c=i||(i={})).EMAIL="email",c.NEW_PASSWORD="new-password",c.CURRENT_PASSWORD="current-password",(l=a||(a={})).LEFT="left",l.CENTER="center",l.RIGHT="right"},71896:function(e,t,n){"use strict";n.d(t,{o:function(){return r.o}});var r=n(34677)},51520:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var r=n(11010),o=n(20567),i=n(14932),a=n(42283);let s=(e,t)=>Array.isArray(e.inner)&&e.inner.length?e.inner.reduce((e,n)=>{let{path:r,message:a,type:s}=n,c=e[r]&&e[r].types||{},l=r||s;return(0,o._)({},e,l?{[l]:(0,o._)({},e[l]||{message:a,type:s},t?{types:(0,i._)((0,o._)({},c),{[s]:c[s]?[...[].concat(c[s]),a]:a})}:{})}:{})},{}):{[e.path]:{message:e.message,type:e.type}},c=function(e){var t;let n=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:{abortEarly:!1};return t=(0,r._)(function*(t,r){let c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{return n.context,{values:yield e.validate(t,(0,i._)((0,o._)({},n),{context:r})),errors:{}}}catch(t){let e=s(t,c);return{values:{},errors:(0,a.T8)(e)}}}),function(e,n){return t.apply(this,arguments)}}},20025:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return A}});var r=n(85893),o=n(67294),i=n(11817),a=n(96465),s=n(32618),c=n(34050),l=n(11010),u=n(51520),d=n(42283),f=n(74231),p=n(62501),h=n(71257),b=n(67825),m=n(34737),g=n(68200),w=n(71896),C=n(91952),x=n(7824),v=n(3464),y=n(44474),P=n(64673),Z=n(59713),E=()=>{let e=(0,P.ZP)(Z.Y.AUTH,Z.U.SET_PASSWORD,null);return(0,y.Vp)(e,{appendAuthData:!0})},S=n(16515);let j=f.Ry().shape({password:f.Z_().required((0,g.Z)("form.validate.password-required")).min(6,(0,g.Z)("form.validate.password-min")),newPasswordCheck:f.Z_().when("password",(e,t)=>e?t.oneOf([f.iH("password")],(0,g.Z)("form.validate.password-mismatch")):t)}),I=()=>{var e,t;let{setError:n}=(0,S.VI)(),{register:i,handleSubmit:a,errors:f}=(0,d.cI)({resolver:(0,u.X)(j)}),[y,{error:P}]=E(),Z=a((t=(0,l._)(function*(e){(yield y({password:e.password,passwordCheck:e.passwordCheck})).ok&&p.F0.pushRoute(c.Z6.ACCOUNT_CHANGE_PASSWORD_SUCCESS)}),function(e){return t.apply(this,arguments)}));return(0,o.useEffect)(()=>{P&&n(P)},[P]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.v,{icon:b.UZ.LOCK_CIRCLE,title:(0,g.Z)("pages.account.set-password.header"),description:(0,g.Z)("pages.account.set-password.description",{portal:(0,g.Z)("domain")})}),(0,r.jsxs)(s.Gq,{onSubmit:Z,children:[(0,r.jsx)(w.o,{name:"password",placeholder:(0,g.Z)("form.placeholder.password"),type:h.rC.PASSWORD,icon:b.UZ.PASSWORD,gutter:x.G.MEDIUM,error:!!f.password,errorMessage:null===(e=f.password)||void 0===e?void 0:e.message,ref:i(),handleEnter:Z}),(0,r.jsx)(m.z,{text:(0,g.Z)("save-button-label"),onButtonAction:Z,btnType:C.JB.PRIMARY,gutter:x.G.MEDIUM,fullWidth:!0}),(0,r.jsx)(m.z,{text:(0,g.Z)("cancel-button-label"),onButtonAction:()=>p.F0.pushRoute(c.Z6.ACCOUNT),btnType:C.JB.PRIMARY,fullWidth:!0,transparent:!0})]})]})};var _=n(41959),A=()=>(0,r.jsx)(i.Z,{activityEvents:{placeType:_.U.SET_PASSWORD},children:(0,r.jsx)(a.p0,{selectedRoute:c.Z6.ACCOUNT,children:(0,r.jsx)(s.gf,{children:(0,r.jsx)(I,{})})})})}},function(e){e.O(0,[5079,5675,3290,4231,2283,2901,2903,1817,6465,2888,9774,179],function(){return e(e.s=86746)}),_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.