1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7532],{3095:(e,t,o)=>{"use strict";o.d(t,{A:()=>h});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(15039),a=o.n(n),l=o(91238),c=o.n(l),d=o(75919),p=o(74368),u=o(14189),m=o.n(u);function x(e){let{listLength:t,currentPage:o=0,onPageChange:i,pageRangeDisplayed:r=1,marginPagesDisplayed:n=1,nbPerPage:l=4,className:u="",dataTestId:x="cy-pagination"}=e,h=Math.ceil(t/l);return(0,s.jsx)("div",{className:a()(m()["pagination-container"],u),...x&&{"data-testid":x},children:(0,s.jsx)(c(),{pageCount:h,pageRangeDisplayed:r,marginPagesDisplayed:n,onPageChange:e=>{let{selected:t}=e;return i(t+1)},containerClassName:m().pagination,activeLinkClassName:m()["current-page"],activeClassName:m()["current-page"],previousLinkClassName:m()["pagination-arrow"],nextLinkClassName:m()["pagination-arrow"],disabledClassName:m()["pagination-arrow--disabled"],previousLabel:(0,s.jsx)(d.A,{}),nextLabel:(0,s.jsx)(p.A,{}),forcePage:o,disableInitialCallback:!0})})}x.propTypes={currentPage:r().number,listLength:r().number.isRequired,onPageChange:r().func.isRequired,marginPagesDisplayed:r().number,pageRangeDisplayed:r().number,nbPerPage:r().number,className:r().string,dataTestId:r().string};let h=x},5412:(e,t,o)=>{"use strict";o.d(t,{A:()=>j});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(49861),a=o(46707),l=o(79835),c=o(54611),d=o(10745),p=o(90471),u=o(98349),m=o(3777),x=o(85825),h=o(48011),g=o(14805),b=o(82979),y=o(86992);let f={[g.H_.REGISTERED]:{buttonLabelKey:"common.gatedContent.registered.buttonLabel",buttonHref:b.Pe},[g.H_.VISIBLE]:{buttonLabelKey:"common.gatedContent.visible.buttonLabel",buttonHref:b.Pe},[g.H_.ACTIVE]:{buttonLabelKey:"common.gatedContent.active.buttonLabel",buttonHref:b.Pe}};function A(e){let{open:t,onClose:o,title:i,text:r}=e,{t:g}=(0,x.Bd)("teacherSpace"),b=(0,h.d4)(y.selectTeacherCurrentLevel),A=b?f[b]:null;return(0,s.jsxs)(n.A,{open:t,onClose:o,fullWidth:!0,maxWidth:"xs",slotProps:{backdrop:{sx:{backdropFilter:"blur(4px)"}},paper:{sx:{borderTop:"4px solid",borderColor:"primary.main",borderRadius:3}}},children:[(0,s.jsx)(a.A,{onClick:o,"aria-label":"close",sx:{bgcolor:"grey.100","&:hover":{bgcolor:"grey.200"}},children:(0,s.jsx)(m.A,{})}),(0,s.jsx)(l.A,{children:(0,s.jsx)(c.A,{variant:"modalTitle",children:i})}),(0,s.jsx)(d.A,{children:(0,s.jsx)(c.A,{children:r})}),(0,s.jsxs)(p.A,{sx:{flexDirection:"column",alignItems:"center",px:3,pb:2},children:[A&&(0,s.jsx)(u.A,{variant:"contained",color:"primary",fullWidth:!0,component:"a",href:A.buttonHref,children:g(A.buttonLabelKey)}),(0,s.jsx)(c.A,{component:"button",type:"button",onClick:o,sx:{background:"none",border:"none",color:"text.secondary",textDecoration:"underline",cursor:"pointer",fontSize:"14px",mt:0,"&:hover":{color:"text.primary"}},children:g("common.close")})]})]})}A.propTypes={open:r().bool.isRequired,onClose:r().func.isRequired,title:r().string.isRequired,text:r().string.isRequired};let j=A},8655:(e,t,o)=>{"use strict";o.d(t,{W:()=>s});let s=e=>e},14189:e=>{e.exports={"pagination-container":"_style_pagination-container__yQopR",pagination:"_style_pagination__wRvLv","pagination-next-prev":"_style_pagination-next-prev__xKk_2","pagination-icon":"_style_pagination-icon__3N6DZ",blank:"_style_blank__gna5w",section:"_style_section__i5xXF",gray:"_style_gray__rS7gJ","pagination-arrow":"_style_pagination-arrow__M2BdJ","current-page":"_style_current-page__lGGGm","pagination-arrow--disabled":"_style_pagination-arrow--disabled__fhTJG"}},15368:(e,t,o)=>{"use strict";o.d(t,{A:()=>P});var s=o(37876),i=o(14232),r=o(95062),n=o.n(r),a=o(14868),l=o(54611),c=o(98349),d=o(23652),p=o(85825),u=o(48011),m=o(14805),x=o(82979),h=o(86992),g=o(8655);let b=()=>(0,g.W)({gatedBody:()=>({position:"relative",overflow:"hidden"}),gatedBlur:()=>({position:"absolute",inset:0,filter:"blur(4px)",pointerEvents:"none",userSelect:"none"}),gatedOverlay:()=>({position:"relative",zIndex:1,background:"rgba(255, 255, 255, 0.70)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"12px",padding:"10px 24px",textAlign:"center"}),imageFrame:e=>({border:`2px solid ${e.palette.custom.taupeGrey}`,borderRadius:"10px",padding:"10px",display:"inline-flex",alignItems:"center",justifyContent:"center"}),imageWrapper:()=>({position:"relative",width:40,height:40}),ctaImage:()=>({width:40,height:40,objectFit:"contain",filter:"brightness(0) invert(0.55)"}),ctaImageStacked:()=>({position:"absolute",inset:0,width:40,height:40,objectFit:"contain",filter:"brightness(0) invert(0.55)",transition:"opacity 1s ease-in-out"}),ctaPrimary:()=>({fontWeight:700}),placeholderRow:e=>({display:"flex",alignItems:"center",gap:"16px",width:"100%",[e.breakpoints.down("md")]:{flexWrap:"wrap"}}),placeholderIcon:e=>({fontSize:50,color:e.palette.custom.taupeGrey,flexShrink:0}),placeholderText:e=>({flex:1,minWidth:0,color:e.palette.text.secondary,[e.breakpoints.down("md")]:{"& .MuiTypography-root":{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:"15px",lineHeight:1.3}}}),placeholderButton:e=>({flexShrink:0,[e.breakpoints.down("md")]:{maxWidth:100}})}),y={lock:["/images/ouvrir-le-cadenas.svg","/images/verrouillage.svg"],empty:["/images/loupe.svg"]},f=["Cours de math\xe9matiques niveau terminale â Pr\xe9paration au baccalaur\xe9at, r\xe9vision des fonctions et probabilit\xe9s.","Soutien scolaire en physique-chimie pour \xe9l\xe8ve de premi\xe8re â M\xe9canique newtonienne et cin\xe9tique chimique.","Aide aux devoirs en fran\xe7ais, coll\xe8ge 3e â M\xe9thodologie de la dissertation et commentaire de texte.","Cours particuliers d'anglais niveau lyc\xe9e â Pr\xe9paration aux certifications Cambridge et TOEFL."];function A(e){let{classes:t,index:o}=e,i=f[o%f.length];return(0,s.jsx)("li",{children:(0,s.jsxs)(a.A,{sx:t.placeholderRow,children:[(0,s.jsx)(d.A,{sx:t.placeholderIcon}),(0,s.jsx)(a.A,{sx:t.placeholderText,children:(0,s.jsx)(l.A,{variant:"body1",noWrap:!1,children:i})}),(0,s.jsx)(c.A,{variant:"contained",color:"primary",sx:t.placeholderButton,children:"R\xe9pondre"})]})})}function j(e){let{type:t,classes:o}=e,r=y[t],[n,l]=(0,i.useState)(!0);return((0,i.useEffect)(()=>
1{if(!r||r.length<2)return;let e=setInterval(()=>{l(e=>!e)},2e3);return()=>clearInterval(e)},[r]),r)?1===r.length?(0,s.jsx)(a.A,{sx:o.imageFrame,children:(0,s.jsx)(a.A,{component:"img",src:r[0],alt:"",sx:o.ctaImage})}):(0,s.jsx)(a.A,{sx:o.imageFrame,children:(0,s.jsxs)(a.A,{sx:o.imageWrapper,children:[(0,s.jsx)(a.A,{component:"img",src:r[0],alt:"",sx:[o.ctaImageStacked,{opacity:+!!n}]}),(0,s.jsx)(a.A,{component:"img",src:r[1],alt:"",sx:[o.ctaImageStacked,{opacity:+!n}]})]})}):null}A.propTypes={classes:n().object.isRequired,index:n().number.isRequired},j.propTypes={type:n().oneOf(["lock","empty"]).isRequired,classes:n().object.isRequired};let _={[m.H_.CREATED]:{subTitleKey:"common.gatedContent.created.subTitle",buttonLabelKey:"common.gatedContent.created.buttonLabel",buttonHref:x.Pe},[m.H_.REGISTERED]:{subTitleKey:"common.gatedContent.registered.subTitle",buttonLabelKey:"common.gatedContent.registered.buttonLabel",buttonHref:x.Pe},[m.H_.VISIBLE]:{subTitleKey:"common.gatedContent.visible.subTitle",buttonLabelKey:"common.gatedContent.visible.buttonLabel",buttonHref:x.Pe},[m.H_.ACTIVE]:{subTitleKey:"common.gatedContent.active.subTitle",buttonLabelKey:"common.gatedContent.active.buttonLabel",buttonHref:x.Pe}};function T(e){let{type:t="lock",ctaTextPrimary:o,ctaTextSecondary:i,ctaButtonLabel:r=null,ctaButtonHref:n=null,dataTestId:d="cy-gated-content"}=e,m=b(),{t:x}=(0,p.Bd)("teacherSpace"),g=(0,u.d4)(h.selectTeacherCurrentLevel),y="lock"===t&&g?_[g]:null,T=i||(y?x(y.subTitleKey):void 0),P=r||(y?x(y.buttonLabelKey):null),v=n||(y?y.buttonHref:null);return(0,s.jsxs)(a.A,{sx:m.gatedBody,"data-testid":d,children:[(0,s.jsx)(a.A,{sx:m.gatedBlur,"aria-hidden":"true",children:(0,s.jsx)("ul",{className:"dashboard-box-list",children:f.map((e,t)=>(0,s.jsx)(A,{index:t,classes:m},t))})}),(0,s.jsxs)(a.A,{sx:m.gatedOverlay,children:[(0,s.jsx)(j,{type:t,classes:m}),(0,s.jsx)(l.A,{variant:"h4",sx:m.ctaPrimary,children:o}),T&&(0,s.jsx)(l.A,{variant:"body1",color:"text.secondary",children:T}),P&&v&&(0,s.jsx)(c.A,{variant:"contained",color:"primary",component:"a",href:v,children:P})]})]})}T.propTypes={type:n().oneOf(["lock","empty"]),ctaTextPrimary:n().string.isRequired,ctaTextSecondary:n().string,ctaButtonLabel:n().string,ctaButtonHref:n().string,dataTestId:n().string};let P=T},21874:(e,t,o)=>{"use strict";o.d(t,{MY:()=>a,TA:()=>n,t9:()=>l,tt:()=>r});var s=o(95062),i=o.n(s);let r=i().shape({value:i().any.isRequired,label:i().string.isRequired}),n=i().shape({id:i().number.isRequired,name:i().string.isRequired}),a=i().shape({id:i().number,name:i().string});function l(e){return i().oneOf(Object.values(e))}},23863:(e,t,o)=>{"use strict";o.r(t),o.d(t,{__N_SSP:()=>eJ,default:()=>eZ});var s=o(37876),i=o(85825),r=o(77328),n=o.n(r),a=o(95062),l=o.n(a),c=o(14232),d=o(10958),p=o(11044),u=o(14868),m=o(48011),x=o(49693),h=o(3095),g=o(5652),b=o(71677),y=o(49676),f=o(91547),A=o(86992),j=o(14805),_=o(22256),T=o(82979),P=o(25079),v=o(61495),I=o(82367);function R(e){let{height:t}=e,o=(0,I.A)(),i=(0,P.A)(o.breakpoints.down("md"));return(0,s.jsx)(u.A,{className:"dashboard-box-list",sx:t?{height:t,minHeight:t,overflowY:"hidden"}:{},children:[...Array(x.PROPOSALS_PER_PAGE)].map((e,t)=>(0,s.jsxs)(u.A,{display:"flex",flexDirection:i?"column":"row",justifyContent:"space-between",alignItems:"center","data-testid":"cy-content-proposal",sx:{padding:1},children:[(0,s.jsxs)(u.A,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",sx:{margin:1,minWidth:"100px",width:"100px"},children:[(0,s.jsx)(v.A,{variant:"circular",width:"70px",height:"70px"}),(0,s.jsx)(v.A,{variant:"text",width:"100%"})]}),(0,s.jsxs)(u.A,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left",flexGrow:1,sx:{width:"100%"},children:[(0,s.jsxs)(u.A,{display:"flex",flexDirection:i?"column":"row",alignItems:"center",sx:{width:"100%"},children:[(0,s.jsx)(v.A,{variant:"text",width:"100%"}),(0,s.jsx)(v.A,{variant:"rectangular",width:"100%"})]}),(0,s.jsx)(v.A,{variant:"text",width:"100%"}),(0,s.jsx)(v.A,{variant:"text",width:"90%"}),(0,s.jsx)(v.A,{variant:"text",width:"80%"})]}),(0,s.jsx)(v.A,{variant:"rectangular"})]},`my-proposals-list-skeleton-mobile-${t}`))})}R.propTypes={height:l().string};var C=o(78933),S=o(21874);let E=l().shape({id:l().number,course_format:l().string.isRequired,lesson_request_comment:l().string,lesson_request_id:l().number.isRequired,origin:l().string,
1sales_user:l().shape({name:l().string.isRequired}),scholar_level:l().string.isRequired,status:l().string.isRequired,status_comment:l().string,subject:l().string.isRequired});l().shape({id:l().number.isRequired,course_format:(0,S.t9)(C.Vj).isRequired,sending_date:l().string,customer_response:(0,S.t9)(C.Jj).isRequired,salary:l().number.isRequired,scholar_level:S.TA.isRequired,self_employed:l().bool,student:S.TA.isRequired,subject:S.TA.isRequired,teacher_response:(0,S.t9)(C.Du).isRequired,questionnaire:l().shape({id:l().number.isRequired,items:l().arrayOf(l().shape({id:l().number.isRequired,question:l().string.isRequired,response:l().array,icon_name:l().string.isRequired,item_format:l().string.isRequired})).isRequired}),address:l().string,description:l().string,distance:l().number,refusal_type_id:l().number,condition_type_id:l().number,teacher_comments:l().string,teacher_response_time:l().string});var w=o(5412),q=o(62410),k=o(57733),O=o(85436),D=o(54611),L=o(4467),N=o(44654),F=o(29156),H=o(75547),W=o(26975),M=o(94127),z=o(82418),U=o(61877),B=o(49037),$=o(30434),Q=o(19166),G=o(56557),Y=o.n(G);let K=(e,t,o)=>{switch(t){case L.HT.ACCEPTED:return e("dashboard.myPropositions.tagHint.customer_proposal_pending");case L.HT.ACCEPTED_UNDER_CONDITION:case L.HT.REFUSED:case L.HT.CLARIFICATIONS_REQUESTED:return o;case L.HT.CANCELLED:return e("dashboard.myPropositions.tagHint.teacher_proposal_cancelled");case L.HT.OTHER_TEACHER_SELECTED:return e("dashboard.myPropositions.tagHint.customer_proposal_refused");case L.HT.SELECTED:return e("dashboard.myPropositions.tagHint.customer_proposal_accepted");default:return null}},V=e=>{if(!e)return null;let t=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(e),o=t?(0,Q.A)(`${t[3]}-${t[2]}-${t[1]}`):(0,Q.A)(e);return o.isValid()?o:null},X=[L.HT.PENDING,L.HT.CLARIFICATIONS_REQUESTED],J=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"12",cy:"8",r:"4"}),(0,s.jsx)("path",{d:"M4 21a8 8 0 0 1 16 0"})]}),Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return("string"==typeof e?e:"").split(" ").filter(Boolean).map(e=>e[0]).slice(0,2).join("").toUpperCase()||"?"};function ee(e){let{proposal:t,selectProposal:o,selectApplicationOpportunity:r,variant:n="archive",available:a=!0}=e,{t:l}=(0,i.Bd)("teacherSpace"),d=(0,c.useCallback)(()=>{t.id?(o(t.id),X.includes(t.status)&&(0,_.OFD)("offer_read")):(r(t.lesson_request_id),(0,_.OFD)("jobboard_read"))},[t,o,r]),p=(0,_.Zrt)(l("dashboard.myPropositions.proposal.title",{subject:t.subject,scholar_level:t.scholar_level})),m=t.lesson_request_comment&&(0,_.y9r)(t.lesson_request_comment.replace(/\n/g," ").replace(/\s\s+/g," "),250),x=K(l,t.status,t.status_comment),h=l(X.includes(t.status)?t.origin===N.j9.APPLICATION?"dashboard.myPropositions.applicate":"dashboard.myPropositions.respond":"dashboard.myPropositions.see"),g=V(t.date||t.sending_date),b=g?g.fromNow():null,y=g?g.format("ddd D MMM \xb7 HH:mm"):null,f=l(`dashboard.myPropositions.proposal.originCategory.${t.origin}`),A=t.student_identity?.trim()||null,j=Z(A||t.sales_user?.name||t.subject),T=t.course_format===N.X3.ONLINE,P=(0,s.jsx)(O.A,{variant:"meta",label:(0,s.jsxs)(u.A,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"6px"},children:[T?(0,s.jsx)(M.A,{sx:{fontSize:11}}):(0,s.jsx)(z.A,{sx:{fontSize:11}}),l(`dashboard.myStudents.${t.course_format}`)]})}),v=(0,s.jsx)(H.A,{variant:(()=>{switch(t.status){case L.HT.ACCEPTED:case L.HT.ACCEPTED_UNDER_CONDITION:case L.HT.SELECTED:return"review";case L.HT.PENDING:return"search";case L.HT.REFUSED:case L.HT.CLARIFICATIONS_REQUESTED:return"contact";case L.HT.OTHER_TEACHER_SELECTED:case L.HT.CANCELLED:return"muted";default:return"neutral"}})(),label:l(t.origin===N.j9.APPLICATION&&t.status===L.HT.ACCEPTED?`dashboard.myPropositions.proposal.statusApplication.${t.status}`:`dashboard.myPropositions.proposal.status.${t.status}`),"data-testid":"cy-content-proposal-tag"}),I=x?(0,s.jsx)(F.A,{title:x,placement:"top-start",node:v}):v;return"pending"===n?(0,s.jsxs)(u.A,{component:"article","data-testid":"cy-content-proposal",sx:e=>({display:"flex",flexDirection:"column",bgcolor:"background.paper",border:`1.5px solid ${e.palette.custom.ink}`,borderRadius:"6px",padding:"22px 24px 20px",transition:"transform 200ms ease, box-shadow 200ms ease","&:hover":{transform:"translateY(-2px)",boxShadow:"var(--gr-shadow-card-hover)"}}),children:[(0,s.jsxs)(u.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.25,mb:1.5},children:[(0,s.jsx)($.A,{size:"xs",gap:1.25,initials:j,eyebrow:f,title:A?l("dashboard.myPropositions.proposal.forStudent",{name:A}):null,titleProps:{"data-testid":"cy-content-proposal-source-name",sx:{fontSize:13,fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}),b&&(0,s.jsx)(D.A,{component:"span","data-testid":"cy-content-proposal-received-date",sx:e=>({fontFamily:e.typography.monoFontFamily,fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase",color:"custom.muted",fontWeight:500,whiteSpace:"nowrap",flexShrink:0}),children:b})]}),(0,s.jsx)(D.A,{component:"h3","data-testid":"cy-content-proposal-title",sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:22,fontWeight:600,color:"custom.ink",lineHeight:1.2,letterSpacing:"-0.005em",mb:1}),children:p}),(0,s.jsx)(u.A,{sx:{display:"flex",flexWrap:"wrap",gap:"6px",mb:1.5},"data-testid":"cy-content-proposal-course-format",children:P}),(0,s.jsx)(u.A,{sx:{display:"flex",alignItems:"center",gap:1.25,flexWrap:"wrap",mb:1.5},children:I}),m&&(0,s.jsx)(u.A,{sx:{flex:1,m:"4px 0 18px",p:"14px 16px",bgcolor:"custom.paper2",borderRadius:"4px",borderLeft:"2px s
1olid",borderColor:"custom.line2"},children:(0,s.jsxs)(D.A,{sx:e=>({fontFamily:e.typography.serifFontFamily,fontStyle:"italic",fontSize:14,color:"custom.ink",lineHeight:1.5}),children:["\xab ",m," \xbb"]})}),(0,s.jsxs)(u.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,flexWrap:"wrap",mt:"auto",pt:2,borderTop:"1px solid",borderColor:"custom.line"},children:[y?(0,s.jsx)(D.A,{component:"span","data-testid":"cy-content-proposal-received-at",sx:e=>({fontFamily:e.typography.monoFontFamily,fontSize:10,letterSpacing:"0.1em",textTransform:"uppercase",color:"custom.muted",fontWeight:500}),children:l("dashboard.myPropositions.receivedAt",{datetime:y})}):(0,s.jsx)("span",{}),(0,s.jsx)(B.A,{variant:"contained",onClick:d,disabled:!a,children:h})]})]}):"opportunity"===n?(0,s.jsxs)(u.A,{"data-testid":"cy-content-proposal",sx:e=>({display:"grid",gridTemplateColumns:"56px minmax(0, 1fr) auto",alignItems:"center",gap:2.75,padding:"18px 24px",borderBottom:`1px solid ${e.palette.custom.line}`,transition:"background 150ms ease","&:last-of-type":{borderBottom:0},"&:hover":{bgcolor:"custom.paper2"},[e.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",gap:1.5,padding:"18px"}}),children:[(0,s.jsx)(u.A,{sx:e=>({width:56,height:56,borderRadius:"4px",bgcolor:"custom.paper2",border:`1px dashed ${e.palette.custom.line2}`,display:"grid",placeItems:"center",color:"custom.ink3",[e.breakpoints.down("sm")]:{display:"none"}}),children:(0,s.jsx)(W.A,{size:22,strokeWidth:1.6,children:J})}),(0,s.jsxs)(u.A,{sx:{minWidth:0},children:[(0,s.jsxs)(u.A,{sx:{display:"flex",alignItems:"center",gap:1.25,flexWrap:"wrap",mb:.5},children:[(0,s.jsx)(D.A,{component:"span","data-testid":"cy-content-proposal-title",sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:18,fontWeight:600,color:"custom.ink",lineHeight:1.25,letterSpacing:"-0.005em"}),children:p}),(0,s.jsx)(u.A,{component:"span","data-testid":"cy-content-proposal-course-format",children:P})]}),m&&(0,s.jsx)(D.A,{sx:{fontSize:13,color:"text.secondary",lineHeight:1.5,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:m})]}),(0,s.jsx)(u.A,{sx:e=>({justifySelf:"end",[e.breakpoints.down("sm")]:{justifySelf:"stretch"}}),children:(0,s.jsx)(B.A,{variant:"contained",onClick:d,disabled:!a,sx:e=>({bgcolor:"custom.accent","&:hover":{bgcolor:e.palette.custom.accent2}}),children:h})})]}):(0,s.jsxs)(u.A,{"data-testid":"cy-content-proposal",sx:e=>({display:"grid",gridTemplateColumns:"32px minmax(0, 1fr) auto",alignItems:"center",gap:2.25,padding:"14px 22px",borderBottom:`1px solid ${e.palette.custom.line}`,transition:"background 150ms ease","&:last-of-type":{borderBottom:0},"&:hover":{bgcolor:"custom.paper2"},[e.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",gap:1.25,padding:"16px 18px"}}),children:[(0,s.jsx)(u.A,{sx:e=>({width:32,height:32,borderRadius:"50%",bgcolor:"custom.paper2",border:`1px solid ${e.palette.custom.line}`,display:"grid",placeItems:"center",color:"custom.ink3",[e.breakpoints.down("sm")]:{display:"none"}}),children:(0,s.jsx)(U.A,{sx:{fontSize:14}})}),(0,s.jsxs)(u.A,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap",minWidth:0},children:[(0,s.jsx)(D.A,{component:"span","data-testid":"cy-content-proposal-title",sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:15,fontWeight:600,color:"custom.ink",letterSpacing:"-0.005em"}),children:p}),(0,s.jsx)(u.A,{component:"span","data-testid":"cy-content-proposal-course-format",children:P}),I]}),(0,s.jsx)(u.A,{sx:e=>({justifySelf:"end",[e.breakpoints.down("sm")]:{justifySelf:"stretch"}}),children:(0,s.jsx)(B.A,{withArrow:!1,variant:"outlined",onClick:d,children:h})})]})}ee.propTypes={selectProposal:l().func.isRequired,selectApplicationOpportunity:l().func.isRequired,variant:l().oneOf(["pending","opportunity","archive"]),proposal:l().shape({id:l().number,course_format:l().string.isRequired,lesson_request_comment:l().string,lesson_request_id:l().number.isRequired,origin:l().string,sales_user:l().shape({name:l().string.isRequired}),student_identity:l().string,scholar_level:l().string.isRequired,status:l().string.isRequired,status_comment:l().string,
1subject:l().string.isRequired,date:l().string,sending_date:l().string}).isRequired,available:l().bool};var et=o(49861),eo=o(46707),es=o(79835),ei=o(10745),er=o(32800),en=o(90471),ea=o(98349),el=o(43378),ec=o(3777);let ed="google-material-icons-outlined";var ep=o(58908),eu=o(28389),em=o(1483),ex=o(15929),eh=o(79701),eg=o(81302),eb=o(79061),ey=o(12547),ef=o(44838),eA=o(6957);function ej(e){let{proposal:t,handleClose:o,onIgnoreOpportunity:r,handleSelectResponse:n}=e,{t:a}=(0,i.Bd)(["teacherSpace","common"]),[l,d]=(0,c.useState)(null),p=!!l,m=l?l.offsetWidth:0,x=l?l.getBoundingClientRect().left:0,h=!t.id,g=(0,c.useCallback)(()=>{n(L.HT.ACCEPTED)},[n]),b=(0,c.useCallback)(()=>n(L.HT.ACCEPTED_UNDER_CONDITION),[n]),y=(0,c.useCallback)(()=>n(L.HT.CLARIFICATIONS_REQUESTED),[n]),f=(0,c.useCallback)(()=>n(L.HT.REFUSED),[n]),A=(0,c.useCallback)(()=>n(L.HT.APPLICATE),[n]),j=(0,c.useCallback)(()=>{o(),n(L.HT.IGNORED),r(t.lesson_request_id)},[o,r,t.lesson_request_id,n]),_=h?{applicate:{action:A,icon:(0,s.jsx)(eA.A,{fontSize:"small"})},ignore:{action:j,icon:(0,s.jsx)(ec.A,{fontSize:"small"})}}:{accepted:{action:g,icon:(0,s.jsx)(U.A,{fontSize:"small"})},accepted_if:{action:b,icon:(0,s.jsx)(eb.A,{fontSize:"small"})},clarifications_requested:{action:y,icon:(0,s.jsx)(eg.A,{fontSize:"small"})},refused:{action:f,icon:(0,s.jsx)(ec.A,{fontSize:"small"})}},T=e=>{(0,_[e].action)()};return(0,s.jsxs)(u.A,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,width:"100%",children:[(0,s.jsx)(ea.A,{id:"basic-button",variant:"contained",fullWidth:!0,"aria-controls":p?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":p?"true":void 0,onClick:e=>{d(e.currentTarget)},endIcon:p?(0,s.jsx)(ef.A,{}):(0,s.jsx)(ey.A,{}),children:a("dashboard.myPropositions.answerToOffer")}),(0,s.jsx)(ep.A,{id:"basic-menu",anchorEl:l,open:p,onClose:()=>d(null),MenuListProps:{"aria-labelledby":"basic-button"},transitionDuration:{exit:0},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},sx:{zIndex:9999,width:"100%",left:0,"& .MuiPaper-root":{left:`${x}px`,width:`${m}px`,maxWidth:"unset"}},children:Object.keys(_).map(e=>(0,s.jsx)(eu.Ay,{onClick:()=>T(e),sx:{padding:0},children:(0,s.jsxs)(em.A,{sx:{height:"100%",width:"100%",color:"text.primary","&:hover":{color:"custom.accent2","& .MuiListItemIcon-root":{color:"custom.accent2"}},"& .MuiListItemIcon-root":{color:"text.primary"}},children:[(0,s.jsx)(ex.A,{children:_[e].icon}),(0,s.jsx)(eh.A,{primaryTypographyProps:{style:{fontSize:"15px"}},primary:a(`dashboard.myPropositions.actions.${e}`)})]})},e))})]})}ej.propTypes={proposal:l().object.isRequired,onIgnoreOpportunity:l().func.isRequired,handleClose:l().func.isRequired,handleSelectResponse:l().func.isRequired};let e_=(0,m.Ng)(null,function(e){return{onIgnoreOpportunity:t=>e(b.vI.ignoreOpportunity({id:t,comments:""}))}})(ej);var eT=o(62811),eP=o(7090),ev=o(54883),eI=o(75370),eR=o(3285),eC=o(40728);function eS(e){let{iconName:t,question:o,response:i}=e;return(0,s.jsxs)(u.A,{children:[(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px",marginBottom:.5},children:[(0,s.jsx)(eR.A,{baseClassName:"material-icons-outlined",size:"small",children:t}),(0,s.jsx)(D.A,{sx:{fontWeight:"bold"},children:o})]}),(0,s.jsx)(D.A,{children:i})]})}eS.propTypes={iconName:l().string.isRequired,question:l().string.isRequired,response:l().string.isRequired};var eE=o(25929),ew=o(68679);function eq(e){let{items:t=[]}=e,{t:o}=(0,i.Bd)("teacherSpace"),r=t.filter(e=>e.response&&e.response.length>0),n=(0,c.useCallback)((e,t,s)=>{let i="";switch(s){case ew.N.DESIRED_START_DATE:{let t=Y()(e[0]),s=Y()().startOf("day");i=t.isSame(s)||t.isBefore(s)?o("dashboard.myPropositions.proposal.asap"):t.format("DD/MM/YYYY");break}case ew.N.DEFAULT:default:switch(t){case ew.I.DISPONIBILITY:i=e.map(e=>{let[t,s]=e.split("_");return`${o(`common:day.${t}`)} ${o(`common:dayTime.${s}`).toLowerCase()}`}).join(", ");break;case ew.I.CODIFICATION_UNIQUE:case ew.I.CODIFICATION_MULTIPLE:case ew.I.CUSTOM_UNIQUE:case ew.I.CUSTOM_MULTIPLE:i=e.map(e=>e.name).join(", ");break;case ew.I.DATE:i=Y()(e[0]).format("DD/MM/YYYY");break;default:i=e.join(", ")}}return e.length>1?`${i}.`:i},[o]);return r.length>0&&r.map(e=>{let{question:t,response:o,item_format:i,type:r}=e,a=n(o,i,r);return(0,s.jsx)(eS,{iconName:e.icon_name,question:t,response:a},t)})}eq.propTypes={items:l().arrayOf(l().shape({question:l().string.isRequired,item_format:l().string.isRequired,response:l().array,icon_name:l().string.isRequired}))};var ek=o(81815),eO=o(92869);
1function eD(e){let{teacherComment:t="",selectedResponse:o=null,setResponseTypeId:r,responseTypeId:n=null,setTeacherComment:a,errors:l=[],refuseTypes:d=[],conditionTypes:p=[],proposal:m,teacherAddress:x,isTeacherBookableOnline:h=!0}=e,{t:g}=(0,i.Bd)(["teacherSpace","common","forms"]),b=(0,I.A)(),y=(0,P.A)(b.breakpoints.down("md")),[f,A]=(0,c.useState)(!1),j=p.find(e=>e.id===n)?.switch_to_online,_=o===L.HT.REFUSED?d:p.filter(e=>m.course_format===N.X3.OFFLINE||!e.switch_to_online),T=m.course_format===N.X3.OFFLINE&&(o===L.HT.ACCEPTED||o===L.HT.ACCEPTED_UNDER_CONDITION&&!j);return o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eT.A,{icon:!1,severity:"info",sx:{marginBottom:2},children:(0,s.jsx)(D.A,{variant:"body1",sx:{marginBottom:2},children:(0,s.jsx)(i.x6,{i18nKey:`teacherSpace:dashboard.myPropositions.proposal.confirmationExplanations.${o}`,values:{offlineCourseLabel:T?g("teacherSpace:dashboard.myPropositions.proposal.confirmationExplanations.offlineCourse",{address:m.address}):""},components:{b:(0,s.jsx)("b",{})}})})}),[L.HT.REFUSED,L.HT.ACCEPTED_UNDER_CONDITION].includes(o)&&(0,s.jsx)(eP.A,{id:"condition-selector",onChange:e=>r(e.target.value),displayEmpty:!0,defaultValue:"",renderValue:e=>{let t;if(e){let o=_.find(t=>t.id===e);t=o?o.name:""}else t=(0,s.jsx)(D.A,{fontSize:16,color:"text.disabled",children:g("common:chooseOption")});return t},sx:{marginBottom:2,width:"100%"},children:_.map(e=>{let t=e.switch_to_online&&!h;return(0,s.jsxs)(ev.A,{value:e.id,disabled:t,sx:{whiteSpace:"normal",wordWrap:"break-word"},children:[e.name,t&&(0,s.jsxs)(D.A,{variant:"caption",color:"text.secondary",sx:{marginLeft:1,fontStyle:"italic"},children:["(",g("dashboard.myPropositions.proposal.formatChangeDisabled"),")"]})]},e.id)})}),(0,s.jsx)(eI.A,{id:"conditionText",multiline:!0,rows:8,placeholder:g("dashboard.myPropositions.proposal.teacherCommentPlaceholder"),inputProps:{"aria-label":g("dashboard.myPropositions.proposal.teacherCommentPlaceholder")},value:t,onChange:e=>a(e.target.value)}),(0,s.jsx)(u.A,{children:l.length>0&&(0,s.jsx)(eT.A,{icon:!1,severity:"error",children:l.map((e,t)=>(0,s.jsx)(D.A,{children:e},t))})})]}):(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[m.status!==L.HT.PENDING&&(0,s.jsx)(eS,{iconName:"flag",question:g("dashboard.myPropositions.proposal.status.title"),response:K(g,m.status,m.status_comment)}),(0,s.jsxs)(u.A,{children:[(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px",marginBottom:.5},children:[(0,s.jsx)(eR.A,{baseClassName:"material-icons-outlined",children:"filter_center_focus"}),(0,s.jsx)(D.A,{sx:{fontWeight:"bold"},children:g("dashboard.myPropositions.proposal.origin.title")})]}),(0,s.jsx)(u.A,{sx:{display:"flex",flexDirection:"row"},children:(0,s.jsxs)(D.A,{children:[g(`dashboard.myPropositions.proposal.origin.${m.origin}`,{userName:m.sales_user?.name?m.sales_user.name:"Gr"}),m.out_preferences&&(0,s.jsxs)(s.Fragment,{children:[g("dashboard.myPropositions.outOfPreferences.title"),(0,s.jsx)(eC.A,{title:g("dashboard.myPropositions.outOfPreferences.explanations"),children:(0,s.jsx)(eE.A,{fontSize:"small",sx:{marginLeft:.5}})})]})]})})]}),(0,s.jsx)(eS,{iconName:"book",question:g("common:subject"),response:m.subject}),(0,s.jsx)(eS,{iconName:"school",question:g("common:scholarLevel"),response:m.scholar_level}
1),(0,s.jsx)(eS,{iconName:"computer",question:g("common:courseFormat"),response:g(`dashboard.myStudents.${m.course_format}`)}),m.address&&(0,s.jsxs)(u.A,{children:[(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"5px",marginBottom:.5},children:[(0,s.jsx)(eR.A,{baseClassName:"material-icons-outlined",children:"fmd_good"}),(0,s.jsx)(D.A,{sx:{fontWeight:"bold"},children:g("common:address")})]}),(0,s.jsx)(D.A,{children:m.address}),(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:y?"column":"row",alignItems:y?"right":"center",gap:+!y},children:[(0,s.jsx)(D.A,{children:g("dashboard.myPropositions.proposal.distance",{distance:m.distance})}),(0,s.jsx)(ek.A,{open:f,onToggle:()=>A(e=>!e),controls:"proposal-response-map","data-testid":"cy-content-proposal-map-link",sx:{fontSize:"inherit"},children:g(f?"dashboard.myPropositions.proposal.hideItinary":"dashboard.myPropositions.proposal.showItinary")})]}),(0,s.jsx)(u.A,{id:"proposal-response-map",hidden:!f,children:f&&(0,s.jsx)(eO.A,{origin:x,destination:m?.address,title:g("dashboard.myPropositions.proposal.mapTitle"),height:{xs:300,md:450},sx:{mt:2},testId:"cy-content-proposal-map"})})]}),(0,s.jsx)(eS,{iconName:"euro",question:g("common:salary"),response:g("dashboard.myPropositions.proposal.salary",{salary:m.salary})}
1),m.lesson_request_comment&&(0,s.jsx)(eS,{iconName:"comment",question:g("dashboard.myPropositions.proposal.requestComment"),response:m.lesson_request_comment}),m.questionnaire&&(0,s.jsx)(eq,{items:m.questionnaire.items})]})}function eL(e){let{proposalId:t=null,applicationOpportunityId:o=null,onClose:r,isLoading:n,resetSelectedProposal:a,resetSelectedApplicationOpportunity:l,getSelectedProposal:d,getSelectedApplicationOpportunity:p,onAccept:m,onAcceptIf:x,onRefuse:h,onRequestClarifications:g,onApplicateOpportunity:b,proposal:y=null,refuseTypes:f=[],conditionTypes:A=[],isPosting:j,isPostSuccess:v,isPostError:R,postErrors:C=[],teacherAddress:S="",isTeacherBookableOnline:E=!0}=e,{t:w}=(0,i.Bd)(["teacherSpace","common","forms"]),q=(0,I.A)(),k=(0,P.A)(q.breakpoints.down("md"));!function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(0,c.useEffect)(()=>{if(!e||"undefined"==typeof document||document.getElementById(ed))return;let t=document.createElement("link");t.id=ed,t.rel="stylesheet",t.href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined",document.head.appendChild(t)},[e])}(!!t||!!o);let[O,N]=(0,c.useState)(null),[F,H]=(0,c.useState)(null),[W,M]=(0,c.useState)(""),[z,U]=(0,c.useState)([]),[B,$]=(0,c.useState)(null),G=f.find(e=>e.id===F&&O===L.HT.REFUSED)?.disponibility,Y=(0,c.useCallback)(()=>{N(null),H(null),M(""),U([])},[]),K=(0,c.useCallback)(()=>{a(),l(),Y(),r(),$(!1)},[a,l,Y,r]),V=()=>L.HT.ACCEPTED_UNDER_CONDITION===O?!!F&&""!==W:L.HT.REFUSED===O?!!F:L.HT.CLARIFICATIONS_REQUESTED!==O||""!==W,X=async()=>{V()?await J():U([w("forms:errorFormIncomplete")])},J=(0,c.useCallback)(()=>{let e=y?.id,t=y?.lesson_request_id;switch(O){case L.HT.ACCEPTED:m(e,W);break;case L.HT.ACCEPTED_UNDER_CONDITION:x(y.id,F,W);break;case L.HT.CLARIFICATIONS_REQUESTED:g(e,W);break;case L.HT.REFUSED:h(y.id,F,W);break;case L.HT.APPLICATE:b(t,W)}},[O,m,x,g,h,b,y,F,W]),Z=(0,_.Zrt)(w("dashboard.myPropositions.proposal.title",{subject:y?.subject,scholar_level:y?.scholar_level})),ee=y?(0,Q.A)(y?.date).format("dddd DD MMMM YYYY"):"";return(0,c.useEffect)(()=>{R&&U([...new Set(C.map(e=>w(e,{defaultValue:w("forms:error")})))])},[R,C]),(0,c.useEffect)(()=>{if(v){switch(O){case L.HT.ACCEPTED:(0,_.TTr)("offer_accepted");break;case L.HT.ACCEPTED_UNDER_CONDITION:(0,_.TTr)("offer_accepted_with_condition");break;case L.HT.CLARIFICATIONS_REQUESTED:(0,_.TTr)("offer_ask_more_information");break;case L.HT.REFUSED:(0,_.TTr)("offer_refused");break;case L.HT.APPLICATE:(0,_.TTr)("jobboard_applied");break;case L.HT.IGNORED:(0,_.TTr)("jobboard_not_interested")}O===L.HT.REFUSED&&G?$(w("forms:refusalConfirmation.updateDisponibility.text")):K()}},[v,K,O,G]),(0,c.useEffect)(()=>{!y&&t&&d(t)},[t,y]),(0,c.useEffect)(()=>{y||t||!o||p(o)},[o,y]),(0,s.jsxs)(et.A,{open:!!t||!!o,fullWidth:!0,maxWidth:"sm",fullScreen:k,children:[(0,s.jsx)(eo.A,{onClick:K,"aria-label":"close",children:(0,s.jsx)(ec.A,{})}),(0,s.jsx)(es.A,{children:B?(0,s.jsx)(D.A,{variant:"h3",component:"div",children:w("forms:refusalConfirmation.title")}):y&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(D.A,{variant:"h3",component:"div",sx:{fontWeight:"bold",marginBottom:1},children:Z}),(0,s.jsx)(D.A,{variant:"h5",component:"div",sx:{color:"text.secondary"},children:w("dashboard.myPropositions.proposal.subtitle",{date:ee,student:y.student_identity})})]})}),(0,s.jsx)(ei.A,{children:n?(0,s.jsx)(u.A,{display:"flex",justifyContent:"center",p:2,children:(0,s.jsx)(er.A,{})}):B?(0,s.jsx)(D.A,{fontSize:16,children:w("forms:refusalConfirmation.updateDisponibility.text")}
1):y&&(0,s.jsx)(eD,{teacherComment:W,selectedResponse:O,setResponseTypeId:H,responseTypeId:F,setTeacherComment:M,errors:z,proposal:y,refuseTypes:f,conditionTypes:A,teacherAddress:S,isTeacherBookableOnline:E})}),(0,s.jsx)(en.A,{children:B?(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,width:"100%"},children:[(0,s.jsx)(ea.A,{fullWidth:!0,variant:"contained",href:T.Jd,children:w("forms:refusalConfirmation.updateDisponibility.link")}),(0,s.jsx)(D.A,{onClick:K,fontSize:16,color:"secondary",sx:{textDecoration:"underline",cursor:"pointer"},children:w("teacherSpace:common.close")})]}):y&&!n&&(O?(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",gap:2,width:"100%"},children:[(0,s.jsxs)(ea.A,{variant:"contained",fullWidth:!0,onClick:()=>X(),disabled:j,children:[w(`dashboard.myPropositions.actions.${O}`),j&&(0,s.jsx)(er.A,{size:24,sx:{marginLeft:1}})]}),(0,s.jsx)(ea.A,{variant:"underlined",fullWidth:!0,onClick:Y,children:w("common:back")})]}):[L.HT.PENDING,L.HT.CLARIFICATIONS_REQUESTED].includes(y.status)?(0,s.jsxs)(u.A,{sx:{display:"flex",flexDirection:"column",gap:2,width:"100%"},children:[(0,s.jsx)(e_,{proposal:y,handleClose:K,handleSelectResponse:N}),(0,s.jsx)(ea.A,{fullWidth:!0,onClick:K,variant:"underlined",children:w("common.close")})]}):(0,s.jsx)(ea.A,{variant:"contained",fullWidth:!0,onClick:K,children:w("common.close")}))})]})}eD.propTypes={refuseTypes:l().array,conditionTypes:l().array,proposal:l().shape({course_format:l().string.isRequired,address:l().string,distance:l().number,lesson_request_comment:l().string,origin:l().string,sales_user:l().shape({name:l().string.isRequired}),salary:l().number.isRequired,scholar_level:l().string.isRequired,status:l().string.isRequired,status_comment:l().string,subject:l().string.isRequired,out_preferences:l().bool,questionnaire:l().shape({items:l().arrayOf(l().shape({question:l().string.isRequired,item_format:l().string.isRequired,response:l().array,icon_name:l().string.isRequired}))})}).isRequired,setResponseTypeId:l().func.isRequired,responseTypeId:l().number,selectedResponse:l().string,errors:l().arrayOf(l().string),teacherComment:l().string,setTeacherComment:l().func.isRequired,teacherAddress:l().string.isRequired,isTeacherBookableOnline:l().bool},eL.propTypes={proposalId:l().number,applicationOpportunityId:l().number,onClose:l().func.isRequired,resetSelectedProposal:l().func.isRequired,resetSelectedApplicationOpportunity:l().func.isRequired,getSelectedProposal:l().func.isRequired,getSelectedApplicationOpportunity:l().func.isRequired,isLoading:l().bool.isRequired,isPosting:l().bool.isRequired,isPostSuccess:l().bool.isRequired,isPostError:l().bool.isRequired,postErrors:l().array,onAccept:l().func.isRequired,onAcceptIf:l().func.isRequired,onRefuse:l().func.isRequired,onRequestClarifications:l().func.isRequired,onApplicateOpportunity:l().func.isRequired,refuseTypes:l().array,conditionTypes:l().array,teacherAddress:l().string,isTeacherBookableOnline:l().bool,proposal:l().shape({id:l().number,course_format:l().string.isRequired,address:l().string,distance:l().number,lesson_request_comment:l().string,lesson_request_id:l().number.isRequired,origin:l().string,sales_user:l().shape({name:l().string.isRequired}).isRequired,salary:l().number.isRequired,scholar_level:l().string.isRequired,status:l().string.isRequired,status_comment:l().string,subject:l().string.isRequired,out_preferences:l().bool.isRequired,questionnaire:l().shape({items:l().arrayOf(l().shape({question:l().string.isRequired,item_format:l().string.isRequired,response:l().array,icon_name:l().string.isRequired}))}),date:l().string.isRequired,student_identity:l().string.isRequired})};let eN=(0,m.Ng)(function(e){let t=el.Tp.selectProposalRefuseTypes(e),o=el.Tp.selectProposalConditionTypes(e),s=y.WU.selectSelectedProposalIsLoading(e),i=y.WU.selectSelectedProposal(e),r=y.WU.selectIsPosting(e),n=y.WU.selectIsPostingSuccess(e),a=y.WU.selectIsPostingError(e),l=y.WU.selectPostingErrors(e),c=b.QQ.selectSelectedApplicationOpportunity(e),d=b.QQ.selectIsSelectedOpportunityLoading(e),p=b.QQ.selectIsApplicating(e),u=b.QQ.selectIsApplicatedSuccess(e),m=b.QQ.selectIsApplicatedError(e),x=b.QQ.selectAp
1plicationErrors(e),h=el.Tp.selectTeacherAddress(e),g=el.Tp.selectIsTeacherBookableOnline(e);return{isLoading:s||d,proposal:i||c,refuseTypes:t,conditionTypes:o,isPosting:r||p,isPostSuccess:n||u,isPostError:a||m,postErrors:[...l,...x],teacherAddress:h.full_address,isTeacherBookableOnline:g}},function(e){return{getSelectedProposal:t=>e(y.Dv.getSelectedProposal(t)),resetSelectedProposal:()=>{e(y.Dv.resetSelectedProposal())},getSelectedApplicationOpportunity:t=>e(b.vI.getSelectedOpportunity(t)),resetSelectedApplicationOpportunity:()=>{e(b.vI.resetSelectedApplicationOpportunity())},onAccept:(t,o)=>e(y.Dv.acceptMyProposal({id:t,teacher_comments:o})),onAcceptIf:(t,o,s)=>e(y.Dv.acceptMyProposalIf({id:t,condition_type_id:o,teacher_comments:s})),onRefuse:(t,o,s)=>e(y.Dv.refuseMyProposal({id:t,refusal_type_id:o,teacher_comments:s})),onRequestClarifications:(t,o)=>e(y.Dv.requestClarificationsMyProposal({id:t,teacher_comments:o})),onApplicateOpportunity:(t,o)=>e(b.vI.applyToOpportunity({id:t,comments:o})),onIgnoreOpportunity:(t,o)=>e(b.vI.ignoreOpportunity({id:t,comments:o}))}})(eL),eF={pending:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"repeat(2, 1fr)"},gap:"20px",alignItems:"stretch"},opportunity:e=>({bgcolor:"background.paper",border:`1px solid ${e.palette.custom.line}`,borderRadius:"6px",overflow:"hidden"}),archive:e=>({bgcolor:"background.paper",border:`1px solid ${e.palette.custom.line}`,borderRadius:"6px",overflow:"hidden"})};function eH(e){let{proposals:t=[],isFetching:o=!1,isSuccess:r=!1,elementId:n="cy-my-prop
1osals-list",noProposalText:a,remainingDailyApplicationsCount:l=null,isActive:d=!0,variant:p="archive"}=e,{t:m}=(0,i.Bd)("teacherSpace"),[x,h]=(0,c.useState)(null),[g,b]=(0,c.useState)(null),[y,f]=(0,c.useState)(!1),[A,j]=(0,c.useState)(null),_=r&&t.length>0,T=o||!r,P="undefined"!=typeof document?document.querySelector("#"+n):null,v=e=>{if(!d)return void f(!0);h(e)},I=e=>{if(!d)return void f(!0);b(e)};return(0,c.useEffect)(()=>{P&&j(`${P.offsetHeight}px`)},[P]),(0,s.jsxs)(u.A,{id:n,className:"content","data-testid":`cy-${n}`,children:[(0,s.jsx)(eN,{proposalId:x,applicationOpportunityId:g,onClose:()=>{h(null),b(null)}}),(0,s.jsx)(w.A,{open:y,onClose:()=>f(!1),title:m("dashboard.myPropositions.notActive.title"),text:m("dashboard.myPropositions.notActive.text")}),T&&(0,s.jsx)(R,{height:A}),!T&&_&&(0,s.jsx)(u.A,{sx:eF[p],children:t.map(e=>(0,s.jsx)(ee,{proposal:e,variant:p,selectProposal:v,selectApplicationOpportunity:I,available:null===l||l>0},e.lesson_request_id))}),!T&&!_&&(0,s.jsx)(q.A,{icon:(0,s.jsx)(k.A,{}),title:a})]})}eH.propTypes={proposals:l().arrayOf(E),isFetching:l().bool,isSuccess:l().bool,elementId:l().string,noProposalText:l().string.isRequired,remainingDailyApplicationsCount:l().number,isActive:l().bool,variant:l().oneOf(["pending","opportunity","archive"])};var eW=o(15368),eM=o(62507),ez=o(11313),eU=o(89500);function eB(e){let{remaining:t=0,total:o=0}=e,{t:r}=(0,i.Bd)("teacherSpace"),n=o>0?Math.min(100,Math.max(0,(o-t)/o*100)):0;return(0,s.jsxs)(u.A,{role:"status","aria-label":r("dashboard.myPropositions.quota.label"),sx:{display:"flex",flexDirection:"column",alignItems:{xs:"flex-start",sm:"flex-end"},gap:"10px",padding:"16px 22px",bgcolor:"background.paper",border:"1px solid",borderColor:"custom.line",borderRadius:"6px",minWidth:{sm:280}},children:[(0,s.jsx)(D.A,{variant:"fieldLabel",sx:{fontSize:10,letterSpacing:"0.14em"},children:r("dashboard.myPropositions.quota.label")}),(0,s.jsxs)(u.A,{sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:28,fontWeight:600,color:"custom.ink",lineHeight:1,letterSpacing:"-0.015em",display:"inline-flex",alignItems:"baseline",gap:"6px"}),children:[t,(0,s.jsxs)(u.A,{component:"span",sx:e=>({fontFamily:e.typography.monoFontFamily,fontSize:12,fontWeight:500,color:"custom.muted",letterSpacing:"0.04em"}),children:["/ ",o," ",r("dashboard.myPropositions.quota.remaining")]})]}),(0,s.jsx)(u.A,{role:"progressbar","aria-valuenow":Math.round(n),"aria-valuemin":0,"aria-valuemax":100,sx:{width:"100%",height:4,bgcolor:"custom.paper2",borderRadius:"99px",overflow:"hidden",mt:"2px"},children:(0,s.jsx)(u.A,{component:"span",sx:{display:"block",height:"100%",width:`${n}%`,bgcolor:"custom.accent",borderRadius:"99px"}})}),(0,s.jsx)(D.A,{variant:"fieldLabel",sx:{fontSize:10,letterSpacing:"0.08em",color:"custom.ink3"},children:r("dashboard.myPropositions.quota.reset")})]})}eB.propTypes={remaining:l().number,total:l().number};let e$={PENDING:"pending",OPPORTUNITIES:"opportunities",ARCHIVE:"archive"},eQ=e=>{let{myProposals:t=[],myPendingProposals:o=[],myApplicationOpportunities:r=null,myProposalsTotal:n=0,myPendingProposalsTotal:a=0,myApplicationOpportunitiesTotal:l=0,loadMyProposals:d,loadMyPendingProposals:p,loadMyApplicationOpportunities:m,isFetching:b=!1,isSuccess:y=!1,isFetchingPending:f=!1,isPendingSuccess:A=!1,isFetchingApplicationOpportunities:j=!1,isSuccessApplicationOpportunities:P=!1,totalDailyApplicationsCount:v=0,remainingDailyApplicationsCount:I=0,isAllowed:R,isActive:C,isTeacherLoaded:S}=e,{t:E}=(0,i.Bd)("teacherSpace"),[w,q]=(0,c.useState)(1),[k,O]=(0,c.useState)(1),[D,L]=(0,c.useState)(1),N=(0,c.useRef)(null),F=(0,c.useRef)(null),H=(0,c.useRef)(null),W=E("dashboard.myPropositions.lede",{pending:E("dashboard.myPropositions.ledePending",{count:a}),opportunities:E("dashboard.myPropositions.ledeOpportunities",{count:l})});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.A,{eyebrow:E("dashboard.myPropositions.eyebrow",{schoolYear:(0,_.WB5)()}),title:E("dashboard.myPropositions.title"),lede:W,titleProps:{"data-testid":"cy-my-propositions-title"},action:v>0?(0,s.jsx)(eB,{remaining:I,total:v}):null}),(0,s.jsxs)(eU.A,{toc:(0,s.jsx)(ez.A,{label:E("dashboard.myPropositions.toc.label"),items:[{id:e$.PENDING,label:E("dashboard.myPropositions.sections.pending.title")},{id:e$.OPPORTUNITIES,label:E("dashboard.myPropositions.sections.opportunities.title")},{id:e$.ARCHIVE,label:E("dashboard.myPropositions.sections.archive.title")}]}),children:[(0,s.jsxs)(u.A,{component:"section",id:e$.PENDING,"aria-labelledby":"pending-h",ref:F,sx:{mb:7,scrollMarginTop:"96px"},children:[(0,s.jsx)(eM.A,{titleId:"pending-h",title:E("dashboard.myPropositions.sections.pending.title"),sub:E("dashboard.myPropositions.sections.pending.sub")}),S&&!R?(0,s.jsx)(eW.A,{type:"lock",ctaTextPrimary:E("dashboard.myPropositions.notAllowed.pendingTitle"),dataTestId:"cy-gated-pending-proposals"}):A&&0===o.length?(0,s.jsx)(eW.A,{type:"empty",ctaTextPrimary:E("dashboard.myPropositions.empty.pendingTitle"),ctaTextSecondary:E("dashboard.myPropositions.empty.subTitle"),ctaButtonLabel:E("dashboard.myPropositions.empty.buttonLabel"),ctaButtonHref:T.hV,dataTestId:"cy-empty-pending-proposals"}):(0,s.jsx)(eH,{variant:"pending",isFetching:f,proposals:o,isSuccess:A,noProposalText:E("dashboard.myPropositions.noProposalsPending"),elementId:"my-pending-proposals-list",isActive:C}),R&&a>
1x.PROPOSALS_PER_PAGE&&(0,s.jsx)(h.A,{currentPage:k-1,nbPerPage:x.PROPOSALS_PER_PAGE,listLength:a,onPageChange:e=>{e!==k&&(p({page:e,limit:x.PROPOSALS_PER_PAGE}),O(e),(0,_.Ioy)(F,75))}})]}),(0,s.jsxs)(u.A,{component:"section",id:e$.OPPORTUNITIES,"aria-labelledby":"opps-h",ref:H,sx:{mb:7,scrollMarginTop:"96px"},children:[(0,s.jsx)(eM.A,{titleId:"opps-h",title:E("dashboard.myPropositions.sections.opportunities.title"),sub:E("dashboard.myPropositions.sections.opportunities.sub")}),S&&!R?(0,s.jsx)(eW.A,{type:"lock",ctaTextPrimary:E("dashboard.myPropositions.notAllowed.opportunitiesTitle"),dataTestId:"cy-gated-application-opportunities"}):(0,s.jsx)(eH,{variant:"opportunity",isFetching:j,proposals:r,isSuccess:P,elementId:"all-application-opportunities-list",noProposalText:E("dashboard.myPropositions.noProposals"),remainingDailyApplicationsCount:I,isActive:C}),R&&l>x.PROPOSALS_PER_PAGE&&(0,s.jsx)(h.A,{currentPage:D-1,nbPerPage:x.PROPOSALS_PER_PAGE,listLength:l,onPageChange:e=>{e!==D&&(m({page:e,limit:x.PROPOSALS_PER_PAGE}),L(e),(0,_.Ioy)(H,75))}})]}),(0,s.jsxs)(u.A,{component:"section",id:e$.ARCHIVE,"aria-labelledby":"past-h",ref:N,sx:{scrollMarginTop:"96px"},children:[(0,s.jsx)(eM.A,{titleId:"past-h",title:E("dashboard.myPropositions.sections.archive.title"),sub:E("dashboard.myPropositions.sections.archive.sub")}),S&&!R?(0,s.jsx)(eW.A,{type:"lock",ctaTextPrimary:E("dashboard.myPropositions.notAllowed.allTitle"),dataTestId:"cy-gated-responded-proposals"}):y&&0===t.length?(0,s.jsx)(eW.A,{type:"empty",ctaTextPrimary:E("dashboard.myPropositions.empty.allTitle"),ctaTextSecondary:E("dashboard.myPropositions.empty.subTitle"),ctaButtonLabel:E("dashboard.myPropositions.empty.buttonLabel"),ctaButtonHref:T.hV,dataTestId:"cy-empty-responded-proposals"}):(0,s.jsx)(eH,{variant:"archive",isFetching:b,proposals:t,isSuccess:y,elementId:"all-my-proposals-list",noProposalText:E("dashboard.myPropositions.noProposals"),isActive:C}),R&&n>x.PROPOSALS_PER_PAGE&&(0,s.jsx)(h.A,{currentPage:w-1,nbPerPage:x.PROPOSALS_PER_PAGE,listLength:n,onPageChange:e=>{e!==w&&(d({page:e,limit:x.PROPOSALS_PER_PAGE}),q(e),(0,_.Ioy)(N,75))}})]})]})]})};eQ.propTypes={myProposals:l().arrayOf(l().object),myPendingProposals:l().arrayOf(l().object),myApplicationOpportunities:l().arrayOf(l().object),myProposalsTotal:l().number,myPendingProposalsTotal:l().number,myApplicationOpportunitiesTotal:l().number,isAllowed:l().bool.isRequired,isActive:l().bool.isRequired,isTeacherLoaded:l().bool.isRequired,loadMyProposals:l().func.isRequired,loadMyPendingProposals:l().func.isRequired,loadMyApplicationOpportunities:l().func.isRequired,isFetching:l().bool,isSuccess:l().bool,isFetchingPending:l().bool,isPendingSuccess:l().bool,isFetchingApplicationOpportunities:l().bool,isSuccessApplicationOpportunities:l().bool,totalDailyApplicationsCount:l().number,remainingDailyApplicationsCount:l().number};let eG=(0,d.Zz)((0,m.Ng)(function(e){let t=f.I8.selectMyProposals(e),o=f.I8.selectMyProposalsTotal(e),s=f.I8.selectIsLoading(e),i=f.I8.selectIsSuccess(e),r=y.WU.selectMyPendingProposals(e),n=y.WU.selectMyPendingProposalsTotal(e),a=y.WU.selectIsLoading(e),l=y.WU.selectIsSuccess(e),c=b.QQ.selectMyApplicationOpportunities(e),d=b.QQ.selectMyApplicationOpportunitiesTotal(e),p=b.QQ.selectIsLoading(e),u=b.QQ.selectIsSuccess(e);return{isFetching:s,isSuccess:i,myProposals:t,myPendingProposals:r,myProposalsTotal:o,myPendingProposalsTotal:n,isFetchingPending:a,isPendingSuccess:l,myApplicationOpportunities:c,myApplicationOpportunitiesTotal:d,isFetchingApplicationOpportunities:p,isSuccessApplicationOpportunities:u,totalDailyApplicationsCount:(0,A.selectTotalDailyApplicationsCount)(e),remainingDailyApplicationsCount:(0,A.selectRemainingDailyApplicationsCount)(e),isAllowed:(0,A.selectIsTeacherAllowed)(e,j.H_.VISIBLE),isActive:(0,A.selectIsTeacherAllowed)(e,j.H_.ACTIVE),isTeacherLoaded:(0,A.selectIsTeacherLoaded)(e)}},function(e){return{loadMyProposals:t=>e(f.vG.fetchMyProposals(t)),loadMyPendingProposals:t=>e(y.Dv.fetchMyPendingProposals(t)),loadMyApplicationOpportunities:t=>e(b.vI.getApplicationOpportunities(t))}}))(eQ);var eY=o(85939),eK=o(86695);let eV=e=>{let{t}=e;return(0,eK.A)(eY.z.initTeacherMyProposals),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n(),{children:(0,s.jsx)("title",{children:t("dashboard.myPropositions.title")})}),(0,s.jsx)(eG,{})]})};eV.propTypes={t:l().func.isRequired};let eX=(0,d.Zz)((0,i.CI)("teacherSpace"))(eV);eX.getLayout=e=>(0,s.jsx)(p.A,{children:e});var eJ=!0;let eZ=eX},26975:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(14868);function a(e){let{children:t,size:o=18,strokeWidth:i=1.8,color:r="currentColor",sx:a={},...l}=e;return(0,s.jsx)(n.A,{component:"svg",viewBox:"0 0 24 24",sx:{width:o,height:o,fill:"none",stroke:r,strokeWidth:i,flexShrink:0,...a},strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...l,children:t})}a.propTypes={children:r().node.isRequired,size:r().number,strokeWidth:r().number,color:r().str
1ing,sx:r().object}},29156:(e,t,o)=>{"use strict";o.d(t,{A:()=>x});var s=o(37876),i=o(14232),r=o(33381),n=o.n(r),a=o(15039),l=o.n(a),c=o(95062),d=o.n(c),p=o(40728);let u=(0,o(85003).A)({tooltip:{backgroundColor:"#616161",cursor:"pointer"},arrow:{color:"#616161"},popper:{zIndex:15e3}})(p.A);function m(e){let{title:t,className:o="",node:r,hidden:a=!1,fullWidth:c=!1,placement:d="bottom",ariaLabel:p=null,style:m={}}=e,[x,h]=(0,i.useState)(!1);return(0,s.jsx)("span",{onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},className:l()(n()["tooltip-wrapper"],{[n()["tooltip-wrapper--full-width"]]:c},o),style:m,children:(0,s.jsx)(u,{open:x&&!a,arrow:!0,title:t,placement:d,"aria-label":p,children:(0,s.jsx)("div",{onTouchStart:()=>{h(!x)},className:l()(n()["tooltip-wrapper__node"],{[n()["tooltip-wrapper__node--full-width"]]:c}),children:r})})})}m.propTypes={title:d().oneOfType([d().string,d().object]).isRequired,node:d().node.isRequired,className:d().string,hidden:d().bool,fullWidth:d().bool,placement:d().string,ariaLabel:d().string,style:d().object};let x=m},30434:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(48173),a=o(14868),l=o(54611),c=o(61367),d=o(16581);let p={xs:{avatar:28,title:14},sm:{avatar:36,title:16},md:{avatar:42,title:19},lg:{avatar:56,title:22}};function u(e){let{title:t=null,eyebrow:o=null,initials:i,photo:r=null,avatarColor:u="ink",size:m="md",titleProps:x={},eyebrowProps:h={},gap:g=1.5,children:b=null,sx:y=[]}=e,f=p[m]||p.md,{sx:A={},...j}=x,{sx:_={},...T}=h;return(0,s.jsxs)(a.A,{sx:[{display:"flex",alignItems:"center",gap:g,minWidth:0},...Array.isArray(y)?y:[y]],children:[r?(0,s.jsx)(n.A,{src:r,alt:"",sx:{width:f.avatar,height:f.avatar,flexShrink:0},children:i}):(0,s.jsx)(c.fr,{size:f.avatar,color:u,sx:{flexShrink:0},children:i}),(0,s.jsxs)(a.A,{sx:{minWidth:0},children:[o&&(0,s.jsx)(d.A,{variant:"section",component:"div",...T,sx:[{lineHeight:1.2,mb:"2px"},_],children:o}),t&&(0,s.jsx)(l.A,{component:"div",...j,sx:[e=>({fontFamily:e.typography.serifFontFamily,fontSize:f.title,fontWeight:600,color:"custom.ink",lineHeight:1.2,letterSpacing:"-0.005em"}),A],children:t}),b]})]})}u.propTypes={title:r().node,eyebrow:r().node,initials:r().node,photo:r().string,avatarColor:r().string,size:r().oneOf(["xs","sm","md","lg"]),titleProps:r().object,eyebrowProps:r().object,gap:r().number,children:r().node,sx:r().oneOfType([r().object,r().array])}},33381:e=>{e.exports={"tooltip-wrapper":"_style_tooltip-wrapper__Wwamb","tooltip-wrapper--full-width":"_style_tooltip-wrapper--full-width__MEbu2","tooltip-wrapper__node":"_style_tooltip-wrapper__node__UhCWA","tooltip-wrapper__node--full-width":"_style_tooltip-wrapper__node--full-width__QXsAW"}},49037:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(37876),i=o(14232),r=o(95062),n=o.n(r),a=o(98349),l=o(98313);let c=(0,i.forwardRef)(function(e,t){let{withArrow:o=!0,children:i,sx:r=[],...n}=e;return(0,s.jsx)(a.A,{ref:t,...n,...o&&{endIcon:(0,s.jsx)(l.A,{})},sx:[o&&{"& .MuiButton-endIcon":{transition:"transform 150ms ease"},"&:hover .MuiButton-endIcon":{transform:"translateX(3px)"}},...Array.isArray(r)?r:[r]],children:i})});c.propTypes={withArrow:n().bool,children:n().node,sx:n().oneOfType([n().object,n().func,n().array])};let d=c},61367:(e,t,o)=>{"use strict";o.d(t,{Gq:()=>p,Yk:()=>m,fr:()=>d,pm:()=>u});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(48173),a=o(31380),l=o(14868);o(54611);let c=e=>t=>{let o="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'] &":o?{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:o=38,color:i="ink",sx:r=[],...a}=e;return(0,s.jsx)(n.A,{sx:[c(i),{width:o,height:o,fontSize:Math.round(.34*o)},...Array.isArray(r)?r:[r]],...a,children:t})}function p(e){let{children:t,size:o=38,sx:i={},...r}=e;return(0,s.jsx)(a.A,{sx:{"& .MuiAvatar-root":{width:o,height:o,fontSize:Math.round(.34*o),border:"2px s
1olid",borderColor:"custom.paper2",ml:"-10px"},...i},...r,children:t})}d.propTypes={children:r().node.isRequired,size:r().number,color:r().string,sx:r().oneOfType([r().object,r().func,r().array])},p.propTypes={children:r().node.isRequired,size:r().number,sx:r().object};let u="50% 10%";function m(e){let{src:t,alt:o,width:i=84,height:r=100,initials:a=null,objectPosition:c="center",round:d=!1,sx:p={},children:u,...m}=e,x={width:i,height:r,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,s.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,r)),color:"custom.ink"}),children:a}):null;return u||a?(0,s.jsxs)(l.A,{sx:x,...m,children:[h,u]}):(0,s.jsx)(n.A,{variant:"rounded",src:t,alt:o,sx:x,...m})}m.propTypes={src:r().string,alt:r().string,width:r().number,height:r().number,initials:r().string,objectPosition:r().string,round:r().bool,sx:r().object,children:r().node},r().string.isRequired,r().node.isRequired,r().node,r().func},62410:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(14868),a=o(88043),l=o(54611);function c(e){let{icon:t,title:o,description:i,actions:r,children:c}=e;return(0,s.jsxs)(n.A,{sx:{p:"80px 40px",textAlign:"center",bgcolor:"background.paper",border:"1px dashed",borderColor:"custom.line2",borderRadius:"6px"},children:[t&&(0,s.jsx)(n.A,{sx:{width:88,height:88,borderRadius:"50%",bgcolor:"custom.paper2",border:"1px solid",borderColor:"custom.line",display:"grid",placeItems:"center",mx:"auto",mb:"24px",color:"custom.accent2"},children:(0,s.jsx)(n.A,{component:"span",sx:{display:"inline-flex","& svg":{fontSize:36}},children:t})}),(0,s.jsx)(l.A,{sx:e=>({fontFamily:e.typography.serifFontFamily,fontSize:28,fontWeight:600,color:"custom.ink",mb:"10px"}),children:o}),i&&(0,s.jsx)(l.A,{sx:{fontSize:15,color:"text.secondary",maxWidth:460,mx:"auto",mb:"26px",lineHeight:1.55},children:i}),r&&(0,s.jsx)(a.A,{direction:"row",spacing:"12px",justifyContent:"center",children:r}),c]})}c.propTypes={icon:r().node,title:r().node.isRequired,description:r().node,actions:r().node,children:r().node}},62507:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(14868),a=o(54611),l=o(16581);let c=e=>Array.isArray(e)?e:e?[e]:[];function d(e){let{title:t,titleProps:o={},count:i=null,eyebrow:r=null,eyebrowTone:d="light",sub:p=null,subProps:u={},action:m=null,titleId:x,component:h="h2",variant:g="h2",divider:b=!0,sx:y={}}=e,{sx:f,...A}=o,{sx:j,..._}=u;return(0,s.jsxs)(n.A,{sx:[e=>({display:"flex",alignItems:"baseline",justifyContent:"space-between",flexWrap:"wrap",gap:"12px 24px",...b&&{pb:"14px",borderBottom:"1px solid",borderColor:"custom.line"},mb:"24px",[e.breakpoints.down("sm")]:{mx:"calc(var(--page-gutter, var(--layout-gutter, 0px)) * -1)",px:"var(--page-gutter, var(--layout-gutter, 0px))"}}),y],children:[(0,s.jsxs)(n.A,{sx:{display:"flex",flexDirection:"column",gap:"4px",minWidth:0},children:[r&&(0,s.jsx)(l.A,{tone:d,sx:{mb:"10px"},children:r}),(0,s.jsxs)(a.A,{variant:g,component:h,id:x,...A,sx:[{fontSize:{xs:22,md:26}},...c(o.sx)],children:[t,null!=i&&(0,s.jsx)(a.A,{component:"span",variant:"fieldLabel",sx:{fontSize:11,display:{xs:"block",sm:"inline-block"},ml:{sm:1.75},mt:{xs:.5,sm:0}},children:i})]}),p&&(0,s.jsx)(a.A,{..._,sx:[{fontSize:13,color:"text.secondary",lineHeight:1.4},...c(u.sx)],children:p})]}),m&&(0,s.jsx)(n.A,{sx:{flexShrink:0},children:m})]})}d.propTypes={title:r().node.isRequired,titleProps:r().object,count:r().node,eyebrow:r().node,eyebrowTone:r().oneOf(["light","dark"]),sub:r().node,subProps:r
1().object,action:r().node,titleId:r().string,component:r().elementType,variant:r().string,divider:r().bool,sx:r().oneOfType([r().object,r().array])}},68679:(e,t,o)=>{"use strict";o.d(t,{I:()=>s,N:()=>i});let s={TEXT:"text",DATE:"date",CODIFICATION_UNIQUE:"codification_unique",CODIFICATION_MULTIPLE:"codification_multiple",DISPONIBILITY:"disponibility",CUSTOM_UNIQUE:"custom_unique",CUSTOM_MULTIPLE:"custom_multiple"},i={DEFAULT:"default",DESIRED_START_DATE:"desired_start_date"}},75547:(e,t,o)=>{"use strict";o.d(t,{A:()=>d,N:()=>l});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(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 o=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[o.background],border:`1px solid ${t.palette.custom[o.border]}`,color:t.palette.custom[o.text],"& .MuiChip-icon":{width:6,height:6,borderRadius:"50%",backgroundColor:t.palette.custom[o.dot],marginLeft:"10px"}}};function d(e){let{label:t,variant:o="contact",sx:i=[],...r}=e;return(0,s.jsx)(n.A,{size:"small",icon:(0,s.jsx)("span",{}),label:t,...r,sx:[c(o),...Array.isArray(i)?i:[i]]})}d.propTypes={label:r().node.isRequired,variant:r().oneOf(Object.keys(a)),sx:r().oneOfType([r().object,r().func,r().array])}},81815:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(14868),a=o(78202),l=o(24090);let c={display:"inline-flex",alignItems:"center",gap:.5,p:0,border:"none",bgcolor:"transparent",font:"inherit",fontSize:12.5,fontWeight:600,color:"custom.accent2",whiteSpace:"nowrap",cursor:"pointer","&:hover":{color:"custom.ink"}};function d(e){let{open:t,onToggle:o,controls:i,children:r,sx:d=[],...p}=e,u=t?a.A:l.A;return(0,s.jsxs)(n.A,{component:"button",type:"button",onClick:o,"aria-expanded":t,"aria-controls":i,sx:[c,...Array.isArray(d)?d:[d]],...p,children:[r,(0,s.jsx)(u,{sx:{fontSize:15},"aria-hidden":!0})]})}d.propTypes={open:r().bool.isRequired,onToggle:r().func.isRequired,controls:r().string.isRequired,children:r().node.isRequired,sx:r().oneOfType([r().object,r().func,r().array])}},92869:(e,t,o)=>{"use strict";o.d(t,{A:()=>p});var s=o(37876);o(14232);var i=o(95062),r=o.n(i),n=o(14868),a=o(49693);let l="https://www.google.com/maps/embed/v1",c=e=>{let{query:t,origin:o,destination:s,mode:i="transit"}=e;if(!t&&!(o&&s))return null;let r=new URLSearchParams({key:a.GOOGLE_MAP_API_KEY||""});return o&&s?(r.set("origin",o),r.set("destination",s),r.set("mode",i),`${l}/directions?${r}`):(r.set("q",t),`${l}/place?${r}`)},d={display:"block",width:"100%",border:"1px solid",borderColor:"custom.line",borderRadius:"4px",bgcolor:"custom.paper2"};function p(e){let{query:t,origin:o,destination:i,mode:r="transit",title:a,height:l=320,sx:p=[],testId:u}=e;return t||o&&i?(0,s.jsx)(n.A,{component:"iframe",title:a,src:c({query:t,origin:o,destination:i,mode:r}),loading:"lazy",allowFullScreen:!0,referrerPolicy:"no-referrer-when-downgrade","data-testid":u,sx:[d,{height:l},...Array.isArray(p)?p:[p]]}):null}p.propTypes={query:r().string,origin:r().string,destination:r().string,mode:r().oneOf(["driving","
1walking","bicycling","transit","flying"]),title:r().string.isRequired,height:r().oneOfType([r().number,r().string,r().object]),sx:r().oneOfType([r().object,r().func,r().array]),testId:r().string}},93787:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/espace-prof/mes-offres-de-cours",function(){return o(23863)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[9841,8349,5739,9538,3085,2405,8908,5133,6637,728,1953,7090,8230,5370,7380,4539,8765,9959,2407,1869,5436,4685,5003,4605,8542,2961,239,5939,9642,8466,636,6593,8792],()=>t(93787)),_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.