1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7363,8415],{4196:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,n:()=>i});let r=["GROUP_LESSON_SUBMISSION_MODAL","CHECKOUT_MODAL","GROUP_LESSON_CONTACT_MODAL","LESSON_SUBMISSION_MODAL","STAGE_BOOKING_MODAL"],i={GROUP_LESSON_SUBMISSION_MODAL:"traineeship_registration",CHECKOUT_MODAL:"traineeship_registration",GROUP_LESSON_CONTACT_MODAL:"traineeship_requested_assistance",LESSON_SUBMISSION_MODAL:"linking_teacher_contacted",LESSON_HELP_MODAL:"linking_requested_assistance",STAGE_BOOKING_MODAL:"traineeship_registration"}},5652:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876);n(14232);var i=n(95062),o=n.n(i),s=n(14868),a=n(54611),l=n(16581);function c(e){let{eyebrow:t,title:n,lede:i=null,action:o=null,allowWrap:c=!1,titleProps:d={}}=e;return(0,r.jsxs)(s.A,{sx:{marginBottom:"36px",...o&&{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"flex-end"},justifyContent:"space-between",...c&&{flexWrap:"wrap"},gap:"32px"}},children:[(0,r.jsxs)(s.A,{sx:{...c?{flex:{sm:"1 1 320px"},minWidth:{xs:0,sm:280}}:{minWidth:0},maxWidth:720},children:[(0,r.jsx)(l.A,{sx:{mb:"14px",whiteSpace:"nowrap"},children:t}),(0,r.jsx)(a.A,{variant:"h1",sx:{fontSize:{xs:"32px",md:"44px"},lineHeight:1.1,marginBottom:"10px"},...d,children:n}),i&&(0,r.jsx)(a.A,{sx:{fontSize:"17px",color:"text.secondary",lineHeight:1.55},children:i})]}),o&&(0,r.jsx)(s.A,{sx:{flexShrink:0},children:o})]})}c.propTypes={eyebrow:o().node.isRequired,title:o().node.isRequired,lede:o().node,action:o().node,allowWrap:o().bool,titleProps:o().object}},8368:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876);n(14232);var i=n(95062),o=n.n(i),s=n(14868),a=n(54611),l=n(16581);function c(e){let{title:t,eyebrow:n=null,subtitle:i=null,sx:o={},...c}=e;return(0,r.jsxs)(s.A,{...c,sx:[{pb:"18px",mb:"24px",borderBottom:"1px solid",borderColor:"custom.line"},o],children:[n&&(0,r.jsx)(l.A,{sx:{mb:"11px"},children:n}),(0,r.jsx)(a.A,{component:"h2",sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:24,fontWeight:600,lineHeight:1.2,letterSpacing:"-0.01em",color:"custom.ink"}),children:t}),i&&(0,r.jsx)(a.A,{sx:{mt:1,fontSize:14,color:"text.secondary",lineHeight:1.45},children:i})]})}c.propTypes={title:o().node,eyebrow:o().node,subtitle:o().node,sx:o().oneOfType([o().object,o().array])}},8986:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m,ve:()=>d,x3:()=>x});var r=n(37876);n(14232);var i=n(95062),o=n.n(i),s=n(14868),a=n(88043),l=n(54611),c=n(85405);function d(e){let{children:t,component:n="a",fullWidth:i=!1,...o}=e;return(0,r.jsxs)(s.A,{component:n,sx:{display:i?"flex":"inline-flex",justifyContent:"center",alignItems:"center",gap:"8px",fontSize:13,fontWeight:600,color:"custom.ink",padding:"9px 14px",border:"1px solid",borderColor:"custom.ink",borderRadius:"var(--radius, 4px)",whiteSpace:"nowrap",cursor:"pointer",transition:"all 150ms ease","& .arrow":{transition:"transform 150ms ease"},"&:hover":{bgcolor:"custom.ink",color:"var(--gr-paper)","& .arrow":{transform:"translateX(3px)"}}},...o,children:[t," ",(0,r.jsx)("span",{className:"arrow",children:"â"})]})}d.propTypes={children:o().node,component:o().elementType,fullWidth:o().bool};let p=e=>{let{children:t}=e;return(0,r.jsx)(l.A,{component:"span",sx:e=>({fontFamily:e.typography.monoFontFamily,fontSize:11,fontWeight:500,letterSpacing:"0.1em",color:"custom.muted"}),children:t})},u=e=>{let{title:t,sub:n}=e;return(0,r.jsxs)(s.A,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",gap:.5,minWidth:0},children:[(0,r.jsx)(l.A,{sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:18,fontWeight:600,color:"custom.ink",lineHeight:1.25}),children:t}),n&&(0,r.jsx)(s.A,{children:n})]})};function x(e){let{index:t,title:n,sub:i,status:o,cta:a,mobileCta:l,columns:c="36px minmax(0, 1fr) auto auto"}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.A,{sx:e=>({display:"none",[e.breakpoints.down("sm")]:{display:"flex",flexDirection:"column",gap:1.5,padding:2,bgcolor:"background.paper",border:`1px solid ${e.palette.custom.line}`,boxShadow:"var(--gr-shadow-card)",borderRadius:"6px"}}),children:[(0,r.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[null!=t&&(0,r.jsx)(p,{children:t}),o]}),(0,r.jsx)(u,{title:n,sub:i}),(l||a)&&(0,r.jsx)(s.A,{children:l||a})]}),(0,r.jsxs)(s.A,{sx:e=>({display:"grid",gridTemplateColumns:c,alignItems:"center",minHeight:70,gap:3,padding:"18px 28px",borderBottom:`1px solid ${e.palette.custom.line}`,transition:"background 150ms ease","&:last-of-type":{borderBottom:0},"&:hover":{backgroundColor:e.palette.custom.paper2},[e.breakpoints.down("sm")]:{display:"none"}}),children:[null!=t?(0,r.jsx)(p,{children:t}):(0,r.jsx)("span",{}),(0,r.jsx)(u,{title:n,sub:i}),(0,r.jsx)(s.A,{children:o}),(0,r.jsx)(s.A,{sx:{justifySelf:"end"},children:a})]})]})}function m(e){let{title:t,count:n,alert:i,footer:o,children:d,sx:p={}}=e;return(0,r.jsxs)(s.A,{component:"section",sx:[e=>({bgcolor:"background.paper",border:`1px solid ${e.palette.custom.line}`,borderRadius:"6px",boxShadow:"var(--gr-shadow-card)",overflow:"hidden",display:"flex",flexDirection:"column",[e.breakpoints.down("sm")]:{border:"none",bgcolor:"transparent",boxShadow:"none",overflow:"visible",gap:2}}),p],children:[(t||i)&&(0,r.jsxs)(a.A,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:e=>({flexWrap:"wrap",gap:2,p:"22px 28px 18px",borderBottom:`1px solid ${e.palette.custom.line}`,[e.breakpoints.down("sm")]:{p:0,border:"none"}}),children:[(0,r.jsxs)(s.A,{children:[t&&(0,r.jsx)(l.A,{variant:"h3",component:"h2",children:t}),n&&(0,r.jsx)(l.A,{variant:"fieldLabel",sx:{fontSize:11,letterSpacing:"0.1em",mt:.5},children:n})]}),i&&(0,r.jsxs)(s.A,{component:"span",sx:e=>({display:"inline-flex",alignItems:"center",gap:"6px",fontFamily:e.typography.monoFontFamily,fontSize:10,letterSpacing:"0.12em",textTransform:"uppercase",fontWeight:500,color:"custom.accent2",padding:"4px 10px",bgcolor:"custom.accentSoft",borderRadius:"99px",whiteSpace:"nowrap"}),children:[(0,r.jsx)(c.A,{sx:{fontSize:11}}),i]})]}),d,o&&(0,r.jsx)(s.A,{sx:e=>({p:"16px 28px",bgcolor:"custom.paper2",borderTop:`1px solid ${e.palette.custom.line}`,textAlign:"center",[e.breakpoints.down("sm")]:{bgcolor:"transparent",borderTop:"none",p:0}}),children:o})]})}x.propTypes={index:o().node,title:o().node.isRequired,sub:o().node,status:o().node,cta:o().node,mobileCta:o().node,columns:o().string},m.propTypes={title:o().node,count:o().node,alert:o().node,footer:o().node,children:o().node,sx:o().oneOfType([o().object,o().array])}},11044:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(37876),i=n(14232),o=n(95062),s=n.n(o),a=n(48011),l=n(89099),
1c=n(14868),d=n(19642),p=n(85825),u=n(22256),x=n(32346),m=n(48230),h=n.n(m),g=n(82979),f=n(32826),b=n(60214),y=n(54611),j=n(94056);function A(e){let{t=u.Gs8.t}=e,n=new Date().getFullYear();return(0,r.jsxs)(b.A,{square:!0,elevation:0,sx:e=>({marginLeft:0,[e.breakpoints.up(1400)]:{marginLeft:`${d.VI}px`},borderTop:`1px solid ${e.palette.custom.line}`,padding:"28px 40px",display:"flex",alignItems:"center",columnGap:"40px",rowGap:"20px",backgroundColor:e.palette.custom.paper,color:e.palette.text.secondary,[e.breakpoints.down("md")]:{flexDirection:"column",padding:"15px 30px"}}),"data-testid":"cy-dashboard-layout-footer",children:[(0,r.jsxs)(c.A,{display:{xs:"flex",sm:"none"},flexDirection:"column",alignItems:"center",gap:1,children:[(0,r.jsx)(y.A,{children:t("footer:applications.installTheApp")}),(0,r.jsx)(j.A,{})]}),(0,r.jsxs)(c.A,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",textAlign:"center",fontSize:"13px"},"data-testid":"cy-dashboard-layout-footer-copyrights",children:[(0,r.jsxs)("span",{children:["\xa9 2010-",n," ",(0,r.jsx)("strong",{children:t("footer.GR")}),"."]}),(0,r.jsx)(h(),{href:g.Kb,passHref:!0,children:(0,r.jsxs)(c.A,{component:"span",target:"_blank",name:"link-cgv","data-testid":"cy-base-layout-footer-cgu",sx:e=>({color:"custom.ink",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:e.palette.custom.line2,"&:hover":{cursor:"pointer",textDecorationColor:e.palette.custom.accent}}),children:[(0,r.jsx)("span",{children:t("footer.cgu")}),"\xa0",(0,r.jsx)(f.A,{sx:{fontSize:17,marginBottom:"2px"}})]})})]}),(0,r.jsx)(c.A,{sx:e=>({flex:1,[e.breakpoints.up("md")]:{marginRight:"50px"}}),children:(0,r.jsx)(x.A,{})})]})}A.propTypes={t:s().func};let S=(0,p.CI)(["dashboard","footer"])(A);var v=n(60239),_=n(76430),R=n(26043),C=n(15721),T=n(41044),w=n(48751),I=n(30262);function O(e){let{children:t}=e,n=(0,l.useRouter)(),o=(0,a.wA)(),s=(0,a.d4)(R.Tp.selectMyMessageNotifications),p=(0,a.d4)(I.A.selectIsLoading),x=(0,a.d4)(e=>T.js.selectLoadingState(e,C.P8).isFetching);(0,i.useEffect)(()=>{(0,u.jNE)(n,{access:"logged"})},[]);let m=(0,i.useRef)(!1);(0,i.useEffect)(()=>{m.current||0===s.length||(m.current=!0,o(_.o1.showNotificationModal({canClose:!1})))},[s,o]);let h=(0,v.Qh)();return x?(0,r.jsx)(w.A,{}):(0,r.jsxs)(c.A,{sx:e=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.custom.paper,minHeight:"100vh"}),children:[(0,r.jsx)(d.Ay,{}),(0,r.jsxs)(c.A,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",flexGrow:1},children:[p&&(0,r.jsx)(w.A,{}),(0,r.jsx)(c.A,{id:"main-content",sx:e=>({display:p?"none":"flex",padding:"40px 40px 0 40px",flexDirection:"column",marginBottom:"50px","--layout-gutter":"40px",...h&&{[e.breakpoints.up(1400)]:{ml:`${d.VI}px`}},[e.breakpoints.down("lg")]:{padding:"10px","--layout-gutter":"10px"}}),children:(0,r.jsx)(c.A,{sx:{maxWidth:1200,width:"100%"},children:t})}),!p&&(0,r.jsx)(S,{})]})]})}O.propTypes={children:s().node.isRequired};let E=O},13568:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876);n(14232);var i=n(95062),o=n.n(i),s=n(16847),a=n(4326),l=n(81417);function c(e){let{rating:t,withNote:n=!0,onChange:i,dataTestId:o="cy-star-rating",fontSize:c="inherit"}=e,d=parseInt(t,10),p=parseFloat(t).toFixed(1),u=parseFloat((t-d).toFixed(2)),x=e=>i?()=>i(e+1):void 0;return(0,r.jsxs)("span",{className:"star-rating star-rating-centered","data-rating":p,...o&&{"data-testid":o},children:[n&&(0,r.jsx)("span",{className:"data-rating",children:p}),[...[,,,,,].keys()].map((e,t)=>{let n=e<d||e===d&&u>=.75,i=e===d&&u>=.25&&u<.75,o=e>=d||e===d&&u<=.25;return n?(0,r.jsx)(s.A,{onClick:x(t),className:"star",fontSize:c},e):i?(0,r.jsx)(a.A,{onClick:x(t),className:"star half",fontSize:c},e):o?(0,r.jsx)(l.A,{onClick:x(t),className:"star empty",fontSize:c},e):void 0})]})}c.propTypes={rating:o().number.isRequired,withNote:o().bool,onChange:o().func,dataTestId:o().string,fontSize:o().string};let d=c},20730:(e,t,n)=>{"use strict";n.d(t,{zU:()=>r});var r={};n.r(r),n.d(r,{postMissionAbortedGroupLesson:()=>p,postMissionAbortedLesson:()=>d});var i=n(61349);let o=e=>e.missionAborted.status,s=e=>e.missionAborted.groupLesson;var a=n(4196),l=n(21682),c=n(85301);let d=(e,t)=>(n,r)=>{let o=l.H5.selectData(r()),s=(0,c.selectUser)(r());if(s&&Object.keys(s).length>0||o?.email||o?.phone?.fullPhoneNumber){let r={customer_id:s?.id,teacher_id:o?.lessonId,student_id:o?.studentId,details:{subject_id:o?.subjectId,scholar_level_id:o?.levelId,course_type:o?.format,address:o?.address,comment:o?.comment,email:o?.email,phone:o?.phone,first_name:o?.firstName,last_name:o?.lastname},reCaptchaToken:t};return n(i.Rp.postMissionAbortedLesson({...r,type:a.n[e]}))}}
1,p=e=>(t,n)=>{let r=s(n());if("ready_to_send"===o(n()))return t(i.Rp.postMissionAbortedGroupLesson({...r,type:a.n[e]}))}},32346:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(37876);n(14232);var i=n(95062),o=n.n(i),s=n(85825),a=n(22256),l=n(79106),c=n(13568),d=n(72870),p=n.n(d),u=n(14868),x=n(54611);function m(e){let{t=a.Gs8.t}=e;return(0,r.jsx)("a",{name:"google-link","data-testid":"cy-google-reviews",className:p()["rating-link"],href:l.Z,target:"_blank",rel:"nofollow noopener noreferrer",children:(0,r.jsxs)(u.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:0},children:[(0,r.jsx)(x.A,{sx:{color:"#4285F4",fontWeight:"bold"},children:"G"}),(0,r.jsx)(x.A,{sx:{color:"#EA4335",fontWeight:"bold"},children:"o"}),(0,r.jsx)(x.A,{sx:{color:"#FBBC05",fontWeight:"bold"},children:"o"}),(0,r.jsx)(x.A,{sx:{color:"#4285F4",fontWeight:"bold"},children:"g"}),(0,r.jsx)(x.A,{sx:{color:"#34A853",fontWeight:"bold"},children:"l"}),(0,r.jsx)(x.A,{sx:{color:"#EA4335",fontWeight:"bold",marginRight:"13px"},children:"e"}),(0,r.jsx)(c.A,{rating:a.ElX.ratingValue,dataTestId:"cy-google-review-link-rating"})," ",(0,r.jsx)(x.A,{sx:{fontSize:{xs:"13px",md:"13px"},color:"custom.muted"},children:t("googleRating.textPartTwo")})]})})}m.propTypes={t:o().func};let h=(0,s.CI)("common")(m)},56629:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(14232),o=n(95062),s=n.n(o),a=n(54587),l=n.n(a),c=n(22256);let d={},p=e=>{let{src:t,alt:n,className:o="",width:s,height:a,fetchPriority:p="auto",loading:u="lazy",smart:x=!1,dataTestId:m="",style:h=d,sizes:g="(max-width: 640px) 640px, (max-width: 1024px) 768px, 1200px",fill:f=!1,onLoad:b,onError:y,unoptimized:j=!1}=e,A=f||!s||!a,S=(0,i.useMemo)(()=>(0,c.J$H)(t,x,s&&a?{width:s,height:a}:null,null),[t,x,s,a]),v="high"===p||"preload"===u,_=v?"high":void 0;return A?(0,r.jsx)(l(),{src:S,alt:n,className:o,style:h,fill:!0,priority:v,fetchPriority:_,loading:v?void 0:u,sizes:g,onLoad:b,onError:y,unoptimized:j,...m&&{"data-testid":m}}):(0,r.jsx)(l(),{src:S,alt:n,className:o,style:h,width:s,height:a,priority:v,fetchPriority:_,loading:v?void 0:u,sizes:g,onLoad:b,unoptimized:j,...m&&{"data-testid":m}})};p.propTypes={src:s().string.isRequired,alt:s().string.isRequired,className:s().string,width:s().number,height:s().number,fetchPriority:s().string,loading:s().string,smart:s().bool,dataTestId:s().string,style:s().object,sizes:s().string,fill:s().bool,onLoad:s().func,onError:s().func,unoptimized:s().bool};let u=p},61367:(e,t,n)=>{"use strict";n.d(t,{Gq:()=>p,Yk:()=>x,fr:()=>d,pm:()=>u});var r=n(37876);n(14232);var i=n(95062),o=n.n(i),s=n(48173),a=n(31380),l=n(14868);n(54611);let c=e=>t=>{let n="string"==typeof e&&e.startsWith("accent");return{backgroundColor:t.palette.custom[e]||e,color:"#fff",fontFamily:t.typography.serifFontFamily,fontWeight:600,"html[data-theme='dark'] &":n?{color:t.palette.custom.paper}:{backgroundColor:t.palette.custom.paper2,border:`1px solid ${t.palette.custom.line2}`,color:t.palette.custom.ink}}};function d(e){let{children:t,size:n=38,color:i="ink",sx:o=[],...a}=e;return(0,r.jsx)(s.A,{sx:[c(i),{width:n,height:n,fontSize:Math.round(.34*n)},...Array.isArray(o)?o:[o]],...a,children:t})}function p(e){let{children:t,size:n=38,sx:i={},...o}=e;return(0,r.jsx)(a.A,{sx:{"& .MuiAvatar-root":{width:n,height:n,fontSize:Math.round(.34*n),border:"2px solid",borderColor:"custom.paper2",ml:"-10px"},...i},...o,children:t})}d.propTypes={children:o().node.isRequired,size:o().number,color:o().string,sx:o().oneOfType([o().object,o().func,o().array])},p.propTypes={children:o().node.isRequired,size:o().number,sx:o().object};let u="50% 10%";function x(e){let{src:t,alt:n,width:i=84,height:o=100,initials:a=null,objectPosition:c="center",round:d=!1,sx:p={},children:u,...x}=e,m={width:i,height:o,borderRadius:d?"50%":"3px",bgcolor:"custom.paper2",position:"relative",overflow:"hidden",flexShrink:0,"& img":{width:"100%",height:"100%",objectFit:"cover",objectPosition:c,display:"block",filter:"saturate(0.95) contrast(1.02)",position:"relative",zIndex:1,color:"transparent"},"&::after":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",boxShadow:"inset 0 0 0 1px var(--gr-ink-soft)",pointerEvents:"none"},...p},h=a?(0,r.jsx)(l.A,{"aria-hidden":!0,sx:e=>({position:"absolute",inset:0,zIndex:0,display:"grid",placeItems:"center",fontFamily:e.typography.serifFontFamily,fontWeight:600,fontSize:Math.round(.32*Math.min(i,o)),color:"custom.ink"}),children:a}):null;return u||a?(0,r.jsxs)(l.A,{sx:m,...x,children:[h,u]}):(0,r.jsx)(s.A,{variant:"rounded",src:t,alt:n,sx:m,...x})}
1x.propTypes={src:o().string,alt:o().string,width:o().number,height:o().number,initials:o().string,objectPosition:o().string,round:o().bool,sx:o().object,children:o().node},o().string.isRequired,o().node.isRequired,o().node,o().func},69662:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876);n(14232);var i=n(36905),o=n(49693);let s=e=>function(t){return(0,r.jsx)(i.G3,{reCaptchaKey:o.RECAPTCHA_KEY,scriptProps:{defer:!0,async:!0},children:(0,r.jsx)(e,{...t})})}},72870:e=>{e.exports={"rating-link":"_style_rating-link__6HdFp"}},75547:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,N:()=>l});var r=n(37876);n(14232);var i=n(95062),o=n.n(i),s=n(85436);let a={search:{background:"accentSoft",border:"accentSoft",text:"accent2",dot:"accent"},contact:{background:"paper2",border:"line",text:"ink",dot:"ink3"},review:{background:"pastelSuccess",border:"pastelSuccess",text:"successColor",dot:"successColor"},danger:{background:"pastelError",border:"pastelError",text:"errorColor",dot:"errorColor"},info:{background:"inkSoft",border:"inkSoft",text:"ink",dot:"ink3"},gold:{background:"paper2",border:"gold",text:"gold",dot:"gold"},neutral:{background:"white",border:"line2",text:"ink3",dot:"accent"},accentOutline:{background:"white",border:"accent",text:"accent2",dot:"accent"},accent:{background:"accentSoft",border:"accentSoft",text:"accent2",dot:"accent"},successOutline:{background:"white",border:"successColor",text:"successColor",dot:"successColor"},dangerOutline:{background:"white",border:"errorColor",text:"errorColor",dot:"errorColor"},muted:{background:"line",border:"line2",text:"muted",dot:"muted"}},l={search_teachers:"search",payment_method:"accentOutline",tax_credit:"gold",invoicing:"info",first_contact:"contact",first_course_report:"review",success:"successOutline",to_evaluate:"neutral"},c=e=>t=>{let n=a[e]||a.contact;return{fontFamily:t.typography.monoFontFamily,fontSize:"10px",fontWeight:500,letterSpacing:"0.12em",textTransform:"uppercase",height:"auto",padding:"5px 4px",backgroundColor:t.palette.custom[n.background],border:`1px solid ${t.palette.custom[n.border]}`,color:t.palette.custom[n.text],"& .MuiChip-icon":{width:6,height:6,borderRadius:"50%",backgroundColor:t.palette.custom[n.dot],marginLeft:"10px"}}};function d(e){let{label:t,variant:n="contact",sx:i=[],...o}=e;return(0,r.jsx)(s.A,{size:"small",icon:(0,r.jsx)("span",{}),label:t,...o,sx:[c(n),...Array.isArray(i)?i:[i]]})}d.propTypes={label:o().node.isRequired,variant:o().oneOf(Object.keys(a)),sx:o().oneOfType([o().object,o().func,o().array])}},76531:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(14232),o=n(95062),s=n.n(o),a=n(89099),l=n.n(a),c=n(48011),d=n(66545),p=n(82979);let u=function(e){class t extends i.Component{static async getInitialProps(t){let{store:n,req:r,res:i,pathname:o,asPath:s}=t,a=n.getState(),l=d.Tp.selectIsAuthenticated(a),c=d.Tp.selectIsTeacher(a),u=d.Tp.selectIsCustomer(a);if(r&&i){if(!l)return i.writeHead(302,{Location:`/?redirectUrl=${s||o}`}),i.end(),{};else if(c)return i.writeHead(302,{Location:p.Pe}),i.end(),{};else if(!u)return i.writeHead(302,{Location:"/"}),i.end(),{}}let x={};return e.getInitialProps&&(x=await e.getInitialProps(t)),{...x,isAuthenticated:l,isTeacher:c,isCustomer:u}}render(){let{isAuthenticated:t,isTeacher:n,isCustomer:i}=this.props;return t?n?(l().replace(p.Pe),null):i?(0,r.jsx)(e,{...this.props}):(l().replace("/"),null):(l().replace(`/?redirectUrl=${l().pathname}`),null)}}return t.propTypes={isAuthenticated:s().bool.isRequired,isTeacher:s().bool.isRequired,isCustomer:s().bool.isRequired},(0,c.Ng)(function(e){let t=d.Tp.selectIsAuthenticated(e);return{isAuthenticated:t,isTeacher:d.Tp.selectIsTeacher(e),isCustomer:d.Tp.selectIsCustomer(e)}})(t)}},79106:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=n(49693).GOOGLE_REVIEWS_LINK},85577:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/espace-client",function(){return n(96691)}])},86695:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(14232),i=n(48011),o=n(66545),s=n(26043),a=n(43378),l=n(85939),c=n(30262);function d(e){let t=(0,i.wA)(),n=(0,i.Pj)(),d=(0,i.d4)(o.Tp.selectIsTeacher);(0,r.useEffect)(()=>{let r=n.getState(),i=r.config&&!(Array.isArray(r.config)&&0===r.config.length);r.subjects?.length>0&&r.cursus?.length>0&&i||t(l.z.initStaticPublic()),e&&t(e()),async function(){try{await Promise.all([d?t(a.zU.getTeacher()):t(s.zU.fetchAccount()),t(s.zU.fetchNotifications()),t(l.z.initStaticAuth(d))])}finally{t(c.tR.setIsLoading(!1))}}()},[])}},88415:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(37876),i=n(14232),o=n(95062),s=n.n(o),a=n(10745),l=n(14868),c=n(54611),d=n(42228),p=n(90471),u=n(98349),x=n(85825),m=n(48011),h=n(
153069),g=n(9204),f=n(8368),b=n(16581),y=n(7706),j=n(52620),A=n(26485),S=n(17903),v=n(44654),_=n(27419),R=n(21682),C=n(58632),T=n(22256),w=n(86873);let I=e=>({fontFamily:e.typography.serifFontFamily,fontSize:15,fontWeight:600,color:"custom.ink",mb:"13px"}),O={border:"1px solid",borderColor:"custom.line2",borderRadius:"6px",p:"16px 18px",mt:.75,display:"flex",gap:1.75,alignItems:"flex-start"},E={width:38,height:38,borderRadius:"8px",bgcolor:"custom.accentSoft",color:"custom.accent2",display:"grid",placeItems:"center",flexShrink:0,"& svg":{fontSize:20}},k={display:"flex",alignItems:"center",gap:1.5,p:"13px 16px",borderRadius:"4px",bgcolor:"custom.accentSoft"},L={ml:"auto",display:"flex",flexDirection:"column",alignItems:"flex-end",minWidth:0},N=e=>({display:"flex",alignItems:"center",columnGap:.5,fontFamily:e.typography.serifFontFamily,fontSize:14,lineHeight:1.2,color:"custom.ink","& del":{color:"custom.muted",fontSize:13},"& svg":{color:"custom.accent2",fontSize:20}}),F={fontSize:11.5,color:"custom.muted",mt:"2px",textAlign:"right"};function q(e){let{currentFormat:t="",currentAddress:n=null,subjects:o,updateCurrentStep:s,generateLessonRequestQuestionnaire:m,updateLessonRequestParams:A,isLoading:S=!1,onSuccess:_=()=>{},removeTitleMargins:R=!1,resetQuestionnaireLoadingState:C,hasQuestionnaire:q,defaultLevel:D=null,defaultSubject:M=null,allLevels:z=[],previousFormat:P=null,previousAddress:G=null,lesson:$=null,registerLesson:U,updateGTMDataLayerState:B,isFormFillingStarted:W,context:H,gtmData:V,initializeGTMDataLayer:Q,customerPreviousExtendedSearch:X}=e,{t:K}=(0,x.Bd)(["lesson","forms","common","search"]),Y=(0,i.useMemo)(()=>{let e=$?$.subjects.map(e=>parseInt(e.id)):[],t=$?o.filter(t=>e.includes(t.id)):o;return(0,T.g_Z)(t).map(e=>({id:e.id,name:e.name}))},[o,$]),[Z,J]=(0,i.useState)(()=>{let e=P||t;return{subject:M?{id:M.id,name:M.name}:null,level:D?{id:D.id,name:D.name}:null,period:null,location:e===v.X3.ONLINE?{online:!0}:G?{online:!1,address:G.free_address,fullAddress:G}:n?{online:!1,address:n}:null}}),[ee,et]=(0,i.useState)({}),[en,er]=(0,i.useState)(X),ei=(0,i.useMemo)(()=>{let e=o.find(e=>e.id===Z.subject?.id);return e?.levels?.length?e.levels.map(e=>({id:e.id,name:e.name})):null},[o,Z.subject?.id]),eo=Z.location?.online?v.X3.ONLINE:v.X3.OFFLINE,es=(0,i.useMemo)(()=>{if(!Array.isArray($?.prices)||!Z.level?.id||!Z.location)return null;let e=$.prices.filter(e=>e.scholar_level===Z.level.id&&e.format===eo);return 1===e.length?e[0]:null},[$,Z.level?.id,Z.location,eo]),ea=()=>{s(v.qp.LESSON_REQUEST_QUESTIONNAIRE),_()};return(0,i.useEffect)(()=>{W&&H===v.U0.LEAD_CAPTURE&&(0,T.qde)(`${H}_start`,{...V,[v.GM.STEP]:v.qp.LESSON_REQUEST})},[W]),(0,i.useEffect)(()=>{let e={[v.GM.LEVEL]:D?.name||null,[v.GM.CURSUS]:D?.cursusName||null,[v.GM.SUBJECT]:M?.name||null,[v.GM.FORMAT]:P||t||null,[v.GM.PROVINCE_CODE]:null};Q(e),H===v.U0.TEACHER_CONTACT&&(0,T.qde)(`${H}_start`,{...e,[v.GM.STEP]:v.qp.LESSON_REQUEST})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.A,{sx:{height:"100%",...R&&{pt:0}},children:[(0,r.jsx)(f.A,{title:K("lesson:lessonSubmission.lessonRequestStep.title"),sx:{pr:{xs:3,sm:4}}}),(0,r.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:2,"& .MuiFormHelperText-root":{height:"auto"}},children:[(0,r.jsx)(y.Ay,{value:Z,onChange:(e,t)=>
1{if(J(e),et(e=>({...e,[t]:void 0})),"subject"===t)B({[v.GM.SUBJECT]:e.subject?.name||null});else if("level"===t){let t=z.find(t=>t.id===e.level?.id)?.cursusName||null;B({[v.GM.LEVEL]:e.level?.name||null,[v.GM.CURSUS]:t})}else if("location"===t){let t=e.location?.fullAddress;B({[v.GM.FORMAT]:e.location?e.location.online?v.X3.ONLINE:v.X3.OFFLINE:null,[v.GM.PROVINCE_CODE]:t?.postal_code&&t?.country==="FR"?parseInt(t.postal_code.substring(0,2),10):null})}},errors:ee,subjectsOptions:Y,levelsOptions:ei,disabled:S,testIdPrefix:"cy-lesson-request",idPrefix:"lesson-request",geocodeBareLocation:!0}),es&&(0,r.jsxs)(l.A,{sx:k,"data-testid":"cy-lesson-request-price",children:[(0,r.jsx)(b.A,{variant:"section",component:"span",children:K("forms:teacherPrice.label")}),(0,r.jsxs)(l.A,{sx:L,children:[(0,r.jsx)(l.A,{component:"span",sx:N,children:es.urssaf_part>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("del",{children:(0,T.N5L)({value:es.price})}),(0,r.jsx)(h.A,{}),(0,T.N5L)({value:es.price-es.urssaf_part})]}):(0,T.N5L)({value:es.price})}),es.urssaf_part>0&&(0,r.jsx)(c.A,{component:"span",sx:F,children:K("forms:teacherPrice.discountAfterTax")})]})]}),$&&(0,r.jsxs)(l.A,{children:[(0,r.jsx)(c.A,{sx:I,children:K("forms:extendedSearch.sectionTitle")}),(0,r.jsxs)(l.A,{sx:O,children:[(0,r.jsx)(l.A,{sx:E,children:(0,r.jsx)(g.A,{})}),(0,r.jsxs)(l.A,{sx:{flex:1,minWidth:0},children:[(0,r.jsx)(c.A,{sx:{fontSize:14,fontWeight:600,color:"custom.ink"},children:K("forms:extendedSearch.label")}),(0,r.jsx)(c.A,{sx:{fontSize:12.5,color:"text.secondary",mt:"3px",lineHeight:1.5},children:K("forms:extendedSearch.subLabel")})]}),(0,r.jsx)(d.A,{checked:en,onChange:e=>er(e.target.checked),inputProps:{"data-testid":"cy-lesson-request-extended-search"},sx:{flexShrink:0}})]})]})]})]}),(0,r.jsx)(p.A,{children:(0,r.jsx)(u.A,{fullWidth:!0,variant:"contained",onClick:()=>{let e={};if(Z.subject||(e.subject=K("search:searchBar.form.errors.subject")),Z.level||(e.level=K("search:searchBar.form.errors.level")),!(Z.location?.online||Z.location?.fullAddress)&&(e.location=K("search:searchBar.form.errors.location"),Z.location&&J(e=>({...e,location:null}))),et(e),Object.keys(e).length>0)return;localStorage.setItem(w.r.EXTENDED_SEARCH,en);let t={subjectId:Z.subject.id,levelId:Z.level.id,format:eo,address:Z.location.online?null:Z.location.fullAddress,extendedSearch:en};A({...t,lessonId:$?.id}),q&&D?.id===t.levelId&&M?.id===t.subjectId?ea():(C(),m({levelId:t.levelId,subjectId:t.subjectId}).then(e=>{ea(),e.payload?.status===208&&e.payload?.data?.lesson_request_id&&($&&U({lessonRequestId:e.payload.data.lesson_request_id,extendedSearch:t.extendedSearch},$.id),s(v.qp.SUCCESS))}))},disabled:S,endIcon:S&&(0,r.jsx)(j.A,{}),"data-testid":"cy-lesson-request-submit",children:K("common:next")})})]})}q.propTypes={subjects:s().arrayOf(s().shape({id:s().number.isRequired,name:s().string.isRequired,levels:s().arrayOf(s().shape({id:s().number.isRequired,name:s().string.isRequired,cursusName:s().string.isRequired})).isRequired,order_key:s().string,subject_category:s().shape({name:s().string.isRequired,order_key:s().string}).isRequired})).isRequired,currentSubjectId:s().number,currentLevelId:s().number,currentFormat:s().oneOf([v.X3.OFFLINE,v.X3.ONLINE,""]).isRequired,currentAddress:s().string,generateLessonRequestQuestionnaire:s().func.isRequired,updateLessonRequestParams:s().func.isRequired,updateCurrentStep:s().func.isRequired,isLoading:s().bool,onSuccess:s().func,removeTitleMargins:s().bool,resetQuestionnaireLoadingState:s().func.isRequired,hasQuestionnaire:s().bool.isRequired,previousFormat:s().string,previousAddress:s().object,updateGTMDataLayerState:s().func.isRequired,lesson:s().shape({id:s().number,subjects:s().array,prices:s().arrayOf(s().shape({format:s().string,scholar_level:s().number,price:s().number,urssaf_part:s().number,net_price:s().number})),rating:s().number,photo_url:s().string,main_degree:s().string,nb_reviews:s().number,main_experience:s().string,approved:s().bool,name:s().string,main_subject:s().shape({name:s().string})}),registerLesson:s().func.isRequired,isFormFillingStarted:s().bool.isRequired,context:s().string.isRequired,initializeGTMDataLayer:s().func.isRequired,gtmData:s().shape({subject_name:s().string,level_name:s().string,format:s().string,province_code:s().number}).isRequired,defaultLevel:s().shape({id:s().number,name:s().string}),defaultSubject:s().shape({id:s().number,name:s().string}),allLevels:s().arrayOf(s().shape({id:s().number,name:s().string,cursusName:s().string})),customerPreviousExtendedSearch:s().bool.isRequired};let D=(0,m.Ng)(function(e,t){let{currentLevelId:n,currentSubjectId:r}=t,i=(0,A.selectSubjects)(e),{isLoading:o}=_.LA.selectLoadingStateForGenerateQuestionnaire(e),{levelId:s,subjectId:a,address:l,format:c,questionnaire:d}=R.H5.selectData(e),p=R.H5.selectFormFillingStarted(e),u=R.H5.selectGTMDataLayer(e),x=(0,S.selectLevelById)(s||n)(e)||null,m=(0,S.selectLevels)(e)||[];return{subjects:i,isLoading:o,hasQuestionnaire:!!d,defaultSubject:(0,A.selectSubjectById)(a||r)(e)||null,previousFormat:c,previousAddress:l,isFormFillingStarted:p,gtmData:u,defaultLevel:x,allLevels:m,customerPreviousExtendedSearch:"false"!==localStorage.getItem(w.r.EXTENDED_SEARCH)}},function(e){return{generateLessonRequestQuestionnaire:t=>e(_.sC.generateLessonRequestQuestionnaire(t)),updateLessonRequestParam
1s:t=>e(R.IV.updateLessonRequestParams(t)),resetQuestionnaireLoadingState:()=>e(_.sC.resetLoadingState()),registerLesson:(t,n)=>e((0,C.registerLesson)(t,null,null,n)),updateGTMDataLayerState:t=>e(R.IV.updateGTMDataLayer(t)),initializeGTMDataLayer:t=>e(R.IV.initializeGTMDataLayer(t))}})(q)},94056:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876);n(14232);var i=n(85825),o=n(78733),s=n(49693),a=n(54587),l=n.n(a),c=n(14868),d=n(98349),p=n(54611);let u=function(){let{t:e}=(0,i.Bd)("footer");return(0,r.jsxs)(c.A,{sx:e=>({display:"flex",flexDirection:"column",gap:1,[e.breakpoints.down("md")]:{flexDirection:"row"}}),children:[(0,r.jsxs)(d.A,{href:s.PREP_APP_IOS,target:"_blank",rel:"nofollow noopener noreferrer","data-testid":"cy-base-layout-footer-prep-app-ios",sx:e=>({color:"white",height:"unset",padding:1,backgroundColor:"#101010",width:"170px",borderRadius:2,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-evenly",rowGap:1,transition:"all 0.25s linear","&:hover":{backgroundColor:e.palette.primary.main}}),children:[(0,r.jsx)(o.A,{fontSize:"large"}),(0,r.jsx)(c.A,{display:"flex",children:(0,r.jsxs)(c.A,{sx:{lineHeight:1},children:[(0,r.jsx)(p.A,{fontSize:12,color:"white",fontFamily:"Lucida Grande, sans-serif",children:e("applications.availableOn")}),(0,r.jsx)(p.A,{fontSize:18,color:"white",fontWeight:"bold",minWidth:"100px",children:e("applications.appleStore")})]})})]}),(0,r.jsxs)(d.A,{href:s.PREP_APP_ANDROID,target:"_blank",rel:"nofollow noopener noreferrer","data-testid":"cy-base-layout-footer-prep-app-android",sx:e=>({color:"white",height:"unset",padding:1,backgroundColor:"#101010",width:"170px",borderRadius:2,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-evenly",rowGap:1,transition:"all 0.25s linear","&:hover":{backgroundColor:e.palette.primary.main}}),children:[(0,r.jsx)(c.A,{width:35,height:35,display:"flex",justifyContent:"center",alignItems:"center",children:(0,r.jsx)(l(),{src:"/images/playstore.svg",alt:e("applications.altGooglePlayLogo"),width:25,height:25,sizes:"25px"})}),(0,r.jsxs)(c.A,{sx:{lineHeight:1},children:[(0,r.jsx)(p.A,{fontSize:12,color:"white",fontFamily:"Lucida Grande, sans-serif",children:e("applications.availableOn")}),(0,r.jsx)(p.A,{fontSize:18,color:"white",fontWeight:"bold",minWidth:"100px",children:e("applications.googlePlay")})]})]})]})}},96691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>es,default:()=>ea});var r=n(37876),i=n(14232),o=n(95062),s=n.n(o),a=n(77328),l=n.n(a),c=n(10958),d=n(85825),p=n(76531),u=n(11044),x=n(61495),m=n(14868),h=n(48011),g=n(22256),f=n(5652),b=n(54611),y=n(71553),j=n(73842),A=n(74893),S=n(54587),v=n.n(S),_=n(76430),R=n(98905),C=n(49693),T=n(16581);let w=e=>({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:1.25,padding:"18px 14px 16px",borderRadius:"6px",backgroundColor:"var(--gr-card)",border:`1px solid ${e.palette.custom.line}`,boxShadow:e.customShadows.card,transition:"all 0.15s ease",cursor:"pointer",font:"inherit",color:"inherit",textDecoration:"none","&:hover":{borderColor:e.palette.custom.ink,transform:"translateY(-1px)",boxShadow:e.customShadows.cardHover},"&:focus-visible":{outline:`2px solid ${e.palette.custom.accent}`,outlineOffset:"2px"}}),I=e=>({"& path":{fill:e.palette.custom.ink3},"& path:first-of-type":{opacity:.35}}),O=e=>({fontFamily:e.typography.serifFontFamily,fontSize:"15px",fontWeight:600,color:"custom.ink",textAlign:"center"}),E=e=>({fontFamily:e.typography.monoFontFamily,fontSize:"10px",fontWeight:500,letterSpacing:"0.1em",textTransform:"uppercase",color:"custom.muted"});function k(){let{t:e}=(0,d.Bd)("common"),t=(0,h.wA)(),{openBrevoChat:n}=(0,R.Y)(),i=[{Icon:y.A,label:e("call"),sub:e("phone"),props:{component:"a",href:`tel:${C.PHONE_NUMBER}`}},{Icon:j.A,label:e("write"),sub:e("channelWriteDelay"),props:{component:"button",type:"button",onClick:()=>t(_.o1.showContactModal({isTeacher:!1}))}},{Icon:A.A,label:e("chat"),sub:e("channelChatLive"),props:{component:"button",type:"button",onClick:n}}];return(0,r.jsxs)(m.A,{display:"flex",flexDirection:"column",gap:2.5,sx:e=>({backgroundColor:e.palette.custom.paper2,border:`1px solid ${e.palette.custom.line}`,borderRadius:"6px",padding:4}),children:[(0,r.jsxs)(m.A,{children:[(0,r.jsx)(T.A,{sx:{color:"custom.muted",mb:"10px"},children:e("assistance")}),(0,r.jsx)(b.A,{variant:"h3",component:"h2",sx:{fontSize:"26px",marginBottom:"6px"},children:e("needHelpContact")}),(0,r.jsx)(b.A,{sx:{fontSize:"14px",color:"text.secondary"},children:e("helpChannelsSub")})]}),(0,r.jsx)(m.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(3, 1fr)"},gap:1.5},children:i.map(e=>{let{Icon:t,label:n,sub:i,props:o}=e;return(0,r.jsxs)(m.A,{...o,sx:w,children:[(0,r.jsx)(t,{fontSize:"large",sx:I}),(0,r.jsx)(b.A,{sx:O,children:n}),(0,r.jsx)(b.A,{sx:E,children:i})]},n)})}),(0,r.jsxs)(m.A,{display:"flex",flexDirection:"row",alignItems:"center",gap:2,sx:e=>({borderTop:`1px solid ${e.palette.custom.line}`,paddingTop:"20px",marginTop:"auto"}),children:[(0,r.jsxs)(m.A,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,r.jsx)(v(),{src:"/images/gr-users/paco.webp",alt:"Paco - \xc9quipe p\xe9dagogique",width:44,height:44,style:{borderRadius:"50%",position:"relative",zIndex:3}}),(0,r.jsx)(v(),{src:"/images/gr-users/alexis.webp",alt:"Alexis - \xc9quipe p\xe9dagogique",width:44,height:44,style:{borderRadius:"50%",position:"relative",marginLeft:"-10px",zIndex:2}}),(0,r.jsx)(v(),{src:"/images/gr-users/marius.webp",alt:"Marius - \xc9quipe p\xe9dagogique",width:44,height:44,style:{borderRadius:"50%",position:"relative",marginLeft:"-10px",zIndex:1}})]}),(0,r.jsxs)(m.A,{children:[(0,r.jsx)(b.A,{lineHeight:1.3,sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:"15px",fontWeight:600,color:"custom.ink"}),children:e("pedagogicalTeam")}),(0,r.jsx)(b.A,{lineHeight:1.3,fontSize:13,sx:{color:"text.secondary",mt:"2px"},children:e("GRDisponibility")})]})]})]})}var L=n(61877);function N(e){let{eyebrow:t,title:n,bullets:i=[],stats:o=[],children:s,sx:a={}}=e;return(0,r.jsxs)(m.A,{display:"flex",flexDirection:"column",sx:[e=>({position:"relative",overflow:"hidden",backgroundColor:e.palette.custom.inkBand,"html[data-theme='dark'] &":{border:`1px solid ${e.palette.custom.line}`},borderRadius:"6px",padding:4,"&::before":{content:'""',position:"absolute",right:"-60px",bottom:"-80px",width:"280px",height:"280px",borderRadius:"50%",backgroundColor:e.palette.custom.accentHalo,pointerEvents:"none"},"& > *":{position:"relative"}}
1),a],children:[(t||n)&&(0,r.jsxs)(m.A,{sx:{marginBottom:3},children:[t&&(0,r.jsx)(T.A,{tone:"dark",sx:{mb:"12px"},children:t}),n&&(0,r.jsx)(b.A,{variant:"h3",component:"h2",sx:{color:"common.white",fontSize:"26px"},children:n})]}),i.length>0&&(0,r.jsx)(m.A,{component:"ul",sx:{listStyle:"none",padding:0,margin:"0 0 28px",display:"flex",flexDirection:"column",gap:"14px"},children:i.map((e,t)=>(0,r.jsxs)(m.A,{component:"li",sx:{display:"flex",alignItems:"flex-start",gap:"14px"},children:[(0,r.jsx)(m.A,{sx:e=>({flexShrink:0,width:24,height:24,borderRadius:"50%",backgroundColor:e.palette.custom.accentVeil,color:"custom.accent",display:"grid",placeItems:"center",marginTop:"1px"}),children:(0,r.jsx)(L.A,{sx:{fontSize:14}})}),(0,r.jsx)(b.A,{sx:{fontSize:"14.5px",color:"rgba(255, 255, 255, 0.85)",lineHeight:1.45},children:e})]},t))}),s,o.length>0&&(0,r.jsx)(m.A,{sx:{display:"grid",gridTemplateColumns:`repeat(${o.length}, 1fr)`,gap:3,paddingTop:3,marginTop:"auto",borderTop:"1px solid rgba(255, 255, 255, 0.12)"},children:o.map(e=>(0,r.jsxs)(m.A,{children:[(0,r.jsx)(b.A,{sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:"28px",fontWeight:600,color:"common.white",lineHeight:1,letterSpacing:"-0.01em"}),children:e.value}),(0,r.jsx)(b.A,{sx:e=>({fontFamily:e.typography.monoFontFamily,fontSize:"10px",fontWeight:500,letterSpacing:"0.12em",textTransform:"uppercase",color:"rgba(255, 255, 255, 0.55)",marginTop:"8px"}),children:e.label})]},e.label))})]})}N.propTypes={eyebrow:s().node,title:s().node,bullets:s().arrayOf(s().node),stats:s().arrayOf(s().shape({value:s().node,label:s().node})),children:s().node,sx:s().oneOfType([s().object,s().array])};let F=["nbTeachers","nbHours","nbCourses"],q=["price","flexibility","easyTaxCredit"];function D(){let{t:e}=(0,d.Bd)(["customerSpaceDashboard","home"]);return(0,r.jsx)(N,{eyebrow:e("successPanel.eyebrow"),title:e("home:introBanner.title"),bullets:q.map(t=>e(`home:introBanner.arguments.${t}`)),stats:F.map(t=>({value:`${e(`home:introBanner.${t}.prefix`,{defaultValue:""})}${e(`home:introBanner.${t}.value`)}`,label:e(`home:introBanner.${t}.text`)}))})}var M=n(85301),z=n(13223),P=n(89099),G=n(66261),$=n(98349);function U(e){let{image:t,imageAlt:n,title:i,benefits:o,buttonLabel:s,onButtonClick:a,buttonSx:l=null}=e;return(0,r.jsxs)(G.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",width:"220px",height:"340px",padding:1.5,paddingTop:0},children:[(0,r.jsxs)(m.A,{children:[(0,r.jsx)(v(),{src:t,alt:n,width:220,height:130,priority:!0,style:{objectFit:"cover",borderTopLeftRadius:6,borderTopRightRadius:6}}),(0,r.jsxs)(m.A,{sx:{padding:1.5,paddingBottom:0},children:[(0,r.jsx)(b.A,{component:"h3",lineHeight:1.25,sx:e=>({fontFamily:e.typography.serifFontFamily,fontWeight:600,fontSize:16,color:"custom.ink"}),children:i}),(0,r.jsx)(m.A,{component:"ul",sx:{paddingLeft:"1rem",marginBottom:0},children:o.map((e,t)=>(0,r.jsx)(b.A,{component:"li",fontSize:13,fontWeight:0===t?500:void 0,sx:e=>({marginTop:0===t?"5px":void 0,listStyle:"square","::marker":{color:e.palette.primary.main}}),children:e},t))})]})]}),(0,r.jsx)($.A,{variant:"contained",fullWidth:!0,disableElevation:!0,sx:{height:"35px",flexShrink:0,fontWeight:600,fontSize:14,borderRadius:"4px",...l},onClick:a,children:s})]})}U.propTypes={image:s().string.isRequired,imageAlt:s().string.isRequired,title:s().string.isRequired,benefits:s().arrayOf(s().string).isRequired,buttonLabel:s().string.isRequired,onButtonClick:s().func.isRequired,buttonSx:s().object};var B=n(82979),W=n(37691),H=n(44654);let V=function(){let{t:e}=(0,d.Bd)("customerSpaceDashboard"),t=(0,P.useRouter)(),[n,o]=(0,i.useState)(!1),s=[{image:"/images/find-lesson.webp",imageAlt:e("lesson.imageAlt"),title:e("lesson.title"),benefits:[e("lesson.benefits.individual"),e("lesson.benefits.location"),e("lesson.benefits.taxCredit")],buttonLabel:e("lesson.findTeacher"),onButtonClick:()=>{t.push((0,g.v01)({type:B.MA.LESSONS}))}},{image:"/images/find-group-lesson.webp",imageAlt:e("groupLesson.imageAlt"),title:e("groupLesson.title"),benefits:[e("groupLesson.benefits.smallGroups"),e("groupLesson.benefits.location"),e("groupLesson.benefits.replay")],buttonLabel:e("groupLesson.findGroupLesson"),onButtonClick:()=>{t.push((0,g.v01)({type:B.MA.GROUP_LESSONS}))}},{image:"/images/find-tutoring.webp",imageAlt:e("tutoring.imageAlt"),title:e("tutoring.title"),benefits:[e("tutoring.benefits.needs"),e("tutoring.benefits.availability"),e("tutoring.benefits.advice")],buttonLabel:e("tutoring.detailYourNeeds"),onButtonClick:()=>o(!0),buttonSx:{padding:"0 15px"}}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{display:"flex",flexWrap:"wrap",alignItems:{xs:"center",md:"start"},flexDirection:"row",justifyContent:{xs:"center",md:"start"},gap:4,paddingBottom:5,children:s.map((e,t)=>(0,r.jsx)(U,{...e},t))}),n&&(0,r.jsx)(W.default,{isLeadCapture:!0,isOpenDialog:n,onCloseDialog:()=>o(!1),context:H.U0.LEAD_CAPTURE})]})};
1var Q=n(75547),X=n(8986);let K={[z.y$.CUSTOMER_COURSE_TO_CONFIRM]:"neutral",[z.y$.CUSTOMER_FAILED_PAYMENT_INFORMATION]:"danger",[z.y$.CUSTOMER_PENDING_TEACHER_EVALUATION]:"successOutline",[z.y$.CUSTOMER_PROPOSED_PRICE_CHANGE]:"muted",...Q.N},Y=(e,t)=>{let n,{type:r,description:i,tag:o}=e,s=t(`notificationTypes.${r}.tag`);switch(r){case z.y$.CUSTOMER_COURSE_TO_CONFIRM:n=B.dG;break;case z.y$.CUSTOMER_FAILED_PAYMENT_INFORMATION:n=B.FL;break;case z.y$.CUSTOMER_PENDING_LINKING:n=B.LM,s=t(`notificationTypes.${r}.lessonStatus.${o}`);break;case z.y$.CUSTOMER_PENDING_TEACHER_EVALUATION:case z.y$.CUSTOMER_PROPOSED_PRICE_CHANGE:n=B.jO}let a=r===z.y$.CUSTOMER_PENDING_LINKING?o:r,l=t(r===z.y$.CUSTOMER_PENDING_LINKING?`notificationTypes.${r}.lessonAction.${o}`:`notificationTypes.${r}.action`);return{href:n,pillVariant:K[a]||"contact",tag:s,description:i,action:l}};function Z(e){let{notifications:t}=e,{t:n}=(0,d.Bd)("customerSpaceDashboard"),o=(0,P.useRouter)(),[s,a]=(0,i.useState)(!1),l=t.length>5,c=s?t:t.slice(0,5),p=t.length-5;return(0,r.jsx)(m.A,{paddingBottom:5,children:(0,r.jsx)(X.Ay,{title:n("pendingOperation",{count:t.length}),count:n("pendingOperationSubtitle"),alert:n("actionsRequired"),footer:l?(0,r.jsx)($.A,{variant:"text",onClick:()=>a(e=>!e),sx:{color:"custom.accent2",fontWeight:500,"&:hover":{color:"custom.ink"}},children:s?n("showLessOperations"):n("showMoreOperations",{count:p})}):null,children:c.map((e,t)=>{let i=Y(e,n);return(0,r.jsx)(X.x3,{index:String(t+1).padStart(2,"0"),title:i.description,sub:(0,r.jsx)(b.A,{variant:"fieldLabel",sx:{fontSize:11,letterSpacing:"0.1em"},children:i.action}),columns:"36px minmax(0, 1fr) 200px auto",status:(0,r.jsx)(Q.A,{variant:i.pillVariant,label:i.tag,sx:{width:{xs:"auto",sm:"100%"},justifyContent:"center"}}),cta:(0,r.jsx)(X.ve,{component:"button",onClick:()=>o.push(i.href),children:n("access")}),mobileCta:(0,r.jsx)(X.ve,{component:"button",fullWidth:!0,onClick:()=>o.push(i.href),children:n("access")})},`${e.type}-${t}`)})})})}function J(){return(0,r.jsx)(m.A,{display:"flex",flexWrap:"wrap",alignItems:{xs:"center",md:"start"},flexDirection:"row",justifyContent:{xs:"center",md:"start"},gap:4,paddingBottom:5,children:[0,1,2].map(e=>(0,r.jsx)(x.A,{variant:"rounded",width:220,height:310,sx:{borderRadius:4}},e))})}Z.propTypes={notifications:s().arrayOf(s().shape({description:s().string.isRequired,type:s().oneOf(Object.values(z.y$)).isRequired,tag:s().string})).isRequired};let ee=e=>`${e(`seasons.${(0,g.oKW)()}`)} ${new Date().getFullYear()}`;function et(e){let{customerFirstname:t,notifications:n=[],notificationsLoaded:i}=e,{t:o}=(0,d.Bd)("customerSpaceDashboard");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.A,{eyebrow:o("header.eyebrow",{period:ee(o)}),title:o("header.greeting",{customerFirstname:t}),lede:i&&n.length>0?o("header.lede",{count:n.length}):null}),i?n.length>0?(0,r.jsx)(Z,{notifications:n}):(0,r.jsx)(V,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{variant:"text",width:300,height:40,sx:{mb:2}}),(0,r.jsx)(J,{})]}),(0,r.jsxs)(m.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:3,marginTop:2},children:[(0,r.jsx)(k,{}),(0,r.jsx)(D,{})]})]})}et.propTypes={customerFirstname:s().string.isRequired,notifications:s().arrayOf(s().shape({description:s().string.isRequired,type:s().oneOf(Object.values(z.y$)).isRequired,tag:s().string})),notificationsLoaded:s().bool.isRequired};let en=(0,h.Ng)(function(e){let t=(0,M.selectUser)(e),n=(0,M.selectMyDotNotifications)(e,Object.values(z.y$)),r=void 0!==e.account.notifications;return{customerFirstname:t.firstname,notifications:n,notificationsLoaded:r}})(et);var er=n(86695);let ei=e=>{let{t}=e;return(0,er.A)(),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l(),{children:(0,r.jsx)("title",{children:t("title")})}),(0,r.jsx)(en,{})]})};ei.propTypes={t:s().func.isRequired};let eo=(0,c.Zz)((0,d.CI)("common"),p.A)(ei);eo.getLayout=e=>(0,r.jsx)(u.A,{children:e});var es=!0;let ea=eo}},e=>{var t=t=>e(e.s=t);e.O(0,[5104,9841,8349,5739,9538,3085,2405,8908,5133,6637,728,1953,7090,8230,5370,7380,4539,8765,9959,2407,1869,5436,4685,8885,3905,1408,1369,391,2961,239,5939,9642,3641,7691,636,6593,8792],()=>t(85577)),_N_E=e.O()}]);
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.