1(this["webpackJsonpwild-fiverr-hackaton"]=this["webpackJsonpwild-fiverr-hackaton"]||[]).push([[0],{103:function(e,t,a){},104:function(e,t,a){},105:function(e,t,a){"use strict";a.r(t);var n=a(18),c=a(2),i=a(26),s=a.n(i),r=a(7),l=a(3),o=Object(c.createContext)(null);var u=function(e){var t=e.children,a=Object(c.useState)(""),n=Object(r.a)(a,2),i=n[0],s=n[1];return Object(l.jsx)(o.Provider,{value:{loginStatus:i,updateLoginStatus:s},children:t})},j=Object(c.createContext)(null);var d=function(e){var t=e.children,a=Object(c.useState)(""),n=Object(r.a)(a,2),i=n[0],s=n[1];return Object(l.jsx)(j.Provider,{value:{loginStatus2:i,updateLoginStatus2:s},children:t})},b=a(20),m=Object(c.createContext)(!1);var h=function(e){var t=e.children,a=Object(c.useState)(""),n=Object(r.a)(a,2),i=n[0],s=n[1];return Object(l.jsx)("div",{children:Object(l.jsx)(m.Provider,{value:{blurStatus:i,updateBlurStatus:s},children:t})})},O=Object(c.createContext)("unknown");var x=function(e){var t=e.children,a=Object(c.useState)(""),n=Object(r.a)(a,2),i=n[0],s=n[1];return Object(l.jsx)(O.Provider,{value:{name:i,updateName:s},children:t})},p=a(53),v=a(17),f=a(14),g=(a(66),a.p+"static/media/fiversenpai.591840ea.png"),y=a(6),S=a(54),N=a.n(S),C=(a(78),a(47)),w=a.p+"static/media/Fiverr_Symbol_Green_RGB.7219db30.png";var U=function(e){var t=e.signIn,a=e.setSignIn,n=Object(c.useContext)(b.a),i=n.isSignedIn,s=n.updateSignedIn,u=Object(c.useContext)(m).updateBlurStatus,j=Object(c.useContext)(o),d=j.loginStatus,h=j.updateLoginStatus,x=Object(c.useContext)(O),p=x.name,v=x.updateName,g=Object(c.useState)(null),S=Object(r.a)(g,2),U=S[0],k=S[1],I=Object(c.useState)(""),E=Object(r.a)(I,2),B=E[0],L=E[1],R=Object(f.f)(),z={signInFlow:"popup",signInOptions:[y.a.auth.GoogleAuthProvider.PROVIDER_ID,y.a.auth.EmailAuthProvider.PROVIDER_ID],callbacks:{signInSuccess:function(){return!1}}};return Object(c.useEffect)((function(){y.a.auth().onAuthStateChanged((function(e){(s(!!e),i)?(y.a.database().ref("role").child(y.a.auth().currentUser.uid).on("value",(function(e){var t=e.val();L(!!t)})),y.a.database().ref("abo/"+y.a.auth().currentUser.uid).set({Username:y.a.auth().currentUser.displayName,email:y.a.auth().currentUser.email}),v(y.a.auth().currentUser.displayName)):v("unknown")}))}
1),[p,U,B,t]),Object(l.jsxs)("div",{className:d?"BoxLog Active":"BoxLog",children:[i?Object(l.jsxs)("div",{children:[Object(l.jsxs)("h2",{className:"titleBoxLog",style:{marginBottom:"2.5rem"},children:["Hello ",y.a.auth().currentUser.displayName]}),t?Object(l.jsx)("div",{children:Object(l.jsx)("form",{onSubmit:function(e){e.preventDefault(),u(!1),h(!1),a(!1),R.push("/")},style:{display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:Object(l.jsx)("button",{className:"submit",type:"submit",style:{width:"150px"},children:"Continuer"})})}):Object(l.jsxs)("div",{children:[Object(l.jsx)("p",{children:"Choose your freelance level"}),Object(l.jsxs)("form",{onSubmit:function(e){e.preventDefault(),y.a.database().ref("role/"+y.a.auth().currentUser.uid).child("role").set(U),u(!1),h(!1),R.push("/")},style:{display:"flex",flexDirection:"column",justifyContent:"space-evenly"},children:[Object(l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-evenly",marginBottom:"2.5rem"},children:[Object(l.jsx)("input",{type:"radio",value:"Newbie",name:"role",onClick:function(){return k("Newbie")}}),"Newbie",Object(l.jsx)("input",{type:"radio",value:"Expert",name:"role",onClick:function(){return k("Expert")}}),"Expert"]}),Object(l.jsx)("button",{className:"submit",type:"submit",style:{width:"150px"},children:B?"Continuer":"Valider"})]})]})]}):Object(l.jsxs)("div",{children:[Object(l.jsx)("h4",{style:{fontSize:"2rem",marginBottom:"25px"},children:t?"Sign in with Fiverr ":"Sign Up with Fiverr"}),Object(l.jsx)(N.a,{uiConfig:z,firebaseAuth:y.a.auth()})]}),Object(l.jsx)("div",{children:Object(l.jsx)("img",{src:w,alt:"fiverr symbol",className:"logoLog"})}),Object(l.jsx)("div",{className:"closeBoxLog",style:{cursor:"pointer"},onClick:function(){h(!1),u(!1),a(!1)},children:Object(l.jsx)(C.a,{})})]})},k=a(25);function I(e){var t=e.visible,a=Object(c.useContext)(o).updateLoginStatus,i=Object(c.useContext)(b.a).isSignedIn,s=Object(c.useContext)(m),u=s.blurStatus,j=s.updateBlurStatus,d=Object(c.useContext)(O).name,h=Object(c.useState)(),x=Object(r.a)(h,2),p=x[0],S=x[1],N=Object(c.useState)(),C=Object(r.a)(N,2),w=C[0],I=C[1],E=Object(c.useState)(!1),B=Object(r.a)(E,2),L=B[0],R=B[1],z=Object(k.d)(),D=Object(f.f)();return Object(c.useEffect)((function(){i?y.a.database().ref("mentor").child(y.a.auth().currentUser.uid).on("value",(function(e){var t=e.val(),a=[];for(var c in t)a.push(Object(n.a)({id:c},t[c]));S(a)})):S(0)}),[i]),Object(c.useEffect)((function(){i&&y.a.database().ref("role").child(y.a.auth().currentUser.uid).on("value",(function(e){var t=e.val();I(t)}))}),[i]),Object(l.jsx)("div",{className:u?"nav blur":"nav",children:Object(l.jsxs)("div",{className:t?"nav-container-fixed":"nav-container",children:[Object(l.jsx)("img",{src:g,alt:"",style:{width:"250px",height:"auto"}}),!1===i?Object(l.jsxs)("ul",{className:"links",children:[Object(l.jsx)(v.c,{to:"/",className:"main-nav",activeClassName:"main-nav-active",exact:!0,children:Object(l.jsx)("li",{children:"Home"})}),Object(l.jsx)(v.c,{to:"/products",className:"main-nav",activeClassName:"main-nav-active",exact:!0,children:Object(l.jsx)("li",{children:"Mentors"})}),Object(l.jsx)(v.c,{to:"/home",className:"main-nav",activeClassName:"main-nav-active",exact:!0,onClick:function(){return z.show("You must be logged in to see your program")},children:Object(l.jsx)("li",{children:"My Learning"})})]}):w&&"Expert"===w.role?Object(l.jsxs)("ul",{className:"links",children:[Object(l.jsx)(v.c,{to:"/",className:"main-nav",activeClassName:"main-nav-active",exact:!0,children:Object(l.jsx)("li",{children:"Home"})}),Object(l.jsx)(v.c,{to:"/coaching",className:"main-nav",activeClassName:"main-nav-active",exact:!0,children:Object(l.jsx)("li",{children:"My newbies"})})]}):Object(l.jsxs)("ul",{className:"links",children:[Object(l.jsx)(v.c,{to:"/",className:"main-nav",activeClassName:"main-nav-active",exact:!0,children:Object(l.jsx)("li",{children:"Home"})}),Object(l.jsx)(v.c,{to:"/products",className:"main-nav",activeClassName:"main-nav-active",exact:!0,children:Object(l.jsx)("li",{children:"Mentors"})}),Object(l.jsx)(v.c,{to:"/progress",className:"main-nav",activeClassName:"main-nav-active",exact:!0,children:Object(l.jsx)("li",{children:"My Learning"})})]}),Object(l.jsx)(U,{signIn:L,setSignIn:R}),Object(l.jsxs)("div",{className:"user",children:[i?Object(l.jsx)("h4",{className:"pseudoTitle",style:{marginRight:"10px",marginBottom:"0"},children:d}):Object(l.jsx)("div",{children:Object(l.jsxs)("div",{className:"connect",style:{marginBottom:"0",marginRight:"5px",display:"inline-flex"},children:["First Connection ?",Object(l.jsx)("div",{className:"signup",style:{cursor:"pointer",marginLeft:"15px",marginRight:"15px"},onClick:function(){a(!0),j(!0)},children:"Sign up"}),"or"]})}),i?Object(l.jsx)("button",{className:"login",style:{marginRight:"10px"},onClick:function(){y.a.auth().signOut(),D.push("/")},children:"Log out"}):Object(l.jsx)("button",{className:"login",style:{cursor:"pointer",marginRight:"10px"},onClick:function(){a(!0),j(!0),R(!0)},children:"Log in"}),Object(l.jsx)(v.b,{to:i?"/progress":"/",children:Object(l.jsx)("i",{className:"fa fa-graduation-cap fa-2x cart
1-icon"})}),Object(l.jsx)("div",{className:"nav-item",children:Object(l.jsx)("div",{className:"amount-container",children:Object(l.jsx)("p",{className:"total-amount",children:i?p.length:"0"})})})]})]})})}a(86);var E=function(){return Object(l.jsx)("div",{className:"spinner-overlay",children:Object(l.jsx)("div",{className:"spinner-container"})})},B=(a(87),a(123)),L=a(122),R=function(e){var t=Object(c.useContext)(b.a).isSignedIn,a=Object(c.useState)({}),n=Object(r.a)(a,2),i=n[0],s=n[1],o=e.match.params.id,u=e.match.params.name,j=Object(c.useState)([]),d=Object(r.a)(j,2),m=d[0],h=d[1],O=Object(c.useState)(),x=Object(r.a)(O,2),p=x[0],v=x[1],f=Object(c.useState)([]),g=Object(r.a)(f,2),S=g[0],N=g[1],C=Object(c.useState)(),w=Object(r.a)(C,2),U=w[0],I=w[1],E=Object(c.useState)(),R=Object(r.a)(E,2),z=R[0],D=R[1],F=Object(c.useState)(),P=Object(r.a)(F,2),A=P[0],M=P[1],H=Object(c.useState)(),T=Object(r.a)(H,2),G=T[0],Y=T[1],_=Object(k.d)();return Object(c.useEffect)((function(){y.a.database().ref("user").child("".concat(o)).on("value",(function(e){s(e.val()),h(e.val().language),N(e.val().skill),I(e.val().name),Y(e.val().image),v(e.val().disponibility)}))}),[]),Object(c.useEffect)((function(){t&&y.a.database().ref("mentor").child(y.a.auth().currentUser.uid).child(u).on("value",(function(e){var t=e.val();M(t),D(!!t)}))}),[U]),Object(l.jsx)("div",{children:Object(l.jsxs)("div",{className:"product-center",style:{marginTop:"80px"},children:[Object(l.jsx)("img",{className:"prod-photo",src:i.image,alt:i.name}),Object(l.jsxs)("section",{className:"content-prod",children:[Object(l.jsxs)("div",{className:"title_name",children:[Object(l.jsx)("h2",{children:i.name}),Object(l.jsxs)("h5",{children:["@",i.nationality]})]}),Object(l.jsx)(L.a,{component:"fieldset",mb:3,borderColor:"transparent",marginBottom:"0",padding:"0",children:Object(l.jsx)(B.a,{name:"read-only",value:i.value,readOnly:!0})}),Object(l.jsxs)("p",{children:[i.reviews," reviews"]}),Object(l.jsx)("h5",{className:"price-prod",style:{marginBottom:"40px"},children:i.activity}),Object(l.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"left"},children:m.map((function(e){return Object(l.jsx)("p",{className:"tag",style:{backgroundColor:"var(--primaryColor)",color:"white",padding:"10px",marginRight:"10px",borderRadius:"20px",cursor:"pointer"},children:e},e)}))}),Object(l.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"left",marginBottom:"40px"},children:S.map((function(e){return Object(l.jsxs)("span",{style:{border:"1px solid rgba(119, 119, 119, 0.65)",color:"var(--primaryDarkColor)",borderRadius:"3px",fontSize:"11px",padding:"5px 12px",margin:"4px",cursor:"pointer",display:"inline-block"},children:[e," "]},e)}))}),Object(l.jsx)("p",{className:"description",children:i.description}),Object(l.jsx)("hr",{}),Object(l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"left",margin:"20px"},children:[" ",Object(l.jsx)("p",{style:{margin:"0 20px 0 0"},children:"availability:"}),Object(l.jsxs)("a",{style:{backgroundColor:"var(--primaryDarkColor)",color:"white",padding:"10px",marginRight:"10px",borderRadius:"20px",cursor:"pointer"},children:[p,"/5"]})]}),z&&1!=A.id?Object(l.jsx)("button",{type:"button",className:"btnWait",disabled:!0,children:"Waiting for approbation"}):z&&1==o?Object(l.jsx)("button",{type:"button",className:"btnAlready",disabled:!0,children:"Already in your program"}):!1===t?Object(l.jsx)("button",{type:"button",className:"btnChoose",onClick:function(){return _.show("You must be logged in to add a mentor in your program")},children:"Choose this mentor"}):Object(l.jsx)("button",{type:"button",className:"btnChoose",onClick:function(){v(p-1);var e={userId:y.a.auth().currentUser.uid,name:U,id:"".concat(o),skill:S,language:m,image:G,abo:y.a.auth().currentUser.displayName,abomail:y.a.auth().currentUser.email,photo:y.a.auth().currentUser.photoURL};y.a.database().ref("mentor").child(U).child(y.a.auth().currentUser.uid).set(e);var t={userId:y.a.auth().currentUser.uid,name:U,id:"".concat(o),skill:S,language:m,image:G,abo:y.a.auth().currentUser.displayName,abomail:y.a.auth().currentUser.email,photo:y.a.auth().currentUser.photoURL};y.a.database().ref("mentor").child(y.a.auth().currentUser.uid).child(U).set(t)},disabled:!t,children:"Choose this mentor"})]})]},i.id)})},z=a(48),D=a(124),F=a(23),P=a(41);a(52);var A=function(e){e.id;var t=e.name,a=Object(c.useContext)(b.a).isSignedIn,i=Object(c.useState)(""),s=Object(r.a)(i,2),o=s[0],u=s[1],j=Object(c.useState)(),d=Object(r.a)(j,2),m=d[0],h=d[1],O=Object(c.useState)(),x=Object(r.a)(O,2),p=(x[0],x[1]),v=Object(c.useState)(),f=Object(r.a)(v,2),g=f[0],S=f[1],N=Object(c.useRef)(!1),C=Object(c.useState)([]),w=Object(r.a)(C,2),U=w[0],I=w[1],E=Object(k.d)();return Object(c.useEffect)((function(){a&&y.a.database().ref("message").child(y.a.auth().currentUser.uid).child(t).on("value",(function(e){var t=e.val(),a=[];for(var c in t)a.push(Object(n.a)({id:c},t[c]));h(a)}));return N.current=!0,function(){return N.current=!1}}),[]),Object(c.useEffect)((function(){a&&y.a.database().ref("message").child(t).child(y.a.auth().currentUser.uid).on("value",(function(e){var t=e.val(),a=[];for(var c in t)a.push(Object(n.a)({id:c},t[c]));S(a)}));return N.current=!0,function(){return N.current=!1}}),[]),Object(c.useEffect)((function(){a&&y.a.database().ref("role").child(y.a.auth().currentUser.uid).on("value",(function(e){var t=e.val();p(t)}))}),[]),Object(c.useEffect)((function(){var e=(m&&g?[].concat(Object(F.a)(m),Object(F.a)(g)):[]).sort((function(e,t){return e.timeStamp<t.timeStamp?-1:e.timeStamp>t.timeStamp?1:0}));I(e)}),[m,g]),Object(l.jsxs)(P.Scrollbars,{className:"boxComment",style:{width:"50%",height:"100vh",position:"relative",margin:"0 10px 0 10px"},children:[a?Object(l.jsx)("div",{style:{marginRight:"73px"},children:U?U.map((function(e,t){return Object(l.jsxs)("div",{className:e.id===y.a.auth().currentUser.uid?"boxGreen":"boxGrey",children:[Object(l.jsxs)("h5",{children:[e.id==y.a.auth().currentUser.uid?"You":e.name," "]}),Object(l.jsx)("div",{children:e.commentary}
1),Object(l.jsx)("div",{style:{marginTop:"15px",textAlign:"end",fontSize:"10px"},children:e.date})]},t)})):null}):null,Object(l.jsx)("div",{children:Object(l.jsxs)("form",{onSubmit:function(e){a?function(e){e.preventDefault();var a=new Date,n=Date.now(),c={date:a.toLocaleString("fr-FR",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),commentary:o,id:y.a.auth().currentUser.uid,name:y.a.auth().currentUser.displayName,timeStamp:n};o?y.a.database().ref("message").child(y.a.auth().currentUser.uid).child(t).child(n).set(c):E.show("You must type a message"),u("")}(e):E("Vous devez \xeatre connect\xe9 pour poster un commentaire")},children:[Object(l.jsx)("input",{type:"text",placeholder:"votre commentaire",onChange:function(e){u(e.target.value)},className:"input-comment1",value:o,maxLength:150})," ",o?Object(l.jsxs)("div",{children:["(",150-o.length," caract\xe8res restants /",150,")"]}):null,Object(l.jsx)("button",{className:"publishButton",type:"submit",children:"Publier"})]})})]})},M=(a(103),a.p+"static/media/edd.0240fd0d.png"),H=function(){var e=Object(f.g)().id,t=Object(f.g)().name,a=Object(c.useContext)(b.a).isSignedIn,n=Object(c.useState)({}),i=Object(r.a)(n,2),s=i[0],o=i[1],u=Object(c.useState)([]),j=Object(r.a)(u,2),d=(j[0],j[1]),m=Object(c.useState)(),h=Object(r.a)(m,2),O=(h[0],h[1]),x=Object(c.useState)([]),p=Object(r.a)(x,2),v=(p[0],p[1]),g=Object(c.useState)(),S=Object(r.a)(g,2),N=(S[0],S[1]),C=Object(c.useState)(),w=Object(r.a)(C,2),U=(w[0],w[1]),k=Object(c.useState)(),I=Object(r.a)(k,2),E=(I[0],I[1]);return Object(c.useEffect)((function(){y.a.database().ref("user").child("".concat(e)).on("value",(function(e){o(e.val()),d(e.val().language),v(e.val().skill),N(e.val().name),O(e.val().disponibility)}))}),[]),Object(c.useEffect)((function(){a&&y.a.database().ref("mentor").child(y.a.auth().currentUser.uid).child("".concat(e)).on("value",(function(e){var t=e.val();E(t),U(!!t)}))}),[]),Object(l.jsxs)("div",{style:{marginTop:"80px"},children:[Object(l.jsxs)("div",{className:"boxHead",children:[Object(l.jsx)("h1",{style:{textAlign:"end",margin:"60px",fontSize:"3rem"},children:"Just Chatting"}),Object(l.jsx)("img",{src:M,style:{width:"500px",height:"auto"},alt:""})]}),Object(l.jsxs)("div",{className:"boxProgress",style:{position:"relative"},children:[Object(l.jsxs)("h1",{style:{position:"absolute",color:"white",fontFamily:"Macan",top:"15px",left:"36%",fontSize:"15px"},children:["Chat with ",s.name," "]}),Object(l.jsx)("img",{src:s.image,alt:s.name,style:{width:"50%",objectFit:"cover"}})," ",Object(l.jsx)(A,{id:e,name:t},e)]},s.id)]})},T=a(35);var G=function(){var e=Object(f.f)().location.pathname,t=Object(T.useState)(),a=Object(r.a)(t,2),i=a[0],s=a[1];return Object(c.useEffect)((function(){var e=y.a.database().ref("mentor").child(y.a.auth().currentUser.displayName);e.on("value",(function(t){var a=t.val();console.log(a);var c=[];for(var i in a)c.push(Object(n.a)({id:i},a[i]));s(c),console.log(e)}))}),[]),Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("div",{style:{marginTop:"130px"},children:Object(l.jsxs)("div",{className:"heading-center",style:{backgroundColor:"#0D084D",display:"flex",alignItems:"center",justifyContent:"space-around",overflow:"hidden"},children:[Object(l.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-around"},children:[Object(l.jsxs)("h3",{style:{marginBottom:"25px",fontFamily:"Macan",color:"white"},children:[i&&i.length," newbie available"]}),Object(l.jsxs)("h1",{style:{margin:"0",fontFamily:"Macan",fontSize:"4rem",color:"white"},children:["Your"," ",Object(l.jsx)("span",{style:{fontFamily:"Domaine",fontSize:"4rem",color:"white"},children:"Newbie's"})]})]}),Object(l.jsx)("img",{src:"images/prof.jpeg",alt:"",style:{width:"353px",objectFit:"cover"}})]})}),Object(l.jsx)("div",{className:"cocktails-center",children:i&&i.map((function(t,a){return Object(l.jsxs)("div",{children:[Object(l.jsxs)("article",{className:"cocktail",style:{position:"relative"},children:[Object(l.jsx)("div",{className:"img-container",children:Object(l.jsx)("img",{src:t.image,alt:t.abo})}),Object(l.jsxs)("div",{className:"cocktail-footer",children:[Object(l.jsxs)("div",{className:"product",children:[Object(l.jsx)("h4",{children:t.abo}),Object(l.jsxs)("h4",{className:"price",children:["Abo n\xb0",a+1]})]}),Object(l.jsx)(v.b,{to:"/coaching"===e?"/coaching/".concat(t.userId):{pathname:"/coaching/".concat(t.userId),mentorProps:{id:t.id,name:t.name}},className:"add-cart",children:"/progress"===e||"/coaching"===e?"Chat now":"View"})]})]},t.id)," "]})}
1))})]})};var Y=function(e){var t=e.id,a=(e.name,Object(c.useContext)(b.a).isSignedIn),i=Object(c.useState)(""),s=Object(r.a)(i,2),o=s[0],u=s[1],j=Object(c.useState)(),d=Object(r.a)(j,2),m=d[0],h=d[1],O=Object(c.useState)(),x=Object(r.a)(O,2),p=(x[0],x[1]),v=Object(c.useState)(),f=Object(r.a)(v,2),g=f[0],S=f[1],N=Object(c.useState)([]),C=Object(r.a)(N,2),w=C[0],U=C[1];return Object(c.useEffect)((function(){a&&y.a.database().ref("message").child(y.a.auth().currentUser.displayName).child(t).on("value",(function(e){var t=e.val(),a=[];for(var c in t)a.push(Object(n.a)({id:c},t[c]));h(a)}))}),[]),Object(c.useEffect)((function(){a&&y.a.database().ref("message").child(t).child(y.a.auth().currentUser.displayName).on("value",(function(e){var t=e.val(),a=[];for(var c in t)a.push(Object(n.a)({id:c},t[c]));S(a)}))}),[]),Object(c.useEffect)((function(){a&&y.a.database().ref("role").child(y.a.auth().currentUser.uid).on("value",(function(e){var t=e.val();p(t)}))}),[]),Object(c.useEffect)((function(){var e=(m&&g?[].concat(Object(F.a)(m),Object(F.a)(g)):[]).sort((function(e,t){return e.timeStamp<t.timeStamp?-1:e.timeStamp>t.timeStamp?1:0}));U(e)}),[m,g]),Object(l.jsxs)(P.Scrollbars,{className:"boxComment",style:{width:"50%",height:"100vh",position:"relative",margin:"0 10px 0 10px"},children:[a?Object(l.jsx)("div",{style:{marginRight:"73px"},children:w?w.map((function(e){return Object(l.jsxs)("div",{className:e.id===y.a.auth().currentUser.uid?"boxGreen":"boxGrey",children:[Object(l.jsxs)("h5",{children:[e.id==y.a.auth().currentUser.uid?"You":e.name," "]}),Object(l.jsx)("div",{children:e.commentary}),Object(l.jsx)("div",{style:{marginTop:"15px",textAlign:"end",fontSize:"10px"},children:e.date})]})})):null}):null,Object(l.jsx)("div",{children:Object(l.jsxs)("form",{onSubmit:function(e){a?function(e){e.preventDefault();var a=new Date,n=Date.now(),c={date:a.toLocaleString("fr-FR",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),commentary:o,id:y.a.auth().currentUser.uid,name:y.a.auth().currentUser.displayName,timeStamp:n};y.a.database().ref("message").child(y.a.auth().currentUser.displayName).child(t).child(n).set(c),u("")}(e):alert("Vous devez \xeatre connect\xe9 pour poster un commentaire")},children:[Object(l.jsx)("input",{type:"text",placeholder:"votre commentaire",onChange:function(e){u(e.target.value)},className:"input-comment1",value:o,maxLength:150})," ",o?Object(l.jsxs)("div",{children:["(",150-o.length," caract\xe8res restants /",150,")"]}):null,Object(l.jsx)("button",{className:"publishButton",type:"submit",children:"Publier"})]})})]})};var _=function(){var e=Object(f.g)().id,t=Object(T.useState)(),a=Object(r.a)(t,2),n=a[0],c=a[1];return Object(T.useEffect)((function(){y.a.database().ref("mentor").child(y.a.auth().currentUser.displayName).child(e).on("value",(function(e){c(e.val().image)}))}),[]),Object(l.jsxs)("div",{style:{marginTop:"80px"},children:[Object(l.jsxs)("div",{className:"boxHead",children:[Object(l.jsx)("h1",{style:{textAlign:"end",margin:"60px",fontSize:"3rem"},children:"Just Chatting"}),Object(l.jsx)("img",{src:M,style:{width:"500px",height:"auto"},alt:""})]}),Object(l.jsxs)("div",{className:"boxProgress",style:{position:"relative"},children:[Object(l.jsx)("h1",{style:{position:"absolute",color:"white",fontFamily:"Macan",top:"15px",left:"36%",fontSize:"15px"}}),Object(l.jsx)("img",{src:n,alt:"user",style:{width:"50%",objectFit:"cover"}})," ",Object(l.jsx)(Y,{id:e},e)]})]})},V=Object(c.lazy)((function(){return a.e(7).then(a.bind(null,144))})),J=Object(c.lazy)((function(){return Promise.all([a.e(3),a.e(6)]).then(a.bind(null,154))})),W=Object(c.lazy)((function(){return a.e(8).then(a.bind(null,149))})),K=Object(c.lazy)((function(){return a.e(4).then(a.bind(null,150))})),q=Object(c.lazy)((function(){return a.e(5).then(a.bind(null,151))}));function Q(){var e=Object(D.a)().y,t=Object(c.useState)(!1),a=Object(r.a)(t,2),n=a[0],i=a[1];return Object(c.useEffect)((function(){i(e>60)}),[e]),Object(l.jsxs)(v.a,{children:[Object(l.jsx)(I,{visible:n}),Object(l.jsx)(c.Suspense,{fallback:Object(l.jsx)(E,{}),children:Object(l.jsx)(z.a,{children:Object(l.jsxs)(f.c,{children:[Object(l.jsx)(f.a,{exact:!0,path:"/",component:J}),Object(l.jsx)(f.a,{exact:!0,path:"/home",component:J}),Object(l.jsx)(f.a,{exact:!0,path:"/products",component:K}),Object(l.jsx)(f.a,{exact:!0,path:"/products/:id/:name",component:R}),Object(l.jsx)(f.a,{exact:!0,path:"/progress",component:V}),Object(l.jsx)(f.a,{exact:!0,path:"/progress/:id/:name",component:H}),Object(l.jsx)(f.a,{exact:!0,path:"/coaching",component:G}
1),Object(l.jsx)(f.a,{exact:!0,path:"/coaching/:id",component:_}),Object(l.jsx)(f.a,{exact:!0,path:"/productmusic",component:q}),Object(l.jsx)(f.a,{exact:!0,path:"*",component:W})]})})})]})}a(104);var X={position:k.b.BOTTOM_RIGHT,timeout:5e3,offset:"30px",transition:k.c.SCALE};s.a.render(Object(l.jsx)(u,{children:Object(l.jsx)(d,{children:Object(l.jsx)(b.b,{children:Object(l.jsx)(h,{children:Object(l.jsx)(x,{children:Object(l.jsx)(k.a,Object(n.a)(Object(n.a)({template:p.a},X),{},{children:Object(l.jsx)(Q,{})}))})})})})}),document.getElementById("root"))},20:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(7),c=a(2),i=a(3),s=Object(c.createContext)(null);t.b=function(e){var t=e.children,a=Object(c.useState)(""),r=Object(n.a)(a,2),l=r[0],o=r[1];return Object(i.jsx)(s.Provider,{value:{isSignedIn:l,updateSignedIn:o},children:t})}},47:function(e,t,a){"use strict";var n=a(18),c=a(3);t.a=function(e){return Object(c.jsxs)("svg",Object(n.a)(Object(n.a)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 511.995 511.995",width:"25px",height:"25px"},e),{},{children:[Object(c.jsx)("path",{d:"M437.126 74.939c-99.826-99.826-262.307-99.826-362.133 0C26.637 123.314 0 187.617 0 256.005s26.637 132.691 74.993 181.047c49.923 49.923 115.495 74.874 181.066 74.874s131.144-24.951 181.066-74.874c99.826-99.826 99.826-262.268.001-362.113zM409.08 409.006c-84.375 84.375-221.667 84.375-306.042 0-40.858-40.858-63.37-95.204-63.37-153.001s22.512-112.143 63.37-153.021c84.375-84.375 221.667-84.355 306.042 0 84.355 84.375 84.355 221.667 0 306.022z"}),Object(c.jsx)("path",{d:"M341.525 310.827l-56.151-56.071 56.151-56.071c7.735-7.735 7.735-20.29.02-28.046-7.755-7.775-20.31-7.755-28.065-.02l-56.19 56.111-56.19-56.111c-7.755-7.735-20.31-7.755-28.065.02-7.735 7.755-7.735 20.31.02 28.046l56.151 56.071-56.151 56.071c-7.755 7.735-7.755 20.29-.02 28.046 3.868 3.887 8.965 5.811 14.043 5.811s10.155-1.944 14.023-5.792l56.19-56.111 56.19 56.111c3.868 3.868 8.945 5.792 14.023 5.792a19.828 19.828 0 0014.043-5.811c7.733-7.756 7.733-20.311-.022-28.046z"})]}))}},48:function(e,t,a){"use strict";a.d(t,"b",(function(){return s}));var n=a(7),c=a(2),i=a(3),s=Object(c.createContext)();t.a=function(e){var t=e.children,a=Object(c.useState)([]),r=Object(n.a)(a,2),l=r[0],o=r[1];return Object(i.jsx)(s.Provider,{value:{mentorList:l,setMentorList:o},children:t})}},52:function(e,t,a){},6:function(e,t,a){"use strict";var n=a(46);n.a.initializeApp({apiKey:"AIzaSyBs5hUHkYwHktj5n1Gfol0BndwF337BHgU",authDomain:"fiverr-79dc9.firebaseapp.com",databaseURL:"https://fiverr-79dc9-default-rtdb.europe-west1.firebasedatabase.app/",projectId:"fiverr-79dc9",storageBucket:"fiverr-79dc9.appspot.com",messagingSenderId:"987911618060",appId:"1:987911618060:web:d75edf39b0bd9992f1f829"}),t.a=n.a},66:function(e,t,a){},78:function(e,t,a){},86:function(e,t,a){},87:function(e,t,a){}},[[105,1,2]]]); 2//# sourceMappingURL=main.293fdc96.chunk.js.map
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.