1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8919],{30599:function(e,r,t){"use strict";t.d(r,{f:function(){return d}});var n=t(90116),s=t(59499),i=t(80424);function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach(function(r){(0,s.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var o=(0,i.Z)(),c=l(l({},o.find(function(e){return"Australia/Sydney"===e.name})),{},{mainCities:["Melbourne"],name:"Australia/Melbourne"}),$=[].concat((0,n.Z)(o),[c]);$.sort(function(e,r){return null!=e&&e.currentTimeOffsetInMinutes&&null!=r&&r.currentTimeOffsetInMinutes?(null==e?void 0:e.currentTimeOff
1setInMinutes)-(null==r?void 0:r.currentTimeOffsetInMinutes):0});var d=$.map(function(e){var r,t=null==e?void 0:null===(r=e.currentTimeFormat)||void 0===r?void 0:r.slice(0,6);return{value:{offset:t,city:e.name,cityBasic:e.mainCities[0]},label:"GMT(".concat(t,") ").concat(e.alternativeName," - ").concat(e.mainCities[0])}})},6877:function(e,r,t){"use strict";t.d(r,{uT:function(){return a},uz:function(){return o}});var n=t(80008),s=t.n(n),i=t(30599),a=function(e,r){var t,n,a,l,o,c,$,d,u=Intl.DateTimeFormat().resolvedOptions().timeZone,x=u;try{x=(null==e?void 0:e.user_id)===r&&null!=e&&e.city?null==e?void 0:e.city:u}catch(h){}!x&&null!=e&&e.city&&(x=e.city);var p,f=s()(null==e?void 0:e.timestamp),m=null===(t=s()(null==e?void 0:e.timestamp))||void 0===t?void 0:null===(n=t.tz(x))||void 0===n?void 0:n.format("D MMM YYYY"),j=null===(a=s()(null==e?void 0:e.timestamp))||void 0===a?void 0:null===(l=a.tz(x))||void 0===l?void 0:l.format("ddd"),g=null===(o=s()(null==e?void 0:e.timestamp))||void 0===o?void 0:null===(c=o.tz(x))||void 0===c?void 0:c.format("hh:mm a"),v=i.f.find(function(e){return e.value.city===x});return{momentUtc:f,day:j,date:m,time:g,city:null==v?void 0:null===($=v.value)||void 0===$?void 0:$.cityBasic,offset:"(GMT".concat(null==v?void 0:null===(d=v.value)||void 0===d?void 0:d.offset,")")}},l=function(e){var r,t=s()(e.date),n=s()(e.time,"HH:mm"),i=t.isValid()?t.format("D MMM YYYY"):null,a=t.isValid()?t.format("ddd"):null,l=n.isValid()?n.format("hh:mm a"):null,o=e.timezone;return{day:a,date:i,time:l,city:(null==o?void 0:o.cityBasic)||null,offset:null!=o&&o.offset?"(GMT".concat(null==o?void 0:o.offset,")"):null}},o=function(e){var r=l(e),t=r.day,n=r.date,s=r.time,i=r.offset,a=r.city,o="",c="",$="";(t||n)&&(o="".concat(t," ").concat(n)),s&&(c="".concat(s)),(i||a)&&($="".concat(i," ").concat(a));var d="".concat(o," ").concat(c);return[""===d.trim()?"TBD":d,""===$.trim()?"":$]}},3007:function(e,r,t){"use strict";t.d(r,{N:function(){return s}}),r.Z={USER:0,MENTOR:1,CELEBRITY:2};var n=["mind_mentor","business_mentor"],s=function(e){if(!e)return 0;var r,t=!!(null!=e&&null!==(r=e.user_types)&&void 0!==r&&r.filter(function(e){return n.indexOf(e)>-1}).length);return null!=e&&e.celebrity_data&&Object.keys(null==e?void 0:e.celebrity_data).length>0?2:t?1:0}},35635:function(e,r,t){"use strict";t.r(r);var n=t(58771),s=t(41664),i=t.n(s),a=t(85893);function l(e){var r=e.statusCode;return(0,a.jsx)("div",{className:"min-h-screen px-4 py-16 bg-white sm:px-6 sm:py-24 md:grid md:place-items-center lg:px-8",children:(0,a.jsx)("div",{className:"mx-auto max-w-max",children:(0,a.jsxs)("main",{className:"sm:flex",children:[(0,a.jsx)("p",{className:"text-4xl font-extrabold text-black sm:text-5xl",children:r||(0,a.jsx)(n.Z,{className:"w-24 h-24"})}),(0,a.jsxs)("div",{className:"sm:ml-6",children:[(0,a.jsxs)("div",{className:"sm:border-l sm:border-gray-200 sm:pl-6",children:[(0,a.jsx)("h1",{className:"text-4xl font-extrabold tracking-tight text-gray-900 sm:text-5xl",children:"Oops!"}),(0,a.jsx)("p",{className:"mt-1 text-base text-gray-500",children:404===r?"It looks like this page is missing or you don't have access to view this page.":"We have encountered an issue with this page, our team has been\n notified."})]}),(0,a.jsx)("div",{className:"flex mt-10 space-x-3 sm:border-l sm:border-transparent sm:pl-6",children:(0,a.jsx)(i(),{href:"/",passHref:!0,children:(0,a.jsx)("a",{className:"inline-flex items-center px-4 py-2 text-sm font-medium text-white border border-transparent rounded-md shadow-sm hover:text-white bg-brand-blue hover:bg-brand-blue-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-blue",children:"Go back home"})})})]})]})})})}l.getInitialProps=function(e){var r=e.res,t=e.err;return{statusCode:r?r.statusCode:t?t.statusCode:404}},r.default=l},25239:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSG:function(){return r0},default:function(){return r1}});var n,s,i,a,l,o=t(62475),c=t(11163),$=t.n(c),d=t(67294),u=t(71641),x=t(16915),h=t(46485),p=t(2882),f=t(89531),m=t(99964),j=t(19717),g=t(3007),v=t(48633),b=t(41664),_=t.n(b),y=t(73407),w=t(35635),N=t(25675),k=t.n(N),O=t(38809),I=t(7588),C=t(85893),Z=function(e){var r=e.menteeName,t=(0,c.useRouter)().query.id;return(0,C.jsx)("div",{className:"max-w-sm mx-auto overflow-hidden bg-white rounded-lg shadow-lg",children:(0,C.jsxs)("div",{className:"relative px-4 pt-12 pb-6 space-y-6 bg-white",children:[(0,C.jsxs)("h4",{className:"w-3/4 text-3xl text-black",children:["Can you help ",null!=r?r:"them"," with this request?"]}),(0,C.jsxs)("p",{className:"text-sm",children:["Have what it takes to be a Lisnic Expert? Sign up, make an offer and use Lisnic to ",(0,C.jsx)("strong",{children:"earn"})," or ",(0,C.jsx)("strong",{children:"pay it forward"}),"."]}),(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsx)("div",{className:"relative w-20 h-20 mr-4 overflow-hidden bg-gray-200 border border-white rounded-full shadow-md",children:(0,C.jsx)(k(),{layout:"fill",objectFit:"cover",className:"w-full",src:"/images/lisa-profile.jpg"})}),(0,C.jsxs)("div",{className:"flex-1",children:[(0,C.jsx)("blockquote",{className:"text-sm italic text-gray-700",children:'"Being a Lisnic Expert has been one of the most rewarding experiences of my career."'}),(0,C.jsx)("div",{className:"text-xs font-semibold text-right text-gray-400",children:"Lisa Teh"})]})]}),(0,C.jsxs)("div",{className:"px-1 pt-12",children:[(0,C.jsx)(I.z,{href:"/signup",fullWidth:!0,children:"Sign up now"}),(0,C.jsxs)("div",{className:"flex flex-col items-center justify-center mt-3 text-sm lg:flex-row",children:[(0,C.jsx)("div",{children:"Already have an account?"}),(0,C.jsx)(O.C7,{size:"none",className:"inline-block px-0 py-1 ml-1 normal-case",returnUrl:"/requests/".concat(t),children:"Login here"})]})]})]})})},P=t(10683),E=function(e){var r=e.refresh,t=(0,v.kP)()[0].id,n=(0,u.a)(x.eh,{fetchPolicy:"cache-and-network",variables:{user_id:t}}),s=n.data,i=n.refetch;return(0,d.useEffect)(function(){i()},[r]),(0,C.jsx)(C.Fragment,{children:s&&(0,C.jsx)(P.z,{title:"Request Links",items:[{title:"My Requests Dashboard",link:"/my-jobs/",count:null},]}
1)})},S=t(34863),q=t(29984),T=t(26041),F=t(44713),L=t(67440),R=t(21990),D=t(48693),z=t(23294),M=t(17674),U=t(6877),A=t(30381),J=t.n(A),B=t(16871),H=t(59499),Y=t(4730),G=t(7234),V=t.n(G),Q=t(19618),X=t(73782),W=t(57247),K=["event"];function ee(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function er(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ee(Object(t),!0).forEach(function(r){(0,H.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var et=X.default.div.withConfig({displayName:"AddToCalendarButton__AddToCalendarWrapper",componentId:"sc-fl25mk-0"})([".react-add-to-calendar,.chq-atc{}.react-add-to-calendar__button,button{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;}.react-add-to-calendar__dropdown,.chq-atc--dropdown{z-index:20;position:absolute;bottom:0px;left:50%;transform:translateY(100%) translateX(-50%);background:white;width:calc(100%);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;}}}"],W.FK,Q.U.tablet),en=function(e){var r=e.event,t=(0,Y.Z)(e,K);return(0,C.jsx)(et,er(er({},t),{},{children:(0,C.jsx)(V(),{event:void 0===r?{name:"Happy Hour",details:"Let's go after work",location:"Boston, MA",startsAt:"2018-12-06T17:00:00-05:00",endsAt:"2018-12-06T18:00:00-05:00"}:r,filename:"lisnic-booking",children:"Add To Calendar"})}))},es=function(e){var r,t=e.job,n=t.accepted_booking,s=t.video_room_id,i=(0,v.kP)(),a=(0,M.Z)(i,1)[0],l=(0,U.uT)(n,null==a?void 0:a.id),o=l.date,c=l.time,$=l.city,d=l.offset,u=(0,B.n)(t).them;Date.prototype.addHours=function(e){return this.setTime(this.getTime()+36e5*e),this};var x=(r=new Date(null==n?void 0:n.timestamp)).addHours(1),h=J()(x).format();return(0,C.jsxs)(S.xu,{background:"#F6F7F8",m:[-20,-30],mt:[10,30],p:[20,"20px 30px"],flow:["row","column"],gap:[null,20],borderRadius:"0px 0px 10px 10px",children:[(0,C.jsxs)(S.xu,{flow:["column"],gap:[10],justifyContent:"flex-start",children:[(0,C.jsx)(S.JO,{name:"c-check-green",size:[16]}),(0,C.jsxs)(S.xu,{flow:["row"],children:[(0,C.jsxs)(S.xv,{mt:["-2px","-4px"],fontSize:[14],children:[(0,C.jsx)("strong",{style:{color:"#053147"},children:"Session booked: "}),(0,C.jsx)(S.xu,{as:"br",display:["none",null,"block","none"]})," ",o," ",c]}),(0,C.jsxs)(S.xv,{fontSize:[14],mt:[null,"-5px","-2px","-5px"],children:[d," ",$]})]})]}),(0,C.jsxs)(S.xu,{flow:"column",gap:[17],alignItems:"center",justifyContent:"flex-start",borderTop:["1px solid #DBDBDB","none"],pt:["15px",0],mt:[20,0],ml:[null,"auto"],children:[(0,C.jsxs)(S.hU,{icon:(0,C.jsx)(S.JO,{name:"calendar",size:24}),position:"relative",children:["Add to calendar",(0,C.jsx)(en,{bottom:[-10],event:{name:"Lisnic Session Booking",details:"This is a Lisnic Session with ".concat(null==u?void 0:u.first_name," ").concat(null==u?void 0:u.last_name,' for "').concat(t.title,'". <br/><br/>The link to the video room is:<br/><a href="').concat("https://www.lisnic.com","/video/").concat(s,'">').concat("https://www.lisnic.com","/video/").concat(s,"</a>"),location:$,startsAt:null==n?void 0:n.timestamp,endsAt:h}})]}),(0,C.jsx)(S.xN,{}),(0,C.jsx)(S.hU,{icon:(0,C.jsx)(S.JO,{name:"video-camera",width:24,height:18}),href:"/video/".concat(s),newTab:!0,children:"Start session"})]})]})},ei=t(96093),ea=function(e){var r=e.slug,t=e.children;return(0,C.jsx)(_(),{href:"/profile/".concat(r),children:(0,C.jsx)("a",{children:t})})},el=function(e){var r=e.setForcedTab,t=e.status,n=e.job,s=n.accepted_offer,i=n.accepted_package_rate,a=n.offers,l=n.reviews,o=n.accepted_booking,c=n.budget,$=n.completed,d=1==l.filter(function(e){var r;return e.reviewee_id===(null===(r=n.accepted_offer)||void 0===r?void 0:r.mentor.id)}).length,u=(0,ei.y)(c);return(0,C.jsx)(S.xu,{p:["25px 0","30px 0 37px 0"],mb:[null,"5px"],children:(0,C.jsxs)(S.s_,{overflow:"visible",children:[(0,C.jsx)(S.xu,{gap:20,justifyItems:["start","start"],alignItems:[null,"center"],cols:["auto","1fr auto"],pb:[!d&&10,0],children:"unassigned"===t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(S.xu,{alignItems:"center",cols:"auto auto auto",gap:[15,20],children:[(0,C.jsxs)(S.j0,{big:!0,
1children:[(0,C.jsx)(S.JO,{name:"price"}),(0,C.jsx)("p",{children:(0,C.jsx)("strong",{children:u})})]}),(0,C.jsx)(S.xN,{}),(0,C.jsx)(S.YO,{offers:a.length})]}),a&&a.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(S.zx,{fullWidth:!0,onClick:function(){r(1),(0,z.X)("job-detail-tabs")},children:"Review Offers"})," "]})]}):"assigned"===t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(S.xu,{alignItems:"center",cols:["auto auto auto"],gap:[15,20],children:[(0,C.jsxs)(S.xu,{display:"grid",flow:"column",gridGap:13,alignItems:"center",children:[(0,C.jsx)(S.qE,{user:s.mentor})," ",(0,C.jsxs)("p",{style:{color:"#053147 "},className:"small",children:[(0,C.jsx)("span",{children:"Assigned to"})," ",(0,C.jsx)(ea,{slug:s.mentor.slug,children:(0,C.jsxs)("strong",{children:[s.mentor.first_name," ",s.mentor.last_name]})})]})]}),(0,C.jsx)(S.xN,{}),(0,C.jsxs)(S.j0,{big:!0,children:[(0,C.jsx)(S.JO,{name:"price"}),(0,C.jsxs)("p",{children:[(0,C.jsxs)("strong",{children:[i.rate," p/h"]})," ",i.number_of_sessions>1&&(0,C.jsxs)("span",{children:["(",i.number_of_sessions," sessions)"]})]})]})]}),(0,C.jsx)(R.Z,{useSimpleLink:!1,label:"Mark as completed",job:n})]}):"completed"===t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(S.xu,{alignItems:"center",cols:["auto auto auto"],gap:[15,20],children:[(0,C.jsxs)(S.xu,{display:"grid",flow:"column",gridGap:13,alignItems:"center",children:[(0,C.jsx)(S.qE,{user:null==s?void 0:s.mentor})," ",(0,C.jsxs)("p",{style:{color:"#053147 "},className:"small",children:[(0,C.jsx)("span",{children:"Completed by"})," ",(0,C.jsx)(ea,{slug:s.mentor.slug,children:(0,C.jsxs)("strong",{children:[null==s?void 0:s.mentor.first_name," ",null==s?void 0:s.mentor.last_name]})})]})]}),(0,C.jsx)(S.xN,{}),(0,C.jsxs)(S.j0,{big:!0,children:[(0,C.jsx)(S.JO,{name:"price"}),(0,C.jsx)("p",{children:(0,C.jsxs)("strong",{children:[i.rate," p/h"]})})]})]}),d?(0,C.jsxs)(S.j0,{children:[(0,C.jsx)(L.Z,{}),(0,C.jsx)("p",{style:{marginTop:"1px",color:"#535F65"},children:"Reviewed"})]}):(0,C.jsx)(D.R,{job:n,label:"Leave a review",userType:"mentor"})]}):null}),o&&!$&&(0,C.jsx)(es,{job:n})]})})},eo=t(94090),ec=t(33093),e$=t(52731),ed=function(e){var r,t=e.status,n=e.job,s=e.currentUserId;e.stripeAccounts;var i=n.accepted_offer,a=n.accepted_package_rate,l=n.offers,o=n.reviews,c=n.user,$=n.accepted_booking,d=n.budget,x=n.completed,h=n.offers.filter(function(e){return e.user_id===s}).length>0,f=n.offers.filter(function(e){return e.user_id===s})[0],m=1==o.filter(function(e){return e.reviewee_id==n.user_id}).length,j=(0,u.a)(p.Lu,{variables:{id:s},skip:!s}).data,v=(0,g.N)(null==j?void 0:j.user)>=g.Z.MENTOR,b=!!(null!=j&&null!==(r=j.user)&&void 0!==r&&r.stripe_connect_id),_=(0,ei.y)(d);return(0,e$.HW)().getConfirmation,(0,C.jsx)(S.xu,{p:["25px 0","30px 0 37px 0"],mb:[null,"5px"],children:(0,C.jsxs)(S.s_,{overflow:"visible",children:[(0,C.jsx)(S.xu,{gap:20,justifyItems:["start","start"],alignItems:[null,"center"],cols:["auto","1fr auto"],pb:[!m&&10,0],children:"unassigned"===t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(S.xu,{alignItems:"center",cols:"auto auto auto",gap:[15,20],children:[(0,C.jsxs)(S.j0,{big:!0,children:[(0,C.jsx)(S.JO,{name:"price"}),(0,C.jsx)("p",{children:(0,C.jsx)("strong",{children:_})})]}),(0,C.jsx)(S.xN,{}),(0,C.jsx)(S.YO,{offers:l.length})]}),v&&!b?(0,C.jsx)(ec.E,{label:"Make an Offer",subtitle:"",missing:["bankaccount"]}):h?(0,C.jsx)(eo.$,{job:n,label:"Change offer",offer:f}):(0,C.jsx)(eo.$,{job:n})]}):"assigned"===t?(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(S.xu,{alignItems:"center",cols:["auto auto auto"],gap:[15,20],children:[(0,C.jsxs)(S.xu,{display:"grid",flow:"column",gridGap:13,alignItems:"center",children:[(0,C.jsx)(S.qE,{user:i.mentor})," ",(0,C.jsxs)("p",{style:{color:"#053147 "},className:"small",children:[(0,C.jsx)("span",{children:"Assigned to"})," ",(0,C.jsx)(ea,{slug:i.mentor.slug,children:(0,C.jsxs)("strong",{children:[i.mentor.first_name," ",i.mentor.last_name]})})]})]}),(0,C.jsx)(S.xN,{}),(0,C.jsxs)(S.j0,{big:!0,children:[(0,C.jsx)(S.JO,{name:"price"}),(0,C.jsxs)("p",{children:[(0,C.jsxs)("strong",{children:[a.rate," p/h"]})," ",a.number_of_sessions>1&&(0,C.jsxs)("span",{children:["(",a.number_of_sessions," sessions)"]})]})]})]})}):"completed"===t?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(S.xu,{alignItems:"center",cols:["auto auto auto"],gap:[15,20],children:[(0,C.jsxs)(S.xu,{display:"grid",flow:"column",gridGap:13,alignItems:"center",children:[(0,C.jsx)(S.qE,{user:c})," ",(0,C.jsxs)("p",{style:{color:"#053147 "},className:"small",children:[(0,C.jsx)("span",{children:"Completed for"})," ",(0,C.jsx)(ea,{slug:c.slug,children:(0,C.jsxs)("strong",{children:[c.first_name," ",c.last_name]})})]})]}),(0,C.jsx)(S.xN,{}
1),(0,C.jsxs)(S.j0,{big:!0,children:[(0,C.jsx)(S.JO,{name:"price"}),(0,C.jsx)("p",{children:(0,C.jsxs)("strong",{children:[a.rate," p/h"]})})]})]}),m?(0,C.jsxs)(S.j0,{children:[(0,C.jsx)(L.Z,{}),(0,C.jsx)("p",{style:{marginTop:"1px",color:"#535F65"},children:"Reviewed"})]}):null]}):null}),$&&!x&&(0,C.jsx)(es,{job:n})]})})},eu=t(50319),ex=t(24330),eh=t(56796),ep=t(87536),ef=t(1454),em=t(97717);function ej(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function eg(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ej(Object(t),!0).forEach(function(r){(0,H.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ej(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var ev=function(e){var r=e.jobId,t=(0,F.dd)().closeModal,n=(0,ep.cI)({mode:"onSubmit",resolver:(0,eh.L)(ef.gw)}),s=n.handleSubmit,i=n.register,a=n.formState.errors,l=function(e,r){var t=r.data,n=t.cancelJob.job_id;console.log(t),e.modify({fields:{jobs:function(e,r){var t=r.readField;return e.filter(function(e){return n!==t("id",e)})}}})},o=(0,eu.D)(ex.LT,{update:l,onError:function(e){alert("ERROR"),console.log(e)},onCompleted:function(){t(),$().push("/requests"),(0,S.z5)(null,"Your request has been cancelled","error")}}),c=(0,M.Z)(o,1)[0],d=function(e){console.log(e),c({variables:e})};return(0,C.jsxs)("form",{onSubmit:s(d),children:[(0,C.jsx)(em.oi,eg(eg({placeholder:"Reason for cancellation"},i("cancel_reason")),{},{type:"textarea",maxLength:500,errors:a})),(0,C.jsx)("input",eg({type:"hidden",value:r},i("job_id"))),(0,C.jsxs)(S.xu,{mt:15,cols:["1fr","1fr 1fr"],gap:15,children:[(0,C.jsx)(S.zx,{variant:"outline",onClick:function(){return t()},children:"No, Keep Request Open"}),(0,C.jsx)(S.zx,{fullWidth:!0,type:"submit",children:"Yes, Cancel Request"})]})]})},eb=t(90116),e_=t(83175),ey=t(99490),ew=t(83191),e0=t(29495),e1=t(98529),e2=function(e){var r,t=e.job,n=e.status,s=e.isOwner;return e.userCountry,null===(r=t.offers)||void 0===r?void 0:r.map(function(e,r){var i=ey.ou.fromISO(e.created_at).toRelativeCalendar(),a=e.mentor.reviews_aggregate.aggregate.count>0,l=null==t?void 0:t.offers[r].bulk_rates,o=Math.round(10*e.mentor.reviews_aggregate.aggregate.avg.rating)/10,c=null!==l&&[].concat((0,eb.Z)(l),[{rate:e.rate}]),$=l&&Math.min.apply(Math,(0,eb.Z)(c.map(function(e){return e.rate})));return(0,C.jsxs)(S.s_,{p:0,mb:[14,30],children:[(0,C.jsxs)(S.xu,{padding:[20,30],pb:[14],gap:[14,30],cols:"auto 1fr",children:[(0,C.jsx)(S.qE,{user:e.mentor}),(0,C.jsxs)(S.xu,{display:["flex"],flexDirection:[a?"column":"row"],justifyContent:["space-between"],children:[(0,C.jsx)(S.xu,{alignItems:[!a&&"center"],children:(0,C.jsx)(_(),{href:"/profile/".concat(e.mentor.slug),passHref:!0,children:(0,C.jsx)("a",{children:(0,C.jsx)(S.xv,{as:"p",className:"navy",children:(0,C.jsxs)("strong",{children:[e.mentor.first_name," ",e.mentor.last_name]})})})})}),(0,C.jsxs)(S.xu,{display:"flex",justifyContent:["space-between"],gap:[a&&10],cols:["auto auto auto auto","auto auto"],alignItems:"center",mt:["4px","0"],children:[a&&(0,C.jsxs)(S.xu,{gap:[6,10],flow:"column",alignItems:"center",children:[(0,C.jsx)(e1.t,{rating:e.mentor.reviews_aggregate.aggregate.avg.rating}),(0,C.jsx)("p",{className:"small navy",children:(0,C.jsx)("strong",{children:o})})]}),(0,C.jsx)(S.xu,{display:["flex"],flexDirection:"row",children:(0,C.jsxs)(S.xu,{flow:["column"],gridColumnGap:10,alignItems:["center"],ml:["10px"],children:[l&&(0,C.jsx)("p",{className:"small navy",children:"From"}),(0,C.jsxs)(S.j0,{big:!0,children:[(0,C.jsx)(S.JO,{name:"price"}),(0,C.jsx)("p",{children:(0,C.jsxs)("strong",{children:[(0,e_.Z)(l?$:e.rate),"/ph"]})})]})]})})]})]})]}),(0,C.jsxs)(S.xu,{padding:["0 20px","0 30px"],ml:[null,80],mt:[null,-15],children:[(0,C.jsx)("hr",{}),(0,C.jsx)(S.LZ,{height:[15,25]}),(0,C.jsx)(ew.Z,{children:(0,C.jsx)("p",{"data-cy":"job-offer-message",children:e.message})}),(0,C.jsx)("p",{className:"v-small",children:i}),(0,C.jsx)(S.LZ,{height:[25,38]})]}),"unassigned"==n&&s&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("hr",{}),(0,C.jsxs)(S.xu,{gap:[10],justifyContent:[null,"end"],cols:[null,"auto auto"],background:"#F6F7F8",p:[20,30],children:[(0,C.jsx)(S.zx,{href:"/profile/".concat(e.mentor.slug),variant:"outline",children:"View profile"}),(0,C.jsx)(e0.T,{job:t,offer:e})]})]})]},e.id)})},e4=t(60716),e3=t.n(e4),e6=t(42705),e8=t.n(e6),eN=t(54390),e5=t(68189),ek=t(65506),e7=e8().extend(e3()),eO=e7.object({message:e7.string().required().max(1500),job_id:e7.number(),parent_id:e7.number().allow(null)}).messages(eN.Gv);ek.Z,e5.Z;var eI=t(66653),eC=t(69575);function eZ(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}
1var eP=function(e){var r=e.control,t=(0,ep.qo)({control:r,name:"message"});return(0,C.jsxs)(eI.aF,{children:[1500-((null==t?void 0:t.length)||0)," characters remaining"]})},eE=function(e){var r=e.askAQuestion,t=e.formMethods,n=e.jobUserName,s=e.currentUserId,i=t.handleSubmit,a=t.register,l=t.errors,o=t.control,c=(0,u.a)(p.Yh,{variables:{id:s}}).data;return(0,C.jsxs)(S.xu,{background:"white",p:[20,30],pb:[25],gap:[10,20],borderRadius:"10px",cols:"auto 1fr",children:[(0,C.jsx)(S.qE,{user:null==c?void 0:c.user}),(0,C.jsx)("form",{style:{width:"100%"},onSubmit:i(function(e){r(e.message)}),children:(0,C.jsxs)(S.xu,{justifyItems:[null,"end"],children:[(0,C.jsx)(eC.J,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?eZ(Object(t),!0).forEach(function(r){(0,H.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eZ(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}({placeholder:"Ask ".concat(n," a question"),type:"textarea",errors:l},a("message"))),(0,C.jsxs)(S.xu,{mt:[20],cols:"auto auto",ml:"auto",alignItems:"center",gap:[10,20],children:[(0,C.jsx)(eP,{control:o}),(0,C.jsx)(S.zx,{type:"submit",children:"Post question"})]})]})})]})};function eS(){return(eS=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var eq=function(e){return d.createElement("svg",eS({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},e),n||(n=d.createElement("path",{d:"M8 4c5.2 0 8 3.8 8 10-1.5-2.4-2.7-4-8-4v4L0 7l8-7v4z",fill:"#F88200",fillRule:"nonzero"})))},eT=t(50424),eF=X.default.div.withConfig({displayName:"style__OwnerIndicator",componentId:"sc-uap7qj-0"})(["font-weight:bold;font-size:9px;color:#ffffff;letter-spacing:0;text-align:center;height:17px;display:flex;justify-content:center;align-items:center;background:#0095ff;border-radius:40px;padding:0 6px;margin-top:-6px;margin-left:-5px;flex-shrink:0;width:71px;@media ","{margin-top:0px;font-size:11px;height:19px;padding:0 6px;width:82px;}"],Q.U.tablet),eL=function(e){var r=e.last,t=e.showInput,n=e.setShowInput,s=e.reply,i=e.jobOwner,a=e.parentId,l=e.currentUserId,o=e.threadAuthor;return(0,C.jsxs)(S.xu,{gap:[10,20],justifyContent:"start",children:[(0,C.jsxs)(S.xu,{gap:[15],alignItems:["center","start"],cols:"auto auto auto",justifySelf:"start",children:[(0,C.jsx)(S.qE,{user:s.user,height:[28],width:[28]}),(0,C.jsx)(_(),{href:"/profile/".concat(s.user.slug),children:(0,C.jsx)("a",{children:(0,C.jsx)("p",{className:"navy small",children:(0,C.jsx)("strong",{children:"".concat(s.user.first_name," ").concat(s.user.last_name)})})})}),i==s.user_id&&(0,C.jsx)(eF,{children:"JOB OWNER"})]}),(0,C.jsxs)(S.xu,{mt:[null,-22],ml:[null,44],pl:[null,0],children:[(0,C.jsx)("p",{children:s.message}),(0,C.jsx)(S.LZ,{height:[14,10]}),(0,C.jsxs)(S.xu,{gap:[10],cols:"auto auto",alignItems:"center",justifyContent:"start",children:[(0,C.jsx)("p",{className:"v-small",children:(0,eT.C)(s.timestamp)}),r&&(i==l||o==l)&&(0,C.jsx)(ez,{parentId:a,showInput:t,setShowInput:n})]})]})]})};function eR(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function eD(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?eR(Object(t),!0).forEach(function(r){(0,H.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eR(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var ez=function(e){var r=e.showInput,t=e.setShowInput;return(0,C.jsx)("button",{onClick:function(){return t(!r)},style:{display:"flex",alignItems:"center",height:"10px"},children:(0,C.jsxs)(S.j0,{children:[(0,C.jsx)(eq,{}),(0,C.jsx)("p",{style:{color:"#053147",marginTop:"0px"},children:(0,C.jsx)("strong",{children:"Reply"})})]})})},eM=function(e){var r,t=e.first,n=e.thread,s=e.jobOwner,i=e.threadAuthor,a=e.currentUserId,l=e.askAQuestion,o=(0,d.useState)(!1),c=o[0],$=o[1],x=(0,ep.cI)({resolver:(0,eh.L)(eO)}),h=x.handleSubmit,f=x.register,m=x.formState.errors,j=n.replies,g=a===i?s:i,v=(0,u.a)(p.Lu,{variables:{id:g},skip:!g}),b=v.data;v.error;var y=(null==b?void 0:null===(r=b.user)||void 0===r?void 0:r.first_name)||{};return(0,C.jsxs)(C.Fragment,{children:[t&&s===a?null:(0,C.jsx)("hr",{}),(0,C.jsxs)(S.xu,{p:[20,30],pb:[25],gap:[10,20],borderRadius:"10px",children:[(0,C.jsxs)(S.xu,{gap:[15,20],alignItems:["center","start"],cols:"auto auto auto",justifySelf:"start",children:[(0,C.jsx)(S.qE,{user:n.user}),(0,C.jsx)(_(),{href:"/profile/".concat(n.user.slug),children:(0,C.jsx)("a",{children:(0,C.jsx)("p",{className:"navy",children:(0,C.jsx)("strong",{children:"".concat(n.user.first_name," ").concat(n.user.last_name)})})})})]}),(0,C.jsxs)(S.xu,{mt:[null,-39],ml:[null,67],pl:[null,0],children:[(0,C.jsx)("p",{style:{wordBreak:"break-word"},children:n.message}),(0,C.jsx)(S.LZ,{height:[14,12]}),(0,C.jsxs)(S.xu,{gap:[10],cols:"auto auto",alignItems:"center",justifyContent:"start",children:[(0,C.jsx)("p",{className:"v-small",children:(0,eT.C)(n.timestamp)}),0==j.length&&(s==a||i==a)&&(0,C.jsx)(ez,{showInput:c,setShowInput:$})]}),j.length>0&&(0,C.jsx)(S.xu,{ml:[j&&40,0],pt:[24],pb:[10],gap:[30],children:null==j?void 0:j.map(function(e,r){return(0,C.jsx)(eL,{setShowInput:$,showInput:c,parentId:e.parent_id,reply:e,jobOwner:s,threadAuthor:i,currentUserId:a,last:r===j.length-1},e.id)})}),c&&(0,C.jsx)("form",{style:{width:"100%"},onSubmit:h(function(e){l(e.message,n.id),$(!1)}),children:(0,C.jsxs)(S.xu,{mt:[20],justifyItems:[null,"end"],children:[(0,C.jsx)(eC.J,eD(eD({white:!t||s!==a,placeholder:"Reply to ".concat(y,"..."),type:"textarea"},f("message")),{},{errors:m})),(0,C.jsx)(S.zx,{mt:[20],type:"submit",children:"Reply"})]})})]})]})]})},eU=function(e){var r,t,n=e.job,s=e.currentUserId,i=(0,ep.cI)({resolver:(0,eh.L)(eO)}),a=i.setValue,l=(0,eu.D)(ex.Qw,{variables:{job_id:n.id},refetchQueries:[{query:x.c2,variables:{id:n.id}}],onCompleted:function(){return a("message","")},onError:function(e){return console.log("error:",e)}}),o=(0,M.Z)(l,1)[0],c=function(e,r){o({variables:{message:e,parent_id:r}})};return(0,C.jsx)(S.s_,{p:0,boxShadow:"0 10px 20px 0 rgba(0,0,0,0.10)",borderRadius:"10px",children:(0,C.jsxs)(S.xu,{background:"white",borderRadius:"10px",children:[n.user_id!==s&&(0,C.jsx)(eE,{askAQuestion:c,formMethods:i,jobUserName:null==n?void 0:null===(r=n.user)||void 0===r?void 0:r.first_name,currentUserId:s}),null==n?void 0:null===(t=n.questions)||void 0===t?void 0:t.map(function(e,r){return(0,C.jsx)(eM,{thread:e,currentUserId:s,jobOwner:n.user_id,threadAuthor:e.user_id,first:0===r,askAQuestion:c},e.id)})]})})},eA=function(e){var r=e.forcedTab,t=e.setForcedTab,n=e.job,s=e.currentUserId,i=e.status,a=e.isOwner,l=e.userCountry,o=[{title:"Messages",count:0,hideEmpty:"unassigned"===i,href:"/messages?id=".concat(n.id),dataCy:"open-messages"},{title:"Offers",content:(0,C.jsx)(e2,{job:n,status:i,isOwner:a,userCountry:l}),count:n.offers.length,hideEmpty:!0},{title:"Questions",content:(0,C.jsx)(eU,{job:n,currentUserId:s}),count:n.questions.length,hideEmpty:a}],c=window.location.hash.substr(1);return(0,C.jsx)(S.mQ,{data:o,forcedTab:r,setForcedTab:t,defaultTab:"questions"===c?2:"offers"===c?1:n.offers.length?1:(n.questions.length,2),id:"job-detail-tabs"})},eJ=t(31295),eB=t(9218),eH=function(e){var r,t=e.job,n=e.isOwner;return(0,C.jsxs)(S.xu,{children:[(0,C.jsx)("p",{style:{color:"#033148"},children:t.expertise&&Array.isArray(t.expertise)&&t.expertise.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("strong",{children:"Areas of expertise:"}
1)," ",t.expertise.join(", ")]})}),(0,C.jsx)("p",{style:{color:"#033148",paddingTop:"5px"},children:t.industry&&Array.isArray(t.industry)&&t.industry.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("strong",{children:"Industries:"})," ",t.industry.join(", ")]})}),(0,C.jsx)("p",{style:{color:"#033148",paddingTop:"5px"},children:t.session_type&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("strong",{children:"Session type:"})," ",t.session_type]})}),(0,C.jsx)(S.LZ,{height:[6,0]}),(0,C.jsxs)(eB.BV,{children:[(0,eT.C)(t.created_at)," ",!n&&(0,C.jsxs)(C.Fragment,{children:[" ","by"," ",(0,C.jsx)(_(),{href:"/profile/".concat(t.user.slug),children:(0,C.jsxs)("a",{children:[t.user.first_name," ",t.user.last_name]})})]})]}),(0,C.jsx)(S.LZ,{height:[14,30]}),(0,C.jsxs)(S.xu,{gap:[6,20],cols:["auto","auto auto auto"],justifyContent:"start",children:[(null===(r=t.user.location)||void 0===r?void 0:r.string)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(S.j0,{fontSize:["14px","16px"],children:[(0,C.jsx)(S.JO,{name:"location"}),(0,C.jsx)("p",{children:(0,C.jsx)("strong",{children:t.user.location.string})})]}),(0,C.jsx)(S.xN,{hideMobile:!0})]}),(0,C.jsxs)(S.j0,{fontSize:["14px","16px"],children:[(0,C.jsx)(eJ.Z,{})," ",(0,C.jsxs)("p",{children:[(0,C.jsx)("strong",{children:"Languages:"})," English"]})]})]})]})},eY=X.default.div.withConfig({displayName:"style__JobStatusIndicatorContainer",componentId:"sc-ke9wa-0"})(["overflow:hidden;@media ","{margin-top:-10px;}"],Q.U.tablet),eG=X.default.div.withConfig({displayName:"style__Indicator",componentId:"sc-ke9wa-1"})(["display:inline-flex;align-items:center;font-size:10px;font-weight:bold;color:",";border:2px solid ",";background:",";border-radius:4px;padding:5px;padding-right:10px;font-family:var(--Poppins);text-transform:capitalize;position:relative;&:before{content:'';position:absolute;top:50%;transform:translateY(-50%) translateX(100%);right:-20px;height:1px;width:100vw;background:#c3c6ce;}@media ","{font-size:12px;}svg{height:16px;width:16px;margin-right:5px;@media ","{margin-right:8px;}}"],function(e){return"unassigned"===e.status?"#535f65;":"assigned"===e.status?e.theme.primaryColor:"completed"===e.status?"white":null},function(e){return"unassigned"===e.status?"#ffb200":"assigned"===e.status?"#0095ff":"completed"===e.status?e.theme.colors.green:null},function(e){return"completed"===e.status&&e.theme.colors.green},Q.U.tablet,Q.U.tablet);function eV(){return(eV=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var eQ=function(e){return d.createElement("svg",eV({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},e),s||(s=d.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-8zm4 9H7V4h2v3h3v2z",fill:"#FFB200",fillRule:"nonzero"})))};function eX(){return(eX=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var eW=function(e){return d.createElement("svg",eX({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},e),i||(i=d.createElement("g",{fill:"#0095ff",fillRule:"nonzero"},d.createElement("circle",{cx:8,cy:7,r:3}),d.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-8zm4 12.4c-.6-.7-1.4-1.4-3-1.4H7c-1.6 0-2.4.7-3 1.4C2.8 11.3 2 9.8 2 8c0-3.3 2.7-6 6-6s6 2.7 6 6c0 1.8-.8 3.3-2 4.4z"}))))};function eK(){return(eK=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var e9=function(e){return d.createElement("svg",eK({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},e),a||(a=d.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-8zM7 11.4L3.6 8 5 6.6l2 2 4-4L12.4 6 7 11.4z",fill:"#FFF",fillRule:"nonzero"})))},re=function(e){var r=e.status;return(0,C.jsx)(eY,{children:(0,C.jsxs)(eG,{"data-cy":"job-status",status:r,children:["unassigned"===r?(0,C.jsx)(eQ,{}):"assigned"===r?(0,C.jsx)(eW,{}):"completed"===r?(0,C.jsx)(e9,{}):null,r]})})},rr=function(e){var r=e.reviews,t=e.userId,n=null==r?void 0:r.filter(function(e){var r;return(null==e?void 0:null===(r=e.reviewer)||void 0===r?void 0:r.id)==t})[0];return(0,C.jsx)(C.Fragment,{children:n&&(0,C.jsx)(S.xu,{mb:[30,64],children:(0,C.jsx)(S.s_,{p:0,children:(0,C.jsxs)(S.xu,{gap:[20,24],p:[20,"26p
1x 30px"],pb:[30,50],background:"#0078CD",justifyItems:"start",borderRadius:"inherit",children:[(0,C.jsxs)(S.xu,{gap:[13,12],flow:"column",alignItems:"end",children:[(0,C.jsx)(S.JO,{height:[22,35],width:[22,44],name:"quotes"}),(0,C.jsx)(S.LZ,{display:["none","block"]}),(0,C.jsx)("h5",{style:{marginBottom:"-2px",color:"white"},children:"YOUR REVIEW:"}),(0,C.jsx)(S.xu,{mb:["-3px","-2px"],children:(0,C.jsx)(e1.t,{tiny:!0,rating:n.rating})})]}),(0,C.jsxs)(S.xu,{gap:[13,19],cols:"auto 1fr",children:[(0,C.jsx)(S.qE,{user:n.reviewer}),(0,C.jsxs)("p",{style:{color:"white"},children:["â",n.content,"â"]})]})]})})})})},rt=t(22694),rn=t(8441),rs=t(61038);function ri(){return(ri=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var ra=function(e){return d.createElement("svg",ri({viewBox:"0 0 28 27",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=d.createElement("g",{transform:"translate(.757)",fill:"none"},d.createElement("ellipse",{fill:"#F88200",cx:13.346,cy:13.355,rx:13.346,ry:13.355}),d.createElement("path",{d:"M6.515 9.692l6.054 3.366c.204.113.467.168.732.168.265 0 .528-.055.731-.168l6.055-3.366c.394-.22.768-.908.043-.908H6.472c-.724 0-.352.688.043.908zm13.739 1.402l-6.222 3.367c-.274.148-.466.167-.731.167-.265 0-.457-.02-.732-.167l-6.221-3.367c-.316-.17-.313.03-.313.183v6.13c0 .351.451.802.8.802h12.93c.35 0 .802-.451.802-.801v-6.13c0-.155.003-.354-.313-.184z",fill:"#FFF"}))))},rl=t(10848),ro=t(16573),rc=t(46616),r$=t(53597),rd=t(48137),ru=function(e){var r=e.className,t=e.job,n=e.variation,s=e.linkOnly,i=e.instagram,a=e.facebook,l=e.twitter,o=e.linkedIn;return(0,C.jsxs)("div",{className:r,variation:n,children:[s&&(0,C.jsxs)("div",{className:"flex flex-row space-x-2",children:[(0,C.jsx)("div",{children:(0,C.jsx)("a",{target:"_blank",href:o,rel:"noopener noreferrer",children:(0,C.jsx)(rs.Z,{})})}),(0,C.jsx)("div",{children:(0,C.jsx)("a",{target:"_blank",href:a,rel:"noopener noreferrer",children:(0,C.jsx)(rt.Z,{})})}),(0,C.jsx)("div",{children:(0,C.jsx)("a",{target:"_blank",href:l,rel:"noopener noreferrer",children:(0,C.jsx)(rl.Z,{})})}),(0,C.jsx)("div",{children:(0,C.jsx)("a",{target:"_blank",href:i,rel:"noopener noreferrer",children:(0,C.jsx)(rn.Z,{})})})]}),!s&&(0,C.jsxs)("div",{className:"flex flex-row space-x-2",children:[(0,C.jsx)("div",{children:(0,C.jsx)(ro.Z,{className:"h-7 w-7",url:"".concat("https://www.lisnic.com","/").concat((0,m.D)(t)),children:(0,C.jsx)(rt.Z,{})})}),(0,C.jsx)("div",{children:(0,C.jsx)(rc.Z,{className:"h-7 w-7",url:"".concat("https://www.lisnic.com","/").concat((0,m.D)(t)),children:(0,C.jsx)(rl.Z,{})})}),(0,C.jsx)("div",{children:(0,C.jsx)(r$.Z,{className:"h-7 w-7",url:"".concat("https://www.lisnic.com","/").concat((0,m.D)(t)),children:(0,C.jsx)(rs.Z,{})})}),(0,C.jsx)("div",{children:(0,C.jsx)(rd.Z,{className:"h-7 w-7",url:"".concat("https://www.lisnic.com","/").concat((0,m.D)(t)),children:(0,C.jsx)(ra,{})})})]})]})},rx=["job"];function rh(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function rp(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?rh(Object(t),!0).forEach(function(r){(0,H.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rh(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var rf=function(e){var r=e.job,t=(0,Y.Z)(e,rx);return(0,C.jsxs)(S.xu,rp(rp({cols:"auto auto",justifyContent:"start",alignItems:"center",pt:["5px","10px"],pb:["25px","50px"],gap:[15,20]},t),{},{children:[(0,C.jsx)("p",{style:{color:"#033148"},children:(0,C.jsx)("strong",{children:"Share this job "})}),(0,C.jsx)(ru,{job:r})]}))},rm=function(){return(0,C.jsx)(w.default,{statusCode:404})},rj=function(){return(0,C.jsxs)("div",{className:"flex flex-col items-center max-w-md px-6 py-32 mx-auto",children:[(0,C.jsx)("div",{className:"mb-8",children:(0,C.jsx)(f.Z,{className:"w-48 h-48 text-gray-200"})}),(0,C.jsx)("p",{className:"mb-2 text-center",children:"You don't have permission to access to this page."}),(0,C.jsx)(_(),{href:"/my-jobs",passHref:!0,children:(0,C.jsx)(O.ZP,{brand:"orange",children:"Go to My Requests"})})]})},rg=function(e){var r=e.job,t=(0,d.useRef)();return(0,d.useEffect)(function(){t.current&&t.current.click()},[]),(0,C.jsxs)("div",{className:"flex flex-col items-center max-w-md px-6 py-8 mx-auto",children:[(0,C.jsx)("div",{className:"mb-8",children:(0,C.jsx)(f.Z,{className:"w-48 h-48 text-gray-200"})}),(0,C.jsx)("p",{className:"mb-3 text-center",children:"Please login to continue."}),(0,C.jsx)(O.C7,{ref:t,returnUrl:(0,m.D)(r),brand:"orange",children:"Login"})]})},rv=function(e){var r,t=e.job;if(!t)return(0,C.jsx)(rm,{});if(!1===t.public)return(0,C.jsx)("div",{className:"py-12 xl:py-24",children:(0,C.jsx)(rg,{job:t})});var n=(0,j.s)(t);return(0,C.jsxs)(O.OO,{children:[(0,C.jsx)(S.LZ,{height:["40px"]}),(0,C.jsxs)("div",{className:"flex flex-wrap -mx-4",children:[(0,C.jsxs)("div",{className:"w-full px-4 mb-8 lg:w-8/12 lg:mb-0",children:[(0,C.jsx)(S.z7,{title:null==t?void 0:t.t
1itle}),(0,C.jsx)(S.LZ,{height:[15,30]}),(0,C.jsx)(re,{status:n}),(0,C.jsx)(S.LZ,{height:[15,30]}),(0,C.jsx)(eH,{job:t,isOwner:!1}),(0,C.jsx)(S.LZ,{height:[15,30]}),(0,C.jsx)(S.VY,{children:(0,C.jsx)("p",{children:null==t?void 0:t.description})}),(0,C.jsx)(rf,{job:t})]}),(0,C.jsx)("div",{className:"w-full px-4 lg:w-4/12",children:(0,C.jsx)("div",{className:"max-w-xl mx-auto xl:pl-24",children:(0,C.jsx)(Z,{menteeName:(null==t?void 0:null===(r=t.user)||void 0===r?void 0:r.first_name)||void 0})})})]})]})},rb=function(e){var r,t=e.id,n=e.prefetchedJobData,s=e.showSidebar,i=void 0===s||s,a=e.showSubHeading,l=(0,c.useRouter)(),o=(0,F.dd)().openModal,$=(0,v.kP)()[0],f=null==$?void 0:$.id;if(!f)return(0,C.jsx)(rv,{job:n});var m=(0,u.a)(p.Lu,{variables:{id:f},skip:!f}).data,b=null==m?void 0:null===(r=m.user)||void 0===r?void 0:r.user_types,_=(0,g.N)(null==m?void 0:m.user)===g.Z.MENTOR,w=(0,d.useState)(2),N=w[0],k=w[1],I=(0,u.a)(x.c2,{fetchPolicy:"cache-and-network",variables:{id:t}}),Z=I.loading,P=I.data,L=I.subscribeToMore,R=null==P?void 0:P.result,D=(0,u.a)(h.cS).data;(0,d.useEffect)(function(){l.events.on("hashChangeComplete",function(){l.reload()}),!Z&&L&&L({document:x.gU,variables:{job_id:t},updateQuery:function(e,r){var t,n,s=r.subscriptionData;return s.data?Object.assign({},e,{result:Object.assign({},e.result,{job_offer_id:null===(t=s.data.job)||void 0===t?void 0:t.job_offer_id,accepted_offer:null===(n=s.data.job)||void 0===n?void 0:n.accepted_offer})}):e}})});var z=(0,y.Z)(["(min-width: 1024px)"],[!0],!1);if(!P&&Z)return(0,C.jsx)(S.gb,{});var M=null==P?void 0:P.result,U=null==M?void 0:M.user_id;if(!M)return(0,C.jsx)(rj,{});var A=M.title,J=M.user_id,B=M.accepted_booking,H=M.reviews,Y=M.accepted_offer,G=f===J,V=(null==Y?void 0:Y.user_id)===f,Q=(0,j.s)(M),X=!V&&!G,W=function(){o({title:"Cancel Request",icon:"warning",subtitle:"Are you sure youâd like to cancel this request? This is undoable.",confirmClose:!1,modalContent:(0,C.jsx)(ev,{jobId:M.id})})},K=[];return M.job_offer_id||(K.push({label:"Edit Request",href:"/edit-job?id=".concat(M.id)}),K.push({label:"Cancel Request",action:W})),(0,C.jsxs)(O.OO,{className:"mb-20",children:[(0,C.jsx)(S.LZ,{height:["40px"]}),(0,C.jsx)(q.rj,{children:(0,C.jsxs)(q.X2,{children:[(0,C.jsx)(q.JX,{order:1,xs:i?9:12,md:i?8:12,children:(0,C.jsx)(S.z7,{title:A,subtitle:void 0===a||a?X?"Browse Requests":"My Requests":null})}),i&&(0,C.jsx)(q.JX,{order:2,xs:3,md:4,alignItems:["flex-end"],justifyContent:["flex-end"],children:G&&(0,C.jsx)(S.qG,{options:K})}),(0,C.jsxs)(q.JX,{order:[4,null,3],xs:12,md:i?8:12,children:[(0,C.jsx)(re,{status:Q}),(0,C.jsx)(S.LZ,{height:[15,30]}),(0,C.jsx)(eH,{job:M,isOwner:G}),G?(0,C.jsx)(el,{job:M,status:Q,setForcedTab:k,accepted_booking:B}):(0,C.jsx)(ed,{job:M,status:Q,currentUserId:f,stripeAccounts:D,accepted_booking:B}),(0,C.jsx)(S.VY,{children:(0,C.jsx)("p",{children:M.description})}),(0,C.jsx)(rf,{job:null==P?void 0:P.result,marginBottom:"unassigned"===Q&&G&&0===M.offers.length&&0===M.questions.length&&"-70px !important"}),(0,C.jsx)(rr,{userId:f,reviews:H}),(0,C.jsx)(eA,{job:M,currentUserId:f,status:Q,isOwner:G,forcedTab:N,setForcedTab:k,userCountry:null==m?void 0:m.user.country_code})]}),i&&(0,C.jsxs)(q.JX,{order:[3,null,4],xs:12,md:4,children:[!X&&(0,C.jsx)(E,{}),b&&"unassigned"===Q&&R&&z&&(0,C.jsx)(T.V,{pageSection:G?"jobScreen":"otherJobScreen",user_types:b,id:_?U:f,job:R})]}),!z&&i&&(0,C.jsx)(q.JX,{order:[5],xs:12,children:b&&"unassigned"===Q&&R&&(0,C.jsx)(T.V,{pageSection:G?"jobScreen":"otherJobScreen",user_types:b,id:_?U:f,job:R})})]})})]})},r_=t(87484),ry=t(81056),rw=function(e){var r=e.id,t=e.jobData,n=e.seo,s=(0,c.useRouter)();return(0,o.Z)().isSessionLoading,(0,C.jsxs)(C.Fragment,{children:[n&&(0,C.jsx)(ry.H,{title:n.title||"Lisnic",description:n.description||"",isPrimary:!0}),s.isFallback?(0,C.jsx)(S.gb,{}):(0,C.jsx)(rb,{id:r,prefetchedJobData:t})]})};rw.layoutSettings={isV2:!0,getLayout:function(e){return(0,C.jsx)(r_.Q,{children:e})},requiresAuth:!1,headerTitle:"Browse Requests"};var r0=!0,r1=rw},69575:function(e,r,t){"use strict";t.d(r,{J:function(){return a},R:function(){return l}});var n=t(73782),s=t(21499),i=t(19618),a=(0,n.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"}),l=(0,n.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)},87484:function(e,r,t){"use strict";t.d(r,{Q:function(){return I}});var n,s,i=t(67294),a=t(14101),l=t(77191),o=t(86215),c=t(11355),$=t(69065),d=t(5506),u=t(92484),x=t(86010),h=t(62475),p=t(41664),f=t.n(p),m=t(38809),j=t(9124),g=t(82723),v=t(3948),b=t(42613),_=t(85893);(s=n||(n={})).LINK="link";var y=function(){var e=(0,i.useState)(0),r=e[0],t=e[1];return(0,i.useEffect)(function(){var e=function(){t(window.pageYOffset)};return window.addEventListener("scroll",e),e(),function(){return window.removeEventListener("scroll",e)}},[]),r},w=function(e){(0,l.Z)(e);
1var r=[{label:"How it works",type:n.LINK,href:"/how-it-works/book-a-top-rated-expert"},{label:"Browse Experts",type:n.LINK,href:"/experts"},{label:"Browse Requests",type:n.LINK,href:"/requests"}],t=y();return(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"h-[80px]"}),(0,_.jsx)("header",{className:"fixed top-0 z-20 w-full ",children:(0,_.jsxs)(o.J,{className:(0,x.Z)("relative z-40 border-b transition-colors",t>300?"bg-brand-blue border-brand-blue shadow-xl":"bg-white border-gray-100 shadow-none"),children:[(0,_.jsx)("div",{className:(0,x.Z)("w-full transition-colors",t>300?"bg-brand-blue":"bg-white"),children:(0,_.jsxs)("div",{className:(0,x.Z)("flex items-center w-full h-20 px-4 mx-auto xl:px-8 max-w-page-container transition-all",t>300?"h-16":"h-20"),children:[(0,_.jsxs)("div",{className:"flex items-center space-x-6 ",children:[(0,_.jsx)(f(),{href:"/",passHref:!0,children:(0,_.jsx)("a",{className:"inline-flex mr-6",children:(0,_.jsx)(j.b,{className:(0,x.Z)("w-20",t>300?"text-white":"text-brand-blue")})})}),(0,_.jsx)("div",{className:"hidden mt-1 space-x-8 font-semibold text-gray-800 xl:flex",children:r.map(function(e){return(0,_.jsx)(N,{item:e},e.label)})})]}),(0,_.jsx)("div",{className:"flex-grow pl-8 pr-4 ml-auto"}),(0,_.jsxs)("div",{className:"items-center hidden space-x-4 xl:flex",children:[(0,_.jsx)("div",{children:(0,_.jsx)(f(),{href:"/post-a-request",passHref:!0,children:(0,_.jsx)(m.ZP,{brand:"orange",className:"px-5 py-3 text-sm font-semibold",children:"Post an expert request"})})}),(0,_.jsx)(k,{})]}),(0,_.jsx)("div",{className:"-my-2 -mr-2 xl:hidden",children:(0,_.jsxs)(o.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,_.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,_.jsx)($.Z,{className:"w-6 h-6","aria-hidden":"true"})]})})]})}),(0,_.jsx)(c.u,{as:i.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,_.jsx)(o.J.Panel,{focus:!0,className:"absolute inset-x-0 top-0 p-2 transition origin-top-right transform xl:hidden",children:(0,_.jsxs)("div",{className:"bg-white divide-y-2 rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 divide-gray-50",children:[(0,_.jsx)("div",{className:"px-5 pt-5 pb-6",children:(0,_.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_.jsx)(f(),{href:"/",passHref:!0,children:(0,_.jsx)("a",{children:(0,_.jsx)(j.b,{className:"w-20 text-brand-blue"})})}),(0,_.jsx)("div",{className:"-mr-2",children:(0,_.jsxs)(o.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,_.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,_.jsx)(d.Z,{className:"w-6 h-6","aria-hidden":"true"})]})})]})}),(0,_.jsxs)("div",{className:"px-5 py-6 space-y-6",children:[(0,_.jsxs)("div",{className:"grid grid-cols-1 gap-y-4 gap-x-8",children:[(0,_.jsx)(f(),{href:"/post-a-request",passHref:!0,children:(0,_.jsx)("a",{className:"flex items-center justify-center w-full px-4 py-1 text-base font-medium text-white border border-transparent rounded-full shadow-sm bg-brand-indigo hover:bg-brand-indigo-dark",children:"Post an expert request"})}),r.map(function(e){return(0,_.jsx)(f(),{href:e.href,passHref:!0,children:(0,_.jsx)("a",{className:"text-base font-medium text-gray-500 hover:text-gray-700",children:e.label})},e.label)})]}),(0,_.jsx)("div",{children:(0,_.jsx)("p",{className:"text-base font-medium text-left text-gray-500",children:(0,_.jsx)(k,{})})})]})]})})})]})})]})},N=function(e){var r=e.item;return(0,_.jsx)("div",{className:"",children:r.type===n.LINK&&(0,_.jsx)(O,{label:r.label,href:r.href})})},k=function(){var e=y(),r=(0,h.Z)(),t=r.currentUserId,n=r.isSessionLoading;return t||n?n?(0,_.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,_.jsx)("div",{className:(0,x.Z)(e>300?"bg-brand-blue-dark":"bg-gray-100","w-12 h-6 rounded-full animate-pulse")}),(0,_.jsx)("div",{children:(0,_.jsx)(u.Z,{className:(0,x.Z)(e>300?"text-brand-blue-dark":"text-gray-200","w-10 h-10")})})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{children:(0,_.jsx)(O,{label:"Dashboard",href:"/dashboard"})}),(0,_.jsxs)(b.Lr,{children:[(0,_.jsx)(v.Z,{scheme:(0,x.Z)(e>300?"light":"dark"),currentUserId:t}),(0,_.jsx)(m.Eg,{currentUserId:t,scheme:(0,x.Z)(e>300?"light":"dark")}),(0,_.jsx)("div",{className:"relative z-30 mt-1 ml-4",children:(0,_.jsx)(g.Z,{})})]})]}):(0,_.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(O,{label:"Log in",href:"/login/expert"}),(0,_.jsx)("span",{className:(0,x.Z)("mx-2",e>300?"text-white":"text-gray-300"),children:"|"}),(0,_.jsx)(O,{label:"Sign up",href:"/signup/expert"})]}),(0,_.jsx)("div",{children:(0,_.jsx)("a",{href:"/login/user",children:(0,_.jsx)(u.Z,{className:(0,x.Z)(e>300?"text-brand-blue-dark":"text-gray-300","w-10 h-10")})})})]})},O=function(e){var r=e.label,t=e.href,n=y();return(0,_.jsx)(f(),{href:t,passHref:!0,children:(0,_.jsx)("a",{className:(0,x.Z)("inline-block font-semibold transition duration-100 ease-in-out",n>300?"text-white hover:text-white hover:underline":"text-gray-800 hover:text-brand-blue hover:no-underline"),children:r})})},I=function(e){var r=e.children;return(0,_.jsxs)("main",{className:"flex flex-col min-h-screen",children:[(0,_.jsx)(w,{}),(0,_.jsx)("div",{className:"flex-grow",children:r}),(0,_.jsx)(a.$,{variation:"public"})]})}},21990:function(e,r,t){"use strict";t.d(r,{h:function(){return u}});var n=t(17674),s=t(50319),i=t(24330),a=t(16915);t(67294);
1var l=t(34863),o=t(10017),c=t(20395),$=t(44713),d=t(85893),u=function(e){var r,t,$=e.job,u=e.closeModal,x=e.onComplete,h=void 0===x?function(){}:x,p=(0,s.D)(i.Jw,{onError:function(e){alert("ERROR"),console.log(e)},onCompleted:function(){u(),h()}}),f=(0,n.Z)(p,1)[0],m=function(){f({variables:{job_id:$.id},refetchQueries:[{query:a.c2,variables:{id:$.id}}]})};return(0,d.jsxs)(l.xu,{children:[(0,d.jsx)(o.M,{user:$.accepted_offer.mentor,text:"If you're satisfied with this request you can now mark it as completed and release the payment for ".concat($.accepted_offer.mentor.first_name,".")}),(0,d.jsx)(l.x1,{mb:[15,28]}),(0,d.jsx)(c.Z,{rate:(null===(r=$.accepted_package_rate)||void 0===r?void 0:r.rate)||0,numberOfSessions:(null===(t=$.accepted_package_rate)||void 0===t?void 0:t.number_of_sessions)||1,view:"mentee",countryCode:"AU"}),(0,d.jsx)(l.x1,{mt:[15,20],mb:[15,22]}),(0,d.jsx)(l.kI,{children:"Please note that by clicking on âRelease Paymentâ youâre agreeing to our Terms & Conditions."}),(0,d.jsx)(l.zx,{m:"0 auto",onClick:function(){return m()},mt:[15,25],width:[null,230],children:"Release payment"})]})},x=function(e){var r=e.label,t=e.job,n=e.onComplete,s=void 0===n?function(){}:n,i=e.useSimpleLink,a=(0,$.dd)(),o=a.openModal,c=a.closeModal;return void 0===i||i?(0,d.jsx)("a",{href:"#",className:"text-brand-blue",onClick:function(e){return o({title:"Confirm request is completed",modalContent:(0,d.jsx)(u,{onComplete:s,job:t,closeModal:c})}),e.preventDefault(),!1},children:r}):(0,d.jsx)(l.zx,{onClick:function(){o({title:"Confirm request is completed",modalContent:(0,d.jsx)(u,{onComplete:s,job:t,closeModal:c})})},mr:"auto",children:r})};r.Z=x},63526:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/requests/[id]",function(){return t(25239)}])}},function(e){e.O(0,[2678,424,6582,3166,3331,4133,1454,1610,6041,9774,2888,179],function(){return e(e.s=63526)}),_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.