1"use strict";(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[15248],{914700(e,t,a){a.d(t,{hY:()=>f,jY:()=>u,JX:()=>i,Fp:()=>l,N6:()=>c,GG:()=>d,FP:()=>g}),a(533958);let n=["name","email","companyName","role","selectedRegion","region","language","projectTypes","timeline","projectDescription","teamSize","industry","budgetRange"],s=["role","region"];var r=()=>a(201106);function l(e){let{key:t}=e;return e=>{s.includes(t)||e?(r().a.setFormData({key:t,value:e}),r().a.setErrorMessage({key:t,message:void 0})):r().a.setErrorMessage({key:t,message:a(962299).A.getIntl().formatMessage(m.fieldRequired)})}}function i(e){let{key:t}=e;return e=>{let n=e.target.value;s.includes(t)||n?(r().a.setFormData({key:t,value:n}),r().a.setErrorMessage({key:t,message:void 0})):r().a.setErrorMessage({key:t,message:a(962299).A.getIntl().formatMessage(m.fieldRequired)})}}function o(e){let t=!1,l=a(962299).A.getIntl();for(let a of n){let n=e[a];!s.includes(a)&&(void 0===n||""===n||Array.isArray(n)&&0===n.length)&&(r().a.setErrorMessage({key:a,message:l.formatMessage(m.fieldRequired)}),t=!0)}if(!t)return e}function c(){var e,t;(0,a(104310).u)({event:{eventName:"consultant_matching_form",eventProperties:{event:"open"}}});let n=null==(e=a(728372).AppStoreCurrentUserStore.state)?void 0:e.getName(),s=null==(t=a(728372).AppStoreCurrentUserStore.state)?void 0:t.getEmail();r().a.setState({...r().a.state,state:"request",formData:{name:n,email:s,...r().a.state.formData}})}function d(){r().a.setState({...r().a.state,state:"result"})}function u(){(0,a(104310).u)({event:{eventName:"consultant_matching_form",eventProperties:{event:"close"}}}),r().a.setState({...r().a.state,state:"closed"})}async function g(e){let{environment:t}=e,n=o(r().a.state.formData);if(!n)return;let s=await t.api.callMainCellApi({environment:t,eventName:"getMatchingConsultants",data:{formData:n}});"failed"===s.type?a(647095).Qg(s):((0,a(104310).u)({event:{eventName:"consultant_matching_form",eventProperties:{event:"request_matches"}}}),r().a.setState({...r().a.state,state:"result",resultData:s.data}))}async function f(e){var t;let{environment:n,consultant:s}=e,l=a(962299).A.getIntl(),i=r().a.state.formData;if(!i)return;let c=o(i);if(!c)return;let d=(0,a(599412).H)(l),u=null==(t=(0,a(328765).S)())?void 0:t.getSpaceId(),g=n.currentUser.id;if(!u||!g)return;let f=await n.api.callMainCellApi({environment:n,eventName:"createMarketplaceServiceRequest",data:{profileId:s.id,locale:d,name:c.name,email:c.email,companyName:c.companyName,role:c.role??"",language:c.language,projectTypes:c.projectTypes,description:c.projectDescription,budget:c.budgetRange,source:"direct_booking",workspaceId:u,customerUserId:n.currentUser.id,timeline:function(e){switch(e){case"asSoonAsPossible":return"immediately";case"within2To3Weeks":return"2_3_weeks";case"within1To2Months":return"1_2_months";case"flexible":return"flexible";default:throw Error(`Invalid timeline: ${e}`)}}(c.timeline)}});"failed"===f.type?a(647095).Qg(f):((0,a(104310).u)({event:{eventName:"consultant_matching_form",eventProperties:{event:"book"}}}),r().a.setState({...r().a.state,state:"submitted",submittedConsultant:s}))}let m=(0,a(327219).YK)({fieldRequired:{id:"creatorProfile.consultantMatchingRequestModal.fieldRequired",defaultMessage:"This field is required"}})},780374(e,t,a){a(635790);var n=a(440302);function s(e){let{...t}=e;return(0,n.jsx)(a(226357).U,{...t,originSize:"xl",selectProps:{sameWidthAsOrigin:!0,width:"100%"}})}a.d(t,{Y:()=>s})},626521(e,t,a){a(635790);var n=a(440302);let s={background:"none",padding:4},r={cursor:"not-allowed",backgroundColor:"rgba(0, 0, 0, 0.03)",color:"rgba(128, 128, 128, 1)"};function l(e){let{style:t,disabled:l,...i}=e;return(0,n.jsx)(a(304265).o,{...i,type:"text",disabled:l,style:{...t,...l?r:{}},inputStyle:s,format:"default"})}a.d(t,{F:()=>l})},438766(e,t,a){a.r(t),a.d(t,{ConsultantMatchingRequestModal:()=>en});var n=a(635790),s=a(440302);function r(e){let t=(0,a(327219).tz)(),r=(0,n.useCallback)(e=>t.formatMessage(a(566955).Fm[e]),[t]);return(0,s.jsx)(a(780374).Y,{...e,items:Array.from(a(566955).gf),displayValue:r})}function l(e){let{title:t,subtitle:n}=e;return(0,s.jsxs)(a(4458).VP,{gap:4,children:[(0,s.jsx)(a(111010).D,{styleKey:"titleSemibold",children:t}),(0,s.jsx)(a(111010).D,{styleKey:"titleSm",colorVariant:"secondary",children:n})]})}function i(){let e=(0,a(327219).tz)(),{name:t,email:n,companyName:r,role:i}=(0,a(579993).K8)(()=>{let{name:e,email:t,companyName:n,role:s}=a(201106).a.state.formData;return{name:e,email:t,companyName:n,role:s}},[]);return(0,s.jsxs)(a(4458).VP,{gap:24,children:[(0,s.jsx)(l,{title:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.general.title",defaultMessage:"General"}),subtitle:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.general.subtitle",defaultMessage:"Tell us about yourself"})}),(0,s.jsx)(a(626521).F,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.name.label",defaultMessage:"Name"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.name.placeholder",defaultMessage:"Enter your name"}),value:t,onChange:(0,a(914700).JX)({key:"name"}),required:!0}),(0,s.jsx)(a(626521).F,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.email.label",defaultMessage:"Email"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.email.placeholder",defaultMessage:"[email protected]"}),value:n,onChange:(0,a(914700).JX)({key:"email"}),required:!0}),(0,s.jsx)(a(626521).F,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.companyName.label",defaultMessage:"Company Name"}),value:r,onChange:(0,a(914700).JX)({key:"companyName"}),required:!0}),(0,s.jsx)(a(626521).F,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.role.label",defaultMessage:"Role"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.role.placeholder",defaultMessage:"i.e. Product Manager"}),value:i,onChange:(0,a(914700).JX)({key:"role"})}),(0,s.jsx)(o,{}),(0,s.jsx)(c,{})]})}function o(){let e=(0,a(579993).K8)(()=>a(201106).a.state.formData.language,[]);return(0,s.jsxs)(a(4458).VP,{gap:4,children:[(0,s.jsx)(r,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.language.label",defaultMessage:"Language"}
1),value:e,onSelect:(0,a(914700).Fp)({key:"language"}),required:!0}),(0,s.jsx)(a(111010).D,{styleKey:"bodySmRegular",colorVariant:"secondary",children:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.language.subtitle",defaultMessage:"This is the language you would like services to be offered in."})})]})}function c(){let e=(0,a(327219).tz)(),t=(0,a(579993).K8)(()=>{let{selectedRegion:e}=a(201106).a.state.formData;return e},[]),r=(0,a(579993).K8)(()=>{let{region:e}=a(201106).a.state.formData;return e},[]),l=(0,n.useCallback)(t=>e.formatMessage(a(566955).uY[t]),[e]),i="yes"===t?(0,s.jsx)(a(780374).Y,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.region.label",defaultMessage:"Region"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.region.placeholder",defaultMessage:"Select a region"}),value:r,items:Array.from(a(566955).SL),displayValue:l,required:!0,onSelect:(0,a(914700).Fp)({key:"region"})}):void 0,o=[{key:"no",label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.region.option.noPreference",defaultMessage:"No preference â open to working globally"})},{key:"yes",label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.region.option.yes",defaultMessage:"Yes"})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a(777295).K,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.regionInput.prompt",defaultMessage:"Do you prefer working with a consultant in a certain region?"}),items:o,value:t,required:!0,onSelect:(0,a(914700).Fp)({key:"selectedRegion"})}),i]})}let d={display:"flex",alignItems:"center",paddingTop:32,paddingInlineStart:44,paddingInlineEnd:44,gap:16};function u(){return(0,s.jsxs)("div",{style:d,children:[(0,s.jsx)(f,{}),(0,s.jsxs)(a(4458).VP,{gap:4,children:[(0,s.jsx)(a(111010).D,{styleKey:"titleLgSemibold",children:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.header.title",defaultMessage:"Get matched"})}),(0,s.jsx)(a(111010).D,{styleKey:"titleSm",colorVariant:"secondary",children:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.header.subtitle",defaultMessage:"Get started with a few questions"})})]})]})}let g={container:{display:"flex",alignItems:"center",justifyContent:"center",width:48,height:48,borderRadius:12,background:a(632079).Tj.background.secondary}};function f(){return(0,s.jsx)("div",{style:g.container,children:(0,s.jsx)(a(16275).I,{icon:a(758995).paperPlaneIcon,size:"xl"})})}a(499468),a(586042),a(169187),a(726090),a(132457),a(219390),a(73168),a(159952);let m=["solo","2-5","6-10","11-25","26-100","100+"],h=(0,a(327219).YK)({solo:{id:"creatorProfile.consultantMatchingRequest.teamSize.solo",defaultMessage:"Just me (solo)"},"2-5":{id:"creatorProfile.consultantMatchingRequest.teamSize.2-5",defaultMessage:"2-5 people"},"6-10":{id:"creatorProfile.consultantMatchingRequest.teamSize.6-10",defaultMessage:"6-10 people"},"11-25":{id:"creatorProfile.consultantMatchingRequest.teamSize.11-25",defaultMessage:"11-25 people"},"26-100":{id:"creatorProfile.consultantMatchingRequest.teamSize.26-100",defaultMessage:"26-100 people"},"100+":{id:"creatorProfile.consultantMatchingRequest.teamSize.100+",defaultMessage:"100+ people"}}),p=["asSoonAsPossible","within2To3Weeks","within1To2Months","flexible"],M=(0,a(327219).YK)({asSoonAsPossible:{id:"creatorProfile.consultantMatchingRequestModal.timeline.asSoonAsPossible",defaultMessage:"As soon as possible"},within2To3Weeks:{id:"creatorProfile.consultantMatchingRequestModal.timeline.within2To3Weeks",defaultMessage:"Within 2-3 weeks"},within1To2Months:{id:"creatorProfile.consultantMatchingRequestModal.timeline.within1To2Months",defaultMessage:"Within 1-2 months"},flexible:{id:"creatorProfile.consultantMatchingRequestModal.timeline.flexible",defaultMessage:"Flexible / Exploring Options"}});function y(e){let{...t}=e;return(0,s.jsx)(a(201970).J,{...t,originSize:"md"})}let x={background:"none",padding:4},j={cursor:"not-allowed",backgroundColor:"rgba(0, 0, 0, 0.03)",color:"rgba(128, 128, 128, 1)"};function b(e){let{style:t,disabled:n,maxlength:r,...l}=e;return(0,s.jsx)(a(304265).o,{...l,textarea:!0,maxlength:r??280,disabled:n,style:{...t,...n?j:{}},inputStyle:x,format:"default"})}function v(){return(0,s.jsxs)(a(4458).VP,{gap:24,children:[(0,s.jsx)(l,{title:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.projectDescription.title",defaultMessage:"Project Description"}),subtitle:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.projectDescription.subtitle",defaultMessage:"What kind of task are you looking to accomplish?"})}),(0,s.jsx)(R,{}),(0,s.jsx)(P,{}),(0,s.jsx)(q,{}),(0,s.jsx)(A,{}),(0,s.jsx)(S,{}),(0,s.jsx)(k,{})]})}function R(){let e=(0,a(327219).tz)(),t=(0,a(579993).K8)(()=>{let{projectTypes:e}=a(201106).a.state.formData;return e},[]),r=(0,n.useMemo)(()=>Array.from(a(566955).q0).map(t=>
1({id:t,label:e.formatMessage(a(566955).$C[t])})),[e]);return(0,s.jsx)(y,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.projectType.label",defaultMessage:"Project Type"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.projectType.placeholder",defaultMessage:"Select a category"}),values:t,items:r,required:!0,onSelect:e=>{let n=new Set(t);n.add(e),a(201106).a.setFormData({key:"projectTypes",value:Array.from(n)})},onRemove:e=>{let n=new Set(t);n.has(e)&&n.delete(e),a(201106).a.setFormData({key:"projectTypes",value:Array.from(n)})}})}function P(){let e=(0,a(327219).tz)(),t=(0,a(579993).K8)(()=>{let{timeline:e}=a(201106).a.state.formData;return e},[]),r=(0,n.useCallback)(t=>e.formatMessage(M[t]),[e]);return(0,s.jsx)(a(780374).Y,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.timeline.label",defaultMessage:"Timeline"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.timeline.placeholder",defaultMessage:"Select a time range"}),value:t,items:Array.from(p),displayValue:r,required:!0,onSelect:(0,a(914700).Fp)({key:"timeline"})})}function q(){let e=(0,a(327219).tz)(),t=(0,a(579993).K8)(()=>{let{projectDescription:e}=a(201106).a.state.formData;return e},[]);return(0,s.jsx)(b,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.projectDescription.label",defaultMessage:"Project Description"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.projectDescription.placeholder",defaultMessage:"Add a description"}),maxlength:2e3,value:t,required:!0,onChange:(0,a(914700).JX)({key:"projectDescription"})})}function A(){let e=(0,a(327219).tz)(),t=(0,a(579993).K8)(()=>{let{teamSize:e}=a(201106).a.state.formData;return e},[]),r=(0,n.useCallback)(t=>e.formatMessage(h[t]),[e]);return(0,s.jsx)(a(780374).Y,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.teamSize.label",defaultMessage:"Team Size"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.teamSize.placeholder",defaultMessage:"Select a team size"}),value:t,items:Array.from(m),displayValue:r,required:!0,onSelect:(0,a(914700).Fp)({key:"teamSize"})})}function S(){let e=(0,a(327219).tz)(),t=(0,a(579993).K8)(()=>{let{industry:e}=a(201106).a.state.formData;return e},[]),r=(0,n.useCallback)(t=>e.formatMessage(a(49125).g[t]),[e]);return(0,s.jsx)(a(780374).Y,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.industry.label",defaultMessage:"Industry"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.industry.placeholder",defaultMessage:"Select an industry"}),value:t,items:Array.from(a(49125).S),displayValue:r,required:!0,onSelect:(0,a(914700).Fp)({key:"industry"})})}function k(){let e=(0,a(327219).tz)(),t=(0,a(579993).K8)(()=>{let{budgetRange:e}=a(201106).a.state.formData;return e},[]),r=(0,n.useCallback)(t=>e.formatMessage(a(566955).WH[t]),[e]);return(0,s.jsx)(a(780374).Y,{label:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.budgetRange.label",defaultMessage:"Budget Range"}),placeholder:e.formatMessage({id:"creatorProfile.consultantMatchingRequestModal.budgetRange.placeholder",defaultMessage:"Select a budget range"}),value:t,items:Array.from(a(566955).j2),displayValue:r,required:!0,onSelect:(0,a(914700).Fp)({key:"budgetRange"})})}let w={display:"flex",flexDirection:"column",width:570,height:800,gap:32,overflowY:"scroll"},C={paddingInlineStart:24,paddingInlineEnd:24};function I(){return(0,s.jsxs)("div",{style:w,children:[(0,s.jsx)(u,{}),(0,s.jsx)("div",{style:C,children:(0,s.jsx)(a(346268).c,{size:1})}),(0,s.jsxs)(a(4458).VP,{gap:64,paddingInlineStart:48,paddingInlineEnd:48,children:[(0,s.jsx)(i,{}),(0,s.jsx)(v,{})]}),(0,s.jsx)(D,{})]})}function D(){let e=(0,a(533992).v3)(),t=(0,n.useCallback)(async()=>{await (0,a(914700).FP)({environment:e})},[e]);return(0,s.jsx)(a(4458).fI,{paddingInlineStart:24,paddingInlineEnd:24,paddingBottom:24,justifyContent:"flex-end",alignItems:"center",children:(0,s.jsx)(a(912946).j,{size:"xl",colorPalette:"blue",onClick:t,children:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.footer.getMatches",defaultMessage:"Get matches"})})})}a(435368);let z={container:{display:"flex",flexDirection:"column",gap:24,padding:24,borderRadius:12,boxShadow:a(632079).Tj.shadow.outline.md,width:497}};function T(e){let{stars:t,numReviews:a,userAvatar:n,description:r,badges:l,onViewProfile:i,onBookConsultant:o}=e;return(0,s.jsxs)("div",{style:z.container,children:[(0,s.jsx)(B,{stars:t,numReviews:a,userAvatar:n,badges:l}),(0,s.jsx)(E,{description:r}),(0,s.jsx)(F,{onViewProfile:i,onBookConsultant:o})]})}let _={display:"flex",flexDirection:"column",gap:16,flexGrow:1,textWrap:"nowrap",minWidth:0},K={display:"flex",alignItems:"center",gap:8,overflow:"hidden"},V={overflow:"hidden",textOverflow:"ellipsis"};function B(e){let{stars:t,numReviews:n,userAvatar:r,badges:l}=e;return(0,s.jsxs)(a(4458).fI,{gap:24,children:[(0,s.jsx)(a(321753).A,{size:90,avatar:r}),(0,s.jsxs)("div",{style:_,children:[(0,s.jsxs)("div",{style:K,children:[(0,s.jsx)("div",{style:V,children:(0,s.jsx)(a(111010).D,{styleKey:"titleSmSemibold",lineClamp:1,children:r.name})}),(0,s.jsx)(a(901273).y,{averageRating:t,numberOfReviews:n})]}),(0,s.jsx)(Y,{badges:l})]})]})}function E(e){let{description:t}=e;return(0,s.jsx)(a(18079).A,{maxLines:2,children:(0,s.jsx)(a(111010).D,{styleKey:"bodyRegular",colorVariant:"secondary",children:t})})}function F(e){let{onViewProfile:t,onBookConsultant:n}=e;return(0,s.jsxs)(a(4458).fI,{justifyContent:"flex-end",gap:12,children:[(0,s.jsx)(a(548436).A,{onClick:t,size:"lg",children:(0,s.jsx)(a(327219).sA,{defaultMessage:"View Profile",id:"creatorProfile.consultantMatchingResult.viewProfileButton"})}),(0,s.jsx)(a(912946).j,{onClick:n,colorPalette:"blue",size:"lg",children:(0,s.jsx)(a(327219).sA,{defaultMessage:"Send request",id:"creatorProfile.consultantMatchingResult.sendRequestButton"})})]})}let L={badge:{display:"flex",alignItems:"center",gap:4,backgroundColor:a(632079).Tj.gray.background.secondaryTranslucent,borderRadius:6,paddingInlineStart:8,paddingInlineEnd:8,paddingTop:4,paddingBottom:4}};function Y(e){let{badges:t}=e,n=[];return t.includes("certified")&&n.push((0,s.jsxs)("div",{style:L.badge,children:[(0,s.jsx)(a(16275).I,{icon:a(792668).notionIcon}),(0,s.jsx)(a(111010).D,{styleKey:"bodyMedium",children:(0,s.jsx)(a(327219).sA,{defaultMessage:"Notion Certified",id:"creatorProfile.consultantMatchingResult.certifiedBadge"})})]},"certified")),t.includes("top_match")&&n.push((0,s.jsxs)("div",{style:L.badge,children:[(0,s.jsx)(a(16275).I,{icon:a(595413).f,size:"sm"}),(0,s.jsx)(a(111010).D,{styleKey:"bodyMedium",children:(0,s.jsx)(a(327219).sA,{defaultMessage:"Top Match",id:"creatorProfile.consultantMatchingResult.topM
1atchBadge"})})]},"top_match")),(0,s.jsx)(a(4458).fI,{alignItems:"center",gap:10,children:n})}let N={display:"flex",alignItems:"center",paddingTop:48,paddingInlineStart:44,paddingInlineEnd:44,gap:16};function U(e){let t,{resultCount:n}=e;return t=n>0?(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.results.header.subtitle",defaultMessage:"{count, plural, one {Weâve selected {count} consultant that works for your needs} other {Weâve selected {count} consultants that work for your needs}}",values:{count:n}}):(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.results.header.subtitle2",defaultMessage:"We couldnât find a direct match, but these consultants meet some of your needs."}),(0,s.jsxs)("div",{style:N,children:[(0,s.jsx)($,{}),(0,s.jsxs)(a(4458).VP,{gap:4,children:[(0,s.jsx)(a(111010).D,{styleKey:"titleLgSemibold",children:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.results.header.title",defaultMessage:"Your matches"})}),(0,s.jsx)(a(111010).D,{styleKey:"titleSm",colorVariant:"secondary",children:t})]})]})}let W={container:{display:"flex",alignItems:"center",justifyContent:"center",width:48,height:48,borderRadius:12,background:a(632079).Tj.background.secondary}};function $(){return(0,s.jsx)("div",{style:W.container,children:(0,s.jsx)(a(16275).I,{icon:a(758995).paperPlaneIcon,size:"xl"})})}let O={display:"flex",flexDirection:"column",width:570,maxHeight:800,gap:24,overflowY:"scroll",paddingBottom:24},G={display:"flex",flexDirection:"column",gap:24,paddingInlineStart:37,paddingInlineEnd:37};function J(){let e,{topMatches:t,moreResults:n}=(0,a(579993).K8)(()=>{var e,t;return{topMatches:null==(e=a(201106).a.state.resultData)?void 0:e.topMatches,moreResults:null==(t=a(201106).a.state.resultData)?void 0:t.moreResults}},[]);if(!t&&!n)return null;let r=(null==t?void 0:t.map((e,t)=>(0,s.jsx)(H,{consultant:e,topMatch:!0},`top-matches-${t}`)))??[],l=(null==n?void 0:n.map((e,t)=>(0,s.jsx)(H,{consultant:e},`more-results-${t}`)))??[];return r.length>0&&l.length>0?e=[...r,(0,s.jsx)(Q,{},"browse-more-divider"),...l]:r.length>0?e=r:l.length>0&&(e=l),(0,s.jsxs)("div",{style:O,children:[(0,s.jsx)(U,{resultCount:(null==t?void 0:t.length)??0}),(0,s.jsx)("div",{style:G,children:e}),(0,s.jsx)(Z,{})]})}function H(e){var t;let{consultant:r,topMatch:l}=e,i=(0,a(533992).v3)(),o=(0,a(290479).$v)(r),c=null==(t=r.listing)?void 0:t.ratings_attributes,d=(null==c?void 0:c.rating_count)??0,u=c?(0,a(879584).p)(c):void 0,g=(0,n.useCallback)(()=>{(0,a(174696).W)({environment:i,username:r.username,route:{name:"marketplace"}}),(0,a(914700).jY)()},[i,r.username]),f=(0,n.useCallback)(()=>{(0,a(914700).hY)({environment:i,consultant:r})},[i,r]);return(0,s.jsx)(T,{userAvatar:o,stars:u??0,numReviews:d,description:r.content.attributes.description??"",badges:l?["top_match"]:[],onViewProfile:g,onBookConsultant:f},r.id)}let X={divider:{height:1,borderBottom:`1px solid ${a(632079).Tj.border.secondary}`,flexGrow:1}};function Q(){return(0,s.jsxs)(a(4458).fI,{alignItems:"center",gap:40,children:[(0,s.jsx)("div",{style:X.divider}),(0,s.jsx)(a(111010).D,{styleKey:"bodyMedium",colorVariant:"secondary",children:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.results.browseMore",defaultMessage:"Browse more"})}),(0,s.jsx)("div",{style:X.divider})]})}function Z(){let e=(0,n.useCallback)(()=>{a(201106).a.setState({...a(201106).a.state,state:"request",resultData:void 0})},[]);return(0,s.jsx)(a(4458).fI,{justifyContent:"center",alignItems:"center",children:(0,s.jsx)(a(548436).A,{size:"xl",iconLeading:a(528534).F,onClick:e,colorVariant:"secondary",children:(0,s.jsx)(a(111010).D,{styleKey:"bodyMedium",colorVariant:"secondary",children:(0,s.jsx)(a(327219).sA,{id:"creatorProfile.consultantMatchingRequestModal.results.footer.button",defaultMessage:"Submit new matching request"})})})})}function ee(){let e=(0,a(579993).K8)(()=>a(201106).a.state.submittedConsultant,[]),t=(0,n.useCallback)(()=>{(0,a(914700).jY)()},[]);return e?(0,s.jsxs)(a(4458).VP,{justifyContent:"center",alignItems:"center",height:512,width:571,gap:40,children:[(0,s.jsx)(ea,{consultant:e}),(0,s.jsxs)(a(4458).VP,{alignItems:"center",children:[(0,s.jsx)(a(111010).D,{styleKey:"titleLgSemibold",children:(0,s.jsx)(a(327219).sA,{id:"consultantMatchingSubmittedScreen.title",defaultMessage:"Request sent"})}),(0,s.jsx)(a(111010).D,{styleKey:"bodyMedium",colorVariant:"secondary",children:(0,s.jsx)(a(327219).sA,{id:"consultantMatchingSubmittedScreen.subtitle",defaultMessage:"Your booking request has been sent."})})]}),(0,s.jsx)(a(548436).A,{onClick:t,size:"lg",children:(0,s.jsx)(a(327219).sA,{id:"consultantMatchingSubmittedScreen.closeButton.label",defaultMessage:"Close"})})]}):null}let et={container:{width:129,height:138,position:"relative"},icon:{position:"absolute",bottom:0,insetInlineEnd:0,width:52,height:52,border:`1px solid ${a(632079).Tj.border.primary}`,borderRadius:"100%",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:a(632079).Tj.background.primary}};
1function ea(e){let{consultant:t}=e,n=(0,a(290479).$v)(t);return(0,s.jsxs)("div",{style:et.container,children:[(0,s.jsx)(a(321753).A,{size:125,avatar:n}),(0,s.jsx)("div",{style:et.icon,children:(0,s.jsx)(a(16275).I,{icon:a(758995).paperPlaneIcon,size:"xl"})})]})}function en(){let e=(0,a(579993).K8)(()=>a(201106).a.state.state,[]),t=(0,a(327219).tz)(),r=(0,n.useCallback)(()=>{(0,a(914700).jY)()},[]),l=(0,n.useCallback)(()=>{switch(e){case"request":return(0,s.jsx)(I,{});case"result":return(0,s.jsx)(J,{});case"submitted":return(0,s.jsx)(ee,{})}},[e]);return(0,s.jsx)(a(171849).a,{open:"closed"!==e,ariaLabel:t.formatMessage({id:"consultantMatchingRequestModal.ariaLabel",defaultMessage:"Consultant Matching Request Modal"}),onDismiss:r,showCloseIcon:!0,children:l()})}},777295(e,t,a){a(159952),a(635790);var n=a(440302);let s={display:"flex",gap:6},r={width:16,height:16};function l(e){let{label:t,items:l,value:i,required:o,onSelect:c}=e,d=(0,a(817588).B)(),u=l.map(e=>(0,n.jsxs)(a(4458).fI,{alignItems:"center",gap:6,children:[(0,n.jsx)("input",{type:"radio",id:e.key,name:d,onChange:()=>null==c?void 0:c(e.key),checked:e.key===i,style:r}),(0,n.jsx)("label",{htmlFor:e.key,children:(0,n.jsx)(a(111010).D,{styleKey:"bodySmRegular",children:e.label})})]},e.key));return(0,n.jsxs)(a(4458).VP,{gap:12,children:[(0,n.jsxs)("legend",{style:s,children:[(0,n.jsx)(a(111010).D,{styleKey:"bodySmRegular",children:t}),o?(0,n.jsx)(a(111010).D,{styleKey:"captionRegular",colorPalette:"red",colorVariant:"accentPrimary",children:"*"}):void 0]}),(0,n.jsx)(a(4458).VP,{gap:6,children:u})]})}a.d(t,{K:()=>l})},174696(e,t,a){async function n(e){let{environment:t,locale:n}=e,s=await t.api.callMainCellApi({eventName:"getTemplateContentGroup",environment:t,data:{contentfulId:a(54353).AW,locale:n}});return"success"===s.type&&s.data.success&&"profile"===s.data.type?s.data.content.slice(0,8):[]}function s(e){let{environment:t,username:n,openInNewTab:s,route:r}=e;a(800198).Router.navigate({environment:t,url:(0,a(290479).Mh)({username:n,route:r}),...s&&{openInNew:"tab"}})}a.d(t,{D:()=>n,W:()=>s})},901273(e,t,a){a(635790);var n=a(440302);function s(e){let{averageRating:t,numberOfReviews:s}=e;return 0===s?null:(0,n.jsxs)(a(4458).fI,{alignItems:"center",gap:4,children:[(0,n.jsx)(a(16275).I,{icon:a(901334).o,size:"sm",colorVariant:"secondary"}),(0,n.jsx)(a(111010).D,{styleKey:"captionMedium",colorVariant:"secondary",children:(0,n.jsx)(a(327219).Gr,{value:t,minimumFractionDigits:1,maximumFractionDigits:1})}),(0,n.jsx)(a(111010).D,{styleKey:"captionMedium",colorVariant:"secondary",children:(0,n.jsx)(a(327219).sA,{id:"inApp.marketplace.consultant.listing.rating",defaultMessage:"({numberOfReviews})",values:{numberOfReviews:s}})})]})}a.d(t,{y:()=>s})},290479(e,t,a){a(176765),a(851344),a(866491);let n=["profiles","consultants"];function s(e){var t,a;return e?{email:null==(t=e.attributes)?void 0:t.contact_email,name:e.name,avatarUrl:(null==(a=e.attributes)||null==(a=a.image)?void 0:a.url)??""}:{email:"",name:"",avatarUrl:""}}function r(e){return e.replace(/(^\w+:|^)\/\//,"").replace(/www\./,"").replace(/\/+$/,"")}function l(e){let{username:t,route:s,isBooking:r,showReviewModal:l,reviewKey:i}=e,o=new URL(` 2 ${a(139424).A.domainBaseUrl}${a(168962).JZ.marketplace}/profiles/${encodeURIComponent(t)}`);if(s&&s.pageType&&n.includes(s.pageType)){let e=(0,a(426339).oY)(s.pageType,"");e&&o.searchParams.append("cr",encodeURIComponent(e))}return r?o.searchParams.append("book","true"):l&&(o.searchParams.append("review","true"),i&&o.searchParams.append("rk",i)),s&&s.crumbs&&!o.searchParams.has("cr")&&s.crumbs!==`pro:${t}`&&o.searchParams.append("cr",encodeURIComponent(s.crumbs)),o.toString()}function i(e){let{filters:t}=e,n=new URL(`${a(139424).A.domainBaseUrl}${a(168962).JZ.marketplace}/profiles`);return t&&(t.orderBy&&"number_of_duplicates"!==t.orderBy&&n.searchParams.append("orderBy",encodeURIComponent(t.orderBy)),t.qualification&&"all"!==t.qualification&&n.searchParams.append("qualification",encodeURIComponent(t.qualification))),n.toString()}function o(e){var t,a;let{qualification:n,orderBy:s}=e;return{qualification:"certified"===(t=n)||"notion_recommended"===t?n:void 0,orderBy:"number_of_templates"===(a=s)||"number_of_duplicates"===a||"alphabetical"===a?s:"number_of_duplicates"}}function c(e){var t,a,n,r;return{username:e.username,name:e.name,coverImageUrl:null==(t=e.content)||null==(t=t.attributes)||null==(t=t.cover_image)?void 0:t.url,description:null==(a=e.content)||null==(a=a.attributes)?void 0:a.description,isFeaturedCreator:(null==(n=e.attributes)?void 0:n.is_featured_creator)??!1,isCertifiedConsultant:(null==(r=e.attributes)?void 0:r.legacy_is_certified_consultant)??!1,numberOfTemplates:e.number_of_templates??0,avatar:s(e)}}a.d(t,{$v:()=>s,J1:()=>r,Mh:()=>l,aE:()=>o,dw:()=>c,x0:()=>i})},528534(e,t,a){a(635790);let n={viewBox:"0 0 20 20",fittedViewBox:"3.37 1.37 13.26 16.26",svg:(0,a(440302).jsx)("path",{d:"M10.809 1.478a.625.625 0 0 0-.864.867l.08.099 1.942 1.932H10A6.625 6.625 0 1 0 16.625 11a.625.625 0 1 0-1.25 0A5.375 5.375 0 1 1 10 5.626h1.963L10.038 7.56l-.08.098a.626.626 0 0 0 .966.783l2.993-3.007.077-.096a.625.625 0 0 0-.08-.788l-3.007-2.993z"})},s=(0,a(104509).wt)("arrowCircleSpinClockwise",n,"default");a.d(t,{},{F:s})},758995(e,t,a){a.r(t),a(635790);let n={viewBox:"0 0 20 20",fittedViewBox:"2.07 2.87 15.11 15.1",svg:(0,a(440302).jsx)("path",{d:"M16.994 3.06a.62.62 0 0 1 .136.673l-5.357 13.843a.625.625 0 0 1-1.131.074l-2.913-5.33L2.4 9.41a.625.625 0 0 1 .074-1.132L16.317 2.92a.63.63 0 0 1 .677.14M8.08 11.087l5.936-5.936L4.18 8.957zm.884.884 2.13 3.898L14.9 6.035z"})},s=(0,a(104509).wt)("paperPlane",n,"default");a.d(t,{},{iconDefinition:n,paperPlaneIcon:s})},901334(e,t,a){a(635790);let n={viewBox:"0 0 16 16",fittedViewBox:"2.2 2.45 11.6 11.09",svg:(0,a(440302).jsx)("path",{d:"M8.523 2.837a.55.55 0 0 0-1.046 0L6.36 6.271H2.75a.55.55 0 0 0-.323.995L5.348 9.39l-1.
2116 3.434a.55.55 0 0 0 .847.615L8 11.315l2.921 2.123a.55.55 0 0 0 .847-.615l-1.116-3.434 2.921-2.123a.55.55 0 0 0-.323-.995H9.639z"})},s=(0,a(104509).wt)("starFillSmall",n,"fillSmall");a.d(t,{},{o:s})},595413(e,t,a){a(635790);let n={viewBox:"0 0 16 16",fittedViewBox:"1.95 1.94 12.1 11.57",svg:(0,a(440302).jsx)("path",{d:"M8 1.95c-.27 0-.51.174-.594.431l-1.14 3.51H2.574a.625.625 0 0 0-.367 1.13l2.985 2.17-1.14 3.509a.625.625 0 0 0 .962.699L8 11.229l2.986 2.17a.625.625 0 0 0 .961-.699l-1.14-3.51 2.985-2.169a.625.625 0 0 0-.367-1.13h-3.69l-1.14-3.51A.625.625 0 0 0 8 1.95m-.686 4.759L8 4.597l.686 2.112a.625.625 0 0 0 .595.432h2.22L9.705 8.446a.625.625 0 0 0-.227.699l.686 2.112-1.797-1.305a.625.625 0 0 0-.734 0l-1.797 1.305.686-2.112a.625.625 0 0 0-.227-.699L4.5 7.141h2.22a.63.63 0 0 0 .595-.432"})},s=(0,a(104509).wt)("starSmall",n,"small");a.d(t,{},{f:s})},49125(e,t,a){let n=(0,a(327219).YK)({technology:{id:"creatorProfile.consultantMatchingRequest.industry.technology",defaultMessage:"Technology"},consulting:{id:"creatorProfile.consultantMatchingRequest.industry.consulting",defaultMessage:"Consulting"},marketingAndAdvertising:{id:"creatorProfile.consultantMatchingRequest.industry.marketingAndAdvertising",defaultMessage:"Marketing and Advertising"},finance:{id:"creatorProfile.consultantMatchingRequest.industry.finance",defaultMessage:"Finance"},realEstate:{id:"creatorProfile.consultantMatchingRequest.industry.realEstate",defaultMessage:"Real Estate"},architectureAndDesign:{id:"creatorProfile.consultantMatchingRequest.industry.architectureAndDesign",defaultMessage:"Architecture and Design"},creativeServices:{id:"creatorProfile.consultantMatchingRequest.industry.creativeServices",defaultMessage:"Creative Services"},mediaAndEntertainment:{id:"creatorProfile.consultantMatchingRequest.industry.mediaAndEntertainment",defaultMessage:"Media and Entertainment"},education:{id:"creatorProfile.consultantMatchingRequest.industry.education",defaultMessage:"Education"},nonprofit:{id:"creatorProfile.consultantMatchingRequest.industry.nonprofit",defaultMessage:"Nonprofit"},healthcare:{id:"creatorProfile.consultantMatchingRequest.industry.healthcare",defaultMessage:"Healthcare"},biotech:{id:"creatorProfile.consultantMatchingRequest.industry.biotech",defaultMessage:"Biotech"},ecommerce:{id:"creatorProfile.consultantMatchingRequest.industry.ecommerce",defaultMessage:"Ecommerce"},retail:{id:"creatorProfile.consultantMatchingRequest.industry.retail",defaultMessage:"Retail"},manufacturing:{id:"creatorProfile.consultantMatchingRequest.industry.manufacturing",defaultMessage:"Manufacturing"},construction:{id:"creatorProfile.consultantMatchingRequest.industry.construction",defaultMessage:"Construction"},government:{id:"creatorProfile.consultantMatchingRequest.industry.government",defaultMessage:"Government"},energy:{id:"creatorProfile.consultantMatchingRequest.industry.energy",defaultMessage:"Energy"},transportationAndLogistics:{id:"creatorProfile.consultantMatchingRequest.industry.transportationAndLogistics",defaultMessage:"Transportation and Logistics"},hospitality:{id:"creatorProfile.consultantMatchingRequest.industry.hospitality",defaultMessage:"Hospitality"},communityOrMembershipOrganization:{id:"creatorProfile.consultantMatchingRequest.industry.communityOrMembershipOrganization",defaultMessage:"Community or Membership Organization"},other:{id:"creatorProfile.consultantMatchingRequest.industry.otherOption",defaultMessage:"Other"}});a.d(t,{},{S:["technology","consulting","marketingAndAdvertising","finance","realEstate","architectureAndDesign","creativeServices","mediaAndEntertainment","education","nonprofit","healthcare","biotech","ecommerce","retail","manufacturing","construction","government","energy","transportationAndLogistics","hospitality","communityOrMembershipOrganization","other"],g:n})},879584(e,t,a){function n(e){let t=(null==e?void 0:e.rating_count)??0,a=(null==e?void 0:e.rating_sum)??0;if(0!==t&&0!==a)return a/t}a.d(t,{p:()=>n})}}]);
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.