1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13680],{93748:function(e,t,r){var n=r(57437),i=r(55788),a=r(21170),o=r(39155),s=r(24021),l=r(19902),c=r(46387);const d={wrapper:{position:"absolute",top:"calc(22px + 12px + 9px + 12px)",right:e=>e.spacing(-4.5),p:5,zIndex:99,overflow:"visible",filter:"drop-shadow(0px 0px 24px rgba(0, 0, 0, 0.103544))","&::before":{content:"''",width:"16px",height:"16px",backgroundColor:"colors.white",position:"absolute",top:"-6px",right:"45px",transform:"rotate(45deg)",boxShadow:"-2px -2px 1px -1px rgb(0 0 0 / 7%)"}},buttons:{display:"flex",justifyContent:"flex-between",alignItems:"center",gap:1,mt:2,"& button.MuiButton-root":{flex:1,minWidth:"initial",height:42}}};t.Z=e=>{let{show:t,cancelHandler:r,removeHandler:p,sx:u,text:h,textVariant:m}=e;const{t:x}=(0,i.$G)(),v=Array.isArray(u)?u:[u];return t?(0,n.jsx)(s.d,{onClickAway:r,children:(0,n.jsxs)(l.Z,{elevation:0,sx:[d.wrapper,...v],"data-styleid":"customTooltip",children:[(0,n.jsx)(c.Z,{variant:m||"h4",noWrap:!0,gutterBottom:!0,children:h}),(0,n.jsxs)(a.Z,{sx:d.buttons,children:[(0,n.jsx)(o.Z,{color:"neutral",onClick:r,children:x("common.cancel")}),(0,n.jsx)(o.Z,{color:"error",onClick:p,children:x("common.remove")})]})]})}):null}},4441:function(e,t,r){r.d(t,{Z:function(){return m}});var n=r(57437),i=r(41530),a=r(46387),o=r(6684);var s={textInfo:{gap:"4px","& > .MuiTypography-root":{wordBreak:"break-word"}}};var l=e=>{let{children:t,sx:r,...i}=e;return t?(0,n.jsx)(a.Z,{sx:[o.W0.ellipsis(2),...Array.isArray(r)?r:[r]],variant:"subtitle3",...i,children:t}):null},c=r(35773),d=r(92920),p=r(14672);var u={avatar:{flexShrink:0,"& .MuiChip-root":{height:"22px",minWidth:"initial",width:"auto",transform:"translate(-50%, 25%)","& .MuiChip-label":{typography:"overline"}}}};var h=e=>{let{avatarProps:t={}}=e;const{sx:r,id:i,renderAvatar:a=d.default,...o}=t,s={...o,isOnline:(0,p.CGy)((e=>(0,p.L$7)(e,i))),sx:[u.avatar,...Array.isArray(r)?r:[r]]};return(0,n.jsx)(a,{...s})};var m=e=>{let{sx:t,avatarProps:r={},titleProps:d={},subtitle1Props:p={},subtitle2Props:u={},linkProps:m={},...x}=e;const{children:v,sx:g,..._}=d;return(0,n.jsxs)(i.Z,{direction:"row",alignItems:"center",gap:"16px",sx:t,...x,children:[(0,n.jsx)(c.Z,{...m,children:(0,n.jsx)(h,{avatarProps:r})}),(0,n.jsxs)(i.Z,{sx:s.textInfo,children:[v&&(0,n.jsx)(c.Z,{...m,children:(0,n.jsx)(a.Z,{variant:"h4",component:"span",sx:[o.W0.ellipsis(1),...Array.isArray(g)?g:[g]],..._,children:v})}),(0,n.jsx)(l,{color:"textSecondary",...p}),(0,n.jsx)(l,{...u})]})]})}},92627:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(57437),i=r(21170),a=r(46387);var o={header:{py:"8px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"colors.borderGreyLight",textAlign:"center"}},s=r(13676);var l=e=>{let{role:t}=e;return t?(0,n.jsx)(i.Z,{sx:[o.header,s.q[t.key]],children:(0,n.jsx)(a.Z,{variant:"subtitle3",children:t.title})}):null}},71961:function(e,t,r){r.r(t),r.d(t,{default:function(){return ae}});var n=r(57437),i=r(2265),a=r(21170),o=r(41530),s=r(46387),l=r(55788),c=r(67293),d=r(15389),p=r(19902),u=r(48236),h=r(74663);var m={wrapper:{height:"100%",display:"flex",flexDirection:"column","&.MuiPaper-root.MuiPaper-rounded":{borderRadius:"8px"}}},x=r(39155),v=r(4662);var g={button:{height:"42px","&.MuiButton-outlined .MuiTypography-root":{color:"colors.textPrimary"}}};var _,y=e=>{let{inactive:t,sx:r=[],...i}=e;const{t:a}=(0,l.$G)();return(0,n.jsx)(v.Z,{title:t&&(0,n.jsx)(s.Z,{variant:"subtitle4",children:a("meeting_program.vote_over")}),isDark:!0,fullWidth:!0,children:(0,n.jsx)(x.Z,{disableElevation:!0,fullWidth:!0,sx:[g.button,...Array.isArray(r)?r:[r]],...i})})},f=r(93450);!function(e){e[e.Mutual=1]="Mutual",e[e.MarkedMeRelevant=2]="MarkedMeRelevant",e[e.Relevant=3]="Relevant",e[e.NotRelevant=4]="NotRelevant"}(_||(_={}));var b=r(8075);const j={[_.NotRelevant]:_.Relevant,[_.Relevant]:_.NotRelevant,[_.MarkedMeRelevant]:_.Mutual,[_.Mutual]:_.MarkedMeRelevant},k={[_.NotRelevant]:{children:"profile_speed_networking.match_card.mark_relevant",startIcon:(0,n.jsx)(f.Z,{}),variant:"outlined",color:"info"},[_.Relevant]:{children:"profile_speed_networking.match_card.relevant",startIcon:(0,n.jsx)(f.Z,{}),variant:"contained",color:"info"},[_.MarkedMeRelevant]:{children:"profile_speed_networking.match_card.marked_you_relevant",startIcon:(0,n.jsx)(b.Z,{sx:{fill:e=>e.palette.colors.statusConfirmed}}),variant:"outlined",color:"success"},[_.Mutual]:{children:"profile_speed_networking.match_card.mutual_relevant",startIcon:(0,n.jsx)(b.Z,{sx:{fill:e=>e.palette.colors.white}}),variant:"contained",color:"success"}};var Z=e=>{let{type:t,inactive:r,onClick:a}=e;const{t:o}=(0,l.$G)(),[s,c]=(0,i.useState)(!1),d=k[t];let p;p=d.children?"string"===typeof d.children?o(d.children):d.children:"Action";const u={...d,children:p,onClick:()=>{s||(c(!0),a().finally((()=>{c(!1)})))}};return(0,n.jsx)(y,{inactive:r,...u})},w=r(92627),M=r(27713),R=r(73647),C=r(56475),P=r(14672),S=r(57015),T=r(86451),F=r(13411);var N=e=>{let{total:t,members:r}=e;const{t:o}=(0,l.$G)(),c=(0,P.CGy)(C.jm),d=(0,i.useMemo)((()=>r.map((e=>({participant:{...e,id:String(e.id),isOnline:c.includes(e.id)},linkWrapper:M.Z,actions:[(0,n.jsx)(S.Z,{id:e.id,ownerType:"visitor"},"1"),(0,n.jsx)(T.default,{id:e.id,ownerType:"visitor"},"2")],favoriteElement:(0,n.jsx)(F.default,{id:e.id,ownerType:"visitor"})})))),[r,c]);return(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(s.Z,{variant:"overline2",pb:"8px",children:o("profile_components.marked_by_members_block.marked_by_team")}),t?(0,n.jsx)(R.Z,{max:7,total:t,participants:d}):(0,n.jsx)(s.Z,{variant:"subtitle4",color:"textSecondary",pb:"10px",children:o("meeting_program.meeting_program_user_card.no_interest")})]})},I=r(4441);var E=e=>{let{data:t,inactive:r,onChange:i,sessionId:s}=e;const{relevantType:l}=t;return(0,n.jsxs)(p.Z,{variant:"outlined",sx:m.wrapper,children:[(0,n.jsx)(w.Z,{role:t.role}),(0,n.jsxs)(o.Z,{flexGrow:1,gap:"16px",p:"16px",children:[(0,n.jsx)(I.Z,{avatarProps:{src:t.photoURL,alt:t.name,percent:t.matchPercent},titleProps:{children:t.name},subtitle1Props:{children:t.position},subtitle2Props:{children:t.companyName}}),t.showMembers&&(0,n.jsx)(N,{total:t.memberCount,members:t.members}),(0,n.jsx)(a.Z,{mt:"auto",children:(0,n.jsx)(Z,{type:l,inactive:r,onClick:()=>{const e=j[l],r={accountId:t.id,positiveReaction:[_.Mutual,_.Relevant].includes(e)};return(0,u.k_)("".concat((0,h.t)(),"/api/v1/speedNetworking/").concat(s,"/votePerAccount"),{body:r}).then((r=>{var n;200===(null===r||void 0===r?void 0:r.code)&&(null===(n=r.data)||void 0===n?void 0:n.success)&&i(t.id,{relevantType:e})}))}})})]})]})},A=r(48104),L=r(33543),G=r(9125),B=r(45848),W=r(7220),U=r(96e3),D=r(43974);const $={collection:{1:[]},total:0,page:1,limit:12,isFetching:!0};var q;!function(e){e.SetMatchesData="SET_MATCHES_DATA",e.SetPage="SET_PAGE",e.SetLimit="SET_LIMIT",e.SetIsFetching="SET_IS_FETCHING",e.UpdateField="UPDATE_FIELD",e.Reset="RESET"}(q||(q={}));var H=(e,t)=>{switch(t.type){case q.SetMatchesData:return{...e,...t.payload};case q.SetPage:return{...e,page:t.payload};case q.SetLimit:return{...e,limit:t.payload};case q.SetIsFetching:return{...e,isFetching:t.payload};case q.UpdateField:{const{id:r,field:n}=t.payload,i=(e.collection[e.page]||[]).map((e=>e.id===r?{...e,...n}:e));return{...e,collection:{...e.collection,[e.page]:i}}}case q.Reset:return{...$,isFetching:!1};default:return e}};var O=()=>{const e=(0,i.useRef)(null),[t,r]=(0,i.useReducer)(H,$),{collection:n,page:a}=t,o=n[a]||[],s=e=>{r({type:q.SetIsFetching,payload:e})},l=()=>{e.current&&(e.current.abort(),e.current=null)},c=(0,i.useCallback)(((t,r)=>{s(!0),l();const n=new AbortController;return e.current=n,(0,u.k_)(t,{body:r,signal:e.current.signal,hideError:!0}).then((e=>200===(null===e||void 0===e?void 0:e.code)&&(0,D.K)(e.data)?e.data:Prom
1ise.reject((null===e||void 0===e?void 0:e.errors)||[]))).finally((()=>{e.current===n&&s(!1)}))}),[]);return{...t,list:o,setPage:e=>{r({type:q.SetPage,payload:e})},setLimit:e=>{r({type:q.SetLimit,payload:e})},updateField:(e,t)=>{r({type:q.UpdateField,payload:{id:e,field:t}})},handleFetch:c,cancelFetch:l,setMatches:e=>{r({type:q.SetMatchesData,payload:e})},handleReset:()=>{r({type:q.Reset})}}},K=r(98727),z=r(93873);var Y=e=>{let{status:t,sessionId:r,role:n,isTime:a}=e;const{showErrorMessage:o}=(0,W.Z)(),s=(0,P.CGy)((e=>(0,G.dO)(e,"speedNetworking"))),l=(0,B.Z)({selectedFilters:s},1e3),c=(0,P.CGy)(G.UK),d=(0,U.v)(null===t||void 0===t?void 0:t.key),{handleFetch:p,...u}=O(),{limit:m,cancelFetch:x,handleReset:v,setMatches:g,setPage:_}=u,y=async function(){let{pageNumber:e=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{q:t,...i}=c||{},a={page:e,limit:m,...i,name:t};return p("".concat((0,h.t)(),"/api/v1/speedNetworking/").concat(r,"/getMatchesList"),a).then((t=>{const r=t.list.map((e=>(e=>{let{account:t,currentUserRole:r,role_in_session:n,...i}=e;return{id:t.id,role:n,name:(0,K.N)([t.firstName,t.lastName]," "),position:t.position||"",companyName:t.company_name||"",matchPercent:i.matchmakingPercent||void 0,photoURL:t.photoURL||"",relevantType:i.relevant_type,showMembers:(null===r||void 0===r?void 0:r.key)===z.h.Member,memberCount:i.memberCount||0,members:(i.members||[]).map((e=>({id:e.id,fullName:(0,K.N)([e.firstName,e.lastName]," "),imageSrc:e.photoURL,url:{pathname:"/participant/".concat(e.id)},position:e.position||"",companyName:e.company_name||"",isNew:e.isNew})))}})({...e,currentUserRole:n})));g({collection:{[e]:r},total:t.total})})).catch((e=>{var t;const r=null===(t=e[0])||void 0===t?void 0:t.message;r&&o(r)}))};return(0,i.useEffect)((()=>{if(d)return y(),_(1),x;v()}),[d,l,m,a]),{...u,selectedFilters:s,handleFetch:y}},V=r(13676);const X="24px";var J={header:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"16px",mb:"24px","& > .MuiTypography-root":{mr:"auto",["@media (max-width: ".concat(V.P,"px)")]:{typography:"h3"}}},content:{display:"grid",alignItems:"start",gap:"16px",gridTemplateColumns:{lg:"336px 1fr",sm:"270px 1fr"}},list:{display:"grid",gap:X,gridTemplateColumns:{xs:"1fr",sm:"repeat(auto-fill, minmax(max(".concat("270px",", calc((100% - (").concat(X," * ").concat(3,")) / ").concat(3,")), 1fr))")}},pagination:{gap:"16px","& .MuiPagination-root":{m:"initial"},"&:empty":{display:"none"}},emptyState:{mx:"auto",p:"0px",mt:"8px"}},Q=r(89902),ee=r(42013);var te=e=>{let{role:t}=e;const{t:r}=(0,l.$G)();return t?(0,n.jsx)(Q.Z,{label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Z,{variant:"subtitle3",children:r("profile_speed_networking.speed_networking_visitor_role_chip.your_role_on_this_session")}),(0,n.jsx)(s.Z,{variant:"h6",children:r(t.title)})]}),variant:"outlined",sx:[ee.dM.roleChip(V.q[t.key])]}):null},re=r(59280),ne=r(10310),ie=r(68184);var ae=e=>{let{status:t,isTime:r,role:p,sessionId:u}=e;const{t:h}=(0,l.$G)(),{isFetching:m,limit:x,list:v,page:g,selectedFilters:_,setLimit:y,setPage:f,total:b,updateField:j,handleFetch:k}=Y({sessionId:u,status:t,role:p,isTime:r}),Z=(0,i.useMemo)((()=>v.mapByProperty("members").flat().mapByProperty("id")),[v]);(0,ne.Z)({visitors:Z}),(0,re.Z)(Z);const w=_.length>0,M=!m&&0===b;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.Z,{sx:J.header,children:[(0,n.jsx)(s.Z,{variant:"h2",children:h("profile_speed_networking.speed_networking_matches_content.matches_list")}),(0,n.jsx)(te,{role:p})]}),(0,n.jsx)(A.Z,{status:t,title:h("profile_speed_networking.speed_networking_matches_content.no_matches_list"),optionalSubtitle:!w&&M?h("profile_speed_networking.speed_networking_matches_content.sorry_we_have_no_one"):"",children:(0,n.jsxs)(a.Z,{sx:J.content,children:[(0,n.jsx)(L.Z,{type:"speedNetworking",stopRequest:!0,disableSharing:!0,searchPlaceholder:h("common.by_delegates")}),(0,n.jsxs)(o.Z,{height:"100%",gap:"16px",minHeight:"200px",children:[(0,n.jsx)(c.default,{isLoading:m,children:M?(0,n.jsx)(ie.Z,{reason:"appliedFilters",title:h("profile_speed_networking.speed_networking_matches_content.no_users_found"),subtitle:"",sx:J.emptyState}):(0,n.jsx)(a.Z,{sx:J.list,children:v.map((e=>(0,n.jsx)(E,{data:e,inactive:r,onChange:j,sessionId:u},e.id)))})}),(0,n.jsx)(d.Z,{disabled:m,onPageChange:e=>{f(e),k({pageNumber:e})},page:g,siblingCount:0,total:b,limit:x,onLimitChange:y,sx:J.pagination})]})]})})]})}},48104:function(e,t,r){var n=r(57437),i=r(2265),a=r(55788),o=r(47253),s=r(981);t.Z=e=>{let{children:t,status:r,title:l,optionalSubtitle:c}=e;const{t:d}=(0,a.$G)(),p=null===r||void 0===r?void 0:r.key,u=(0,i.useMemo)((()=>p===o.u.Cancelled?d("profile_speed_networking.speed_networking_visitor_fallback.you_have_cancelled_your_attendance"):p===o.u.RemovedByOrganizer?d("profile_speed_networking.you_have_been_removed_from2"):p===o.u.RemovedByExhibitor?d("profile_speed_networking.you_have_been_removed_from"):c||""),[p,c,d]);
1return u?(0,n.jsx)(s.Z,{title:l,subtitle:u}):(0,n.jsx)(n.Fragment,{children:t})}},27713:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(57437),i=(r(2265),r(18856));var a={linkWrapper:{color:"inherit",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"none"}}};var o=e=>{let{href:t,children:r}=e;if(!t)return(0,n.jsx)(n.Fragment,{children:r});let o="";var s;"string"===typeof t?o=t:o=null!==(s=t.pathname)&&void 0!==s?s:"";return(0,n.jsx)(i.Z,{href:o,target:"_blank",sx:a.linkWrapper,children:r})}},10310:function(e,t,r){var n=r(2265),i=r(14672),a=r(6551),o=r(45848);t.Z=e=>{const t=(0,i.TL5)(),r=(0,i.CGy)(i.BY5),s=(0,o.Z)(e,500),l=(0,a.ht)(e),c=(0,n.useRef)(r);(0,n.useEffect)((()=>{!c.current&&r&&t((0,i.sMs)()),c.current=r}),[r,t]),(0,n.useEffect)((()=>{l&&t((0,i.ptY)(s))}),[s,t,l,r]),(0,n.useEffect)((()=>{t((0,i.eyq)())}),[r,t,s])}},59280:function(e,t,r){var n=r(2265),i=r(14672),a=r(55408);t.Z=e=>{const t=(0,i.TL5)(),r=(0,i.CGy)(i.ulX);(0,n.useEffect)((()=>{if(!e.length||r)return;const n=setTimeout((()=>{t((0,a.R8)(e))}),2e3);return()=>{clearTimeout(n)}}),[e,t,r])}},45848:function(e,t,r){var n=r(2265),i=r(6551);t.Z=function(e,t){const[r,a]=(0,n.useState)(e);return(0,n.useEffect)((()=>{const n=setTimeout((()=>{(0,i.Kn)(e)&&(0,i.wy)(e,r)||a(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),r}}}]);
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.