PageSourceSearch

https://www.dvtv.cz/_next/static/chunks/pages/pair-01ae02df300bc739.js

js dvtv.cz collected 2026-09-24 10:47:46 UTC 9,217 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8309],{9475:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pair",function(){return t(90076)}])},90076:function(e,n,t){"use strict";t.r(n);var o=t(52322),r=t(21413),i=t(86447),u=t(27511),c=t(5632),a=t(2784),l=t(35505),s=t(7948),d=t(7455),f=t(87325),p=t(29152),v=t(30429);let h=l.ZP.div.withConfig({componentId:"sc-c8b5059a-0"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;padding:20vh 1rem 3rem 1rem;gap:32px;"]),x=l.ZP.h1.withConfig({componentId:"sc-c8b5059a-1"})(["margin:0;font-size:2.285714rem;font-weight:bold;text-transform:uppercase;"]),g=l.ZP.div.withConfig({componentId:"sc-c8b5059a-2"})(["font-size:1.428571rem;opacity:0.7;"]),m=l.ZP.div.withConfig({componentId:"sc-c8b5059a-3"})(["display:flex;gap:8px;align-items:center;justify-content:center;"]),b=(0,l.ZP)(i.wx.TextInput).withConfig({componentId:"sc-c8b5059a-4"})(["width:32px;height:50px;line-height:50px;padding:0;text-align:center;background-color:",";color:#fff;text-transform:uppercase;font-size:1.375rem;border:none;border-radius:4px;-moz-appearance:textfield;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"],e=>e.disabled?"transparent":"rgba(255, 255, 255, 0.3)"),y=l.ZP.div.withConfig({componentId:"sc-c8b5059a-5"})(["font-size:1.2rem;"]),w=l.ZP.div.withConfig({componentId:"sc-c8b5059a-6"})(["display:flex;align-items:center;justify-content:center;width:125px;height:125px;border-radius:50%;"," font-size:5rem;"],e=>{var n,t,o,r;return null!==(r=null===(o=e.theme)||void 0===o?void 0:null===(t=o.customizations)||void 0===t?void 0:null===(n=t.global)||void 0===n?void 0:n.pairSuccessBackground)&&void 0!==r?r:"background-color: #4caf50;"}),j=e=>(null==e?void 0:e.length)===8?e.toString():"",Z=()=>(0,o.jsx)(w,{children:(0,o.jsx)(r.Z,{fontSize:"inherit"})});n.default=()=>{let{applyInviteCodeResult:e,loading:n,applyInviteCode:t,inviteCodeReset:r}=(0,i.YZ)(),{user:l}=(0,i.aF)(),{query:w}=(0,c.useRouter)(),P=j(null==w?void 0:w.code).split(""),[k,C]=(0,a.useState)(P);if((0,d.y)(u.AnalyticsConversionPage.Pair),(0,a.useEffect)(()=>{(null==l?void 0:l.isSignedIn)||(0,v.EX)({replace:!0,callbackUrl:window.location.pathname+window.location.search})},[null==l?void 0:l.isSignedIn]),!l)return(0,o.jsx)(f.V,{animated:!1});let _=(0,a.useCallback)(t=>{let{position:r,value:i}=t;return(0,o.jsx)(b,{type:"number",pattern:"[0-9]*",inputMode:"numeric",name:"pairCode",value:i||"",tabIndex:r,autoFocus:0===r,onChange:e=>{let n=e.target,t=/[0-9]$/;if(C(e=>(n.value.match(t)?e[r-1]=n.value.split("").pop():""===n.value&&(e[r-1]=""),[...e])),n.value.length){let e=document.querySelector('input[tabindex="'.concat(n.tabIndex+1,'"]'));null==e||e.focus()}},onKeyDown:e=>{if(("Backspace"===e.key||"Delete"===e.key)&&!i){e.preventDefault();let n=document.querySelector('input[tabindex="'.concat(r-1<0?0:r-1,'"]'));null==n||n.focus()}},disabled:n||!1===e})},[n,e]);return(0,a.useEffect)(()=>{let e=k.join("");8===e.length&&t(e)},[k,t]),(0,o.jsx)("div",{children:(0,o.jsxs)(h,{children:[(0,o.jsx)(x,{children:p.Z.t("Login")}),!0===e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Z,{}),(0,o.jsx)(g,{children:p.Z.t("Your device has been logged in")})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{children:p.Z.t("Copy the code from TV screen")}),(0,o.jsxs)(m,{children:[(0,o.jsx)(_,{position:1,value:k[0]}),(0,o.jsx)(_,{position:2,value:k[1]}),(0,o.jsx)(_,{position:3,value:k[2]}),(0,o.jsx)(_,{position:4,value:k[3]}),"-",(0,o.jsx)(_,{position:5,value:k[4]}),(0,o.jsx)(_,{position:6,value:k[5]}),(0,o.jsx)(_,{position:7,value:k[6]}),(0,o.jsx)(_,{position:8,value:k[7]})]})]}),n&&(0,o.jsx)(y,{children:p.Z.t("Checking...")}),!1===e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{children:p.Z.t("This code is not valid")}),(0,o.jsx)(s.z,{variant:"contained",color:"primary",onClick:()=>{r(),C([])},children:p.Z.t("Retry")})]})]})})}},7948:function(e,n,t){"use strict";t.d(n,{z:function(){return a}});var o=t(52322),r=t(74087);t(2784);var i=t(35505),u=t(24126);let c=(0,i.ZP)(r.Z).withConfig({componentId:"sc-d15329f0-0"})(["box-shadow:none;font-weight:bold;padding:.75rem 1rem;",";:hover{box-shadow:none;}"],e=>{var n,t,o;return(0,u.Q)("border-radius",null===(o=e.theme)||void 0===o?void 0:null===(t=o.customizations)||void 0===t?void 0:null===(n=t.Button)||void 0===n?void 0:n.borderRadius)}),a=e=>(0,o.jsx)(c,{...e,children:e.children})},7455:function(e,n,t){"use strict";t.d(n,{y:function(){return u}});var o=t(86447),r=t(27511),i=t(2784);function u(e,n){(0,i.useEffect)(()=>{(![r.AnalyticsConversionPage.Videos,r.AnalyticsConversionPage.Player].includes(e)||n)&&o.fv.reportLocationChange(e,n)},[o.fv,e,n])}}
1,77038:function(e,n,t){"use strict";t.d(n,{n:function(){return l}});var o=t(52322),r=t(61520);t(2784);var i=t(35505),u=t(48980);let c=(0,i.ZP)("img").withConfig({componentId:"sc-9043c195-0"})(["max-width:100px;@media (min-width:","px){max-width:140px;}"],u.MD),a=(0,i.ZP)(r.Z).withConfig({componentId:"sc-9043c195-1"})(["width:70vw;height:7px !important;@media (min-width:","px){width:25vw;}"],u.MD),l=e=>{let{logo:n,showProgressBar:t,title:r}=e;return(0,o.jsxs)(o.Fragment,{children:[n&&(0,o.jsx)(c,{src:n,alt:r}),t&&(0,o.jsx)(a,{color:"primary"})]})}},87325:function(e,n,t){"use strict";t.d(n,{V:function(){return s}});var o=t(52322),r=t(2784),i=t(35505),u=t(42584),c=t(17439),a=t(77038);let l=i.ZP.div.withConfig({componentId:"sc-b5ec3eb7-0"})(["position:fixed;top:0;left:0;z-index:",";display:flex;width:100vw;height:100vh;align-items:center;justify-content:center;flex-direction:column;gap:70px;",";opacity:",";transition:opacity ","ms ease-out;pointer-events:",";"],u.bf+1,e=>{var n,t;let{background:o,theme:r}=e;return o?"".concat(o," !important"):(null===(t=r.customizations)||void 0===t?void 0:null===(n=t.global)||void 0===n?void 0:n.appBackground)?"".concat(r.customizations.global.appBackground," !important"):"background-color: #000;"},e=>{let{$isVisible:n}=e;return n?1:0},150,e=>{let{$isVisible:n}=e;return n?"auto":"none"}),s=e=>{var n,t,i,u;let{animated:s=!0,visible:d=!0}=e,{webConfig:f}=(0,c.J)(),[p,v]=(0,r.useState)(!0);if((0,r.useEffect)(()=>{if(d)v(!0);else{let e=setTimeout(()=>v(!1),150);return()=>clearTimeout(e)}},[d]),!p)return null;let h=null===(n=f.loader)||void 0===n?void 0:n.animatedLogo,x=s&&h,g=x?h:null!==(i=f.logoLoadingOverlay)&&void 0!==i?i:f.logo,m=!x&&(null===(t=f.loader)||void 0===t?void 0:t.showProgressBar)!==!1;return(0,o.jsx)(l,{background:f.appBackground,$isVisible:d,children:(0,o.jsx)(a.n,{logo:g,showProgressBar:m,title:null!==(u=f.title)&&void 0!==u?u:""})})}},22203:function(e,n,t){"use strict";t.r(n),t.d(n,{capitalize:function(){return o.Z},createChainedFunction:function(){return r.Z},createSvgIcon:function(){return i.Z},debounce:function(){return u.Z},deprecatedPropType:function(){return c},isMuiElement:function(){return a.Z},ownerDocument:function(){return l.Z},ownerWindow:function(){return s.Z},requirePropFactory:function(){return d},setRef:function(){return f.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return p},useControlled:function(){return v.Z},useEventCallback:function(){return h.Z},useForkRef:function(){return x.Z},useIsFocusVisible:function(){return m.Z}});var o=t(87977),r=t(83103),i=t(77766),u=t(99547);function c(e,n){return function(){return null}}var a=t(8025),l=t(9999),s=t(34928);function d(e){return function(){return null}}var f=t(35906);function p(e,n,t,o,r){return null}var v=t(10355),h=t(60942),x=t(48457),g=t(63605),m=t(25617)},21413:function(e,n,t){"use strict";var o=t(71600),r=t(34590);n.Z=void 0;var i=r(t(2784)),u=(0,o(t(32769)).default)(i.createElement("path",{d:"M9 16.17L5.53 12.7a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.9959.9959 0 00-1.41 0L9 16.17z"}),"CheckRounded");n.Z=u},32769:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=t(22203)},34590:function(e,n,t){var o=t(67425).default;function r(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(r=function(e){return e?t:n})(e)}e.exports=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var t=r(n);if(t&&t.has(e))return t.get(e);var i={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var a=u?Object.getOwnPropertyDescriptor(e,c):null;a&&(a.get||a.set)?Object.defineProperty(i,c,a):i[c]=e[c]}return i.default=e,t&&t.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},67425:function(e){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=9475)}),_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.