PageSourceSearch

https://coverdrive.cricket/_next/static/chunks/pages/callback-e13a2c6c2c79f1f5.js

js coverdrive.cricket collected 2026-10-06 21:24:43 UTC 7,527 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[480],{4120:function(e,n,r){"use strict";r.d(n,{Z:function(){return A}});var i=r(7294),t=r(9008),o=r.n(t),a=r(4298),s=r.n(a),l=r(6307),c=r.n(l),u=r(1664),d=r.n(u),_=r(5675),h=r.n(_),f=r(1163),g=r(423),p=r.n(g),x=r(2293),m=r(155),v=r(8862),j=r(3946),b=r(7766),C=r(5819),k=r(6236),T=r(5893),w=function(){var e=(0,i.useState)(null),n=e[0],r=e[1],t=(0,f.useRouter)();return(0,T.jsxs)("div",{className:p().menu,children:[(0,T.jsx)(j.Z,{edge:"start",color:"inherit","aria-label":"menu",onClick:function(e){r(e.currentTarget)},children:(0,T.jsx)(k.Z,{"aria-controls":"simple-menu","aria-haspopup":"true"})}),(0,T.jsxs)(b.Z,{id:"simple-menu",anchorEl:n,keepMounted:!0,open:Boolean(n),onClose:function(){r(null)},className:p().menuItem,children:[(0,T.jsx)(C.Z,{children:(0,T.jsx)(d(),{href:"/",children:"Home"})}),(0,T.jsx)(C.Z,{children:(0,T.jsx)(d(),{href:"/blog",children:"Blog"})}),(0,T.jsx)(C.Z,{children:(0,T.jsx)(d(),{href:"/privacy",children:"Privacy"})}),(0,T.jsx)(C.Z,{children:(0,T.jsx)(d(),{href:"/fielding",children:"Fielding Positions"})}),(0,T.jsx)(C.Z,{children:(0,T.jsx)(d(),{href:"/batting",children:"AI Batting Demo"})}),"/profile"===t.pathname&&(0,T.jsx)(C.Z,{children:(0,T.jsx)(d(),{href:"/app_login",children:"App Login"})}),"/app_login"===t.pathname&&(0,T.jsx)(C.Z,{children:(0,T.jsx)(d(),{href:"/profile",children:"Profile"})}),(0,T.jsx)(C.Z,{children:"/profile"===t.pathname?(0,T.jsx)(d(),{href:"/logout",children:"Logout"}):(0,T.jsx)(d(),{href:"/login",children:"Login"})})]})]})},y=function(e){var n=e.isHome,r=(0,i.useRef)(null);return(0,i.useEffect)((function(){n&&("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&new IntersectionObserver((function(e){var n,i;e[0].boundingClientRect.y<-1*e[0].boundingClientRect.height?null===(n=r.current)||void 0===n||n.classList.remove(p().atTop):null===(i=r.current)||void 0===i||i.classList.add(p().atTop)})).observe(document.querySelector("#scrollbarTrigger")))}),[]),(0,T.jsx)(x.Z,{position:"static",className:p().header,ref:r,children:(0,T.jsxs)(m.Z,{children:[(0,T.jsx)(w,{}),(0,T.jsxs)("div",{className:p().logoContainer,children:[(0,T.jsx)(d(),{href:"/",children:(0,T.jsx)("div",{children:(0,T.jsx)(h(),{src:"/images/CDC_Icon_BW.webp",alt:"Cover Drive Cricket logo",className:p().logo,priority:!0,width:80,height:80,loading:"eager"})})}),(0,T.jsx)(d(),{href:"/",children:(0,T.jsx)(v.Z,{className:p().logoText,children:"Cover Drive Cricket".toUpperCase()})})]}),(0,T.jsx)("div",{className:p().NavCTA,children:(0,T.jsx)("a",{href:"https://sidequestvr.com/app/3151?utm_source=cdc_nav",rel:"noopener nofollow noreferrer",target:"_blank",children:(0,T.jsx)(h(),{src:"/images/Sidequest.webp",alt:"Buy Cover Drive Cricket on Sidequest",priority:!0,loading:"eager",width:300,height:100})})})]})})},N=r(3493),Z=r.n(N),I=r(5290),L=r(4232),E=r(3132),R=function(){return(0,T.jsx)("a",{href:"https://instagram.com/coverdrivevr",target:"_blank",rel:"noopener noreferrer",children:(0,T.jsx)(I.Z,{alt:"Instagram icon",className:Z().logo})})},H=function(){return(0,T.jsx)("a",{href:"https://twitter.com/coverdrivevr",target:"_blank",rel:"noopener noreferrer",children:(0,T.jsx)(L.Z,{alt:"Twitter icon",className:Z().logo})})},P=function(){return(0,T.jsx)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",children:(0,T.jsx)(E.Z,{alt:"Email icon",className:Z().logo})})},S=function(){return(0,T.jsx)("div",{className:Z().footer,children:(0,T.jsxs)("div",{className:Z().footerIcons,children:[(0,T.jsx)(R,{}),(0,T.jsx)(H,{}),(0,T.jsx)(P,{})]})})},A=function(e){var n=e.isHome,r=e.children;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o(),{children:(0,T.jsx)("link",{rel:"icon",href:"/favicon.ico"})}),(0,T.jsx)(s(),{async:!0,defer:!0,strategy:"beforeInteractive","data-domain":"coverdrive.cricket",src:"https://plausible.io/js/plausible.outbound-links.js"}),(0,T.jsx)(y,{isHome:n}),(0,T.jsxs)("div",{className:[c().bodyContainer,n?c().bodyHome:""].join(" "),children:[(0,T.jsx)("main",{className:c().main,children:r}),(0,T.jsx)(S,{})]})]})}},9515:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return v}});var i=r(29),t=r(7794),o=r.n(t),a=r(7294),s=r(9008),l=r.n(s),c=r(4120),u=r(1664),d=r.n(u),_=r(1163),h=r(9148),f=r.n(h),g=r(735),p=r.n(g),x=r(1749),m=r(5893);function v(){var e=(0,a.useState)(!1),n=e[0],r=(e[1],(0,_.useRouter)());if((0,a.useEffect)((function(){var e=function(){var e=(0,i.Z)(o().mark((function e(){var n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n=window.location.hash.replace("#",""),i=window.atob(n),fetch("/api/callback?hash=".concat(i),{credentials:"same-origin"}).then((function(e){console.log(e),200===e.status?r.replace("/profile"):r.replace("/login")})).catch((function(e){console.error(e),r.replace("/login")}))}catch(t){console.log(t),r.replace("/login")}case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[r]),!n)return(0,m.jsxs)(c.Z,{children:[(0,m.jsx)(l(),{children:(0,m.jsx)("title",{children:"Login Callback"})}),(0,m.jsxs)("div",{className:f().paddedContainer,children:[(0,m.jsx)(d(),{href:"/",children:(0,m.jsx)("a",{className:f().backLink,children:"< Home"})}),(0,m.jsx)(x.Z,{container:!0,children:(0,m.jsx)(x.Z,{item:!0,xs:12,children:(0,m.jsx)("h1",{className:p().headingLg,children:"Verifying..."})})})]})]})}},5700:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/callback",function(){return r(9515)}])},3493:function(e){e.exports={footer:"footer_footer__rqrNI",footerIcons:"footer_footerIcons__yU4RP",logo:"footer_logo__aQRvG"}},423:function(e){e.exports={header:"header_header__oF_X9",menu:"header_menu__mpwzV",menuItem:"header_menuItem__2TLx1",logoContainer:"header_logoContainer__6_beR",logo:"header_logo__rSJ6X",NavCTA:"header_NavCTA__vWuO7",atTop:"header_atTop__Fp5Z4",link:"header_link__xTuJk",logoText:"header_logoText__QwE8h"}},6307:function(e){e.exports={bodyContainer:"layout_bodyContainer__vRk1S",bodyHome:"layout_bodyHome__BD8Ur",main:"layout_main__zHJVS"}},735:function(e){e.exports={headingLg:"login_headingLg__TMlZA",login:"login_login__TThXi"}},9148:function(e){e.exports={headingLg:"utils_headingLg__LGM7c",headingMd:"utils_headingMd__UYaRC",description:"utils_description__TQzP3",paddedContainer:"utils_paddedContainer__tRjqH",backLink:"utils_backLink__JDC9S",title:"utils_title__bgpUO",a:"utils_a__K71v6",article:"utils_article__ZzdNM",lightText:"utils_lightText__3CnEW",list:"utils_list__m9ktp",bannerImageContainer:"utils_bannerImageContainer__I9ULq",noMarginTop:"utils_noM
1arginTop__9li_T",CTA:"utils_CTA__TKNj7",oculusCTA:"utils_oculusCTA__MkH5y",slogan:"utils_slogan__izdmu",overlay:"utils_overlay__WqTEL",spacedVerticalGrid:"utils_spacedVerticalGrid__1RP7J",bannerImageText:"utils_bannerImageText__YQftW",profile:"utils_profile___W0_h",main:"utils_main__4PXBF",container:"utils_container__t9caS",statsCard:"utils_statsCard__3s8sS"}},29:function(e,n,r){"use strict";function i(e,n,r,i,t,o,a){try{var s=e[o](a),l=s.value}catch(c){return void r(c)}s.done?n(l):Promise.resolve(l).then(i,t)}function t(e){return function(){var n=this,r=arguments;return new Promise((function(t,o){var a=e.apply(n,r);function s(e){i(a,t,o,s,l,"next",e)}function l(e){i(a,t,o,s,l,"throw",e)}s(void 0)}))}}r.d(n,{Z:function(){return t}})}},function(e){e.O(0,[520,749,774,888,179],(function(){return n=5700,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.