1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026],{26117:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return n(58697)}])},68640:function(e,a,n){"use strict";n.d(a,{H:function(){return d}});var d={formats:{short:"dd/MM/yyyy",long:"d MMMM yyyy",booking:"EEEE d MMMM yyyy HH:mm",longtime:"d MMMM yyyy HH:mm"}}},58697:function(e,a,n){"use strict";n.r(a),n.d(a,{__N_SSP:function(){return A},default:function(){return O}});var d=n(85893),t=n(18132),s=n(46073),r=n(39101),i=n(81462),o=n(68158),l=n(6434),c=n.n(l);function _(){var e=(0,t.$)(["common","dashboard"]).t;return(0,d.jsxs)("div",{className:c().dashboard__item,children:[(0,d.jsx)("p",{className:"mt--8",children:e("dashboard:editor.intro")}),(0,d.jsx)("div",{className:"mt--8",children:(0,d.jsx)(o.z,{href:i.k.api.domain,target:"_blank",children:e("dashboard:editor.cta")})})]})}function m(){var e=(0,t.$)(["common","dashboard"]).t;return(0,d.jsxs)("div",{className:c().dashboard__item,children:[(0,d.jsx)("p",{className:"mt--8",children:e("dashboard:editor.intro")}),(0,d.jsx)("div",{className:"mt--8",children:(0,d.jsx)(o.z,{href:i.k.api.domain,target:"_blank",children:e("dashboard:editor.cta")})})]})}var h=n(9669),u=n.n(h),f=n(67294),v=n(35026),p=n(75830),b=n(94638),x=n(6283),j=n(47805),k=n(20074),N=n(93707),g=n.n(N),y=n(11163),w=n(68640);function Z(e){var a=e.date,n=e.name,s=e.task,r=e.score,i=e.message,l=(0,y.useRouter)().locale,c=(0,f.useState)(!1),_=c[0],m=c[1],h=(0,t.$)(["dashboard"]).t,u="fr"===l?p.Z:b.Z;return(0,d.jsx)("div",{className:g().feedbackitem,children:(0,d.jsxs)("div",{className:"",children:[(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)("div",{className:"col--md--3",children:a?(0,v.Z)(new Date(1e3*parseInt(a,10)),w.H.formats.short,{locale:u}):null}),(0,d.jsx)("div",{className:"col--md--3",children:n}),(0,d.jsx)("div",{className:"col--md--3",children:s}),(0,d.jsx)("div",{className:"col--md--3 ta--right",children:_?(0,d.jsx)(o.z,{onClick:function(){return m(!1)},mode:"naked",children:(0,d.jsx)(k.T,{})}):(0,d.jsx)(o.z,{onClick:function(){return m(!0)},mode:"naked",children:(0,d.jsx)(j.D,{})})})]}),_?(0,d.jsxs)("div",{children:[(0,d.jsx)(x.i,{className:"mb--4"}),(0,d.jsxs)("p",{className:"mb--2",children:[(0,d.jsx)("strong",{children:h("dashboard:label.score")}),": ",r]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:h("dashboard:label.message")}),": ",i]})]}):null]})})}var M=n(58647),T=function(){var e=(0,t.$)(["common","feedback","notes","dashboard"]).t,a=(0,f.useState)(),n=a[0],s=a[1];return(0,f.useEffect)((function(){u().get("/api/nl/feedback/expert/tasks").then((function(e){s(e.data)}))}),[]),n?(0,d.jsxs)("div",{className:c().dashboard__item,children:[(0,d.jsxs)("div",{className:"mb--16",children:[(0,d.jsx)("h2",{className:"mb--4",children:e("dashboard:title.expert")}),(0,d.jsx)("p",{className:"mb--4",children:e("dashboard:label.expert")}),(0,d.jsx)(o.z,{href:"/dashboard/task/add",children:e("dashboard:addtask")})]}),(0,d.jsxs)("div",{className:"mb--16",children:[(0,d.jsx)("h2",{className:"mb--4",children:e("dashboard:label.latestfeedback")}),n.filter((function(e){return e.field_feedback_soho_expert})).map((function(e){var a,n;return(0,d.jsx)(Z,{company:"",name:(null===(a=e.field_soho)||void 0===a?void 0:a.field_first_name)+" "+(null===(n=e.field_soho)||void 0===n?void 0:n.field_last_name),task:e.field_task_name,score:e.field_feedback_soho_expert.field_work_score,message:e.field_feedback_soho_expert.field_feedback_details,date:""+Date.parse(e.created)/1e3},e.id)}))]})]}):(0,d.jsx)("div",{className:c().dashboard__item,children:(0,d.jsx)(M.g,{})})},U=n(17677),D=n(83937),I=n.n(D),S=function(){var e=(0,f.useState)(!0),a=e[0],n=e[1],s=(0,f.useState)(),r=s[0],i=s[1],o=(r||[]).filter((function(e){return!e.past})),l=(r||[]).filter((function(e){return e.past})),_=(0,t.$)(["common","dashboard"]).t;return(0,f.useEffect)((function(){u().get("/api/nl/events/mentor").then((function(e){i(e.data),n(!1)}))}),[]),a?(0,d.jsx)("div",{className:c().dashboard__item,children:a&&(0,d.jsx)("div",{className:"ta--center py--5",children:(0,d.jsx)(M.g,{})})}):(0,d.jsxs)("div",{className:c().dashboard__item,children:[0===r.length&&(0,d.jsx)("div",{className:I().calendar__wrapper,children:(0,d.jsx)("p",{children:_("dashboard:appointments.none")})}),o.length>0&&(0,d.jsx)("div",{className:I().calendar__wrapper,children:(0,d.jsxs)("div",{className:[I().calendar__inner,I().calendar__up__apointments].join(" ").trim(),children:[(0,d.jsx)("h2",{className:"heading--3 mb--8",children:_("dashboard:appointments.upcoming")}),(0,d.jsx)("div",{className:I().appointment__dates__wrapper,children:o.map((function(e){var a,n,t;return(0,d.jsx)(U.t,{date:new Date(1e3*e.field_event_start_time),name:null===(a=e.field_calendly_event)||void 0===a?void 0:a.resource.name,detailsUrl:"https://calendly.com/app/scheduled_events/user/me",user:null===(n=e.field_calendly_request)||void 0===n?void 0:n.payload.name,location:null===(t=e.field_calendly_event)||void 0===t?void 0:t.resource.location.location,className:"mb--1"},e.id)}))})]})}),l.length>0&&(0,d.jsx)("div",{className:I().calendar__wrapper,children:(0,d.jsxs)("div",{className:[I().calendar__inner,I().calendar__up__apointments].join(" ").trim(),children:[(0,d.jsx)("h2",{className:"heading--3 mb--8",children:_("dashboard:appointments.past")}),(0,d.jsx)("div",{className:I().appointment__dates__wrapper,children:l.map((function(e){var a,n,t;return(0,d.jsx)(U.t,{date:new Date(1e3*e.field_event_start_time),name:null===(a=e.field_calendly_event)||void 0===a?void 0:a.resource.name,user:null===(n=e.field_calendly_request)||void 0===n?void 0:n.payload.name,location:null===(t=e.field_calendly_event)||void 0===t?void 0:t.resource.location.location,className:"mb--1",notesUrl:"/dashboard/events/".concat(e.id,"/mentor-to-soho-notes"),feedbackUrl:!e.field_feedback_mentor_soho&&"/dashboard/events/".concat(e.id,"/mentor-about-soho-feedback"),feedbackPreviewUrl:e.field_feedback_mentor_soho&&"/dashboard/events/".concat(e.id,"/mentor-about-soho-feedback")},e.id)}))})]})}),(0,d.jsx)("div",{className:I().calendar__wrapper,children:(0,d.jsxs)("div",{className:[I().calendar__inner,I().calendar__up__apointments].join(" ").trim(),children:[(0,d.jsx)("h2",{className:"mb--4",children:_("dashboard:label.latestfeedback")}),l.filter((function(e){return e.field_feedback_soho_mentor})).map((function(e,a){var n,t=e.field_event_soho;return(0,d.jsx)(Z,{company:"",name:(null===t||void 0===t?void 0:t.field_first_name)+" "+(null===t||void 0===t?void 0:t.field_last_name),task:null===(n=e.field_calendly_event)||void 0===n?void 0:n.resource.name,score:e.field_feedback_soho_mentor.field_free_call_score,message:e.field_feedback_soho_mentor.field_feedback_details,date:e.field_event_start_time},"expert-feedback-".concat(a))}))]})})]})},E=n(828),z=n(2475),H=function(){var e,a,n,s,r,i,l,_,m,h=(0,f.useState)(!0),v=h[0],p=h[1],b=(0,f.useState)(),x=b[0],j=b[1],k=(0,f.useState)({}),N=k[0],g=k[1],y=(0,t.$)(["common","dashboard","notes","feedback"]).t;return(0,f.useEffect)((function(){Promise.all([u().get("/api/nl/events/soho"),u().get("/api/nl/users/tasks")]).then((function(e){var a=(0,E.Z)(e,2),n=a[0],d=a[1];j(n.data),g(d.data.tasks),p(!1)}))}),[]),v?(0,d.jsx)("div",{className:c().dashboard__item,children:v&&(0,d.jsx)("div",{className:"ta--center py--5",children:(0,d.jsx)(M.g,{})})}):(0,d.jsxs)("div",{className:c().dashboard__item,children:[!x&&(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)("h2",{className:"heading--2 mb--8",children:y("dashboard:book.title")}),(0,d.jsx)("p",{children:y("dashboard:book.intro")}),(0,d.jsx)("div",{className:"mt--8",children:(0,d.jsx)(o.z,{href:"/book",children:y("dashboard:book.cta")})})]}),x&&(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)("h2",{className:"heading--2 mb--8",children:y("dashboard:title.call")}),(0,d.jsx)(U.t,{date:null===(e=x.field_calendly_event)||void 0===e?void 0:e.resource.start_time,name:null===(a=x.field_calendly_event)||void 0===a?void 0:a.resource.name,cancelUrl:!x.past&&(null===(n=x.field_calendly_request)||void 0===n||null===(s=n.payload)||void 0===s?void 0:s.cancel_url),rescheduleUrl:!x.past&&(null===(r=x.field_calendly_request)||void 0===r?void 0:r.payload.reschedule_url),user:null===(i=x.field_calendly_request)||void 0===i?void 0:i.payload.name,className:"mb--8",feedbackUrl:x.past&&!x.field_feedback_soho_mentor&&"/dashboard/events/".concat(x.id,"/soho-to-mentor-feedback"),feedbackPreviewUrl:x.past&&x.field_feedback_soho_mentor&&"/dashboard/events/".concat(x.id,"/soho-to-mentor-feedback")},x.id)]}),((null===x||void 0===x?void 0:x.past)||(null===x||void 0===x?void 0:x.field_event_notes))&&(x.field_event_notes?(0,d.jsx)(f.Fragment,{children:(0,d.jsx)("div",{className:c().Dashboard_header__wrapper,children:(0,d.jsxs)("div",{className:c().Dashboard_header__inner,children:[(0,d.jsx)("h3",{className:"heading--3 mb--4 mt--8",children:y("notes:title.dashboard",{subject:null===(l=x.field_calendly_event)||void 0===l?void 0:l.resource.name})}),(0,d.jsx)("div",{className:"richcontent mt--8 mb--10",dangerouslySetInnerHTML:{__html:x.field_event_notes.field_shared_notes.sanitized}})]})})}):(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)("h3",{className:"heading--3 mb--4 mt--8",children:y("notes:title.dashboard",{subject:null===(_=x.field_calendly_event)||void 0===_?void 0:_.resource.name})}),(0,d.jsx)("p",{children:y("notes:nonotes")})]})),(null===(m=Object.keys(N))||void 0===m?void 0:m.length)>0&&(0,d.jsxs)(f.Fragment,{children:[(0,d.jsx)("h2",{className:"heading--2 mb--8 mt--8",children:y("feedback:title.dashboard")}),Object.keys(N).map((function(e){return(0,d.jsx)("section",{className:I().appointmentTable__wrapper,children:(0,d.jsx)(z.i,{expert:N[e].expert_name,date:N[e].created,task:N[e].task_name,locked:!!N[e].soho_feedback,id:e})},e)}))]})]})},P=n(85596),A=!0,O=function(){var e=(0,s.H)().me,a=(0,t.$)(["common","dashboard"]).t;return e?(0,d.jsxs)(P.c,{title:a("dashboard:title"),children:[(0,r.nu)(e,"soho")&&(0,d.jsx)(H,{}),(0,r.nu)(e,"expert")&&(0,d.jsx)(T,{}),(0,r.nu)(e,"mentor")&&(0,d.jsx)(S,{}),(0,r.nu)(e,"editor")&&(0,d.jsx)(m,{}),(0,r.nu)(e,"administrator")&&(0,d.jsx)(_,{})]}):null}},81462:function(e,a,n){"use strict";n.d(a,{k:function(){return i}});var d=n(26042),t=n(69396),s=n(83454),r={domain:"//www.b2b.telenet.be",url:"https:".concat("//www.b2b.telenet.be","/js/forms2/js/forms2.min.js"),id:"839-XUN-065"},i={debug:!1,maxAvatarSize:2048,usercount:10,consumerID:s.env.DEFAULT_CONSUMER_ID,api:{domain:"https://d
1dvv20-56e464602c2d.deltablue.io",base:s.env.API_BASE,baseShort:s.env.API_BASESHORT,router:s.env.API_ROUTER_PATH},auth:{login:"".concat("https://ddvv20-56e464602c2d.deltablue.io","/en").concat(s.env.API_LOGIN),logout:"".concat("https://ddvv20-56e464602c2d.deltablue.io","/en").concat(s.env.API_LOGOUT),social_login:"".concat("https://ddvv20-56e464602c2d.deltablue.io","/en").concat(s.env.API_SOCIAL_LOGIN),actions:{login:"/api/auth/callback/credentials"}},marketo:{nl:{registration:(0,t.Z)((0,d.Z)({},r),{form_id:"2844"}),book:(0,t.Z)((0,d.Z)({},r),{form_id:"2845"}),newsletter:(0,t.Z)((0,d.Z)({},r),{form_id:"2842"})},fr:{registration:(0,t.Z)((0,d.Z)({},r),{form_id:"3287"}),book:(0,t.Z)((0,d.Z)({},r),{form_id:"3286"}),newsletter:(0,t.Z)((0,d.Z)({},r),{form_id:"3288"})}}}},6283:function(e,a,n){"use strict";n.d(a,{i:function(){return i}});var d=n(29815),t=n(85893),s=n(6927),r=n.n(s);function i(e){var a=e.children,n=e.className,s=void 0===n?"":n,i=[r().divider].concat((0,d.Z)(s.split(" "))).join(" ").trim();return(0,t.jsx)("div",{className:i,children:a?(0,t.jsx)("span",{className:r().divider__content,children:a}):null})}},20074:function(e,a,n){"use strict";n.d(a,{T:function(){return i}});var d=n(29815),t=n(85893),s=n(50913),r=n.n(s);function i(e){var a=e.className,n=void 0===a?"":a,s=[r().icon,r()["icon--close"]].concat((0,d.Z)(n.split(" "))).join(" ").trim();return(0,t.jsx)("span",{className:s})}},17677:function(e,a,n){"use strict";n.d(a,{t:function(){return x}});var d=n(85893),t=n(23855),s=n(35026),r=n(19013),i=n(13882);function o(e,a){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),d=(0,r.Z)(a);return n.getTime()>d.getTime()}function l(e){(0,i.Z)(1,arguments);var a=(0,r.Z)(e);return a.setHours(0,0,0,0),a}function c(e,a){(0,i.Z)(2,arguments);var n=l(e),d=l(a);return n.getTime()===d.getTime()}function _(e){return(0,i.Z)(1,arguments),c(e,Date.now())}var m=n(75830),h=n(94638),u=n(11163),f=n(18132),v=n(68158),p=n(68053),b=n.n(p),x=function(e){var a=(0,f.$)(["common","dashboard"]).t,n=e.notesUrl,r=e.name,i=void 0===r?"":r,l=e.date,c=void 0===l?"":l,p=e.cancelUrl,x=void 0===p?"":p,j=e.rescheduleUrl,k=void 0===j?"":j,N=e.user,g=void 0===N?"":N,y=(e.className,e.location),w=void 0===y?"":y,Z=e.feedbackUrl,M=e.feedbackPreviewUrl,T=e.detailsUrl,U=void 0===T?"":T,D=(0,u.useRouter)().locale;if(!c)return null;var I="fr"===D?m.Z:h.Z,S="string"===typeof c?(0,t.Z)(c):c,E=(0,s.Z)(S,"yyyy-MM-dd",{locale:I}),z=(0,s.Z)(S,"d",{locale:I}),H=(0,s.Z)(S,"eeee",{locale:I}),P=(0,s.Z)(S,"MMMM",{locale:I}),A=(0,s.Z)(S,"yyyy",{locale:I}),O=(0,s.Z)(S,"HH:mm",{locale:I}),R=[b().appointment__date__wrapper].join(" ").trim();return(0,d.jsxs)("div",{className:R,children:[(0,d.jsx)("div",{className:b().appointment__date__number__wrapper,children:(0,d.jsx)("span",{className:b().appointment__date__number,children:z})}),(0,d.jsxs)("div",{className:b().appointment__date__info,children:[(0,d.jsxs)("time",{dateTime:E,children:[P," ",A]}),(0,d.jsxs)("p",{children:[H," - ",O]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:i})," - ",g]})]}),(0,d.jsxs)("div",{className:b().appointment__date__actions,children:[o(new Date,S)&&n&&(0,d.jsx)(v.z,{href:n,children:a("dashboard:notes")}),x&&(0,d.jsx)(v.z,{href:x,target:"_blank",children:a("dashboard:cancel")}),k&&(0,d.jsx)(v.z,{href:k,target:"_blank",children:a("dashboard:reschedule")}),U&&(0,d.jsx)(v.z,{href:U,target:"_blank",children:a("dashboard:details")}),_(S)&&w&&(0,d.jsx)(v.z,{href:w,target:"_blank",children:a("dashboard:location")}),Z&&(0,d.jsx)(v.z,{href:Z,children:a("dashboard:feedback")}),M&&(0,d.jsx)(v.z,{mode:"ghost",color:"secondary",href:M,children:a("dashboard:feedback")})]})]})}},2475:function(e,a,n){"use strict";n.d(a,{i:function(){return m}});var d=n(85893),t=n(68158),s=n(6283),r=n(35026),i=n(75830),o=n(94638),l=n(18132),c=n(11163),_=n(68640);function m(e){var a=(0,l.$)(["dashboard"]).t,n=e.expert,m=e.task,h=e.date,u=e.locked,f=e.id,v="fr"===(0,c.useRouter)().locale?i.Z:o.Z;return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)("div",{className:"col--md--4",children:n}),(0,d.jsx)("div",{className:"col--md--4",children:m}),(0,d.jsx)("div",{className:"col--md--4",children:(0,r.Z)(new Date(1e3*parseInt(h,10)),_.H.formats.long,{locale:v})})]}),(0,d.jsx)(s.i,{}),(0,d.jsx)("div",{className:"mt--4",children:(0,d.jsx)(t.z,{href:"/dashboard/feedback/task/".concat(f),className:"mr--2",mode:u?"ghost":void 0,color:u?"secondary":void 0,children:a("dashboard:feedback")})})]})}},58647:function(e,a,n){"use strict";n.d(a,{g:function(){return r}});var d=n(85893),t=n(13115),s=n.n(t);function r(e){var a=e.className,n=void 0===a?"":a,t=[s().loader,n.split(" ")].join(" ");return(0,d.jsxs)("div",{className:t,children:[(0,d.jsx)("div",{}),(0,d.jsx)("div",{}),(0,d.jsx)("div",{}),(0,d.jsx)("div",{})]})}},6927:function(e){e.exports={divider:"divider_divider__XfMAY",divider__content:"divider_divider__content__R_PKM"}},68053:function(e){e.exports={appointment__date__wrapper:"appointmentDate_appointment__date__wrapper__gukWg",appointment__date__number__wrapper:"appointmentDate_appointment__date__number__wrapper__GBrLt",appointment__date__number:"appointmentDate_appointment__date__number__yTQMS",appointment__date__info:"appointmentDate_appointment__date__info__4sJkA",appointment__date__actions:"appointmentDate_appointment__date__actions__MZLTH"}},93707:function(e){e.exports={feedbackitem:"feedbackItem_feedbackitem__O5KFk",feedbackitem__content:"feedbackItem_feedbackitem__content__Z5HQQ"}},13115:function(e){e.exports={loader:"loading_loader__TkOM6",spin:"loading_spin___Ni6I"}},83937:function(e){e.exports={calendar__wrapper:"calendar_calendar__wrapper__mKZhR",calendar__inner:"calendar_calendar__inner__iGmjR",appointmentTable__wrapper:"calendar_appointmentTable__wrapper__9oIlK"}}},function(e){e.O(0,[3996,4254,9436,1300,7790,9774,2888,179],(function(){return a=26117,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
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.