PageSourceSearch

https://www.tryexponent.com/_next/static/chunks/pages/coaching/book-8d7eee28b63cd55d.js

js tryexponent.com collected 2026-09-24 18:30:19 UTC 8,469 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6970],{41515:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/coaching/book",function(){return s(41618)}])},41618:(e,l,s)=>{"use strict";s.r(l),s.d(l,{__N_SSP:()=>g,default:()=>p});var t=s(6029),n=s(55729),a=s(81278),i=s(71434),o=s.n(i),c=s(50209),r=s(35399),d=s(42911),m=s(57521),u=s(7531),x=s(95647);let h=(0,s(72373).ZA)(e=>{var l;let{request:s,coaches:i,filteredCoachSlugs:x,tags:h,tagMap:g,recommendedSlugs:p}=e,f=(0,a.useRouter)(),{tracker:v}=(0,m.st)(),j=null==s||null==(l=s.data)?void 0:l.guidedFlow,N=(0,n.useMemo)(()=>o().keyBy(i,"slug"),[i]),b=(0,n.useMemo)(()=>x.map(e=>N[e]).filter(Boolean).slice(0,12),[x,N]),y=(0,n.useMemo)(()=>{var e,l;return(null==j?void 0:j.role)&&(null==h||null==(l=h.role)||null==(e=l.find(e=>e.id===j.role))?void 0:e.name)||""},[j,h]),w=(0,n.useMemo)(()=>{var e;return(null==j||null==(e=j.companies)?void 0:e.length)?j.companies.map(e=>{var l,s;return(null==h||null==(s=h.company)||null==(l=s.find(l=>l.id===e))?void 0:l.name)||e}).filter(Boolean):[]},[j,h]),k=(0,n.useMemo)(()=>(null==j?void 0:j.interviewTypes)||[],[j]),_=(0,n.useMemo)(()=>{var e;return(null==j||null==(e=j.selectedSkills)?void 0:e.length)?j.selectedSkills.map(e=>{var l,s;return(null==h||null==(s=h.skill)||null==(l=s.find(l=>l.id===e))?void 0:l.name)||e}).filter(Boolean):[]},[j,h]),A=(0,n.useMemo)(()=>(e=>{let{roleName:l,companyNames:s,interviewTypes:t,skillNames:n}=e,a=[];return l?a.push("best ".concat(l," coach options")):a.push("best coach options"),(null==t?void 0:t.length)?a.push("with experience in ".concat(t.slice(0,2).join(" and ").toLowerCase())):(null==n?void 0:n.length)&&a.push("who can help with ".concat(n.slice(0,2).join(" and "))),(null==s?void 0:s.length)===1?a.push("at companies like ".concat(s[0])):(null==s?void 0:s.length)>1&&a.push("at companies like ".concat(s.slice(0,2).join(" and "))),"We've found your ".concat(a.join(" "),".")})({roleName:y,companyNames:w,interviewTypes:k,skillNames:_}),[y,w,k,_]),B=e=>l=>{l.stopPropagation(),v.coachClickProfile({coach:e.slug,recommended:p.includes(e.slug),source:"guided_flow_book"}),f.push("/coaching/booking?coach=".concat(e.slug,"&request_id=").concat(s.id))};return(0,t.jsxs)("div",{className:"px-6 py-10 max-w-7xl mx-auto",children:[(0,t.jsx)(d.A,{title:"Your recommended coaches — ".concat((0,u.JH)()),metaDescription:"Coaches matched to your preferences."}),(0,t.jsxs)("div",{className:"text-center mb-10",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-3",children:"Your recommended coach"}),(0,t.jsxs)("p",{className:"text-gray-500 text-lg max-w-2xl mx-auto text-pretty",children:[A," ","Pick the coach you want to start with."]})]}),b.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"max-w-md mx-auto mb-16",children:(()=>{let e=b[0];return(0,t.jsx)(c.A,{name:e.Name,title:e.Title,image:e.Photo,href:"/coaching/booking?coach=".concat(e.slug,"&request_id=").concat(s.id),companies:e.Companies,skills:e.Skills,rating:Number(e.Rating)||0,description:e["Brief Bio"],numSessions:e["Total number of sessions completed"],recommended:p.includes(e.slug),onClick:B(e),tagMap:g},e.slug)})()}),b.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"More coaches for you"}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:b.slice(1).map(e=>(0,t.jsx)(c.A,{name:e.Name,title:e.Title,image:e.Photo,href:"/coaching/booking?coach=".concat(e.slug,"&request_id=").concat(s.id),companies:e.Companies,skills:e.Skills,rating:Number(e.Rating)||0,description:e["Brief Bio"],numSessions:e["Total number of sessions completed"],recommended:p.includes(e.slug),onClick:B(e),tagMap:g},e.slug))})]})]}):(0,t.jsxs)("div",{className:"text-center py-16 text-gray-500",children:[(0,t.jsx)("p",{className:"text-lg mb-4",children:"No coaches found matching your preferences."}),(0,t.jsx)(r.A,{href:"/coaching",className:"text-indigo-600 hover:underline font-medium",children:"Browse all coaches"})]}),b.length>0&&(0,t.jsx)("div",{className:"text-center mt-10",children:(0,t.jsx)(r.A,{href:"/coac
1hing",className:"text-indigo-600 hover:underline font-medium",children:"Browse all coaches →"})})]})});h.getLayout=e=>(0,t.jsx)(x.A,{minimalHeader:!0,minimalFooter:!0,children:e});var g=!0;let p=h},47165:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});var t=s(6029);s(55729);var n=s(51369);function a(e){let{shadow:l=!0,border:s=!1,className:a,children:i,...o}=e;return(0,t.jsx)("div",{className:(0,n.cx)("bg-white rounded-lg px-4 py-5 sm:p-6",{shadow:l,"border border-gray-200":s},a),...o,children:i})}},50209:(e,l,s)=>{"use strict";s.d(l,{A:()=>u});var t=s(6029);s(55729);var n=s(71434),a=s.n(n),i=s(47165),o=s(35399),c=s(13771),r=s(26111),d=s(51369);let m=e=>{let{companies:l,tagMap:s,limit:n=5}=e,i=a().chain(l||[]).map(e=>(0,d.EG)(e,s)).filter(Boolean).filter(e=>e.image_url).uniqBy("id").value(),o=i.slice(0,n),c=i.length-o.length;return(0,t.jsxs)("div",{className:"flex justify-start items-center flex-row-reverse pr-1 gap-1",children:[c>0&&(0,t.jsx)("div",{className:"h-5 p-px flex items-center justify-center text-sm font-semibold text-gray-400",children:"+".concat(c," more")}),o.map(e=>(0,t.jsx)("img",{className:"h-5 w-5 p-px rounded-full bg-white object-contain",src:"".concat(e.image_url,"?w=32"),alt:""},e.id))]})},u=e=>{let{name:l,image:s,title:n,recommended:a,description:u,companies:x=[],skills:h,rating:g,numSessions:p,href:f,onClick:v,tagMap:j={}}=e;return(0,t.jsxs)(i.A,{className:"relative flex flex-col overflow-hidden cursor-pointer hover:shadow-md transition duration-50 group",onClick:v,border:!0,children:[(0,t.jsxs)("div",{className:"flex-col items-center w-full",children:[(0,t.jsx)("div",{className:"flex relative mb-2",children:(0,t.jsx)("img",{className:"h-16 w-16 mr-4 object-cover rounded-full shrink-0",src:s,alt:l,loading:"lazy"})}),a&&(0,t.jsxs)("div",{className:"absolute top-4 right-4 inline-flex items-center gap-1 bg-indigo-100 text-indigo-700 text-xs font-medium rounded-lg px-2 py-1",children:[(0,t.jsx)(r.Gg,{className:"w-3 h-3 text-indigo-600"}),"Recommended"]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between w-full h-full",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)(o.A,{href:f,onClick:v,children:(0,t.jsx)("h3",{className:"text-xl font-bold",children:l})}),(0,t.jsx)("span",{className:"ml-2 flex",children:(0,t.jsx)(m,{companies:x,tagMap:j})})]}),(0,t.jsx)("span",{className:"mb-2 text-base font-medium text-gray-500 leading-tight",children:n}),g>0&&p>0&&(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(r.Gg,{className:"h-5 w-5 text-yellow-400 -ml-0.5"}),(0,t.jsxs)("span",{className:"ml-0.5 flex items-center text-gray-600 text-sm font-semibold gap-1",children:["".concat((e=>!e||Number.isNaN(Number(e))?0:(Math.round(10*Number(e))/10).toFixed(1))(g)," rating")," ",(0,t.jsx)("span",{className:"font-light text-gray-500",children:p>1&&"(".concat(p," sessions)")})]})]}),(0,t.jsx)("span",{className:"my-2 mb-4 text-gray-500 font-medium",style:(0,d.tl)(2),children:u}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap gap-2 items-center text-gray-700 font-medium text-sm  whitespace-nowrap",children:[null==h?void 0:h.slice(0,2).map(e=>{var l;return(0,t.jsx)("div",{className:"bg-gray-200 text-gray-600 text-xs font-medium rounded-lg px-2 py-1",children:null==(l=j[e])?void 0:l.name},e)}),(null==h?void 0:h.length)>2&&(0,t.jsx)("div",{className:"bg-gray-200 text-gray-600 text-xs font-medium rounded-lg px-2 py-1",children:"+ ".concat(h.length-2," more")})]})]}),(0,t.jsxs)(c.Ay,{size:c.lO.LARGE,className:"w-full mt-4",href:f,onClick:v,children:["Book now",(0,t.jsx)(r.zi,{stroke:"#ffffff",className:"w-3 ml-1.5"})]})]})]})}},72373:(e,l,s)=>{"use strict";s.d(l,{ZA:()=>c,rd:()=>o,s5:()=>r});var t=s(6029),n=s(55729),a=s(81278),i=s(57521);let o=e=>{let l=(0,a.useRouter)();return(0,n.useEffect)(()=>{l.replace(e.to)},[]),null},c=e=>l=>{let{currentUser:s,loading:n}=(0,i.Us)(),c=(0,a.useRouter)();return n?null:s?(0,t.jsx)(e,{...l}):(0,t.jsx)(o,{to:"/login?returnPath=".concat(c.asPath)})},r=e=>l=>{let{currentUser:s,loading:n}=(0,i.Us)();return n?null:(null==s?void 0:s.role)!=="admin"?(0,t.jsx)(o,{to:"/not-found"}):(0,t.jsx)(e,{...l})}}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=41515)),_N_E=e.O()}]);
2//# sourceMappingURL=book-8d7eee28b63cd55d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.