PageSourceSearch

https://batterseahouse.co.uk/static/js/index-DBEAcJQ6.js

js batterseahouse.co.uk collected 2026-10-04 01:33:00 UTC 4,001 bytes, 1 lines download raw bytes

1import{j as t}from"./vendor-mui-n0zgR2W0.js";import{u as e,o as s,d as a}from"./vendor-redux-Bh6RIGug.js";import{b as r,c as i,L as o}from"./vendor-react-B2yXjvnQ.js";import{T as n,B as l}from"./index.esm-BwyhmeYI.js";import{v as u,g as c,J as d}from"./index-BLiVic6c.js";import{A as m}from"./studentEnum-CJHVgIJa.js";import{M as x}from"./index-BkL8mi7Z.js";import{t as p,a as f}from"./tutorialFollowupEvents-BBBk9YxJ.js";import{t as j}from"./bookingFlowEvents-Cb2ER-FT.js";import"./vendor-networking-C9Tr2w_g.js";import"./index-zx6w-Wd1.js";import"./socket-DOmb_TIS.js";const b=()=>{const b=r(),[h]=i(),N=e(u),g=s(),[v,y]=a.useState(null),[w,I]=a.useState(!0),[k,F]=a.useState(null),C=h.get("token");a.useEffect(()=>{C?N?(async()=>{const t=await c("get",m.TUTORIAL_FOLLOWUP.RESOLVE_TOKEN(C),{},{},!1,!0,!1);if("SUCCESS"===(null==t?void 0:t.status)){const e=t.data;if(y(e),p(e.bookingId,e.studentId,e.tutorId,"initial","/continue-tutorial"),e.departmentId){const t=await c("get",m.STUDENT.Remaning_Credit(e.departmentId),{},{},!0,!0,!1),s=null==t?void 0:t.data,a=!!s&&(s.totaltotalHoursleft>0||s.totalTutorialleft>0||s.totalLessonleft>0);F(a),f(e.bookingId,e.studentId,e.tutorId,e.subjectName,e.tutorFee)}}I(!1)})():b(`/login-student?redirect=${encodeURIComponent(`/continue-tutorial?token=${C}`)}`):b("/find-tutor")},[N,C]);const _=`/purchase-plan?redirect=${encodeURIComponent(`/continue-tutorial?token=${C}`)}`;return w?t.jsxs("div",{className:"bg-gray_50 flex flex-col items-center justify-center w-full min-h-screen pt-[70px]",children:[t.jsx(x,{}),t.jsx(n,{className:"mt-10",variant:"body1",children:"Loading..."})]}):v?v.paidBookingId?t.jsxs("div",{className:"bg-gray_50 flex flex-col items-center justify-center w-full min-h-screen pt-[70px]",children:[t.jsx(x,{}),t.jsxs(n,{className:"mt-10",variant:"body1",children:["You've already booked a tutorial with ",v.tutorFirstName,"."]}),t.jsx(l,{className:"mt-4 px-6",variant:"FillRed900",size:"md",onClick:()=>b("/manage-sessions"),children:"View your tutorials"})]}):v.tutorAvailable?t.jsxs("div",{className:"bg-gray_50 flex flex-col items-center justify-start w-full min-h-screen pt-[70px]",children:[t.jsx(x,{}),t.jsxs("div",{className:"flex flex-col items-center justify-start w-full max-w-[700px] p-[30px] sm:p-4",children:[t.jsxs(n,{className:"font-trajanpro font-bold text-black_900 text-center text-[24px] mb-2",as:"h1",variant:"h1",children:["Continue with ",v.tutorFirstName]}),t.jsxs(n,{className:"text-black_900 text-center mb-6",variant:"body1",children:[v.studentFirstName,"'s free tutorial with ",v.tutorFirstName," (",v.subjectName,") has already been used. This next tutorial will be a paid tutorial at ",v.tutorFirstName,"'s current rate of £",v.tutorFee,"/hour."]}),t.jsx(o,{to:_,className:"text-red_900 text-sm font-semibold underline mb-6",children:"View pricing & credit packages"}),t.jsx(l,{className:"px-8",variant:"FillRed900",size:"md",onClick:()=>{k?(j(v.tutorId,"tutorial","continue_tutorial"),g(d({requestType:"tutorial",tutorId:v.tutorId,tutorName:v.tutorFirstName,tutorAvatar:"",tutorSlug:"",subjectOptions:[{label:v.subjectName,value:v.departmentId}],subjectId:v.departmentId,isFreeEligible:!1,followupContext:{followupBookingId:v.bookingId,subjectName:v.subjectName,tutorFee:v.tutorFee}}))):b(_)},children:"Continue"})]})]}):t.jsxs("div",{className:"bg-gray_50 flex flex-col items-center justify-center w-full min-h-screen pt-[70px] px-4 text-center",children:[t.jsx(x,{}),t.jsxs(n,{className:"mt-10",variant:"body1",children:[v.tutorFirstName," is not currently available. Battersea House can help you find another suitable tutor."]}),t.jsx(l,{className:"mt-4 px-6",variant:"FillRed900",size:"md",onClick:()=>b("/contact-us"),children:"Get help finding a tutor"})]}):t.jsxs("div",{className:"bg-gray_50 flex flex-col items-center justify-center w-full min-h-screen pt-[70px]",children:[t.jsx(x,{}),t.jsx(n,{className:"mt-10",variant:"body1",children:"This link is no longer valid."})]})};export{b as default};

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.