1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5313],{30599:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(90116),s=n(59499),i=n(80424);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,s.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l=(0,i.Z)(),d=o(o({},l.find(function(e){return"Australia/Sydney"===e.name})),{},{mainCities:["Melbourne"],name:"Australia/Melbourne"}),c=[].concat((0,r.Z)(l),[d]);c.sort(function(e,t){return null!=e&&e.currentTimeOffsetInMinutes&&null!=t&&t.currentTimeOffsetInMinutes?(null==e?void 0:e.currentTimeOff
1setInMinutes)-(null==t?void 0:t.currentTimeOffsetInMinutes):0});var u=c.map(function(e){var t,n=null==e?void 0:null===(t=e.currentTimeFormat)||void 0===t?void 0:t.slice(0,6);return{value:{offset:n,city:e.name,cityBasic:e.mainCities[0]},label:"GMT(".concat(n,") ").concat(e.alternativeName," - ").concat(e.mainCities[0])}})},52092:function(e,t,n){"use strict";n.d(t,{v:function(){return r},Z:function(){return $}});var r,s,i=n(17674),a=n(31057),o=n(30381),l=n.n(o),d=n(67294),c=n(29197),u=n(62475);function $(e){var t,n,s,o,$,m=e.job,x=(0,d.useState)(!0),h=x[0],p=x[1],f=(0,d.useState)(!1),b=f[0],v=f[1],g=(0,d.useState)(!1),j=g[0],y=g[1],_=(0,d.useState)(!1),N=_[0],w=_[1],k=(0,u.Z)(),E=k.currentUserId,C=k.currentUser,S=(0,a.M9N)({variables:{job_id:null==m?void 0:m.id},skip:!(null!=m&&m.id),onSubscriptionData:function(){p(!1)}}),D=S.data,T=S.loading;(0,d.useEffect)(function(){if(T||!D){p(!0);return}},[D,T]);var O=(n=(t={job:m}).job,s=(0,c.Z)({currentThread:n}).updateReadStatus,o=(0,u.Z)().currentUserId,$=(0,a._b3)({onError:function(e){return console.log(e)},onCompleted:function(){s(o,!1,!1)}}),{addJobMessage:(0,i.Z)($,1)[0]}).addJobMessage,I=(0,d.useMemo)(function(){return D?null==D?void 0:D.job_bookings[0]:null},[D,T]),P=(0,d.useMemo)(function(){return!!I&&l()(I.timestamp).isBefore(l()())},[I]),M=(0,d.useMemo)(function(){return!(!I||[null,"declined"].includes(I.status||null))},[I]),Z=(0,a.J_J)(),F=(0,i.Z)(Z,1)[0],A=(0,a.MYo)({onCompleted:function(e){var t,n,r;O({variables:{message:"".concat(C.first_name," ").concat(null==e?void 0:null===(t=e.result)||void 0===t?void 0:t.status," the invitation"),booking_id:null==e?void 0:null===(n=e.result)||void 0===n?void 0:n.id,job_id:m.id}}),(null==e?void 0:null===(r=e.result)||void 0===r?void 0:r.status)==="accepted"&&F({variables:{id:m.id,booking_id:null==e?void 0:e.result.id}})},variables:{id:null==m?void 0:m.id,status:"accepted"}}),B=(0,i.Z)(A,1)[0];(0,d.useEffect)(function(){if(E&&m){var e;v(E===m.user_id),y(E===(null===(e=m.accepted_offer)||void 0===e?void 0:e.mentor))}else v(!1),y(!1)},[m,E]),(0,d.useEffect)(function(){I&&I.user_id===E?w(!0):w(!1)},[I,E]);var V=(0,d.useMemo)(function(){if(!I)return r.NO_BOOKING;var e,t=null!==(e=null==m?void 0:m.video_room_completed)&&void 0!==e&&e;return M?t?P?r.CONFIRMED_VIDEO_COMPLETED_AND_IN_PAST:r.CONFIRMED_VIDEO_COMPLETED_AND_IN_FUTURE:P?r.CONFIRMED_VIDEO_INCOMPLETE_AND_IN_PAST:r.CONFIRMED_VIDEO_INCOMPLETE_AND_IN_FUTURE:t?r.VIDEO_COMPLETE_WAITING_RESPONSE:r.VIDEO_INCOMPLETE_WAITING_RESPONSE},[I,M,m,P]);return{activeBooking:I,bookingState:V,loading:h,isActiveBookingExpired:P,isActiveBookingConfirmed:M,currentUserIsMentee:b,currentUserIsMentor:j,currentUserIsBookingOwner:N,setBookingResponse:B}}(s=r||(r={}))[s.NO_BOOKING=0]="NO_BOOKING",s[s.VIDEO_INCOMPLETE_WAITING_RESPONSE=1]="VIDEO_INCOMPLETE_WAITING_RESPONSE",s[s.VIDEO_COMPLETE_WAITING_RESPONSE=2]="VIDEO_COMPLETE_WAITING_RESPONSE",s[s.CONFIRMED_VIDEO_INCOMPLETE_AND_IN_FUTURE=3]="CONFIRMED_VIDEO_INCOMPLETE_AND_IN_FUTURE",s[s.CONFIRMED_VIDEO_INCOMPLETE_AND_IN_PAST=4]="CONFIRMED_VIDEO_INCOMPLETE_AND_IN_PAST",s[s.CONFIRMED_VIDEO_COMPLETED_AND_IN_FUTURE=5]="CONFIRMED_VIDEO_COMPLETED_AND_IN_FUTURE",s[s.CONFIRMED_VIDEO_COMPLETED_AND_IN_PAST=6]="CONFIRMED_VIDEO_COMPLETED_AND_IN_PAST"},29197:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(17674),s=n(50319),i=n(80807);function a(e){var t=e.currentThread,n=(0,s.D)(i.at,{onError:function(e){return console.log("MENTOR-error:",e)}}),a=(0,r.Z)(n,1)[0],o=(0,s.D)(i.Js,{onError:function(e){return console.log("MENTEE-error:",e)}}),l=(0,r.Z)(o,1)[0];return{updateReadStatus:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e===t.user_id&&!r||e===t.accepted_offer.user_id&&r?a({variables:{id:t.id,mentor_has_read:n}}):(e===t.user_id&&r||e===t.accepted_offer.user_id&&!r)&&l({variables:{id:t.id,mentee_has_read:n}})}}}},75520:function(e,t,n){"use strict";var r=n(67294),s=n(62475),i=function(e){var t=e.job,n=(0,r.useState)(null),i=n[0],a=n[1],o=(0,r.useState)(null),l=o[0],d=o[1],c=(0,s.Z)().currentUserId;return(0,r.useEffect)(function(){var e,n,r,s;t&&c&&(a(null!==(e=null===(n=t.reviews)||void 0===n?void 0:n.filter(function(e){return(null==e?void 0:e.reviewer.id)==c}
1)[0])&&void 0!==e?e:null),d(null!==(r=null===(s=t.reviews)||void 0===s?void 0:s.filter(function(e){return(null==e?void 0:e.reviewee_id)==c})[0])&&void 0!==r?r:null))},[t,c]),{reviewByCurrentUser:i,reviewByOtherUser:l}};t.Z=i},6877:function(e,t,n){"use strict";n.d(t,{uT:function(){return a},uz:function(){return l}});var r=n(80008),s=n.n(r),i=n(30599),a=function(e,t){var n,r,a,o,l,d,c,u,$=Intl.DateTimeFormat().resolvedOptions().timeZone,m=$;try{m=(null==e?void 0:e.user_id)===t&&null!=e&&e.city?null==e?void 0:e.city:$}catch(x){}!m&&null!=e&&e.city&&(m=e.city);var h,p=s()(null==e?void 0:e.timestamp),f=null===(n=s()(null==e?void 0:e.timestamp))||void 0===n?void 0:null===(r=n.tz(m))||void 0===r?void 0:r.format("D MMM YYYY"),b=null===(a=s()(null==e?void 0:e.timestamp))||void 0===a?void 0:null===(o=a.tz(m))||void 0===o?void 0:o.format("ddd"),v=null===(l=s()(null==e?void 0:e.timestamp))||void 0===l?void 0:null===(d=l.tz(m))||void 0===d?void 0:d.format("hh:mm a"),g=i.f.find(function(e){return e.value.city===m});return{momentUtc:p,day:b,date:f,time:v,city:null==g?void 0:null===(c=g.value)||void 0===c?void 0:c.cityBasic,offset:"(GMT".concat(null==g?void 0:null===(u=g.value)||void 0===u?void 0:u.offset,")")}},o=function(e){var t,n=s()(e.date),r=s()(e.time,"HH:mm"),i=n.isValid()?n.format("D MMM YYYY"):null,a=n.isValid()?n.format("ddd"):null,o=r.isValid()?r.format("hh:mm a"):null,l=e.timezone;return{day:a,date:i,time:o,city:(null==l?void 0:l.cityBasic)||null,offset:null!=l&&l.offset?"(GMT".concat(null==l?void 0:l.offset,")"):null}},l=function(e){var t=o(e),n=t.day,r=t.date,s=t.time,i=t.offset,a=t.city,l="",d="",c="";(n||r)&&(l="".concat(n," ").concat(r)),s&&(d="".concat(s)),(i||a)&&(c="".concat(i," ").concat(a));var u="".concat(l," ").concat(d);return[""===u.trim()?"TBD":u,""===c.trim()?"":c]}},48536:function(e,t,n){"use strict";n.d(t,{$G:function(){return s},C8:function(){return o},Ji:function(){return a},_Y:function(){return i}});var r=n(53416);n(31304);var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length>t?"".concat(e.substring(0,t)).concat(n):e},i=function(e){try{return new URL(e).hostname.replace("www.","")}catch(t){return""}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4;return(0,r.kP)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e)()},o=function(e){return e.length<=0?"#":e.startsWith("http")?e:"https://".concat(e)}},71707:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return tD},default:function(){return t4}});var r,s,i,a=n(71641),o=n(69641),l=n(48633),d=n(67294),c=n(16915),u=n(31057),$=n(38264),m=n(52092),x=n(62475),h=n(75520),p=n(48536),f=n(30381),b=n.n(f),v=n(16871),g=n(6877),j=n(59499),y=n(71383),_=n(13043),N=n.n(_),w=n(85893);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var C=N().div(r||(r=(0,y.Z)(["\n bg-gray-300\n rounded-lg\n h-3\n"]))),S=N().div(s||(s=(0,y.Z)(["\n bg-gray-300\n rounded-full\n"]))),D=function(e){return(0,w.jsxs)("div",E(E({className:"animate-pulse"},e),{},{children:[(0,w.jsxs)("div",{className:"mb-8 space-y-2",children:[(0,w.jsx)(C,{className:"w-12"}),(0,w.jsx)(C,{className:"w-24"})]}),(0,w.jsxs)("div",{className:"mb-8 space-y-2",children:[(0,w.jsx)(C,{className:"w-32"}),(0,w.jsx)(C,{className:"w-48"}),(0,w.jsx)(C,{className:"w-32"})]}),(0,w.jsxs)("div",{className:"mb-8 space-y-2",children:[(0,w.jsx)(C,{className:"w-12"}),(0,w.jsx)(C,{className:"w-24"})]}),(0,w.jsxs)("div",{className:"flex mb-8 space-x-4",children:[(0,w.jsxs)("div",{className:"flex flex-col items-center",children:[(0,w.jsx)(S,{className:"w-12 h-12 mb-4"}),(0,w.jsx)(C,{className:"w-12"})]}),(0,w.jsxs)("div",{className:"flex flex-col items-center",children:[(0,w.jsx)(S,{className:"w-12 h-12 mb-4"}),(0,w.jsx)(C,{className:"w-12"})]})]})]}))},T=n(34863),O=n(44713),I=n(40966),P=n(4730),M=n(7234),Z=n.n(M),F=n(19618),A=n(73782),B=["event"];function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?V(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var L=A.default.div.withConfig({displayName:"AddToCalendarButtonSimple__AddToCalendarWrapper",componentId:"sc-1i4de2n-0"})([".chq-atc{position:relative;}.chq-atc--button{background-color:#0095ff;border-radius:50%;width:2rem;height:2rem;color:#fff;display:flex;align-items:center;justify-content:center;:hover{background-color:#0078CD;}}.chq-atc--button path{fill:#fff;stroke-width:2;}.react-add-to-calendar__dropdown,.chq-atc--dropdown{z-index:30;width:180px;position:absolute;right:0px;top:0px;transform:translateY(0px) translateX(-50px);background:white;box-shadow:0 5px 20px 0 rgba(0,0,0,0.25);border-radius:10px;padding:8px 0;a{display:block;padding:10px 10px;font-size:12px;text-align:left;text-transform:capitalize;@media ","{font-size:14px;}:hover{background:#0095ff;color:white;i{color:white;}}i{margin-right:10px;color:#0095ff;}}}"],F.U.tablet),z=function(e){var t=e.event,n=(0,P.Z)(e,B);return(0,w.jsx)(L,R(R({},n),{},{children:(0,w.jsx)(Z(),{event:t,filename:"lisnic-booking",children:" "})}))},U=function(){return(0,w.jsx)("div",{className:"p-4 text-sm text-gray-700",children:"Select one of your message to view booking details"})},q=n(12450),G=n(29197),Y=n(17674),J=n(50319),W=n(56796),H=n(42705),K=n.n(H),Q=n(87536),X={RESCHEDULE:"Session Reschedule",INVITE:"Session Invitation"},ee=n(54390),et={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddJobBooking"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timestamp"}},type:{kind:"NamedType",name:{kind:"Name",value:"timestamptz"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"city"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"addJobBooking"},arguments:[{kind:"Argument",name:{kind:"Name",value:"timestamp"},value:{kind:"Variable",name:{kind:"Name",value:"timestamp"}}},{kind:"Argument",name:{kind:"Name",value:"city"},value:{kind:"Variable",name:{kind:"Name",value:"city"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timestamp"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:173,source:{body:"\n mutation AddJobBooking($timestamp: timestamptz, $city: String!) {\n result: addJobBooking(timestamp: $timestamp, city: $city) {\n id\n timestamp\n city\n }\n}\n ",name:"GraphQL request",locationOffset:{line:1,column:1}}}},en={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetAcceptedBooking"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"booking_id"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"setAcceptedBooking"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"booking_id"},value:{kind:"Variable",name:{kind:"Name",value:"booking_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"booking_id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:161,source:{body:"\n mutation SetAcceptedBooking($id: Int!, $booking_id: Int) {\n result: setAcceptedBooking(id: $id, booking_id: $booking_id) {\n id\n booking_id\n }\n}\n ",name:"GraphQL request",locationOffset:{line:1,column:1}}}},er={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetOtherJobBookingsExpired"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"job_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"update_job_bookings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"_and"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"_neq"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}]}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"messages"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"job_id"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"_eq"},value:{kind:"Variable",name:{kind:"Name",value:"job_id"}}}]}}]}}]}]}}]}},{kind:"Argument",name:{kind:"Name",value:"_set"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"status"},value:{kind:"StringValue",value:"expired",block:!1}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"affected_rows"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:306,source:{body:'\n mutation SetOtherJobBookingsExpired($id: Int!, $job_id: Int!) {\n result: update_job_bookings(\n where: {\n _and: [\n { id: { _neq: $id } }\n { messages: { job_id: { _eq: $job_id } } }\n ]\n }\n _set: { status: "expired" }\n ) {\n affected_rows\n }\n }\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}},es=n(80807),ei=n(38809),ea=n(97717),eo=n(49152),el=n(70016),ed=n(59660);function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var eu=new Date;eu.setDate(eu.getDate()-1);var e$,em=K().object({date:K().date().required(),timezone:K().object().required(),time:K().string().required()}).messages(ee.Gv),ex=function(e){var t=e.job_id,n=e.updateReadStatus,r=e.job_booking,s=void 0===r?null:r,i=e.isExisting,a=void 0!==i&&i,o=(0,x.Z)(),l=o.currentUserId,c=o.currentUser,$=(0,O.dd)().closeModal,m=(0,d.useState)(!1),h=m[0],p=m[1],f=(0,Q.cI)({resolver:(0,W.L)(em)}),v=f.control,g=f.handleSubmit,y=f.setValue,_=f.formState.errors,N=(0,J.D)(es.Gy,{onCompleted:function(){$(),n(l,!1)},onError:function(e){return console.log(e)}}),k=(0,Y.Z)(N,1)[0],E=(0,J.D)(er,{onError:function(e){return console.log(e)}}),C=(0,Y.Z)(E,1)[0],S=(0,J.D)(en,{onError:function(e){return console.log(e)}}),D=(0,Y.Z)(S,1)[0],I=(0,u.MZY)(),P=(0,Y.Z)(I,1)[0],M=(0,J.D)(et,{onCompleted:function(e){console.log("data:",e),k({variables:{message:X.INVITE,booking_id:e.result.id,job_id:t}}),C({variables:{id:e.result.id,job_id:t,user_id:l}}),D({variables:{id:t,booking_id:null}})},onError:function(e){console.log(e),p(!0)}}),Z=(0,Y.Z)(M,1)[0],F=(0,u.Vz)({variables:{id:null==s?void 0:s.id,user_id:l},onCompleted:function(e){console.log("data:",e),k({variables:{message:X.RESCHEDULE,booking_id:e.result.id,job_id:t}}),C({variables:{id:e.result.id,job_id:t,user_id:l}}),D({variables:{id:t,booking_id:null}})}}),A=(0,Y.Z)(F,1)[0],B=function(e){var t=b()(e.date).format().slice(0,10),n=e.time,r=e.timezone.offset,s="".concat(t,"T").concat(n,":00.00").concat(r);a?A({variables:{timestamp:s,city:e.timezone.city}}):Z({variables:{timestamp:s,city:e.timezone.city}}),c.preferred_timezone||P({variables:{user_id:l,preferred_timezone:e.timezone}})};return(0,w.jsxs)(T.xu,{as:"form",maxWidth:360,m:"0 auto",width:1,onSubmit:g(B),children:[(0,w.jsxs)(el.Z,{children:[(0,w.jsx)(ea.Mt,{"data-cy":"date-picker",control:v,name:"date",label:"Date",errors:_,defaultValue:null,historicalDate:!1}),(0,w.jsx)(Q.Qr,{name:"timezone",control:v,render:function(e){var t=e.field;return(0,w.jsx)(ed.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ec(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({label:"Timezone","data-cy":"timezone",setValue:y,errors:_,defaultValue:(null==c?void 0:c.preferred_timezone)||null},t))}}),(0,w.jsx)(ei.jI,{control:v,name:"time",label:"Time","data-cy":"time-picker",errors:_,defaultValue:null}),(0,w.jsx)(eo.B,{show:h,message:"You cannot a book a session in the past.",mt:"-10px"})]}),(0,w.jsx)(T.zx,{"data-cy":"save-session",mt:[15,24],type:"submit",children:"Save Session Time"})]})},eh=function(e){var t=e.currentThread,n=e.activeBooking,r=e.style,s=(0,O.dd)().openModal,i=(0,G.Z)({currentThread:t}).updateReadStatus,a={title:"Reschedule",subtitle:"Select a date and time for your session below.",modalContent:(0,w.jsx)(ex,{job_id:t.id,updateReadStatus:i,isExisting:!0,job_booking:n}),confirmClose:!1};return"text"===(void 0===r?"button":r)?(0,w.jsx)("button",{type:"button",className:"text-brand-blue",onClick:function(){s(a)},children:(0,w.jsx)("span",{className:"inline-block mr-2 mt-1 text-base font-semibold underline text-brand-orange hover:text-brand-orange-dark",children:"Reschedule Session"})}):(0,w.jsxs)("button",{type:"button",className:"flex items-center justify-center w-full px-6 py-2 mb-2 text-white rounded-full bg-brand-orange hover:bg-brand-orange-dark",onClick:function(){s(a)},children:[(0,w.jsx)("span",{className:"inline-block mr-2 mt-1 text-sm font-semibold uppercase h-5",children:"Choose another date"}),(0,w.jsx)(q.Z,{className:"w-5 h-5 text-white flex-shrink-0"})]})},ep=n(36388),ef=n(76749),eb=n(41664),ev=n.n(eb),eg=n(66438);(e$=i||(i={})).ALL="all",e$.COMPLETED="completed";var ej={activeTab:i.ALL},ey=(0,eg.QS)(ej),e_=n(13433);function eN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eN(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function e0(){var e;return{state:(0,e_.l)(ey),operations:{setActiveTab:function(e){ey(ew(ew({},ey()),{},{activeTab:e}))}}}}var ek=n(21990),e8=n(15268),e3=n(1128),e2=n(67771),e1=function(){return(0,w.jsx)(ei.zx,{type:"button",brand:"green",disabled:!0,className:"w-full bg-opacity-25",children:(0,w.jsx)("span",{className:"inline-block mt-1 mr-2 text-sm font-semibold uppercase h-5",children:"Mark as Complete"})})},eE=function(e){var t,n=e.activeBooking,r=e.currentThread,s=(0,O.dd)(),a=s.openModal,o=s.closeModal,l=(0,G.Z)({currentThread:r}).updateReadStatus,d=(0,x.Z)().currentUserId,c=(0,m.Z)({job:r}),u=c.setBookingResponse,$=c.currentUserIsMentee,p=(0,h.Z)({job:r}).reviewByCurrentUser,f=e0().operations,b=null==r?void 0:null===(t=r.accepted_offer)||void 0===t?void 0:t.mentor,v={title:"Write a review for",modalContent:(0,w.jsx)(e8.Y,{job:r,userType:$?"mentor":"mentee"})};return(0,w.jsx)(w.Fragment,{children:r.completed?(0,w.jsxs)("div",{className:"w-full",children:[!p&&$&&(0,w.jsxs)(ei.zx,{brand:"blue",type:"button",className:"w-full ",onClick:function(){a(v)},children:[(0,w.jsx)("span",{className:"inline-block mt-1 mr-2 text-sm font-semibold uppercase h-5",children:"Leave a review"}),(0,w.jsx)(ef.Z,{className:"w-5 h-5 text-white flex-shrink-0"})]}),$&&(0,w.jsx)(ei.zx,{brand:"orange",className:"w-full mt-2",onClick:function(){a({title:"Request Follow-Up",subtitle:"Send a new follow-up request to ".concat(b.first_name),modalContent:(0,w.jsx)(e2.Z,{job:r,mentor:b,onComplete:function(){(0,e3.z5)(null,"Follow-up request created successfully","success"),o()}})})},children:(0,w.jsx)("span",{className:"inline-block mt-1 mr-2 text-sm font-semibold uppercase h-5",children:"Follow-up Request?"})})]}):(0,w.jsxs)(w.Fragment,{children:[n?(0,w.jsx)(w.Fragment,{}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(ei.zx,{type:"button",brand:"orange",className:"flex items-center justify-center w-full px-6 py-2 mb-2 text-white rounded-full bg-brand-orange",onClick:function(){return a({title:"Schedule Session",subtitle:"Select a date and time for your session below.",modalContent:(0,w.jsx)(ex,{job_id:r.id,updateReadStatus:l}),confirmClose:!1})},children:[(0,w.jsx)("span",{className:"inline-block mt-1 mr-2 text-sm font-semibold uppercase h-5",children:"Book Session"}),(0,w.jsx)(q.Z,{className:"w-5 h-5 text-white flex-shrink-0"})]}),$&&(0,w.jsx)(e1,{})]}),n&&(null===n.status||"declined"===n.status)&&(0,w.jsx)(w.Fragment,{children:n.user_id===d?(0,w.jsx)(eh,{currentThread:r,activeBooking:n}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("button",{type:"button",className:"flex items-center justify-center w-full px-6 py-2 mb-2 text-white rounded-full bg-brand-green hover:bg-brand-green-dark",onClick:function(){return u({variables:{id:(null==n?void 0:n.id)||0,status:"accepted"}})},children:(0,w.jsx)("span",{className:"inline-block mr-2 mt-1 text-sm font-semibold uppercase h-5",children:"Accept Invite"})}),(0,w.jsx)(eh,{currentThread:r,activeBooking:n})]})}),n&&"accepted"===n.status&&(0,w.jsxs)("div",{className:"flex flex-col items-stretch w-full space-y-2",children:[(0,w.jsx)("div",{className:"flex items-stretch space-x-2",children:(0,w.jsx)(ev(),{href:"/video/".concat(r.video_room_id),passHref:!0,children:(0,w.jsxs)(ei.ZP,{className:"w-full",brand:"orange",target:"_blank",children:[(0,w.jsx)("span",{className:"inline-block mt-1 mr-2 text-sm font-semibold uppercase h-5",children:"Start Video Session"}),(0,w.jsx)(ep.Z,{className:"w-5 h-5 text-white flex-shrink-0"})]})})}),$&&(0,w.jsx)(ei.zx,{type:"button",brand:"green",onClick:function(e){return a({title:"Confirm job is completed",modalContent:(0,w.jsx)(ek.h,{job:r,closeModal:o,onComplete:function(){f.setActiveTab(i.COMPLETED),a(v)}})}),e.preventDefault(),!1},children:(0,w.jsx)("span",{className:"inline-block mt-1 mr-2 text-sm font-semibold uppercase h-5",children:"Mark as Complete"})})]})]})})},eC=function(e){var t=e.mentee,n=e.mentor;return(0,w.jsx)("div",{className:"flex space-x-4",children:[{user:n,label:"Expert",url:n.slug?"/profile/".concat(n.slug):null},{user:t,label:"Mentee",url:t.slug?"/profile/".concat(t.slug):null}].map(function(e){var t;return(0,w.jsxs)("div",{className:"flex flex-col items-center",children:[(0,w.jsx)(T.qE,{linkToProfile:!0,user:e.user,width:[28,100],height:[28,100]}),(0,w.jsxs)("div",{className:"mt-2 text-center",children:[(0,w.jsx)(ev(),{href:e.url||"#",children:(0,w.jsx)("a",{className:"text-sm font-bold hover:text-brand-blue",children:null===(t=e.user)||void 0===t?void 0:t.first_name})}),(0,w.jsx)("div",{className:"text-xs text-gray-700",children:e.label})]})]},e.label)})})},eS=function(e){var t=e.activeBooking,n=e.job,r=e.isBookingConfirmed,s=(0,x.Z)().currentUserId,i=(0,v.n)(n).them,a=(0,g.uT)(t,s),o=a.date,l=a.time,d=a.city,c=a.offset,u=a.day,$=new Date(null==t?void 0:t.t
1imestamp),m=$.setTime($.getTime()+36e5),h=b()(m).format();return(0,w.jsxs)("div",{className:"flex mt-2 pl-3",children:[(0,w.jsxs)("div",{className:"flex-1",children:[(0,w.jsxs)("div",{className:"text-base text-brand-blue font-semibold",children:[u,", ",o,", ",l]}),(0,w.jsxs)("div",{className:"text-sm text-gray-500",children:[c," ",d]})]}),void 0!==r&&r&&(0,w.jsx)("div",{className:"self-center text-right mr-10",children:(0,w.jsx)(z,{event:{name:"Lisnic Session Booking",details:"This is a Lisnic Session with ".concat(i.first_name," ").concat(i.last_name,' for "').concat(n.title,'". <br/><br/>The link to the video room is:<br/><a href="').concat("https://www.lisnic.com","/video/").concat(n.video_room_id,'">').concat("https://www.lisnic.com","/video/").concat(n.video_room_id,"</a>"),location:d||"",startsAt:null==t?void 0:t.timestamp,endsAt:h}})})]})},eD=function(e){var t=e.currentThread,n=e.currentUserIsMentee,r=(0,h.Z)({job:t}),s=r.reviewByCurrentUser,i=r.reviewByOtherUser,a=function(){return(0,w.jsxs)("div",{className:"rounded-lg p-5 shadow-lg bg-white",children:[(0,w.jsxs)("div",{className:"flex items-center mb-2 space-x-2",children:[(0,w.jsx)(T.qE,{user:i.reviewer,width:[32],height:[32]}),(0,w.jsx)(T.tS,{tiny:!0,rating:i.rating})]}),(0,w.jsxs)("p",{className:"text-sm text-gray-600",children:["â",i.content,"â"]})]})};return s?i?(0,w.jsxs)("div",{className:"space-y-4",children:[(0,w.jsx)("p",{className:"text-base",children:"Great job on completing your sessions!"}),a()]}):(0,w.jsxs)("div",{className:"space-y-4",children:[(0,w.jsx)("p",{className:"text-base mt-2",children:"Great job on completing your sessions!"}),(0,w.jsx)("p",{className:"text-base mt-2",children:"Thank you for also submitting your review!"}),(0,w.jsx)("div",{className:"mt-2",children:(0,w.jsxs)("div",{className:"rounded-lg p-5 shadow-lg bg-white",children:[(0,w.jsxs)("div",{className:"flex items-center mb-2 space-x-2",children:[(0,w.jsx)(T.qE,{user:s.reviewer,width:[32],height:[32]}),(0,w.jsx)(T.tS,{rating:s.rating})]}),(0,w.jsxs)("p",{className:"text-sm text-gray-600",children:["â",s.content,"â"]})]})})]}):(0,w.jsxs)("div",{className:"space-y-4 "+(!n&&"-mt-9"),children:[(0,w.jsx)("p",{className:"text-base mt-2",children:"Great job on completing your sessions!"}),n&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("p",{className:"text-base font-semibold text-brand-blue",children:"Don't forget to leave a review!"}),(0,w.jsx)("p",{className:"text-base mt-2",children:"It's super important and one of the ways we'll work on ensuring you get the most out of Lisnic in future."})]}),!!i&&(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"text-brand-blue-dark uppercase text-xs font-semibold",children:"Your review"}),(0,w.jsx)("div",{className:"mt-2",children:a()})]})]})},e4=function(e){var t,n=e.currentThreadId,r=(0,d.useState)(null),s=r[0],i=r[1],a=(0,u.N8k)({variables:{id:n||0},skip:!n}),o=a.data,l=a.loading;(0,d.useEffect)(function(){!l&&o?i(o.jobs_by_pk||null):i(null)},[o,l]);var c=(0,m.Z)({job:s}),x=c.activeBooking,h=c.currentUserIsMentee,f=c.currentUserIsBookingOwner,b=(0,O.dd)().openModal,v=(0,d.useMemo)(function(){return!(!x||[null,"declined"].includes(x.status||null))},[x]);return s?l||(null==s?void 0:s.id)!==n?(0,w.jsx)("div",{className:"p-4",children:(0,w.jsx)(D,{})}):(0,w.jsxs)("div",{className:"flex flex-col justify-start overflow-y-auto flex-grow h-chat-action-panel-screen pl-2",children:[(0,w.jsxs)("div",{className:"p-3 pr-12 pb-0",children:[(0,w.jsx)("div",{className:"text-brand-orange uppercase text-xs font-semibold",children:"Next step"}),(0,w.jsx)("div",{className:"text-base font-semibold",children:s.completed?"You're all done!":x?v?"Prepare for your session":f?"Wait for confirmation":"Accept or choose new date":"Schedule in your session"})]}),x&&!s.completed&&(0,w.jsx)(eS,{job:s,activeBooking:x,isBookingConfirmed:v}),(0,w.jsx)("div",{className:"flex flex-col items-center pl-3 pr-12 pb-5 mt-4",children:(0,w.jsx)(eE,{currentThread:s,activeBooking:x||void 0})}),(0,w.jsxs)("div",{className:"pl-3 pr-14",children:[(0,w.jsxs)("div",{children:[s.completed?(0,w.jsx)(eD,{currentUserIsMentee:h,currentThread:s}):(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"mb-8 mt-3",children:[!x&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"text-brand-blue-dark uppercase text-xs font-semibold",children:"Getting Started"}),(0,w.jsxs)("p",{className:"text-base mt-2",children:["Send an invite to schedule time to hold your video session with your"," ",h?"Expert"
1:"Advice Seeker","."]}),(0,w.jsx)("p",{className:"text-base mt-3",children:"\uD83D\uDC4B Use the private chat to talk and plan now."})]}),x&&!v&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"text-brand-blue-dark uppercase text-xs font-semibold",children:"What now?"}),(0,w.jsx)("p",{className:"text-base mt-2",children:f?"Use the chat to remind your "+(h?"Expert":"Advice Seeker")+" to either accept the invite, or suggest a new time.":"You need to either accept the invite, or propose a new time."})]}),v&&(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"text-brand-blue-dark uppercase text-xs font-semibold",children:"Ready!"}),(0,w.jsx)("p",{className:"text-base mt-2",children:"Youâre all set for your session."}),(0,w.jsx)("p",{className:"text-base mt-2",children:"Please be a good human being and keep all correspondence on Lisnic, otherwise we will remove your account."}),(0,w.jsx)("button",{type:"button",className:"inline-flex items-center text-brand-blue",onClick:function(){b({title:"How to prepare for your session",subtitle:"Now that your session is booked, hereâs a couple of tips to help you get ready.",modalContent:(0,w.jsx)(I.Z,{})})},children:(0,w.jsxs)("div",{className:"flex text-base mt-4 rounded-md group ",children:[(0,w.jsx)($.Z,{className:"w-5 h-5 flex-shrink-0 group text-brand-blue mr-2"}),(0,w.jsx)("strong",{className:"group-hover:underline",children:"How to prepare for your session"})]})})]})]})}),x&&v&&!s.completed&&(0,w.jsxs)("div",{className:"mt-2",children:[(0,w.jsx)("div",{className:"text-brand-blue-dark uppercase text-xs font-semibold",children:"Change in plans?"}),(0,w.jsxs)("p",{className:"text-base mt-2",children:["Simply send a new booking invite to your ",h?"Expert":"Advice Seeker"," - "," ",(0,w.jsx)(eh,{currentThread:s,activeBooking:x,style:"text"})]})]})]}),(0,w.jsx)("hr",{className:"mb-6 mt-8 border-t border-gray-300"}),(0,w.jsxs)("div",{className:"mb-4 ",children:[(0,w.jsx)("div",{className:"text-brand-blue-dark uppercase text-xs font-semibold",children:"Request Details"}),(0,w.jsx)("div",{className:"font-semibold text-base mt-1",children:s.session_type}),(0,w.jsx)("p",{className:"mt-2 text-base text-gray-500",children:(0,p.$G)((null==s?void 0:s.description)||"",500)})]}),(0,w.jsx)("div",{className:"mb-4",children:(0,w.jsx)(eC,{mentee:s.user,mentor:null==s?void 0:null===(t=s.accepted_offer)||void 0===t?void 0:t.mentor})})]})]}):(0,w.jsx)(U,{})},eT=n(5506),eO=n(51183),eI=n(73407),e6=n(50029),e7=n(87794),e5=n.n(e7),eP=n(75436),eM=n(15404),eZ=n(43185),eF=n(12869),eA=n(23609),eB=["style"];function eV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eV(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eL=!1;function ez(){var e,t,n,r=(0,d.useState)(eU),s=r[0],i=r[1],a=(e=(0,d.useState)(!1),t=e[0],n=e[1],(0,d.useEffect)(function(){eq()&&n(!0)},[]),t);return(0,d.useEffect)(function(){if(a)return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)};function e(){i(eU())}},[a]),a?s:null}function eU(){var e;return eq()?(null===(e=document.documentElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight:null}function eq(){return"undefined"!=typeof document}(0,d.forwardRef)(function(e,t){var n=e.style,r=(0,P.Z)(e,eB),s=ez();!eL&&null!=n&&n.height&&(eL=!0,console.warn("<Div100vh /> overrides the height property of the style prop"));var i=eR(eR({},n),{},{height:s?"".concat(s,"px"):"100vh"});return(0,w.jsx)("div",eR({ref:t,style:i},r))}).displayName="Div100vh";var eG=n(69575),eY=n(68715),eJ=n(80943),eW=function(){return(0,w.jsxs)(T.xu,{background:"#ffffff",borderRadius:"30px 30px 0 30px",cols:"auto 1fr",padding:[20,20],pr:[20,30],gap:[15],mt:[40,0],mb:[20,15],className:"shadow-xl",children:[(0,w.jsx)(eY.Z,{className:"w-6 h-6 flex-shrink-0 -mx-1 text-brand-blue stroke-1"}),(0,w.jsxs)(T.xv,{color:"black",mt:"-3px",className:"text-base",children:[(0,w.jsx)("div",{className:"text-xl text-brand-blue",children:(0,w.jsx)("strong",{children:"Congratulations! \uD83D\uDC4F"})}),(0,w.jsx)("div",{className:"mt-2",children:"By entering this chat you agree that all information exchanged prior, during and post the session has been deemed private unless expressed otherwise by the disclosing party in writing."}),(0,w.jsxs)("div",{className:"mt-4",children:["As per our "," ",(0,w.jsx)(ev(),{href:"/terms-of-service",children:(0,w.jsx)("a",{className:"text-brand-blue underline hover:underline",children:"Terms of Service"})})," ","all correspondence is to remain on Lisnic. If you are found to be engaging outside the platform, Lisnic has the authority to remove your account."]}),(0,w.jsx)("hr",{className:"my-4"}),(0,w.jsxs)("div",{className:"mt-4 font-semibold",children:["To schedule your session, agree on a time via the chat before clicking the"," ",(0,w.jsx)("strong",{children:"âBookâ"})," button to lock it in!"]}),(0,w.jsxs)("div",{className:"mt-6 flex",children:[(0,w.jsxs)("div",{className:"mr-2",children:["Donât forget to check out our free"," ",(0,w.jsx)(ev(),{href:"/resources",children:(0,w.jsx)("a",{className:"text-brand-blue underline border-none hover:underline",target:"_blank",children:"Resources"})})," ","to help you prepare!"]}),(0,w.jsx)(ev(),{href:"/resources",children:(0,w.jsxs)(ei.ZP,{brand:"blue",className:"w-48 uppercase ml-auto flex-shrink-0 my-auto",children:[(0,w.jsx)(eJ.Z,{className:"w-5 h-5 flex-shrink-0 mr-2 text-white stroke-1"}),"View Resources"]})})]})]})]})},eH=n(50424),e9=function(e){var t=e.title||"dots 05";return(0,w.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"chat-dots",children:[(0,w.jsx)("title",{children:t}),(0,w.jsxs)("g",{fill:"#D8D9E3",children:[(0,w.jsxs)("g",{className:"nc-loop_dots-05-24",children:[(0,w.jsx)("circle",{cx:"12",cy:"12",r:"2",transform:"translate(0 0.8404749999986958)"}),(0,w.jsx)("circle",{cx:"3",cy:"12",fill:"#D8D9E3",r:"2",transform:"translate(0 0)"}),(0,w.jsx)("circle",{cx:"21",cy:"12",fill:"#D8D9E3",r:"2",transform:"translate(0 2.840474999998696)"})]}),(0,w.jsx)("script",{children:'!function(){function t(t){this.element=t,this.dots=[this.element.getElementsByTagName("circle")[1],this.element.getElementsByTagName("circle")[0],this.element.getElementsByTagName("circle")[2]],this.animationId,this.start=null,this.init()}if(!window.requestAnimationFrame){var i=null;window.requestAnimationFrame=function(t,n){var e=(new Date).getTime();
1i||(i=e);var a=Math.max(0,16-(e-i)),o=window.setTimeout(function(){t(e+a)},a);return i=e+a,o}}t.prototype.init=function(){var t=this;this.animationId=window.requestAnimationFrame(t.triggerAnimation.bind(t))},t.prototype.reset=function(){var t=this;window.cancelAnimationFrame(t.animationId)},t.prototype.triggerAnimation=function(t){var i=this;this.start||(this.start=t);var n=t-this.start,e=Math.min(n/40,23);930>n||(this.start=this.start+930);for(var a=[],o=0;3>o;o++){a[o]=Math.max(e-2*o,0);if(a[o]>6)(a[o]=12-a[o]);a[o]=Math.max(a[o],0),this.dots[o].setAttribute("transform","translate(0 "+a[o]+")");}if(document.documentElement.contains(this.element))window.requestAnimationFrame(i.triggerAnimation.bind(i))};var n=document.getElementsByClassName("nc-loop_dots-05-24"),e=[];if(n)for(var a=0;n.length>a;a++)!function(i){e.push(new t(n[i]))}(a);document.addEventListener("visibilitychange",function(){"hidden"==document.visibilityState?e.forEach(function(t){t.reset()}):e.forEach(function(t){t.init()})})}();'})]})]})},eK=n(19965),eQ=n(43003),eX=n(38945),te=n(8026),tt=function(e){var t,n,r=e.attachment,s=e.showDelete,i=e.isSender,a=void 0!==i&&i,o=(0,d.useState)(!1),l=o[0],c=o[1],u=(t=(0,e6.Z)(e5().mark(function e(){var t,n,s;return e5().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("DELETED"!==r.status){e.next=2;break}return e.abrupt("return");case 2:return c(!0),e.prev=3,e.next=6,fetch("/api/files/secure-download",{method:"POST",body:JSON.stringify({type:"job_attachment",attachment_id:r.id}),headers:{"Content-Type":"application/json"}});case 6:return t=e.sent,e.next=9,t.json();case 9:s=(n=e.sent).signed_url,window.location.href=s,c(!1),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),c(!1);case 18:case"end":return e.stop()}},e,null,[[3,15]])})),function(){return t.apply(this,arguments)}),$=(n=(0,e6.Z)(e5().mark(function e(){return e5().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/files/delete",{method:"POST",body:JSON.stringify({attachment_id:r.id}),headers:{"Content-Type":"application/json"}});case 2:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,w.jsxs)("div",{className:"mt-1 -ml-6",children:[(0,w.jsx)("button",{type:"button",onClick:u,className:(0,te.A)("flex items-center p-2 rounded-md group","DELETED"===r.status?"cursor-not-allowed shadow-none":"bg-white shadow-lg"),children:"DELETED"===r.status?(0,w.jsxs)("div",{className:"px-1 text-white ml-3",children:[(0,w.jsx)("hr",{className:"mb-1 -mt-2"}),(0,w.jsxs)("div",{className:"flex",children:[(0,w.jsx)(eK.Z,{className:"w-4 h-4 mr-1 mt-0.5 text-red-600"}),(0,w.jsx)("span",{className:"text-sm mt-0.5 italic",children:"File deleted"})]})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"pl-2 pr-2",children:(0,w.jsx)("div",{className:"flex justify-center w-9",children:l?(0,w.jsxs)("svg",{className:"w-8 h-8 text-gray-400 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,w.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,w.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):(0,w.jsx)(eQ.Z,{className:"w-9 h-9 text-brand-blue group-hover:text-blue-600"})})}),(0,w.jsx)("div",{className:"w-40 overflow-hidden",children:(0,w.jsx)("div",{className:"flex",children:(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"block text-base text-left truncate",children:r.filename}),r.size&&(0,w.jsx)("div",{className:"inline-block float-left text-xs text-gray-400",children:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}(r.size)})]})})}),(0,w.jsx)("div",{className:"right-0 inline-block w-16 h-6 px-2 py-1 mt-1 text-xs font-medium text-white uppercase bg-blue-600 rounded-full",children:r.extension})]})}),void 0!==s&&s&&"DELETED"!==r.status&&(0,w.jsx)("div",{className:"mt-2",children:(0,w.jsx)("button",{type:"button",className:"float-right text-xs hover:text-red-600 hover:underline "+(a?"text-white":"text-gray-400"),onClick:$,children:(0,w.jsxs)("div",{className:"flex",children:[(0,w.jsx)(eX.Z,{className:"w-4 h-4 mr-1 flex-shrink-0 "+(a?"text-white":"text-gray-400")}),"Delete attachment"]})})})]})},tn=function(e){var t,n=e.message,r=e.align,s=e.them,i=!0,a=n.user;switch(n.message){case X.INVITE:t="".concat("right"===r?"You":a.first_name," sent a session booking invite");break;case X.RESCHEDULE:t="".concat("right"===r?"You":a.first_name," rescheduled a session invite");break;default:t=n.message,i=!1}return(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(T.xu,{className:"max-w-xl mr-auto message sentMessage rounded-3xl rounded-bl-none bg-none",children:(0,w.jsx)("div",{className:"text-base",children:i&&(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"flex "+("right"===r&&"flex-row-reverse"),children:[(0,w.jsx)("div",{className:"flex-shrink-0 mt-3 w-10 h-10 bg-brand-orange rounded-full",children:(0,w.jsx)(q.Z,{className:"mx-auto mt-2 w-5 h-5 flex-shrink-0 text-white"})}),(0,w.jsxs)(T.xu,{className:"p-5 rounded-3xl bg-gray-100 "+("left"===r?"ml-2 roun
1ded-bl-none":"mr-2 rounded-br-none"),children:[(0,w.jsx)("div",{className:" text-black",children:(0,w.jsx)("div",{className:"",children:t})}),(0,w.jsx)("div",{className:" text-gray-400 text-sm",children:"right"===r?(0,w.jsxs)("div",{className:"",children:["Ensure ",null==s?void 0:s.first_name," accepts before the session"]}):(0,w.jsx)("div",{className:"",children:"Be sure to accept before the session"})})]}),(0,w.jsx)("div",{className:"-mt-2 "+("left"===r?"-ml-4":"-mr-4"),children:(0,w.jsx)(T.qE,{user:a,width:[28],height:[28]})})]})})})})})},tr=function(e){var t,n,r,s=e.job,i=e.message,a=e.typingUser,o=e.currentUserId,l=(e.updateReadStatus,e.shouldStartNewGroup),d=e.prevTimeStamp,c=e.prevUserId,u=(0,v.n)(s),$=(u.me,u.them),m=null==i?void 0:null===(t=i.booking)||void 0===t?void 0:t.status,x=(0,eH.C)(null==i?void 0:i.timestamp),h=b().duration(b()(null==i?void 0:i.timestamp).diff(b()(d))).asMinutes()>30,p=b()(null==i?void 0:i.timestamp).format("ddd, DD MMM, h:mm a");return"expired"===m||((null==i?void 0:null===(n=i.booking)||void 0===n?void 0:n.user_id)===o?"accepted"===m?"".concat($.first_name," accepted your session invitation."):"declined"===m&&"".concat($.first_name," declined your session invitation.."):"".concat($.first_name," is inviting you to the following session:")),(0,w.jsxs)(w.Fragment,{children:[(h||!d)&&!a&&(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:"flex justify-center pt-4 pb-6",children:(0,w.jsxs)("div",{className:"text-xs text-gray-300 text-center",children:[(0,w.jsx)("strong",{className:"text-gray-500 text-sm",children:p}),(0,w.jsx)("br",{}),x]})})}),!(null!=i&&i.booking)&&(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(T.xu,{cols:"auto 1fr",children:[(c!=(null==i?void 0:i.user_id)||h)&&(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"mr-2",children:[(0,w.jsx)(T.qE,{user:a||(null==i?void 0:i.user),width:[32,42],height:[32,42]})," "]})}),(0,w.jsx)(T.xu,{p:["15px","10px 15px"],className:"max-w-xl mr-auto message sentMessage rounded-3xl "+(null!=i&&i.job_attachment?"bg-brand-green":"bg-gray-100"),mb:[2,2],children:(0,w.jsxs)(T.xu,{gap:0,children:[(l||h)&&!(null!=i&&i.job_attachment)?(0,w.jsx)("p",{className:"text-black text-base",children:(0,w.jsx)("strong",{children:(null==a?void 0:a.first_name)||(null==i?void 0:null===(r=i.user)||void 0===r?void 0:r.first_name)})}):(0,w.jsx)("div",{}),(0,w.jsx)("div",{className:"text-base leading-tight whitespace-pre-line "+(null!=i&&i.job_attachment?"text-white":"text-black"),mb:a&&["15px","25px"],children:a?(0,w.jsx)(e9,{}):null==i?void 0:i.message}),(null==i?void 0:i.job_attachment)&&(0,w.jsx)(tt,{attachment:i.job_attachment})]})})]})}),(null==i?void 0:i.booking)&&(0,w.jsx)(T.xu,{gap:[10,10],mb:[12,3],justifyContent:"start",className:"message sentMessage",children:(0,w.jsx)(tn,{align:"left",message:i,them:$})})]})},ts=function(e){var t,n=e.job,r=e.message,s=e.currentUserId,i=e.prevTimeStamp,a=e.prevUserId,o=(0,v.n)(n).them,l=(0,eH.C)(r.timestamp),d=b().duration(b()(r.timestamp).diff(b()(i))).asMinutes()>30,c=b()(r.timestamp).format("ddd, DD MMM, h:mm a");return(0,w.jsxs)(w.Fragment,{children:[(d||!i)&&(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:"flex justify-center pt-4 pb-6",children:(0,w.jsxs)("div",{className:"text-xs text-gray-300 text-center",children:[(0,w.jsx)("strong",{className:"text-gray-500 text-sm",children:c}),(0,w.jsx)("br",{}),l]})})}),r.booking&&(null==r?void 0:null===(t=r.booking)||void 0===t?void 0:t.user_id)!==s?null:!r.booking&&(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(T.xu,{cols:"1fr auto",children:[(0,w.jsx)(T.xu,{p:["15px","10px 15px"],className:"bg-brand-blue max-w-xl ml-auto message sentMessage rounded-lg",mb:[2,2],children:(0,w.jsxs)(T.xu,{children:[(0,w.jsx)("p",{className:"text-base text-white whitespace-pre-line",children:r.message}),r.job_attachment&&(0,w.jsx)(tt,{showDelete:!0,attachment:r.job_attachment,isSender:!0})]})}),(a!=r.user_id||d)&&(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"ml-2",children:[(0,w.jsx)(T.qE,{user:r.user,width:[32,42],height:[32,42]})," "]})})]})}),r.booking&&(0,w.jsx)(T.xu,{gap:[10,10],mb:[12,3],justifyContent:"end",className:"message sentMessage",children:(0,w.jsx)(tn,{align:"right",message:r,them:o})})]})},ti=A.default.form.withConfig({displayName:"style__MessagesForm",componentId:"sc-2tq8b8-0"})(["",";"],function(e){return e.alternative&&"\n position:fixed;\n bottom:0;\n width:100%;\n left:0;\n background:white;\n z-index: 30;\n\n @media ".concat(F.U.desktop," {\n position:relative;\n bottom:auto;\n left:auto;\n border-radius: 0px;\n }\n ")});A.default.div.withConfig({displayName:"style__Gradient",componentId:"sc-2tq8b8-1"})(["pointer-events:none;background-image:linear-gradient( 0deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.07) 100% );height:82px;position:absolute;
1left:0;top:0;width:100%;transform:translateY(-100%) scale(-1);z-index:2;"]);var ta=(0,A.default)(T.xu).withConfig({displayName:"style__MessagesWrapper",componentId:"sc-2tq8b8-2"})([".message:first-child{margin-top:auto;}.chat-dots{height:32px;width:32px;}"]),to=["onChange"];function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tc=d.memo(function(e){var t,n,r,s,i=e.messages,a=e.job,o=e.updateReadStatus,l=(0,x.Z)().currentUserId,d=null;return null!=i&&i.length?null==i?void 0:i.map(function(e,i){if(n=t,t=e.timestamp,s=r,r=e.user_id,l===e.user_id){var c,u=!1;return null!==(c=e.job_attachment)&&void 0!==c&&c.id&&(u=!0,d=null),"me"!==d&&(u=!0,d="me"),(0,w.jsx)(ts,{message:e,currentUserId:l,shouldStartNewGroup:u,job:a,prevTimeStamp:n,prevUserId:s},i)}var $,m=!1;return null!==($=e.job_attachment)&&void 0!==$&&$.id&&(m=!0,d=null),"them"!==d&&(m=!0,d="them"),(0,w.jsx)(tr,{message:e,currentUserId:l,shouldStartNewGroup:m,job:a,updateReadStatus:o,prevTimeStamp:n,prevUserId:s},i)}):null}),tu=function(e){var t=e.alt,n=e.job,r=e.updateReadStatus,s=e.setFocusCurrentThread,i=(0,eI.Z)(["(min-width: 1024px)"],[!0],!1),a=ez(),o=(0,d.useState)(0),c=o[0],$=o[1],m=(0,d.useRef)(null),x=(0,l.kP)()[0].id,h=(0,Q.cI)({defaultValues:{message:""}}),p=h.handleSubmit,f=h.register,b=h.setValue,g=h.formState;g.errors;var j=(0,d.useState)(!1),y=j[0],_=j[1],N=(0,d.useState)(!1),k=N[0],E=N[1],C=(0,d.useState)(0),S=C[0],D=C[1],O=(0,v.n)(n).them,I=function(){null!=m&&m.current&&(m.current.scrollTop=m.current.scrollHeight)},M=(0,J.D)(es.q2,{variables:{id:x,job_id:n.id},onError:function(e){return console.log(e)}}),Z=(0,Y.Z)(M,1)[0],F=function(e){var t=e.target.value.length;(0!==t&&t%5==0||1===t)&&Z()},A=(0,eP.m)(eM.pU,{variables:{userId:x,jobId:n.id}}).data,B=null==A?void 0:A.users_typing[0];(0,eA.v)(function(){B&&(I(),_(!0))},[B]);var V,R=function(){b("message",""),r(x,!1),_(!1),I(),s(!0)},L=(0,J.D)(es.Gy,{onCompleted:function(e){R()},onError:function(e){console.log("error:",e)}}),z=(0,Y.Z)(L,1)[0],U=(0,u.xl5)(),q=(0,Y.Z)(U,1)[0],G=function(e){var t,n=e.message_id,r=e.key,s=e.job_id,i=e.filename;q({variables:{message_id:n,job_id:s,key:r,status:"ACTIVE",filename:i,extension:e.extension,size:e.size}})},W=function(e){console.log(e),e.message.length&&z({variables:{job_id:null==n?void 0:n.id,message:e.message}})},H=(V=(0,e6.Z)(e5().mark(function e(t){var r,s;return e5().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,z({variables:{message:"Attached a file",message_type:"ATTACHMENT",job_id:null==n?void 0:n.id}});case 3:return s=(r=e.sent).data,e.next=7,G({job_id:null==n?void 0:n.id,message_id:s.result.id,key:t.cdn,filename:t.filename,extension:t.type,size:t.size});case 7:E(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),E(!1);case 13:case"end":return e.stop()}},e,null,[[0,10]])})),function(e){return V.apply(this,arguments)}),K=(0,eP.m)(eM.Q9,{variables:{job_id:n.id}}),X=K.loading,ee=K.data;if((0,d.useEffect)(function(){I(),_(!1),r(x,!0,!0)},[null==ee?void 0:ee.job_messages]),(0,d.useEffect)(function(){i?$(0):$(a-140)},[i,a]),X)return(0,w.jsx)("div",{className:"p-4 text-sm text-gray-400",children:"Loading..."});var et=null==ee?void 0:ee.job_messages,en=!(null!=et&&et.length),er=f("message"),ea=er.onChange,eo=(0,P.Z)(er,to);return(0,w.jsx)(T.s_,{p:0,boxShadow:t&&"none",children:(0,w.jsxs)(T.xu,{alignContent:"space-between",rows:"1fr auto",className:"md:h-chat-panel-screen lg:pt-0 md:pt-12 pt-2 "+(i?"":"pb-20"),style:{height:"".concat(i?null:"".concat(c,"px"))},children:[(0,w.jsxs)(ta,{ref:m,overflow:"auto",display:"flex",flexDirection:"column",p:[20,t?20:30],pb:[80,0,0],children:[(0,w.jsx)(eW,{}),(0,w.jsx)(tc,{messages:et,job:n,updateReadStatus:r}),y&&B&&(0,w.jsx)(tr,{typingUser:B})]}),(0,w.jsxs)(ti,{alternative:t,style:{width:"100%"},onSubmit:p(W),children:[k&&(0,w.jsx)("div",{className:"absolute w-full h-2 bg-gray-100",children:(0,w.jsx)("div",{className:"absolute top-0 left-0 w-1/2 h-full bg-brand-blue",style:{width:"".concat(S,"%")}})}),(0,w.jsx)(T.xu,{ml:en?0:[null,null,t?0:70],p:[10,t?"10px 5px 10px 15px":"40px 30px"],gap:[null,null,null],cols:"1fr auto",alignItems:"end",position:"relative",className:"mb-20 border-t md:mb-0",children:(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)(eG.R,td(td({type:"textarea",autoSize:!0,autoSizeMaxRows:2,placeholder:t?"Send message to ".concat(O.first_name,"..."):en?"Send message to ".concat(O.first_name):"Reply to ".concat(O.first_name,"...")},eo),{},{onChange:function(e){ea(e),F(e)},autoComplete:"off"})),(0,w.jsx)("div",{className:"absolute top-0 right-0 block h-full w-14 mr-14",children:(0,w.jsx)("button",{className:"flex items-center justify-center w-full h-full bg-gray-200 border-b-2 roun
1ded-tr-lg group hover:bg-brand-blue border-brand-blue",disabled:g.isSubmitting,type:"submit",children:(0,w.jsx)(eZ.Z,{className:"w-5 h-5 mt-1 transform rotate-90 group text-brand-blue group-hover:text-white"})})}),(0,w.jsx)("div",{className:"absolute top-0 right-0 w-12 h-full mt-2 rounded-full group h-14 bg-none",children:(0,w.jsxs)("div",{className:"relative flex items-center h-full lg:items-end lg:pb-5",children:[(0,w.jsx)(eF.Z,{className:"block w-5 h-5 mx-auto text-gray-400 cursor-pointer group group-hover:text-brand-blue"}),(0,w.jsx)(ei.AT,{onComplete:H,onStart:function(){E(!0),D(0)},onProgress:function(e){D(e)},onError:function(){E(!1),D(0)},className:"absolute top-0 left-0 w-full h-full opacity-0 cursor-pointer"})]})})]})})]})]})})},t$=(0,A.default)(T.xu).withConfig({displayName:"ActionButtonsPanel__ActionButtonsBox",componentId:"sc-54w1ms-0"})(["transform:translateY(100%);z-index:10;position:absolute;bottom:0;left:0;width:100%;border-bottom:1px solid #eaeaea;"]),tm=function(e){var t=e.currentThread,n=e.updateReadStatus,r=(0,O.dd)().openModal;return(0,w.jsx)(t$,{padding:t.completed?["15px"]:["5px 15px"],flow:"column",justifyContent:"flex-start",alignItems:"center",gap:10,borderTop:"1px solid #E7E8EA",minHeight:t.completed?[30,30]:[0],className:t.completed?"bg-brand-green":"bg-gray-100",children:t.completed?(0,w.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,w.jsx)(eY.Z,{className:"w-6 h-6 text-white mr-2"}),(0,w.jsx)(T.xv,{color:"white",className:"font-semibold",children:"Request completed"})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("button",{"data-cy":"book-session",onClick:function(){return r({title:"Schedule Session",subtitle:"Select a date and time for your session below.",modalContent:(0,w.jsx)(ex,{job_id:t.id,updateReadStatus:n}),confirmClose:!0})},className:"inline-flex items-center px-4 py-2 text-sm uppercase bg-brand-orange rounded-full text-white",children:[(0,w.jsxs)("div",{className:"font-semibold",children:["Book ",(0,w.jsx)("span",{className:"hidden md:inline-block",children:"Session"})]}),(0,w.jsx)(q.Z,{className:"w-5 h-5 text-white ml-2"})]}),(0,w.jsxs)("a",{href:"/video/".concat(t.video_room_id),className:"hover:text-white inline-flex items-center px-4 py-2 text-sm uppercase bg-brand-orange rounded-full text-white",children:[(0,w.jsxs)("div",{className:"font-semibold",children:["Start ",(0,w.jsx)("span",{className:"hidden md:inline-block",children:"Video"})," ","Session"]}),(0,w.jsx)(ep.Z,{className:"w-5 h-5 text-white ml-2"})]}),(0,w.jsx)($.Z,{onClick:function(){return r({title:"How to prepare for your session",subtitle:"Now that your session is booked, hereâs a couple of tips to help you get ready.",modalContent:(0,w.jsx)(I.Z,{})})},className:"text-brand-blue hover:text-brand-blue-dark w-5 h-5"})]})})},tx=function(e){var t=e.currentThread,n=e.updateReadStatus,r=e.setCurrentThread,s=(0,eI.Z)(["(min-width: 1024px)"],[!0],!1);return(0,w.jsxs)("div",{className:"relative flex justify-between border-b",children:[(0,w.jsx)("div",{children:(0,w.jsx)(ev(),{href:"/requests/".concat(t.id),passHref:!0,children:(0,w.jsxs)("a",{className:"flex p-4 pt-6 space-x-2",children:[(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)("div",{className:"absolute top-0 left-0 -mt-4 text-brand-orange uppercase text-xs font-semibold",children:"Request"}),(0,w.jsx)(T.xv,{className:"text-black text-md font-semibold",children:t.title})]}),(0,w.jsx)(eO.Z,{className:"right-3 w-5 h-5 flex-shrink-0 stroke-1 text-brand-blue "})]})})}),(0,w.jsx)("div",{className:"self-center block ml-auto lg:hidden",children:(0,w.jsx)("button",{type:"button",className:"p-3 mr-2 rounded-full hover:bg-gray-100",onClick:function(){return!s&&t&&r(null)},children:(0,w.jsx)(eT.Z,{className:"w-4 h-4 text-gray-600"})})}),(0,w.jsx)("div",{className:"block lg:hidden",children:(0,w.jsx)(tm,{currentThread:t,updateReadStatus:n})})]})},th=function(e){var t=e.currentThread,n=e.setCurrentThread,r=e.setFocusCurrentThread,s=(0,G.Z)({currentThread:t}).updateReadStatus;return(0,w.jsx)(T.s_,{p:0,borderRadius:"0",boxShadow:["none","none","none"],children:t&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(tx,{currentThread:t,setCurrentThread:n,updateReadStatus:s}),(0,w.jsx)(T.xu,{children:(0,w.jsx)(tu,{alt:!0,job:t,updateReadStatus:s,setFocusCurrentThread:r})})]})})},tp=n(53737),tf=n(66481),tb=n(67471),tv=n(11163),tg=n(24561);function tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?tj(Object(n),!0).forEach(function(t){(0,j.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var t_=function(e){return(0,w.jsxs)(tg.ZP,ty(ty({speed:2,width:320,height:600,viewBox:"0 0 320 600",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb"},e),{},{children:[(0,w.jsx)("circle",{cx:"10",cy:"20",r:"8"}),(0,w.jsx)("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}),(0,w.jsx)("circle",{cx:"10",cy:"50",r:"8"}),(0,w.jsx)("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}),(0,w.jsx)("circle",{cx:"10",cy:"80",r:"8"}),(0,w.jsx)("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}),(0,w.jsx)("circle",{cx:"10",cy:"110",r:"8"}),(0,w.jsx)("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}),(0,w.jsx)("circle",{cx:"10",cy:"140",r:"8"}),(0,w.jsx)("rect",{x:"25",y:"135",rx:"5",ry:"5",width:"220",height:"10"}),(0,w.jsx)("circle",{cx:"10",cy:"170",r:"8"}),(0,w.jsx)("rect",{x:"25",y:"165",rx:"5",ry:"5",width:"220",height:"10"})]}))},tN=n(74142),tw=A.default.form.withConfig({displayName:"style__MessagesForm",componentId:"sc-2r9ydr-0"})([".selectInput{margin:0;width:100%;max-width:100%;}"]),t0=A.default.input.withConfig({displayName:"style__SearchInput",componentId:"sc-2r9ydr-1"})(["border:none position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;outline:none;"]);A.default.div.withConfig({displayName:"style__ListGradient",componentId:"sc-2r9ydr-2"})(["background-image:linear-gradient( 90deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.07) 100% );height:100%;width:40px;position:absolute;right:0;top:0;z-index:1;display:none;pointer-events:none;@media ","{display:block;}"],F.U.desktop);var tk=(0,A.default)(T.xu).withConfig({displayName:"style__ListItemButton",componentId:"sc-2r9ydr-3"})(["pointer-events:all;cursor:pointer;"]),t8=function(e){var t=e.setCurrentThread,n=e.currentThread,r=e.thread,s=(0,tN.f)(r.user_id),i=!1;i=s?r.mentee_has_read:r.mentor_has_read;var a=(0,d.useState)(!1),o=a[0],l=a[1];(0,d.useEffect)(function(){(null==n?void 0:n.id)===(null==r?void 0:r.id)?l(!0):l(!1)},[n,r]);var c=r.messages[0],u=(0,v.n)(r).them;return(0,w.jsxs)(tk,{position:"relative",p:["20px 15px 15px 20px","15px 15px 15px 20px"],mt:"-1px",gap:[8,13],zIndex:o&&1,cols:"auto 1fr",as:"button",onClick:function(){t(r)},className:"ml-4 md:rounded-l-full md:border-none rounded-none border-b border-gray-100 "+(o?"bg-gray-100":"bg-none"),children:[(0,w.jsxs)(T.xu,{position:"relative",children:[(0,w.jsx)(T.US,{user:u,width:[28,null,32],height:[28,null,32]}),(0,w.jsx)(T.kq,{show:!i&&!o,top:["-4px"],right:["-2px","-4px"],size:["11px","13px"]})]}),(0,w.jsx)(eO.Z,{className:"absolute right-3 top-9 w-4 h-4 flex-shrink-0 stroke-1 text-brand-blue "+(o?"block":"hidden")}),(0,w.jsxs)(T.xu,{gap:[2],children:[(0,w.jsxs)(T.xu,{mt:["0px","-3px"],flow:"column",justifyContent:"space-between",children:[(0,w.jsx)(T.xv,{className:"text-base "+(o?"text-brand-blue":"text-black"),children:(0,w.jsx)("strong",{children:u.first_name})})," ",(0,w.jsx)(T.xv,{className:"text-xs text-gray-300",children:(0,eH.C)(null==r?void 0:r.last_message_timestamp)})]}),(0,w.jsx)(T.xu,{flow:"column",justifyContent:"space-between",gap:10,children:(0,w.jsx)(T.xv,{className:"text-sm pr-4 truncate text-gray-400",children:null==c?void 0:c.message})})]})]})},t3=function(e){var t=e.setCurrentThread,n=e.currentThread,r=e.setFocusCurrentThread,s=e.focusCurrentThread,i=e.searchQuery,a=ez(),o=(0,d.useState)(0),c=o[0],u=o[1],$=e0().state,m=(0,d.useRef)(null),x=(0,d.useRef)(null),h=(0,tv.useRouter)(),p=(0,eI.Z)(["(min-width: 1024px)"],[!0],!1),f=(0,l.kP)()[0].id,b=function(e,t){var n=e.find(function(e){return e.id===t});return e.indexOf(n)},v=function(e){null!=m&&m.current&&(m.current.scrollTop=84*e)},g=function(e){var r=null==h?void 0:h.query.id;if(!x.current){var s=null==e?void 0:e.find(function(e){return e.id===parseInt(r)});if(!n&&s){var i=b(e,s.id);t(s),v(i),x.current=!0}else p&&t(e[0]);x.current=!0}},j=function(e){if(n&&s){var t=b(e,n.id);v(t),r(!1)}},y=(0,eP.m)(eM.d5,{variables:{user_id:f,isCompleted:"completed"===$.activeTab,searchQuery:"%".concat(i,"%")},onSubscriptionData:function(e){var t=e.subscriptionData.data.jobs;j(t),g(t)}}),_=y.data,N=y.loading;(0,d.useEffect)(function(){p?u(0):u(a-235)},[p,a]);var k=null==_?void 0:_.jobs;return(0,w.jsx)(T.xu,{ref:m,background:"white",alignContent:"flex-start",style:{height:"".concat(p?null:"".concat(c,"px"))},className:"py-4 overflow-y-auto flex-grow "+(p&&"h-chat-list-panel-screen"),children:N?(0,w.jsx)("div",{className:"p-3",children:(0,w.jsx)(t_,{})}):null!=k&&k.length?k.map(function(e,r){return(0,w.jsx)(t8,{index:r,setCurrentThread:t,currentThread:n,thread:e},r)}):(0,w.jsx)("div",{className:"px-4 pt-12 pb-4",children:(0,w.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-12 h-12 text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),(0,w.jsx)("div",{className:"mt-1 text-sm text-gray-400",children:"No messages."})]})})})},t2=function(e){var t=e.setCurrentThread,n=e.currentThread,r=e.setFocusCurrentThread,s=e.focusCurrentThread,i=(0,d.useState)(""),a=i[0],o=i[1],l=e0(),c=l.state,u=l.operations;return(0,w.jsxs)(T.s_,{p:0,borderRadius:"0",boxShadow:"none",children:[(0,w.jsx)(tw,{children:(0,w.jsxs)(T.xu,{position:"relative",borderRadius:0,alignItems:"center",gap:10,p:[15,15,19],px:[25],cols:"auto 1fr",children:[(0,w.jsx)(tp.Z,{className:"w-5 h-5 text-brand-blue"}),(0,w.jsx)(t0,{placeholder:"Search messages...",onChange:function(e){return o(e.target.value)},value:a,className:"text-black text-base left-0 placeholder-gray-400"})]})}),(0,w.jsxs)("div",{className:"",children:[(0,w.jsxs)("div",{className:"grid grid-cols-2 border-t border-gray-100",children:[(0,w.jsxs)("button",{onClick:function(){u.setActiveTab("all")},type:"button",className:(0,te.A)("flex justify-center w-full p-3 py-4 text-center text-sm items-center space-x-1 font-medium border-brand-blue","all"===c.activeTab?"border-b-4 border-brand-blue text-brand-blue":"border-b border-gray-200 text-black"),children:[(0,w.jsx)(tf.Z,{className:"w-4 h-4 flex-shrink-0 stroke-1 text-brand-blue"}),(0,w.jsx)("div",{children:"Inbox"})]}),(0,w.jsxs)("button",{type:"button",onClick:function(){u.setActiveTab("completed")},className:(0,te.A)("flex justify-center w-full p-3 py-4 text-center text-sm items-center space-x-1 font-medium","completed"===c.activeTab?"border-b-4 border-brand-blue text-brand-blue":"border-b border-gray-200 text-black"),children:[(0,w.jsx)(tb.Z,{className:"w-4 h-4 flex-shrink-0 stroke-1 text-brand-blue"}),(0,w.jsx)("div",{children:"Archived"})]})]}),(0,w.jsx)(t3,{setCurrentThread:t,setFocusCurrentThread:r,currentThread:n,searchQuery:a,focusCurrentThread:s})]})]})},t1=n(90995),tE=function(e){var t=e.children;return(0,w.jsxs)("main",{className:"flex flex-col min-h-screen",children:[(0,w.jsx)(t1.Fe,{}),(0,w.jsx)("div",{className:"flex-grow",children:t})]})},tC=n(81056),tS=function(){var e=(0,d.useState)(null),t=e[0],n=e[1],r=(0,d.useState)(!1),s=r[0],i=r[1],u=(0,l.kP)()[0].id,$=(0,a.a)(c.q5,{variables:{user_id:u},skip:!u}),m=$.loading,x=$.data;(0,d.useEffect)(function(){var e=document.getElementsByTagName("body")[0];return e&&e.classList.add("is-hiding-chat"),function(){e&&e.classList.remove("is-hiding-chat")}},[]);var h=null==x?void 0:x.jobs_aggregate.aggregate.count;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(tC.H,{noIndex:!0,title:"Direct Message"}),(0,w.jsx)("div",{className:"block lg:hidden"}),!m&&0===h&&(0,w.jsx)("div",{className:"flex items-center justify-center w-full px-8 pt-32",children:(0,w.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,w.jsx)(o.Z,{className:"w-6 h-6 text-gray-300"}),(0,w.jsx)("div",{className:"text-gray-400 text-md",children:"You'll only see messages here once you confirm an Expert request."})]})}),!m&&h>0&&(0,w.jsxs)(T.xu,{cols:[null,null,"300px 1fr 340px"],children:[(0,w.jsx)(T.xu,{display:[t&&"none",null,"grid"],position:"relative",className:"md:border-r-4 md:border-gray-100",children:(0,w.jsx)(t2,{setCurrentThread:n,currentThread:t,setFocusCurrentThread:i,focusCurrentThread:s})}),(0,w.jsx)(T.xu,{display:[!t&&"none",null,"grid"],marginBottom:[0,null,0],children:(0,w.jsx)(th,{currentThread:t,setCurrentThread:n,setFocusCurrentThread:i})}),(0,w.jsx)(T.xu,{display:["none","grid","grid"],marginBottom:[20,null,0],className:"hidden bg-gray-100 md:block",children:(0,w.jsx)(e4,{currentThreadI
1d:(null==t?void 0:t.id)||null})})]})]})};tS.layoutSettings={isV2:!0,getLayout:function(e){return(0,w.jsx)(tE,{children:e})},requiresAuth:!0,headerTitle:"Messages"};var tD=!0,t4=tS},40966:function(e,t,n){"use strict";n(67294);var r=n(34863),s=n(44713),i=n(85893),a=function(){var e=(0,s.dd)().closeModal;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.VY,{children:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:"Download the latest version of Google Chrome or Mozilla Firefox."}),(0,i.jsx)("div",{children:"Ensure your computer has the webcam and microphone turned on and access is allowed."}),(0,i.jsx)("div",{children:"Login a couple a minutes before your session is about to start."}),(0,i.jsx)("div",{children:"Write down any questions you may want to ask your Expert."}),(0,i.jsx)("div",{children:"At the time of your session, press the âJoin sessionâ button."}),(0,i.jsx)("div",{children:"Enjoy your consultation with your Expert."})]})}),(0,i.jsx)(r.zx,{onClick:function(){return e()},width:["100%","auto"],m:"0 auto",children:"Close Window"})]})};t.Z=a},69575:function(e,t,n){"use strict";n.d(t,{J:function(){return a},R:function(){return o}});var r=n(73782),s=n(21499),i=n(19618),a=(0,r.default)(s.o).withConfig({displayName:"style__MessageTextArea",componentId:"sc-1pq5rvo-0"})(["width:100%;max-width:100%;textarea{height:125px;background:#f6f7f8;@media ","{margin-bottom:",";height:136px;}}"],i.U.tablet,function(e){return e.alt&&"10px"}),o=(0,r.default)(s.o).withConfig({displayName:"style__MessagesTextInput",componentId:"sc-1pq5rvo-1"})(["width:100%;max-width:100%;padding-right:6rem;margin:0;input{margin:0;}@media ","{padding-right:6rem;}"],i.U.desktop)},67771:function(e,t,n){"use strict";var r=n(17674),s=n(50319),i=n(24330),a=n(56796),o=n(42705),l=n.n(o),d=n(87536),c=n(1454),u=n(13120),$=n(34863),m=n(85893),x=function(e){var t=e.job,n=e.mentor,o=e.onComplete,x=(0,d.cI)({mode:"onBlur",resolver:(0,a.L)(c.Di.keys({job_type:l().any().strip(),job_date_type:l().any().strip()})),defaultValues:{title:null!=t&&t.title?"".concat(t.title," Follow Up"):"Follow up request",description:null!=t&&t.description?"".concat(t.description):"",job_date_type:"flexible"}}),h=(0,s.D)(i.cb,{onCompleted:o}),p=(0,r.Z)(h,1)[0],f=function(e){var t=e.title,r=e.description,s=e.session_type,i=e.date,a=e.budget;p({variables:{mentor_id:n.id,message:r,date:i,title:t,session_type:s,budget:a}})};return(0,m.jsxs)("div",{children:[(0,m.jsx)(u.A,{formMethods:x,formCache:{},px:[0,0],hideLabels:!0,inModal:!0,mentor:n}),(0,m.jsx)($.zx,{width:[null,210],m:"0 auto",fullWidth:!0,mt:[null,10],onClick:x.handleSubmit(function(e){f(e)}),children:"Request Quote"})]})};t.Z=x},5397:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,s=n(67294);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=function(e){return s.createElement("svg",i({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},e),r||(r=s.createElement("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm1 12H7V7h2v5zM8 6c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z",fill:"#BBE8FF",fillRule:"nonzero"})))},o=n(34863),l=n(37057),d=n(85893),c=function(e){var t=e.mentorTypes,n=t.includes("mind")&&t.includes("business")||t.includes("mind_mentor")&&t.includes("business_mentor");return(0,d.jsxs)(d.Fragment,{children:[(t.includes("business")||t.includes("business_mentor"))&&(0,d.jsxs)("div",{children:[(0,d.jsx)(l.YK,{children:"Business Expert"}),[{title:"Standard",fromValue:"1",toValue:"100",description:"Estimated income range p.a. $1 - $200K or managed 5+ people, 0 to 5 years of experience"},{title:"Skilled",fromValue:"101",toValue:"300",description:"Estimated income range p.a. $201k - $300K or managed 20+ people, 5 to 10 years of experience"},{title:"Experienced",fromValue:"301",toValue:"500",description:"Estimated income range p.a. $301k - $500K or managed 50+ people, 10 - 15 years of experience"},{title:"Expert",fromValue:"501+",toValue:"",description:"Estimated income range p.a. $501K+ or managed 100+ people, 15+ years experience"}].map(function(e,t){return(0,d.jsxs)(l.sw,{children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("span",{children:e.title})," - AUD$",e.fromValue," ",e.toValue&&"to $",e.toValue," per hour"]}),(0,d.jsx)("p",{children:e.description})]},t)})]}),n&&(0,d.jsx)(o.LZ,{height:["20px",null,"30px"]}),(0,d.jsxs)(l.em,{children:[(0,d.jsx)(a,{}),(0,d.jsx)("p",{children:"The ranges have been provided as a guide only."})]})]})}},13120:function(e,t,n){"use strict";n.d(t,{A:function(){return S},Z:function(){return D}});var r=n(59499),s=n(56796),i=n(42705),a=n.n(i);n(67294);var o=n(87536),l=n(1454),d=n(98685),c=n(34863),u=n(97717),$=n(4730),m=n(33750),x=n(49152),h=n(13427),p=n(85893),f=["label","children","name","errors"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=function(e){var t=e.label,n=e.children,r=e.name,s=e.errors,i=(0,$.Z)(e,f);return(0,p.jsxs)(m.x,{children:[t&&(0,p.jsx)(h.lX,{children:t}),(0,p.jsx)(m.x,v(v({mt:[null,"-5px"],mb:[null,-15],cols:["1fr","1fr 1fr"]},i),{},{children:n})),(0,p.jsx)(x.B,{errors:s,name:r,mt:["10px","17px"]})]})},j=n(31713),y=n(21499),_=n(44713),N=n(5397),w=function(e){var t=e.children,n=e.label,r=e.p,s=e.px;return(0,p.jsxs)(c.xu,{p:void 0===r?[20,30]:r,px:s,borderBottom:"1px solid #E7E8EA",children:[(0,p.jsx)("h4",{children:n}),(0,p.jsx)(c.LZ,{height:[8,25]}),t]})},k=n(37057);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S=function(e){var t=e.formMethods,n=e.formCache,r=e.mentor,s=e.px,i=void 0===s?null:s,a=e.hideLabels,l=void 0!==a&&a,$=e.inModal,m=void 0!==$&&$,x=t.register,h=t.control,f=t.formState,b=t.setValue,v=f.errors,E=(0,o.qo)({control:h,name:"job_date_type"}),S=(0,_.dd)(),D=S.innerModal,T=S.openModal,O=n?"mind"===n.step1?"Mind":"Business":"",I=(null==r?void 0:r.user_types.join().toLowerCase())||O.toLowerCase();return(0,p.jsxs)("form",{children:[(0,p.jsx)(w,{px:i,label:"Request Title",children:(0,p.jsx)(y.o,C(C({placeholder:"Enter the request title hereâ¦"},x("title")),{},{errors:v,maxLength:50}))}),(0,p.jsx)(w,{px:i,label:"Session Type",children:(0,p.jsx)(g,{name:"session_type",cols:"1fr",errors:v,children:d.lW.map(function(e){return(0,p.jsx)(u.NA,C({label:e},x("session_type")),e)})})}),(0,p.jsxs)(w,{px:i,label:"Date",children:[!l&&(0,p.jsxs)(c.xv,{mt:[null,"-10px"],mb:[14],children:["I need ",O," Expert Advice before:"]}),(0,p.jsxs)(g,{cols:"1fr",gap:[10],mb:0,className:"leftAligned",children:[(0,p.jsxs)(c.xu,{mt:"5px",children:[(0,p.jsx)(u.NA,C(C({value:"fixed",label:"Fixed date"},x("job_date_type")),{},{errors:v})),(0,p.jsx)(u.Mt,{name:"date",control:h,errors:v,disabled:"flexible"===E,disabledText:"N/A",historicalDate:!1})]}),(0,p.jsx)(c.xv,{mt:[null,"3px"],children:(0,p.jsx)("strong",{children:"OR"})}),(0,p.jsx)(u.NA,C({label:"I'm flexible.",value:"flexible"},x("job_date_type")))]})]}),(0,p.jsx)(w,{px:i,label:"Information",children:l?(0,p.jsx)(y.o,C({type:"textarea",placeholder:"Enter the description here...",maxLength:1500,errors:v},x("description"))):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(c.xv,{mt:[null,"-10px"],mb:["10px","13px"],children:["Provide a detailed description of what you are looking for from your ",O," Expert, including:"," "]}),(0,p.jsxs)(c.VY,{children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{children:"What you specifically need help with."}),(0,p.jsx)("div",{children:"Whether you are looking for a long term or short term professional relationship."})]}),(0,p.jsx)(k.RW,C({type:"textarea",placeholder:"Enter the description here...",maxLength:1500,errors:v},x("description")))]})]})}),(0,p.jsxs)(w,{px:i,label:"What is your hourly rate for your ".concat(O," Expert?"),children:[(0,p.jsx)(c.xv,{mt:[null,"-10px"],mb:[14,24],children:"This should be determined by your budget and the level of experience you are after."}),(0,p.jsxs)(c.xu,{gap:[20],alignItems:[null,"center"],cols:[null,"calc(62.5% - 10px) auto"],children:[(0,p.jsx)(o.Qr,{name:"budget",control:h,render:function(e){var t=e.field;return(0,p.jsx)(j.l,C({placeholder:"Choose your rate...",options:d.Jq,defaultValue:null,setValue:b,errors:v,"data-cy":"budget"},t))}}),(0,p.jsxs)(k.kC,{cols:"auto 1fr",alignItems:"center",gap:[8,14],onClick:function(){var e={modalContent:(0,p.jsx)(N.Z,{mentorTypes:I}),title:"Budget Guide",confirmClose:!1};m?D(e):T(e)},children:[(0,p.jsx)(c.JO,{name:"calculator",width:14,height:16}),(0,p.jsx)(c.xv,{fontSize:[12,14],className:"navy",children:(0,p.jsx)("strong",{children:"View budget guide"})})]})]}),(0,p.jsx)(c.LZ,{height:[10]})]})]})},D=function(e){var t=e.previousStep,n=e.nextStep,r=e.formCache,i=e.updateFormCache,d=e.editJob,u=e.goTo,$=e.cancel,m=(0,o.cI)({mode:"onBlur",resolver:(0,s.L)(l.Di.keys({job_type:a().strip(),job_date_type:a().strip()})),defaultValues:C(C({},r.step2),{},{job_date_type:r.step2.date?"fixed":"flexible"})});return(0,p.jsxs)(c.xu,{children:[(0,p.jsx)(c.s_,{p:0,children:(0,p.jsx)(S,{formMethods:m,formCache:r})}),(0,p.jsx)(c.LZ,{height:[30,40]}),(0,p.jsx)(c.xu,{ml:[null,"auto"],gap:10,cols:"1fr 1fr",children:d?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(c.xu,{as:"button",onClick:$,gridAutoFlow:"column",justifyContent:"center",alignItems:"center",gap:["10px"],children:[(0,p.jsx)(c.JO,{name:"close_rounded",width:"22px",height:"22px"}),(0,p.jsx)(c.xv,{as:"p",fontWeight:"700",fontSize:["12","16px"],color:"#053147",children:"Cancel changes"})]}),(0,p.jsx)(c.zx,{onClick:m.handleSubmit(function(){i(C(C({},r),{},{step2:m.getValues()})),u(2)}),children:"Review Changes"})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(c.zx,{variant:"outline",onClick:function(){console.log(m.getValues(),r),i(C(C({},r),{},{step2:m.getValues()})),t()},children:"Previous Step"}),(0,p.jsx)(c.zx,{"data-cy":"next-step",onClick:m.handleSubmit(function(){i(C(C({},r),{},{step2:m.getValues()})),n()}),children:"Next Step"})]})})]})}},37057:function(e,t,n){"use strict";n.d(t,{RW:function(){return l},YK:function(){return d},em:function(){return u},kC:function(){return $},sw:function(){return c}});var r=n(34863),s=n(31713),i=n(21499),a=n(19618),o=n(73782),l=(0,o.default)(i.o).withConfig({displayName:"style__InfoTextArea",componentId:"sc-qhplnc-0"}
1)(["@media ","{width:calc(62.5% - 10px);}"],a.U.tablet);(0,o.default)(s.l).withConfig({displayName:"style__TimeSelectInput",componentId:"sc-qhplnc-1"})([".basic__menu{@media ","{width:240px;}}"],a.U.tablet);var d=o.default.p.withConfig({displayName:"style__BudgetTitle",componentId:"sc-qhplnc-2"})(["margin:5px;text-align:center;font-size:16px;color:#535f65;font-weight:700;margin-bottom:-15px;"]),c=o.default.li.withConfig({displayName:"style__BudgetItem",componentId:"sc-qhplnc-3"})(["border-top:1px solid ",";list-style-type:none;margin-top:23px;padding-top:24px;:first-child{margin-top:0;border-top:none;padding-top:0;}p{font-family:var(--Poppins);font-size:12px;color:#535f65;letter-spacing:0;line-height:18px;text-align:left;margin-left:20px;margin-bottom:0;@media ","{font-size:14px;line-height:20px;}span{font-weight:700;}:first-child{font-size:14px;@media ","{font-size:16px;}}}> p:first-child{position:relative;:before{position:absolute;content:'';top:25%;left:-20px;width:6px;height:6px;border-radius:6px;background:",";}}"],function(e){return e.theme.colors.grey[1]},a.U.tablet,a.U.tablet,function(e){return e.theme.colors.blue}),u=o.default.div.withConfig({displayName:"style__Disclaimer",componentId:"sc-qhplnc-4"})(["border-top:1px solid ",";list-style-type:none;margin-top:23px;padding-top:24px;:first-child{margin-top:0;border-top:none;padding-top:0;}p{font-family:var(--Poppins);font-size:12px;color:#535f65;letter-spacing:0;line-height:18px;text-align:left;margin-left:20px;margin-bottom:0;@media ","{font-size:14px;line-height:20px;}span{font-weight:700;}:first-child{font-size:14px;@media ","{font-size:16px;}}}> p:first-child{position:relative;:before{position:absolute;content:'';top:25%;left:-20px;width:6px;height:6px;border-radius:6px;background:",";}}:last-of-type{display:flex;flex-direction:row;svg{width:16px;height:16px;}p{margin-left:9px;font-size:12px;@media ","{font-size:14px;}}> p::before{display:none;}@media ","{justify-content:center;padding-top:35px;padding-bottom:15px;align-items:center;}}"],function(e){return e.theme.colors.grey[1]},a.U.tablet,a.U.tablet,function(e){return e.theme.colors.blue},a.U.tablet,a.U.tablet),$=(0,o.default)(r.xu).withConfig({displayName:"style__BudgetButton",componentId:"sc-qhplnc-5"})(["cursor:pointer;:hover{text-decoration:underline;}"])},90995:function(e,t,n){"use strict";n.d(t,{Fe:function(){return N}});var r,s,i=n(77191),a=n(86215),o=n(11355),l=n(69065),d=n(5506),c=n(92484),u=n(86010),$=n(62475),m=n(41664),x=n.n(m),h=n(67294),p=n(38809),f=n(9124),b=n(82723),v=n(3948),g=n(42613),j=n(77345),y=n(85893);(s=r||(r={})).LINK="link";var _=function(){var e=(0,h.useState)(0),t=e[0],n=e[1];return(0,h.useEffect)(function(){var e=function(){n(window.pageYOffset)};return window.addEventListener("scroll",e),e(),function(){return window.removeEventListener("scroll",e)}},[]),t},N=function(e){(0,i.Z)(e);var t=(0,$.Z)().session.lisnicUser.user_types,n=(null==t?void 0:t.indexOf("business"))>-1?[{label:"My Business Pages",type:r.LINK,href:"/dashboard/business"},{label:"My Jobs",type:r.LINK,href:"/dashboard/jobs"},{label:"My Reviews",type:r.LINK,href:"/dashboard/reviews"},{label:"Get Expert Advice",type:r.LINK,href:"/dashboard/experts"}]:[{label:"My Reviews",type:r.LINK,href:"/dashboard/reviews"},{label:"My Jobs",type:r.LINK,href:"/dashboard/jobs"},{label:"Get Expert Advice",type:r.LINK,href:"/dashboard/experts"}],s=_();return(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"h-[80px]"}),(0,y.jsx)("header",{className:"fixed top-0 z-20 w-full ",children:(0,y.jsxs)(a.J,{className:(0,u.Z)("relative z-40 border-b transition-colors",s>300?"bg-brand-blue border-brand-blue shadow-xl":"bg-white border-gray-100 shadow-none"),children:[(0,y.jsx)("div",{className:(0,u.Z)("w-full transition-colors",s>300?"bg-brand-blue":"bg-white"),children:(0,y.jsxs)("div",{className:(0,u.Z)("flex items-center w-full h-20 px-4 mx-auto xl:px-8 max-w-page-container transition-all",s>300?"h-16":"h-20"),children:[(0,y.jsxs)("div",{className:"flex items-center space-x-6 ",children:[(0,y.jsx)(x(),{href:"/",passHref:!0,children:(0,y.jsx)("a",{className:"inline-flex mr-6",children:(0,y.jsx)(f.b,{className:(0,u.Z)("w-20",s>300?"text-white":"text-brand-blue")})})}),(0,y.jsx)("div",{className:"hidden mt-1 space-x-8 font-semibold text-gray-800 xl:flex",children:n.map(function(e){return(0,y.jsx)(w,{item:e},e.label)})})]}),(0,y.jsx)("div",{className:"flex-grow pl-8 pr-4 ml-auto",children:(0,y.jsx)(j.c,{className:"w-full"})}),(0,y.jsx)("div",{className:"items-center hidden space-x-4 xl:flex",children:(0,y.jsx)(k,{})}),(0,y.jsx)("div",{className:"-my-2 -mr-2 xl:hidden",children:(0,y.jsxs)(a.J.Button,{className:"inline-flex items-center justify-center p-2 text-gray-400 bg-white rounded-md hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-brand-blue",children:[(0,y.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,y.jsx)(l.Z,{className:"w-6 h-6","aria-hidden":"true"})]})})]})}),(0,y.jsx)(o.u,{as:h.Fragment,enter:"duration-200 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,y.jsx)(a.J.Panel,{focus:!0,className:"absolute inset-x-0 top-0 p-2 transition origin-top-right transform xl:hidden",children:(0,y.jsxs)("div",{className:"bg-white divide-y-2 rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 divide-gray-50",children:[(0,y.jsx)("div",{className:"px-5 pt-5 pb-6",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsx)("div",{children:(0,y.jsx)(f.b,{className:"w-20 text-brand-blue"})}),(0,y.jsx)("div",{className:"-mr-2",children:(0,y.jsxs)(a.J.Button,{className:"inline-flex items-center justify-center p-2 text-gray-400 bg-white rounded-md hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-brand-blue",children:[(0,y.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,y.jsx)(d.Z,{className:"w-6 h-6","aria-hidden":"true"})]})})]})}),(0,y.jsxs)("div",{className:"px-5 py-6 space-y-6",children:[(0,y.jsx)("div",{className:"grid grid-cols-1 gap-y-4 gap-x-8",children:n.map(function(e){return(0,y.jsx)(x(),{href:e.href,passHref:!0,children:(0,y.jsx)("a",{className:"text-base font-medium text-gray-500 hover:text-gray-700",children:e.label})},e.label)})}),(0,y.jsx)("div",{children:(0,y.jsx)("p",{className:"text-base font-medium text-left text-gray-500",children:(0,y.jsx)(k,{})})})]})]})})})]})})]})},w=function(e){var t=e.item;return(0,y.jsx)("div",{className:"",children:t.type===r.LINK&&(0,y.jsx)(E,{label:t.label,href:t.href})})}
1,k=function(){var e=_(),t=(0,$.Z)(),n=t.currentUserId,r=(t.session,t.isSessionLoading);return n||r?r?(0,y.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,y.jsx)("div",{className:(0,u.Z)(e>300?"bg-brand-blue-dark":"bg-gray-100","w-12 h-6 rounded-full animate-pulse")}),(0,y.jsx)("div",{children:(0,y.jsx)(c.Z,{className:(0,u.Z)(e>300?"text-brand-blue-dark":"text-gray-200","w-10 h-10")})})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{children:(0,y.jsx)(E,{label:"Dashboard",href:"/dashboard"})}),(0,y.jsxs)(g.Lr,{children:[(0,y.jsx)(v.Z,{scheme:(0,u.Z)(e>300?"light":"dark"),currentUserId:n}),(0,y.jsx)(p.Eg,{currentUserId:n,scheme:(0,u.Z)(e>300?"light":"dark")}),(0,y.jsx)("div",{className:"relative z-30 mt-1 ml-4",children:(0,y.jsx)(b.Z,{})})]})]}):(0,y.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(E,{label:"Log in",href:"/login/user"}),(0,y.jsx)("span",{className:(0,u.Z)("mx-2",e>300?"text-white":"text-gray-300"),children:"|"}),(0,y.jsx)(E,{label:"Sign up",href:"/signup/user"})]}),(0,y.jsx)("div",{className:"",children:(0,y.jsx)("a",{href:"/login/user",children:(0,y.jsx)(c.Z,{className:(0,u.Z)(e>300?"text-brand-blue-dark":"text-gray-300","w-10 h-10")})})})]})},E=function(e){var t=e.label,n=e.href,r=_();return(0,y.jsx)(x(),{href:n,passHref:!0,children:(0,y.jsx)("a",{className:(0,u.Z)("inline-block font-semibold transition duration-100 ease-in-out",r>300?"text-white hover:text-white hover:underline":"text-gray-800 hover:text-brand-blue hover:no-underline"),children:t})})}},70016:function(e,t,n){"use strict";var r=n(59499),s=n(4730);n(67294);var i=n(34863),a=n(85893),o=["children"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c=function(e){var t=e.children,n=(0,s.Z)(e,o);return(0,a.jsx)(i.xu,d(d({gap:[15,19]},n),{},{children:t}))};t.Z=c},59660:function(e,t,n){"use strict";var r=n(59499),s=n(67294),i=n(30599),a=n(91846),o=n(85893);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c=s.forwardRef(function(e,t){return(0,o.jsx)(a.Z,d(d({},e),{},{options:i.f,placeholder:e.placeholder||"Choose a timezone...",name:e.name||"timezone",isSearchable:!0,onChange:function(e){console.log(e)},ref:t}))});t.Z=c},21990:function(e,t,n){"use strict";n.d(t,{h:function(){return $}});var r=n(17674),s=n(50319),i=n(24330),a=n(16915);n(67294);var o=n(34863),l=n(10017),d=n(20395),c=n(44713),u=n(85893),$=function(e){var t,n,c=e.job,$=e.closeModal,m=e.onComplete,x=void 0===m?function(){}:m,h=(0,s.D)(i.Jw,{onError:function(e){alert("ERROR"),console.log(e)},onCompleted:function(){$(),x()}}),p=(0,r.Z)(h,1)[0],f=function(){p({variables:{job_id:c.id},refetchQueries:[{query:a.c2,variables:{id:c.id}}]})};return(0,u.jsxs)(o.xu,{children:[(0,u.jsx)(l.M,{user:c.accepted_offer.mentor,text:"If you're satisfied with this request you can now mark it as completed and release the payment for ".concat(c.accepted_offer.mentor.first_name,".")}),(0,u.jsx)(o.x1,{mb:[15,28]}),(0,u.jsx)(d.Z,{rate:(null===(t=c.accepted_package_rate)||void 0===t?void 0:t.rate)||0,numberOfSessions:(null===(n=c.accepted_package_rate)||void 0===n?void 0:n.number_of_sessions)||1,view:"mentee",countryCode:"AU"}),(0,u.jsx)(o.x1,{mt:[15,20],mb:[15,22]}),(0,u.jsx)(o.kI,{children:"Please note that by clicking on âRelease Paymentâ youâre agreeing to our Terms & Conditions."}),(0,u.jsx)(o.zx,{m:"0 auto",onClick:function(){return f()},mt:[15,25],width:[null,230],children:"Release payment"})]})},m=function(e){var t=e.label,n=e.job,r=e.onComplete,s=void 0===r?function(){}:r,i=e.useSimpleLink,a=(0,c.dd)(),l=a.openModal,d=a.closeModal;return void 0===i||i?(0,u.jsx)("a",{href:"#",className:"text-brand-blue",onClick:function(e){return l({title:"Confirm request is completed",modalContent:(0,u.jsx)($,{onComplete:s,job:n,closeModal:d})}),e.preventDefault(),!1},children:t}):(0,u.jsx)(o.zx,{onClick:function(){l({title:"Confirm request is completed",modalContent:(0,u.jsx)($,{onComplete:s,job:n,closeModal:d})})},mr:"auto",children:t})};t.Z=m},94755:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/messages",function(){return n(71707)}])}},function(e){e.O(0,[2678,5689,2017,424,3949,1985,3679,4133,1454,9774,2888,179],function(){return e(e.s=94755)}),_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.