PageSourceSearch

https://www.theactorslounge.co.uk/_next/static/chunks/8227.20958273c34a84dd.js

js theactorslounge.co.uk collected 2026-10-02 23:05:25 UTC 15,323 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="dffec23e-4a90-4dd2-8876-9726d659b92e",e._sentryDebugIdIdentifier="sentry-dbid-dffec23e-4a90-4dd2-8876-9726d659b92e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8227],{58227:function(e,l,s){s.r(l),s.d(l,{default:function(){return T}});var a=s(57437),t=s(98099),r=s(2265),i=s(55706),o=s(68887),n=s(14215),d=s(38671),c=s(49489),u=s(90657),h=s(63575),m=s(88177),f=s(87492),v=s(25820),x=s(72577),g=s(47652),p=s(6612),b=s(34787);s(6431);var j=(0,s(61474).$)("0ec228311f8419b7f48475fd052ff70e6e865e41"),y=s(4869),C=s(52447),N=s(45746),w=s(16043),R=s(26950),L=s(23376),k=s(13203),q=s(71273),A=s(17380),S=s(88025),I=s(27244),P=s(72301),O=s(734);let E=["Birmingham","Brighton","Bristol","Cambridge","Canterbury","Cardiff","Colchester","Eastbourne","Exeter","Hornchurch","Leeds","Liverpool","Manchester","Northampton","Norwich","Oxford","Plymouth","Reading","Southampton","Stratford-upon-Avon"],M=["Exeter","Hornchurch","Leeds","Plymouth"],V=r.forwardRef((e,l)=>{var s,V,T,B,D,H,F,Y,z,_;let{className:U,onBack:K,onNext:Q,...W}=e,{register:G,handleSubmit:Z,control:$,watch:J,setValue:X,getValues:ee,setError:el,clearErrors:es,formState:{errors:ea}}=(0,v.cI)(),et=(0,P.useSearchParams)(),[er,ei]=(0,r.useState)(!1),eo=et.get("classLevel"),en=et.get("classLocation"),{actions:ed,state:ec}=(0,f.j_)({updateAction:x.Gx}),[eu,eh]=(0,r.useState)(null),{executeReCAPTCHA:em,recaptchaError:ef,ReCAPTCHAComponent:ev}=(0,y.V)();(0,r.useEffect)(()=>()=>{localStorage.removeItem("from")},[]),(0,r.useEffect)(()=>{var e;let l=eo?Number(eo):null,s=en&&E.includes(en),a=s&&null!==l&&(null===(e=eB[en])||void 0===e?void 0:e.includes(l));s&&X("classLocation",en,{shouldValidate:!0}),eo&&(a?X("classLevel",String(l),{shouldValidate:!0}):X("classLevel","",{shouldValidate:!0}))},[en,eo,X]),(0,r.useEffect)(()=>{ec.Checkout.classLevel&&X("classLevel",ec.Checkout.classLevel,{shouldValidate:!0}),ec.Checkout.classLocation&&X("classLocation",ec.Checkout.classLocation,{shouldValidate:!0})},[]);let ex=async e=>{if(e.dateOfBirth){let l=new Date(e.dateOfBirth),s=new Date,a=s.getFullYear()-l.getFullYear(),t=s.getMonth()-l.getMonth();if((t<0||0===t&&s.getDate()<l.getDate())&&a--,a<18){eA();return}}try{if(eh(null),ei(!0),!await em())throw Error(ef||"ReCAPTCHA failed");e.email||(e.email=ec.Checkout.email,e.emailConfirm=ec.Checkout.email);let[l,s,a]=await j(e,ec.Checkout.dealId),t={...e,experienceLevel:"2"==e.classLevel||"3"==e.classLevel?"pro":"beginner"};l&&(t.dbId=l),s&&(t.personId=s),a&&(t.dealId=a),t.renewProductId=0,ed.updateAction(t),Q()}catch(l){console.error("Step 1 submission failed:",{error:l,formInput:e,step:1,errorType:"sign-stuck"}),eh("Unable to process your request right now. Please try again soon.")}finally{ei(!1)}},eg={labelPlacement:"outside",classNames:{label:"group-data-[filled-within=true]:text-default-700 text-left"}},[ep,eb]=(0,r.useState)(!1),[ej,ey]=(0,r.useState)([]),[eC,eN]=(0,r.useState)(!1),ew=e=>{e.length&&new C.ZP("Dp7TL0Gqbk-9qWs0sNlNaA44561").autocomplete(e).then(e=>{e.isSuccess&&ey(e.toSuccess().suggestions)}).catch(()=>{}).finally(()=>eN(!1))},{isOpen:eR,onOpen:eL,onOpenChange:ek}=(0,N.q)(),{isOpen:eq,onOpen:eA,onOpenChange:eS}=(0,N.q)(),[eI,eP]=(0,r.useState)(""),[eO,eE]=(0,r.useState)(""),[eM,eV]=(0,r.useState)({terms:"",privacy:""}),eT=async(e,l)=>{if(eP(e),eL(),eM[l]){eE(eM[l]);return}eE("");try{let e=await fetch("/".concat(l)),s=await e.text(),a=new DOMParser().parseFromString(s,"text/html").querySelector(".md\\:text-md");a?(eV(e=>({...e,[l]:a.outerHTML})),eE(a.outerHTML)):eE("An error occurred while fetching the content.")}catch(e){eE("An error occurred while fetching the content.")}},eB={Birmingham:[1,2],Brighton:[1],Bristol:[1,2,3],Cambridge:[1,2,3,4],Canterbury:[1,2,3,4],Cardiff:[1],Colchester:[1,2],Eastbourne:[1,2,3,4],Liverpool:[1],Manchester:[1],Northampton:[1,2,3],Norwich:[1,2,3],Oxford:[1,2,3],Reading:[1,2,3],Southampton:[1],"Stratford-upon-Avon":[1,2,3]};return eB[(0,v.qo)({control:$,name:"classLocation"})],(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"py-2 text-medium text-default-500",children:(0,a.jsx)("h1",{className:"text-3xl",children:"Your Details"})}),(0,a.jsxs)("form",{ref:l,className:(0,t.Z)("flex flex-col items-start gap-4 sm:grid sm:grid-cols-2",U),onSubmit:Z(e=>ex(e)),noValidate:!0,children:[(0,a.jsx)(i.Y,{label:"First Name",placeholder:"Type your first name here",...eg,isRequired:!0,errorMessage:(null==ea?void 0:null===(s=ea.firstName)||void 0===s?void 0:s.message)?null==ea?void 0:null===(V=ea.firstName)||void 0===V?void 0:V.message:"Required",isInvalid:!!(null==ea?void 0:ea.firstName),...G("firstName",{required:!0}),defaultValue:ec.Checkout.firstName}),(0,a.jsx)(i.Y,{label:"Last Name",placeholder:"Type your last name here",isRequired:!0,errorMessage:(null==ea?void 0:null===(T=ea.lastName)||void 0===T?void 0:T.message)?null==ea?void 0:null===(B=ea.lastName)||void 0===B?void 0:B.message:"Required",isInvalid:!!(null==ea?void 0:ea.lastName),...eg,...G("lastName",{required:!0}),defaultValue:ec.Checkout.lastName}),(0,a.jsx)(i.Y,{label:"Email",type:"email",placeholder:"[email protected]",...eg,isRequired:!0,errorMessage:(null==ea?void 0:null===(D=ea.email)||void 0===D?void 0:D.message)?null==ea?void 0:null===(H=ea.email)||void 0===H?void 0:H.message:"Required",isInvalid:!!(null==ea?void 0:ea.email),...G("email",{required:"Email is required",validate:{noSpaces:e=>!/\s/.test(e)||"Email must not contain spaces"}}),defaultValue:ec.Checkout.email}),(0,a.jsx)(i.Y,{label:"Confirm Email",type:"email",placeholder:"[email protected]",...eg,isRequired:!0,errorMessage:(null==ea?void 0:null===(F=ea.emailConfirm)||void 0===F?void 0:F.type)==="required"?"Required":null==ea?void 0:null===(Y=ea.emailConfirm)||void 0===Y?void 0:Y.message,isInvalid:!!(null==ea?void 0:ea.emailConfirm),...G("emailConfirm",{required:"Please confirm your email",validate:{noSpaces:e=>!/\s/.test(e)||"Email must not contain spaces",matchesEmail:e=>e===ee("email")||"Emails do not match"}}),defaultValue:ec.Checkout.emailConfirm}),(0,a.jsx)(i.Y,{label:"Telephone",placeholder:"Enter your telephone number",type:"number",isRequired:!0,errorMessage:(null==ea?void 0:null===(z=ea.telephone)||void 0===z?void 0:z.message)?null==ea?void 0:null===(_=ea.telephone)||void 0===_?void 0:_.message:"Required",isInvalid:!!(null==ea?void 0:ea.telephone),...eg,...G("telephone",{required:!0,validate:{noSpaces:e=>!/\s/.test(e)||"Telephone number must not contain spaces"}}),defaultValue:ec.Checkout.telephone}),(0,a.jsx)(v.Qr,{name:"dateOfBirth",control:$,rules:{required:!0,validate:O.H},defaultValue:ec.Checkout.dateOfBirth||"",render:e=>{var l;let{field:s}=e;return(0,a.jsx)(u.N,{label:"Date of Birth",labelPlacement:"outside",className:"text-left",...eg,isRequired:!0,onChange:e=>s.onChange(null==e?void 0:e.toString()),errorMessage:(null==ea?void 0:null===(l=ea.dateOfBirth)||void 0===l?void 0:l.message)||(null==ea?void 0:ea.dateOfBirth)&&"Required",isInvalid:!!(null==ea?void 0:ea.dateOfBirth),defaultValue:ec.Checkout.dateOfBirth?(0,b.sG)(ec.Checkout.dateOfBirth):null})}}),(0,a.jsxs)("div",{className:"col-span-2 flex w-full flex-col gap-4 lg:flex-row",children:[(0,a.jsx)(i.Y,{label:"Post Code",placeholder:"Enter your post code",...eg,className:"w-full lg:w-1/3",isRequired:!0,errorMessage:(null==ea?void 0:ea.postcode)&&(ea.postcode.message?ea.postcode.message:"Required"),isInvalid:!!(null==ea?void 0:ea.postcode),...G("postcode",{required:!0}),onBlur:e=>{ew(e.target.value)},defaultValue:ec.Checkout.postcode}),(0,a.jsx)(v.Qr,{name:"address",control:$,defaultValue:ec.Checkout.address||"",render:e=>{var l;let{field:s}=e;return(0,a.jsx)(h.d,{className:"w-full lg:w-2/3",allowsCustomValue:!0,isLoading:eC,items:ej.filter(e=>{var l;return e.address.toLowerCase().includes((null===(l=s.value)||void 0===l?void 0:l.toLowerCase())||"")}),label:"Address",labelPlacement:"outside",placeholder:"Enter your address",errorMessage:null==ea?void 0:null===(l=ea.address)||void 0===l?void 0:l.message,isInvalid:!!(null==ea?void 0:ea.address),onInputChange:e=>{X("address",e)},defaultInputValue:ec.Checkout.address,children:e=>(0,a.jsx)(m.R,{className:"capitalize",children:e.address},e.id)})}})]}),(0,a.jsxs)("div",{className:"col-span-2 flex w-full flex-col items-start gap-4 lg:flex-row",children:[(0,a.jsx)(v.Qr,{name:"classLocation",control:$,rules:{required:!0},defaultValue:en&&E.find(e=>e===en)||ec.Checkout.classLocation||"",render:e=>
1{let{field:{onChange:l,value:s}}=e;return(0,a.jsx)(o.g,{label:"Class Location",labelPlacement:"outside",placeholder:"Select a location",isRequired:!0,disabledKeys:M,onChange:l,isInvalid:!!(null==ea?void 0:ea.classLocation),errorMessage:(null==ea?void 0:ea.classLocation)&&"Required",selectedKeys:s?[s]:[],children:Object.keys(eB).map(e=>(0,a.jsx)(n.R,{value:e,children:e},e))})}}),(0,a.jsx)(v.Qr,{name:"classLevel",control:$,rules:{required:"Required"},defaultValue:ec.Checkout.classLevel,render:e=>{let{field:{onChange:l,value:s}}=e,t=(0,v.qo)({control:$,name:"classLocation"})||ee("classLocation"),r=eB[t]||[],i=!!t,d=r.includes(Number(s));return s&&!d&&l(""),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,a.jsx)(o.g,{label:"Class Level",labelPlacement:"outside",placeholder:i?"Select a level":"Select a location first",isDisabled:!i,isRequired:!0,onChange:l,isInvalid:!!(null==ea?void 0:ea.classLevel),errorMessage:(null==ea?void 0:ea.classLevel)&&"Required",selectedKeys:s?[s]:[],children:r.map(e=>(0,a.jsx)(n.R,{children:"Level ".concat(e)},e))}),(0,a.jsx)("div",{className:"mb-1 hidden md:block",children:(0,a.jsx)(w.e,{content:(0,a.jsx)("div",{className:"p-2",children:(0,a.jsxs)("ul",{className:"mb-0",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Level 1:"})," For beginners or those without any formal actor training"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Level 2:"})," For those who have had previous acting experience or training"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Level 3:"})," For those who have worked professionally, had previous substantial training or have progressed through previous courses at The Actor’s Lounge"]})]})}),delay:500,size:"sm",shadow:"md",placement:"bottom-start",classNames:{content:"max-w-96 py-2 px-4"},children:(0,a.jsxs)("span",{className:"align-center inline-flex cursor-pointer items-center gap-1 px-1 text-tiny text-default-500",children:[(0,a.jsx)(I.H33,{size:16,className:"text-grey-400"}),"What level am I?"]})})})]})}})]}),(0,a.jsxs)("div",{className:"col-span-2 grid w-full gap-4 lg:grid-cols-2",children:[(0,a.jsx)(v.Qr,{name:"hearAboutUs",control:$,rules:{required:!0},defaultValue:ec.Checkout.hearAboutUs?ec.Checkout.hearAboutUs:"",render:e=>{let{field:{onChange:l,value:s}}=e;return(0,a.jsxs)(o.g,{onChange:e=>{l(e.target.value),eb("Other"===e.target.value)},selectedKeys:s?[s]:[],label:"How did you hear about us?",placeholder:"Select one",labelPlacement:"outside",isRequired:!0,errorMessage:(null==ea?void 0:ea.hearAboutUs)&&"Required",isInvalid:!!(null==ea?void 0:ea.hearAboutUs),classNames:{label:"text-small text-default-600 text-left group-data-[filled=true]:text-default-600"},children:[(0,a.jsx)(n.R,{children:"Facebook"},"Facebook"),(0,a.jsx)(n.R,{children:"Instagram"},"Instagram"),(0,a.jsx)(n.R,{children:"Promotional Email/Newsletter"},"Promotional Email/Newsletter"),(0,a.jsx)(n.R,{children:"Search Engine"},"Search Engine"),(0,a.jsx)(n.R,{children:"Radio Interview"},"Radio Interview"),(0,a.jsx)(n.R,{children:"Word of Mouth"},"Word of Mouth"),(0,a.jsx)(n.R,{children:"Backstage"},"Backstage"),(0,a.jsx)(n.R,{children:"Mandy"},"Mandy"),(0,a.jsx)(n.R,{children:"Star Now"},"Star Now"),(0,a.jsx)(n.R,{children:"Other"},"Other")]})}}),ep&&(0,a.jsx)(i.Y,{label:"Please specify",placeholder:"How did you hear about us?",...eg,...G("hearAboutUsOther"),defaultValue:ec.Checkout.hearAboutUsOther})]}),(0,a.jsx)(d.K,{defaultSelected:!0,className:"col-span-2 mt-4 lg:mt-0",classNames:{label:"text-sm"},color:"secondary",size:"md",...G("newsletter"),value:"Yes",children:"I agree to receive newsletters from The Actor's Lounge"}),(0,a.jsx)(v.Qr,{name:"terms",control:$,rules:{required:!0},defaultValue:ec.Checkout.terms,render:e=>{let{field:{onChange:l,value:s}}=e;return(0,a.jsxs)("div",{className:"col-span-2 inline-flex flex-wrap items-center gap-1",children:[(0,a.jsx)(d.K,{className:"mx-0 my-2 flex p-0 text-left",classNames:{label:"text-sm"},color:"secondary",size:"md",isRequired:!0,onChange:l,isSelected:s,isInvalid:!!(null==ea?void 0:ea.terms),defaultSelected:ec.Checkout.terms,children:"I have read and agree with the"}),(0,a.jsx)(c.O,{className:"cursor-pointer text-sm",size:"md",onPress:()=>eT("Terms and Conditions","terms"),children:"Terms and Conditions"}),(0,a.jsx)("span",{className:"text-sm",children:"and"}),(0,a.jsx)(c.O,{className:"cursor-pointer text-sm",size:"md",onPress:()=>eT("Privacy Policy","privacy"),children:"Privacy Policy"})]})}}),eu&&(0,a.jsx)("div",{className:"col-span-2 flex flex-col border border-butterscotch-600 px-4 py-6",children:(0,a.jsx)("span",{className:"text-small text-danger",children:eu})}),(0,a.jsx)("div",{className:"col-span-2 mx-auto mt-8 flex w-full items-center justify-center gap-x-4 lg:mx-0",children:(0,a.jsxs)(g.A,{color:"primary",radius:"sm",variant:"solid",type:"submit",disabled:er,isLoading:er,children:["Continue",(0,a.jsx)(p.Dli,{size:12})]})}),ev]}),(0,a.jsx)(R.P,{isOpen:eR,size:"2xl",onOpenChange:ek,children:(0,a.jsx)(L.A,{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k.k,{className:"flex flex-col gap-1",children:eI}
1),(0,a.jsxs)(q.I,{children:[!eO&&(0,a.jsx)(p.fCD,{size:20,className:"animate-spin"}),eO&&(0,a.jsx)("div",{className:"portable",dangerouslySetInnerHTML:{__html:eO}})]})]})})}),(0,a.jsx)(A.R,{isOpen:eq,onOpenChange:eS,placement:"center",children:(0,a.jsx)(L.A,{children:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k.k,{children:"Age Requirement"}),(0,a.jsx)(q.I,{children:(0,a.jsx)("p",{children:"Thank you for your interest in joining The Actor's Lounge. Please note that you must be 18 years or older to apply."})}),(0,a.jsx)(S.R,{children:(0,a.jsx)(g.A,{color:"primary",onPress:e,children:"OK"})})]})})})]})});V.displayName="CheckoutFormDetails";var T=V},4869:function(e,l,s){s.d(l,{V:function(){return i}});var a=s(57437),t=s(2265),r=s(83278);let i=()=>{let e=(0,t.useRef)(null),[l,s]=(0,t.useState)(null),i="6LdB-yMqAAAAANFQA6h87stvqL76jKsF7V7admUw";return i||console.error("Missing ReCAPTCHA key"),{executeReCAPTCHA:async()=>{var l,a;try{s(null);let a=await (null===(l=e.current)||void 0===l?void 0:l.executeAsync());if(!a)throw Error("ReCAPTCHA token is null");return a}catch(e){return s("reCAPTCHA verification failed. Please try again."),console.error("ReCAPTCHA Error:",e),null}finally{null===(a=e.current)||void 0===a||a.reset()}},recaptchaError:l,ReCAPTCHAComponent:i?(0,a.jsx)(r.Z,{ref:e,size:"invisible",sitekey:i}):null}}},734:function(e,l,s){s.d(l,{H:function(){return a}});let a=e=>{if(!e)return;let l=new Date(e);return 1900>l.getFullYear()?"Please enter a valid year":!(l>=new Date)||"Date of Birth must be in the past"}}}]);

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.