PageSourceSearch

https://hbs.studio/static/js/254.ae5a847c.chunk.js

js hbs.studio collected 2026-10-01 03:40:11 UTC 2,458 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[254],{5254(e,a,n){n.r(a),n.d(a,{default:()=>d});var t=n(5043),s=n(5685),i=n(537),r=n(1818),l=n(6053),c=n(579);function d(){const e=(0,s.zy)(),a=(0,s.Zp)(),{refresh:n,signInUrl:d}=(0,l.As)(),[o,p]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let t=!1;return(async()=>{const s=e.hash||"",i=new URLSearchParams(s.startsWith("#")?s.slice(1):s).get("session_id"),l=new URLSearchParams(e.search).get("next")||"/admin";if(i)try{await r.ZQ.exchangeSession(i),await n(),t||a(l,{replace:!0})}catch(u){if(!t){var c,d,o;const e=null===u||void 0===u||null===(c=u.response)||void 0===c?void 0:c.status,a=(null===u||void 0===u||null===(d=u.response)||void 0===d||null===(o=d.data)||void 0===o?void 0:o.detail)||"";p(401===e||/expired|invalid/i.test(a)?"Your sign-in link expired. Please try again.":a||"We couldn't complete sign-in. Please try again.")}}else t||p("Missing session_id \u2014 please try signing in again.")})(),()=>{t=!0}},[e.hash,e.search,a,n]),(0,c.jsx)("div",{"data-testid":"auth-callback-page",className:"min-h-screen flex items-center justify-center px-5 py-24 bg-background",children:(0,c.jsx)(i.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.55,ease:[.16,1,.3,1]},className:"w-full max-w-md rounded-[28px] border border-border/70 bg-secondary/25 backdrop-blur px-7 sm:px-10 py-10 sm:py-12 text-center",children:o?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"font-mono-display text-[10px] uppercase tracking-[0.32em] text-destructive mb-3",children:"(Sign-in error)"}),(0,c.jsx)("h1",{"data-testid":"auth-callback-error-heading",className:"font-display text-2xl leading-tight",children:o}),(0,c.jsx)("a",{href:d(),"data-testid":"auth-callback-retry-link",className:"mt-8 inline-flex items-center gap-3 rounded-full bg-foreground text-background px-5 py-3 min-h-[44px]",children:(0,c.jsx)("span",{className:"font-mono-display text-[11px] uppercase tracking-[0.28em]",children:"Try again"})})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"font-mono-display text-[10px] uppercase tracking-[0.32em] text-foreground/60 mb-3",children:"(Signing you in)"}),(0,c.jsx)("h1",{className:"font-display text-2xl leading-tight",children:"Just a moment\u2026"}),(0,c.jsx)("p",{className:"mt-3 text-sm text-foreground/60",children:"Completing your Google sign-in."})]})})})}}}]);
2//# sourceMappingURL=254.ae5a847c.chunk.js.map

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.