PageSourceSearch

https://polsatboxgo.pl/_next/static/chunks/pages/tvcode-registration-7256f830b270b794.js

js polsatboxgo.pl collected 2026-10-02 03:37:07 UTC 6,387 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3880,2378],{62730:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tvcode-registration",function(){return n(18863)}])},71896:function(e,t,n){"use strict";n.d(t,{o:function(){return r.o}});var r=n(34677)},40826:function(e,t,n){"use strict";n.d(t,{Pm:function(){return s},XS:function(){return a}});var r=n(50661),i=n(1566),o=n(15553);let s=r.ZP.div.withConfig({componentId:"sc-9551a7b4-0"})(["margin:2rem 0;&& > *{margin:auto;}",""],e=>{let{themeOption:t}=e;return t===o.g.MAGIC_LINK&&"\n        max-width: 33rem;\n        margin: 0 auto;\n    "});r.ZP.div.withConfig({componentId:"sc-9551a7b4-1"})(["display:flex;justify-content:center;padding-bottom:4rem;> *{width:30%;margin:0 1rem;}"]),r.ZP.div.withConfig({componentId:"sc-9551a7b4-2"})(["display:initial;@media ","{display:none;}"],i.Uh.tablet);let a=r.ZP.div.withConfig({componentId:"sc-9551a7b4-3"})(["display:flex;justify-content:center;text-align:center;font-size:1.4rem;span{color:",";margin-right:0.5rem;}p{color:red;cursor:pointer;text-decoration:underline;}a{text-decoration:underline;}"],e=>{let{theme:t}=e;return t.message.descriptionColor});r.ZP.div.withConfig({componentId:"sc-9551a7b4-4"})(["min-height:28.4rem;width:100%;padding:2rem;background-color:",";display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:2rem;overflow:hidden;position:relative;"],e=>{let{theme:t}=e;return t.goToPBG.backgroundColor}),r.ZP.img.withConfig({componentId:"sc-9551a7b4-5"})(["position:absolute;top:45%;left:45%;"]),r.ZP.div.withConfig({componentId:"sc-9551a7b4-6"})(["max-width:60rem;margin:3rem auto;"])},61170:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(59713);let i=[[r.Y.NAVIGATION,r.U.FETCH_STAFF_RECOMMENDATIONS_LISTS],[r.Y.NAVIGATION,r.U.FETCH_STAFF_RECOMMENDATIONS_LISTS_ITEMS],[r.Y.USER_CONTENT,r.U.FETCH_USER_LATELY_WATCHED_CONTENT_DATA_LIST],[r.Y.NAVIGATION,r.U.GET_FAVORITES_WITH_FLAT_NAVIGATION],[r.Y.NAVIGATION,r.U.FETCH_CHANNEL_LIST],[r.Y.DRM,r.U.CHECK_PRODUCT_ACCESS]]},96182:function(e,t,n){"use strict";n.d(t,{o:function(){return h}});var r=n(11010),i=n(44474),o=n(64673),s=n(59713),a=n(61170),c=()=>{let e=(0,o.ZP)(s.Y.AUTH,s.U.LOGOUT,null);return(0,i.Vp)(e,{appendAuthData:!0,invalidate:a.h})},u=n(2436),d=n(70760),l=n(67294),g=n(67335),p=n(62501);let h=(e,t,n)=>{let[i,{isFetching:o}]=c(),s=(0,u.L)(),h=(0,d.ew)(),{setDisabledQueries:m}=(0,l.useContext)(g.Il);return{logout:(0,l.useCallback)((0,r._)(function*(){m(a.h.map(e=>e[1])),s.isDuringLogout=!0,(yield i({})).ok&&(h.hitAppUserLoggedOut(),s.clearAuthSession(),s.clearCredentials(),null==t||t(),p.F0.pushRoute(e,n||{}),m([])),s.isDuringLogout=!1}),[]),isFetching:o}}},18863:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return R},default:function(){return w}});var r=n(11010),i=n(85893),o=n(32011),s=n(68200),a=n(11817),c=n(67294),u=n(85362),d=n(3464),l=n(67825),g=n(71896),p=n(40826),h=n(34737),m=n(43058),_=n(51520),f=n(42283),C=n(74231),T=n(44474),I=n(64673),E=n(59713);let A=e=>{let t=(0,I.ZP)(E.Y.AUTH,E.U.ACCEPT_REGISTER,e);return(0,T.Al)(t,{appendAuthData:!0})},v=C.Ry().shape({code:C.Z_().required((0,s.Z)("form.validate.code-required"))}),x=e=>{var t;let[n,i]=(0,c.useState)(),{data:o,error:s,isFetching:a}=A(n),{register:u,handleSubmit:d,errors:l}=(0,f.cI)({resolver:(0,_.X)(v)});return{registerForm:u,registerError:s,formErrors:l,onSubmit:d((t=(0,r._)(function*(t){let{code:n}=t,r=null==e?void 0:e.userId,o=null==e?void 0:e.authData;r&&o&&i({authData:o,acceptanceCode:n,userId:r})}),function(e){return t.apply(this,arguments)})),resultRegister:o,isFetching:!!a,setAcceptRegisterParams:i}};var b=n(62501),N=n(79749),Z=n(28468);let S=e=>{let{code:t}=e,[n,r]=(0,c.useState)(),[o,a]=(0,c.useState)(),[_,f]=(0,c.useState)(null==t?void 0:t.toUpperCase()),{resultRegister:C,registerForm:T,setAcceptRegisterParams:I,onSubmit:E,registerError:A,isFetching:v}=x({userId:n,authData:o}),S=(0,c.useMemo)(()=>(0,i.jsx)(d.v,{icon:l.UZ.INFO_CIRCLE,title:(0,s.Z)("pages.register.by-code.success-header"),description:(0,s.Z)("pages.register.by-code.success-description")}),[]),y=(0,c.useMemo)(()=>{let e="".concat(N.X.BUTTON,"-try-again");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.v,{icon:l.UZ.INFO_CIRCLE,title:(0,s.Z)("pages.register.by-code.error-header"),description:(0,s.Z)("pages.register.by-code.error-description")}),(0,i.jsx)(p.Pm,{children:(0,i.jsx)(h.z,{text:(0,s.Z)("pages.register.by-code.try-again"),onButtonAction:()=>b.F0.back(),btnType:m.J.PRIMARY,fullWidth:!0,"data-testing":e})})]})},[]);if(C)return 0===C.status?S:y;if(n){let e="".concat(N.X.BUTTON,"-sign-in-with-code");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.J5,{isFetching:v}),(0,i.jsx)(d.v,{icon:l.UZ.PERSON_CIRCLE,title:(0,s.Z)("pages.register.by-code.header")}),(0,i.jsx)(p.Pm,{children:(0,i.jsx)(g.o,{icon:l.UZ.KEY,placeholder:(0,s.Z)("pages.register.by-code.code"),error:!!A,errorMessage:null==A?void 0:A.getUserMessage(),name:"code",value:_,onCh
1ange:e=>{var t;f(null===(t=e.target.value)||void 0===t?void 0:t.toUpperCase())},ref:T,handleEnter:E,maxLength:50,ariaLabel:(0,s.Z)(" WCAG.aria-label.enter-code")})}),(0,i.jsx)(p.Pm,{children:(0,i.jsx)(h.z,{text:(0,s.Z)("ok-button-label"),onButtonAction:E,btnType:m.J.PRIMARY,fullWidth:!0,"data-testing":e})})]})}return(0,i.jsx)(Z.y,{onSuccess:(e,n)=>{t&&I({userId:e.userId,acceptanceCode:t,authData:n}),r(e.userId),a(n)}})};var y=n(99186),O=n(1986),U=n(2436),j=n(16058),F=n(96182),P=n(34050),R=!0,w=e=>{let t=(0,U.L)().isLogged(),{query:n}=(0,b.tv)(),d=(0,j.K)(),{logout:l}=(0,F.o)(P.Z6.TV_CODE_REGISTRATION),[g,p]=(0,c.useState)(t);return(0,c.useEffect)(()=>{var e;t&&(e=(0,r._)(function*(){yield l(),p(!1)}),function(){return e.apply(this,arguments)})()},[t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{description:(0,s.Z)("seo.user_register.description",{portal_domain:(0,s.Z)("domain-url")}),title:(0,s.Z)("seo.user_register.title",{portal_domain:(0,s.Z)("domain-url")})}),(0,i.jsx)(a.Z,{simpleView:!0,cancelAction:()=>{n.next?d():b.F0.back()},hideCloseButton:!0,disableDefaultHead:!0,children:(0,i.jsx)(y.Gz,{reverse:!0,children:(0,i.jsxs)(O.s,{children:[(0,i.jsx)(u.J5,{isFetching:g}),!g&&(0,i.jsx)(S,{code:e.qrCode})]})})})]})}}},function(e){e.O(0,[5079,5675,3290,4231,2283,2901,2903,1817,6465,4739,8468,2888,9774,179],function(){return e(e.s=62730)}),_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.