PageSourceSearch

https://bookingflows.com/static/js/2809.95901394.chunk.js

js bookingflows.com collected 2026-09-24 13:58:52 UTC 2,919 bytes, 3 lines download raw bytes

1/*! For license information please see 2809.95901394.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkfrontend||=[]).push([[2809],{72809(e,t,s){s.r(t);var r=s(65043),i=s(44125),n=s(82054),a=s(76245),c=s(22024),l=s(49528),o=s(13390),d=s(70579);const m=()=>{const e=(0,i.Zp)(),[t]=(0,i.ok)(),{refreshAuth:s}=(0,l.eR)(),[m,h]=(0,r.useState)("verifying"),[x,g]=(0,r.useState)("");return(0,r.useEffect)(()=>{(async()=>{const e=t.get("token"),s=t.get("redirect")||"/";if(!e)return h("error"),void g("No token provided");try{const t=await fetch(`https://api.bookingflows.com/api/customer/auth/magic-link/verify?token=${e}&redirect=${encodeURIComponent(s)}`,{method:"GET",credentials:"include"});if(t.ok){const e=await t.json();h("success"),setTimeout(()=>{const t=e.redirect||"/";window.location.href=t},1500)}else{const e=await t.json();h("error"),g(e.detail||"Failed to verify link")}}catch(r){console.error("Magic link verification error:",r),h("error"),g("Something went wrong. Please try again.")}})()},[t]),(0,d.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:(0,d.jsxs)("div",{className:"max-w-md w-full bg-white rounded-2xl shadow-soft p-8 text-center",children:["verifying"===m&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.A,{className:"w-12 h-12 animate-spin text-blue-600 mx-auto mb-4"}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Signing you in..."}),(0,d.jsx)("p",{className:"text-gray-500",children:"Please wait while we verify your link."})]}),"success"===m&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,d.jsx)(n.A,{className:"w-8 h-8 text-green-600"})}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-gray-900 mb-2",children:"You're signed in!"}),(0,d.jsx)("p",{className:"text-gray-500",children:"Redirecting you now..."})]}),"error"===m&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,d.jsx)(a.A,{className:"w-8 h-8 text-red-600"})}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Link expired or invalid"}),(0,d.jsx)("p",{className:"text-gray-500 mb-6",children:x}),(0,d.jsx)(o.$n,{onClick:()=>e("/marketplace?signin=true"),className:"bg-blue-600 hover:bg-blue-700",children:"Try signing in again"})]})]})})};s.d(t,["default",0,m])},82054(e,t,s){const r=(0,s(31212).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);s.d(t,["A",0,r])},76245(e,t,s){const r=(0,s(31212).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);s.d(t,["A",0,r])}}]);
3//# sourceMappingURL=2809.95901394.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.