PageSourceSearch

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

js batterseahouse.co.uk collected 2026-10-04 01:34:48 UTC 5,213 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-mui-n0zgR2W0.js";import{o as s,r as l}from"./vendor-redux-Bh6RIGug.js";import{T as t,I as i,h as r,c as a,B as o}from"./index.esm-BwyhmeYI.js";import{b as n,g as d,f as c}from"./index-BLiVic6c.js";import{A as u}from"./studentEnum-CJHVgIJa.js";import{b as m}from"./vendor-react-B2yXjvnQ.js";import"./vendor-networking-C9Tr2w_g.js";const x=()=>{var x,h,b,j;const g=m(),f=s(),[p,v]=l.useState(null);l.useEffect(()=>{(async()=>{var e;let s;try{s=JSON.parse(sessionStorage.getItem("bsh_tutorial_request_confirmation"))}catch{s=null}if(!(null==s?void 0:s.tutorId))return void g("/manage-sessions",{replace:!0});f(n(!0));const l=await d("get",u.STUDENT.GET_ALL_MY_SESSIONS(1,"","","tutorial"),{},{},!0,!1),t=((null==(e=null==l?void 0:l.data)?void 0:e.list)||[]).find(e=>String(null==e?void 0:e.tutorId)===String(s.tutorId)&&(null==e?void 0:e.bookingDate)===s.booking_date&&(null==e?void 0:e.bookingTime)===s.booking_time);if(null==t?void 0:t.slug){const e=await d("get",u.STUDENT.GET_SESSION_Tutorail_DETAILS(t.slug),{},{},!0,!1);v({...t||{},...(null==e?void 0:e.data)||{},intent:s})}f(n(!1))})()},[f,g]);const N=()=>g("/dashboard-student"),y=(null==p?void 0:p.tutorDetail)||{},_=[y.firstName,y.lastName].filter(Boolean).join(" ")||"your tutor",k=(null==(x=null==p?void 0:p.departmentDetails)?void 0:x.name)||(null==p?void 0:p.departmentName)||"Your selected subject",w=(null==p?void 0:p.bookingDate)||(null==(h=null==p?void 0:p.intent)?void 0:h.booking_date),S=(null==p?void 0:p.bookingTime)||(null==(b=null==p?void 0:p.intent)?void 0:b.booking_time);return p?e.jsx("div",{className:"min-h-screen bg-gray_50 p-4 md:p-8 font-proximanova",children:e.jsxs("div",{className:"relative mx-auto max-w-6xl rounded-2xl bg-white p-6 md:p-10 shadow-bs",children:[e.jsx("button",{"aria-label":"Close confirmation",onClick:N,className:"absolute right-5 top-5 text-3xl",children:"×"}),e.jsxs("div",{className:"grid gap-8 lg:grid-cols-[1.3fr_0.9fr]",children:[e.jsxs("section",{children:[e.jsx(t,{as:"h1",className:"font-trajanpro text-4xl font-bold text-black_900",children:"✓ Your free tutorial request has been sent!"}),e.jsx(t,{className:"mt-4 text-lg text-gray_600",children:"Thank you! Your request has been sent to your tutor."}),e.jsxs("div",{className:"mt-6 rounded-xl border border-green-200 bg-green-50 p-5 text-green-950",children:[e.jsx("b",{children:"We’ll be in touch soon!"}),e.jsx("br",{}),_," will review your request and confirm the tutorial. We’ll email you as soon as there’s an update."]}),e.jsx(t,{as:"h2",className:"mt-7 text-xl font-bold text-black_900",children:"Your requested tutorial"}),e.jsxs("dl",{className:"mt-3 divide-y border-y text-black_900",children:[e.jsxs("div",{className:"flex gap-4 py-4",children:[e.jsx("dt",{className:"w-1/3 font-semibold",children:"Tutor"}),e.jsxs("dd",{className:"flex items-center gap-3",children:[e.jsx(i,{className:"h-10 w-10 rounded-full",src:y.profile_image||"images/img_user.svg",alt:"Tutor"}),_," ",y.category&&e.jsx("span",{className:"rounded bg-blue-50 px-2 text-sm text-blue-900",children:y.category})]})]}),e.jsxs("div",{className:"flex gap-4 py-4",children:[e.jsx("dt",{className:"w-1/3 font-semibold",children:"Subject"}),e.jsx("dd",{children:k})]}),e.jsxs("div",{className:"flex gap-4 py-4",children:[e.jsx("dt",{className:"w-1/3 font-semibold",children:"Date"}),e.jsx("dd",{children:w?r(w):""})]}),e.jsxs("div",{className:"flex gap-4 py-4",children:[e.jsx("dt",{className:"w-1/3 font-semibold",children:"Time"}),e.jsx("dd",{children:S?`${a(S)} – ${a(`${String(Number(S.slice(0,2))+1).padStart(2,"0")}${S.slice(2)}`)} (UK time)`:""})]}),e.jsxs("div",{className:"flex gap-4 py-4",children:[e.jsx("dt",{className:"w-1/3 font-semibold",children:"What you’d like to cover"}),e.jsx("dd",{children:p.description||(null==(j=p.intent)?void 0:j.description)})]})]}),e.jsxs("div",{className:"mt-6 rounded-xl bg-blue-50 p-5 text-blue-900",children:[e.jsx("b",{children:"No payment required"}),e.jsx("br",{}),"Your first tutorial is completely free with no obligation."]})]}),e.jsxs("aside",{className:"rounded-xl border border-red-100 p-6",children:[e.jsx(t,{as:"h2",className:"text-2xl font-bold",children:"What happens next?"}),e.jsxs("ol",{className:"mt-6 space-y-6",children:[e.jsxs("li",{children:[e.jsx("b",{children:"1. Tutor reviews your request"}),e.jsx("br",{}),_," will check your availability and lesson details."]}),e.jsxs("li",{children:[e.jsx("b",{children:"2. Tutorial is confirmed"}),e.jsx("br",{}),"You’ll receive an email notification once ",_," confirms."]}),e.jsxs("li",{children:[e.jsx("b",{children:"3. Tutorial time!"}),e.jsx("br",{}),"Join your tutorial and enjoy your first free tutorial."]})]})]})]}),e.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-4 border-t pt-6",children:[e.jsx(o,{variant:"FillRed900",size:"md",onClick:()=>g(`/manage-session-tutorial-detail/${p.slug}`),children:"View My Tutorial Request"}),e.jsxs(o,{variant:"OutlineBlack900",size:"md",onClick:()=>{f(c({tutorId:y.id||(null==p?void 0:p.tutorId),isSingle:!0,tutor:y}))},children:["Message ",_]}),e.jsx("button",{className:"underline",onClick:N,children:"Go to Dashboard"})]})]})}):null};export{x 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.