1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7362,8942,2378],{38939:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-account-email/request",function(){return r(69192)}])},21378:function(e,t,r){"use strict";var n=r(64673),i=r(44474),o=r(59713);t.Z=e=>{let t=(0,n.ZP)(o.Y.AUTH,o.U.UPDATE_USER_TERMS,e);return(0,i.Vp)(t,{invalidate:[[o.Y.AUTH,o.U.FETCH_USER_TERMS_STATUS]]})}},34677:function(e,t,r){"use strict";r.d(t,{o:function(){return h}});var n=r(85893),i=r(67825),o=r(7824),a=r(67294),c=r(94470),l=r(71257),s=r(68200),d=r(79749),u=r(73539);let f=e=>e?e.trim().endsWith(".")?e:e.trim()+".":"",h=(0,a.forwardRef)((e,t)=>{let{name:r,type:h=l.rC.TEXT,size:m,gutter:p=o.G.NORMAL,icon:g,value:b,error:w,errorMessage:x,onChange:C,placeholder:v="",placeholderDisplay:E=l.JD.LEFT,maxLength:Z,disabled:T,handleClearInput:P,isSearch:I,countryCode:_="+48",handleEnter:j,autoFocus:A=!1,onFocus:R,dataTesting:S,ariaLabel:k,autoComplete:y,insideInputLabel:N,useWideInput:L=!1,noClick:O}=e,[D,M]=(0,a.useState)(A),[U,W]=(0,a.useState)(!1),[X,G]=(0,a.useState)(A),[B,z]=(0,a.useState)(h),[F,V]=(0,a.useState)(!1),[q,H]=(0,a.useState)(""),J=()=>{V(!0),z("password"===B?"text":"password")},Y=(0,a.useRef)(null);(0,a.useEffect)(()=>{D||G(!1)},[D]),(0,a.useEffect)(()=>{var e,t;X?null==Y||null===(e=Y.current)||void 0===e||e.focus():null==Y||null===(t=Y.current)||void 0===t||t.blur(),W(""===b&&""!==v&&"center"===E)},[X,b,v,E]);let K="".concat(d.X.TEXT_INPUT,"-").concat(d.X.LABEL,"-").concat(r),$=X||!!q,Q=L?c.Ov:c.SP;return(0,n.jsxs)(c.__,{onClick:()=>{G(!0),W(!1)},gutter:p,size:m,"data-testing":K,noClick:O,children:[k&&(0,n.jsx)(u.Z,{children:k}),(0,n.jsxs)(Q,{focus:D,value:b,children:[g&&(0,n.jsxs)(c.CM,{iconPosition:U,children:[(0,n.jsx)(c.a1,{children:(0,n.jsx)(i.JO,{name:g})}),h===l.rC.TEL&&(0,n.jsx)(c.Cv,{children:_})]}),(0,n.jsxs)(c.pj,{type:h,showInsideInputLabel:$,children:[$&&(0,n.jsx)(c.Bs,{children:N||v}),(0,n.jsx)(c.II,{focus:D,placeholder:D?"":v,placeholderDisplay:E,type:B,name:r,value:b,onChange:e=>{null==C||C(e),H(e.target.value)},onKeyPress:e=>{"Enter"===e.key&&(null==j||j())},maxLength:Z,isSearch:I,disabled:T,autoComplete:y,ref:e=>{"function"==typeof t&&t(e),Y.current=e},onFocus:e=>{G(!0),R&&R(e),F?V(!1):M(!0)},onBlur:()=>{G(!1),F?V(!1):M(!1)},"data-testing":S||"".concat(d.X.TEXT_INPUT,"-").concat(r),"aria-describedby":w?"error":void 0,"aria-invalid":!!x,tabIndex:O?-3:void 0})]}),h===l.rC.PASSWORD&&""!==b&&(0,n.jsx)(c.gq,{error:w,onClick:e=>{e.stopPropagation(),J()},tabIndex:0,type:"button",title:"password"===B?(0,s.Z)("WCAG.aria-label.show-password"):(0,s.Z)("WCAG.aria-label.hide-password"),"aria-label":"password"===B?(0,s.Z)("WCAG.aria-label.show-password"):(0,s.Z)("WCAG.aria-label.hide-password"),"html-on-key-down":e=>{"Enter"===e.key&&J&&J()},"data-testing":"".concat(d.X.BUTTON,"-show-password"),children:(0,n.jsx)(c.KX,{children:(0,n.jsx)(i.JO,{name:i.UZ.SHOW_PASSWORD})})}),P&&""!==b&&(0,n.jsx)(c.l8,{onClick:P,tabIndex:0,title:(0,s.Z)("WCAG.aria-label.clear-search"),"aria-label":(0,s.Z)("WCAG.aria-label.clear-search"),onKeyDown:e=>{"Enter"===e.key&&P&&P()},children:(0,n.jsx)(c.o_,{children:(0,n.jsx)(i.JO,{name:i.UZ.CLOSE})})}),w&&(0,n.jsx)(c.jj,{children:(0,n.jsx)(c.Vx,{"data-testing":"".concat(d.X.WRAPPER,"-").concat(d.X.ERROR),children:(0,n.jsx)(i.JO,{name:i.UZ.ALERT})})})]}),w&&(0,n.jsx)(c.y,{id:"error","aria-live":"assertive",children:f(x)})]})});h.displayName="TextInput"},94470:function(e,t,r){"use strict";r.d(t,{Bs:function(){return g},CM:function(){return x},Cv:function(){return Z},II:function(){return b},KX:function(){return s},Ov:function(){return u},SP:function(){return d},Vx:function(){return l},__:function(){return w},a1:function(){return f},gq:function(){return h},jj:function(){return v},l8:function(){return C},o_:function(){return m},pj:function(){return p},y:function(){return E}});var n=r(50661),i=r(33205),o=r(1566),a=r(71257);let c=e=>{let{size:t}=e;if(t&&t===a.vz.BIG)return(0,n.iv)(["","{border-radius:2.9rem;}","{width:1.6rem;height:auto;}","{margin-left:2.2rem;}","{padding-left:1.7rem;}"],d,f,x,p)},l=n.ZP.div.withConfig({componentId:"sc-b95fcbdb-0"})(["fill:",";height:2rem;stroke:transparent;width:2rem;"],e=>{let{theme:t}=e;return t.input.errorBgColor}),s=n.ZP.div.withConfig({componentId:"sc-b95fcbdb-1"}
1)(["height:1.4rem;width:2.2rem;"]),d=n.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:r}=e;return t?r.input.activeFocusBgColor:r.input.nonActiveFocusBgColor},e=>{let{focus:t,theme:r}=e;return t?"1px solid ".concat(r.input.activeBorderColor):"1px solid ".concat(r.input.borderColor)}),u=(0,n.ZP)(d).withConfig({componentId:"sc-b95fcbdb-3"})(["height:5.1rem;"]);n.ZP.div.withConfig({componentId:"sc-b95fcbdb-4"})(["display:flex;flex-direction:column;text-align:left;"]);let f=n.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}),h=n.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"}),m=n.ZP.div.withConfig({componentId:"sc-b95fcbdb-7"})(["height:1.4rem;width:2.2rem;fill:",";"],e=>{let{theme:t}=e;return t.text.color.secondary}),p=n.ZP.div.withConfig({componentId:"sc-b95fcbdb-8"})(e=>{let{type:t,showInsideInputLabel:r}=e,i=t===a.rC.PASSWORD?"0":"2",o=t===a.rC.PASSWORD?"0":"1.8";return(0,n.iv)(["display:flex;width:100%;padding:"," ","rem 0.9rem 1rem;margin-right:","rem;position:relative;"],r?"1.8rem":"0.9rem",i,o)}),g=n.ZP.span.withConfig({componentId:"sc-b95fcbdb-9"})(["color:#757a7a;font-size:0.9rem;font-weight:400;text-align:left;position:absolute;top:0.5rem;"]),b=n.ZP.input.withConfig({componentId:"sc-b95fcbdb-10"})(e=>{let{focus:t,type:r,placeholderDisplay:a,theme:c,isSearch:l}=e,s=l&&(0,n.iv)(["",";"],(0,i.a)("font-size",o.Yr.search.input)),d=t?c.input.textColor:c.input.notFocusTextColor;return(0,n.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;}"],d,s,d,c.input.placeholderColor,a,d,c.text.color.whiteTone0)}),w=n.ZP.label.withConfig({componentId:"sc-b95fcbdb-11"})(["display:block;margin-bottom:","rem;width:100%;",";pointer-events:",";"],e=>{let{gutter:t}=e;return t},e=>c(e),e=>{let{noClick:t}=e;return t?"none":"auto"}),x=n.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":""),C=n.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=n.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;"]),E=n.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}),Z=n.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,r){"use strict";var n,i,o,a,c,l,s;r.d(t,{JD:function(){return a},nG:function(){return o},rC:function(){return n},vz:function(){return i}}),(c=n||(n={}
1)).PASSWORD="password",c.TEXT="text",c.NUMBER="number",c.DATE="date",c.TEL="tel",(i||(i={})).BIG="big",(l=o||(o={})).EMAIL="email",l.NEW_PASSWORD="new-password",l.CURRENT_PASSWORD="current-password",(s=a||(a={})).LEFT="left",s.CENTER="center",s.RIGHT="right"},71896:function(e,t,r){"use strict";r.d(t,{o:function(){return n.o}});var n=r(34677)},99068:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(85893),i=r(67294),o=r(64898),a=r(50661);let c=a.ZP.div.withConfig({componentId:"sc-8bbc7d47-0"})(["background:",";border-radius:1.4rem;cursor:pointer;display:inline-block;height:1.2rem;position:relative;transition:",";vertical-align:middle;min-width:2.2rem;margin-left:","rem;z-index:",";&:before{content:'';position:absolute;top:-0.3rem;left:",";width:","rem;height:","rem;background:",";border-radius:50%;filter:drop-shadow(0px 3px 1.5px rgba(0,0,0,0.26));transition:",";}"],e=>{let{theme:t,checked:r}=e;return r?t.switchCheckbox.switchLabelBgColorAfterChecked:t.switchCheckbox.switchLabelBgColorBeforeChecked},e=>{let{theme:t}=e;return t.switchCheckbox.transition},e=>{let{theme:t}=e;return t.switchCheckbox.dotSize/2},o.k.STANDARD_COMPONENT,e=>{let{theme:t,checked:r}=e;return r?"calc(100% - ".concat(t.switchCheckbox.dotSize/2,"rem)"):"-".concat(t.switchCheckbox.dotSize/2,"rem")},e=>{let{theme:t}=e;return t.switchCheckbox.dotSize},e=>{let{theme:t}=e;return t.switchCheckbox.dotSize},e=>{let{theme:t,checked:r}=e;return r?t.switchCheckbox.dotBgColorAfterChecked:t.switchCheckbox.dotBgColorBeforeChecked},e=>{let{theme:t}=e;return t.switchCheckbox.transitionBeforeChecked});a.ZP.div.withConfig({componentId:"sc-8bbc7d47-1"})(["min-height:fit-content;"]);var l=r(73539);let s=i.memo(e=>{let{checked:t,"data-testing":r,"aria-invalid":i,"aria-describedby":o,onClick:a,id:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{id:s||void 0,checked:t,"data-testing":r,onClick:a,"aria-invalid":i,"aria-describedby":o}),(0,n.jsx)(l.Z,{children:t?"WÅÄ
czone":"WyÅÄ
czone"})]})})},93435:function(e,t,r){"use strict";r.d(t,{U:function(){return l}});var n=r(20567),i=r(85893),o=r(3464),a=r(55710),c=r(68200);let l=()=>(0,i.jsx)(o.v,{innerHtmlDescription:"".concat((0,c.Z)("pages.add-account-email.contactNote1",(0,n._)({},(0,a.PB)("https://pomoc.polsatboxgo.pl/")))," ").concat((0,c.Z)("pages.add-account-email.contactNote2",(0,n._)({contactEmail:"[email protected]"},(0,a.j2)())))})},68942:function(e,t,r){"use strict";r.r(t);var n=r(85893);r(67294);var i=r(97100),o=r(68200),a=r(99068),c=r(94470),l=r(79749);t.default=e=>{let{checked:t=!1,onToggle:r,errorMsg:s}=e,d={wrapper:"".concat(l.X.NEWSLETTER,"-").concat(l.X.WRAPPER),title:"".concat(l.X.NEWSLETTER,"-").concat(l.X.TEXT,"-title"),subtitle:"".concat(l.X.NEWSLETTER,"-").concat(l.X.TEXT,"-subtitle"),description:"".concat(l.X.NEWSLETTER,"-").concat(l.X.TEXT,"-description"),switch:"".concat(l.X.NEWSLETTER,"-").concat(l.X.SWITCH),error:"".concat(l.X.NEWSLETTER,"-").concat(l.X.ERROR)};return(0,n.jsxs)(i.yl,{"data-testing":d.wrapper,children:[(0,n.jsx)(i.B,{"data-testing":d.title,children:(0,o.Z)("pages.account.newsletter.form.header")}),(0,n.jsx)(i.c9,{"data-testing":d.subtitle,children:(0,o.Z)("pages.account.newsletter.form.subtitle")}),(0,n.jsxs)(i.w$,{children:[(0,n.jsx)(a.j,{id:(0,o.Z)("pages.account.newsletter.form.toggle-description"),checked:t,onClick:r,"data-testing":d.switch}),(0,n.jsx)(i.o$,{"data-testing":d.description,children:(0,o.Z)("pages.account.newsletter.form.toggle-description")})]}),(0,n.jsx)(c.y,{"data-testing":d.error,children:s})]})}},97100:function(e,t,r){"use strict";r.d(t,{B:function(){return l},Ed:function(){return p},Sn:function(){return m},Xs:function(){return g},Yx:function(){return h},c9:function(){return s},el:function(){return f},o$:function(){return d},w$:function(){return u},x6:function(){return a},yl:function(){return c}});var n=r(1566),i=r(50661),o=r(34737);let a=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-0"})(["margin:auto;margin-top:10rem;margin-bottom:1.2rem;@media ","{max-width:28rem;}@media ","{max-width:40rem;}"],n.Uh.mobileM,n.Uh.tablet),c=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-1"})(["width:100%;border:",";border-radius:1rem;padding:1rem;margin:3rem 0;text-align:center;> *{margin:1rem auto;}"],e=>{let{theme:t}=e;return"".concat(t.formNewsletter.borderColor," solid 0.06rem")}),l=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-2"})(["color:",";font-size:",";"],e=>{let{theme:t}=e;return t.formNewsletter.titleColor},e=>{let{theme:t}=e;return t.formNewsletter.titleSize}),s=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-3"})(["color:",";font-size:",";"],e=>{let{theme:t}=e;
1return t.formNewsletter.subtitleColor},e=>{let{theme:t}=e;return t.formNewsletter.subtitleSize}),d=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-4"})(["color:",";font-size:",";text-align:start;margin:0 1.5rem;"],e=>{let{theme:t}=e;return t.formNewsletter.toggleDescriptionColor},e=>{let{theme:t}=e;return t.formNewsletter.toggleDescriptionSize}),u=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-5"})(["width:100%;padding:0 1rem;display:flex;flex-direction:row;"]),f=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-6"})(["margin-bottom:2rem;&& > *{margin:auto;}"]),h=i.ZP.a.withConfig({componentId:"sc-fdaf3f71-7"})(["text-decoration:none;cursor:pointer;"]),m=(0,i.ZP)(o.z).withConfig({componentId:"sc-fdaf3f71-8"})(["width:26rem;@media ","{width:27rem;}@media ","{width:33rem;margin-bottom:2rem;}"],n.Uh.mobileM,n.Uh.tablet),p=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-9"})(["max-width:27rem;@media ","{max-width:28rem;}@media ","{max-width:40rem;margin-bottom:0.5rem;}"],n.Uh.mobileM,n.Uh.tablet),g=i.ZP.div.withConfig({componentId:"sc-fdaf3f71-10"})(["padding-top:7rem;@media ","{padding-top:10rem;}"],n.Uh.mobileM)},66271:function(e,t,r){"use strict";r.d(t,{l:function(){return i},Z:function(){return p}});var n,i,o=r(85893),a=r(58249),c=r(67335),l=r(68200),s=r(15553),d=r(67294),u=r(6731),f=r(50661);let h=f.ZP.div.withConfig({componentId:"sc-e2f17e5b-0"})(["margin-top:1rem;"]),m=f.ZP.a.withConfig({componentId:"sc-e2f17e5b-1"})(["text-decoration:underline;cursor:pointer;"]);(n=i||(i={}))[n.GDPR=0]="GDPR",n[n.PRIVACY=1]="PRIVACY",n[n.PROMOTION_START=2]="PROMOTION_START";var p=e=>{let{text:t,visibleLinks:r,centered:n}=e,{gdprLink:i,privacyLink:f,promotionStartLink:p}=u.default,{themeOption:g}=(0,c.bp)(),b=(0,d.useMemo)(()=>g===s.g.MAGIC_LINK?a.me.GDPR_MAGIC_LINK:a.me.GDPR,[g]);return(0,o.jsx)(h,{children:(0,o.jsxs)(a.zr,{text:t||(0,l.Z)("GDPR"),mode:b,fullText:!0,renderChildrenAfterText:!0,centered:n,children:[i&&(null==r?void 0:r.includes(0))&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m,{href:i,rel:"noreferrer",target:"_blank","aria-label":(0,l.Z)("WCAG.aria-label.open-new-page",{label:(0,l.Z)("disclaimer.more-link-1")}),children:(0,l.Z)("disclaimer.more-link-1")}),"."]}),f&&(null==r?void 0:r.includes(1))&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{children:[" ",(0,l.Z)("disclaimer.more-description-2")," "]}),(0,o.jsx)(m,{href:f,rel:"noreferrer",target:"_blank","aria-label":(0,l.Z)("WCAG.aria-label.open-new-page",{label:(0,l.Z)("disclaimer.more-link-2")}),children:(0,l.Z)("disclaimer.more-link-2")}),"."]}),p&&(null==r?void 0:r.includes(2))&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{children:[" ",(0,l.Z)("disclaimer.promotion-start-description")," "]}),(0,o.jsx)("a",{href:p,rel:"noreferrer",target:"_blank","aria-label":(0,l.Z)("WCAG.aria-label.open-new-page",{label:(0,l.Z)("disclaimer.promotion-start-link")}),children:(0,l.Z)("disclaimer.promotion-start-link")})]})]})})}},84982:function(e,t,r){"use strict";var n,i,o,a;r.d(t,{J:function(){return i},r:function(){return n}}),(o=n||(n={})).PASSWORD="password",o.TEXT="text",o.NUMBER="number",o.DATE="date",o.TEL="tel",(a=i||(i={})).LEFT="left",a.CENTER="center",a.RIGHT="right"},51520:function(e,t,r){"use strict";r.d(t,{X:function(){return l}});var n=r(11010),i=r(20567),o=r(14932),a=r(42283);let c=(e,t)=>Array.isArray(e.inner)&&e.inner.length?e.inner.reduce((e,r)=>{let{path:n,message:a,type:c}=r,l=e[n]&&e[n].types||{},s=n||c;return(0,i._)({},e,s?{[s]:(0,i._)({},e[s]||{message:a,type:c},t?{types:(0,o._)((0,i._)({},l),{[c]:l[c]?[...[].concat(l[c]),a]:a})}:{})}:{})},{}):{[e.path]:{message:e.message,type:e.type}},l=function(e){var t;let r=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:{abortEarly:!1};return t=(0,n._)(function*(t,n){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{return r.context,{values:yield e.validate(t,(0,o._)((0,i._)({},r),{context:n})),errors:{}}}catch(t){let e=c(t,l);return{values:{},errors:(0,a.T8)(e)}}}),function(e,r){return t.apply(this,arguments)}}},69192:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return K}});var n=r(85893),i=r(67294),o=r(11817),a=r(20567),c=r(11010),l=r(21331),s=r(93024),d=r(62501),u=r(34050),f=r(14932),h=r(2436),m=r(19098),p=r(8986),g=r(9340);let b=(e,t)=>{var r,n;let i=(0,h.L)(),o=i.getAuthData(),{query:l}=(0,d.tv)(),{authProvider:s,changeEmail:u}=l,b=i.getDeviceIdIdent(),w=(r=(0,c._)(function*(t,r){let{email:n}=t,i={email:n};return r&&Object.assign(i,{authData:(0,f._)((0,a._)({},r),{deviceId:b})}),Promise.resolve((yield e(i)))}),function(e,t){return r.apply(this,arguments)}),x=(n=(0,c._)(function*(e,r){let n={registrationData:(0,f._)((0,a._)({},r),{email:e,authProvider:g.F.NATIVE})};p.yZ&&n.registrationData&&Object.assign(n.registrationData,{deviceId:b});let i=yield t(n);return(0,m.t)(i,s),Promise.resolve(i)}),function(e,t){return n.apply(this,arguments)});return e=>o||u?o?u?w(e,o):x(e.email,o):Promise.resolve({ok:!1}):w(e,o)};var w=r(74231),x=r(68200),C=r(42283),v=r(51520);let E=(e,t)=>{let{authProvider:r}=e,n=null==t?void 0:t.getAuthData(),i=g.F.IPOLSATBOX;if((null==n?void 0:n.authProvider)===i&&r===i)return null==n?void 0:n.login},Z=w.Ry().shape({email:w.Z_().email((0,x.Z)("form.validate.email-valid")).required((0,x.Z)("form.validate.new-email-required")),captcha:w.Z_().when("$showCaptchaV2",{is:!0,then:e=>e.required((0,x.Z)("captcha.confirm")),otherwise:e=>e.notRequired()})}),T=e=>{let{showCaptchaV2:t}=e,{query:r}=(0,d.tv)(),n=E(r,(0,h.L)());return(0,C.cI)({resolver:(0,v.X)(Z),context:{showCaptchaV2:t},defaultValues:{email:n}})};var P=r(12128),I=r(89256),_=r(19218),j=r(21378),A=r(27720);let R=e=>{var t,r,n;let{data:o}=(0,I.Z)({contexts:["newsletter"]}),a=(0,_.d)(o,"newsletter"),[f,{error:h}]=(0,j.Z)(),m=null==a?void 0:null===(t=a[0])||void 0===t?void 0:t.label,[g,w]=(0,i.useState)(),[C,v]=(0,i.useState)(!1),{register:E,handleSubmit:Z,errors:R,setValue:S,clearErrors:k,watch:y,setError:N}=T({showCaptchaV2:C}),L=y("captcha"),[O,{error:D,isFetching:M}]=(0,l.Z)({captcha:L||null,includeV3InFirstRequest:p.$L&&!L}),[U,{error:W,isFetching:X}]=(0,s.Z)({captchaV2:L||null}),G=b(O,U),B=(0,P.s)(null==D?void 0:D.getCode()),z=(0,P.s)(null==W?void 0:W.getCode()),F=B.captchaLowScore||z.captchaLowScore,V=B.captchaWrongValue||z.captchaWrongValue,q=!!L&&String(L).length>0,H=(0,A.H)(M||X||F&&!q),J=(r=(0,c._)(function*(t){let{ok:r}=t;if(e){let e=yield f({terms:[m],status:"accepted"});if(r)return Promise.resolve(e)}return Promise.resolve({ok:r})}),function(e){return r.apply(this,arguments)}),Y=Z((n=(0,c._)(function*(e){let{email:t,captcha:r}=e;H&&(yield G({email:t,captcha:r}).then(J).then(e=>{e.ok&&d.F0.pushRoute(u.Z6.ADD_ACCOUNT_EMAIL_STATUS,{email:t})}).finally(()=>{C&&window.grecaptcha&&window.grecaptcha.reset()}))}),function(e){return n.apply(this,arguments)})),K=(0,i.useCallback)(e=>{S("captcha",e),k("captcha")},[S,k]),$=()=>{let e=W||D;if(!e){w(void 0);return}w((0,P.T)(e.getCode())?void 0:e)},Q=()=>{((null==D?void 0:D.getCode())===P.ERROR_CODES_GET_MEDIA.B2C_WRONG_CAPTCHA_VALUE||(null==W?void 0:W.getCode())===P.ERROR_CODES_GET_MEDIA.B2C_WRONG_CAPTCHA_VALUE)&&N("captcha",{message:(0,x.Z)("captcha.confirm")})};return(0,i.useEffect)(()=>{E({name:"captcha"})},[E]),(0,i.useEffect)(()=>{F&&v(!0)},[F]),(0,i.useEffect)(()=>{$(),Q()},[D,W,N,w,x.Z]),{registerForm:E,emailError:g,setEmailError:w,formErrors:R,newsletterError:h,onSubmit:Y,isFetching:M||X,setCaptcha:K,showCaptchaV2Widget:C,allowSubmit:H,captchaError:C&&V}};var S=r(3464),k=r(67825),y=r(84982),N=r(43058),L=r(4298),O=r.n(L),D=r(7824),M=r(66271),U=(r(68942),r(71896)),W=r(32618),X=r(96465),G=r(97100),B=r(23325),z=r(71786),F=r(55710),V=r(15809),q=r(34737),H=r(93435),J=()=>{let[e,t]=(0,i.useState)(!1),{registerForm:r,onSubmit:o,isFetching:c,emailError:l,newsletterError:s,formErrors:f,setCaptcha:h,setEmailError:m,showCaptchaV2Widget:p,allowSubmit:g,captchaError:b}=R(e),{query:w}=(0,d.tv)(),{differentEmail:C,withActiveProducts:v,email:E}=w,Z=!!l||!!f,T=(0,i.useCallback)(()=>{m(void 0)},[m]),P=(0,i.useMemo)(()=>v?(0,x.Z)("pages.add-account-email.request.withActiveProductsTitle"):C?(0,x.Z)("pages.add-account-email.request.differentEmailTitle"):(0,x.Z)("pages.add-account-email.request.title"),[v,C]),I=(0,i.useMemo)(()=>v?(0,x.Z)("pages.add-account-email.request.withActiveProductsDescription",{portalName:(0,x.Z)("domain")}):C?"":(0,x.Z)("pages.add-account-email.request.description",{portalName:(0,x.Z)("domain")}),[C]),_=(0,i.useMemo)(()=>v?k.UZ.INFO_CIRCLE:k.UZ.EMAIL_CIRCLE,[v]),j=(0,i.useMemo)(()=>C?(0,x.Z)("pages.add-account-email.request.differentEmailTitle"):(0,x.Z)("form.placeholder.e-mail"),[C]);return(0,i.useMemo)(()=>{var e;return(0,n.jsx)(G.Xs,{children:(0,n.jsxs)(X.sV,{isFetching:c,showChildren:Z,centered:!0,children:[(0,n.jsx)(G.Ed,{children:(0,n.jsx)(S.v,{icon:_,title:P,description:I,gutter:D.G.SMALL})}),(0,n.jsxs)(W.lN,{children:[(0,n.jsx)(U.o,{type:y.r.TEXT,icon:k.UZ.EMAIL,error:!!f.email||!!l,errorMessage:(null===(e=f.email)||void 0===e?void 0:e.message)||(null==l?void 0:l.getUserMessage()),placeholder:j,name:"email",ref:r,handleEnter:o,onFocus:T,gutter:D.G.MEDIUM}),!1,p&&(0,n.jsxs)(G.el,{children:[(0,n.jsx)(O(),{src:z.S}),(0,n.jsx)(B.U,{onChange:h,captchaError:!!f.captcha||b},p?"captcha":"no-captcha")]})]}),C?(0,n.jsx)(G.Sn,{active:g&&!c,text:(0,x.Z)("next-button-label"),onButtonAction:o,btnType:N.J.PRIMARY,gutter:D.G.SMALL}):(0,n.jsx)(q.z,{active:g&&!c,text:(0,x.Z)("ok-button-label"),onButtonAction:o,btnType:N.J.PRIMARY,gutter:D.G.SMALL}),!C&&(0,n.jsx)(M.Z,{visibleLinks:[M.l.GDPR,M.l.PRIVACY]}),v&&(0,n.jsx)(S.v,{descriptionJSX:(0,n.jsxs)(V.NF,{children:[(0,x.Z)("pages.add-account-email.loginNote1")," ",(0,n.jsx)(d.rU,{route:u.Z6.LOGIN_NATIVE,children:(0,n.jsx)(G.Yx,{children:(0,x.Z)("pages.add-account-email.loginNote2")})})," ",(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,x.Z)("pages.add-account-email.loginNote3",(0,a._)({email:E},(0,F.R1)()))}})]})}),C&&(0,n.jsx)(H.U,{})]})})},[f,l,c,e,o,r,s,h,Z,T,C,E,P,v,I,_,j,p,g,b])},Y=r(41959),K=()=>(0,n.jsx)(o.Z,{simpleView:!0,cancelAction:()=>d.F0.pushRoute(u.Z6.HOME),activityEvents:{placeType:Y.U.ACCOUNT_SETTINGS},children:(0,n.jsx)(J,{})})}},function(e){e.O(0,[5079,5675,3290,4231,2283,2901,2903,1817,6465,4203,2888,9774,179],function(){return e(e.s=38939)}),_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.