PageSourceSearch

https://shipsecure-app.pages.dev/_next/static/chunks/pages/auth/github/callback-a2829a9ad2b0f0b6.js

js shipsecure-app.pages.dev collected 2026-10-03 05:45:03 UTC 12,295 bytes, 36 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[71554,10203,83858,20197,44322],{36179:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/github/callback",function(){return r(58472)}])},71053:function(e,t,r){"use strict";r.d(t,{PU:function(){return a},Om:function(){return c},$m:function(){return x},Km:function(){return m},Ho:function(){return f},cJ:function(){return g},l3:function(){return y},xg:function(){return b},TR:function(){return w},KD:function(){return k}});var n=r(31549),i=r(44194);let s=[{icon:"clipboard",title:"Project Submitted",desc:"acme-saas.com",time:"2 min ago"},{icon:"credit-card",title:"Payment Processing",desc:"Secure checkout",time:"In progress"},{icon:"shield",title:"Manual Audit",desc:"Expert security review",time:"Up next"},{icon:"file-text",title:"Report Delivery",desc:"Detailed findings",time:"~1 week"}];function a(){let[e,t]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=setInterval(()=>{t(e=>e>=s.length-1?0:e+1)},3e3);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"space-y-3",children:s.map((t,r)=>{let i=r===e;return(0,n.jsxs)("div",{className:"flex items-center gap-4 p-3 rounded-xl border transition-all duration-300 ease-out ".concat(i?"bg-cyan-500/10 border-cyan-500/20":"bg-transparent border-transparent"," ").concat(r<e?"opacity-50":i?"opacity-100":"opacity-40"),children:[(0,n.jsxs)("div",{className:"text-2xl transition-transform duration-300 ".concat(i?"scale-110":"scale-100"),children:["clipboard"===t.icon&&"\uD83D\uDCCB","credit-card"===t.icon&&"\uD83D\uDCB3","shield"===t.icon&&"\uD83D\uDEE1️","file-text"===t.icon&&"\uD83D\uDCDD"]}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-sm font-medium truncate transition-colors duration-300 ".concat(i?"text-white":"text-gray-400"),children:t.title}),i&&(0,n.jsx)("span",{className:"flex-shrink-0 w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"})]}),(0,n.jsx)("span",{className:"text-xs text-gray-500 truncate block",children:t.desc})]}),(0,n.jsx)("span",{className:"text-xs flex-shrink-0 transition-colors duration-300 ".concat(i?"text-cyan-400":"text-gray-600"),children:t.time})]},t.title)})})}function c(e){let{children:t}=e;return(0,n.jsxs)("div",{className:"relative flex flex-col items-center justify-center min-h-full p-5 overflow-hidden noise-bg",children:[(0,n.jsx)("div",{className:"fixed inset-0 grid-bg pointer-events-none"}),(0,n.jsx)("div",{"aria-hidden":"true",className:"absolute top-0 left-1/4 w-96 h-96 bg-cyan-500/10 rounded-full blur-[100px] pointer-events-none"}),(0,n.jsx)("div",{"aria-hidden":"true",className:"absolute bottom-0 right-1/4 w-96 h-96 bg-emerald-500/10 rounded-full blur-[100px] pointer-events-none"}),(0,n.jsx)("div",{className:"relative z-10 flex flex-col items-center w-full max-w-md",children:t})]})}var l=r(25878),o=r(53174),u=r.n(o);let d={primary:"bg-cyan-500 text-black font-semibold hover:bg-cyan-400 hover:shadow-[0_0_30px_rgba(6,182,212,0.4)] disabled:hover:shadow-none",secondary:"bg-white text-black font-semibold hover:bg-gray-100 hover:scale-[1.02] active:scale-[0.98]",ghost:"text-cyan-400 hover:text-cyan-300"};function x(e){let{children:t,href:r,onClick:i,disabled:s,loading:a,variant:c="primary",type:o="button",className:x}=e,m=(0,l.Z)("inline-flex items-center justify-center gap-2 transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed","ghost"!==c&&"px-6 py-3 rounded-xl",d[c],x);return r?(0,n.jsx)(u(),{href:r,className:m,children:t}):(0,n.jsx)("button",{type:o,onClick:i,disabled:s||a,className:m,children:t})}function m(e){let{children:t,className:r,centered:i=!0}=e;return(0,n.jsx)("div",{className:(0,l.Z)("w-full p-8 rounded-2xl bg-gradient-to-b from-white/[0.05] to-transparent border border-white/10 card-shine",i&&"text-center",r),children:t})}function f(e){let{children:t,className:r}=e;return(0,n.jsx)("p",{className:(0,l.Z)("text-gray-400",r),children:t})}let h={default:"bg-gradient-to-br from-cyan-500/20 to-emerald-500/20 border-cyan-500/30",success:"bg-gradient-to-br from-emerald-500/20 to-cyan-500/20 border-emerald-500/30",error:"bg-red-500/10 border-red-500/30",loading:"bg-gradient-to-br from-cyan-500/20 to-emerald-500/20 border-cyan-500/30"};function g(e){let{children:t,variant:r="default",pulse:i=!1}=e;return(0,n.jsxs)("div",{className:(0,l.Z)("mx-auto mb-6 w-16 h-16 rounded-full border flex items-center justify-center relative",h[r]),children:[t,i&&(0,n.jsx)("div",{className:"absolute inset-0 rounded-full border-2 border-cyan-500/50 animate-ping"})]})}function y(e){let{children:t}=e;return(0,n.jsx)("h1",{className:"text-2xl font-bold text-white mb-2",children:t})}function b(){return(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,n.jsx)("div",{className:"w-2 h-2 rounded-full bg-cyan-500 animate-bounce",style:{animationDelay:"0ms"}}),(0,n.jsx)("div",{className:"w-2 h-2 rounded-full bg-cyan-500 animate-bounce",style:{animationDelay:"150ms"}}),(0,n.jsx)("div",{className:"w-2 h-2 rounded-full bg-cyan-500 animate-bounce",style:{animationDelay:"300ms"}})]})}
1var p=r(91259),j=r.n(p);let v={sm:{image:32,text:"text-lg"},md:{image:40,text:"text-xl"},lg:{image:48,text:"text-2xl"}};function w(e){let{size:t="md",showText:r=!0,href:i="/",className:s}=e,{image:a,text:c}=v[t];return(0,n.jsxs)(u(),{href:i,className:(0,l.Z)("group flex items-center gap-3",s),children:[(0,n.jsx)(j(),{src:"/logo.png",width:a,height:a,alt:"ShipSecure",className:"rounded-xl transition-transform duration-300 group-hover:scale-105"}),r&&(0,n.jsx)("span",{className:"".concat(c," font-bold text-white"),children:"ShipSecure"})]})}var N=r(44322);function k(){return(0,n.jsxs)("p",{className:"mt-6 text-xs text-gray-500 text-center flex items-center justify-center gap-2",children:[(0,n.jsx)(N.default,{className:"w-4 h-4"}),"Your connection is secured with enterprise-grade encryption"]})}},31377:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(31549);function i(e){let{className:t}=e;return(0,n.jsx)("svg",{className:t,fill:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})})}},58472:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r(31549),i=r(46506),s=r.n(i),a=r(45801),c=r(41682),l=r(44194),o=r(20197),u=r(83858),d=r(10203),x=r(34117),m=r(31377),f=r(71053);function h(){let e=(0,c.useRouter)(),[t,r]=(0,l.useState)("loading"),i=a.S.auth.githubLogin.useMutation({onSuccess:async t=>{t.success&&(r("success"),await (0,x.Wz)(!0),setTimeout(()=>{e.replace(t.redirect)},500))},onError:()=>{r("error")}});return(0,l.useEffect)(()=>{e.query.code?i.mutate({code:e.query.code}):e.query.error&&r("error")},[e.query.code,e.query.error]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:(0,n.jsxs)("title",{children:[{loading:"Signing in...",success:"Welcome!",error:"Sign in failed"}[t]," | ShipSecure"]})}),(0,n.jsxs)(f.Om,{children:[(0,n.jsx)(f.TR,{size:"lg",className:"mb-8"}),(0,n.jsxs)(f.Km,{children:["loading"===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.cJ,{pulse:!0,children:(0,n.jsx)(m.E,{className:"w-8 h-8 text-white"})}),(0,n.jsx)(f.l3,{children:"Connecting to GitHub"}),(0,n.jsx)(f.Ho,{className:"mb-6",children:"Please wait while we securely sign you in..."}),(0,n.jsx)(f.xg,{})]}),"success"===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.cJ,{variant:"success",children:(0,n.jsx)(o.default,{className:"w-8 h-8 text-emerald-400"})}),(0,n.jsx)(f.l3,{children:"Welcome back!"}),(0,n.jsx)(f.Ho,{children:"Redirecting you to your dashboard..."})]}),"error"===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.cJ,{variant:"error",children:(0,n.jsx)(u.default,{className:"w-8 h-8 text-red-400"})}),(0,n.jsx)(f.l3,{children:"Sign in failed"}),(0,n.jsx)(f.Ho,{className:"mb-6",children:"We couldn't complete your GitHub sign in. Please try again."}),(0,n.jsxs)(f.$m,{href:"/auth",children:[(0,n.jsx)(d.default,{className:"w-4 h-4"}),"Back to sign in"]})]})]}),(0,n.jsx)(f.KD,{})]})]})}},25878:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(7829),i=r(40197);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.m6)((0,n.W)(t))}},66201:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(44194);/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.453.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let c=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:c=2,absoluteStrokeWidth:l,className:o="",children:u,iconNode:d,...x}=e;return(0,n.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:r,strokeWidth:l?24*Number(c)/Number(i):c,className:s("lucide",o),...x},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),l=(e,t)=>
16{let r=(0,n.forwardRef)((r,a)=>{let{className:l,...o}=r;return(0,n.createElement)(c,{ref:a,iconNode:t,className:s("lucide-".concat(i(e)),l),...o})});return r.displayName="".concat(e),r}},10203:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});/**
17 * @license lucide-react v0.453.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let n=(0,r(66201).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},83858:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});/**
22 * @license lucide-react v0.453.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */let n=(0,r(66201).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},20197:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});/**
27 * @license lucide-react v0.453.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */let n=(0,r(66201).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},44322:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});/**
32 * @license lucide-react v0.453.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */let n=(0,r(66201).Z)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]])},41682:function(e,t,r){e.exports=r(48865)}},function(e){e.O(0,[71284,92888,49774,40179],function(){return e(e.s=36179)}),_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.