1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2776],{2545:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var l=a(95155),s=a(12115),n=a(29722),o=a(50910),i=a(77047),m=a(95985),c=a(24997),r=a(59620),d=a(64730),u=a(67305),p=a(82581),x=a(26021),h=a(98560),b=a(77747),N=a(80822),j=a(24439),g=a(81771),f=a(41167),v=a(63568),k=a(16191);function S(e){let{isOpen:t,onClose:a,offerTitle:S,voucherCode:w}=e,T=(0,o.c)("FreeTrialForm"),y=(0,f.b)(),L=y?.station??null,[I,C]=(0,s.useState)("location"),[A,P]=(0,s.useState)(null),[E,_]=(0,s.useState)(null),[q,F]=(0,s.useState)(null),[O,B]=(0,s.useState)(null),[D,$]=(0,s.useState)(!1),[H,G]=(0,s.useState)(!1);(0,s.useEffect)(()=>{t&&(0,p.rv)("voucher","form-voucher")},[t]);let Y=(e,t)=>{let a=Z.find(e=>e.name===I);a&&(0,p.IX)(t,a.number,{formStepName:a.label}),C(e)},{campaign:M}=(0,g.E)(null,w),U=M?.voucher??null,V=U?.headline||U?.title||S,{data:X}=(0,v.$)(A?.slug??null),{isLoading:z,submit:J}=(0,k.S)(e=>{B(e),$(!0),C("complete")}),{isLoading:K,submit:Q}=(0,k.S)(()=>G(!0)),R=!H&&!!X?.bookingTimes,W=U?.notAskNeeds??!1,Z=W?[{name:"location",label:T("stepLocation"),number:1},{name:"contact",label:T("stepContact"),number:2},{name:"complete",label:T("stepComplete"),number:3}]:[{name:"location",label:T("stepLocation"),number:1},{name:"needs",label:T("stepNeeds"),number:2},{name:"contact",label:T("stepContact"),number:3},{name:"complete",label:T("stepComplete"),number:4}],ee=L?W?"contact":"needs":"location";return(0,s.useEffect)(()=>{t&&L&&(P(L),C(ee))},[t,L,ee]),(0,l.jsx)(d.a,{isOpen:t,onClose:()=>{C(ee),P(L),_(null),F(null),B(null),$(!1),G(!1),a()},className:"max-w-230",closeButtonPosition:"inside",disableOutsideClickClosing:!0,allowOverflow:"location"===I,children:(0,l.jsxs)("div",{className:"flex flex-col w-full",children:[(0,l.jsxs)("div",{className:"flex items-start gap-1 h-19.25 md:h-auto md:gap-4 pb-2.5",children:[(0,l.jsx)(m.a,{classNameName:"w-35 md:w-50 h-28 -mt-6 md:-mt-2.5 ml-1 md:ml-10"}),(0,l.jsx)("div",{className:"px-1 py-0.75 md:pt-2 md:pl-4",children:(0,l.jsx)(i.e,{phoneNumber:j.Tw,align:"left",phoneClassName:"lato-md-normal md:lato-lg-bold",sublineClassName:"lato-xs-normal md:lato-sm-normal text-sk-light -mt-1"})})]}),(0,l.jsxs)("div",{className:"pb-px flex flex-col",children:[(0,l.jsx)("div",{className:"px-2.5 md:px-14",children:(0,l.jsx)(r.h,{tag:"h2",title:V,titleClassName:"text-center mb-4 lato-xl-bold!",variant:"lato-small"})}),!D&&(0,l.jsx)("div",{className:"px-2.5 md:px-14",children:(0,l.jsx)(c.A,{steps:Z,currentStep:I})}),"location"===I&&(0,l.jsx)(x.A,{introHtml:U?.textStationsearch,onStationSelect:e=>{P(e),Y(W?"contact":"needs","forward")}}),"needs"===I&&(0,l.jsx)("div",{className:"animate-step-enter",children:(0,l.jsx)(h.A,{onNext:e=>{_(e),Y("contact","forward")},onBack:()=>Y("location","back")})}),"contact"===I&&(0,l.jsx)("div",{className:"animate-step-enter",children:(0,l.jsx)(b.A,{stationName:A?.name,offerLabel:V,ctaText:U?.buttonLabel||T("ctaVoucher"),isLoading:z,onBack:()=>Y(W?"location":"needs","back"),onNext:e=>{F(e),J({leadType:"voucherorder",locationId:X?.locationId?String(X.locationId):void 0,referenceId:X?.samsId??void 0,...U?.code&&{voucherCode:U.code},userType:k.G[e.userType],contactFirstName:e.firstName.trim(),contactLastName:e.lastName.trim(),contactEmail:e.email.trim(),contactPhone:e.phone.trim(),studentLastName:e.lastName.trim(),...e.note.trim()&&{note:e.note.trim()},...E&&{studentSchoolType:E.schoolLevelId,studentSubjects:E.subjects.join(", "),trackingSchoolType:E.schoolLevelName,trackingSubjects:E.subjectNames,trackingTutoringType:E.onlineInterest?"online":"vor Ort"}})}})}),"complete"===I&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,n.A)("flex flex-col items-center gap-4 px-2.5 md:px-14 pt-7 text-center",!R&&"pb-7"),children:[(0,l.jsx)("h3",{className:"lato-base-bold text-sk-light",children:T("thankYouHeading")}),(0,l.jsx)("p",{className:"lato-base-regular text-sk-light",children:T("thankYouSubHeading")}),(R||H)&&(0,l.jsx)("hr",{className:"w-1/2 h-px my-4 bg-[#999] border-0"})]}),R&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"px-2.5 md:px-14 lato-base-bold text-sk-light text-center",children:T("appointmentAfterLead")}),(0,l.jsx)(N.A,{stationName:X.stationName,bookingTimes:X.bookingTimes,isPartner:X.isPartner,weekdayOpeningTimes:X.weekdayOpeningTimes,isLoading:K,onSubmit:e=>{q&&Q({leadType:"appointment",postLead:"voucher",...null!=O&&{voucherorderId:O},locationId:X.locationId?String(X.locationId):void 0,referenceId:X.samsId??void 0,...U?.code&&{voucherCode:U.code},userType:k.G[q.userType],contactFirstName:q.firstName.trim(),contactLastName:q.lastName.trim(),contactEmail:q.email.trim(),contactPhone:q.phone.trim(),studentLastName:q.lastName.trim(),...E&&{studentSchoolType:E.schoolLevelId,studentSubjects:E.subjects.join(", ")},byPhone:e.byPhone,desiredDate:e.desiredDate,appointmentDatetime:e.appointmentDate&&e.appointmentTime?`${e.appointmentDate}T${e.appointmentTime}`:void 0})}})]}),H&&(0,l.jsx)("p",{className:"px-2.5 md:px-14 pb-7 lato-base-regular text-sk-light text-center",children:T("appointmentConfirmed")})]}),!D&&U?.smallprint&&(0,l.jsx)(u.d,{html:U.smallprint,className:"px-2.5 md:px-14"})]})]})})}},7990:(e,t,a)=>{a.d(t,{r:()=>m});var l=a(95155),s=a(29722),n=a(85995);function o(e){let{imageSrc:t,imageAlt:a,name:o,subjects:i,quote:m,className:c,variant:r="round"}=e,d="square"===r;return(0,l.jsxs)("div",{className:(0,s.A)("text-center",d&&"w-full",c),children:[(0,l.jsx)(n._,{src:t,alt:a,title:a,width:d?296:280,height:d?169:280,className:(0,s.A)("h-auto mx-auto block",d?"w-full max-w-[296px]":"rounded-full border-[8px] border-white max-w-[70%] md:max-w-full")}),(0,l.jsxs)("div",{className:"w-[96%] max-w-[250px] mt-2 mx-auto",children:[(o||i)&&(0,l.jsxs)("p",{className:"italic lato-lg-light mb-2",children:[(0,l.jsxs)("span",{className:"lato-lg-bold",children:[o,o&&i?",":""]})," ",i]}),(0,l.jsx)("p",{className:"italic lato-sm-light",dangerouslySetInnerHTML:{__html:`„${m.trim().replace(/^(?:â|„|")\s*/,"").replace(/\s*(?:â|â|“|”|")$/,"")}“`}})]})]})}var i=a(51818);function m(e){let{testimonials:t,itemsPerPage:a,className:s,arrowTheme:n="dark",variant:m}=e;return(0,l.jsx)(i.U,{className:s,arrowTheme:n,itemsPerPage:a,children:t.map((e,t)=>(0,l.jsx)(o,{...e,variant:m},t))})}},88009:(e,t,a)=>{a.d(t,{B:()=>l.B});var l=a(30221)}}]);
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.